switch from rcS.d to rc[0-6].d
[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.2p1.
4 #
5 # Report bugs to <http://www.sudo.ws/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 exec 7<&0 </dev/null 6>&1
705
706 # Name of the host.
707 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
708 # so uname gets run too.
709 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
710
711 #
712 # Initializations.
713 #
714 ac_default_prefix=/usr/local
715 ac_clean_files=
716 ac_config_libobj_dir=.
717 LIBOBJS=
718 cross_compiling=no
719 subdirs=
720 MFLAGS=
721 MAKEFLAGS=
722 SHELL=${CONFIG_SHELL-/bin/sh}
723
724 # Identity of this package.
725 PACKAGE_NAME='sudo'
726 PACKAGE_TARNAME='sudo'
727 PACKAGE_VERSION='1.7.2p1'
728 PACKAGE_STRING='sudo 1.7.2p1'
729 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
730
731 # Factoring default headers for most tests.
732 ac_includes_default="\
733 #include <stdio.h>
734 #ifdef HAVE_SYS_TYPES_H
735 # include <sys/types.h>
736 #endif
737 #ifdef HAVE_SYS_STAT_H
738 # include <sys/stat.h>
739 #endif
740 #ifdef STDC_HEADERS
741 # include <stdlib.h>
742 # include <stddef.h>
743 #else
744 # ifdef HAVE_STDLIB_H
745 #  include <stdlib.h>
746 # endif
747 #endif
748 #ifdef HAVE_STRING_H
749 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
750 #  include <memory.h>
751 # endif
752 # include <string.h>
753 #endif
754 #ifdef HAVE_STRINGS_H
755 # include <strings.h>
756 #endif
757 #ifdef HAVE_INTTYPES_H
758 # include <inttypes.h>
759 #endif
760 #ifdef HAVE_STDINT_H
761 # include <stdint.h>
762 #endif
763 #ifdef HAVE_UNISTD_H
764 # include <unistd.h>
765 #endif"
766
767 ac_subst_vars='SHELL
768 PATH_SEPARATOR
769 PACKAGE_NAME
770 PACKAGE_TARNAME
771 PACKAGE_VERSION
772 PACKAGE_STRING
773 PACKAGE_BUGREPORT
774 exec_prefix
775 prefix
776 program_transform_name
777 bindir
778 sbindir
779 libexecdir
780 datarootdir
781 datadir
782 sysconfdir
783 sharedstatedir
784 localstatedir
785 includedir
786 oldincludedir
787 docdir
788 infodir
789 htmldir
790 dvidir
791 pdfdir
792 psdir
793 libdir
794 localedir
795 mandir
796 DEFS
797 ECHO_C
798 ECHO_N
799 ECHO_T
800 LIBS
801 build_alias
802 host_alias
803 target_alias
804 HAVE_BSM_AUDIT
805 LIBTOOL
806 CFLAGS
807 PROGS
808 CPPFLAGS
809 LDFLAGS
810 SUDO_LDFLAGS
811 SUDO_OBJS
812 SUDO_LIBS
813 NET_LIBS
814 AFS_LIBS
815 GETGROUPS_LIB
816 OSDEFS
817 AUTH_OBJS
818 MANTYPE
819 MAN_POSTINSTALL
820 SUDOERS_MODE
821 SUDOERS_UID
822 SUDOERS_GID
823 DEV
824 SELINUX
825 BAMAN
826 LCMAN
827 SEMAN
828 devdir
829 mansectsu
830 mansectform
831 mansrcdir
832 NOEXECFILE
833 NOEXECDIR
834 noexec_file
835 INSTALL_NOEXEC
836 DONT_LEAK_PATH_INFO
837 BSDAUTH_USAGE
838 SELINUX_USAGE
839 LDAP
840 LOGINCAP_USAGE
841 NONUNIX_GROUPS_IMPL
842 timedir
843 timeout
844 password_timeout
845 sudo_umask
846 passprompt
847 long_otp_prompt
848 lecture
849 logfac
850 goodpri
851 badpri
852 loglen
853 ignore_dot
854 mail_no_user
855 mail_no_host
856 mail_no_perms
857 mailto
858 mailsub
859 badpass_message
860 fqdn
861 runas_default
862 env_editor
863 passwd_tries
864 tty_tickets
865 insults
866 root_sudo
867 path_info
868 ldap_conf
869 ldap_secret
870 nsswitch_conf
871 netsvc_conf
872 EGREPPROG
873 CC
874 ac_ct_CC
875 EXEEXT
876 OBJEXT
877 CPP
878 build
879 build_cpu
880 build_vendor
881 build_os
882 host
883 host_cpu
884 host_vendor
885 host_os
886 SED
887 GREP
888 EGREP
889 LN_S
890 ECHO
891 AR
892 RANLIB
893 STRIP
894 DSYMUTIL
895 NMEDIT
896 UNAMEPROG
897 TRPROG
898 NROFFPROG
899 YACC
900 YFLAGS
901 FLEX
902 LIBOBJS
903 KRB5CONFIG
904 LTLIBOBJS'
905 ac_subst_files=''
906       ac_precious_vars='build_alias
907 host_alias
908 target_alias
909 CC
910 CFLAGS
911 LDFLAGS
912 LIBS
913 CPPFLAGS
914 CPP
915 YACC
916 YFLAGS'
917
918
919 # Initialize some variables set by options.
920 ac_init_help=
921 ac_init_version=false
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
924 cache_file=/dev/null
925 exec_prefix=NONE
926 no_create=
927 no_recursion=
928 prefix=NONE
929 program_prefix=NONE
930 program_suffix=NONE
931 program_transform_name=s,x,x,
932 silent=
933 site=
934 srcdir=
935 verbose=
936 x_includes=NONE
937 x_libraries=NONE
938
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir='${exec_prefix}/bin'
946 sbindir='${exec_prefix}/sbin'
947 libexecdir='${exec_prefix}/libexec'
948 datarootdir='${prefix}/share'
949 datadir='${datarootdir}'
950 sysconfdir='${prefix}/etc'
951 sharedstatedir='${prefix}/com'
952 localstatedir='${prefix}/var'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir='${datarootdir}/info'
957 htmldir='${docdir}'
958 dvidir='${docdir}'
959 pdfdir='${docdir}'
960 psdir='${docdir}'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
964
965 ac_prev=
966 ac_dashdash=
967 for ac_option
968 do
969   # If the previous option needs an argument, assign it.
970   if test -n "$ac_prev"; then
971     eval $ac_prev=\$ac_option
972     ac_prev=
973     continue
974   fi
975
976   case $ac_option in
977   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978   *)    ac_optarg=yes ;;
979   esac
980
981   # Accept the important Cygnus configure options, so we can diagnose typos.
982
983   case $ac_dashdash$ac_option in
984   --)
985     ac_dashdash=yes ;;
986
987   -bindir | --bindir | --bindi | --bind | --bin | --bi)
988     ac_prev=bindir ;;
989   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990     bindir=$ac_optarg ;;
991
992   -build | --build | --buil | --bui | --bu)
993     ac_prev=build_alias ;;
994   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995     build_alias=$ac_optarg ;;
996
997   -cache-file | --cache-file | --cache-fil | --cache-fi \
998   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999     ac_prev=cache_file ;;
1000   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002     cache_file=$ac_optarg ;;
1003
1004   --config-cache | -C)
1005     cache_file=config.cache ;;
1006
1007   -datadir | --datadir | --datadi | --datad)
1008     ac_prev=datadir ;;
1009   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010     datadir=$ac_optarg ;;
1011
1012   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013   | --dataroo | --dataro | --datar)
1014     ac_prev=datarootdir ;;
1015   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017     datarootdir=$ac_optarg ;;
1018
1019   -disable-* | --disable-*)
1020     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021     # Reject names that are not valid shell variable names.
1022     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1023       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1024    { (exit 1); exit 1; }; }
1025     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1026     eval enable_$ac_feature=no ;;
1027
1028   -docdir | --docdir | --docdi | --doc | --do)
1029     ac_prev=docdir ;;
1030   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031     docdir=$ac_optarg ;;
1032
1033   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034     ac_prev=dvidir ;;
1035   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036     dvidir=$ac_optarg ;;
1037
1038   -enable-* | --enable-*)
1039     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040     # Reject names that are not valid shell variable names.
1041     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1043    { (exit 1); exit 1; }; }
1044     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1045     eval enable_$ac_feature=\$ac_optarg ;;
1046
1047   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049   | --exec | --exe | --ex)
1050     ac_prev=exec_prefix ;;
1051   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053   | --exec=* | --exe=* | --ex=*)
1054     exec_prefix=$ac_optarg ;;
1055
1056   -gas | --gas | --ga | --g)
1057     # Obsolete; use --with-gas.
1058     with_gas=yes ;;
1059
1060   -help | --help | --hel | --he | -h)
1061     ac_init_help=long ;;
1062   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063     ac_init_help=recursive ;;
1064   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065     ac_init_help=short ;;
1066
1067   -host | --host | --hos | --ho)
1068     ac_prev=host_alias ;;
1069   -host=* | --host=* | --hos=* | --ho=*)
1070     host_alias=$ac_optarg ;;
1071
1072   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073     ac_prev=htmldir ;;
1074   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075   | --ht=*)
1076     htmldir=$ac_optarg ;;
1077
1078   -includedir | --includedir | --includedi | --included | --include \
1079   | --includ | --inclu | --incl | --inc)
1080     ac_prev=includedir ;;
1081   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082   | --includ=* | --inclu=* | --incl=* | --inc=*)
1083     includedir=$ac_optarg ;;
1084
1085   -infodir | --infodir | --infodi | --infod | --info | --inf)
1086     ac_prev=infodir ;;
1087   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088     infodir=$ac_optarg ;;
1089
1090   -libdir | --libdir | --libdi | --libd)
1091     ac_prev=libdir ;;
1092   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093     libdir=$ac_optarg ;;
1094
1095   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096   | --libexe | --libex | --libe)
1097     ac_prev=libexecdir ;;
1098   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099   | --libexe=* | --libex=* | --libe=*)
1100     libexecdir=$ac_optarg ;;
1101
1102   -localedir | --localedir | --localedi | --localed | --locale)
1103     ac_prev=localedir ;;
1104   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105     localedir=$ac_optarg ;;
1106
1107   -localstatedir | --localstatedir | --localstatedi | --localstated \
1108   | --localstate | --localstat | --localsta | --localst | --locals)
1109     ac_prev=localstatedir ;;
1110   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112     localstatedir=$ac_optarg ;;
1113
1114   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115     ac_prev=mandir ;;
1116   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117     mandir=$ac_optarg ;;
1118
1119   -nfp | --nfp | --nf)
1120     # Obsolete; use --without-fp.
1121     with_fp=no ;;
1122
1123   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124   | --no-cr | --no-c | -n)
1125     no_create=yes ;;
1126
1127   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129     no_recursion=yes ;;
1130
1131   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133   | --oldin | --oldi | --old | --ol | --o)
1134     ac_prev=oldincludedir ;;
1135   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138     oldincludedir=$ac_optarg ;;
1139
1140   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141     ac_prev=prefix ;;
1142   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143     prefix=$ac_optarg ;;
1144
1145   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146   | --program-pre | --program-pr | --program-p)
1147     ac_prev=program_prefix ;;
1148   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150     program_prefix=$ac_optarg ;;
1151
1152   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153   | --program-suf | --program-su | --program-s)
1154     ac_prev=program_suffix ;;
1155   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157     program_suffix=$ac_optarg ;;
1158
1159   -program-transform-name | --program-transform-name \
1160   | --program-transform-nam | --program-transform-na \
1161   | --program-transform-n | --program-transform- \
1162   | --program-transform | --program-transfor \
1163   | --program-transfo | --program-transf \
1164   | --program-trans | --program-tran \
1165   | --progr-tra | --program-tr | --program-t)
1166     ac_prev=program_transform_name ;;
1167   -program-transform-name=* | --program-transform-name=* \
1168   | --program-transform-nam=* | --program-transform-na=* \
1169   | --program-transform-n=* | --program-transform-=* \
1170   | --program-transform=* | --program-transfor=* \
1171   | --program-transfo=* | --program-transf=* \
1172   | --program-trans=* | --program-tran=* \
1173   | --progr-tra=* | --program-tr=* | --program-t=*)
1174     program_transform_name=$ac_optarg ;;
1175
1176   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177     ac_prev=pdfdir ;;
1178   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179     pdfdir=$ac_optarg ;;
1180
1181   -psdir | --psdir | --psdi | --psd | --ps)
1182     ac_prev=psdir ;;
1183   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184     psdir=$ac_optarg ;;
1185
1186   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187   | -silent | --silent | --silen | --sile | --sil)
1188     silent=yes ;;
1189
1190   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191     ac_prev=sbindir ;;
1192   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193   | --sbi=* | --sb=*)
1194     sbindir=$ac_optarg ;;
1195
1196   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198   | --sharedst | --shareds | --shared | --share | --shar \
1199   | --sha | --sh)
1200     ac_prev=sharedstatedir ;;
1201   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204   | --sha=* | --sh=*)
1205     sharedstatedir=$ac_optarg ;;
1206
1207   -site | --site | --sit)
1208     ac_prev=site ;;
1209   -site=* | --site=* | --sit=*)
1210     site=$ac_optarg ;;
1211
1212   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213     ac_prev=srcdir ;;
1214   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215     srcdir=$ac_optarg ;;
1216
1217   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218   | --syscon | --sysco | --sysc | --sys | --sy)
1219     ac_prev=sysconfdir ;;
1220   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222     sysconfdir=$ac_optarg ;;
1223
1224   -target | --target | --targe | --targ | --tar | --ta | --t)
1225     ac_prev=target_alias ;;
1226   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227     target_alias=$ac_optarg ;;
1228
1229   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230     verbose=yes ;;
1231
1232   -version | --version | --versio | --versi | --vers | -V)
1233     ac_init_version=: ;;
1234
1235   -with-* | --with-*)
1236     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       { echo "$as_me: error: invalid package name: $ac_package" >&2
1240    { (exit 1); exit 1; }; }
1241     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242     eval with_$ac_package=\$ac_optarg ;;
1243
1244   -without-* | --without-*)
1245     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246     # Reject names that are not valid shell variable names.
1247     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       { echo "$as_me: error: invalid package name: $ac_package" >&2
1249    { (exit 1); exit 1; }; }
1250     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1251     eval with_$ac_package=no ;;
1252
1253   --x)
1254     # Obsolete; use --with-x.
1255     with_x=yes ;;
1256
1257   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258   | --x-incl | --x-inc | --x-in | --x-i)
1259     ac_prev=x_includes ;;
1260   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262     x_includes=$ac_optarg ;;
1263
1264   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266     ac_prev=x_libraries ;;
1267   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269     x_libraries=$ac_optarg ;;
1270
1271   -*) { echo "$as_me: error: unrecognized option: $ac_option
1272 Try \`$0 --help' for more information." >&2
1273    { (exit 1); exit 1; }; }
1274     ;;
1275
1276   *=*)
1277     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1280       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1281    { (exit 1); exit 1; }; }
1282     eval $ac_envvar=\$ac_optarg
1283     export $ac_envvar ;;
1284
1285   *)
1286     # FIXME: should be removed in autoconf 3.0.
1287     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1291     ;;
1292
1293   esac
1294 done
1295
1296 if test -n "$ac_prev"; then
1297   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298   { echo "$as_me: error: missing argument to $ac_option" >&2
1299    { (exit 1); exit 1; }; }
1300 fi
1301
1302 # Be sure to have absolute directory names.
1303 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304                 datadir sysconfdir sharedstatedir localstatedir includedir \
1305                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306                 libdir localedir mandir
1307 do
1308   eval ac_val=\$$ac_var
1309   case $ac_val in
1310     [\\/$]* | ?:[\\/]* )  continue;;
1311     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312   esac
1313   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1314    { (exit 1); exit 1; }; }
1315 done
1316
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1323
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326   if test "x$build_alias" = x; then
1327     cross_compiling=maybe
1328     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1329     If a cross compiler is detected then cross compile mode will be used." >&2
1330   elif test "x$build_alias" != "x$host_alias"; then
1331     cross_compiling=yes
1332   fi
1333 fi
1334
1335 ac_tool_prefix=
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338 test "$silent" = yes && exec 6>/dev/null
1339
1340
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344   { echo "$as_me: error: Working directory cannot be determined" >&2
1345    { (exit 1); exit 1; }; }
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347   { echo "$as_me: error: pwd does not report name of working directory" >&2
1348    { (exit 1); exit 1; }; }
1349
1350
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353   ac_srcdir_defaulted=yes
1354   # Try the directory containing this script, then the parent directory.
1355   ac_confdir=`$as_dirname -- "$0" ||
1356 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357          X"$0" : 'X\(//\)[^/]' \| \
1358          X"$0" : 'X\(//\)$' \| \
1359          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1360 echo X"$0" |
1361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)[^/].*/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\/\)$/{
1370             s//\1/
1371             q
1372           }
1373           /^X\(\/\).*/{
1374             s//\1/
1375             q
1376           }
1377           s/.*/./; q'`
1378   srcdir=$ac_confdir
1379   if test ! -r "$srcdir/$ac_unique_file"; then
1380     srcdir=..
1381   fi
1382 else
1383   ac_srcdir_defaulted=no
1384 fi
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1388    { (exit 1); exit 1; }; }
1389 fi
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 ac_abs_confdir=`(
1392         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1393    { (exit 1); exit 1; }; }
1394         pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397   srcdir=.
1398 fi
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407   eval ac_env_${ac_var}_value=\$${ac_var}
1408   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1411
1412 #
1413 # Report the --help message.
1414 #
1415 if test "$ac_init_help" = "long"; then
1416   # Omit some internal or obsolete options to make the list less imposing.
1417   # This message is too long to be a string in the A/UX 3.1 sh.
1418   cat <<_ACEOF
1419 \`configure' configures sudo 1.7.2p1 to adapt to many kinds of systems.
1420
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE.  See below for descriptions of some of the useful variables.
1425
1426 Defaults for the options are specified in brackets.
1427
1428 Configuration:
1429   -h, --help              display this help and exit
1430       --help=short        display options specific to this package
1431       --help=recursive    display the short help of all the included packages
1432   -V, --version           display version information and exit
1433   -q, --quiet, --silent   do not print \`checking...' messages
1434       --cache-file=FILE   cache test results in FILE [disabled]
1435   -C, --config-cache      alias for \`--cache-file=config.cache'
1436   -n, --no-create         do not create output files
1437       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1438
1439 Installation directories:
1440   --prefix=PREFIX         install architecture-independent files in PREFIX
1441                           [$ac_default_prefix]
1442   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1443                           [PREFIX]
1444
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1449
1450 For better control, use the options below.
1451
1452 Fine tuning of the installation directories:
1453   --bindir=DIR           user executables [EPREFIX/bin]
1454   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1455   --libexecdir=DIR       program executables [EPREFIX/libexec]
1456   --sysconfdir=DIR       read-only single-machine data [etc]
1457   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1458   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1459   --libdir=DIR           object code libraries [EPREFIX/lib]
1460   --includedir=DIR       C header files [PREFIX/include]
1461   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1462   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1463   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1464   --infodir=DIR          info documentation [DATAROOTDIR/info]
1465   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1466   --mandir=DIR           man documentation [DATAROOTDIR/man]
1467   --docdir=DIR           documentation root [DATAROOTDIR/doc/sudo]
1468   --htmldir=DIR          html documentation [DOCDIR]
1469   --dvidir=DIR           dvi documentation [DOCDIR]
1470   --pdfdir=DIR           pdf documentation [DOCDIR]
1471   --psdir=DIR            ps documentation [DOCDIR]
1472 _ACEOF
1473
1474   cat <<\_ACEOF
1475
1476 System types:
1477   --build=BUILD     configure for building on BUILD [guessed]
1478   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1479 _ACEOF
1480 fi
1481
1482 if test -n "$ac_init_help"; then
1483   case $ac_init_help in
1484      short | recursive ) echo "Configuration of sudo 1.7.2p1:";;
1485    esac
1486   cat <<\_ACEOF
1487
1488 Optional Features:
1489   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491   --disable-authentication
1492                           Do not require authentication by default
1493   --disable-root-mailer   Don't run the mailer as root, run as the user
1494   --disable-setreuid      Don't try to use the setreuid() function
1495   --disable-setresuid     Don't try to use the setresuid() function
1496   --disable-shadow        Never use shadow passwords
1497   --disable-root-sudo     Don't allow root to run sudo
1498   --enable-log-host       Log the hostname in the log file
1499   --enable-noargs-shell   If sudo is given no arguments run a shell
1500   --enable-shell-sets-home
1501                           Set $HOME to target user in shell mode
1502   --disable-path-info     Print 'command not allowed' not 'command not found'
1503   --enable-env-debug      Whether to enable environment debugging.
1504   --enable-gss-krb5-ccache-name
1505                           Use GSS-API to set the Kerberos V cred cache name
1506   --enable-static[=PKGS]  build static libraries [default=no]
1507   --enable-shared[=PKGS]  build shared libraries [default=yes]
1508   --enable-fast-install[=PKGS]
1509                           optimize for fast installation [default=yes]
1510   --disable-libtool-lock  avoid locking (might break parallel builds)
1511   --disable-sia           Disable SIA on Digital UNIX
1512   --disable-pam-session   Disable PAM session support
1513
1514 Optional Packages:
1515   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1516   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1517   --with-otp-only         deprecated
1518   --with-alertmail        deprecated
1519   --with-CC               C compiler to use
1520   --with-rpath            pass -R flag in addition to -L for lib paths
1521   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1522   --with-bsm-audit        enable BSM audit support
1523   --with-incpath          additional places to look for include files
1524   --with-libpath          additional places to look for libraries
1525   --with-libraries        additional libraries to link with
1526   --with-devel            add development options
1527   --with-efence           link with -lefence for malloc() debugging
1528   --with-csops            add CSOps standard options
1529   --without-passwd        don't use passwd/shadow file for authentication
1530   --with-skey=DIR         enable S/Key support
1531   --with-opie=DIR         enable OPIE support
1532   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1533   --with-SecurID=DIR      enable SecurID support
1534   --with-fwtk=DIR         enable FWTK AuthSRV support
1535   --with-kerb4=DIR        enable Kerberos IV support
1536   --with-kerb5=DIR        enable Kerberos V support
1537   --with-aixauth          enable AIX general authentication support
1538   --with-pam              enable PAM support
1539   --with-AFS              enable AFS support
1540   --with-DCE              enable DCE support
1541   --with-logincap         enable BSD login class support
1542   --with-bsdauth          enable BSD authentication support
1543   --with-project          enable Solaris project support
1544   --without-lecture       don't print lecture for first-time sudoer
1545   --with-logging          log via syslog, file, or both
1546   --with-logfac           syslog facility to log with (default is "local2")
1547   --with-goodpri          syslog priority for commands (def is "notice")
1548   --with-badpri           syslog priority for failures (def is "alert")
1549   --with-logpath          path to the sudo log file
1550   --with-loglen           maximum length of a log file line (default is 80)
1551   --with-ignore-dot       ignore '.' in the PATH
1552   --without-mail-if-no-user
1553                           do not send mail if user not in sudoers
1554   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1555   --with-mail-if-noperms  send mail if user not allowed to run command
1556   --with-mailto           who should get sudo mail (default is "root")
1557   --with-mailsubject      subject of sudo mail
1558   --with-passprompt       default password prompt
1559   --with-badpass-message  message the user sees when the password is wrong
1560   --with-fqdn             expect fully qualified hosts in sudoers
1561   --with-timedir          path to the sudo timestamp dir
1562   --with-sendmail         set path to sendmail
1563   --without-sendmail      do not send mail at all
1564   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1565   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1566   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1567   --with-umask            umask with which the prog should run (default is
1568                           022)
1569   --without-umask         Preserves the umask of the user invoking sudo.
1570   --with-runas-default    User to run commands as (default is "root")
1571   --with-exempt=group     no passwd needed for users in this group
1572   --with-editor=path      Default editor for visudo (defaults to vi)
1573   --with-env-editor       Use the environment variable EDITOR for visudo
1574   --with-passwd-tries     number of tries to enter password (default is 3)
1575   --with-timeout          minutes before sudo asks for passwd again (def is 5
1576                           minutes)
1577   --with-password-timeout passwd prompt timeout in minutes (default is 5
1578                           minutes)
1579   --with-tty-tickets      use a different ticket file for each tty
1580   --with-insults          insult the user for entering an incorrect password
1581   --with-all-insults      include all the sudo insult sets
1582   --with-classic-insults  include the insults from the "classic" sudo
1583   --with-csops-insults    include CSOps insults
1584   --with-hal-insults      include 2001-like insults
1585   --with-goons-insults    include the insults from the "Goon Show"
1586   --with-nsswitch=PATH    path to nsswitch.conf
1587   --with-ldap=DIR         enable LDAP support
1588   --with-ldap-conf-file   path to LDAP configuration file
1589   --with-ldap-secret-file path to LDAP secret password file
1590   --with-pc-insults       replace politically incorrect insults with less
1591                           offensive ones
1592   --with-secure-path      override the user's path with a built-in one
1593   --without-interfaces    don't try to read the ip addr of ether interfaces
1594   --with-stow             properly handle GNU stow packaging
1595   --with-askpass=PATH     Fully qualified pathname of askpass helper
1596   --with-libvas=NAME      Name of the libvas shared library
1597                           (default=libvas.so)
1598   --with-libvas-rpath=PATH
1599                           Path to look for libvas in [default=/opt/quest/lib]
1600   --with-selinux          enable SELinux support
1601   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1602   --with-pic              try to use only PIC/non-PIC objects [default=use
1603                           both]
1604   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1605   --with-netsvc=PATH      path to netsvc.conf
1606
1607 Some influential environment variables:
1608   CC          C compiler command
1609   CFLAGS      C compiler flags
1610   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1611               nonstandard directory <lib dir>
1612   LIBS        libraries to pass to the linker, e.g. -l<library>
1613   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1614               you have headers in a nonstandard directory <include dir>
1615   CPP         C preprocessor
1616   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1617               the first program found out of: `bison -y', `byacc', `yacc'.
1618   YFLAGS      The list of arguments that will be passed by default to $YACC.
1619               This script will default YFLAGS to the empty string to avoid a
1620               default value of `-d' given by some make applications.
1621
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1624
1625 Report bugs to <http://www.sudo.ws/bugs/>.
1626 _ACEOF
1627 ac_status=$?
1628 fi
1629
1630 if test "$ac_init_help" = "recursive"; then
1631   # If there are subdirs, report their specific --help.
1632   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633     test -d "$ac_dir" || continue
1634     ac_builddir=.
1635
1636 case "$ac_dir" in
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *)
1639   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1640   # A ".." for each directory in $ac_dir_suffix.
1641   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1642   case $ac_top_builddir_sub in
1643   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645   esac ;;
1646 esac
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1651
1652 case $srcdir in
1653   .)  # We are building in place.
1654     ac_srcdir=.
1655     ac_top_srcdir=$ac_top_builddir_sub
1656     ac_abs_top_srcdir=$ac_pwd ;;
1657   [\\/]* | ?:[\\/]* )  # Absolute name.
1658     ac_srcdir=$srcdir$ac_dir_suffix;
1659     ac_top_srcdir=$srcdir
1660     ac_abs_top_srcdir=$srcdir ;;
1661   *) # Relative name.
1662     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663     ac_top_srcdir=$ac_top_build_prefix$srcdir
1664     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 esac
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668     cd "$ac_dir" || { ac_status=$?; continue; }
1669     # Check for guested configure.
1670     if test -f "$ac_srcdir/configure.gnu"; then
1671       echo &&
1672       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673     elif test -f "$ac_srcdir/configure"; then
1674       echo &&
1675       $SHELL "$ac_srcdir/configure" --help=recursive
1676     else
1677       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678     fi || ac_status=$?
1679     cd "$ac_pwd" || { ac_status=$?; break; }
1680   done
1681 fi
1682
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1685   cat <<\_ACEOF
1686 sudo configure 1.7.2p1
1687 generated by GNU Autoconf 2.61
1688
1689 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1690 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1691 This configure script is free software; the Free Software Foundation
1692 gives unlimited permission to copy, distribute and modify it.
1693 _ACEOF
1694   exit
1695 fi
1696 cat >config.log <<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1699
1700 It was created by sudo $as_me 1.7.2p1, which was
1701 generated by GNU Autoconf 2.61.  Invocation command line was
1702
1703   $ $0 $@
1704
1705 _ACEOF
1706 exec 5>>config.log
1707 {
1708 cat <<_ASUNAME
1709 ## --------- ##
1710 ## Platform. ##
1711 ## --------- ##
1712
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1721
1722 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1723 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1726 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1727 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1728 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1729
1730 _ASUNAME
1731
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735   IFS=$as_save_IFS
1736   test -z "$as_dir" && as_dir=.
1737   echo "PATH: $as_dir"
1738 done
1739 IFS=$as_save_IFS
1740
1741 } >&5
1742
1743 cat >&5 <<_ACEOF
1744
1745
1746 ## ----------- ##
1747 ## Core tests. ##
1748 ## ----------- ##
1749
1750 _ACEOF
1751
1752
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1758 ac_configure_args=
1759 ac_configure_args0=
1760 ac_configure_args1=
1761 ac_must_keep_next=false
1762 for ac_pass in 1 2
1763 do
1764   for ac_arg
1765   do
1766     case $ac_arg in
1767     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769     | -silent | --silent | --silen | --sile | --sil)
1770       continue ;;
1771     *\'*)
1772       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773     esac
1774     case $ac_pass in
1775     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776     2)
1777       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778       if test $ac_must_keep_next = true; then
1779         ac_must_keep_next=false # Got value, back to normal.
1780       else
1781         case $ac_arg in
1782           *=* | --config-cache | -C | -disable-* | --disable-* \
1783           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785           | -with-* | --with-* | -without-* | --without-* | --x)
1786             case "$ac_configure_args0 " in
1787               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788             esac
1789             ;;
1790           -* ) ac_must_keep_next=true ;;
1791         esac
1792       fi
1793       ac_configure_args="$ac_configure_args '$ac_arg'"
1794       ;;
1795     esac
1796   done
1797 done
1798 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log.  We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807   # Save into config.log some information that might help in debugging.
1808   {
1809     echo
1810
1811     cat <<\_ASBOX
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1815 _ASBOX
1816     echo
1817     # The following way of writing the cache mishandles newlines in values,
1818 (
1819   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820     eval ac_val=\$$ac_var
1821     case $ac_val in #(
1822     *${as_nl}*)
1823       case $ac_var in #(
1824       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826       esac
1827       case $ac_var in #(
1828       _ | IFS | as_nl) ;; #(
1829       *) $as_unset $ac_var ;;
1830       esac ;;
1831     esac
1832   done
1833   (set) 2>&1 |
1834     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835     *${as_nl}ac_space=\ *)
1836       sed -n \
1837         "s/'\''/'\''\\\\'\'''\''/g;
1838           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839       ;; #(
1840     *)
1841       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1842       ;;
1843     esac |
1844     sort
1845 )
1846     echo
1847
1848     cat <<\_ASBOX
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1852 _ASBOX
1853     echo
1854     for ac_var in $ac_subst_vars
1855     do
1856       eval ac_val=\$$ac_var
1857       case $ac_val in
1858       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859       esac
1860       echo "$ac_var='\''$ac_val'\''"
1861     done | sort
1862     echo
1863
1864     if test -n "$ac_subst_files"; then
1865       cat <<\_ASBOX
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1869 _ASBOX
1870       echo
1871       for ac_var in $ac_subst_files
1872       do
1873         eval ac_val=\$$ac_var
1874         case $ac_val in
1875         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876         esac
1877         echo "$ac_var='\''$ac_val'\''"
1878       done | sort
1879       echo
1880     fi
1881
1882     if test -s confdefs.h; then
1883       cat <<\_ASBOX
1884 ## ----------- ##
1885 ## confdefs.h. ##
1886 ## ----------- ##
1887 _ASBOX
1888       echo
1889       cat confdefs.h
1890       echo
1891     fi
1892     test "$ac_signal" != 0 &&
1893       echo "$as_me: caught signal $ac_signal"
1894     echo "$as_me: exit $exit_status"
1895   } >&5
1896   rm -f core *.core core.conftest.* &&
1897     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898     exit $exit_status
1899 ' 0
1900 for ac_signal in 1 2 13 15; do
1901   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 done
1903 ac_signal=0
1904
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1907
1908 # Predefined preprocessor variables.
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 _ACEOF
1933
1934
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer explicitly selected file to automatically selected ones.
1937 if test -n "$CONFIG_SITE"; then
1938   set x "$CONFIG_SITE"
1939 elif test "x$prefix" != xNONE; then
1940   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941 else
1942   set x "$ac_default_prefix/share/config.site" \
1943         "$ac_default_prefix/etc/config.site"
1944 fi
1945 shift
1946 for ac_site_file
1947 do
1948   if test -r "$ac_site_file"; then
1949     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 echo "$as_me: loading site script $ac_site_file" >&6;}
1951     sed 's/^/| /' "$ac_site_file" >&5
1952     . "$ac_site_file"
1953   fi
1954 done
1955
1956 if test -r "$cache_file"; then
1957   # Some versions of bash will fail to source /dev/null (special
1958   # files actually), so we avoid doing that.
1959   if test -f "$cache_file"; then
1960     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 echo "$as_me: loading cache $cache_file" >&6;}
1962     case $cache_file in
1963       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964       *)                      . "./$cache_file";;
1965     esac
1966   fi
1967 else
1968   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 echo "$as_me: creating cache $cache_file" >&6;}
1970   >$cache_file
1971 fi
1972
1973 # Check that the precious variables saved in the cache have kept the same
1974 # value.
1975 ac_cache_corrupted=false
1976 for ac_var in $ac_precious_vars; do
1977   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978   eval ac_new_set=\$ac_env_${ac_var}_set
1979   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980   eval ac_new_val=\$ac_env_${ac_var}_value
1981   case $ac_old_set,$ac_new_set in
1982     set,)
1983       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985       ac_cache_corrupted=: ;;
1986     ,set)
1987       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989       ac_cache_corrupted=: ;;
1990     ,);;
1991     *)
1992       if test "x$ac_old_val" != "x$ac_new_val"; then
1993         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1996 echo "$as_me:   former value:  $ac_old_val" >&2;}
1997         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1998 echo "$as_me:   current value: $ac_new_val" >&2;}
1999         ac_cache_corrupted=:
2000       fi;;
2001   esac
2002   # Pass precious variables to config.status.
2003   if test "$ac_new_set" = set; then
2004     case $ac_new_val in
2005     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006     *) ac_arg=$ac_var=$ac_new_val ;;
2007     esac
2008     case " $ac_configure_args " in
2009       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2010       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011     esac
2012   fi
2013 done
2014 if $ac_cache_corrupted; then
2015   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019    { (exit 1); exit 1; }; }
2020 fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046 ac_ext=c
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053 ac_config_headers="$ac_config_headers config.h pathnames.h"
2054
2055 { echo "$as_me:$LINENO: Configuring Sudo version $PACKAGE_VERSION" >&5
2056 echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
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
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125 timeout=5
2126 password_timeout=5
2127 sudo_umask=0022
2128 passprompt="Password:"
2129 long_otp_prompt=off
2130 lecture=once
2131 logfac=local2
2132 goodpri=notice
2133 badpri=alert
2134 loglen=80
2135 ignore_dot=off
2136 mail_no_user=on
2137 mail_no_host=off
2138 mail_no_perms=off
2139 mailto=root
2140 mailsub='*** SECURITY information for %h ***'
2141 badpass_message='Sorry, try again.'
2142 fqdn=off
2143 runas_default=root
2144 env_editor=off
2145 passwd_tries=3
2146 tty_tickets=off
2147 insults=off
2148 root_sudo=on
2149 path_info=on
2150 INSTALL_NOEXEC=
2151 devdir='$(srcdir)'
2152 PROGS="sudo visudo"
2153 : ${MANTYPE='man'}
2154 : ${mansrcdir='.'}
2155 : ${SUDOERS_MODE='0440'}
2156 : ${SUDOERS_UID='0'}
2157 : ${SUDOERS_GID='0'}
2158 DEV="#"
2159 LDAP="#"
2160 SELINUX="#"
2161 BAMAN='.\" '
2162 LCMAN='.\" '
2163 SEMAN='.\" '
2164 AUTH_OBJS=
2165 AUTH_REG=
2166 AUTH_EXCL=
2167 AUTH_EXCL_DEF=
2168 AUTH_DEF=passwd
2169
2170 CHECKSHADOW=true
2171 shadow_defs=
2172 shadow_funcs=
2173 shadow_libs=
2174 shadow_libs_optional=
2175
2176 if test X"$prefix" = X"NONE"; then
2177     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2178 else
2179     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2180 fi
2181 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2182 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2183 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2184
2185
2186
2187 # Check whether --with-otp-only was given.
2188 if test "${with_otp_only+set}" = set; then
2189   withval=$with_otp_only; case $with_otp_only in
2190     yes)        with_passwd="no"
2191                 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2192 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2193                 ;;
2194 esac
2195 fi
2196
2197
2198
2199 # Check whether --with-alertmail was given.
2200 if test "${with_alertmail+set}" = set; then
2201   withval=$with_alertmail; case $with_alertmail in
2202     *)          with_mailto="$with_alertmail"
2203                 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2204 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2205                 ;;
2206 esac
2207 fi
2208
2209
2210
2211
2212 # Check whether --with-CC was given.
2213 if test "${with_CC+set}" = set; then
2214   withval=$with_CC; case $with_CC in
2215     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2216 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2217    { (exit 1); exit 1; }; }
2218                 ;;
2219     no)         { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2220 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2221    { (exit 1); exit 1; }; }
2222                 ;;
2223     *)          CC=$with_CC
2224                 ;;
2225 esac
2226 fi
2227
2228
2229
2230 # Check whether --with-rpath was given.
2231 if test "${with_rpath+set}" = set; then
2232   withval=$with_rpath; case $with_rpath in
2233     yes|no)     ;;
2234     *)          { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2235 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2236    { (exit 1); exit 1; }; }
2237                 ;;
2238 esac
2239 fi
2240
2241
2242
2243 # Check whether --with-blibpath was given.
2244 if test "${with_blibpath+set}" = set; then
2245   withval=$with_blibpath; case $with_blibpath in
2246     yes|no)     ;;
2247     *)          { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2248 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2249                 ;;
2250 esac
2251 fi
2252
2253
2254
2255 # Check whether --with-bsm-audit was given.
2256 if test "${with_bsm_audit+set}" = set; then
2257   withval=$with_bsm_audit; case $with_bsm_audit in
2258     yes)        cat >>confdefs.h <<\_ACEOF
2259 #define HAVE_BSM_AUDIT 1
2260 _ACEOF
2261
2262                 SUDO_LIBS="${SUDO_LIBS} -lbsm"
2263                 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
2264                 ;;
2265     no)         ;;
2266     *)          { { echo "$as_me:$LINENO: error: \"--with-bsm-audit does not take an argument.\"" >&5
2267 echo "$as_me: error: \"--with-bsm-audit does not take an argument.\"" >&2;}
2268    { (exit 1); exit 1; }; }
2269                 ;;
2270 esac
2271 fi
2272
2273
2274
2275 # Check whether --with-incpath was given.
2276 if test "${with_incpath+set}" = set; then
2277   withval=$with_incpath; case $with_incpath in
2278     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2279 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2280    { (exit 1); exit 1; }; }
2281                 ;;
2282     no)         { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2283 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2284    { (exit 1); exit 1; }; }
2285                 ;;
2286     *)          { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2287 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2288                 for i in ${with_incpath}; do
2289                     CPPFLAGS="${CPPFLAGS} -I${i}"
2290                 done
2291                 ;;
2292 esac
2293 fi
2294
2295
2296
2297 # Check whether --with-libpath was given.
2298 if test "${with_libpath+set}" = set; then
2299   withval=$with_libpath; case $with_libpath in
2300     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2301 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2302    { (exit 1); exit 1; }; }
2303                 ;;
2304     no)         { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2305 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2306    { (exit 1); exit 1; }; }
2307                 ;;
2308     *)          { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2309 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2310                 ;;
2311 esac
2312 fi
2313
2314
2315
2316 # Check whether --with-libraries was given.
2317 if test "${with_libraries+set}" = set; then
2318   withval=$with_libraries; case $with_libraries in
2319     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2320 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2321    { (exit 1); exit 1; }; }
2322                 ;;
2323     no)         { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2324 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2325    { (exit 1); exit 1; }; }
2326                 ;;
2327     *)          { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2328 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2329                 ;;
2330 esac
2331 fi
2332
2333
2334
2335 # Check whether --with-devel was given.
2336 if test "${with_devel+set}" = set; then
2337   withval=$with_devel; case $with_devel in
2338     yes)        { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2339 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2340                 PROGS="${PROGS} testsudoers"
2341                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2342                 DEV=""
2343                 devdir=.
2344                 ;;
2345     no)         ;;
2346     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2347 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2348                 ;;
2349 esac
2350 fi
2351
2352
2353
2354 # Check whether --with-efence was given.
2355 if test "${with_efence+set}" = set; then
2356   withval=$with_efence; case $with_efence in
2357     yes)        { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2358 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2359                 LIBS="${LIBS} -lefence"
2360                 if test -f /usr/local/lib/libefence.a; then
2361                     with_libpath="${with_libpath} /usr/local/lib"
2362                 fi
2363                 ;;
2364     no)         ;;
2365     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2366 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2367                 ;;
2368 esac
2369 fi
2370
2371
2372
2373 # Check whether --with-csops was given.
2374 if test "${with_csops+set}" = set; then
2375   withval=$with_csops; case $with_csops in
2376     yes)        { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2377 echo "$as_me: Adding CSOps standard options" >&6;}
2378                 CHECKSIA=false
2379                 with_ignore_dot=yes
2380                 insults=on
2381                 with_classic_insults=yes
2382                 with_csops_insults=yes
2383                 with_env_editor=yes
2384                 : ${mansectsu='8'}
2385                 : ${mansectform='5'}
2386                 ;;
2387     no)         ;;
2388     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2389 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2390                 ;;
2391 esac
2392 fi
2393
2394
2395
2396 # Check whether --with-passwd was given.
2397 if test "${with_passwd+set}" = set; then
2398   withval=$with_passwd; case $with_passwd in
2399     yes|no)     { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2400 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2401                 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2402 echo "${ECHO_T}$with_passwd" >&6; }
2403                 AUTH_DEF=""
2404                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2405                 ;;
2406     *)          { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2407 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2408    { (exit 1); exit 1; }; }
2409                 ;;
2410 esac
2411 fi
2412
2413
2414
2415 # Check whether --with-skey was given.
2416 if test "${with_skey+set}" = set; then
2417   withval=$with_skey; case $with_skey in
2418     no)         with_skey=""
2419                 ;;
2420     *)          cat >>confdefs.h <<\_ACEOF
2421 #define HAVE_SKEY 1
2422 _ACEOF
2423
2424                 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2425 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2426                 { echo "$as_me:$LINENO: result: yes" >&5
2427 echo "${ECHO_T}yes" >&6; }
2428                 AUTH_REG="$AUTH_REG S/Key"
2429                 ;;
2430 esac
2431 fi
2432
2433
2434
2435 # Check whether --with-opie was given.
2436 if test "${with_opie+set}" = set; then
2437   withval=$with_opie; case $with_opie in
2438     no)         with_opie=""
2439                 ;;
2440     *)          cat >>confdefs.h <<\_ACEOF
2441 #define HAVE_OPIE 1
2442 _ACEOF
2443
2444                 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2445 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2446                 { echo "$as_me:$LINENO: result: yes" >&5
2447 echo "${ECHO_T}yes" >&6; }
2448                 AUTH_REG="$AUTH_REG NRL_OPIE"
2449                 ;;
2450 esac
2451 fi
2452
2453
2454
2455 # Check whether --with-long-otp-prompt was given.
2456 if test "${with_long_otp_prompt+set}" = set; then
2457   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2458     yes)        cat >>confdefs.h <<\_ACEOF
2459 #define LONG_OTP_PROMPT 1
2460 _ACEOF
2461
2462                 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2463 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2464                 { echo "$as_me:$LINENO: result: yes" >&5
2465 echo "${ECHO_T}yes" >&6; }
2466                 long_otp_prompt=on
2467                 ;;
2468     no)         long_otp_prompt=off
2469                 ;;
2470     *)          { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2471 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2472    { (exit 1); exit 1; }; }
2473                 ;;
2474 esac
2475 fi
2476
2477
2478
2479 # Check whether --with-SecurID was given.
2480 if test "${with_SecurID+set}" = set; then
2481   withval=$with_SecurID; case $with_SecurID in
2482     no)         with_SecurID="";;
2483     *)          cat >>confdefs.h <<\_ACEOF
2484 #define HAVE_SECURID 1
2485 _ACEOF
2486
2487                 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2488 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2489                 { echo "$as_me:$LINENO: result: yes" >&5
2490 echo "${ECHO_T}yes" >&6; }
2491                 AUTH_EXCL="$AUTH_EXCL SecurID"
2492                 ;;
2493 esac
2494 fi
2495
2496
2497
2498 # Check whether --with-fwtk was given.
2499 if test "${with_fwtk+set}" = set; then
2500   withval=$with_fwtk; case $with_fwtk in
2501     no)         with_fwtk="";;
2502     *)          cat >>confdefs.h <<\_ACEOF
2503 #define HAVE_FWTK 1
2504 _ACEOF
2505
2506                 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2507 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2508                 { echo "$as_me:$LINENO: result: yes" >&5
2509 echo "${ECHO_T}yes" >&6; }
2510                 AUTH_EXCL="$AUTH_EXCL FWTK"
2511                 ;;
2512 esac
2513 fi
2514
2515
2516
2517 # Check whether --with-kerb4 was given.
2518 if test "${with_kerb4+set}" = set; then
2519   withval=$with_kerb4; case $with_kerb4 in
2520     no)         with_kerb4="";;
2521     *)          { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2522 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2523                 { echo "$as_me:$LINENO: result: yes" >&5
2524 echo "${ECHO_T}yes" >&6; }
2525                 AUTH_REG="$AUTH_REG kerb4"
2526                 ;;
2527 esac
2528 fi
2529
2530
2531
2532 # Check whether --with-kerb5 was given.
2533 if test "${with_kerb5+set}" = set; then
2534   withval=$with_kerb5; case $with_kerb5 in
2535     no)         with_kerb5="";;
2536     *)          { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2537 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2538                 { echo "$as_me:$LINENO: result: yes" >&5
2539 echo "${ECHO_T}yes" >&6; }
2540                 AUTH_REG="$AUTH_REG kerb5"
2541                 ;;
2542 esac
2543 fi
2544
2545
2546
2547 # Check whether --with-aixauth was given.
2548 if test "${with_aixauth+set}" = set; then
2549   withval=$with_aixauth; case $with_aixauth in
2550     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2551     no)         ;;
2552     *)          { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2553 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2554    { (exit 1); exit 1; }; }
2555                 ;;
2556 esac
2557 fi
2558
2559
2560
2561 # Check whether --with-pam was given.
2562 if test "${with_pam+set}" = set; then
2563   withval=$with_pam; case $with_pam in
2564     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
2565     no)         ;;
2566     *)          { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2567 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2568    { (exit 1); exit 1; }; }
2569                 ;;
2570 esac
2571 fi
2572
2573
2574
2575 # Check whether --with-AFS was given.
2576 if test "${with_AFS+set}" = set; then
2577   withval=$with_AFS; case $with_AFS in
2578     yes)        cat >>confdefs.h <<\_ACEOF
2579 #define HAVE_AFS 1
2580 _ACEOF
2581
2582                 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2583 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2584                 { echo "$as_me:$LINENO: result: yes" >&5
2585 echo "${ECHO_T}yes" >&6; }
2586                 AUTH_REG="$AUTH_REG AFS"
2587                 ;;
2588     no)         ;;
2589     *)          { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2590 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2591    { (exit 1); exit 1; }; }
2592                 ;;
2593 esac
2594 fi
2595
2596
2597
2598 # Check whether --with-DCE was given.
2599 if test "${with_DCE+set}" = set; then
2600   withval=$with_DCE; case $with_DCE in
2601     yes)        cat >>confdefs.h <<\_ACEOF
2602 #define HAVE_DCE 1
2603 _ACEOF
2604
2605                 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2606 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2607                 { echo "$as_me:$LINENO: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6; }
2609                 AUTH_REG="$AUTH_REG DCE"
2610                 ;;
2611     no)         ;;
2612     *)          { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2613 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2614    { (exit 1); exit 1; }; }
2615                 ;;
2616 esac
2617 fi
2618
2619
2620
2621 # Check whether --with-logincap was given.
2622 if test "${with_logincap+set}" = set; then
2623   withval=$with_logincap; case $with_logincap in
2624     yes|no)     ;;
2625     *)          { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2626 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2627    { (exit 1); exit 1; }; }
2628                 ;;
2629 esac
2630 fi
2631
2632
2633
2634 # Check whether --with-bsdauth was given.
2635 if test "${with_bsdauth+set}" = set; then
2636   withval=$with_bsdauth; case $with_bsdauth in
2637     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2638     no)         ;;
2639     *)          { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2640 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2641    { (exit 1); exit 1; }; }
2642                 ;;
2643 esac
2644 fi
2645
2646
2647
2648 # Check whether --with-project was given.
2649 if test "${with_project+set}" = set; then
2650   withval=$with_project; case $with_project in
2651     yes|no)     ;;
2652     no) ;;
2653     *)          { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2654 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2655    { (exit 1); exit 1; }; }
2656                 ;;
2657 esac
2658 fi
2659
2660
2661 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2662 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2663
2664 # Check whether --with-lecture was given.
2665 if test "${with_lecture+set}" = set; then
2666   withval=$with_lecture; case $with_lecture in
2667     yes|short|always)   lecture=once
2668                 ;;
2669     no|none|never)      lecture=never
2670                 ;;
2671     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2672 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2673    { (exit 1); exit 1; }; }
2674                 ;;
2675 esac
2676 fi
2677
2678 if test "$lecture" = "once"; then
2679     { echo "$as_me:$LINENO: result: yes" >&5
2680 echo "${ECHO_T}yes" >&6; }
2681 else
2682     cat >>confdefs.h <<\_ACEOF
2683 #define NO_LECTURE 1
2684 _ACEOF
2685
2686     { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2688 fi
2689
2690 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2691 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2692
2693 # Check whether --with-logging was given.
2694 if test "${with_logging+set}" = set; then
2695   withval=$with_logging; case $with_logging in
2696     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2697 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2698    { (exit 1); exit 1; }; }
2699                 ;;
2700     no)         { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2701 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2702    { (exit 1); exit 1; }; }
2703                 ;;
2704     syslog)     cat >>confdefs.h <<\_ACEOF
2705 #define LOGGING SLOG_SYSLOG
2706 _ACEOF
2707
2708                 { echo "$as_me:$LINENO: result: syslog" >&5
2709 echo "${ECHO_T}syslog" >&6; }
2710                 ;;
2711     file)       cat >>confdefs.h <<\_ACEOF
2712 #define LOGGING SLOG_FILE
2713 _ACEOF
2714
2715                 { echo "$as_me:$LINENO: result: file" >&5
2716 echo "${ECHO_T}file" >&6; }
2717                 ;;
2718     both)       cat >>confdefs.h <<\_ACEOF
2719 #define LOGGING SLOG_BOTH
2720 _ACEOF
2721
2722                 { echo "$as_me:$LINENO: result: both" >&5
2723 echo "${ECHO_T}both" >&6; }
2724                 ;;
2725     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2726 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2727    { (exit 1); exit 1; }; }
2728                 ;;
2729 esac
2730 else
2731   cat >>confdefs.h <<\_ACEOF
2732 #define LOGGING SLOG_SYSLOG
2733 _ACEOF
2734  { echo "$as_me:$LINENO: result: syslog" >&5
2735 echo "${ECHO_T}syslog" >&6; }
2736 fi
2737
2738
2739 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2740 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2741
2742 # Check whether --with-logfac was given.
2743 if test "${with_logfac+set}" = set; then
2744   withval=$with_logfac; case $with_logfac in
2745     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2746 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2747    { (exit 1); exit 1; }; }
2748                 ;;
2749     no)         { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2750 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2751    { (exit 1); exit 1; }; }
2752                 ;;
2753     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
2754                 ;;
2755     *)          { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2756 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2757    { (exit 1); exit 1; }; }
2758                 ;;
2759 esac
2760 fi
2761
2762
2763 cat >>confdefs.h <<_ACEOF
2764 #define LOGFAC "$logfac"
2765 _ACEOF
2766
2767 { echo "$as_me:$LINENO: result: $logfac" >&5
2768 echo "${ECHO_T}$logfac" >&6; }
2769
2770 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2771 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2772
2773 # Check whether --with-goodpri was given.
2774 if test "${with_goodpri+set}" = set; then
2775   withval=$with_goodpri; case $with_goodpri in
2776     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2777 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2778    { (exit 1); exit 1; }; }
2779                 ;;
2780     no)         { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2781 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2782    { (exit 1); exit 1; }; }
2783                 ;;
2784     alert|crit|debug|emerg|err|info|notice|warning)
2785                 goodpri=$with_goodpri
2786                 ;;
2787     *)          { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2788 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2789    { (exit 1); exit 1; }; }
2790                 ;;
2791 esac
2792 fi
2793
2794
2795 cat >>confdefs.h <<_ACEOF
2796 #define PRI_SUCCESS "$goodpri"
2797 _ACEOF
2798
2799 { echo "$as_me:$LINENO: result: $goodpri" >&5
2800 echo "${ECHO_T}$goodpri" >&6; }
2801
2802 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2803 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2804
2805 # Check whether --with-badpri was given.
2806 if test "${with_badpri+set}" = set; then
2807   withval=$with_badpri; case $with_badpri in
2808     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2809 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2810    { (exit 1); exit 1; }; }
2811                 ;;
2812     no)         { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2813 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2814    { (exit 1); exit 1; }; }
2815                 ;;
2816     alert|crit|debug|emerg|err|info|notice|warning)
2817                 badpri=$with_badpri
2818                 ;;
2819     *)          { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2820 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2821    { (exit 1); exit 1; }; }
2822                 ;;
2823 esac
2824 fi
2825
2826
2827 cat >>confdefs.h <<_ACEOF
2828 #define PRI_FAILURE "$badpri"
2829 _ACEOF
2830
2831 { echo "$as_me:$LINENO: result: $badpri" >&5
2832 echo "${ECHO_T}$badpri" >&6; }
2833
2834
2835 # Check whether --with-logpath was given.
2836 if test "${with_logpath+set}" = set; then
2837   withval=$with_logpath; case $with_logpath in
2838     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2839 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2840    { (exit 1); exit 1; }; }
2841                 ;;
2842     no)         { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2843 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2844    { (exit 1); exit 1; }; }
2845                 ;;
2846 esac
2847 fi
2848
2849
2850 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2851 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2852
2853 # Check whether --with-loglen was given.
2854 if test "${with_loglen+set}" = set; then
2855   withval=$with_loglen; case $with_loglen in
2856     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2857 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2858    { (exit 1); exit 1; }; }
2859                 ;;
2860     no)         { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2861 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2862    { (exit 1); exit 1; }; }
2863                 ;;
2864     [0-9]*)     loglen=$with_loglen
2865                 ;;
2866     *)          { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2867 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2868    { (exit 1); exit 1; }; }
2869                 ;;
2870 esac
2871 fi
2872
2873
2874 cat >>confdefs.h <<_ACEOF
2875 #define MAXLOGFILELEN $loglen
2876 _ACEOF
2877
2878 { echo "$as_me:$LINENO: result: $loglen" >&5
2879 echo "${ECHO_T}$loglen" >&6; }
2880
2881 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2882 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2883
2884 # Check whether --with-ignore-dot was given.
2885 if test "${with_ignore_dot+set}" = set; then
2886   withval=$with_ignore_dot; case $with_ignore_dot in
2887     yes)        ignore_dot=on
2888                 ;;
2889     no)         ignore_dot=off
2890                 ;;
2891     *)          { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2892 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2893    { (exit 1); exit 1; }; }
2894                 ;;
2895 esac
2896 fi
2897
2898 if test "$ignore_dot" = "on"; then
2899     cat >>confdefs.h <<\_ACEOF
2900 #define IGNORE_DOT_PATH 1
2901 _ACEOF
2902
2903     { echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6; }
2905 else
2906     { echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6; }
2908 fi
2909
2910 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2911 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2912
2913 # Check whether --with-mail-if-no-user was given.
2914 if test "${with_mail_if_no_user+set}" = set; then
2915   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2916     yes)        mail_no_user=on
2917                 ;;
2918     no)         mail_no_user=off
2919                 ;;
2920     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2921 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2922    { (exit 1); exit 1; }; }
2923                 ;;
2924 esac
2925 fi
2926
2927 if test "$mail_no_user" = "on"; then
2928     cat >>confdefs.h <<\_ACEOF
2929 #define SEND_MAIL_WHEN_NO_USER 1
2930 _ACEOF
2931
2932     { echo "$as_me:$LINENO: result: yes" >&5
2933 echo "${ECHO_T}yes" >&6; }
2934 else
2935     { echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6; }
2937 fi
2938
2939 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2940 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2941
2942 # Check whether --with-mail-if-no-host was given.
2943 if test "${with_mail_if_no_host+set}" = set; then
2944   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2945     yes)        mail_no_host=on
2946                 ;;
2947     no)         mail_no_host=off
2948                 ;;
2949     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2950 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2951    { (exit 1); exit 1; }; }
2952                 ;;
2953 esac
2954 fi
2955
2956 if test "$mail_no_host" = "on"; then
2957     cat >>confdefs.h <<\_ACEOF
2958 #define SEND_MAIL_WHEN_NO_HOST 1
2959 _ACEOF
2960
2961     { echo "$as_me:$LINENO: result: yes" >&5
2962 echo "${ECHO_T}yes" >&6; }
2963 else
2964     { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2966 fi
2967
2968 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2969 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2970
2971 # Check whether --with-mail-if-noperms was given.
2972 if test "${with_mail_if_noperms+set}" = set; then
2973   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2974     yes)        mail_noperms=on
2975                 ;;
2976     no)         mail_noperms=off
2977                 ;;
2978     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2979 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2980    { (exit 1); exit 1; }; }
2981                 ;;
2982 esac
2983 fi
2984
2985 if test "$mail_noperms" = "on"; then
2986     cat >>confdefs.h <<\_ACEOF
2987 #define SEND_MAIL_WHEN_NOT_OK 1
2988 _ACEOF
2989
2990     { echo "$as_me:$LINENO: result: yes" >&5
2991 echo "${ECHO_T}yes" >&6; }
2992 else
2993     { echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6; }
2995 fi
2996
2997 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2998 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
2999
3000 # Check whether --with-mailto was given.
3001 if test "${with_mailto+set}" = set; then
3002   withval=$with_mailto; case $with_mailto in
3003     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
3004 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
3005    { (exit 1); exit 1; }; }
3006                 ;;
3007     no)         { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
3008 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
3009    { (exit 1); exit 1; }; }
3010                 ;;
3011     *)          mailto=$with_mailto
3012                 ;;
3013 esac
3014 fi
3015
3016
3017 cat >>confdefs.h <<_ACEOF
3018 #define MAILTO "$mailto"
3019 _ACEOF
3020
3021 { echo "$as_me:$LINENO: result: $mailto" >&5
3022 echo "${ECHO_T}$mailto" >&6; }
3023
3024
3025 # Check whether --with-mailsubject was given.
3026 if test "${with_mailsubject+set}" = set; then
3027   withval=$with_mailsubject; case $with_mailsubject in
3028     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
3029 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
3030    { (exit 1); exit 1; }; }
3031                 ;;
3032     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
3033 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
3034                 ;;
3035     *)          mailsub="$with_mailsubject"
3036                 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
3037 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
3038                 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
3039 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
3040                 ;;
3041 esac
3042 fi
3043
3044
3045 cat >>confdefs.h <<_ACEOF
3046 #define MAILSUBJECT "$mailsub"
3047 _ACEOF
3048
3049
3050 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
3051 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
3052
3053 # Check whether --with-passprompt was given.
3054 if test "${with_passprompt+set}" = set; then
3055   withval=$with_passprompt; case $with_passprompt in
3056     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
3057 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
3058    { (exit 1); exit 1; }; }
3059                 ;;
3060     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
3061 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
3062                 ;;
3063     *)          passprompt="$with_passprompt"
3064 esac
3065 fi
3066
3067 { echo "$as_me:$LINENO: result: $passprompt" >&5
3068 echo "${ECHO_T}$passprompt" >&6; }
3069
3070 cat >>confdefs.h <<_ACEOF
3071 #define PASSPROMPT "$passprompt"
3072 _ACEOF
3073
3074
3075 { echo "$as_me:$LINENO: checking for bad password message" >&5
3076 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
3077
3078 # Check whether --with-badpass-message was given.
3079 if test "${with_badpass_message+set}" = set; then
3080   withval=$with_badpass_message; case $with_badpass_message in
3081     yes)        { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3082 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3083    { (exit 1); exit 1; }; }
3084                 ;;
3085     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3086 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3087                 ;;
3088     *)          badpass_message="$with_badpass_message"
3089                 ;;
3090 esac
3091 fi
3092
3093
3094 cat >>confdefs.h <<_ACEOF
3095 #define INCORRECT_PASSWORD "$badpass_message"
3096 _ACEOF
3097
3098 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3099 echo "${ECHO_T}$badpass_message" >&6; }
3100
3101 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3102 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3103
3104 # Check whether --with-fqdn was given.
3105 if test "${with_fqdn+set}" = set; then
3106   withval=$with_fqdn; case $with_fqdn in
3107     yes)        fqdn=on
3108                 ;;
3109     no)         fqdn=off
3110                 ;;
3111     *)          { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3112 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3113    { (exit 1); exit 1; }; }
3114                 ;;
3115 esac
3116 fi
3117
3118 if test "$fqdn" = "on"; then
3119     cat >>confdefs.h <<\_ACEOF
3120 #define FQDN 1
3121 _ACEOF
3122
3123     { echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6; }
3125 else
3126     { echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6; }
3128 fi
3129
3130
3131 # Check whether --with-timedir was given.
3132 if test "${with_timedir+set}" = set; then
3133   withval=$with_timedir; case $with_timedir in
3134     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3135 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3136    { (exit 1); exit 1; }; }
3137                 ;;
3138     no)         { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3139 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3140    { (exit 1); exit 1; }; }
3141                 ;;
3142 esac
3143 fi
3144
3145
3146
3147 # Check whether --with-sendmail was given.
3148 if test "${with_sendmail+set}" = set; then
3149   withval=$with_sendmail; case $with_sendmail in
3150     yes)        with_sendmail=""
3151                 ;;
3152     no)         ;;
3153     *)          cat >>confdefs.h <<EOF
3154 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3155 EOF
3156
3157                 ;;
3158 esac
3159 fi
3160
3161
3162
3163 # Check whether --with-sudoers-mode was given.
3164 if test "${with_sudoers_mode+set}" = set; then
3165   withval=$with_sudoers_mode; case $with_sudoers_mode in
3166     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3167 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3168    { (exit 1); exit 1; }; }
3169                 ;;
3170     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3171 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3172    { (exit 1); exit 1; }; }
3173                 ;;
3174     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
3175                 ;;
3176     0*)         SUDOERS_MODE=$with_sudoers_mode
3177                 ;;
3178     *)          { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3179 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3180    { (exit 1); exit 1; }; }
3181                 ;;
3182 esac
3183 fi
3184
3185
3186
3187 # Check whether --with-sudoers-uid was given.
3188 if test "${with_sudoers_uid+set}" = set; then
3189   withval=$with_sudoers_uid; case $with_sudoers_uid in
3190     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3191 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3192    { (exit 1); exit 1; }; }
3193                 ;;
3194     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3195 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3196    { (exit 1); exit 1; }; }
3197                 ;;
3198     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
3199                 ;;
3200     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3201 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3202    { (exit 1); exit 1; }; }
3203                 ;;
3204 esac
3205 fi
3206
3207
3208
3209 # Check whether --with-sudoers-gid was given.
3210 if test "${with_sudoers_gid+set}" = set; then
3211   withval=$with_sudoers_gid; case $with_sudoers_gid in
3212     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3213 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3214    { (exit 1); exit 1; }; }
3215                 ;;
3216     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3217 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3218    { (exit 1); exit 1; }; }
3219                 ;;
3220     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
3221                 ;;
3222     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3223 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3224    { (exit 1); exit 1; }; }
3225                 ;;
3226 esac
3227 fi
3228
3229
3230 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3231 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3232
3233 # Check whether --with-umask was given.
3234 if test "${with_umask+set}" = set; then
3235   withval=$with_umask; case $with_umask in
3236     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3237 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3238    { (exit 1); exit 1; }; }
3239                 ;;
3240     no)         sudo_umask=0777
3241                 ;;
3242     [0-9]*)     sudo_umask=$with_umask
3243                 ;;
3244     *)          { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3245 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3246    { (exit 1); exit 1; }; }
3247                 ;;
3248 esac
3249 fi
3250
3251
3252 cat >>confdefs.h <<_ACEOF
3253 #define SUDO_UMASK $sudo_umask
3254 _ACEOF
3255
3256 if test "$sudo_umask" = "0777"; then
3257     { echo "$as_me:$LINENO: result: user" >&5
3258 echo "${ECHO_T}user" >&6; }
3259 else
3260     { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3261 echo "${ECHO_T}$sudo_umask" >&6; }
3262 fi
3263
3264 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3265 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3266
3267 # Check whether --with-runas-default was given.
3268 if test "${with_runas_default+set}" = set; then
3269   withval=$with_runas_default; case $with_runas_default in
3270     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3271 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3272    { (exit 1); exit 1; }; }
3273                 ;;
3274     no)         { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3275 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3276    { (exit 1); exit 1; }; }
3277                 ;;
3278     *)          runas_default="$with_runas_default"
3279                 ;;
3280 esac
3281 fi
3282
3283
3284 cat >>confdefs.h <<_ACEOF
3285 #define RUNAS_DEFAULT "$runas_default"
3286 _ACEOF
3287
3288 { echo "$as_me:$LINENO: result: $runas_default" >&5
3289 echo "${ECHO_T}$runas_default" >&6; }
3290
3291
3292 # Check whether --with-exempt was given.
3293 if test "${with_exempt+set}" = set; then
3294   withval=$with_exempt; case $with_exempt in
3295     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3296 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3297    { (exit 1); exit 1; }; }
3298                 ;;
3299     no)         { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3300 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3301    { (exit 1); exit 1; }; }
3302                 ;;
3303     *)
3304 cat >>confdefs.h <<_ACEOF
3305 #define EXEMPTGROUP "$with_exempt"
3306 _ACEOF
3307
3308                 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3309 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3310                 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3311 echo "${ECHO_T}$with_exempt" >&6; }
3312                 ;;
3313 esac
3314 fi
3315
3316
3317 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3318 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3319
3320 # Check whether --with-editor was given.
3321 if test "${with_editor+set}" = set; then
3322   withval=$with_editor; case $with_editor in
3323     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3324 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3325    { (exit 1); exit 1; }; }
3326                 ;;
3327     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3328 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3329    { (exit 1); exit 1; }; }
3330                 ;;
3331     *)
3332 cat >>confdefs.h <<_ACEOF
3333 #define EDITOR "$with_editor"
3334 _ACEOF
3335
3336                 { echo "$as_me:$LINENO: result: $with_editor" >&5
3337 echo "${ECHO_T}$with_editor" >&6; }
3338                 ;;
3339 esac
3340 else
3341   cat >>confdefs.h <<\_ACEOF
3342 #define EDITOR _PATH_VI
3343 _ACEOF
3344  { echo "$as_me:$LINENO: result: vi" >&5
3345 echo "${ECHO_T}vi" >&6; }
3346 fi
3347
3348
3349 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3350 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3351
3352 # Check whether --with-env-editor was given.
3353 if test "${with_env_editor+set}" = set; then
3354   withval=$with_env_editor; case $with_env_editor in
3355     yes)        env_editor=on
3356                 ;;
3357     no)         env_editor=off
3358                 ;;
3359     *)          { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3360 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3361    { (exit 1); exit 1; }; }
3362                 ;;
3363 esac
3364 fi
3365
3366 if test "$env_editor" = "on"; then
3367     cat >>confdefs.h <<\_ACEOF
3368 #define ENV_EDITOR 1
3369 _ACEOF
3370
3371     { echo "$as_me:$LINENO: result: yes" >&5
3372 echo "${ECHO_T}yes" >&6; }
3373 else
3374     { echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6; }
3376 fi
3377
3378 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3379 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3380
3381 # Check whether --with-passwd-tries was given.
3382 if test "${with_passwd_tries+set}" = set; then
3383   withval=$with_passwd_tries; case $with_passwd_tries in
3384     yes)        ;;
3385     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3386 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3387    { (exit 1); exit 1; }; }
3388                 ;;
3389     [1-9]*)     passwd_tries=$with_passwd_tries
3390                 ;;
3391     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3392 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3393    { (exit 1); exit 1; }; }
3394                 ;;
3395 esac
3396 fi
3397
3398
3399 cat >>confdefs.h <<_ACEOF
3400 #define TRIES_FOR_PASSWORD $passwd_tries
3401 _ACEOF
3402
3403 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3404 echo "${ECHO_T}$passwd_tries" >&6; }
3405
3406 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3407 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3408
3409 # Check whether --with-timeout was given.
3410 if test "${with_timeout+set}" = set; then
3411   withval=$with_timeout; case $with_timeout in
3412     yes)        ;;
3413     no)         timeout=0
3414                 ;;
3415     [0-9]*)     timeout=$with_timeout
3416                 ;;
3417     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3418 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3419    { (exit 1); exit 1; }; }
3420                 ;;
3421 esac
3422 fi
3423
3424
3425 cat >>confdefs.h <<_ACEOF
3426 #define TIMEOUT $timeout
3427 _ACEOF
3428
3429 { echo "$as_me:$LINENO: result: $timeout" >&5
3430 echo "${ECHO_T}$timeout" >&6; }
3431
3432 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3433 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3434
3435 # Check whether --with-password-timeout was given.
3436 if test "${with_password_timeout+set}" = set; then
3437   withval=$with_password_timeout; case $with_password_timeout in
3438     yes)        ;;
3439     no)         password_timeout=0
3440                 ;;
3441     [0-9]*)     password_timeout=$with_password_timeout
3442                 ;;
3443     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3444 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3445    { (exit 1); exit 1; }; }
3446                 ;;
3447 esac
3448 fi
3449
3450
3451 cat >>confdefs.h <<_ACEOF
3452 #define PASSWORD_TIMEOUT $password_timeout
3453 _ACEOF
3454
3455 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3456 echo "${ECHO_T}$password_timeout" >&6; }
3457
3458 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3459 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3460
3461 # Check whether --with-tty-tickets was given.
3462 if test "${with_tty_tickets+set}" = set; then
3463   withval=$with_tty_tickets; case $with_tty_tickets in
3464     yes)        tty_tickets=on
3465                 ;;
3466     no)         tty_tickets=off
3467                 ;;
3468     *)          { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3469 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3470    { (exit 1); exit 1; }; }
3471                 ;;
3472 esac
3473 fi
3474
3475 if test "$tty_tickets" = "on"; then
3476     cat >>confdefs.h <<\_ACEOF
3477 #define USE_TTY_TICKETS 1
3478 _ACEOF
3479
3480     { echo "$as_me:$LINENO: result: yes" >&5
3481 echo "${ECHO_T}yes" >&6; }
3482 else
3483     { echo "$as_me:$LINENO: result: no" >&5
3484 echo "${ECHO_T}no" >&6; }
3485 fi
3486
3487 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3488 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3489
3490 # Check whether --with-insults was given.
3491 if test "${with_insults+set}" = set; then
3492   withval=$with_insults; case $with_insults in
3493     yes)        insults=on
3494                 with_classic_insults=yes
3495                 with_csops_insults=yes
3496                 ;;
3497     no)         insults=off
3498                 ;;
3499     *)          { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3500 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3501    { (exit 1); exit 1; }; }
3502                 ;;
3503 esac
3504 fi
3505
3506 if test "$insults" = "on"; then
3507     cat >>confdefs.h <<\_ACEOF
3508 #define USE_INSULTS 1
3509 _ACEOF
3510
3511     { echo "$as_me:$LINENO: result: yes" >&5
3512 echo "${ECHO_T}yes" >&6; }
3513 else
3514     { echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6; }
3516 fi
3517
3518
3519 # Check whether --with-all-insults was given.
3520 if test "${with_all_insults+set}" = set; then
3521   withval=$with_all_insults; case $with_all_insults in
3522     yes)        with_classic_insults=yes
3523                 with_csops_insults=yes
3524                 with_hal_insults=yes
3525                 with_goons_insults=yes
3526                 ;;
3527     no)         ;;
3528     *)          { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3529 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3530    { (exit 1); exit 1; }; }
3531                 ;;
3532 esac
3533 fi
3534
3535
3536
3537 # Check whether --with-classic-insults was given.
3538 if test "${with_classic_insults+set}" = set; then
3539   withval=$with_classic_insults; case $with_classic_insults in
3540     yes)        cat >>confdefs.h <<\_ACEOF
3541 #define CLASSIC_INSULTS 1
3542 _ACEOF
3543
3544                 ;;
3545     no)         ;;
3546     *)          { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3547 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3548    { (exit 1); exit 1; }; }
3549                 ;;
3550 esac
3551 fi
3552
3553
3554
3555 # Check whether --with-csops-insults was given.
3556 if test "${with_csops_insults+set}" = set; then
3557   withval=$with_csops_insults; case $with_csops_insults in
3558     yes)        cat >>confdefs.h <<\_ACEOF
3559 #define CSOPS_INSULTS 1
3560 _ACEOF
3561
3562                 ;;
3563     no)         ;;
3564     *)          { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3565 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3566    { (exit 1); exit 1; }; }
3567                 ;;
3568 esac
3569 fi
3570
3571
3572
3573 # Check whether --with-hal-insults was given.
3574 if test "${with_hal_insults+set}" = set; then
3575   withval=$with_hal_insults; case $with_hal_insults in
3576     yes)        cat >>confdefs.h <<\_ACEOF
3577 #define HAL_INSULTS 1
3578 _ACEOF
3579
3580                 ;;
3581     no)         ;;
3582     *)          { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3583 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3584    { (exit 1); exit 1; }; }
3585                 ;;
3586 esac
3587 fi
3588
3589
3590
3591 # Check whether --with-goons-insults was given.
3592 if test "${with_goons_insults+set}" = set; then
3593   withval=$with_goons_insults; case $with_goons_insults in
3594     yes)        cat >>confdefs.h <<\_ACEOF
3595 #define GOONS_INSULTS 1
3596 _ACEOF
3597
3598                 ;;
3599     no)         ;;
3600     *)          { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3601 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3602    { (exit 1); exit 1; }; }
3603                 ;;
3604 esac
3605 fi
3606
3607
3608
3609 # Check whether --with-nsswitch was given.
3610 if test "${with_nsswitch+set}" = set; then
3611   withval=$with_nsswitch; case $with_nsswitch in
3612     no)         ;;
3613     yes)        with_nsswitch="/etc/nsswitch.conf"
3614                 ;;
3615     *)          ;;
3616 esac
3617 fi
3618
3619
3620
3621 # Check whether --with-ldap was given.
3622 if test "${with_ldap+set}" = set; then
3623   withval=$with_ldap; case $with_ldap in
3624     no)         ;;
3625     *)          cat >>confdefs.h <<\_ACEOF
3626 #define HAVE_LDAP 1
3627 _ACEOF
3628
3629                 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3630 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3631                 { echo "$as_me:$LINENO: result: yes" >&5
3632 echo "${ECHO_T}yes" >&6; }
3633                 ;;
3634 esac
3635 fi
3636
3637
3638
3639 # Check whether --with-ldap-conf-file was given.
3640 if test "${with_ldap_conf_file+set}" = set; then
3641   withval=$with_ldap_conf_file;
3642 fi
3643
3644 cat >>confdefs.h <<EOF
3645 #define _PATH_LDAP_CONF "${with_ldap_conf_file-/etc/ldap.conf}"
3646 EOF
3647
3648 ldap_conf=${with_ldap_conf_file-'/etc/ldap.conf'}
3649
3650
3651 # Check whether --with-ldap-secret-file was given.
3652 if test "${with_ldap_secret_file+set}" = set; then
3653   withval=$with_ldap_secret_file;
3654 fi
3655
3656 cat >>confdefs.h <<EOF
3657 #define _PATH_LDAP_SECRET "${with_ldap_secret_file-/etc/ldap.secret}"
3658 EOF
3659
3660 ldap_secret=${with_ldap_secret_file-'/etc/ldap.secret'}
3661
3662
3663 # Check whether --with-pc-insults was given.
3664 if test "${with_pc_insults+set}" = set; then
3665   withval=$with_pc_insults; case $with_pc_insults in
3666     yes)        cat >>confdefs.h <<\_ACEOF
3667 #define PC_INSULTS 1
3668 _ACEOF
3669
3670                 ;;
3671     no)         ;;
3672     *)          { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3673 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3674    { (exit 1); exit 1; }; }
3675                 ;;
3676 esac
3677 fi
3678
3679
3680 if test "$insults" = "on"; then
3681     { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3682 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3683     i=""
3684     test "$with_goons_insults" = "yes" && i="goons ${i}"
3685     test "$with_hal_insults" = "yes" && i="hal ${i}"
3686     test "$with_csops_insults" = "yes" && i="csops ${i}"
3687     test "$with_classic_insults" = "yes" && i="classic ${i}"
3688     { echo "$as_me:$LINENO: result: $i" >&5
3689 echo "${ECHO_T}$i" >&6; }
3690 fi
3691
3692 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3693 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3694
3695 # Check whether --with-secure-path was given.
3696 if test "${with_secure_path+set}" = set; then
3697   withval=$with_secure_path; case $with_secure_path in
3698     yes)        cat >>confdefs.h <<_ACEOF
3699 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3700 _ACEOF
3701
3702                 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3703 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3704                 ;;
3705     no)         { echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6; }
3707                 ;;
3708     *)          cat >>confdefs.h <<_ACEOF
3709 #define SECURE_PATH "$with_secure_path"
3710 _ACEOF
3711
3712                 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3713 echo "${ECHO_T}$with_secure_path" >&6; }
3714                 ;;
3715 esac
3716 else
3717   { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3719 fi
3720
3721
3722 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3723 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3724
3725 # Check whether --with-interfaces was given.
3726 if test "${with_interfaces+set}" = set; then
3727   withval=$with_interfaces; case $with_interfaces in
3728     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3729 echo "${ECHO_T}yes" >&6; }
3730                 ;;
3731     no)         cat >>confdefs.h <<\_ACEOF
3732 #define STUB_LOAD_INTERFACES 1
3733 _ACEOF
3734
3735                 { echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6; }
3737                 ;;
3738     *)          { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3739 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3740    { (exit 1); exit 1; }; }
3741                 ;;
3742 esac
3743 else
3744   { echo "$as_me:$LINENO: result: yes" >&5
3745 echo "${ECHO_T}yes" >&6; }
3746 fi
3747
3748
3749 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3750 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3751
3752 # Check whether --with-stow was given.
3753 if test "${with_stow+set}" = set; then
3754   withval=$with_stow; case $with_stow in
3755     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6; }
3757                 cat >>confdefs.h <<\_ACEOF
3758 #define USE_STOW 1
3759 _ACEOF
3760
3761                 ;;
3762     no)         { echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6; }
3764                 ;;
3765     *)          { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3766 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3767    { (exit 1); exit 1; }; }
3768                 ;;
3769 esac
3770 else
3771   { echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6; }
3773 fi
3774
3775
3776 { echo "$as_me:$LINENO: checking whether to use an askpass helper" >&5
3777 echo $ECHO_N "checking whether to use an askpass helper... $ECHO_C" >&6; }
3778
3779 # Check whether --with-askpass was given.
3780 if test "${with_askpass+set}" = set; then
3781   withval=$with_askpass; case $with_askpass in
3782     yes)        { { echo "$as_me:$LINENO: error: \"--with-askpass takes a path as an argument.\"" >&5
3783 echo "$as_me: error: \"--with-askpass takes a path as an argument.\"" >&2;}
3784    { (exit 1); exit 1; }; }
3785                 ;;
3786     no)         ;;
3787     *)
3788 cat >>confdefs.h <<_ACEOF
3789 #define _PATH_SUDO_ASKPASS "$with_askpass"
3790 _ACEOF
3791
3792                 ;;
3793 esac
3794 else
3795   { echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6; }
3797 fi
3798
3799
3800
3801 # Check whether --with-libvas was given.
3802 if test "${with_libvas+set}" = set; then
3803   withval=$with_libvas; case $with_libvas in
3804     yes)        with_libvas=libvas.so
3805                 ;;
3806     no)         ;;
3807     *)
3808 cat >>confdefs.h <<_ACEOF
3809 #define LIBVAS_SO "$with_with_libvas"
3810 _ACEOF
3811
3812                 ;;
3813 esac
3814 if test X"$with_libvas" != X"no"; then
3815
3816 cat >>confdefs.h <<_ACEOF
3817 #define LIBVAS_SO "$with_libvas"
3818 _ACEOF
3819
3820     cat >>confdefs.h <<\_ACEOF
3821 #define USING_NONUNIX_GROUPS 1
3822 _ACEOF
3823
3824     NONUNIX_GROUPS_IMPL="vasgroups.o"
3825
3826 # Check whether --with-libvas-rpath was given.
3827 if test "${with_libvas_rpath+set}" = set; then
3828   withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
3829 else
3830   LIBVAS_RPATH=/opt/quest/lib
3831 fi
3832
3833 fi
3834
3835 fi
3836
3837
3838
3839 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3840 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3841 # Check whether --enable-authentication was given.
3842 if test "${enable_authentication+set}" = set; then
3843   enableval=$enable_authentication;  case "$enableval" in
3844     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3845 echo "${ECHO_T}yes" >&6; }
3846                 ;;
3847     no)         { echo "$as_me:$LINENO: result: no" >&5
3848 echo "${ECHO_T}no" >&6; }
3849                 cat >>confdefs.h <<\_ACEOF
3850 #define NO_AUTHENTICATION 1
3851 _ACEOF
3852
3853                 ;;
3854     *)          { echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6; }
3856                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3857 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3858                 ;;
3859   esac
3860
3861 else
3862   { echo "$as_me:$LINENO: result: yes" >&5
3863 echo "${ECHO_T}yes" >&6; }
3864 fi
3865
3866
3867 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3868 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3869 # Check whether --enable-root-mailer was given.
3870 if test "${enable_root_mailer+set}" = set; then
3871   enableval=$enable_root_mailer;  case "$enableval" in
3872     yes)        { echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6; }
3874                 ;;
3875     no)         { echo "$as_me:$LINENO: result: yes" >&5
3876 echo "${ECHO_T}yes" >&6; }
3877                 cat >>confdefs.h <<\_ACEOF
3878 #define NO_ROOT_MAILER 1
3879 _ACEOF
3880
3881                 ;;
3882     *)          { echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6; }
3884                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3885 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3886                 ;;
3887   esac
3888
3889 else
3890   { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3892 fi
3893
3894
3895 # Check whether --enable-setreuid was given.
3896 if test "${enable_setreuid+set}" = set; then
3897   enableval=$enable_setreuid;  case "$enableval" in
3898     no)         SKIP_SETREUID=yes
3899                 ;;
3900     *)          ;;
3901   esac
3902
3903 fi
3904
3905
3906 # Check whether --enable-setresuid was given.
3907 if test "${enable_setresuid+set}" = set; then
3908   enableval=$enable_setresuid;  case "$enableval" in
3909     no)         SKIP_SETRESUID=yes
3910                 ;;
3911     *)          ;;
3912   esac
3913
3914 fi
3915
3916
3917 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3918 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3919 # Check whether --enable-shadow was given.
3920 if test "${enable_shadow+set}" = set; then
3921   enableval=$enable_shadow;  case "$enableval" in
3922     yes)        { echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6; }
3924                 ;;
3925     no)         { echo "$as_me:$LINENO: result: yes" >&5
3926 echo "${ECHO_T}yes" >&6; }
3927                 CHECKSHADOW="false"
3928                 ;;
3929     *)          { echo "$as_me:$LINENO: result: no" >&5
3930 echo "${ECHO_T}no" >&6; }
3931                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3932 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3933                 ;;
3934   esac
3935
3936 else
3937   { echo "$as_me:$LINENO: result: no" >&5
3938 echo "${ECHO_T}no" >&6; }
3939 fi
3940
3941
3942 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3943 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3944 # Check whether --enable-root-sudo was given.
3945 if test "${enable_root_sudo+set}" = set; then
3946   enableval=$enable_root_sudo;  case "$enableval" in
3947     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3948 echo "${ECHO_T}yes" >&6; }
3949                 ;;
3950     no)         cat >>confdefs.h <<\_ACEOF
3951 #define NO_ROOT_SUDO 1
3952 _ACEOF
3953
3954                 { echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6; }
3956                 root_sudo=off
3957                 ;;
3958     *)          { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3959 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3960    { (exit 1); exit 1; }; }
3961                 ;;
3962   esac
3963
3964 else
3965   { echo "$as_me:$LINENO: result: yes" >&5
3966 echo "${ECHO_T}yes" >&6; }
3967 fi
3968
3969
3970 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3971 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3972 # Check whether --enable-log-host was given.
3973 if test "${enable_log_host+set}" = set; then
3974   enableval=$enable_log_host;  case "$enableval" in
3975     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3976 echo "${ECHO_T}yes" >&6; }
3977                 cat >>confdefs.h <<\_ACEOF
3978 #define HOST_IN_LOG 1
3979 _ACEOF
3980
3981                 ;;
3982     no)         { echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6; }
3984                 ;;
3985     *)          { echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6; }
3987                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3988 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3989                 ;;
3990   esac
3991
3992 else
3993   { echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6; }
3995 fi
3996
3997
3998 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3999 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
4000 # Check whether --enable-noargs-shell was given.
4001 if test "${enable_noargs_shell+set}" = set; then
4002   enableval=$enable_noargs_shell;  case "$enableval" in
4003     yes)        { echo "$as_me:$LINENO: result: yes" >&5
4004 echo "${ECHO_T}yes" >&6; }
4005                 cat >>confdefs.h <<\_ACEOF
4006 #define SHELL_IF_NO_ARGS 1
4007 _ACEOF
4008
4009                 ;;
4010     no)         { echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6; }
4012                 ;;
4013     *)          { echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6; }
4015                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
4016 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
4017                 ;;
4018   esac
4019
4020 else
4021   { echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6; }
4023 fi
4024
4025
4026 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
4027 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
4028 # Check whether --enable-shell-sets-home was given.
4029 if test "${enable_shell_sets_home+set}" = set; then
4030   enableval=$enable_shell_sets_home;  case "$enableval" in
4031     yes)        { echo "$as_me:$LINENO: result: yes" >&5
4032 echo "${ECHO_T}yes" >&6; }
4033                 cat >>confdefs.h <<\_ACEOF
4034 #define SHELL_SETS_HOME 1
4035 _ACEOF
4036
4037                 ;;
4038     no)         { echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6; }
4040                 ;;
4041     *)          { echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6; }
4043                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
4044 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
4045                 ;;
4046   esac
4047
4048 else
4049   { echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6; }
4051 fi
4052
4053
4054 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
4055 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
4056 # Check whether --enable-path_info was given.
4057 if test "${enable_path_info+set}" = set; then
4058   enableval=$enable_path_info;  case "$enableval" in
4059     yes)        { echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6; }
4061                 ;;
4062     no)         { echo "$as_me:$LINENO: result: yes" >&5
4063 echo "${ECHO_T}yes" >&6; }
4064                 cat >>confdefs.h <<\_ACEOF
4065 #define DONT_LEAK_PATH_INFO 1
4066 _ACEOF
4067
4068                 path_info=off
4069                 ;;
4070     *)          { echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6; }
4072                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
4073 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
4074                 ;;
4075   esac
4076
4077 else
4078   { echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6; }
4080 fi
4081
4082
4083 { echo "$as_me:$LINENO: checking whether to enable environment debugging" >&5
4084 echo $ECHO_N "checking whether to enable environment debugging... $ECHO_C" >&6; }
4085 # Check whether --enable-env_debug was given.
4086 if test "${enable_env_debug+set}" = set; then
4087   enableval=$enable_env_debug;  case "$enableval" in
4088     yes)        { echo "$as_me:$LINENO: result: yes" >&5
4089 echo "${ECHO_T}yes" >&6; }
4090                 cat >>confdefs.h <<\_ACEOF
4091 #define ENV_DEBUG 1
4092 _ACEOF
4093
4094                 ;;
4095     no)         { echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6; }
4097                 ;;
4098     *)          { echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6; }
4100                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
4101 echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
4102                 ;;
4103   esac
4104
4105 else
4106   { echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6; }
4108 fi
4109
4110
4111
4112 # Check whether --with-selinux was given.
4113 if test "${with_selinux+set}" = set; then
4114   withval=$with_selinux; case $with_selinux in
4115     yes)        SELINUX_USAGE="[-r role] [-t type] "
4116                 cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_SELINUX 1
4118 _ACEOF
4119
4120                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
4121                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
4122                 PROGS="${PROGS} sesh"
4123                 SELINUX=""
4124                 SEMAN=""
4125                 ;;
4126     no)         ;;
4127     *)          { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
4128 echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
4129    { (exit 1); exit 1; }; }
4130                 ;;
4131 esac
4132 fi
4133
4134
4135 # Check whether --enable-gss_krb5_ccache_name was given.
4136 if test "${enable_gss_krb5_ccache_name+set}" = set; then
4137   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
4138 else
4139   check_gss_krb5_ccache_name=no
4140 fi
4141
4142
4143 # Extract the first word of "egrep", so it can be a program name with args.
4144 set dummy egrep; ac_word=$2
4145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4147 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
4148   echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150   if test -n "$EGREPPROG"; then
4151   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156   IFS=$as_save_IFS
4157   test -z "$as_dir" && as_dir=.
4158   for ac_exec_ext in '' $ac_executable_extensions; do
4159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160     ac_cv_prog_EGREPPROG="egrep"
4161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162     break 2
4163   fi
4164 done
4165 done
4166 IFS=$as_save_IFS
4167
4168 fi
4169 fi
4170 EGREPPROG=$ac_cv_prog_EGREPPROG
4171 if test -n "$EGREPPROG"; then
4172   { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
4173 echo "${ECHO_T}$EGREPPROG" >&6; }
4174 else
4175   { echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6; }
4177 fi
4178
4179
4180 if test -z "$EGREPPROG"; then
4181     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
4182 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
4183    { (exit 1); exit 1; }; }
4184 fi
4185
4186 if test "$with_devel" != "yes"; then
4187     ac_cv_prog_cc_g=no
4188 fi
4189
4190 ac_ext=c
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195 if test -n "$ac_tool_prefix"; then
4196   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4197 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4200 if test "${ac_cv_prog_CC+set}" = set; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   if test -n "$CC"; then
4204   ac_cv_prog_CC="$CC" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219 IFS=$as_save_IFS
4220
4221 fi
4222 fi
4223 CC=$ac_cv_prog_CC
4224 if test -n "$CC"; then
4225   { echo "$as_me:$LINENO: result: $CC" >&5
4226 echo "${ECHO_T}$CC" >&6; }
4227 else
4228   { echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6; }
4230 fi
4231
4232
4233 fi
4234 if test -z "$ac_cv_prog_CC"; then
4235   ac_ct_CC=$CC
4236   # Extract the first word of "gcc", so it can be a program name with args.
4237 set dummy gcc; ac_word=$2
4238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   if test -n "$ac_ct_CC"; then
4244   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   for ac_exec_ext in '' $ac_executable_extensions; do
4252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253     ac_cv_prog_ac_ct_CC="gcc"
4254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258 done
4259 IFS=$as_save_IFS
4260
4261 fi
4262 fi
4263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4264 if test -n "$ac_ct_CC"; then
4265   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4266 echo "${ECHO_T}$ac_ct_CC" >&6; }
4267 else
4268   { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4270 fi
4271
4272   if test "x$ac_ct_CC" = x; then
4273     CC=""
4274   else
4275     case $cross_compiling:$ac_tool_warned in
4276 yes:)
4277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4278 whose name does not start with the host triplet.  If you think this
4279 configuration is useful to you, please write to autoconf@gnu.org." >&5
4280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4281 whose name does not start with the host triplet.  If you think this
4282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4283 ac_tool_warned=yes ;;
4284 esac
4285     CC=$ac_ct_CC
4286   fi
4287 else
4288   CC="$ac_cv_prog_CC"
4289 fi
4290
4291 if test -z "$CC"; then
4292           if test -n "$ac_tool_prefix"; then
4293     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4294 set dummy ${ac_tool_prefix}cc; ac_word=$2
4295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4297 if test "${ac_cv_prog_CC+set}" = set; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300   if test -n "$CC"; then
4301   ac_cv_prog_CC="$CC" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4305 do
4306   IFS=$as_save_IFS
4307   test -z "$as_dir" && as_dir=.
4308   for ac_exec_ext in '' $ac_executable_extensions; do
4309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310     ac_cv_prog_CC="${ac_tool_prefix}cc"
4311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312     break 2
4313   fi
4314 done
4315 done
4316 IFS=$as_save_IFS
4317
4318 fi
4319 fi
4320 CC=$ac_cv_prog_CC
4321 if test -n "$CC"; then
4322   { echo "$as_me:$LINENO: result: $CC" >&5
4323 echo "${ECHO_T}$CC" >&6; }
4324 else
4325   { echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6; }
4327 fi
4328
4329
4330   fi
4331 fi
4332 if test -z "$CC"; then
4333   # Extract the first word of "cc", so it can be a program name with args.
4334 set dummy cc; ac_word=$2
4335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4337 if test "${ac_cv_prog_CC+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   if test -n "$CC"; then
4341   ac_cv_prog_CC="$CC" # Let the user override the test.
4342 else
4343   ac_prog_rejected=no
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4346 do
4347   IFS=$as_save_IFS
4348   test -z "$as_dir" && as_dir=.
4349   for ac_exec_ext in '' $ac_executable_extensions; do
4350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4352        ac_prog_rejected=yes
4353        continue
4354      fi
4355     ac_cv_prog_CC="cc"
4356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357     break 2
4358   fi
4359 done
4360 done
4361 IFS=$as_save_IFS
4362
4363 if test $ac_prog_rejected = yes; then
4364   # We found a bogon in the path, so make sure we never use it.
4365   set dummy $ac_cv_prog_CC
4366   shift
4367   if test $# != 0; then
4368     # We chose a different compiler from the bogus one.
4369     # However, it has the same basename, so the bogon will be chosen
4370     # first if we set CC to just the basename; use the full file name.
4371     shift
4372     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4373   fi
4374 fi
4375 fi
4376 fi
4377 CC=$ac_cv_prog_CC
4378 if test -n "$CC"; then
4379   { echo "$as_me:$LINENO: result: $CC" >&5
4380 echo "${ECHO_T}$CC" >&6; }
4381 else
4382   { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4384 fi
4385
4386
4387 fi
4388 if test -z "$CC"; then
4389   if test -n "$ac_tool_prefix"; then
4390   for ac_prog in cl.exe
4391   do
4392     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_CC+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test -n "$CC"; then
4400   ac_cv_prog_CC="$CC" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405   IFS=$as_save_IFS
4406   test -z "$as_dir" && as_dir=.
4407   for ac_exec_ext in '' $ac_executable_extensions; do
4408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4409     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411     break 2
4412   fi
4413 done
4414 done
4415 IFS=$as_save_IFS
4416
4417 fi
4418 fi
4419 CC=$ac_cv_prog_CC
4420 if test -n "$CC"; then
4421   { echo "$as_me:$LINENO: result: $CC" >&5
4422 echo "${ECHO_T}$CC" >&6; }
4423 else
4424   { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4426 fi
4427
4428
4429     test -n "$CC" && break
4430   done
4431 fi
4432 if test -z "$CC"; then
4433   ac_ct_CC=$CC
4434   for ac_prog in cl.exe
4435 do
4436   # Extract the first word of "$ac_prog", so it can be a program name with args.
4437 set dummy $ac_prog; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   if test -n "$ac_ct_CC"; then
4444   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453     ac_cv_prog_ac_ct_CC="$ac_prog"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461 fi
4462 fi
4463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4464 if test -n "$ac_ct_CC"; then
4465   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4466 echo "${ECHO_T}$ac_ct_CC" >&6; }
4467 else
4468   { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4470 fi
4471
4472
4473   test -n "$ac_ct_CC" && break
4474 done
4475
4476   if test "x$ac_ct_CC" = x; then
4477     CC=""
4478   else
4479     case $cross_compiling:$ac_tool_warned in
4480 yes:)
4481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4482 whose name does not start with the host triplet.  If you think this
4483 configuration is useful to you, please write to autoconf@gnu.org." >&5
4484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4485 whose name does not start with the host triplet.  If you think this
4486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4487 ac_tool_warned=yes ;;
4488 esac
4489     CC=$ac_ct_CC
4490   fi
4491 fi
4492
4493 fi
4494
4495
4496 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4497 See \`config.log' for more details." >&5
4498 echo "$as_me: error: no acceptable C compiler found in \$PATH
4499 See \`config.log' for more details." >&2;}
4500    { (exit 1); exit 1; }; }
4501
4502 # Provide some information about the compiler.
4503 echo "$as_me:$LINENO: checking for C compiler version" >&5
4504 ac_compiler=`set X $ac_compile; echo $2`
4505 { (ac_try="$ac_compiler --version >&5"
4506 case "(($ac_try" in
4507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508   *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511   (eval "$ac_compiler --version >&5") 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); }
4515 { (ac_try="$ac_compiler -v >&5"
4516 case "(($ac_try" in
4517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518   *) ac_try_echo=$ac_try;;
4519 esac
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521   (eval "$ac_compiler -v >&5") 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }
4525 { (ac_try="$ac_compiler -V >&5"
4526 case "(($ac_try" in
4527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528   *) ac_try_echo=$ac_try;;
4529 esac
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531   (eval "$ac_compiler -V >&5") 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }
4535
4536 cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h.  */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h.  */
4542
4543 int
4544 main ()
4545 {
4546
4547   ;
4548   return 0;
4549 }
4550 _ACEOF
4551 ac_clean_files_save=$ac_clean_files
4552 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4553 # Try to create an executable without -o first, disregard a.out.
4554 # It will help us diagnose broken compilers, and finding out an intuition
4555 # of exeext.
4556 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4557 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4558 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4559 #
4560 # List of possible output files, starting from the most likely.
4561 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4562 # only as a last resort.  b.out is created by i960 compilers.
4563 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4564 #
4565 # The IRIX 6 linker writes into existing files which may not be
4566 # executable, retaining their permissions.  Remove them first so a
4567 # subsequent execution test works.
4568 ac_rmfiles=
4569 for ac_file in $ac_files
4570 do
4571   case $ac_file in
4572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4573     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4574   esac
4575 done
4576 rm -f $ac_rmfiles
4577
4578 if { (ac_try="$ac_link_default"
4579 case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584   (eval "$ac_link_default") 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); }; then
4588   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4589 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4590 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4591 # so that the user can short-circuit this test for compilers unknown to
4592 # Autoconf.
4593 for ac_file in $ac_files ''
4594 do
4595   test -f "$ac_file" || continue
4596   case $ac_file in
4597     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4598         ;;
4599     [ab].out )
4600         # We found the default executable, but exeext='' is most
4601         # certainly right.
4602         break;;
4603     *.* )
4604         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4605         then :; else
4606            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4607         fi
4608         # We set ac_cv_exeext here because the later test for it is not
4609         # safe: cross compilers may not add the suffix if given an `-o'
4610         # argument, so we may need to know it at that point already.
4611         # Even if this section looks crufty: it has the advantage of
4612         # actually working.
4613         break;;
4614     * )
4615         break;;
4616   esac
4617 done
4618 test "$ac_cv_exeext" = no && ac_cv_exeext=
4619
4620 else
4621   ac_file=''
4622 fi
4623
4624 { echo "$as_me:$LINENO: result: $ac_file" >&5
4625 echo "${ECHO_T}$ac_file" >&6; }
4626 if test -z "$ac_file"; then
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4631 See \`config.log' for more details." >&5
4632 echo "$as_me: error: C compiler cannot create executables
4633 See \`config.log' for more details." >&2;}
4634    { (exit 77); exit 77; }; }
4635 fi
4636
4637 ac_exeext=$ac_cv_exeext
4638
4639 # Check that the compiler produces executables we can run.  If not, either
4640 # the compiler is broken, or we cross compile.
4641 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4642 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4643 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4644 # If not cross compiling, check that we can run a simple program.
4645 if test "$cross_compiling" != yes; then
4646   if { ac_try='./$ac_file'
4647   { (case "(($ac_try" in
4648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649   *) ac_try_echo=$ac_try;;
4650 esac
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652   (eval "$ac_try") 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; }; then
4656     cross_compiling=no
4657   else
4658     if test "$cross_compiling" = maybe; then
4659         cross_compiling=yes
4660     else
4661         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4662 If you meant to cross compile, use \`--host'.
4663 See \`config.log' for more details." >&5
4664 echo "$as_me: error: cannot run C compiled programs.
4665 If you meant to cross compile, use \`--host'.
4666 See \`config.log' for more details." >&2;}
4667    { (exit 1); exit 1; }; }
4668     fi
4669   fi
4670 fi
4671 { echo "$as_me:$LINENO: result: yes" >&5
4672 echo "${ECHO_T}yes" >&6; }
4673
4674 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4675 ac_clean_files=$ac_clean_files_save
4676 # Check that the compiler produces executables we can run.  If not, either
4677 # the compiler is broken, or we cross compile.
4678 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4679 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4680 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4681 echo "${ECHO_T}$cross_compiling" >&6; }
4682
4683 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4684 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4685 if { (ac_try="$ac_link"
4686 case "(($ac_try" in
4687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688   *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691   (eval "$ac_link") 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; then
4695   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4696 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4697 # work properly (i.e., refer to `conftest.exe'), while it won't with
4698 # `rm'.
4699 for ac_file in conftest.exe conftest conftest.*; do
4700   test -f "$ac_file" || continue
4701   case $ac_file in
4702     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4703     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4704           break;;
4705     * ) break;;
4706   esac
4707 done
4708 else
4709   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4710 See \`config.log' for more details." >&5
4711 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4712 See \`config.log' for more details." >&2;}
4713    { (exit 1); exit 1; }; }
4714 fi
4715
4716 rm -f conftest$ac_cv_exeext
4717 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4718 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4719
4720 rm -f conftest.$ac_ext
4721 EXEEXT=$ac_cv_exeext
4722 ac_exeext=$EXEEXT
4723 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4724 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4725 if test "${ac_cv_objext+set}" = set; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h.  */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h.  */
4734
4735 int
4736 main ()
4737 {
4738
4739   ;
4740   return 0;
4741 }
4742 _ACEOF
4743 rm -f conftest.o conftest.obj
4744 if { (ac_try="$ac_compile"
4745 case "(($ac_try" in
4746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747   *) ac_try_echo=$ac_try;;
4748 esac
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750   (eval "$ac_compile") 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; then
4754   for ac_file in conftest.o conftest.obj conftest.*; do
4755   test -f "$ac_file" || continue;
4756   case $ac_file in
4757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4758     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4759        break;;
4760   esac
4761 done
4762 else
4763   echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4767 See \`config.log' for more details." >&5
4768 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4769 See \`config.log' for more details." >&2;}
4770    { (exit 1); exit 1; }; }
4771 fi
4772
4773 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4774 fi
4775 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4776 echo "${ECHO_T}$ac_cv_objext" >&6; }
4777 OBJEXT=$ac_cv_objext
4778 ac_objext=$OBJEXT
4779 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4780 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4781 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h.  */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h.  */
4790
4791 int
4792 main ()
4793 {
4794 #ifndef __GNUC__
4795        choke me
4796 #endif
4797
4798   ;
4799   return 0;
4800 }
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (ac_try="$ac_compile"
4804 case "(($ac_try" in
4805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806   *) ac_try_echo=$ac_try;;
4807 esac
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809   (eval "$ac_compile") 2>conftest.er1
4810   ac_status=$?
4811   grep -v '^ *+' conftest.er1 >conftest.err
4812   rm -f conftest.er1
4813   cat conftest.err >&5
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } && {
4816          test -z "$ac_c_werror_flag" ||
4817          test ! -s conftest.err
4818        } && test -s conftest.$ac_objext; then
4819   ac_compiler_gnu=yes
4820 else
4821   echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4823
4824         ac_compiler_gnu=no
4825 fi
4826
4827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4829
4830 fi
4831 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4832 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4833 GCC=`test $ac_compiler_gnu = yes && echo yes`
4834 ac_test_CFLAGS=${CFLAGS+set}
4835 ac_save_CFLAGS=$CFLAGS
4836 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4837 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4838 if test "${ac_cv_prog_cc_g+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   ac_save_c_werror_flag=$ac_c_werror_flag
4842    ac_c_werror_flag=yes
4843    ac_cv_prog_cc_g=no
4844    CFLAGS="-g"
4845    cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h.  */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h.  */
4851
4852 int
4853 main ()
4854 {
4855
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4862 case "(($ac_try" in
4863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864   *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867   (eval "$ac_compile") 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } && {
4874          test -z "$ac_c_werror_flag" ||
4875          test ! -s conftest.err
4876        } && test -s conftest.$ac_objext; then
4877   ac_cv_prog_cc_g=yes
4878 else
4879   echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882         CFLAGS=""
4883       cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889
4890 int
4891 main ()
4892 {
4893
4894   ;
4895   return 0;
4896 }
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (ac_try="$ac_compile"
4900 case "(($ac_try" in
4901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902   *) ac_try_echo=$ac_try;;
4903 esac
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905   (eval "$ac_compile") 2>conftest.er1
4906   ac_status=$?
4907   grep -v '^ *+' conftest.er1 >conftest.err
4908   rm -f conftest.er1
4909   cat conftest.err >&5
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); } && {
4912          test -z "$ac_c_werror_flag" ||
4913          test ! -s conftest.err
4914        } && test -s conftest.$ac_objext; then
4915   :
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920         ac_c_werror_flag=$ac_save_c_werror_flag
4921          CFLAGS="-g"
4922          cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h.  */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h.  */
4928
4929 int
4930 main ()
4931 {
4932
4933   ;
4934   return 0;
4935 }
4936 _ACEOF
4937 rm -f conftest.$ac_objext
4938 if { (ac_try="$ac_compile"
4939 case "(($ac_try" in
4940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941   *) ac_try_echo=$ac_try;;
4942 esac
4943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944   (eval "$ac_compile") 2>conftest.er1
4945   ac_status=$?
4946   grep -v '^ *+' conftest.er1 >conftest.err
4947   rm -f conftest.er1
4948   cat conftest.err >&5
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); } && {
4951          test -z "$ac_c_werror_flag" ||
4952          test ! -s conftest.err
4953        } && test -s conftest.$ac_objext; then
4954   ac_cv_prog_cc_g=yes
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959
4960 fi
4961
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 fi
4964
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 fi
4967
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969    ac_c_werror_flag=$ac_save_c_werror_flag
4970 fi
4971 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4972 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4973 if test "$ac_test_CFLAGS" = set; then
4974   CFLAGS=$ac_save_CFLAGS
4975 elif test $ac_cv_prog_cc_g = yes; then
4976   if test "$GCC" = yes; then
4977     CFLAGS="-g -O2"
4978   else
4979     CFLAGS="-g"
4980   fi
4981 else
4982   if test "$GCC" = yes; then
4983     CFLAGS="-O2"
4984   else
4985     CFLAGS=
4986   fi
4987 fi
4988 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4989 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4990 if test "${ac_cv_prog_cc_c89+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   ac_cv_prog_cc_c89=no
4994 ac_save_CC=$CC
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h.  */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h.  */
5001 #include <stdarg.h>
5002 #include <stdio.h>
5003 #include <sys/types.h>
5004 #include <sys/stat.h>
5005 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5006 struct buf { int x; };
5007 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5008 static char *e (p, i)
5009      char **p;
5010      int i;
5011 {
5012   return p[i];
5013 }
5014 static char *f (char * (*g) (char **, int), char **p, ...)
5015 {
5016   char *s;
5017   va_list v;
5018   va_start (v,p);
5019   s = g (p, va_arg (v,int));
5020   va_end (v);
5021   return s;
5022 }
5023
5024 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5025    function prototypes and stuff, but not '\xHH' hex character constants.
5026    These don't provoke an error unfortunately, instead are silently treated
5027    as 'x'.  The following induces an error, until -std is added to get
5028    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5029    array size at least.  It's necessary to write '\x00'==0 to get something
5030    that's true only with -std.  */
5031 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5032
5033 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5034    inside strings and character constants.  */
5035 #define FOO(x) 'x'
5036 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5037
5038 int test (int i, double x);
5039 struct s1 {int (*f) (int a);};
5040 struct s2 {int (*f) (double a);};
5041 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5042 int argc;
5043 char **argv;
5044 int
5045 main ()
5046 {
5047 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5048   ;
5049   return 0;
5050 }
5051 _ACEOF
5052 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5053         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5054 do
5055   CC="$ac_save_CC $ac_arg"
5056   rm -f conftest.$ac_objext
5057 if { (ac_try="$ac_compile"
5058 case "(($ac_try" in
5059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060   *) ac_try_echo=$ac_try;;
5061 esac
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063   (eval "$ac_compile") 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } && {
5070          test -z "$ac_c_werror_flag" ||
5071          test ! -s conftest.err
5072        } && test -s conftest.$ac_objext; then
5073   ac_cv_prog_cc_c89=$ac_arg
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078
5079 fi
5080
5081 rm -f core conftest.err conftest.$ac_objext
5082   test "x$ac_cv_prog_cc_c89" != "xno" && break
5083 done
5084 rm -f conftest.$ac_ext
5085 CC=$ac_save_CC
5086
5087 fi
5088 # AC_CACHE_VAL
5089 case "x$ac_cv_prog_cc_c89" in
5090   x)
5091     { echo "$as_me:$LINENO: result: none needed" >&5
5092 echo "${ECHO_T}none needed" >&6; } ;;
5093   xno)
5094     { echo "$as_me:$LINENO: result: unsupported" >&5
5095 echo "${ECHO_T}unsupported" >&6; } ;;
5096   *)
5097     CC="$CC $ac_cv_prog_cc_c89"
5098     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5099 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5100 esac
5101
5102
5103 ac_ext=c
5104 ac_cpp='$CPP $CPPFLAGS'
5105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108
5109
5110 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
5111 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5112 if test "${ac_cv_search_strerror+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   ac_func_search_save_LIBS=$LIBS
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h.  */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h.  */
5122
5123 /* Override any GCC internal prototype to avoid an error.
5124    Use char because int might match the return type of a GCC
5125    builtin and then its argument prototype would still apply.  */
5126 #ifdef __cplusplus
5127 extern "C"
5128 #endif
5129 char strerror ();
5130 int
5131 main ()
5132 {
5133 return strerror ();
5134   ;
5135   return 0;
5136 }
5137 _ACEOF
5138 for ac_lib in '' cposix; do
5139   if test -z "$ac_lib"; then
5140     ac_res="none required"
5141   else
5142     ac_res=-l$ac_lib
5143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5144   fi
5145   rm -f conftest.$ac_objext conftest$ac_exeext
5146 if { (ac_try="$ac_link"
5147 case "(($ac_try" in
5148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149   *) ac_try_echo=$ac_try;;
5150 esac
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152   (eval "$ac_link") 2>conftest.er1
5153   ac_status=$?
5154   grep -v '^ *+' conftest.er1 >conftest.err
5155   rm -f conftest.er1
5156   cat conftest.err >&5
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); } && {
5159          test -z "$ac_c_werror_flag" ||
5160          test ! -s conftest.err
5161        } && test -s conftest$ac_exeext &&
5162        $as_test_x conftest$ac_exeext; then
5163   ac_cv_search_strerror=$ac_res
5164 else
5165   echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168
5169 fi
5170
5171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5172       conftest$ac_exeext
5173   if test "${ac_cv_search_strerror+set}" = set; then
5174   break
5175 fi
5176 done
5177 if test "${ac_cv_search_strerror+set}" = set; then
5178   :
5179 else
5180   ac_cv_search_strerror=no
5181 fi
5182 rm conftest.$ac_ext
5183 LIBS=$ac_func_search_save_LIBS
5184 fi
5185 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5186 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5187 ac_res=$ac_cv_search_strerror
5188 if test "$ac_res" != no; then
5189   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5190
5191 fi
5192
5193 ac_ext=c
5194 ac_cpp='$CPP $CPPFLAGS'
5195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5199 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5200 # On Suns, sometimes $CPP names a directory.
5201 if test -n "$CPP" && test -d "$CPP"; then
5202   CPP=
5203 fi
5204 if test -z "$CPP"; then
5205   if test "${ac_cv_prog_CPP+set}" = set; then
5206   echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208       # Double quotes because CPP needs to be expanded
5209     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5210     do
5211       ac_preproc_ok=false
5212 for ac_c_preproc_warn_flag in '' yes
5213 do
5214   # Use a header file that comes with gcc, so configuring glibc
5215   # with a fresh cross-compiler works.
5216   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5217   # <limits.h> exists even on freestanding compilers.
5218   # On the NeXT, cc -E runs the code through the compiler's parser,
5219   # not just through cpp. "Syntax error" is here to catch this case.
5220   cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h.  */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h.  */
5226 #ifdef __STDC__
5227 # include <limits.h>
5228 #else
5229 # include <assert.h>
5230 #endif
5231                      Syntax error
5232 _ACEOF
5233 if { (ac_try="$ac_cpp conftest.$ac_ext"
5234 case "(($ac_try" in
5235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236   *) ac_try_echo=$ac_try;;
5237 esac
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5240   ac_status=$?
5241   grep -v '^ *+' conftest.er1 >conftest.err
5242   rm -f conftest.er1
5243   cat conftest.err >&5
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); } >/dev/null && {
5246          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5247          test ! -s conftest.err
5248        }; then
5249   :
5250 else
5251   echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254   # Broken: fails on valid input.
5255 continue
5256 fi
5257
5258 rm -f conftest.err conftest.$ac_ext
5259
5260   # OK, works on sane cases.  Now check whether nonexistent headers
5261   # can be detected and how.
5262   cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h.  */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h.  */
5268 #include <ac_nonexistent.h>
5269 _ACEOF
5270 if { (ac_try="$ac_cpp conftest.$ac_ext"
5271 case "(($ac_try" in
5272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273   *) ac_try_echo=$ac_try;;
5274 esac
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5277   ac_status=$?
5278   grep -v '^ *+' conftest.er1 >conftest.err
5279   rm -f conftest.er1
5280   cat conftest.err >&5
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); } >/dev/null && {
5283          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5284          test ! -s conftest.err
5285        }; then
5286   # Broken: success on invalid input.
5287 continue
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292   # Passes both tests.
5293 ac_preproc_ok=:
5294 break
5295 fi
5296
5297 rm -f conftest.err conftest.$ac_ext
5298
5299 done
5300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5301 rm -f conftest.err conftest.$ac_ext
5302 if $ac_preproc_ok; then
5303   break
5304 fi
5305
5306     done
5307     ac_cv_prog_CPP=$CPP
5308
5309 fi
5310   CPP=$ac_cv_prog_CPP
5311 else
5312   ac_cv_prog_CPP=$CPP
5313 fi
5314 { echo "$as_me:$LINENO: result: $CPP" >&5
5315 echo "${ECHO_T}$CPP" >&6; }
5316 ac_preproc_ok=false
5317 for ac_c_preproc_warn_flag in '' yes
5318 do
5319   # Use a header file that comes with gcc, so configuring glibc
5320   # with a fresh cross-compiler works.
5321   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5322   # <limits.h> exists even on freestanding compilers.
5323   # On the NeXT, cc -E runs the code through the compiler's parser,
5324   # not just through cpp. "Syntax error" is here to catch this case.
5325   cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h.  */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h.  */
5331 #ifdef __STDC__
5332 # include <limits.h>
5333 #else
5334 # include <assert.h>
5335 #endif
5336                      Syntax error
5337 _ACEOF
5338 if { (ac_try="$ac_cpp conftest.$ac_ext"
5339 case "(($ac_try" in
5340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341   *) ac_try_echo=$ac_try;;
5342 esac
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5345   ac_status=$?
5346   grep -v '^ *+' conftest.er1 >conftest.err
5347   rm -f conftest.er1
5348   cat conftest.err >&5
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); } >/dev/null && {
5351          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5352          test ! -s conftest.err
5353        }; then
5354   :
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5358
5359   # Broken: fails on valid input.
5360 continue
5361 fi
5362
5363 rm -f conftest.err conftest.$ac_ext
5364
5365   # OK, works on sane cases.  Now check whether nonexistent headers
5366   # can be detected and how.
5367   cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 #include <ac_nonexistent.h>
5374 _ACEOF
5375 if { (ac_try="$ac_cpp conftest.$ac_ext"
5376 case "(($ac_try" in
5377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378   *) ac_try_echo=$ac_try;;
5379 esac
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5382   ac_status=$?
5383   grep -v '^ *+' conftest.er1 >conftest.err
5384   rm -f conftest.er1
5385   cat conftest.err >&5
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); } >/dev/null && {
5388          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5389          test ! -s conftest.err
5390        }; then
5391   # Broken: success on invalid input.
5392 continue
5393 else
5394   echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397   # Passes both tests.
5398 ac_preproc_ok=:
5399 break
5400 fi
5401
5402 rm -f conftest.err conftest.$ac_ext
5403
5404 done
5405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5406 rm -f conftest.err conftest.$ac_ext
5407 if $ac_preproc_ok; then
5408   :
5409 else
5410   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5411 See \`config.log' for more details." >&5
5412 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5413 See \`config.log' for more details." >&2;}
5414    { (exit 1); exit 1; }; }
5415 fi
5416
5417 ac_ext=c
5418 ac_cpp='$CPP $CPPFLAGS'
5419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5422
5423
5424 ac_aux_dir=
5425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5426   if test -f "$ac_dir/install-sh"; then
5427     ac_aux_dir=$ac_dir
5428     ac_install_sh="$ac_aux_dir/install-sh -c"
5429     break
5430   elif test -f "$ac_dir/install.sh"; then
5431     ac_aux_dir=$ac_dir
5432     ac_install_sh="$ac_aux_dir/install.sh -c"
5433     break
5434   elif test -f "$ac_dir/shtool"; then
5435     ac_aux_dir=$ac_dir
5436     ac_install_sh="$ac_aux_dir/shtool install -c"
5437     break
5438   fi
5439 done
5440 if test -z "$ac_aux_dir"; then
5441   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5442 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5443    { (exit 1); exit 1; }; }
5444 fi
5445
5446 # These three variables are undocumented and unsupported,
5447 # and are intended to be withdrawn in a future Autoconf release.
5448 # They can cause serious problems if a builder's source tree is in a directory
5449 # whose full name contains unusual characters.
5450 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5451 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5452 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5453
5454
5455 # Make sure we can run config.sub.
5456 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5457   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5458 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5459    { (exit 1); exit 1; }; }
5460
5461 { echo "$as_me:$LINENO: checking build system type" >&5
5462 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5463 if test "${ac_cv_build+set}" = set; then
5464   echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466   ac_build_alias=$build_alias
5467 test "x$ac_build_alias" = x &&
5468   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5469 test "x$ac_build_alias" = x &&
5470   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5471 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5472    { (exit 1); exit 1; }; }
5473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5474   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5475 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5476    { (exit 1); exit 1; }; }
5477
5478 fi
5479 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5480 echo "${ECHO_T}$ac_cv_build" >&6; }
5481 case $ac_cv_build in
5482 *-*-*) ;;
5483 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5484 echo "$as_me: error: invalid value of canonical build" >&2;}
5485    { (exit 1); exit 1; }; };;
5486 esac
5487 build=$ac_cv_build
5488 ac_save_IFS=$IFS; IFS='-'
5489 set x $ac_cv_build
5490 shift
5491 build_cpu=$1
5492 build_vendor=$2
5493 shift; shift
5494 # Remember, the first character of IFS is used to create $*,
5495 # except with old shells:
5496 build_os=$*
5497 IFS=$ac_save_IFS
5498 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5499
5500
5501 { echo "$as_me:$LINENO: checking host system type" >&5
5502 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5503 if test "${ac_cv_host+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506   if test "x$host_alias" = x; then
5507   ac_cv_host=$ac_cv_build
5508 else
5509   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5510     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5511 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5512    { (exit 1); exit 1; }; }
5513 fi
5514
5515 fi
5516 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5517 echo "${ECHO_T}$ac_cv_host" >&6; }
5518 case $ac_cv_host in
5519 *-*-*) ;;
5520 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5521 echo "$as_me: error: invalid value of canonical host" >&2;}
5522    { (exit 1); exit 1; }; };;
5523 esac
5524 host=$ac_cv_host
5525 ac_save_IFS=$IFS; IFS='-'
5526 set x $ac_cv_host
5527 shift
5528 host_cpu=$1
5529 host_vendor=$2
5530 shift; shift
5531 # Remember, the first character of IFS is used to create $*,
5532 # except with old shells:
5533 host_os=$*
5534 IFS=$ac_save_IFS
5535 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5536
5537
5538 # Check whether --enable-static was given.
5539 if test "${enable_static+set}" = set; then
5540   enableval=$enable_static; p=${PACKAGE-default}
5541     case $enableval in
5542     yes) enable_static=yes ;;
5543     no) enable_static=no ;;
5544     *)
5545      enable_static=no
5546       # Look at the argument we got.  We use all the common list separators.
5547       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5548       for pkg in $enableval; do
5549         IFS="$lt_save_ifs"
5550         if test "X$pkg" = "X$p"; then
5551           enable_static=yes
5552         fi
5553       done
5554       IFS="$lt_save_ifs"
5555       ;;
5556     esac
5557 else
5558   enable_static=no
5559 fi
5560
5561
5562
5563
5564
5565 # Check whether --enable-shared was given.
5566 if test "${enable_shared+set}" = set; then
5567   enableval=$enable_shared; p=${PACKAGE-default}
5568     case $enableval in
5569     yes) enable_shared=yes ;;
5570     no) enable_shared=no ;;
5571     *)
5572       enable_shared=no
5573       # Look at the argument we got.  We use all the common list separators.
5574       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5575       for pkg in $enableval; do
5576         IFS="$lt_save_ifs"
5577         if test "X$pkg" = "X$p"; then
5578           enable_shared=yes
5579         fi
5580       done
5581       IFS="$lt_save_ifs"
5582       ;;
5583     esac
5584 else
5585   enable_shared=yes
5586 fi
5587
5588
5589 # Check whether --enable-fast-install was given.
5590 if test "${enable_fast_install+set}" = set; then
5591   enableval=$enable_fast_install; p=${PACKAGE-default}
5592     case $enableval in
5593     yes) enable_fast_install=yes ;;
5594     no) enable_fast_install=no ;;
5595     *)
5596       enable_fast_install=no
5597       # Look at the argument we got.  We use all the common list separators.
5598       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5599       for pkg in $enableval; do
5600         IFS="$lt_save_ifs"
5601         if test "X$pkg" = "X$p"; then
5602           enable_fast_install=yes
5603         fi
5604       done
5605       IFS="$lt_save_ifs"
5606       ;;
5607     esac
5608 else
5609   enable_fast_install=yes
5610 fi
5611
5612
5613 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5614 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5615 if test "${lt_cv_path_SED+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618   # Loop through the user's path and test for sed and gsed.
5619 # Then use that list of sed's as ones to test for truncation.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625   for lt_ac_prog in sed gsed; do
5626     for ac_exec_ext in '' $ac_executable_extensions; do
5627       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5628         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5629       fi
5630     done
5631   done
5632 done
5633 IFS=$as_save_IFS
5634 lt_ac_max=0
5635 lt_ac_count=0
5636 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5637 # along with /bin/sed that truncates output.
5638 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5639   test ! -f $lt_ac_sed && continue
5640   cat /dev/null > conftest.in
5641   lt_ac_count=0
5642   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5643   # Check for GNU sed and select it if it is found.
5644   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5645     lt_cv_path_SED=$lt_ac_sed
5646     break
5647   fi
5648   while true; do
5649     cat conftest.in conftest.in >conftest.tmp
5650     mv conftest.tmp conftest.in
5651     cp conftest.in conftest.nl
5652     echo >>conftest.nl
5653     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5654     cmp -s conftest.out conftest.nl || break
5655     # 10000 chars as input seems more than enough
5656     test $lt_ac_count -gt 10 && break
5657     lt_ac_count=`expr $lt_ac_count + 1`
5658     if test $lt_ac_count -gt $lt_ac_max; then
5659       lt_ac_max=$lt_ac_count
5660       lt_cv_path_SED=$lt_ac_sed
5661     fi
5662   done
5663 done
5664
5665 fi
5666
5667 SED=$lt_cv_path_SED
5668
5669 { echo "$as_me:$LINENO: result: $SED" >&5
5670 echo "${ECHO_T}$SED" >&6; }
5671
5672 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5673 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5674 if test "${ac_cv_path_GREP+set}" = set; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   # Extract the first word of "grep ggrep" to use in msg output
5678 if test -z "$GREP"; then
5679 set dummy grep ggrep; ac_prog_name=$2
5680 if test "${ac_cv_path_GREP+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   ac_path_GREP_found=false
5684 # Loop through the user's path and test for each of PROGNAME-LIST
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5687 do
5688   IFS=$as_save_IFS
5689   test -z "$as_dir" && as_dir=.
5690   for ac_prog in grep ggrep; do
5691   for ac_exec_ext in '' $ac_executable_extensions; do
5692     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5693     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5694     # Check for GNU ac_path_GREP and select it if it is found.
5695   # Check for GNU $ac_path_GREP
5696 case `"$ac_path_GREP" --version 2>&1` in
5697 *GNU*)
5698   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5699 *)
5700   ac_count=0
5701   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5702   while :
5703   do
5704     cat "conftest.in" "conftest.in" >"conftest.tmp"
5705     mv "conftest.tmp" "conftest.in"
5706     cp "conftest.in" "conftest.nl"
5707     echo 'GREP' >> "conftest.nl"
5708     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5709     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5710     ac_count=`expr $ac_count + 1`
5711     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5712       # Best one so far, save it but keep looking for a better one
5713       ac_cv_path_GREP="$ac_path_GREP"
5714       ac_path_GREP_max=$ac_count
5715     fi
5716     # 10*(2^10) chars as input seems more than enough
5717     test $ac_count -gt 10 && break
5718   done
5719   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5720 esac
5721
5722
5723     $ac_path_GREP_found && break 3
5724   done
5725 done
5726
5727 done
5728 IFS=$as_save_IFS
5729
5730
5731 fi
5732
5733 GREP="$ac_cv_path_GREP"
5734 if test -z "$GREP"; then
5735   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5736 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5737    { (exit 1); exit 1; }; }
5738 fi
5739
5740 else
5741   ac_cv_path_GREP=$GREP
5742 fi
5743
5744
5745 fi
5746 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5747 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5748  GREP="$ac_cv_path_GREP"
5749
5750
5751 { echo "$as_me:$LINENO: checking for egrep" >&5
5752 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5753 if test "${ac_cv_path_EGREP+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5757    then ac_cv_path_EGREP="$GREP -E"
5758    else
5759      # Extract the first word of "egrep" to use in msg output
5760 if test -z "$EGREP"; then
5761 set dummy egrep; ac_prog_name=$2
5762 if test "${ac_cv_path_EGREP+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   ac_path_EGREP_found=false
5766 # Loop through the user's path and test for each of PROGNAME-LIST
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5769 do
5770   IFS=$as_save_IFS
5771   test -z "$as_dir" && as_dir=.
5772   for ac_prog in egrep; do
5773   for ac_exec_ext in '' $ac_executable_extensions; do
5774     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5775     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5776     # Check for GNU ac_path_EGREP and select it if it is found.
5777   # Check for GNU $ac_path_EGREP
5778 case `"$ac_path_EGREP" --version 2>&1` in
5779 *GNU*)
5780   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5781 *)
5782   ac_count=0
5783   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5784   while :
5785   do
5786     cat "conftest.in" "conftest.in" >"conftest.tmp"
5787     mv "conftest.tmp" "conftest.in"
5788     cp "conftest.in" "conftest.nl"
5789     echo 'EGREP' >> "conftest.nl"
5790     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5791     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5792     ac_count=`expr $ac_count + 1`
5793     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5794       # Best one so far, save it but keep looking for a better one
5795       ac_cv_path_EGREP="$ac_path_EGREP"
5796       ac_path_EGREP_max=$ac_count
5797     fi
5798     # 10*(2^10) chars as input seems more than enough
5799     test $ac_count -gt 10 && break
5800   done
5801   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5802 esac
5803
5804
5805     $ac_path_EGREP_found && break 3
5806   done
5807 done
5808
5809 done
5810 IFS=$as_save_IFS
5811
5812
5813 fi
5814
5815 EGREP="$ac_cv_path_EGREP"
5816 if test -z "$EGREP"; then
5817   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5818 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5819    { (exit 1); exit 1; }; }
5820 fi
5821
5822 else
5823   ac_cv_path_EGREP=$EGREP
5824 fi
5825
5826
5827    fi
5828 fi
5829 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5830 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5831  EGREP="$ac_cv_path_EGREP"
5832
5833
5834
5835 # Check whether --with-gnu-ld was given.
5836 if test "${with_gnu_ld+set}" = set; then
5837   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5838 else
5839   with_gnu_ld=no
5840 fi
5841
5842 ac_prog=ld
5843 if test "$GCC" = yes; then
5844   # Check if gcc -print-prog-name=ld gives a path.
5845   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5846 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5847   case $host in
5848   *-*-mingw*)
5849     # gcc leaves a trailing carriage return which upsets mingw
5850     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5851   *)
5852     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5853   esac
5854   case $ac_prog in
5855     # Accept absolute paths.
5856     [\\/]* | ?:[\\/]*)
5857       re_direlt='/[^/][^/]*/\.\./'
5858       # Canonicalize the pathname of ld
5859       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5860       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5861         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5862       done
5863       test -z "$LD" && LD="$ac_prog"
5864       ;;
5865   "")
5866     # If it fails, then pretend we aren't using GCC.
5867     ac_prog=ld
5868     ;;
5869   *)
5870     # If it is relative, then search for the first ld in PATH.
5871     with_gnu_ld=unknown
5872     ;;
5873   esac
5874 elif test "$with_gnu_ld" = yes; then
5875   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5876 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5877 else
5878   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5879 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5880 fi
5881 if test "${lt_cv_path_LD+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   if test -z "$LD"; then
5885   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5886   for ac_dir in $PATH; do
5887     IFS="$lt_save_ifs"
5888     test -z "$ac_dir" && ac_dir=.
5889     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5890       lt_cv_path_LD="$ac_dir/$ac_prog"
5891       # Check to see if the program is GNU ld.  I'd rather use --version,
5892       # but apparently some variants of GNU ld only accept -v.
5893       # Break only if it was the GNU/non-GNU ld that we prefer.
5894       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5895       *GNU* | *'with BFD'*)
5896         test "$with_gnu_ld" != no && break
5897         ;;
5898       *)
5899         test "$with_gnu_ld" != yes && break
5900         ;;
5901       esac
5902     fi
5903   done
5904   IFS="$lt_save_ifs"
5905 else
5906   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5907 fi
5908 fi
5909
5910 LD="$lt_cv_path_LD"
5911 if test -n "$LD"; then
5912   { echo "$as_me:$LINENO: result: $LD" >&5
5913 echo "${ECHO_T}$LD" >&6; }
5914 else
5915   { echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6; }
5917 fi
5918 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5919 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5920    { (exit 1); exit 1; }; }
5921 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5922 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5923 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5924   echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5927 case `$LD -v 2>&1 </dev/null` in
5928 *GNU* | *'with BFD'*)
5929   lt_cv_prog_gnu_ld=yes
5930   ;;
5931 *)
5932   lt_cv_prog_gnu_ld=no
5933   ;;
5934 esac
5935 fi
5936 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5937 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5938 with_gnu_ld=$lt_cv_prog_gnu_ld
5939
5940
5941 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5942 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5943 if test "${lt_cv_ld_reload_flag+set}" = set; then
5944   echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946   lt_cv_ld_reload_flag='-r'
5947 fi
5948 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5949 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5950 reload_flag=$lt_cv_ld_reload_flag
5951 case $reload_flag in
5952 "" | " "*) ;;
5953 *) reload_flag=" $reload_flag" ;;
5954 esac
5955 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5956 case $host_os in
5957   darwin*)
5958     if test "$GCC" = yes; then
5959       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5960     else
5961       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5962     fi
5963     ;;
5964 esac
5965
5966 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5967 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5968 if test "${lt_cv_path_NM+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971   if test -n "$NM"; then
5972   # Let the user override the test.
5973   lt_cv_path_NM="$NM"
5974 else
5975   lt_nm_to_check="${ac_tool_prefix}nm"
5976   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5977     lt_nm_to_check="$lt_nm_to_check nm"
5978   fi
5979   for lt_tmp_nm in $lt_nm_to_check; do
5980     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5981     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5982       IFS="$lt_save_ifs"
5983       test -z "$ac_dir" && ac_dir=.
5984       tmp_nm="$ac_dir/$lt_tmp_nm"
5985       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5986         # Check to see if the nm accepts a BSD-compat flag.
5987         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5988         #   nm: unknown option "B" ignored
5989         # Tru64's nm complains that /dev/null is an invalid object file
5990         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5991         */dev/null* | *'Invalid file or object type'*)
5992           lt_cv_path_NM="$tmp_nm -B"
5993           break
5994           ;;
5995         *)
5996           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5997           */dev/null*)
5998             lt_cv_path_NM="$tmp_nm -p"
5999             break
6000             ;;
6001           *)
6002             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6003             continue # so that we can try to find one that supports BSD flags
6004             ;;
6005           esac
6006           ;;
6007         esac
6008       fi
6009     done
6010     IFS="$lt_save_ifs"
6011   done
6012   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6013 fi
6014 fi
6015 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6016 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6017 NM="$lt_cv_path_NM"
6018
6019 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6020 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6021 LN_S=$as_ln_s
6022 if test "$LN_S" = "ln -s"; then
6023   { echo "$as_me:$LINENO: result: yes" >&5
6024 echo "${ECHO_T}yes" >&6; }
6025 else
6026   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6027 echo "${ECHO_T}no, using $LN_S" >&6; }
6028 fi
6029
6030 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6031 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6032 if test "${lt_cv_deplibs_check_method+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   lt_cv_file_magic_cmd='$MAGIC_CMD'
6036 lt_cv_file_magic_test_file=
6037 lt_cv_deplibs_check_method='unknown'
6038 # Need to set the preceding variable on all platforms that support
6039 # interlibrary dependencies.
6040 # 'none' -- dependencies not supported.
6041 # `unknown' -- same as none, but documents that we really don't know.
6042 # 'pass_all' -- all dependencies passed with no checks.
6043 # 'test_compile' -- check by making test program.
6044 # 'file_magic [[regex]]' -- check by looking for files in library path
6045 # which responds to the $file_magic_cmd with a given extended regex.
6046 # If you have `file' or equivalent on your system and you're not sure
6047 # whether `pass_all' will *always* work, you probably want this one.
6048
6049 case $host_os in
6050 aix[4-9]*)
6051   lt_cv_deplibs_check_method=pass_all
6052   ;;
6053
6054 beos*)
6055   lt_cv_deplibs_check_method=pass_all
6056   ;;
6057
6058 bsdi[45]*)
6059   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6060   lt_cv_file_magic_cmd='/usr/bin/file -L'
6061   lt_cv_file_magic_test_file=/shlib/libc.so
6062   ;;
6063
6064 cygwin*)
6065   # func_win32_libid is a shell function defined in ltmain.sh
6066   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6067   lt_cv_file_magic_cmd='func_win32_libid'
6068   ;;
6069
6070 mingw* | pw32*)
6071   # Base MSYS/MinGW do not provide the 'file' command needed by
6072   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6073   # unless we find 'file', for example because we are cross-compiling.
6074   if ( file / ) >/dev/null 2>&1; then
6075     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6076     lt_cv_file_magic_cmd='func_win32_libid'
6077   else
6078     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6079     lt_cv_file_magic_cmd='$OBJDUMP -f'
6080   fi
6081   ;;
6082
6083 darwin* | rhapsody*)
6084   lt_cv_deplibs_check_method=pass_all
6085   ;;
6086
6087 freebsd* | dragonfly*)
6088   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6089     case $host_cpu in
6090     i*86 )
6091       # Not sure whether the presence of OpenBSD here was a mistake.
6092       # Let's accept both of them until this is cleared up.
6093       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6094       lt_cv_file_magic_cmd=/usr/bin/file
6095       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6096       ;;
6097     esac
6098   else
6099     lt_cv_deplibs_check_method=pass_all
6100   fi
6101   ;;
6102
6103 gnu*)
6104   lt_cv_deplibs_check_method=pass_all
6105   ;;
6106
6107 hpux10.20* | hpux11*)
6108   lt_cv_file_magic_cmd=/usr/bin/file
6109   case $host_cpu in
6110   ia64*)
6111     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6112     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6113     ;;
6114   hppa*64*)
6115     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]'
6116     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6117     ;;
6118   *)
6119     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6120     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6121     ;;
6122   esac
6123   ;;
6124
6125 interix[3-9]*)
6126   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6127   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6128   ;;
6129
6130 irix5* | irix6* | nonstopux*)
6131   case $LD in
6132   *-32|*"-32 ") libmagic=32-bit;;
6133   *-n32|*"-n32 ") libmagic=N32;;
6134   *-64|*"-64 ") libmagic=64-bit;;
6135   *) libmagic=never-match;;
6136   esac
6137   lt_cv_deplibs_check_method=pass_all
6138   ;;
6139
6140 # This must be Linux ELF.
6141 linux* | k*bsd*-gnu)
6142   lt_cv_deplibs_check_method=pass_all
6143   ;;
6144
6145 netbsd*)
6146   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6147     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6148   else
6149     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6150   fi
6151   ;;
6152
6153 newos6*)
6154   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6155   lt_cv_file_magic_cmd=/usr/bin/file
6156   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6157   ;;
6158
6159 nto-qnx*)
6160   lt_cv_deplibs_check_method=unknown
6161   ;;
6162
6163 openbsd*)
6164   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6165     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6166   else
6167     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6168   fi
6169   ;;
6170
6171 osf3* | osf4* | osf5*)
6172   lt_cv_deplibs_check_method=pass_all
6173   ;;
6174
6175 rdos*)
6176   lt_cv_deplibs_check_method=pass_all
6177   ;;
6178
6179 solaris*)
6180   lt_cv_deplibs_check_method=pass_all
6181   ;;
6182
6183 sysv4 | sysv4.3*)
6184   case $host_vendor in
6185   motorola)
6186     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]'
6187     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6188     ;;
6189   ncr)
6190     lt_cv_deplibs_check_method=pass_all
6191     ;;
6192   sequent)
6193     lt_cv_file_magic_cmd='/bin/file'
6194     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6195     ;;
6196   sni)
6197     lt_cv_file_magic_cmd='/bin/file'
6198     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6199     lt_cv_file_magic_test_file=/lib/libc.so
6200     ;;
6201   siemens)
6202     lt_cv_deplibs_check_method=pass_all
6203     ;;
6204   pc)
6205     lt_cv_deplibs_check_method=pass_all
6206     ;;
6207   esac
6208   ;;
6209
6210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6211   lt_cv_deplibs_check_method=pass_all
6212   ;;
6213 esac
6214
6215 fi
6216 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6217 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6218 file_magic_cmd=$lt_cv_file_magic_cmd
6219 deplibs_check_method=$lt_cv_deplibs_check_method
6220 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6221
6222
6223
6224
6225 # If no C compiler was specified, use CC.
6226 LTCC=${LTCC-"$CC"}
6227
6228 # If no C compiler flags were specified, use CFLAGS.
6229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6230
6231 # Allow CC to be a program name with arguments.
6232 compiler=$CC
6233
6234 # Check whether --enable-libtool-lock was given.
6235 if test "${enable_libtool_lock+set}" = set; then
6236   enableval=$enable_libtool_lock;
6237 fi
6238
6239 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6240
6241 # Some flags need to be propagated to the compiler or linker for good
6242 # libtool support.
6243 case $host in
6244 ia64-*-hpux*)
6245   # Find out which ABI we are using.
6246   echo 'int i;' > conftest.$ac_ext
6247   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248   (eval $ac_compile) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; then
6252     case `/usr/bin/file conftest.$ac_objext` in
6253     *ELF-32*)
6254       HPUX_IA64_MODE="32"
6255       ;;
6256     *ELF-64*)
6257       HPUX_IA64_MODE="64"
6258       ;;
6259     esac
6260   fi
6261   rm -rf conftest*
6262   ;;
6263 *-*-irix6*)
6264   # Find out which ABI we are using.
6265   echo '#line 6265 "configure"' > conftest.$ac_ext
6266   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267   (eval $ac_compile) 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); }; then
6271    if test "$lt_cv_prog_gnu_ld" = yes; then
6272     case `/usr/bin/file conftest.$ac_objext` in
6273     *32-bit*)
6274       LD="${LD-ld} -melf32bsmip"
6275       ;;
6276     *N32*)
6277       LD="${LD-ld} -melf32bmipn32"
6278       ;;
6279     *64-bit*)
6280       LD="${LD-ld} -melf64bmip"
6281       ;;
6282     esac
6283    else
6284     case `/usr/bin/file conftest.$ac_objext` in
6285     *32-bit*)
6286       LD="${LD-ld} -32"
6287       ;;
6288     *N32*)
6289       LD="${LD-ld} -n32"
6290       ;;
6291     *64-bit*)
6292       LD="${LD-ld} -64"
6293       ;;
6294     esac
6295    fi
6296   fi
6297   rm -rf conftest*
6298   ;;
6299
6300 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6301 s390*-*linux*|sparc*-*linux*)
6302   # Find out which ABI we are using.
6303   echo 'int i;' > conftest.$ac_ext
6304   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305   (eval $ac_compile) 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; then
6309     case `/usr/bin/file conftest.o` in
6310     *32-bit*)
6311       case $host in
6312         x86_64-*kfreebsd*-gnu)
6313           LD="${LD-ld} -m elf_i386_fbsd"
6314           ;;
6315         x86_64-*linux*)
6316           LD="${LD-ld} -m elf_i386"
6317           ;;
6318         ppc64-*linux*|powerpc64-*linux*)
6319           LD="${LD-ld} -m elf32ppclinux"
6320           ;;
6321         s390x-*linux*)
6322           LD="${LD-ld} -m elf_s390"
6323           ;;
6324         sparc64-*linux*)
6325           LD="${LD-ld} -m elf32_sparc"
6326           ;;
6327       esac
6328       ;;
6329     *64-bit*)
6330       case $host in
6331         x86_64-*kfreebsd*-gnu)
6332           LD="${LD-ld} -m elf_x86_64_fbsd"
6333           ;;
6334         x86_64-*linux*)
6335           LD="${LD-ld} -m elf_x86_64"
6336           ;;
6337         ppc*-*linux*|powerpc*-*linux*)
6338           LD="${LD-ld} -m elf64ppc"
6339           ;;
6340         s390*-*linux*)
6341           LD="${LD-ld} -m elf64_s390"
6342           ;;
6343         sparc*-*linux*)
6344           LD="${LD-ld} -m elf64_sparc"
6345           ;;
6346       esac
6347       ;;
6348     esac
6349   fi
6350   rm -rf conftest*
6351   ;;
6352
6353 *-*-sco3.2v5*)
6354   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6355   SAVE_CFLAGS="$CFLAGS"
6356   CFLAGS="$CFLAGS -belf"
6357   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6358 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6359 if test "${lt_cv_cc_needs_belf+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   ac_ext=c
6363 ac_cpp='$CPP $CPPFLAGS'
6364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6367
6368      cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h.  */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h.  */
6374
6375 int
6376 main ()
6377 {
6378
6379   ;
6380   return 0;
6381 }
6382 _ACEOF
6383 rm -f conftest.$ac_objext conftest$ac_exeext
6384 if { (ac_try="$ac_link"
6385 case "(($ac_try" in
6386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387   *) ac_try_echo=$ac_try;;
6388 esac
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390   (eval "$ac_link") 2>conftest.er1
6391   ac_status=$?
6392   grep -v '^ *+' conftest.er1 >conftest.err
6393   rm -f conftest.er1
6394   cat conftest.err >&5
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); } && {
6397          test -z "$ac_c_werror_flag" ||
6398          test ! -s conftest.err
6399        } && test -s conftest$ac_exeext &&
6400        $as_test_x conftest$ac_exeext; then
6401   lt_cv_cc_needs_belf=yes
6402 else
6403   echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6405
6406         lt_cv_cc_needs_belf=no
6407 fi
6408
6409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6410       conftest$ac_exeext conftest.$ac_ext
6411      ac_ext=c
6412 ac_cpp='$CPP $CPPFLAGS'
6413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416
6417 fi
6418 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6419 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6420   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6421     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6422     CFLAGS="$SAVE_CFLAGS"
6423   fi
6424   ;;
6425 sparc*-*solaris*)
6426   # Find out which ABI we are using.
6427   echo 'int i;' > conftest.$ac_ext
6428   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429   (eval $ac_compile) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; then
6433     case `/usr/bin/file conftest.o` in
6434     *64-bit*)
6435       case $lt_cv_prog_gnu_ld in
6436       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6437       *)
6438         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6439           LD="${LD-ld} -64"
6440         fi
6441         ;;
6442       esac
6443       ;;
6444     esac
6445   fi
6446   rm -rf conftest*
6447   ;;
6448
6449
6450 esac
6451
6452 need_locks="$enable_libtool_lock"
6453
6454
6455
6456 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6457 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6458 if test "${ac_cv_header_stdc+set}" = set; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467 #include <stdlib.h>
6468 #include <stdarg.h>
6469 #include <string.h>
6470 #include <float.h>
6471
6472 int
6473 main ()
6474 {
6475
6476   ;
6477   return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6482 case "(($ac_try" in
6483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484   *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487   (eval "$ac_compile") 2>conftest.er1
6488   ac_status=$?
6489   grep -v '^ *+' conftest.er1 >conftest.err
6490   rm -f conftest.er1
6491   cat conftest.err >&5
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); } && {
6494          test -z "$ac_c_werror_flag" ||
6495          test ! -s conftest.err
6496        } && test -s conftest.$ac_objext; then
6497   ac_cv_header_stdc=yes
6498 else
6499   echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502         ac_cv_header_stdc=no
6503 fi
6504
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506
6507 if test $ac_cv_header_stdc = yes; then
6508   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6509   cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h.  */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h.  */
6515 #include <string.h>
6516
6517 _ACEOF
6518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6519   $EGREP "memchr" >/dev/null 2>&1; then
6520   :
6521 else
6522   ac_cv_header_stdc=no
6523 fi
6524 rm -f conftest*
6525
6526 fi
6527
6528 if test $ac_cv_header_stdc = yes; then
6529   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6530   cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h.  */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h.  */
6536 #include <stdlib.h>
6537
6538 _ACEOF
6539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6540   $EGREP "free" >/dev/null 2>&1; then
6541   :
6542 else
6543   ac_cv_header_stdc=no
6544 fi
6545 rm -f conftest*
6546
6547 fi
6548
6549 if test $ac_cv_header_stdc = yes; then
6550   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6551   if test "$cross_compiling" = yes; then
6552   :
6553 else
6554   cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h.  */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h.  */
6560 #include <ctype.h>
6561 #include <stdlib.h>
6562 #if ((' ' & 0x0FF) == 0x020)
6563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6565 #else
6566 # define ISLOWER(c) \
6567                    (('a' <= (c) && (c) <= 'i') \
6568                      || ('j' <= (c) && (c) <= 'r') \
6569                      || ('s' <= (c) && (c) <= 'z'))
6570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6571 #endif
6572
6573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6574 int
6575 main ()
6576 {
6577   int i;
6578   for (i = 0; i < 256; i++)
6579     if (XOR (islower (i), ISLOWER (i))
6580         || toupper (i) != TOUPPER (i))
6581       return 2;
6582   return 0;
6583 }
6584 _ACEOF
6585 rm -f conftest$ac_exeext
6586 if { (ac_try="$ac_link"
6587 case "(($ac_try" in
6588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589   *) ac_try_echo=$ac_try;;
6590 esac
6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592   (eval "$ac_link") 2>&5
6593   ac_status=$?
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6596   { (case "(($ac_try" in
6597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598   *) ac_try_echo=$ac_try;;
6599 esac
6600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6601   (eval "$ac_try") 2>&5
6602   ac_status=$?
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); }; }; then
6605   :
6606 else
6607   echo "$as_me: program exited with status $ac_status" >&5
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611 ( exit $ac_status )
6612 ac_cv_header_stdc=no
6613 fi
6614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6615 fi
6616
6617
6618 fi
6619 fi
6620 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6621 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6622 if test $ac_cv_header_stdc = yes; then
6623
6624 cat >>confdefs.h <<\_ACEOF
6625 #define STDC_HEADERS 1
6626 _ACEOF
6627
6628 fi
6629
6630 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6641                   inttypes.h stdint.h unistd.h
6642 do
6643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6647   echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649   cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h.  */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h.  */
6655 $ac_includes_default
6656
6657 #include <$ac_header>
6658 _ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (ac_try="$ac_compile"
6661 case "(($ac_try" in
6662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663   *) ac_try_echo=$ac_try;;
6664 esac
6665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6666   (eval "$ac_compile") 2>conftest.er1
6667   ac_status=$?
6668   grep -v '^ *+' conftest.er1 >conftest.err
6669   rm -f conftest.er1
6670   cat conftest.err >&5
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); } && {
6673          test -z "$ac_c_werror_flag" ||
6674          test ! -s conftest.err
6675        } && test -s conftest.$ac_objext; then
6676   eval "$as_ac_Header=yes"
6677 else
6678   echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6680
6681         eval "$as_ac_Header=no"
6682 fi
6683
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 fi
6686 ac_res=`eval echo '${'$as_ac_Header'}'`
6687                { echo "$as_me:$LINENO: result: $ac_res" >&5
6688 echo "${ECHO_T}$ac_res" >&6; }
6689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690   cat >>confdefs.h <<_ACEOF
6691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6692 _ACEOF
6693
6694 fi
6695
6696 done
6697
6698
6699
6700 for ac_header in dlfcn.h
6701 do
6702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6704   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 fi
6709 ac_res=`eval echo '${'$as_ac_Header'}'`
6710                { echo "$as_me:$LINENO: result: $ac_res" >&5
6711 echo "${ECHO_T}$ac_res" >&6; }
6712 else
6713   # Is the header compilable?
6714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h.  */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h.  */
6722 $ac_includes_default
6723 #include <$ac_header>
6724 _ACEOF
6725 rm -f conftest.$ac_objext
6726 if { (ac_try="$ac_compile"
6727 case "(($ac_try" in
6728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729   *) ac_try_echo=$ac_try;;
6730 esac
6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732   (eval "$ac_compile") 2>conftest.er1
6733   ac_status=$?
6734   grep -v '^ *+' conftest.er1 >conftest.err
6735   rm -f conftest.er1
6736   cat conftest.err >&5
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); } && {
6739          test -z "$ac_c_werror_flag" ||
6740          test ! -s conftest.err
6741        } && test -s conftest.$ac_objext; then
6742   ac_header_compiler=yes
6743 else
6744   echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6746
6747         ac_header_compiler=no
6748 fi
6749
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6752 echo "${ECHO_T}$ac_header_compiler" >&6; }
6753
6754 # Is the header present?
6755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6757 cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h.  */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h.  */
6763 #include <$ac_header>
6764 _ACEOF
6765 if { (ac_try="$ac_cpp conftest.$ac_ext"
6766 case "(($ac_try" in
6767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768   *) ac_try_echo=$ac_try;;
6769 esac
6770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6772   ac_status=$?
6773   grep -v '^ *+' conftest.er1 >conftest.err
6774   rm -f conftest.er1
6775   cat conftest.err >&5
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } >/dev/null && {
6778          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6779          test ! -s conftest.err
6780        }; then
6781   ac_header_preproc=yes
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786   ac_header_preproc=no
6787 fi
6788
6789 rm -f conftest.err conftest.$ac_ext
6790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6791 echo "${ECHO_T}$ac_header_preproc" >&6; }
6792
6793 # So?  What about this header?
6794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6795   yes:no: )
6796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6800     ac_header_preproc=yes
6801     ;;
6802   no:yes:* )
6803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6805     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6806 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6807     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6809     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6810 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6813     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6815     ( cat <<\_ASBOX
6816 ## --------------------------------------- ##
6817 ## Report this to http://www.sudo.ws/bugs/ ##
6818 ## --------------------------------------- ##
6819 _ASBOX
6820      ) | sed "s/^/$as_me: WARNING:     /" >&2
6821     ;;
6822 esac
6823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828   eval "$as_ac_Header=\$ac_header_preproc"
6829 fi
6830 ac_res=`eval echo '${'$as_ac_Header'}'`
6831                { echo "$as_me:$LINENO: result: $ac_res" >&5
6832 echo "${ECHO_T}$ac_res" >&6; }
6833
6834 fi
6835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836   cat >>confdefs.h <<_ACEOF
6837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6838 _ACEOF
6839
6840 fi
6841
6842 done
6843
6844
6845 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6846 # find the maximum length of command line arguments
6847 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6848 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6849 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6850   echo $ECHO_N "(cached) $ECHO_C" >&6
6851 else
6852     i=0
6853   teststring="ABCD"
6854
6855   case $build_os in
6856   msdosdjgpp*)
6857     # On DJGPP, this test can blow up pretty badly due to problems in libc
6858     # (any single argument exceeding 2000 bytes causes a buffer overrun
6859     # during glob expansion).  Even if it were fixed, the result of this
6860     # check would be larger than it should be.
6861     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6862     ;;
6863
6864   gnu*)
6865     # Under GNU Hurd, this test is not required because there is
6866     # no limit to the length of command line arguments.
6867     # Libtool will interpret -1 as no limit whatsoever
6868     lt_cv_sys_max_cmd_len=-1;
6869     ;;
6870
6871   cygwin* | mingw*)
6872     # On Win9x/ME, this test blows up -- it succeeds, but takes
6873     # about 5 minutes as the teststring grows exponentially.
6874     # Worse, since 9x/ME are not pre-emptively multitasking,
6875     # you end up with a "frozen" computer, even though with patience
6876     # the test eventually succeeds (with a max line length of 256k).
6877     # Instead, let's just punt: use the minimum linelength reported by
6878     # all of the supported platforms: 8192 (on NT/2K/XP).
6879     lt_cv_sys_max_cmd_len=8192;
6880     ;;
6881
6882   amigaos*)
6883     # On AmigaOS with pdksh, this test takes hours, literally.
6884     # So we just punt and use a minimum line length of 8192.
6885     lt_cv_sys_max_cmd_len=8192;
6886     ;;
6887
6888   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6889     # This has been around since 386BSD, at least.  Likely further.
6890     if test -x /sbin/sysctl; then
6891       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6892     elif test -x /usr/sbin/sysctl; then
6893       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6894     else
6895       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6896     fi
6897     # And add a safety zone
6898     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6899     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6900     ;;
6901
6902   interix*)
6903     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6904     lt_cv_sys_max_cmd_len=196608
6905     ;;
6906
6907   osf*)
6908     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6909     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6910     # nice to cause kernel panics so lets avoid the loop below.
6911     # First set a reasonable default.
6912     lt_cv_sys_max_cmd_len=16384
6913     #
6914     if test -x /sbin/sysconfig; then
6915       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6916         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6917       esac
6918     fi
6919     ;;
6920   sco3.2v5*)
6921     lt_cv_sys_max_cmd_len=102400
6922     ;;
6923   sysv5* | sco5v6* | sysv4.2uw2*)
6924     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6925     if test -n "$kargmax"; then
6926       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6927     else
6928       lt_cv_sys_max_cmd_len=32768
6929     fi
6930     ;;
6931   *)
6932     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6933     if test -n "$lt_cv_sys_max_cmd_len"; then
6934       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6935       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6936     else
6937       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6938       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6939                = "XX$teststring") >/dev/null 2>&1 &&
6940               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6941               lt_cv_sys_max_cmd_len=$new_result &&
6942               test $i != 17 # 1/2 MB should be enough
6943       do
6944         i=`expr $i + 1`
6945         teststring=$teststring$teststring
6946       done
6947       teststring=
6948       # Add a significant safety factor because C++ compilers can tack on massive
6949       # amounts of additional arguments before passing them to the linker.
6950       # It appears as though 1/2 is a usable value.
6951       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6952     fi
6953     ;;
6954   esac
6955
6956 fi
6957
6958 if test -n $lt_cv_sys_max_cmd_len ; then
6959   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6960 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6961 else
6962   { echo "$as_me:$LINENO: result: none" >&5
6963 echo "${ECHO_T}none" >&6; }
6964 fi
6965
6966
6967
6968
6969
6970 # Check for command to grab the raw symbol name followed by C symbol from nm.
6971 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6972 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6973 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976
6977 # These are sane defaults that work on at least a few old systems.
6978 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6979
6980 # Character class describing NM global symbol codes.
6981 symcode='[BCDEGRST]'
6982
6983 # Regexp to match symbols that can be accessed directly from C.
6984 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6985
6986 # Transform an extracted symbol line into a proper C declaration
6987 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6988
6989 # Transform an extracted symbol line into symbol name and symbol address
6990 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'"
6991
6992 # Define system-specific variables.
6993 case $host_os in
6994 aix*)
6995   symcode='[BCDT]'
6996   ;;
6997 cygwin* | mingw* | pw32*)
6998   symcode='[ABCDGISTW]'
6999   ;;
7000 hpux*) # Its linker distinguishes data from code symbols
7001   if test "$host_cpu" = ia64; then
7002     symcode='[ABCDEGRST]'
7003   fi
7004   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7005   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'"
7006   ;;
7007 linux* | k*bsd*-gnu)
7008   if test "$host_cpu" = ia64; then
7009     symcode='[ABCDGIRSTW]'
7010     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7011     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'"
7012   fi
7013   ;;
7014 irix* | nonstopux*)
7015   symcode='[BCDEGRST]'
7016   ;;
7017 osf*)
7018   symcode='[BCDEGQRST]'
7019   ;;
7020 solaris*)
7021   symcode='[BDRT]'
7022   ;;
7023 sco3.2v5*)
7024   symcode='[DT]'
7025   ;;
7026 sysv4.2uw2*)
7027   symcode='[DT]'
7028   ;;
7029 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7030   symcode='[ABDT]'
7031   ;;
7032 sysv4)
7033   symcode='[DFNSTU]'
7034   ;;
7035 esac
7036
7037 # Handle CRLF in mingw tool chain
7038 opt_cr=
7039 case $build_os in
7040 mingw*)
7041   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7042   ;;
7043 esac
7044
7045 # If we're using GNU nm, then use its standard symbol codes.
7046 case `$NM -V 2>&1` in
7047 *GNU* | *'with BFD'*)
7048   symcode='[ABCDGIRSTW]' ;;
7049 esac
7050
7051 # Try without a prefix undercore, then with it.
7052 for ac_symprfx in "" "_"; do
7053
7054   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7055   symxfrm="\\1 $ac_symprfx\\2 \\2"
7056
7057   # Write the raw and C identifiers.
7058   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7059
7060   # Check to see that the pipe works correctly.
7061   pipe_works=no
7062
7063   rm -f conftest*
7064   cat > conftest.$ac_ext <<EOF
7065 #ifdef __cplusplus
7066 extern "C" {
7067 #endif
7068 char nm_test_var;
7069 void nm_test_func(){}
7070 #ifdef __cplusplus
7071 }
7072 #endif
7073 int main(){nm_test_var='a';nm_test_func();return(0);}
7074 EOF
7075
7076   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077   (eval $ac_compile) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); }; then
7081     # Now try to grab the symbols.
7082     nlist=conftest.nm
7083     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7084   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7085   ac_status=$?
7086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087   (exit $ac_status); } && test -s "$nlist"; then
7088       # Try sorting and uniquifying the output.
7089       if sort "$nlist" | uniq > "$nlist"T; then
7090         mv -f "$nlist"T "$nlist"
7091       else
7092         rm -f "$nlist"T
7093       fi
7094
7095       # Make sure that we snagged all the symbols we need.
7096       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7097         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7098           cat <<EOF > conftest.$ac_ext
7099 #ifdef __cplusplus
7100 extern "C" {
7101 #endif
7102
7103 EOF
7104           # Now generate the symbol file.
7105           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7106
7107           cat <<EOF >> conftest.$ac_ext
7108 #if defined (__STDC__) && __STDC__
7109 # define lt_ptr_t void *
7110 #else
7111 # define lt_ptr_t char *
7112 # define const
7113 #endif
7114
7115 /* The mapping between symbol names and symbols. */
7116 const struct {
7117   const char *name;
7118   lt_ptr_t address;
7119 }
7120 lt_preloaded_symbols[] =
7121 {
7122 EOF
7123           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7124           cat <<\EOF >> conftest.$ac_ext
7125   {0, (lt_ptr_t) 0}
7126 };
7127
7128 #ifdef __cplusplus
7129 }
7130 #endif
7131 EOF
7132           # Now try linking the two files.
7133           mv conftest.$ac_objext conftstm.$ac_objext
7134           lt_save_LIBS="$LIBS"
7135           lt_save_CFLAGS="$CFLAGS"
7136           LIBS="conftstm.$ac_objext"
7137           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7138           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7139   (eval $ac_link) 2>&5
7140   ac_status=$?
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7143             pipe_works=yes
7144           fi
7145           LIBS="$lt_save_LIBS"
7146           CFLAGS="$lt_save_CFLAGS"
7147         else
7148           echo "cannot find nm_test_func in $nlist" >&5
7149         fi
7150       else
7151         echo "cannot find nm_test_var in $nlist" >&5
7152       fi
7153     else
7154       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7155     fi
7156   else
7157     echo "$progname: failed program was:" >&5
7158     cat conftest.$ac_ext >&5
7159   fi
7160   rm -rf conftest* conftst*
7161
7162   # Do not use the global_symbol_pipe unless it works.
7163   if test "$pipe_works" = yes; then
7164     break
7165   else
7166     lt_cv_sys_global_symbol_pipe=
7167   fi
7168 done
7169
7170 fi
7171
7172 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7173   lt_cv_sys_global_symbol_to_cdecl=
7174 fi
7175 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7176   { echo "$as_me:$LINENO: result: failed" >&5
7177 echo "${ECHO_T}failed" >&6; }
7178 else
7179   { echo "$as_me:$LINENO: result: ok" >&5
7180 echo "${ECHO_T}ok" >&6; }
7181 fi
7182
7183 { echo "$as_me:$LINENO: checking for objdir" >&5
7184 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7185 if test "${lt_cv_objdir+set}" = set; then
7186   echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188   rm -f .libs 2>/dev/null
7189 mkdir .libs 2>/dev/null
7190 if test -d .libs; then
7191   lt_cv_objdir=.libs
7192 else
7193   # MS-DOS does not allow filenames that begin with a dot.
7194   lt_cv_objdir=_libs
7195 fi
7196 rmdir .libs 2>/dev/null
7197 fi
7198 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7199 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7200 objdir=$lt_cv_objdir
7201
7202
7203
7204
7205
7206 case $host_os in
7207 aix3*)
7208   # AIX sometimes has problems with the GCC collect2 program.  For some
7209   # reason, if we set the COLLECT_NAMES environment variable, the problems
7210   # vanish in a puff of smoke.
7211   if test "X${COLLECT_NAMES+set}" != Xset; then
7212     COLLECT_NAMES=
7213     export COLLECT_NAMES
7214   fi
7215   ;;
7216 esac
7217
7218 # Sed substitution that helps us do robust quoting.  It backslashifies
7219 # metacharacters that are still active within double-quoted strings.
7220 Xsed='sed -e 1s/^X//'
7221 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7222
7223 # Same as above, but do not quote variable references.
7224 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7225
7226 # Sed substitution to delay expansion of an escaped shell variable in a
7227 # double_quote_subst'ed string.
7228 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7229
7230 # Sed substitution to avoid accidental globbing in evaled expressions
7231 no_glob_subst='s/\*/\\\*/g'
7232
7233 # Constants:
7234 rm="rm -f"
7235
7236 # Global variables:
7237 default_ofile=libtool
7238 can_build_shared=yes
7239
7240 # All known linkers require a `.a' archive for static linking (except MSVC,
7241 # which needs '.lib').
7242 libext=a
7243 ltmain="$ac_aux_dir/ltmain.sh"
7244 ofile="$default_ofile"
7245 with_gnu_ld="$lt_cv_prog_gnu_ld"
7246
7247 if test -n "$ac_tool_prefix"; then
7248   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7249 set dummy ${ac_tool_prefix}ar; ac_word=$2
7250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7252 if test "${ac_cv_prog_AR+set}" = set; then
7253   echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255   if test -n "$AR"; then
7256   ac_cv_prog_AR="$AR" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263   for ac_exec_ext in '' $ac_executable_extensions; do
7264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265     ac_cv_prog_AR="${ac_tool_prefix}ar"
7266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270 done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 AR=$ac_cv_prog_AR
7276 if test -n "$AR"; then
7277   { echo "$as_me:$LINENO: result: $AR" >&5
7278 echo "${ECHO_T}$AR" >&6; }
7279 else
7280   { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7282 fi
7283
7284
7285 fi
7286 if test -z "$ac_cv_prog_AR"; then
7287   ac_ct_AR=$AR
7288   # Extract the first word of "ar", so it can be a program name with args.
7289 set dummy ar; ac_word=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   if test -n "$ac_ct_AR"; then
7296   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303   for ac_exec_ext in '' $ac_executable_extensions; do
7304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305     ac_cv_prog_ac_ct_AR="ar"
7306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310 done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7316 if test -n "$ac_ct_AR"; then
7317   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7318 echo "${ECHO_T}$ac_ct_AR" >&6; }
7319 else
7320   { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7322 fi
7323
7324   if test "x$ac_ct_AR" = x; then
7325     AR="false"
7326   else
7327     case $cross_compiling:$ac_tool_warned in
7328 yes:)
7329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7330 whose name does not start with the host triplet.  If you think this
7331 configuration is useful to you, please write to autoconf@gnu.org." >&5
7332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7333 whose name does not start with the host triplet.  If you think this
7334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7335 ac_tool_warned=yes ;;
7336 esac
7337     AR=$ac_ct_AR
7338   fi
7339 else
7340   AR="$ac_cv_prog_AR"
7341 fi
7342
7343 if test -n "$ac_tool_prefix"; then
7344   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_prog_RANLIB+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   if test -n "$RANLIB"; then
7352   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359   for ac_exec_ext in '' $ac_executable_extensions; do
7360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 RANLIB=$ac_cv_prog_RANLIB
7372 if test -n "$RANLIB"; then
7373   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7374 echo "${ECHO_T}$RANLIB" >&6; }
7375 else
7376   { echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6; }
7378 fi
7379
7380
7381 fi
7382 if test -z "$ac_cv_prog_RANLIB"; then
7383   ac_ct_RANLIB=$RANLIB
7384   # Extract the first word of "ranlib", so it can be a program name with args.
7385 set dummy ranlib; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   if test -n "$ac_ct_RANLIB"; then
7392   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   test -z "$as_dir" && as_dir=.
7399   for ac_exec_ext in '' $ac_executable_extensions; do
7400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401     ac_cv_prog_ac_ct_RANLIB="ranlib"
7402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403     break 2
7404   fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409 fi
7410 fi
7411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7412 if test -n "$ac_ct_RANLIB"; then
7413   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7414 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7415 else
7416   { echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6; }
7418 fi
7419
7420   if test "x$ac_ct_RANLIB" = x; then
7421     RANLIB=":"
7422   else
7423     case $cross_compiling:$ac_tool_warned in
7424 yes:)
7425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7426 whose name does not start with the host triplet.  If you think this
7427 configuration is useful to you, please write to autoconf@gnu.org." >&5
7428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7429 whose name does not start with the host triplet.  If you think this
7430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7431 ac_tool_warned=yes ;;
7432 esac
7433     RANLIB=$ac_ct_RANLIB
7434   fi
7435 else
7436   RANLIB="$ac_cv_prog_RANLIB"
7437 fi
7438
7439 if test -n "$ac_tool_prefix"; then
7440   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7441 set dummy ${ac_tool_prefix}strip; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_prog_STRIP+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   if test -n "$STRIP"; then
7448   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7452 do
7453   IFS=$as_save_IFS
7454   test -z "$as_dir" && as_dir=.
7455   for ac_exec_ext in '' $ac_executable_extensions; do
7456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459     break 2
7460   fi
7461 done
7462 done
7463 IFS=$as_save_IFS
7464
7465 fi
7466 fi
7467 STRIP=$ac_cv_prog_STRIP
7468 if test -n "$STRIP"; then
7469   { echo "$as_me:$LINENO: result: $STRIP" >&5
7470 echo "${ECHO_T}$STRIP" >&6; }
7471 else
7472   { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7474 fi
7475
7476
7477 fi
7478 if test -z "$ac_cv_prog_STRIP"; then
7479   ac_ct_STRIP=$STRIP
7480   # Extract the first word of "strip", so it can be a program name with args.
7481 set dummy strip; ac_word=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7485   echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487   if test -n "$ac_ct_STRIP"; then
7488   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493   IFS=$as_save_IFS
7494   test -z "$as_dir" && as_dir=.
7495   for ac_exec_ext in '' $ac_executable_extensions; do
7496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7497     ac_cv_prog_ac_ct_STRIP="strip"
7498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499     break 2
7500   fi
7501 done
7502 done
7503 IFS=$as_save_IFS
7504
7505 fi
7506 fi
7507 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7508 if test -n "$ac_ct_STRIP"; then
7509   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7510 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7511 else
7512   { echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6; }
7514 fi
7515
7516   if test "x$ac_ct_STRIP" = x; then
7517     STRIP=":"
7518   else
7519     case $cross_compiling:$ac_tool_warned in
7520 yes:)
7521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7522 whose name does not start with the host triplet.  If you think this
7523 configuration is useful to you, please write to autoconf@gnu.org." >&5
7524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7525 whose name does not start with the host triplet.  If you think this
7526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7527 ac_tool_warned=yes ;;
7528 esac
7529     STRIP=$ac_ct_STRIP
7530   fi
7531 else
7532   STRIP="$ac_cv_prog_STRIP"
7533 fi
7534
7535
7536 old_CC="$CC"
7537 old_CFLAGS="$CFLAGS"
7538
7539 # Set sane defaults for various variables
7540 test -z "$AR" && AR=ar
7541 test -z "$AR_FLAGS" && AR_FLAGS=cru
7542 test -z "$AS" && AS=as
7543 test -z "$CC" && CC=cc
7544 test -z "$LTCC" && LTCC=$CC
7545 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7546 test -z "$DLLTOOL" && DLLTOOL=dlltool
7547 test -z "$LD" && LD=ld
7548 test -z "$LN_S" && LN_S="ln -s"
7549 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7550 test -z "$NM" && NM=nm
7551 test -z "$SED" && SED=sed
7552 test -z "$OBJDUMP" && OBJDUMP=objdump
7553 test -z "$RANLIB" && RANLIB=:
7554 test -z "$STRIP" && STRIP=:
7555 test -z "$ac_objext" && ac_objext=o
7556
7557 # Determine commands to create old-style static archives.
7558 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7559 old_postinstall_cmds='chmod 644 $oldlib'
7560 old_postuninstall_cmds=
7561
7562 if test -n "$RANLIB"; then
7563   case $host_os in
7564   openbsd*)
7565     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7566     ;;
7567   *)
7568     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7569     ;;
7570   esac
7571   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7572 fi
7573
7574 for cc_temp in $compiler""; do
7575   case $cc_temp in
7576     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7577     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7578     \-*) ;;
7579     *) break;;
7580   esac
7581 done
7582 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7583
7584
7585 # Only perform the check for file, if the check method requires it
7586 case $deplibs_check_method in
7587 file_magic*)
7588   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7589     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7590 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7591 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7592   echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594   case $MAGIC_CMD in
7595 [\\/*] |  ?:[\\/]*)
7596   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7597   ;;
7598 *)
7599   lt_save_MAGIC_CMD="$MAGIC_CMD"
7600   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7601   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7602   for ac_dir in $ac_dummy; do
7603     IFS="$lt_save_ifs"
7604     test -z "$ac_dir" && ac_dir=.
7605     if test -f $ac_dir/${ac_tool_prefix}file; then
7606       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7607       if test -n "$file_magic_test_file"; then
7608         case $deplibs_check_method in
7609         "file_magic "*)
7610           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7611           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7612           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7613             $EGREP "$file_magic_regex" > /dev/null; then
7614             :
7615           else
7616             cat <<EOF 1>&2
7617
7618 *** Warning: the command libtool uses to detect shared libraries,
7619 *** $file_magic_cmd, produces output that libtool cannot recognize.
7620 *** The result is that libtool may fail to recognize shared libraries
7621 *** as such.  This will affect the creation of libtool libraries that
7622 *** depend on shared libraries, but programs linked with such libtool
7623 *** libraries will work regardless of this problem.  Nevertheless, you
7624 *** may want to report the problem to your system manager and/or to
7625 *** bug-libtool@gnu.org
7626
7627 EOF
7628           fi ;;
7629         esac
7630       fi
7631       break
7632     fi
7633   done
7634   IFS="$lt_save_ifs"
7635   MAGIC_CMD="$lt_save_MAGIC_CMD"
7636   ;;
7637 esac
7638 fi
7639
7640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641 if test -n "$MAGIC_CMD"; then
7642   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7643 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7644 else
7645   { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7647 fi
7648
7649 if test -z "$lt_cv_path_MAGIC_CMD"; then
7650   if test -n "$ac_tool_prefix"; then
7651     { echo "$as_me:$LINENO: checking for file" >&5
7652 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7653 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656   case $MAGIC_CMD in
7657 [\\/*] |  ?:[\\/]*)
7658   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7659   ;;
7660 *)
7661   lt_save_MAGIC_CMD="$MAGIC_CMD"
7662   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7663   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7664   for ac_dir in $ac_dummy; do
7665     IFS="$lt_save_ifs"
7666     test -z "$ac_dir" && ac_dir=.
7667     if test -f $ac_dir/file; then
7668       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7669       if test -n "$file_magic_test_file"; then
7670         case $deplibs_check_method in
7671         "file_magic "*)
7672           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7673           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7674           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7675             $EGREP "$file_magic_regex" > /dev/null; then
7676             :
7677           else
7678             cat <<EOF 1>&2
7679
7680 *** Warning: the command libtool uses to detect shared libraries,
7681 *** $file_magic_cmd, produces output that libtool cannot recognize.
7682 *** The result is that libtool may fail to recognize shared libraries
7683 *** as such.  This will affect the creation of libtool libraries that
7684 *** depend on shared libraries, but programs linked with such libtool
7685 *** libraries will work regardless of this problem.  Nevertheless, you
7686 *** may want to report the problem to your system manager and/or to
7687 *** bug-libtool@gnu.org
7688
7689 EOF
7690           fi ;;
7691         esac
7692       fi
7693       break
7694     fi
7695   done
7696   IFS="$lt_save_ifs"
7697   MAGIC_CMD="$lt_save_MAGIC_CMD"
7698   ;;
7699 esac
7700 fi
7701
7702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7703 if test -n "$MAGIC_CMD"; then
7704   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7705 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7706 else
7707   { echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6; }
7709 fi
7710
7711   else
7712     MAGIC_CMD=:
7713   fi
7714 fi
7715
7716   fi
7717   ;;
7718 esac
7719
7720
7721   case $host_os in
7722     rhapsody* | darwin*)
7723     if test -n "$ac_tool_prefix"; then
7724   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7725 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7728 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   if test -n "$DSYMUTIL"; then
7732   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737   IFS=$as_save_IFS
7738   test -z "$as_dir" && as_dir=.
7739   for ac_exec_ext in '' $ac_executable_extensions; do
7740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743     break 2
7744   fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749 fi
7750 fi
7751 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7752 if test -n "$DSYMUTIL"; then
7753   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7754 echo "${ECHO_T}$DSYMUTIL" >&6; }
7755 else
7756   { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7758 fi
7759
7760
7761 fi
7762 if test -z "$ac_cv_prog_DSYMUTIL"; then
7763   ac_ct_DSYMUTIL=$DSYMUTIL
7764   # Extract the first word of "dsymutil", so it can be a program name with args.
7765 set dummy dsymutil; ac_word=$2
7766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7768 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7769   echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771   if test -n "$ac_ct_DSYMUTIL"; then
7772   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777   IFS=$as_save_IFS
7778   test -z "$as_dir" && as_dir=.
7779   for ac_exec_ext in '' $ac_executable_extensions; do
7780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7783     break 2
7784   fi
7785 done
7786 done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7792 if test -n "$ac_ct_DSYMUTIL"; then
7793   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7794 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7795 else
7796   { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7798 fi
7799
7800   if test "x$ac_ct_DSYMUTIL" = x; then
7801     DSYMUTIL=":"
7802   else
7803     case $cross_compiling:$ac_tool_warned in
7804 yes:)
7805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7806 whose name does not start with the host triplet.  If you think this
7807 configuration is useful to you, please write to autoconf@gnu.org." >&5
7808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7809 whose name does not start with the host triplet.  If you think this
7810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7811 ac_tool_warned=yes ;;
7812 esac
7813     DSYMUTIL=$ac_ct_DSYMUTIL
7814   fi
7815 else
7816   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7817 fi
7818
7819     if test -n "$ac_tool_prefix"; then
7820   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7821 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   if test -n "$NMEDIT"; then
7828   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833   IFS=$as_save_IFS
7834   test -z "$as_dir" && as_dir=.
7835   for ac_exec_ext in '' $ac_executable_extensions; do
7836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839     break 2
7840   fi
7841 done
7842 done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 NMEDIT=$ac_cv_prog_NMEDIT
7848 if test -n "$NMEDIT"; then
7849   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7850 echo "${ECHO_T}$NMEDIT" >&6; }
7851 else
7852   { echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6; }
7854 fi
7855
7856
7857 fi
7858 if test -z "$ac_cv_prog_NMEDIT"; then
7859   ac_ct_NMEDIT=$NMEDIT
7860   # Extract the first word of "nmedit", so it can be a program name with args.
7861 set dummy nmedit; ac_word=$2
7862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7864 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7865   echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867   if test -n "$ac_ct_NMEDIT"; then
7868   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7872 do
7873   IFS=$as_save_IFS
7874   test -z "$as_dir" && as_dir=.
7875   for ac_exec_ext in '' $ac_executable_extensions; do
7876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879     break 2
7880   fi
7881 done
7882 done
7883 IFS=$as_save_IFS
7884
7885 fi
7886 fi
7887 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7888 if test -n "$ac_ct_NMEDIT"; then
7889   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7890 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7891 else
7892   { echo "$as_me:$LINENO: result: no" >&5
7893 echo "${ECHO_T}no" >&6; }
7894 fi
7895
7896   if test "x$ac_ct_NMEDIT" = x; then
7897     NMEDIT=":"
7898   else
7899     case $cross_compiling:$ac_tool_warned in
7900 yes:)
7901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7902 whose name does not start with the host triplet.  If you think this
7903 configuration is useful to you, please write to autoconf@gnu.org." >&5
7904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7905 whose name does not start with the host triplet.  If you think this
7906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7907 ac_tool_warned=yes ;;
7908 esac
7909     NMEDIT=$ac_ct_NMEDIT
7910   fi
7911 else
7912   NMEDIT="$ac_cv_prog_NMEDIT"
7913 fi
7914
7915
7916     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7917 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7918 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921   lt_cv_apple_cc_single_mod=no
7922       if test -z "${LT_MULTI_MODULE}"; then
7923    # By default we will add the -single_module flag. You can override
7924    # by either setting the environment variable LT_MULTI_MODULE
7925    # non-empty at configure time, or by adding -multi_module to the
7926    # link flags.
7927    echo "int foo(void){return 1;}" > conftest.c
7928    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7929      -dynamiclib ${wl}-single_module conftest.c
7930    if test -f libconftest.dylib; then
7931      lt_cv_apple_cc_single_mod=yes
7932      rm -rf libconftest.dylib*
7933    fi
7934    rm conftest.c
7935       fi
7936 fi
7937 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7938 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7939     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7940 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7941 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944   lt_cv_ld_exported_symbols_list=no
7945       save_LDFLAGS=$LDFLAGS
7946       echo "_main" > conftest.sym
7947       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7948       cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h.  */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h.  */
7954
7955 int
7956 main ()
7957 {
7958
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (ac_try="$ac_link"
7965 case "(($ac_try" in
7966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967   *) ac_try_echo=$ac_try;;
7968 esac
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970   (eval "$ac_link") 2>conftest.er1
7971   ac_status=$?
7972   grep -v '^ *+' conftest.er1 >conftest.err
7973   rm -f conftest.er1
7974   cat conftest.err >&5
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); } && {
7977          test -z "$ac_c_werror_flag" ||
7978          test ! -s conftest.err
7979        } && test -s conftest$ac_exeext &&
7980        $as_test_x conftest$ac_exeext; then
7981   lt_cv_ld_exported_symbols_list=yes
7982 else
7983   echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7985
7986         lt_cv_ld_exported_symbols_list=no
7987 fi
7988
7989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7990       conftest$ac_exeext conftest.$ac_ext
7991    LDFLAGS="$save_LDFLAGS"
7992
7993 fi
7994 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7995 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7996     case $host_os in
7997     rhapsody* | darwin1.[0123])
7998       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7999     darwin1.*)
8000      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8001     darwin*)
8002       # if running on 10.5 or later, the deployment target defaults
8003       # to the OS version, if on x86, and 10.4, the deployment
8004       # target defaults to 10.4. Don't you love it?
8005       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8006    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8007      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8008    10.[012]*)
8009      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8010    10.*)
8011      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8012       esac
8013     ;;
8014   esac
8015     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8016       _lt_dar_single_mod='$single_module'
8017     fi
8018     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8019       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8020     else
8021       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8022     fi
8023     if test "$DSYMUTIL" != ":"; then
8024       _lt_dsymutil="~$DSYMUTIL \$lib || :"
8025     else
8026       _lt_dsymutil=
8027     fi
8028     ;;
8029   esac
8030
8031
8032 enable_dlopen=yes
8033 enable_win32_dll=no
8034
8035 # Check whether --enable-libtool-lock was given.
8036 if test "${enable_libtool_lock+set}" = set; then
8037   enableval=$enable_libtool_lock;
8038 fi
8039
8040 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8041
8042
8043 # Check whether --with-pic was given.
8044 if test "${with_pic+set}" = set; then
8045   withval=$with_pic; pic_mode="$withval"
8046 else
8047   pic_mode=default
8048 fi
8049
8050 test -z "$pic_mode" && pic_mode=default
8051
8052 # Use C for the default configuration in the libtool script
8053 tagname=
8054 lt_save_CC="$CC"
8055 ac_ext=c
8056 ac_cpp='$CPP $CPPFLAGS'
8057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060
8061
8062 # Source file extension for C test sources.
8063 ac_ext=c
8064
8065 # Object file extension for compiled C test sources.
8066 objext=o
8067 objext=$objext
8068
8069 # Code to be used in simple compile tests
8070 lt_simple_compile_test_code="int some_variable = 0;"
8071
8072 # Code to be used in simple link tests
8073 lt_simple_link_test_code='int main(){return(0);}'
8074
8075
8076 # If no C compiler was specified, use CC.
8077 LTCC=${LTCC-"$CC"}
8078
8079 # If no C compiler flags were specified, use CFLAGS.
8080 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8081
8082 # Allow CC to be a program name with arguments.
8083 compiler=$CC
8084
8085
8086 # save warnings/boilerplate of simple test code
8087 ac_outfile=conftest.$ac_objext
8088 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8089 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8090 _lt_compiler_boilerplate=`cat conftest.err`
8091 $rm conftest*
8092
8093 ac_outfile=conftest.$ac_objext
8094 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8095 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8096 _lt_linker_boilerplate=`cat conftest.err`
8097 $rm -r conftest*
8098
8099
8100 ## CAVEAT EMPTOR:
8101 ## There is no encapsulation within the following macros, do not change
8102 ## the running order or otherwise move them around unless you know exactly
8103 ## what you are doing...
8104
8105 lt_prog_compiler_no_builtin_flag=
8106
8107 if test "$GCC" = yes; then
8108   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8109
8110
8111 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8112 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8113 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116   lt_cv_prog_compiler_rtti_exceptions=no
8117   ac_outfile=conftest.$ac_objext
8118    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8119    lt_compiler_flag="-fno-rtti -fno-exceptions"
8120    # Insert the option either (1) after the last *FLAGS variable, or
8121    # (2) before a word containing "conftest.", or (3) at the end.
8122    # Note that $ac_compile itself does not contain backslashes and begins
8123    # with a dollar sign (not a hyphen), so the echo should work correctly.
8124    # The option is referenced via a variable to avoid confusing sed.
8125    lt_compile=`echo "$ac_compile" | $SED \
8126    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8128    -e 's:$: $lt_compiler_flag:'`
8129    (eval echo "\"\$as_me:8129: $lt_compile\"" >&5)
8130    (eval "$lt_compile" 2>conftest.err)
8131    ac_status=$?
8132    cat conftest.err >&5
8133    echo "$as_me:8133: \$? = $ac_status" >&5
8134    if (exit $ac_status) && test -s "$ac_outfile"; then
8135      # The compiler can only warn and ignore the option if not recognized
8136      # So say no if there are warnings other than the usual output.
8137      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8138      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8139      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8140        lt_cv_prog_compiler_rtti_exceptions=yes
8141      fi
8142    fi
8143    $rm conftest*
8144
8145 fi
8146 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8147 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8148
8149 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8150     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8151 else
8152     :
8153 fi
8154
8155 fi
8156
8157 lt_prog_compiler_wl=
8158 lt_prog_compiler_pic=
8159 lt_prog_compiler_static=
8160
8161 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8162 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8163
8164   if test "$GCC" = yes; then
8165     lt_prog_compiler_wl='-Wl,'
8166     lt_prog_compiler_static='-static'
8167
8168     case $host_os in
8169       aix*)
8170       # All AIX code is PIC.
8171       if test "$host_cpu" = ia64; then
8172         # AIX 5 now supports IA64 processor
8173         lt_prog_compiler_static='-Bstatic'
8174       fi
8175       ;;
8176
8177     amigaos*)
8178       # FIXME: we need at least 68020 code to build shared libraries, but
8179       # adding the `-m68020' flag to GCC prevents building anything better,
8180       # like `-m68040'.
8181       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8182       ;;
8183
8184     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8185       # PIC is the default for these OSes.
8186       ;;
8187
8188     mingw* | cygwin* | pw32* | os2*)
8189       # This hack is so that the source file can tell whether it is being
8190       # built for inclusion in a dll (and should export symbols for example).
8191       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8192       # (--disable-auto-import) libraries
8193       lt_prog_compiler_pic='-DDLL_EXPORT'
8194       ;;
8195
8196     darwin* | rhapsody*)
8197       # PIC is the default on this platform
8198       # Common symbols not allowed in MH_DYLIB files
8199       lt_prog_compiler_pic='-fno-common'
8200       ;;
8201
8202     interix[3-9]*)
8203       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8204       # Instead, we relocate shared libraries at runtime.
8205       ;;
8206
8207     msdosdjgpp*)
8208       # Just because we use GCC doesn't mean we suddenly get shared libraries
8209       # on systems that don't support them.
8210       lt_prog_compiler_can_build_shared=no
8211       enable_shared=no
8212       ;;
8213
8214     sysv4*MP*)
8215       if test -d /usr/nec; then
8216         lt_prog_compiler_pic=-Kconform_pic
8217       fi
8218       ;;
8219
8220     hpux*)
8221       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8222       # not for PA HP-UX.
8223       case $host_cpu in
8224       hppa*64*|ia64*)
8225         # +Z the default
8226         ;;
8227       *)
8228         lt_prog_compiler_pic='-fPIC'
8229         ;;
8230       esac
8231       ;;
8232
8233     *)
8234       lt_prog_compiler_pic='-fPIC'
8235       ;;
8236     esac
8237   else
8238     # PORTME Check for flag to pass linker flags through the system compiler.
8239     case $host_os in
8240     aix*)
8241       lt_prog_compiler_wl='-Wl,'
8242       if test "$host_cpu" = ia64; then
8243         # AIX 5 now supports IA64 processor
8244         lt_prog_compiler_static='-Bstatic'
8245       else
8246         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8247       fi
8248       ;;
8249       darwin*)
8250         # PIC is the default on this platform
8251         # Common symbols not allowed in MH_DYLIB files
8252        case $cc_basename in
8253          xlc*)
8254          lt_prog_compiler_pic='-qnocommon'
8255          lt_prog_compiler_wl='-Wl,'
8256          ;;
8257        esac
8258        ;;
8259
8260     mingw* | cygwin* | pw32* | os2*)
8261       # This hack is so that the source file can tell whether it is being
8262       # built for inclusion in a dll (and should export symbols for example).
8263       lt_prog_compiler_pic='-DDLL_EXPORT'
8264       ;;
8265
8266     hpux9* | hpux10* | hpux11*)
8267       lt_prog_compiler_wl='-Wl,'
8268       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8269       # not for PA HP-UX.
8270       case $host_cpu in
8271       hppa*64*|ia64*)
8272         # +Z the default
8273         ;;
8274       *)
8275         lt_prog_compiler_pic='+Z'
8276         ;;
8277       esac
8278       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8279       lt_prog_compiler_static='${wl}-a ${wl}archive'
8280       ;;
8281
8282     irix5* | irix6* | nonstopux*)
8283       lt_prog_compiler_wl='-Wl,'
8284       # PIC (with -KPIC) is the default.
8285       lt_prog_compiler_static='-non_shared'
8286       ;;
8287
8288     newsos6)
8289       lt_prog_compiler_pic='-KPIC'
8290       lt_prog_compiler_static='-Bstatic'
8291       ;;
8292
8293     linux* | k*bsd*-gnu)
8294       case $cc_basename in
8295       icc* | ecc*)
8296         lt_prog_compiler_wl='-Wl,'
8297         lt_prog_compiler_pic='-KPIC'
8298         lt_prog_compiler_static='-static'
8299         ;;
8300       pgcc* | pgf77* | pgf90* | pgf95*)
8301         # Portland Group compilers (*not* the Pentium gcc compiler,
8302         # which looks to be a dead project)
8303         lt_prog_compiler_wl='-Wl,'
8304         lt_prog_compiler_pic='-fpic'
8305         lt_prog_compiler_static='-Bstatic'
8306         ;;
8307       ccc*)
8308         lt_prog_compiler_wl='-Wl,'
8309         # All Alpha code is PIC.
8310         lt_prog_compiler_static='-non_shared'
8311         ;;
8312       *)
8313         case `$CC -V 2>&1 | sed 5q` in
8314         *Sun\ C*)
8315           # Sun C 5.9
8316           lt_prog_compiler_pic='-KPIC'
8317           lt_prog_compiler_static='-Bstatic'
8318           lt_prog_compiler_wl='-Wl,'
8319           ;;
8320         *Sun\ F*)
8321           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8322           lt_prog_compiler_pic='-KPIC'
8323           lt_prog_compiler_static='-Bstatic'
8324           lt_prog_compiler_wl=''
8325           ;;
8326         esac
8327         ;;
8328       esac
8329       ;;
8330
8331     osf3* | osf4* | osf5*)
8332       lt_prog_compiler_wl='-Wl,'
8333       # All OSF/1 code is PIC.
8334       lt_prog_compiler_static='-non_shared'
8335       ;;
8336
8337     rdos*)
8338       lt_prog_compiler_static='-non_shared'
8339       ;;
8340
8341     solaris*)
8342       lt_prog_compiler_pic='-KPIC'
8343       lt_prog_compiler_static='-Bstatic'
8344       case $cc_basename in
8345       f77* | f90* | f95*)
8346         lt_prog_compiler_wl='-Qoption ld ';;
8347       *)
8348         lt_prog_compiler_wl='-Wl,';;
8349       esac
8350       ;;
8351
8352     sunos4*)
8353       lt_prog_compiler_wl='-Qoption ld '
8354       lt_prog_compiler_pic='-PIC'
8355       lt_prog_compiler_static='-Bstatic'
8356       ;;
8357
8358     sysv4 | sysv4.2uw2* | sysv4.3*)
8359       lt_prog_compiler_wl='-Wl,'
8360       lt_prog_compiler_pic='-KPIC'
8361       lt_prog_compiler_static='-Bstatic'
8362       ;;
8363
8364     sysv4*MP*)
8365       if test -d /usr/nec ;then
8366         lt_prog_compiler_pic='-Kconform_pic'
8367         lt_prog_compiler_static='-Bstatic'
8368       fi
8369       ;;
8370
8371     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8372       lt_prog_compiler_wl='-Wl,'
8373       lt_prog_compiler_pic='-KPIC'
8374       lt_prog_compiler_static='-Bstatic'
8375       ;;
8376
8377     unicos*)
8378       lt_prog_compiler_wl='-Wl,'
8379       lt_prog_compiler_can_build_shared=no
8380       ;;
8381
8382     uts4*)
8383       lt_prog_compiler_pic='-pic'
8384       lt_prog_compiler_static='-Bstatic'
8385       ;;
8386
8387     *)
8388       lt_prog_compiler_can_build_shared=no
8389       ;;
8390     esac
8391   fi
8392
8393 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8394 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8395
8396 #
8397 # Check to make sure the PIC flag actually works.
8398 #
8399 if test -n "$lt_prog_compiler_pic"; then
8400
8401 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8402 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8403 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8404   echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406   lt_cv_prog_compiler_pic_works=no
8407   ac_outfile=conftest.$ac_objext
8408    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8409    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8410    # Insert the option either (1) after the last *FLAGS variable, or
8411    # (2) before a word containing "conftest.", or (3) at the end.
8412    # Note that $ac_compile itself does not contain backslashes and begins
8413    # with a dollar sign (not a hyphen), so the echo should work correctly.
8414    # The option is referenced via a variable to avoid confusing sed.
8415    lt_compile=`echo "$ac_compile" | $SED \
8416    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8417    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8418    -e 's:$: $lt_compiler_flag:'`
8419    (eval echo "\"\$as_me:8419: $lt_compile\"" >&5)
8420    (eval "$lt_compile" 2>conftest.err)
8421    ac_status=$?
8422    cat conftest.err >&5
8423    echo "$as_me:8423: \$? = $ac_status" >&5
8424    if (exit $ac_status) && test -s "$ac_outfile"; then
8425      # The compiler can only warn and ignore the option if not recognized
8426      # So say no if there are warnings other than the usual output.
8427      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8428      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8429      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8430        lt_cv_prog_compiler_pic_works=yes
8431      fi
8432    fi
8433    $rm conftest*
8434
8435 fi
8436 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8437 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8438
8439 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8440     case $lt_prog_compiler_pic in
8441      "" | " "*) ;;
8442      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8443      esac
8444 else
8445     lt_prog_compiler_pic=
8446      lt_prog_compiler_can_build_shared=no
8447 fi
8448
8449 fi
8450 case $host_os in
8451   # For platforms which do not support PIC, -DPIC is meaningless:
8452   *djgpp*)
8453     lt_prog_compiler_pic=
8454     ;;
8455   *)
8456     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8457     ;;
8458 esac
8459
8460 #
8461 # Check to make sure the static flag actually works.
8462 #
8463 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8464 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8465 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8466 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8467   echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469   lt_cv_prog_compiler_static_works=no
8470    save_LDFLAGS="$LDFLAGS"
8471    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8472    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8473    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8474      # The linker can only warn and ignore the option if not recognized
8475      # So say no if there are warnings
8476      if test -s conftest.err; then
8477        # Append any errors to the config.log.
8478        cat conftest.err 1>&5
8479        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8480        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8481        if diff conftest.exp conftest.er2 >/dev/null; then
8482          lt_cv_prog_compiler_static_works=yes
8483        fi
8484      else
8485        lt_cv_prog_compiler_static_works=yes
8486      fi
8487    fi
8488    $rm -r conftest*
8489    LDFLAGS="$save_LDFLAGS"
8490
8491 fi
8492 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8493 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8494
8495 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8496     :
8497 else
8498     lt_prog_compiler_static=
8499 fi
8500
8501
8502 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8503 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8504 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   lt_cv_prog_compiler_c_o=no
8508    $rm -r conftest 2>/dev/null
8509    mkdir conftest
8510    cd conftest
8511    mkdir out
8512    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8513
8514    lt_compiler_flag="-o out/conftest2.$ac_objext"
8515    # Insert the option either (1) after the last *FLAGS variable, or
8516    # (2) before a word containing "conftest.", or (3) at the end.
8517    # Note that $ac_compile itself does not contain backslashes and begins
8518    # with a dollar sign (not a hyphen), so the echo should work correctly.
8519    lt_compile=`echo "$ac_compile" | $SED \
8520    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8521    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8522    -e 's:$: $lt_compiler_flag:'`
8523    (eval echo "\"\$as_me:8523: $lt_compile\"" >&5)
8524    (eval "$lt_compile" 2>out/conftest.err)
8525    ac_status=$?
8526    cat out/conftest.err >&5
8527    echo "$as_me:8527: \$? = $ac_status" >&5
8528    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8529    then
8530      # The compiler can only warn and ignore the option if not recognized
8531      # So say no if there are warnings
8532      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8533      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8534      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8535        lt_cv_prog_compiler_c_o=yes
8536      fi
8537    fi
8538    chmod u+w . 2>&5
8539    $rm conftest*
8540    # SGI C++ compiler will create directory out/ii_files/ for
8541    # template instantiation
8542    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8543    $rm out/* && rmdir out
8544    cd ..
8545    rmdir conftest
8546    $rm conftest*
8547
8548 fi
8549 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8550 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8551
8552
8553 hard_links="nottested"
8554 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8555   # do not overwrite the value of need_locks provided by the user
8556   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8557 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8558   hard_links=yes
8559   $rm conftest*
8560   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8561   touch conftest.a
8562   ln conftest.a conftest.b 2>&5 || hard_links=no
8563   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8564   { echo "$as_me:$LINENO: result: $hard_links" >&5
8565 echo "${ECHO_T}$hard_links" >&6; }
8566   if test "$hard_links" = no; then
8567     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8568 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8569     need_locks=warn
8570   fi
8571 else
8572   need_locks=no
8573 fi
8574
8575 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8576 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8577
8578   runpath_var=
8579   allow_undefined_flag=
8580   enable_shared_with_static_runtimes=no
8581   archive_cmds=
8582   archive_expsym_cmds=
8583   old_archive_From_new_cmds=
8584   old_archive_from_expsyms_cmds=
8585   export_dynamic_flag_spec=
8586   whole_archive_flag_spec=
8587   thread_safe_flag_spec=
8588   hardcode_libdir_flag_spec=
8589   hardcode_libdir_flag_spec_ld=
8590   hardcode_libdir_separator=
8591   hardcode_direct=no
8592   hardcode_minus_L=no
8593   hardcode_shlibpath_var=unsupported
8594   link_all_deplibs=unknown
8595   hardcode_automatic=no
8596   module_cmds=
8597   module_expsym_cmds=
8598   always_export_symbols=no
8599   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8600   # include_expsyms should be a list of space-separated symbols to be *always*
8601   # included in the symbol list
8602   include_expsyms=
8603   # exclude_expsyms can be an extended regexp of symbols to exclude
8604   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8605   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8606   # as well as any symbol that contains `d'.
8607   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8608   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8609   # platforms (ab)use it in PIC code, but their linkers get confused if
8610   # the symbol is explicitly referenced.  Since portable code cannot
8611   # rely on this symbol name, it's probably fine to never include it in
8612   # preloaded symbol tables.
8613   # Exclude shared library initialization/finalization symbols.
8614   extract_expsyms_cmds=
8615   # Just being paranoid about ensuring that cc_basename is set.
8616   for cc_temp in $compiler""; do
8617   case $cc_temp in
8618     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8619     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8620     \-*) ;;
8621     *) break;;
8622   esac
8623 done
8624 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8625
8626   case $host_os in
8627   cygwin* | mingw* | pw32*)
8628     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8629     # When not using gcc, we currently assume that we are using
8630     # Microsoft Visual C++.
8631     if test "$GCC" != yes; then
8632       with_gnu_ld=no
8633     fi
8634     ;;
8635   interix*)
8636     # we just hope/assume this is gcc and not c89 (= MSVC++)
8637     with_gnu_ld=yes
8638     ;;
8639   openbsd*)
8640     with_gnu_ld=no
8641     ;;
8642   esac
8643
8644   ld_shlibs=yes
8645   if test "$with_gnu_ld" = yes; then
8646     # If archive_cmds runs LD, not CC, wlarc should be empty
8647     wlarc='${wl}'
8648
8649     # Set some defaults for GNU ld with shared library support. These
8650     # are reset later if shared libraries are not supported. Putting them
8651     # here allows them to be overridden if necessary.
8652     runpath_var=LD_RUN_PATH
8653     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8654     export_dynamic_flag_spec='${wl}--export-dynamic'
8655     # ancient GNU ld didn't support --whole-archive et. al.
8656     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8657         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8658       else
8659         whole_archive_flag_spec=
8660     fi
8661     supports_anon_versioning=no
8662     case `$LD -v 2>/dev/null` in
8663       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8664       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8665       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8666       *\ 2.11.*) ;; # other 2.11 versions
8667       *) supports_anon_versioning=yes ;;
8668     esac
8669
8670     # See if GNU ld supports shared libraries.
8671     case $host_os in
8672     aix[3-9]*)
8673       # On AIX/PPC, the GNU linker is very broken
8674       if test "$host_cpu" != ia64; then
8675         ld_shlibs=no
8676         cat <<EOF 1>&2
8677
8678 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8679 *** to be unable to reliably create shared libraries on AIX.
8680 *** Therefore, libtool is disabling shared libraries support.  If you
8681 *** really care for shared libraries, you may want to modify your PATH
8682 *** so that a non-GNU linker is found, and then restart.
8683
8684 EOF
8685       fi
8686       ;;
8687
8688     amigaos*)
8689       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)'
8690       hardcode_libdir_flag_spec='-L$libdir'
8691       hardcode_minus_L=yes
8692
8693       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8694       # that the semantics of dynamic libraries on AmigaOS, at least up
8695       # to version 4, is to share data among multiple programs linked
8696       # with the same dynamic library.  Since this doesn't match the
8697       # behavior of shared libraries on other platforms, we can't use
8698       # them.
8699       ld_shlibs=no
8700       ;;
8701
8702     beos*)
8703       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8704         allow_undefined_flag=unsupported
8705         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8706         # support --undefined.  This deserves some investigation.  FIXME
8707         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708       else
8709         ld_shlibs=no
8710       fi
8711       ;;
8712
8713     cygwin* | mingw* | pw32*)
8714       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8715       # as there is no search path for DLLs.
8716       hardcode_libdir_flag_spec='-L$libdir'
8717       allow_undefined_flag=unsupported
8718       always_export_symbols=no
8719       enable_shared_with_static_runtimes=yes
8720       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8721
8722       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8723         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8724         # If the export-symbols file already is a .def file (1st line
8725         # is EXPORTS), use it as is; otherwise, prepend...
8726         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8727           cp $export_symbols $output_objdir/$soname.def;
8728         else
8729           echo EXPORTS > $output_objdir/$soname.def;
8730           cat $export_symbols >> $output_objdir/$soname.def;
8731         fi~
8732         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8733       else
8734         ld_shlibs=no
8735       fi
8736       ;;
8737
8738     interix[3-9]*)
8739       hardcode_direct=no
8740       hardcode_shlibpath_var=no
8741       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8742       export_dynamic_flag_spec='${wl}-E'
8743       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8744       # Instead, shared libraries are loaded at an image base (0x10000000 by
8745       # default) and relocated if they conflict, which is a slow very memory
8746       # consuming and fragmenting process.  To avoid this, we pick a random,
8747       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8748       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8749       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8750       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'
8751       ;;
8752
8753     gnu* | linux* | k*bsd*-gnu)
8754       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8755         tmp_addflag=
8756         case $cc_basename,$host_cpu in
8757         pgcc*)                          # Portland Group C compiler
8758           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'
8759           tmp_addflag=' $pic_flag'
8760           ;;
8761         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8762           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'
8763           tmp_addflag=' $pic_flag -Mnomain' ;;
8764         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8765           tmp_addflag=' -i_dynamic' ;;
8766         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8767           tmp_addflag=' -i_dynamic -nofor_main' ;;
8768         ifc* | ifort*)                  # Intel Fortran compiler
8769           tmp_addflag=' -nofor_main' ;;
8770         esac
8771         case `$CC -V 2>&1 | sed 5q` in
8772         *Sun\ C*)                       # Sun C 5.9
8773           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'
8774           tmp_sharedflag='-G' ;;
8775         *Sun\ F*)                       # Sun Fortran 8.3
8776           tmp_sharedflag='-G' ;;
8777         *)
8778           tmp_sharedflag='-shared' ;;
8779         esac
8780         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781
8782         if test $supports_anon_versioning = yes; then
8783           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8784   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8785   $echo "local: *; };" >> $output_objdir/$libname.ver~
8786           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8787         fi
8788       else
8789         ld_shlibs=no
8790       fi
8791       ;;
8792
8793     netbsd*)
8794       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8795         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8796         wlarc=
8797       else
8798         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8800       fi
8801       ;;
8802
8803     solaris*)
8804       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8805         ld_shlibs=no
8806         cat <<EOF 1>&2
8807
8808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8809 *** create shared libraries on Solaris systems.  Therefore, libtool
8810 *** is disabling shared libraries support.  We urge you to upgrade GNU
8811 *** binutils to release 2.9.1 or newer.  Another option is to modify
8812 *** your PATH or compiler configuration so that the native linker is
8813 *** used, and then restart.
8814
8815 EOF
8816       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8817         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8818         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8819       else
8820         ld_shlibs=no
8821       fi
8822       ;;
8823
8824     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8825       case `$LD -v 2>&1` in
8826         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8827         ld_shlibs=no
8828         cat <<_LT_EOF 1>&2
8829
8830 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8831 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8832 *** is disabling shared libraries support.  We urge you to upgrade GNU
8833 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8834 *** your PATH or compiler configuration so that the native linker is
8835 *** used, and then restart.
8836
8837 _LT_EOF
8838         ;;
8839         *)
8840           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8841             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8842             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8843             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8844           else
8845             ld_shlibs=no
8846           fi
8847         ;;
8848       esac
8849       ;;
8850
8851     sunos4*)
8852       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8853       wlarc=
8854       hardcode_direct=yes
8855       hardcode_shlibpath_var=no
8856       ;;
8857
8858     *)
8859       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8860         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8862       else
8863         ld_shlibs=no
8864       fi
8865       ;;
8866     esac
8867
8868     if test "$ld_shlibs" = no; then
8869       runpath_var=
8870       hardcode_libdir_flag_spec=
8871       export_dynamic_flag_spec=
8872       whole_archive_flag_spec=
8873     fi
8874   else
8875     # PORTME fill in a description of your system's linker (not GNU ld)
8876     case $host_os in
8877     aix3*)
8878       allow_undefined_flag=unsupported
8879       always_export_symbols=yes
8880       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'
8881       # Note: this linker hardcodes the directories in LIBPATH if there
8882       # are no directories specified by -L.
8883       hardcode_minus_L=yes
8884       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8885         # Neither direct hardcoding nor static linking is supported with a
8886         # broken collect2.
8887         hardcode_direct=unsupported
8888       fi
8889       ;;
8890
8891     aix[4-9]*)
8892       if test "$host_cpu" = ia64; then
8893         # On IA64, the linker does run time linking by default, so we don't
8894         # have to do anything special.
8895         aix_use_runtimelinking=no
8896         exp_sym_flag='-Bexport'
8897         no_entry_flag=""
8898       else
8899         # If we're using GNU nm, then we don't want the "-C" option.
8900         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8901         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8902           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'
8903         else
8904           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'
8905         fi
8906         aix_use_runtimelinking=no
8907
8908         # Test if we are trying to use run time linking or normal
8909         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8910         # need to do runtime linking.
8911         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8912           for ld_flag in $LDFLAGS; do
8913           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8914             aix_use_runtimelinking=yes
8915             break
8916           fi
8917           done
8918           ;;
8919         esac
8920
8921         exp_sym_flag='-bexport'
8922         no_entry_flag='-bnoentry'
8923       fi
8924
8925       # When large executables or shared objects are built, AIX ld can
8926       # have problems creating the table of contents.  If linking a library
8927       # or program results in "error TOC overflow" add -mminimal-toc to
8928       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8929       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8930
8931       archive_cmds=''
8932       hardcode_direct=yes
8933       hardcode_libdir_separator=':'
8934       link_all_deplibs=yes
8935
8936       if test "$GCC" = yes; then
8937         case $host_os in aix4.[012]|aix4.[012].*)
8938         # We only want to do this on AIX 4.2 and lower, the check
8939         # below for broken collect2 doesn't work under 4.3+
8940           collect2name=`${CC} -print-prog-name=collect2`
8941           if test -f "$collect2name" && \
8942            strings "$collect2name" | grep resolve_lib_name >/dev/null
8943           then
8944           # We have reworked collect2
8945           :
8946           else
8947           # We have old collect2
8948           hardcode_direct=unsupported
8949           # It fails to find uninstalled libraries when the uninstalled
8950           # path is not listed in the libpath.  Setting hardcode_minus_L
8951           # to unsupported forces relinking
8952           hardcode_minus_L=yes
8953           hardcode_libdir_flag_spec='-L$libdir'
8954           hardcode_libdir_separator=
8955           fi
8956           ;;
8957         esac
8958         shared_flag='-shared'
8959         if test "$aix_use_runtimelinking" = yes; then
8960           shared_flag="$shared_flag "'${wl}-G'
8961         fi
8962       else
8963         # not using gcc
8964         if test "$host_cpu" = ia64; then
8965         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8966         # chokes on -Wl,-G. The following line is correct:
8967           shared_flag='-G'
8968         else
8969           if test "$aix_use_runtimelinking" = yes; then
8970             shared_flag='${wl}-G'
8971           else
8972             shared_flag='${wl}-bM:SRE'
8973           fi
8974         fi
8975       fi
8976
8977       # It seems that -bexpall does not export symbols beginning with
8978       # underscore (_), so it is better to generate a list of symbols to export.
8979       always_export_symbols=yes
8980       if test "$aix_use_runtimelinking" = yes; then
8981         # Warning - without using the other runtime loading flags (-brtl),
8982         # -berok will link without error, but may produce a broken library.
8983         allow_undefined_flag='-berok'
8984        # Determine the default libpath from the value encoded in an empty executable.
8985        cat >conftest.$ac_ext <<_ACEOF
8986 /* confdefs.h.  */
8987 _ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h.  */
8991
8992 int
8993 main ()
8994 {
8995
8996   ;
8997   return 0;
8998 }
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (ac_try="$ac_link"
9002 case "(($ac_try" in
9003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004   *) ac_try_echo=$ac_try;;
9005 esac
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007   (eval "$ac_link") 2>conftest.er1
9008   ac_status=$?
9009   grep -v '^ *+' conftest.er1 >conftest.err
9010   rm -f conftest.er1
9011   cat conftest.err >&5
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); } && {
9014          test -z "$ac_c_werror_flag" ||
9015          test ! -s conftest.err
9016        } && test -s conftest$ac_exeext &&
9017        $as_test_x conftest$ac_exeext; then
9018
9019 lt_aix_libpath_sed='
9020     /Import File Strings/,/^$/ {
9021         /^0/ {
9022             s/^0  *\(.*\)$/\1/
9023             p
9024         }
9025     }'
9026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9027 # Check for a 64-bit object if we didn't find anything.
9028 if test -z "$aix_libpath"; then
9029   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9030 fi
9031 else
9032   echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9034
9035
9036 fi
9037
9038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9039       conftest$ac_exeext conftest.$ac_ext
9040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9041
9042        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9043         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"
9044        else
9045         if test "$host_cpu" = ia64; then
9046           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9047           allow_undefined_flag="-z nodefs"
9048           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"
9049         else
9050          # Determine the default libpath from the value encoded in an empty executable.
9051          cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h.  */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h.  */
9057
9058 int
9059 main ()
9060 {
9061
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9068 case "(($ac_try" in
9069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070   *) ac_try_echo=$ac_try;;
9071 esac
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073   (eval "$ac_link") 2>conftest.er1
9074   ac_status=$?
9075   grep -v '^ *+' conftest.er1 >conftest.err
9076   rm -f conftest.er1
9077   cat conftest.err >&5
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); } && {
9080          test -z "$ac_c_werror_flag" ||
9081          test ! -s conftest.err
9082        } && test -s conftest$ac_exeext &&
9083        $as_test_x conftest$ac_exeext; then
9084
9085 lt_aix_libpath_sed='
9086     /Import File Strings/,/^$/ {
9087         /^0/ {
9088             s/^0  *\(.*\)$/\1/
9089             p
9090         }
9091     }'
9092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9093 # Check for a 64-bit object if we didn't find anything.
9094 if test -z "$aix_libpath"; then
9095   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9096 fi
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101
9102 fi
9103
9104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9105       conftest$ac_exeext conftest.$ac_ext
9106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9107
9108          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9109           # Warning - without using the other run time loading flags,
9110           # -berok will link without error, but may produce a broken library.
9111           no_undefined_flag=' ${wl}-bernotok'
9112           allow_undefined_flag=' ${wl}-berok'
9113           # Exported symbols can be pulled into shared objects from archives
9114           whole_archive_flag_spec='$convenience'
9115           archive_cmds_need_lc=yes
9116           # This is similar to how AIX traditionally builds its shared libraries.
9117           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'
9118         fi
9119       fi
9120       ;;
9121
9122     amigaos*)
9123       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)'
9124       hardcode_libdir_flag_spec='-L$libdir'
9125       hardcode_minus_L=yes
9126       # see comment about different semantics on the GNU ld section
9127       ld_shlibs=no
9128       ;;
9129
9130     bsdi[45]*)
9131       export_dynamic_flag_spec=-rdynamic
9132       ;;
9133
9134     cygwin* | mingw* | pw32*)
9135       # When not using gcc, we currently assume that we are using
9136       # Microsoft Visual C++.
9137       # hardcode_libdir_flag_spec is actually meaningless, as there is
9138       # no search path for DLLs.
9139       hardcode_libdir_flag_spec=' '
9140       allow_undefined_flag=unsupported
9141       # Tell ltmain to make .lib files, not .a files.
9142       libext=lib
9143       # Tell ltmain to make .dll files, not .so files.
9144       shrext_cmds=".dll"
9145       # FIXME: Setting linknames here is a bad hack.
9146       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9147       # The linker will automatically build a .lib file if we build a DLL.
9148       old_archive_From_new_cmds='true'
9149       # FIXME: Should let the user specify the lib program.
9150       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9151       fix_srcfile_path='`cygpath -w "$srcfile"`'
9152       enable_shared_with_static_runtimes=yes
9153       ;;
9154
9155     darwin* | rhapsody*)
9156       case $host_os in
9157         rhapsody* | darwin1.[012])
9158          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9159          ;;
9160        *) # Darwin 1.3 on
9161          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9162            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9163          else
9164            case ${MACOSX_DEPLOYMENT_TARGET} in
9165              10.[012])
9166                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9167                ;;
9168              10.*)
9169                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9170                ;;
9171            esac
9172          fi
9173          ;;
9174       esac
9175       archive_cmds_need_lc=no
9176       hardcode_direct=no
9177       hardcode_automatic=yes
9178       hardcode_shlibpath_var=unsupported
9179       whole_archive_flag_spec=''
9180       link_all_deplibs=yes
9181     if test "$GCC" = yes ; then
9182         output_verbose_link_cmd='echo'
9183         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9184         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9185         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}"
9186         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}"
9187     else
9188       case $cc_basename in
9189         xlc*)
9190          output_verbose_link_cmd='echo'
9191          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9192          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9193           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9194          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}'
9195           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}'
9196           ;;
9197        *)
9198          ld_shlibs=no
9199           ;;
9200       esac
9201     fi
9202       ;;
9203
9204     dgux*)
9205       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9206       hardcode_libdir_flag_spec='-L$libdir'
9207       hardcode_shlibpath_var=no
9208       ;;
9209
9210     freebsd1*)
9211       ld_shlibs=no
9212       ;;
9213
9214     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9215     # support.  Future versions do this automatically, but an explicit c++rt0.o
9216     # does not break anything, and helps significantly (at the cost of a little
9217     # extra space).
9218     freebsd2.2*)
9219       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9220       hardcode_libdir_flag_spec='-R$libdir'
9221       hardcode_direct=yes
9222       hardcode_shlibpath_var=no
9223       ;;
9224
9225     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9226     freebsd2*)
9227       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9228       hardcode_direct=yes
9229       hardcode_minus_L=yes
9230       hardcode_shlibpath_var=no
9231       ;;
9232
9233     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9234     freebsd* | dragonfly*)
9235       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9236       hardcode_libdir_flag_spec='-R$libdir'
9237       hardcode_direct=yes
9238       hardcode_shlibpath_var=no
9239       ;;
9240
9241     hpux9*)
9242       if test "$GCC" = yes; then
9243         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'
9244       else
9245         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'
9246       fi
9247       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9248       hardcode_libdir_separator=:
9249       hardcode_direct=yes
9250
9251       # hardcode_minus_L: Not really in the search PATH,
9252       # but as the default location of the library.
9253       hardcode_minus_L=yes
9254       export_dynamic_flag_spec='${wl}-E'
9255       ;;
9256
9257     hpux10*)
9258       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9259         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9260       else
9261         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9262       fi
9263       if test "$with_gnu_ld" = no; then
9264         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9265         hardcode_libdir_separator=:
9266
9267         hardcode_direct=yes
9268         export_dynamic_flag_spec='${wl}-E'
9269
9270         # hardcode_minus_L: Not really in the search PATH,
9271         # but as the default location of the library.
9272         hardcode_minus_L=yes
9273       fi
9274       ;;
9275
9276     hpux11*)
9277       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9278         case $host_cpu in
9279         hppa*64*)
9280           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9281           ;;
9282         ia64*)
9283           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9284           ;;
9285         *)
9286           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9287           ;;
9288         esac
9289       else
9290         case $host_cpu in
9291         hppa*64*)
9292           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9293           ;;
9294         ia64*)
9295           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9296           ;;
9297         *)
9298           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9299           ;;
9300         esac
9301       fi
9302       if test "$with_gnu_ld" = no; then
9303         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9304         hardcode_libdir_separator=:
9305
9306         case $host_cpu in
9307         hppa*64*|ia64*)
9308           hardcode_libdir_flag_spec_ld='+b $libdir'
9309           hardcode_direct=no
9310           hardcode_shlibpath_var=no
9311           ;;
9312         *)
9313           hardcode_direct=yes
9314           export_dynamic_flag_spec='${wl}-E'
9315
9316           # hardcode_minus_L: Not really in the search PATH,
9317           # but as the default location of the library.
9318           hardcode_minus_L=yes
9319           ;;
9320         esac
9321       fi
9322       ;;
9323
9324     irix5* | irix6* | nonstopux*)
9325       if test "$GCC" = yes; then
9326         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'
9327       else
9328         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'
9329         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9330       fi
9331       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9332       hardcode_libdir_separator=:
9333       link_all_deplibs=yes
9334       ;;
9335
9336     netbsd*)
9337       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9338         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9339       else
9340         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9341       fi
9342       hardcode_libdir_flag_spec='-R$libdir'
9343       hardcode_direct=yes
9344       hardcode_shlibpath_var=no
9345       ;;
9346
9347     newsos6)
9348       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349       hardcode_direct=yes
9350       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9351       hardcode_libdir_separator=:
9352       hardcode_shlibpath_var=no
9353       ;;
9354
9355     openbsd*)
9356       if test -f /usr/libexec/ld.so; then
9357         hardcode_direct=yes
9358         hardcode_shlibpath_var=no
9359         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9360           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9361           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9362           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9363           export_dynamic_flag_spec='${wl}-E'
9364         else
9365           case $host_os in
9366            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9367              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9368              hardcode_libdir_flag_spec='-R$libdir'
9369              ;;
9370            *)
9371              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9372              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9373              ;;
9374           esac
9375         fi
9376       else
9377         ld_shlibs=no
9378       fi
9379       ;;
9380
9381     os2*)
9382       hardcode_libdir_flag_spec='-L$libdir'
9383       hardcode_minus_L=yes
9384       allow_undefined_flag=unsupported
9385       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'
9386       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9387       ;;
9388
9389     osf3*)
9390       if test "$GCC" = yes; then
9391         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9392         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'
9393       else
9394         allow_undefined_flag=' -expect_unresolved \*'
9395         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'
9396       fi
9397       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398       hardcode_libdir_separator=:
9399       ;;
9400
9401     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9402       if test "$GCC" = yes; then
9403         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9404         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'
9405         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9406       else
9407         allow_undefined_flag=' -expect_unresolved \*'
9408         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'
9409         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9410         $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'
9411
9412         # Both c and cxx compiler support -rpath directly
9413         hardcode_libdir_flag_spec='-rpath $libdir'
9414       fi
9415       hardcode_libdir_separator=:
9416       ;;
9417
9418     solaris*)
9419       no_undefined_flag=' -z text'
9420       if test "$GCC" = yes; then
9421         wlarc='${wl}'
9422         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9423         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9424           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9425       else
9426         wlarc=''
9427         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9429         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9430       fi
9431       hardcode_libdir_flag_spec='-R$libdir'
9432       hardcode_shlibpath_var=no
9433       case $host_os in
9434       solaris2.[0-5] | solaris2.[0-5].*) ;;
9435       *)
9436         # The compiler driver will combine and reorder linker options,
9437         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9438         # but is careful enough not to reorder.
9439         # Supported since Solaris 2.6 (maybe 2.5.1?)
9440         if test "$GCC" = yes; then
9441           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9442         else
9443           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9444         fi
9445         ;;
9446       esac
9447       link_all_deplibs=yes
9448       ;;
9449
9450     sunos4*)
9451       if test "x$host_vendor" = xsequent; then
9452         # Use $CC to link under sequent, because it throws in some extra .o
9453         # files that make .init and .fini sections work.
9454         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9455       else
9456         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9457       fi
9458       hardcode_libdir_flag_spec='-L$libdir'
9459       hardcode_direct=yes
9460       hardcode_minus_L=yes
9461       hardcode_shlibpath_var=no
9462       ;;
9463
9464     sysv4)
9465       case $host_vendor in
9466         sni)
9467           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468           hardcode_direct=yes # is this really true???
9469         ;;
9470         siemens)
9471           ## LD is ld it makes a PLAMLIB
9472           ## CC just makes a GrossModule.
9473           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9474           reload_cmds='$CC -r -o $output$reload_objs'
9475           hardcode_direct=no
9476         ;;
9477         motorola)
9478           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9479           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9480         ;;
9481       esac
9482       runpath_var='LD_RUN_PATH'
9483       hardcode_shlibpath_var=no
9484       ;;
9485
9486     sysv4.3*)
9487       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9488       hardcode_shlibpath_var=no
9489       export_dynamic_flag_spec='-Bexport'
9490       ;;
9491
9492     sysv4*MP*)
9493       if test -d /usr/nec; then
9494         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495         hardcode_shlibpath_var=no
9496         runpath_var=LD_RUN_PATH
9497         hardcode_runpath_var=yes
9498         ld_shlibs=yes
9499       fi
9500       ;;
9501
9502     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9503       no_undefined_flag='${wl}-z,text'
9504       archive_cmds_need_lc=no
9505       hardcode_shlibpath_var=no
9506       runpath_var='LD_RUN_PATH'
9507
9508       if test "$GCC" = yes; then
9509         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511       else
9512         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514       fi
9515       ;;
9516
9517     sysv5* | sco3.2v5* | sco5v6*)
9518       # Note: We can NOT use -z defs as we might desire, because we do not
9519       # link with -lc, and that would cause any symbols used from libc to
9520       # always be unresolved, which means just about no library would
9521       # ever link correctly.  If we're not using GNU ld we use -z text
9522       # though, which does catch some bad symbols but isn't as heavy-handed
9523       # as -z defs.
9524       no_undefined_flag='${wl}-z,text'
9525       allow_undefined_flag='${wl}-z,nodefs'
9526       archive_cmds_need_lc=no
9527       hardcode_shlibpath_var=no
9528       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9529       hardcode_libdir_separator=':'
9530       link_all_deplibs=yes
9531       export_dynamic_flag_spec='${wl}-Bexport'
9532       runpath_var='LD_RUN_PATH'
9533
9534       if test "$GCC" = yes; then
9535         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9536         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9537       else
9538         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9539         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9540       fi
9541       ;;
9542
9543     uts4*)
9544       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545       hardcode_libdir_flag_spec='-L$libdir'
9546       hardcode_shlibpath_var=no
9547       ;;
9548
9549     *)
9550       ld_shlibs=no
9551       ;;
9552     esac
9553   fi
9554
9555 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9556 echo "${ECHO_T}$ld_shlibs" >&6; }
9557 test "$ld_shlibs" = no && can_build_shared=no
9558
9559 #
9560 # Do we need to explicitly link libc?
9561 #
9562 case "x$archive_cmds_need_lc" in
9563 x|xyes)
9564   # Assume -lc should be added
9565   archive_cmds_need_lc=yes
9566
9567   if test "$enable_shared" = yes && test "$GCC" = yes; then
9568     case $archive_cmds in
9569     *'~'*)
9570       # FIXME: we may have to deal with multi-command sequences.
9571       ;;
9572     '$CC '*)
9573       # Test whether the compiler implicitly links with -lc since on some
9574       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9575       # to ld, don't add -lc before -lgcc.
9576       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9577 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9578       $rm conftest*
9579       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9580
9581       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582   (eval $ac_compile) 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } 2>conftest.err; then
9586         soname=conftest
9587         lib=conftest
9588         libobjs=conftest.$ac_objext
9589         deplibs=
9590         wl=$lt_prog_compiler_wl
9591         pic_flag=$lt_prog_compiler_pic
9592         compiler_flags=-v
9593         linker_flags=-v
9594         verstring=
9595         output_objdir=.
9596         libname=conftest
9597         lt_save_allow_undefined_flag=$allow_undefined_flag
9598         allow_undefined_flag=
9599         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9600   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); }
9604         then
9605           archive_cmds_need_lc=no
9606         else
9607           archive_cmds_need_lc=yes
9608         fi
9609         allow_undefined_flag=$lt_save_allow_undefined_flag
9610       else
9611         cat conftest.err 1>&5
9612       fi
9613       $rm conftest*
9614       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9615 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9616       ;;
9617     esac
9618   fi
9619   ;;
9620 esac
9621
9622 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9623 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9624 library_names_spec=
9625 libname_spec='lib$name'
9626 soname_spec=
9627 shrext_cmds=".so"
9628 postinstall_cmds=
9629 postuninstall_cmds=
9630 finish_cmds=
9631 finish_eval=
9632 shlibpath_var=
9633 shlibpath_overrides_runpath=unknown
9634 version_type=none
9635 dynamic_linker="$host_os ld.so"
9636 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9637
9638 if test "$GCC" = yes; then
9639   case $host_os in
9640     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9641     *) lt_awk_arg="/^libraries:/" ;;
9642   esac
9643   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9644   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9645     # if the path contains ";" then we assume it to be the separator
9646     # otherwise default to the standard path separator (i.e. ":") - it is
9647     # assumed that no part of a normal pathname contains ";" but that should
9648     # okay in the real world where ";" in dirpaths is itself problematic.
9649     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9650   else
9651     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9652   fi
9653   # Ok, now we have the path, separated by spaces, we can step through it
9654   # and add multilib dir if necessary.
9655   lt_tmp_lt_search_path_spec=
9656   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9657   for lt_sys_path in $lt_search_path_spec; do
9658     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9659       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9660     else
9661       test -d "$lt_sys_path" && \
9662         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9663     fi
9664   done
9665   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9666 BEGIN {RS=" "; FS="/|\n";} {
9667   lt_foo="";
9668   lt_count=0;
9669   for (lt_i = NF; lt_i > 0; lt_i--) {
9670     if ($lt_i != "" && $lt_i != ".") {
9671       if ($lt_i == "..") {
9672         lt_count++;
9673       } else {
9674         if (lt_count == 0) {
9675           lt_foo="/" $lt_i lt_foo;
9676         } else {
9677           lt_count--;
9678         }
9679       }
9680     }
9681   }
9682   if (lt_foo != "") { lt_freq[lt_foo]++; }
9683   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9684 }'`
9685   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9686 else
9687   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9688 fi
9689 need_lib_prefix=no
9690 hardcode_into_libs=no
9691
9692 # when you set need_version to no, make sure it does not cause -set_version
9693 # flags to be left without arguments
9694 need_version=no
9695
9696 case $host_os in
9697 aix3*)
9698   version_type=linux
9699   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9700   shlibpath_var=LIBPATH
9701
9702   # AIX 3 has no versioning support, so we append a major version to the name.
9703   soname_spec='${libname}${release}${shared_ext}$major'
9704   ;;
9705
9706 aix[4-9]*)
9707   version_type=linux
9708   need_lib_prefix=no
9709   need_version=no
9710   hardcode_into_libs=yes
9711   if test "$host_cpu" = ia64; then
9712     # AIX 5 supports IA64
9713     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9714     shlibpath_var=LD_LIBRARY_PATH
9715   else
9716     # With GCC up to 2.95.x, collect2 would create an import file
9717     # for dependence libraries.  The import file would start with
9718     # the line `#! .'.  This would cause the generated library to
9719     # depend on `.', always an invalid library.  This was fixed in
9720     # development snapshots of GCC prior to 3.0.
9721     case $host_os in
9722       aix4 | aix4.[01] | aix4.[01].*)
9723       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9724            echo ' yes '
9725            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9726         :
9727       else
9728         can_build_shared=no
9729       fi
9730       ;;
9731     esac
9732     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9733     # soname into executable. Probably we can add versioning support to
9734     # collect2, so additional links can be useful in future.
9735     if test "$aix_use_runtimelinking" = yes; then
9736       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9737       # instead of lib<name>.a to let people know that these are not
9738       # typical AIX shared libraries.
9739       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740     else
9741       # We preserve .a as extension for shared libraries through AIX4.2
9742       # and later when we are not doing run time linking.
9743       library_names_spec='${libname}${release}.a $libname.a'
9744       soname_spec='${libname}${release}${shared_ext}$major'
9745     fi
9746     shlibpath_var=LIBPATH
9747   fi
9748   ;;
9749
9750 amigaos*)
9751   library_names_spec='$libname.ixlibrary $libname.a'
9752   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9753   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'
9754   ;;
9755
9756 beos*)
9757   library_names_spec='${libname}${shared_ext}'
9758   dynamic_linker="$host_os ld.so"
9759   shlibpath_var=LIBRARY_PATH
9760   ;;
9761
9762 bsdi[45]*)
9763   version_type=linux
9764   need_version=no
9765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766   soname_spec='${libname}${release}${shared_ext}$major'
9767   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9768   shlibpath_var=LD_LIBRARY_PATH
9769   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9770   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9771   # the default ld.so.conf also contains /usr/contrib/lib and
9772   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9773   # libtool to hard-code these into programs
9774   ;;
9775
9776 cygwin* | mingw* | pw32*)
9777   version_type=windows
9778   shrext_cmds=".dll"
9779   need_version=no
9780   need_lib_prefix=no
9781
9782   case $GCC,$host_os in
9783   yes,cygwin* | yes,mingw* | yes,pw32*)
9784     library_names_spec='$libname.dll.a'
9785     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9786     postinstall_cmds='base_file=`basename \${file}`~
9787       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9788       dldir=$destdir/`dirname \$dlpath`~
9789       test -d \$dldir || mkdir -p \$dldir~
9790       $install_prog $dir/$dlname \$dldir/$dlname~
9791       chmod a+x \$dldir/$dlname'
9792     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9793       dlpath=$dir/\$dldll~
9794        $rm \$dlpath'
9795     shlibpath_overrides_runpath=yes
9796
9797     case $host_os in
9798     cygwin*)
9799       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9800       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9801       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9802       ;;
9803     mingw*)
9804       # MinGW DLLs use traditional 'lib' prefix
9805       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9806       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9807       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9808         # It is most probably a Windows format PATH printed by
9809         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9810         # path with ; separators, and with drive letters. We can handle the
9811         # drive letters (cygwin fileutils understands them), so leave them,
9812         # especially as we might pass files found there to a mingw objdump,
9813         # which wouldn't understand a cygwinified path. Ahh.
9814         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9815       else
9816         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9817       fi
9818       ;;
9819     pw32*)
9820       # pw32 DLLs use 'pw' prefix rather than 'lib'
9821       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9822       ;;
9823     esac
9824     ;;
9825
9826   *)
9827     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9828     ;;
9829   esac
9830   dynamic_linker='Win32 ld.exe'
9831   # FIXME: first we should search . and the directory the executable is in
9832   shlibpath_var=PATH
9833   ;;
9834
9835 darwin* | rhapsody*)
9836   dynamic_linker="$host_os dyld"
9837   version_type=darwin
9838   need_lib_prefix=no
9839   need_version=no
9840   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9841   soname_spec='${libname}${release}${major}$shared_ext'
9842   shlibpath_overrides_runpath=yes
9843   shlibpath_var=DYLD_LIBRARY_PATH
9844   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9845
9846   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9847   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9848   ;;
9849
9850 dgux*)
9851   version_type=linux
9852   need_lib_prefix=no
9853   need_version=no
9854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9855   soname_spec='${libname}${release}${shared_ext}$major'
9856   shlibpath_var=LD_LIBRARY_PATH
9857   ;;
9858
9859 freebsd1*)
9860   dynamic_linker=no
9861   ;;
9862
9863 freebsd* | dragonfly*)
9864   # DragonFly does not have aout.  When/if they implement a new
9865   # versioning mechanism, adjust this.
9866   if test -x /usr/bin/objformat; then
9867     objformat=`/usr/bin/objformat`
9868   else
9869     case $host_os in
9870     freebsd[123]*) objformat=aout ;;
9871     *) objformat=elf ;;
9872     esac
9873   fi
9874   version_type=freebsd-$objformat
9875   case $version_type in
9876     freebsd-elf*)
9877       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9878       need_version=no
9879       need_lib_prefix=no
9880       ;;
9881     freebsd-*)
9882       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9883       need_version=no
9884       ;;
9885   esac
9886   shlibpath_var=LD_LIBRARY_PATH
9887   case $host_os in
9888   freebsd2*)
9889     shlibpath_overrides_runpath=yes
9890     ;;
9891   freebsd3.[01]* | freebsdelf3.[01]*)
9892     shlibpath_overrides_runpath=yes
9893     hardcode_into_libs=yes
9894     ;;
9895   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9896   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9897     shlibpath_overrides_runpath=no
9898     hardcode_into_libs=yes
9899     ;;
9900   *) # from 4.6 on, and DragonFly
9901     shlibpath_overrides_runpath=yes
9902     hardcode_into_libs=yes
9903     ;;
9904   esac
9905   ;;
9906
9907 gnu*)
9908   version_type=linux
9909   need_lib_prefix=no
9910   need_version=no
9911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9912   soname_spec='${libname}${release}${shared_ext}$major'
9913   shlibpath_var=LD_LIBRARY_PATH
9914   hardcode_into_libs=yes
9915   ;;
9916
9917 hpux9* | hpux10* | hpux11*)
9918   # Give a soname corresponding to the major version so that dld.sl refuses to
9919   # link against other versions.
9920   version_type=sunos
9921   need_lib_prefix=no
9922   need_version=no
9923   case $host_cpu in
9924   ia64*)
9925     shrext_cmds='.so'
9926     hardcode_into_libs=yes
9927     dynamic_linker="$host_os dld.so"
9928     shlibpath_var=LD_LIBRARY_PATH
9929     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931     soname_spec='${libname}${release}${shared_ext}$major'
9932     if test "X$HPUX_IA64_MODE" = X32; then
9933       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9934     else
9935       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9936     fi
9937     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9938     ;;
9939    hppa*64*)
9940      shrext_cmds='.sl'
9941      hardcode_into_libs=yes
9942      dynamic_linker="$host_os dld.sl"
9943      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9944      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9945      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946      soname_spec='${libname}${release}${shared_ext}$major'
9947      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9948      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9949      ;;
9950    *)
9951     shrext_cmds='.sl'
9952     dynamic_linker="$host_os dld.sl"
9953     shlibpath_var=SHLIB_PATH
9954     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956     soname_spec='${libname}${release}${shared_ext}$major'
9957     ;;
9958   esac
9959   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9960   postinstall_cmds='chmod 555 $lib'
9961   ;;
9962
9963 interix[3-9]*)
9964   version_type=linux
9965   need_lib_prefix=no
9966   need_version=no
9967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9968   soname_spec='${libname}${release}${shared_ext}$major'
9969   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9970   shlibpath_var=LD_LIBRARY_PATH
9971   shlibpath_overrides_runpath=no
9972   hardcode_into_libs=yes
9973   ;;
9974
9975 irix5* | irix6* | nonstopux*)
9976   case $host_os in
9977     nonstopux*) version_type=nonstopux ;;
9978     *)
9979         if test "$lt_cv_prog_gnu_ld" = yes; then
9980                 version_type=linux
9981         else
9982                 version_type=irix
9983         fi ;;
9984   esac
9985   need_lib_prefix=no
9986   need_version=no
9987   soname_spec='${libname}${release}${shared_ext}$major'
9988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9989   case $host_os in
9990   irix5* | nonstopux*)
9991     libsuff= shlibsuff=
9992     ;;
9993   *)
9994     case $LD in # libtool.m4 will add one of these switches to LD
9995     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9996       libsuff= shlibsuff= libmagic=32-bit;;
9997     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9998       libsuff=32 shlibsuff=N32 libmagic=N32;;
9999     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10000       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10001     *) libsuff= shlibsuff= libmagic=never-match;;
10002     esac
10003     ;;
10004   esac
10005   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10006   shlibpath_overrides_runpath=no
10007   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10008   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10009   hardcode_into_libs=yes
10010   ;;
10011
10012 # No shared lib support for Linux oldld, aout, or coff.
10013 linux*oldld* | linux*aout* | linux*coff*)
10014   dynamic_linker=no
10015   ;;
10016
10017 # This must be Linux ELF.
10018 linux* | k*bsd*-gnu)
10019   version_type=linux
10020   need_lib_prefix=no
10021   need_version=no
10022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023   soname_spec='${libname}${release}${shared_ext}$major'
10024   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10025   shlibpath_var=LD_LIBRARY_PATH
10026   shlibpath_overrides_runpath=no
10027   # This implies no fast_install, which is unacceptable.
10028   # Some rework will be needed to allow for fast_install
10029   # before this can be enabled.
10030   hardcode_into_libs=yes
10031
10032   # Append ld.so.conf contents to the search path
10033   if test -f /etc/ld.so.conf; then
10034     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' ' '`
10035     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10036   fi
10037
10038   # We used to test for /lib/ld.so.1 and disable shared libraries on
10039   # powerpc, because MkLinux only supported shared libraries with the
10040   # GNU dynamic linker.  Since this was broken with cross compilers,
10041   # most powerpc-linux boxes support dynamic linking these days and
10042   # people can always --disable-shared, the test was removed, and we
10043   # assume the GNU/Linux dynamic linker is in use.
10044   dynamic_linker='GNU/Linux ld.so'
10045   ;;
10046
10047 netbsd*)
10048   version_type=sunos
10049   need_lib_prefix=no
10050   need_version=no
10051   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10053     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10054     dynamic_linker='NetBSD (a.out) ld.so'
10055   else
10056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10057     soname_spec='${libname}${release}${shared_ext}$major'
10058     dynamic_linker='NetBSD ld.elf_so'
10059   fi
10060   shlibpath_var=LD_LIBRARY_PATH
10061   shlibpath_overrides_runpath=yes
10062   hardcode_into_libs=yes
10063   ;;
10064
10065 newsos6)
10066   version_type=linux
10067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068   shlibpath_var=LD_LIBRARY_PATH
10069   shlibpath_overrides_runpath=yes
10070   ;;
10071
10072 nto-qnx*)
10073   version_type=linux
10074   need_lib_prefix=no
10075   need_version=no
10076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077   soname_spec='${libname}${release}${shared_ext}$major'
10078   shlibpath_var=LD_LIBRARY_PATH
10079   shlibpath_overrides_runpath=yes
10080   ;;
10081
10082 openbsd*)
10083   version_type=sunos
10084   sys_lib_dlsearch_path_spec="/usr/lib"
10085   need_lib_prefix=no
10086   need_version=no
10087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10088   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10089   shlibpath_var=LD_LIBRARY_PATH
10090   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10091     case $host_os in
10092       openbsd2.[89] | openbsd2.[89].*)
10093         shlibpath_overrides_runpath=no
10094         ;;
10095       *)
10096         shlibpath_overrides_runpath=yes
10097         ;;
10098       esac
10099   else
10100     shlibpath_overrides_runpath=yes
10101   fi
10102   ;;
10103
10104 os2*)
10105   libname_spec='$name'
10106   shrext_cmds=".dll"
10107   need_lib_prefix=no
10108   library_names_spec='$libname${shared_ext} $libname.a'
10109   dynamic_linker='OS/2 ld.exe'
10110   shlibpath_var=LIBPATH
10111   ;;
10112
10113 osf3* | osf4* | osf5*)
10114   version_type=osf
10115   need_lib_prefix=no
10116   need_version=no
10117   soname_spec='${libname}${release}${shared_ext}$major'
10118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119   shlibpath_var=LD_LIBRARY_PATH
10120   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10121   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10122   ;;
10123
10124 rdos*)
10125   dynamic_linker=no
10126   ;;
10127
10128 solaris*)
10129   version_type=linux
10130   need_lib_prefix=no
10131   need_version=no
10132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133   soname_spec='${libname}${release}${shared_ext}$major'
10134   shlibpath_var=LD_LIBRARY_PATH
10135   shlibpath_overrides_runpath=yes
10136   hardcode_into_libs=yes
10137   # ldd complains unless libraries are executable
10138   postinstall_cmds='chmod +x $lib'
10139   ;;
10140
10141 sunos4*)
10142   version_type=sunos
10143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10144   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10145   shlibpath_var=LD_LIBRARY_PATH
10146   shlibpath_overrides_runpath=yes
10147   if test "$with_gnu_ld" = yes; then
10148     need_lib_prefix=no
10149   fi
10150   need_version=no
10151   ;;
10152
10153 sysv4 | sysv4.3*)
10154   version_type=linux
10155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156   soname_spec='${libname}${release}${shared_ext}$major'
10157   shlibpath_var=LD_LIBRARY_PATH
10158   case $host_vendor in
10159     sni)
10160       shlibpath_overrides_runpath=no
10161       need_lib_prefix=no
10162       export_dynamic_flag_spec='${wl}-Blargedynsym'
10163       runpath_var=LD_RUN_PATH
10164       ;;
10165     siemens)
10166       need_lib_prefix=no
10167       ;;
10168     motorola)
10169       need_lib_prefix=no
10170       need_version=no
10171       shlibpath_overrides_runpath=no
10172       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10173       ;;
10174   esac
10175   ;;
10176
10177 sysv4*MP*)
10178   if test -d /usr/nec ;then
10179     version_type=linux
10180     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10181     soname_spec='$libname${shared_ext}.$major'
10182     shlibpath_var=LD_LIBRARY_PATH
10183   fi
10184   ;;
10185
10186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10187   version_type=freebsd-elf
10188   need_lib_prefix=no
10189   need_version=no
10190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10191   soname_spec='${libname}${release}${shared_ext}$major'
10192   shlibpath_var=LD_LIBRARY_PATH
10193   hardcode_into_libs=yes
10194   if test "$with_gnu_ld" = yes; then
10195     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10196     shlibpath_overrides_runpath=no
10197   else
10198     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10199     shlibpath_overrides_runpath=yes
10200     case $host_os in
10201       sco3.2v5*)
10202         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10203         ;;
10204     esac
10205   fi
10206   sys_lib_dlsearch_path_spec='/usr/lib'
10207   ;;
10208
10209 uts4*)
10210   version_type=linux
10211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212   soname_spec='${libname}${release}${shared_ext}$major'
10213   shlibpath_var=LD_LIBRARY_PATH
10214   ;;
10215
10216 *)
10217   dynamic_linker=no
10218   ;;
10219 esac
10220 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10221 echo "${ECHO_T}$dynamic_linker" >&6; }
10222 test "$dynamic_linker" = no && can_build_shared=no
10223
10224 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10225   echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10228 fi
10229
10230 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10231 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10232   echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10235 fi
10236
10237 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10238
10239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10240 if test "$GCC" = yes; then
10241   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10242 fi
10243
10244 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10245 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10246 hardcode_action=
10247 if test -n "$hardcode_libdir_flag_spec" || \
10248    test -n "$runpath_var" || \
10249    test "X$hardcode_automatic" = "Xyes" ; then
10250
10251   # We can hardcode non-existent directories.
10252   if test "$hardcode_direct" != no &&
10253      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10254      # have to relink, otherwise we might link with an installed library
10255      # when we should be linking with a yet-to-be-installed one
10256      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10257      test "$hardcode_minus_L" != no; then
10258     # Linking always hardcodes the temporary library directory.
10259     hardcode_action=relink
10260   else
10261     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10262     hardcode_action=immediate
10263   fi
10264 else
10265   # We cannot hardcode anything, or else we can only hardcode existing
10266   # directories.
10267   hardcode_action=unsupported
10268 fi
10269 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10270 echo "${ECHO_T}$hardcode_action" >&6; }
10271
10272 if test "$hardcode_action" = relink; then
10273   # Fast installation is not supported
10274   enable_fast_install=no
10275 elif test "$shlibpath_overrides_runpath" = yes ||
10276      test "$enable_shared" = no; then
10277   # Fast installation is not necessary
10278   enable_fast_install=needless
10279 fi
10280
10281 striplib=
10282 old_striplib=
10283 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10284 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10285 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10286   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10287   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10288   { echo "$as_me:$LINENO: result: yes" >&5
10289 echo "${ECHO_T}yes" >&6; }
10290 else
10291 # FIXME - insert some real tests, host_os isn't really good enough
10292   case $host_os in
10293    darwin*)
10294        if test -n "$STRIP" ; then
10295          striplib="$STRIP -x"
10296          old_striplib="$STRIP -S"
10297          { echo "$as_me:$LINENO: result: yes" >&5
10298 echo "${ECHO_T}yes" >&6; }
10299        else
10300   { echo "$as_me:$LINENO: result: no" >&5
10301 echo "${ECHO_T}no" >&6; }
10302 fi
10303        ;;
10304    *)
10305   { echo "$as_me:$LINENO: result: no" >&5
10306 echo "${ECHO_T}no" >&6; }
10307     ;;
10308   esac
10309 fi
10310
10311 if test "x$enable_dlopen" != xyes; then
10312   enable_dlopen=unknown
10313   enable_dlopen_self=unknown
10314   enable_dlopen_self_static=unknown
10315 else
10316   lt_cv_dlopen=no
10317   lt_cv_dlopen_libs=
10318
10319   case $host_os in
10320   beos*)
10321     lt_cv_dlopen="load_add_on"
10322     lt_cv_dlopen_libs=
10323     lt_cv_dlopen_self=yes
10324     ;;
10325
10326   mingw* | pw32*)
10327     lt_cv_dlopen="LoadLibrary"
10328     lt_cv_dlopen_libs=
10329    ;;
10330
10331   cygwin*)
10332     lt_cv_dlopen="dlopen"
10333     lt_cv_dlopen_libs=
10334    ;;
10335
10336   darwin*)
10337   # if libdl is installed we need to link against it
10338     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10339 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10340 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10341   echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343   ac_check_lib_save_LIBS=$LIBS
10344 LIBS="-ldl  $LIBS"
10345 cat >conftest.$ac_ext <<_ACEOF
10346 /* confdefs.h.  */
10347 _ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h.  */
10351
10352 /* Override any GCC internal prototype to avoid an error.
10353    Use char because int might match the return type of a GCC
10354    builtin and then its argument prototype would still apply.  */
10355 #ifdef __cplusplus
10356 extern "C"
10357 #endif
10358 char dlopen ();
10359 int
10360 main ()
10361 {
10362 return dlopen ();
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (ac_try="$ac_link"
10369 case "(($ac_try" in
10370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371   *) ac_try_echo=$ac_try;;
10372 esac
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374   (eval "$ac_link") 2>conftest.er1
10375   ac_status=$?
10376   grep -v '^ *+' conftest.er1 >conftest.err
10377   rm -f conftest.er1
10378   cat conftest.err >&5
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } && {
10381          test -z "$ac_c_werror_flag" ||
10382          test ! -s conftest.err
10383        } && test -s conftest$ac_exeext &&
10384        $as_test_x conftest$ac_exeext; then
10385   ac_cv_lib_dl_dlopen=yes
10386 else
10387   echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390         ac_cv_lib_dl_dlopen=no
10391 fi
10392
10393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10394       conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10396 fi
10397 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10398 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10399 if test $ac_cv_lib_dl_dlopen = yes; then
10400   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10401 else
10402
10403     lt_cv_dlopen="dyld"
10404     lt_cv_dlopen_libs=
10405     lt_cv_dlopen_self=yes
10406
10407 fi
10408
10409    ;;
10410
10411   *)
10412     { echo "$as_me:$LINENO: checking for shl_load" >&5
10413 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10414 if test "${ac_cv_func_shl_load+set}" = set; then
10415   echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417   cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h.  */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h.  */
10423 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10425 #define shl_load innocuous_shl_load
10426
10427 /* System header to define __stub macros and hopefully few prototypes,
10428     which can conflict with char shl_load (); below.
10429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10430     <limits.h> exists even on freestanding compilers.  */
10431
10432 #ifdef __STDC__
10433 # include <limits.h>
10434 #else
10435 # include <assert.h>
10436 #endif
10437
10438 #undef shl_load
10439
10440 /* Override any GCC internal prototype to avoid an error.
10441    Use char because int might match the return type of a GCC
10442    builtin and then its argument prototype would still apply.  */
10443 #ifdef __cplusplus
10444 extern "C"
10445 #endif
10446 char shl_load ();
10447 /* The GNU C library defines this for functions which it implements
10448     to always fail with ENOSYS.  Some functions are actually named
10449     something starting with __ and the normal name is an alias.  */
10450 #if defined __stub_shl_load || defined __stub___shl_load
10451 choke me
10452 #endif
10453
10454 int
10455 main ()
10456 {
10457 return shl_load ();
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466   *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469   (eval "$ac_link") 2>conftest.er1
10470   ac_status=$?
10471   grep -v '^ *+' conftest.er1 >conftest.err
10472   rm -f conftest.er1
10473   cat conftest.err >&5
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); } && {
10476          test -z "$ac_c_werror_flag" ||
10477          test ! -s conftest.err
10478        } && test -s conftest$ac_exeext &&
10479        $as_test_x conftest$ac_exeext; then
10480   ac_cv_func_shl_load=yes
10481 else
10482   echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10484
10485         ac_cv_func_shl_load=no
10486 fi
10487
10488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10489       conftest$ac_exeext conftest.$ac_ext
10490 fi
10491 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10492 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10493 if test $ac_cv_func_shl_load = yes; then
10494   lt_cv_dlopen="shl_load"
10495 else
10496   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10497 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10498 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501   ac_check_lib_save_LIBS=$LIBS
10502 LIBS="-ldld  $LIBS"
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509
10510 /* Override any GCC internal prototype to avoid an error.
10511    Use char because int might match the return type of a GCC
10512    builtin and then its argument prototype would still apply.  */
10513 #ifdef __cplusplus
10514 extern "C"
10515 #endif
10516 char shl_load ();
10517 int
10518 main ()
10519 {
10520 return shl_load ();
10521   ;
10522   return 0;
10523 }
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (ac_try="$ac_link"
10527 case "(($ac_try" in
10528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529   *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532   (eval "$ac_link") 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } && {
10539          test -z "$ac_c_werror_flag" ||
10540          test ! -s conftest.err
10541        } && test -s conftest$ac_exeext &&
10542        $as_test_x conftest$ac_exeext; then
10543   ac_cv_lib_dld_shl_load=yes
10544 else
10545   echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548         ac_cv_lib_dld_shl_load=no
10549 fi
10550
10551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10552       conftest$ac_exeext conftest.$ac_ext
10553 LIBS=$ac_check_lib_save_LIBS
10554 fi
10555 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10556 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10557 if test $ac_cv_lib_dld_shl_load = yes; then
10558   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10559 else
10560   { echo "$as_me:$LINENO: checking for dlopen" >&5
10561 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10562 if test "${ac_cv_func_dlopen+set}" = set; then
10563   echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565   cat >conftest.$ac_ext <<_ACEOF
10566 /* confdefs.h.  */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h.  */
10571 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10573 #define dlopen innocuous_dlopen
10574
10575 /* System header to define __stub macros and hopefully few prototypes,
10576     which can conflict with char dlopen (); below.
10577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10578     <limits.h> exists even on freestanding compilers.  */
10579
10580 #ifdef __STDC__
10581 # include <limits.h>
10582 #else
10583 # include <assert.h>
10584 #endif
10585
10586 #undef dlopen
10587
10588 /* Override any GCC internal prototype to avoid an error.
10589    Use char because int might match the return type of a GCC
10590    builtin and then its argument prototype would still apply.  */
10591 #ifdef __cplusplus
10592 extern "C"
10593 #endif
10594 char dlopen ();
10595 /* The GNU C library defines this for functions which it implements
10596     to always fail with ENOSYS.  Some functions are actually named
10597     something starting with __ and the normal name is an alias.  */
10598 #if defined __stub_dlopen || defined __stub___dlopen
10599 choke me
10600 #endif
10601
10602 int
10603 main ()
10604 {
10605 return dlopen ();
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614   *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617   (eval "$ac_link") 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } && {
10624          test -z "$ac_c_werror_flag" ||
10625          test ! -s conftest.err
10626        } && test -s conftest$ac_exeext &&
10627        $as_test_x conftest$ac_exeext; then
10628   ac_cv_func_dlopen=yes
10629 else
10630   echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633         ac_cv_func_dlopen=no
10634 fi
10635
10636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10637       conftest$ac_exeext conftest.$ac_ext
10638 fi
10639 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10640 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10641 if test $ac_cv_func_dlopen = yes; then
10642   lt_cv_dlopen="dlopen"
10643 else
10644   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10647   echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649   ac_check_lib_save_LIBS=$LIBS
10650 LIBS="-ldl  $LIBS"
10651 cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h.  */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h.  */
10657
10658 /* Override any GCC internal prototype to avoid an error.
10659    Use char because int might match the return type of a GCC
10660    builtin and then its argument prototype would still apply.  */
10661 #ifdef __cplusplus
10662 extern "C"
10663 #endif
10664 char dlopen ();
10665 int
10666 main ()
10667 {
10668 return dlopen ();
10669   ;
10670   return 0;
10671 }
10672 _ACEOF
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (ac_try="$ac_link"
10675 case "(($ac_try" in
10676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677   *) ac_try_echo=$ac_try;;
10678 esac
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680   (eval "$ac_link") 2>conftest.er1
10681   ac_status=$?
10682   grep -v '^ *+' conftest.er1 >conftest.err
10683   rm -f conftest.er1
10684   cat conftest.err >&5
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); } && {
10687          test -z "$ac_c_werror_flag" ||
10688          test ! -s conftest.err
10689        } && test -s conftest$ac_exeext &&
10690        $as_test_x conftest$ac_exeext; then
10691   ac_cv_lib_dl_dlopen=yes
10692 else
10693   echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10695
10696         ac_cv_lib_dl_dlopen=no
10697 fi
10698
10699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10700       conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10702 fi
10703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10704 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10705 if test $ac_cv_lib_dl_dlopen = yes; then
10706   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10707 else
10708   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10709 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10710 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   ac_check_lib_save_LIBS=$LIBS
10714 LIBS="-lsvld  $LIBS"
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h.  */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h.  */
10721
10722 /* Override any GCC internal prototype to avoid an error.
10723    Use char because int might match the return type of a GCC
10724    builtin and then its argument prototype would still apply.  */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char dlopen ();
10729 int
10730 main ()
10731 {
10732 return dlopen ();
10733   ;
10734   return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (ac_try="$ac_link"
10739 case "(($ac_try" in
10740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741   *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744   (eval "$ac_link") 2>conftest.er1
10745   ac_status=$?
10746   grep -v '^ *+' conftest.er1 >conftest.err
10747   rm -f conftest.er1
10748   cat conftest.err >&5
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } && {
10751          test -z "$ac_c_werror_flag" ||
10752          test ! -s conftest.err
10753        } && test -s conftest$ac_exeext &&
10754        $as_test_x conftest$ac_exeext; then
10755   ac_cv_lib_svld_dlopen=yes
10756 else
10757   echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760         ac_cv_lib_svld_dlopen=no
10761 fi
10762
10763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10764       conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10766 fi
10767 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10768 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10769 if test $ac_cv_lib_svld_dlopen = yes; then
10770   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10771 else
10772   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10773 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10774 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   ac_check_lib_save_LIBS=$LIBS
10778 LIBS="-ldld  $LIBS"
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h.  */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h.  */
10785
10786 /* Override any GCC internal prototype to avoid an error.
10787    Use char because int might match the return type of a GCC
10788    builtin and then its argument prototype would still apply.  */
10789 #ifdef __cplusplus
10790 extern "C"
10791 #endif
10792 char dld_link ();
10793 int
10794 main ()
10795 {
10796 return dld_link ();
10797   ;
10798   return 0;
10799 }
10800 _ACEOF
10801 rm -f conftest.$ac_objext conftest$ac_exeext
10802 if { (ac_try="$ac_link"
10803 case "(($ac_try" in
10804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805   *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808   (eval "$ac_link") 2>conftest.er1
10809   ac_status=$?
10810   grep -v '^ *+' conftest.er1 >conftest.err
10811   rm -f conftest.er1
10812   cat conftest.err >&5
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } && {
10815          test -z "$ac_c_werror_flag" ||
10816          test ! -s conftest.err
10817        } && test -s conftest$ac_exeext &&
10818        $as_test_x conftest$ac_exeext; then
10819   ac_cv_lib_dld_dld_link=yes
10820 else
10821   echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10823
10824         ac_cv_lib_dld_dld_link=no
10825 fi
10826
10827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10828       conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10830 fi
10831 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10832 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10833 if test $ac_cv_lib_dld_dld_link = yes; then
10834   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10835 fi
10836
10837
10838 fi
10839
10840
10841 fi
10842
10843
10844 fi
10845
10846
10847 fi
10848
10849
10850 fi
10851
10852     ;;
10853   esac
10854
10855   if test "x$lt_cv_dlopen" != xno; then
10856     enable_dlopen=yes
10857   else
10858     enable_dlopen=no
10859   fi
10860
10861   case $lt_cv_dlopen in
10862   dlopen)
10863     save_CPPFLAGS="$CPPFLAGS"
10864     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10865
10866     save_LDFLAGS="$LDFLAGS"
10867     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10868
10869     save_LIBS="$LIBS"
10870     LIBS="$lt_cv_dlopen_libs $LIBS"
10871
10872     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10873 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10874 if test "${lt_cv_dlopen_self+set}" = set; then
10875   echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877           if test "$cross_compiling" = yes; then :
10878   lt_cv_dlopen_self=cross
10879 else
10880   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10881   lt_status=$lt_dlunknown
10882   cat > conftest.$ac_ext <<EOF
10883 #line 10883 "configure"
10884 #include "confdefs.h"
10885
10886 #if HAVE_DLFCN_H
10887 #include <dlfcn.h>
10888 #endif
10889
10890 #include <stdio.h>
10891
10892 #ifdef RTLD_GLOBAL
10893 #  define LT_DLGLOBAL           RTLD_GLOBAL
10894 #else
10895 #  ifdef DL_GLOBAL
10896 #    define LT_DLGLOBAL         DL_GLOBAL
10897 #  else
10898 #    define LT_DLGLOBAL         0
10899 #  endif
10900 #endif
10901
10902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10903    find out it does not work in some platform. */
10904 #ifndef LT_DLLAZY_OR_NOW
10905 #  ifdef RTLD_LAZY
10906 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10907 #  else
10908 #    ifdef DL_LAZY
10909 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10910 #    else
10911 #      ifdef RTLD_NOW
10912 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10913 #      else
10914 #        ifdef DL_NOW
10915 #          define LT_DLLAZY_OR_NOW      DL_NOW
10916 #        else
10917 #          define LT_DLLAZY_OR_NOW      0
10918 #        endif
10919 #      endif
10920 #    endif
10921 #  endif
10922 #endif
10923
10924 #ifdef __cplusplus
10925 extern "C" void exit (int);
10926 #endif
10927
10928 void fnord() { int i=42;}
10929 int main ()
10930 {
10931   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10932   int status = $lt_dlunknown;
10933
10934   if (self)
10935     {
10936       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10937       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10938       /* dlclose (self); */
10939     }
10940   else
10941     puts (dlerror ());
10942
10943     exit (status);
10944 }
10945 EOF
10946   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10947   (eval $ac_link) 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10951     (./conftest; exit; ) >&5 2>/dev/null
10952     lt_status=$?
10953     case x$lt_status in
10954       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10955       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10956       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10957     esac
10958   else :
10959     # compilation failed
10960     lt_cv_dlopen_self=no
10961   fi
10962 fi
10963 rm -fr conftest*
10964
10965
10966 fi
10967 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10968 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10969
10970     if test "x$lt_cv_dlopen_self" = xyes; then
10971       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10972       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10973 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10974 if test "${lt_cv_dlopen_self_static+set}" = set; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977           if test "$cross_compiling" = yes; then :
10978   lt_cv_dlopen_self_static=cross
10979 else
10980   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10981   lt_status=$lt_dlunknown
10982   cat > conftest.$ac_ext <<EOF
10983 #line 10983 "configure"
10984 #include "confdefs.h"
10985
10986 #if HAVE_DLFCN_H
10987 #include <dlfcn.h>
10988 #endif
10989
10990 #include <stdio.h>
10991
10992 #ifdef RTLD_GLOBAL
10993 #  define LT_DLGLOBAL           RTLD_GLOBAL
10994 #else
10995 #  ifdef DL_GLOBAL
10996 #    define LT_DLGLOBAL         DL_GLOBAL
10997 #  else
10998 #    define LT_DLGLOBAL         0
10999 #  endif
11000 #endif
11001
11002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11003    find out it does not work in some platform. */
11004 #ifndef LT_DLLAZY_OR_NOW
11005 #  ifdef RTLD_LAZY
11006 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11007 #  else
11008 #    ifdef DL_LAZY
11009 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11010 #    else
11011 #      ifdef RTLD_NOW
11012 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11013 #      else
11014 #        ifdef DL_NOW
11015 #          define LT_DLLAZY_OR_NOW      DL_NOW
11016 #        else
11017 #          define LT_DLLAZY_OR_NOW      0
11018 #        endif
11019 #      endif
11020 #    endif
11021 #  endif
11022 #endif
11023
11024 #ifdef __cplusplus
11025 extern "C" void exit (int);
11026 #endif
11027
11028 void fnord() { int i=42;}
11029 int main ()
11030 {
11031   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11032   int status = $lt_dlunknown;
11033
11034   if (self)
11035     {
11036       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11037       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11038       /* dlclose (self); */
11039     }
11040   else
11041     puts (dlerror ());
11042
11043     exit (status);
11044 }
11045 EOF
11046   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047   (eval $ac_link) 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11051     (./conftest; exit; ) >&5 2>/dev/null
11052     lt_status=$?
11053     case x$lt_status in
11054       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11055       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11056       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11057     esac
11058   else :
11059     # compilation failed
11060     lt_cv_dlopen_self_static=no
11061   fi
11062 fi
11063 rm -fr conftest*
11064
11065
11066 fi
11067 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11068 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11069     fi
11070
11071     CPPFLAGS="$save_CPPFLAGS"
11072     LDFLAGS="$save_LDFLAGS"
11073     LIBS="$save_LIBS"
11074     ;;
11075   esac
11076
11077   case $lt_cv_dlopen_self in
11078   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11079   *) enable_dlopen_self=unknown ;;
11080   esac
11081
11082   case $lt_cv_dlopen_self_static in
11083   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11084   *) enable_dlopen_self_static=unknown ;;
11085   esac
11086 fi
11087
11088
11089 # Report which library types will actually be built
11090 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11091 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11092 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11093 echo "${ECHO_T}$can_build_shared" >&6; }
11094
11095 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11096 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11097 test "$can_build_shared" = "no" && enable_shared=no
11098
11099 # On AIX, shared libraries and static libraries use the same namespace, and
11100 # are all built from PIC.
11101 case $host_os in
11102 aix3*)
11103   test "$enable_shared" = yes && enable_static=no
11104   if test -n "$RANLIB"; then
11105     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11106     postinstall_cmds='$RANLIB $lib'
11107   fi
11108   ;;
11109
11110 aix[4-9]*)
11111   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11112     test "$enable_shared" = yes && enable_static=no
11113   fi
11114     ;;
11115 esac
11116 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11117 echo "${ECHO_T}$enable_shared" >&6; }
11118
11119 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11120 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11121 # Make sure either enable_shared or enable_static is yes.
11122 test "$enable_shared" = yes || enable_static=yes
11123 { echo "$as_me:$LINENO: result: $enable_static" >&5
11124 echo "${ECHO_T}$enable_static" >&6; }
11125
11126 # The else clause should only fire when bootstrapping the
11127 # libtool distribution, otherwise you forgot to ship ltmain.sh
11128 # with your package, and you will get complaints that there are
11129 # no rules to generate ltmain.sh.
11130 if test -f "$ltmain"; then
11131   # See if we are running on zsh, and set the options which allow our commands through
11132   # without removal of \ escapes.
11133   if test -n "${ZSH_VERSION+set}" ; then
11134     setopt NO_GLOB_SUBST
11135   fi
11136   # Now quote all the things that may contain metacharacters while being
11137   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11138   # variables and quote the copies for generation of the libtool script.
11139   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11140     SED SHELL STRIP \
11141     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11142     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11143     deplibs_check_method reload_flag reload_cmds need_locks \
11144     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11145     lt_cv_sys_global_symbol_to_c_name_address \
11146     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11147     old_postinstall_cmds old_postuninstall_cmds \
11148     compiler \
11149     CC \
11150     LD \
11151     lt_prog_compiler_wl \
11152     lt_prog_compiler_pic \
11153     lt_prog_compiler_static \
11154     lt_prog_compiler_no_builtin_flag \
11155     export_dynamic_flag_spec \
11156     thread_safe_flag_spec \
11157     whole_archive_flag_spec \
11158     enable_shared_with_static_runtimes \
11159     old_archive_cmds \
11160     old_archive_from_new_cmds \
11161     predep_objects \
11162     postdep_objects \
11163     predeps \
11164     postdeps \
11165     compiler_lib_search_path \
11166     compiler_lib_search_dirs \
11167     archive_cmds \
11168     archive_expsym_cmds \
11169     postinstall_cmds \
11170     postuninstall_cmds \
11171     old_archive_from_expsyms_cmds \
11172     allow_undefined_flag \
11173     no_undefined_flag \
11174     export_symbols_cmds \
11175     hardcode_libdir_flag_spec \
11176     hardcode_libdir_flag_spec_ld \
11177     hardcode_libdir_separator \
11178     hardcode_automatic \
11179     module_cmds \
11180     module_expsym_cmds \
11181     lt_cv_prog_compiler_c_o \
11182     fix_srcfile_path \
11183     exclude_expsyms \
11184     include_expsyms; do
11185
11186     case $var in
11187     old_archive_cmds | \
11188     old_archive_from_new_cmds | \
11189     archive_cmds | \
11190     archive_expsym_cmds | \
11191     module_cmds | \
11192     module_expsym_cmds | \
11193     old_archive_from_expsyms_cmds | \
11194     export_symbols_cmds | \
11195     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11196     postinstall_cmds | postuninstall_cmds | \
11197     old_postinstall_cmds | old_postuninstall_cmds | \
11198     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11199       # Double-quote double-evaled strings.
11200       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11201       ;;
11202     *)
11203       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11204       ;;
11205     esac
11206   done
11207
11208   case $lt_echo in
11209   *'\$0 --fallback-echo"')
11210     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11211     ;;
11212   esac
11213
11214 cfgfile="${ofile}T"
11215   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11216   $rm -f "$cfgfile"
11217   { echo "$as_me:$LINENO: creating $ofile" >&5
11218 echo "$as_me: creating $ofile" >&6;}
11219
11220   cat <<__EOF__ >> "$cfgfile"
11221 #! $SHELL
11222
11223 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11224 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11225 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11226 #
11227 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11228 # Free Software Foundation, Inc.
11229 #
11230 # This file is part of GNU Libtool:
11231 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11232 #
11233 # This program is free software; you can redistribute it and/or modify
11234 # it under the terms of the GNU General Public License as published by
11235 # the Free Software Foundation; either version 2 of the License, or
11236 # (at your option) any later version.
11237 #
11238 # This program is distributed in the hope that it will be useful, but
11239 # WITHOUT ANY WARRANTY; without even the implied warranty of
11240 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11241 # General Public License for more details.
11242 #
11243 # You should have received a copy of the GNU General Public License
11244 # along with this program; if not, write to the Free Software
11245 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11246 #
11247 # As a special exception to the GNU General Public License, if you
11248 # distribute this file as part of a program that contains a
11249 # configuration script generated by Autoconf, you may include it under
11250 # the same distribution terms that you use for the rest of that program.
11251
11252 # A sed program that does not truncate output.
11253 SED=$lt_SED
11254
11255 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11256 Xsed="$SED -e 1s/^X//"
11257
11258 # The HP-UX ksh and POSIX shell print the target directory to stdout
11259 # if CDPATH is set.
11260 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11261
11262 # The names of the tagged configurations supported by this script.
11263 available_tags=
11264
11265 # ### BEGIN LIBTOOL CONFIG
11266
11267 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11268
11269 # Shell to use when invoking shell scripts.
11270 SHELL=$lt_SHELL
11271
11272 # Whether or not to build shared libraries.
11273 build_libtool_libs=$enable_shared
11274
11275 # Whether or not to build static libraries.
11276 build_old_libs=$enable_static
11277
11278 # Whether or not to add -lc for building shared libraries.
11279 build_libtool_need_lc=$archive_cmds_need_lc
11280
11281 # Whether or not to disallow shared libs when runtime libs are static
11282 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11283
11284 # Whether or not to optimize for fast installation.
11285 fast_install=$enable_fast_install
11286
11287 # The host system.
11288 host_alias=$host_alias
11289 host=$host
11290 host_os=$host_os
11291
11292 # The build system.
11293 build_alias=$build_alias
11294 build=$build
11295 build_os=$build_os
11296
11297 # An echo program that does not interpret backslashes.
11298 echo=$lt_echo
11299
11300 # The archiver.
11301 AR=$lt_AR
11302 AR_FLAGS=$lt_AR_FLAGS
11303
11304 # A C compiler.
11305 LTCC=$lt_LTCC
11306
11307 # LTCC compiler flags.
11308 LTCFLAGS=$lt_LTCFLAGS
11309
11310 # A language-specific compiler.
11311 CC=$lt_compiler
11312
11313 # Is the compiler the GNU C compiler?
11314 with_gcc=$GCC
11315
11316 # An ERE matcher.
11317 EGREP=$lt_EGREP
11318
11319 # The linker used to build libraries.
11320 LD=$lt_LD
11321
11322 # Whether we need hard or soft links.
11323 LN_S=$lt_LN_S
11324
11325 # A BSD-compatible nm program.
11326 NM=$lt_NM
11327
11328 # A symbol stripping program
11329 STRIP=$lt_STRIP
11330
11331 # Used to examine libraries when file_magic_cmd begins "file"
11332 MAGIC_CMD=$MAGIC_CMD
11333
11334 # Used on cygwin: DLL creation program.
11335 DLLTOOL="$DLLTOOL"
11336
11337 # Used on cygwin: object dumper.
11338 OBJDUMP="$OBJDUMP"
11339
11340 # Used on cygwin: assembler.
11341 AS="$AS"
11342
11343 # The name of the directory that contains temporary libtool files.
11344 objdir=$objdir
11345
11346 # How to create reloadable object files.
11347 reload_flag=$lt_reload_flag
11348 reload_cmds=$lt_reload_cmds
11349
11350 # How to pass a linker flag through the compiler.
11351 wl=$lt_lt_prog_compiler_wl
11352
11353 # Object file suffix (normally "o").
11354 objext="$ac_objext"
11355
11356 # Old archive suffix (normally "a").
11357 libext="$libext"
11358
11359 # Shared library suffix (normally ".so").
11360 shrext_cmds='$shrext_cmds'
11361
11362 # Executable file suffix (normally "").
11363 exeext="$exeext"
11364
11365 # Additional compiler flags for building library objects.
11366 pic_flag=$lt_lt_prog_compiler_pic
11367 pic_mode=$pic_mode
11368
11369 # What is the maximum length of a command?
11370 max_cmd_len=$lt_cv_sys_max_cmd_len
11371
11372 # Does compiler simultaneously support -c and -o options?
11373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11374
11375 # Must we lock files when doing compilation?
11376 need_locks=$lt_need_locks
11377
11378 # Do we need the lib prefix for modules?
11379 need_lib_prefix=$need_lib_prefix
11380
11381 # Do we need a version for libraries?
11382 need_version=$need_version
11383
11384 # Whether dlopen is supported.
11385 dlopen_support=$enable_dlopen
11386
11387 # Whether dlopen of programs is supported.
11388 dlopen_self=$enable_dlopen_self
11389
11390 # Whether dlopen of statically linked programs is supported.
11391 dlopen_self_static=$enable_dlopen_self_static
11392
11393 # Compiler flag to prevent dynamic linking.
11394 link_static_flag=$lt_lt_prog_compiler_static
11395
11396 # Compiler flag to turn off builtin functions.
11397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11398
11399 # Compiler flag to allow reflexive dlopens.
11400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11401
11402 # Compiler flag to generate shared objects directly from archives.
11403 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11404
11405 # Compiler flag to generate thread-safe objects.
11406 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11407
11408 # Library versioning type.
11409 version_type=$version_type
11410
11411 # Format of library name prefix.
11412 libname_spec=$lt_libname_spec
11413
11414 # List of archive names.  First name is the real one, the rest are links.
11415 # The last name is the one that the linker finds with -lNAME.
11416 library_names_spec=$lt_library_names_spec
11417
11418 # The coded name of the library, if different from the real name.
11419 soname_spec=$lt_soname_spec
11420
11421 # Commands used to build and install an old-style archive.
11422 RANLIB=$lt_RANLIB
11423 old_archive_cmds=$lt_old_archive_cmds
11424 old_postinstall_cmds=$lt_old_postinstall_cmds
11425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11426
11427 # Create an old-style archive from a shared archive.
11428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11429
11430 # Create a temporary old-style archive to link instead of a shared archive.
11431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11432
11433 # Commands used to build and install a shared archive.
11434 archive_cmds=$lt_archive_cmds
11435 archive_expsym_cmds=$lt_archive_expsym_cmds
11436 postinstall_cmds=$lt_postinstall_cmds
11437 postuninstall_cmds=$lt_postuninstall_cmds
11438
11439 # Commands used to build a loadable module (assumed same as above if empty)
11440 module_cmds=$lt_module_cmds
11441 module_expsym_cmds=$lt_module_expsym_cmds
11442
11443 # Commands to strip libraries.
11444 old_striplib=$lt_old_striplib
11445 striplib=$lt_striplib
11446
11447 # Dependencies to place before the objects being linked to create a
11448 # shared library.
11449 predep_objects=$lt_predep_objects
11450
11451 # Dependencies to place after the objects being linked to create a
11452 # shared library.
11453 postdep_objects=$lt_postdep_objects
11454
11455 # Dependencies to place before the objects being linked to create a
11456 # shared library.
11457 predeps=$lt_predeps
11458
11459 # Dependencies to place after the objects being linked to create a
11460 # shared library.
11461 postdeps=$lt_postdeps
11462
11463 # The directories searched by this compiler when creating a shared
11464 # library
11465 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11466
11467 # The library search path used internally by the compiler when linking
11468 # a shared library.
11469 compiler_lib_search_path=$lt_compiler_lib_search_path
11470
11471 # Method to check whether dependent libraries are shared objects.
11472 deplibs_check_method=$lt_deplibs_check_method
11473
11474 # Command to use when deplibs_check_method == file_magic.
11475 file_magic_cmd=$lt_file_magic_cmd
11476
11477 # Flag that allows shared libraries with undefined symbols to be built.
11478 allow_undefined_flag=$lt_allow_undefined_flag
11479
11480 # Flag that forces no undefined symbols.
11481 no_undefined_flag=$lt_no_undefined_flag
11482
11483 # Commands used to finish a libtool library installation in a directory.
11484 finish_cmds=$lt_finish_cmds
11485
11486 # Same as above, but a single script fragment to be evaled but not shown.
11487 finish_eval=$lt_finish_eval
11488
11489 # Take the output of nm and produce a listing of raw symbols and C names.
11490 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11491
11492 # Transform the output of nm in a proper C declaration
11493 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11494
11495 # Transform the output of nm in a C name address pair
11496 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11497
11498 # This is the shared library runtime path variable.
11499 runpath_var=$runpath_var
11500
11501 # This is the shared library path variable.
11502 shlibpath_var=$shlibpath_var
11503
11504 # Is shlibpath searched before the hard-coded library search path?
11505 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11506
11507 # How to hardcode a shared library path into an executable.
11508 hardcode_action=$hardcode_action
11509
11510 # Whether we should hardcode library paths into libraries.
11511 hardcode_into_libs=$hardcode_into_libs
11512
11513 # Flag to hardcode \$libdir into a binary during linking.
11514 # This must work even if \$libdir does not exist.
11515 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11516
11517 # If ld is used when linking, flag to hardcode \$libdir into
11518 # a binary during linking. This must work even if \$libdir does
11519 # not exist.
11520 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11521
11522 # Whether we need a single -rpath flag with a separated argument.
11523 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11524
11525 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11526 # resulting binary.
11527 hardcode_direct=$hardcode_direct
11528
11529 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11530 # resulting binary.
11531 hardcode_minus_L=$hardcode_minus_L
11532
11533 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11534 # the resulting binary.
11535 hardcode_shlibpath_var=$hardcode_shlibpath_var
11536
11537 # Set to yes if building a shared library automatically hardcodes DIR into the library
11538 # and all subsequent libraries and executables linked against it.
11539 hardcode_automatic=$hardcode_automatic
11540
11541 # Variables whose values should be saved in libtool wrapper scripts and
11542 # restored at relink time.
11543 variables_saved_for_relink="$variables_saved_for_relink"
11544
11545 # Whether libtool must link a program against all its dependency libraries.
11546 link_all_deplibs=$link_all_deplibs
11547
11548 # Compile-time system search path for libraries
11549 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11550
11551 # Run-time system search path for libraries
11552 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11553
11554 # Fix the shell variable \$srcfile for the compiler.
11555 fix_srcfile_path=$lt_fix_srcfile_path
11556
11557 # Set to yes if exported symbols are required.
11558 always_export_symbols=$always_export_symbols
11559
11560 # The commands to list exported symbols.
11561 export_symbols_cmds=$lt_export_symbols_cmds
11562
11563 # The commands to extract the exported symbol list from a shared archive.
11564 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11565
11566 # Symbols that should not be listed in the preloaded symbols.
11567 exclude_expsyms=$lt_exclude_expsyms
11568
11569 # Symbols that must always be exported.
11570 include_expsyms=$lt_include_expsyms
11571
11572 # ### END LIBTOOL CONFIG
11573
11574 __EOF__
11575
11576
11577   case $host_os in
11578   aix3*)
11579     cat <<\EOF >> "$cfgfile"
11580
11581 # AIX sometimes has problems with the GCC collect2 program.  For some
11582 # reason, if we set the COLLECT_NAMES environment variable, the problems
11583 # vanish in a puff of smoke.
11584 if test "X${COLLECT_NAMES+set}" != Xset; then
11585   COLLECT_NAMES=
11586   export COLLECT_NAMES
11587 fi
11588 EOF
11589     ;;
11590   esac
11591
11592   # We use sed instead of cat because bash on DJGPP gets confused if
11593   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11594   # text mode, it properly converts lines to CR/LF.  This bash problem
11595   # is reportedly fixed, but why not run on old versions too?
11596   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11597
11598   mv -f "$cfgfile" "$ofile" || \
11599     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11600   chmod +x "$ofile"
11601
11602 else
11603   # If there is no Makefile yet, we rely on a make rule to execute
11604   # `config.status --recheck' to rerun these tests and create the
11605   # libtool script then.
11606   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11607   if test -f "$ltmain_in"; then
11608     test -f Makefile && make "$ltmain"
11609   fi
11610 fi
11611
11612
11613 ac_ext=c
11614 ac_cpp='$CPP $CPPFLAGS'
11615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11618
11619 CC="$lt_save_CC"
11620
11621
11622
11623 # This can be used to rebuild libtool when needed
11624 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11625
11626 # Always use our own libtool.
11627 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11628
11629 # Prevent multiple expansion
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640 if test "$enable_shared" = "no"; then
11641     with_noexec=no
11642 else
11643     eval _shrext="$shrext_cmds"
11644 fi
11645 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11646 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11647
11648 # Check whether --with-noexec was given.
11649 if test "${with_noexec+set}" = set; then
11650   withval=$with_noexec; case $with_noexec in
11651     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
11652                 ;;
11653     no)         ;;
11654     *)          ;;
11655 esac
11656 else
11657   with_noexec="$libexecdir/sudo_noexec$_shrext"
11658 fi
11659
11660 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11661 echo "${ECHO_T}$with_noexec" >&6; }
11662 NOEXECFILE="sudo_noexec$_shrext"
11663 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11664
11665 if test "$with_devel" = "yes" -a -n "$GCC"; then
11666     CFLAGS="${CFLAGS} -Wall"
11667 fi
11668
11669 # Extract the first word of "uname", so it can be a program name with args.
11670 set dummy uname; ac_word=$2
11671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11673 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11674   echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676   if test -n "$UNAMEPROG"; then
11677   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11678 else
11679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680 for as_dir in $PATH
11681 do
11682   IFS=$as_save_IFS
11683   test -z "$as_dir" && as_dir=.
11684   for ac_exec_ext in '' $ac_executable_extensions; do
11685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11686     ac_cv_prog_UNAMEPROG="uname"
11687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11688     break 2
11689   fi
11690 done
11691 done
11692 IFS=$as_save_IFS
11693
11694 fi
11695 fi
11696 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11697 if test -n "$UNAMEPROG"; then
11698   { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11699 echo "${ECHO_T}$UNAMEPROG" >&6; }
11700 else
11701   { echo "$as_me:$LINENO: result: no" >&5
11702 echo "${ECHO_T}no" >&6; }
11703 fi
11704
11705
11706 # Extract the first word of "tr", so it can be a program name with args.
11707 set dummy tr; ac_word=$2
11708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11710 if test "${ac_cv_prog_TRPROG+set}" = set; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   if test -n "$TRPROG"; then
11714   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11715 else
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $PATH
11718 do
11719   IFS=$as_save_IFS
11720   test -z "$as_dir" && as_dir=.
11721   for ac_exec_ext in '' $ac_executable_extensions; do
11722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11723     ac_cv_prog_TRPROG="tr"
11724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11725     break 2
11726   fi
11727 done
11728 done
11729 IFS=$as_save_IFS
11730
11731 fi
11732 fi
11733 TRPROG=$ac_cv_prog_TRPROG
11734 if test -n "$TRPROG"; then
11735   { echo "$as_me:$LINENO: result: $TRPROG" >&5
11736 echo "${ECHO_T}$TRPROG" >&6; }
11737 else
11738   { echo "$as_me:$LINENO: result: no" >&5
11739 echo "${ECHO_T}no" >&6; }
11740 fi
11741
11742
11743 # Extract the first word of "nroff", so it can be a program name with args.
11744 set dummy nroff; ac_word=$2
11745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11747 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11748   echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750   if test -n "$NROFFPROG"; then
11751   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11752 else
11753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754 for as_dir in $PATH
11755 do
11756   IFS=$as_save_IFS
11757   test -z "$as_dir" && as_dir=.
11758   for ac_exec_ext in '' $ac_executable_extensions; do
11759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11760     ac_cv_prog_NROFFPROG="nroff"
11761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11762     break 2
11763   fi
11764 done
11765 done
11766 IFS=$as_save_IFS
11767
11768 fi
11769 fi
11770 NROFFPROG=$ac_cv_prog_NROFFPROG
11771 if test -n "$NROFFPROG"; then
11772   { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11773 echo "${ECHO_T}$NROFFPROG" >&6; }
11774 else
11775   { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11777 fi
11778
11779
11780 if test -z "$NROFFPROG"; then
11781     MANTYPE="cat"
11782     mansrcdir='$(srcdir)'
11783 fi
11784
11785 if test -n "$sudo_cv_prev_host"; then
11786     if test "$sudo_cv_prev_host" != "$host"; then
11787         { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11788 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11789    { (exit 1); exit 1; }; }
11790     else
11791         { echo "$as_me:$LINENO: checking previous host type" >&5
11792 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11793         if test "${sudo_cv_prev_host+set}" = set; then
11794   echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796   sudo_cv_prev_host="$host"
11797 fi
11798
11799         { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11800 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11801     fi
11802 else
11803     # this will produce no output since there is no cached value
11804     if test "${sudo_cv_prev_host+set}" = set; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807   sudo_cv_prev_host="$host"
11808 fi
11809
11810 fi
11811
11812 if test -n "$host_os"; then
11813     OS=`echo $host_os | sed 's/[0-9].*//'`
11814     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11815     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11816 else
11817     OS="unknown"
11818     OSREV=0
11819     OSMAJOR=0
11820 fi
11821
11822 case "$host" in
11823     *-*-sunos4*)
11824                 # getcwd(3) opens a pipe to getpwd(1)!?!
11825                 BROKEN_GETCWD=1
11826
11827                 # system headers lack prototypes but gcc helps...
11828                 if test -n "$GCC"; then
11829                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11830                 fi
11831
11832                 shadow_funcs="getpwanam issecure"
11833                 ;;
11834     *-*-solaris2*)
11835                 # To get the crypt(3) prototype (so we pass -Wall)
11836                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11837                 # AFS support needs -lucb
11838                 if test "$with_AFS" = "yes"; then
11839                     AFS_LIBS="-lc -lucb"
11840                 fi
11841                 : ${mansectsu='1m'}
11842                 : ${mansectform='4'}
11843                 : ${with_rpath='yes'}
11844                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11845                 ;;
11846     *-*-aix*)
11847                 # To get all prototypes (so we pass -Wall)
11848                 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11849                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11850                 if test X"$with_blibpath" != X"no"; then
11851                     { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11852 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11853                     O_LDFLAGS="$LDFLAGS"
11854                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11855                     cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h.  */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h.  */
11861
11862 int
11863 main ()
11864 {
11865
11866   ;
11867   return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874   *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877   (eval "$ac_link") 2>conftest.er1
11878   ac_status=$?
11879   grep -v '^ *+' conftest.er1 >conftest.err
11880   rm -f conftest.er1
11881   cat conftest.err >&5
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); } && {
11884          test -z "$ac_c_werror_flag" ||
11885          test ! -s conftest.err
11886        } && test -s conftest$ac_exeext &&
11887        $as_test_x conftest$ac_exeext; then
11888
11889                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11890                             blibpath="$with_blibpath"
11891                         elif test -n "$GCC"; then
11892                             blibpath="/usr/lib:/lib:/usr/local/lib"
11893                         else
11894                             blibpath="/usr/lib:/lib"
11895                         fi
11896                         { echo "$as_me:$LINENO: result: yes" >&5
11897 echo "${ECHO_T}yes" >&6; }
11898
11899 else
11900   echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903         { echo "$as_me:$LINENO: result: no" >&5
11904 echo "${ECHO_T}no" >&6; }
11905 fi
11906
11907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11908       conftest$ac_exeext conftest.$ac_ext
11909                 fi
11910                 LDFLAGS="$O_LDFLAGS"
11911
11912                 # Use authenticate(3) as the default authentication method
11913                 if test X"$with_aixauth" = X""; then
11914
11915 for ac_func in authenticate
11916 do
11917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11921   echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923   cat >conftest.$ac_ext <<_ACEOF
11924 /* confdefs.h.  */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h.  */
11929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11931 #define $ac_func innocuous_$ac_func
11932
11933 /* System header to define __stub macros and hopefully few prototypes,
11934     which can conflict with char $ac_func (); below.
11935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11936     <limits.h> exists even on freestanding compilers.  */
11937
11938 #ifdef __STDC__
11939 # include <limits.h>
11940 #else
11941 # include <assert.h>
11942 #endif
11943
11944 #undef $ac_func
11945
11946 /* Override any GCC internal prototype to avoid an error.
11947    Use char because int might match the return type of a GCC
11948    builtin and then its argument prototype would still apply.  */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 char $ac_func ();
11953 /* The GNU C library defines this for functions which it implements
11954     to always fail with ENOSYS.  Some functions are actually named
11955     something starting with __ and the normal name is an alias.  */
11956 #if defined __stub_$ac_func || defined __stub___$ac_func
11957 choke me
11958 #endif
11959
11960 int
11961 main ()
11962 {
11963 return $ac_func ();
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (ac_try="$ac_link"
11970 case "(($ac_try" in
11971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972   *) ac_try_echo=$ac_try;;
11973 esac
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975   (eval "$ac_link") 2>conftest.er1
11976   ac_status=$?
11977   grep -v '^ *+' conftest.er1 >conftest.err
11978   rm -f conftest.er1
11979   cat conftest.err >&5
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); } && {
11982          test -z "$ac_c_werror_flag" ||
11983          test ! -s conftest.err
11984        } && test -s conftest$ac_exeext &&
11985        $as_test_x conftest$ac_exeext; then
11986   eval "$as_ac_var=yes"
11987 else
11988   echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991         eval "$as_ac_var=no"
11992 fi
11993
11994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11995       conftest$ac_exeext conftest.$ac_ext
11996 fi
11997 ac_res=`eval echo '${'$as_ac_var'}'`
11998                { echo "$as_me:$LINENO: result: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12000 if test `eval echo '${'$as_ac_var'}'` = yes; then
12001   cat >>confdefs.h <<_ACEOF
12002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12003 _ACEOF
12004  AUTH_EXCL_DEF="AIX_AUTH"
12005 fi
12006 done
12007
12008                 fi
12009
12010                 # AIX analog of nsswitch.conf, enabled by default
12011
12012 # Check whether --with-netsvc was given.
12013 if test "${with_netsvc+set}" = set; then
12014   withval=$with_netsvc; case $with_netsvc in
12015                     no)         ;;
12016                     yes)        with_netsvc="/etc/netsvc.conf"
12017                                 ;;
12018                     *)          ;;
12019                 esac
12020 fi
12021
12022                 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
12023                     with_netsvc="/etc/netsvc.conf"
12024                 fi
12025
12026                 # AIX-specific functions
12027
12028 for ac_func in getuserattr
12029 do
12030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12034   echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036   cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12044 #define $ac_func innocuous_$ac_func
12045
12046 /* System header to define __stub macros and hopefully few prototypes,
12047     which can conflict with char $ac_func (); below.
12048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12049     <limits.h> exists even on freestanding compilers.  */
12050
12051 #ifdef __STDC__
12052 # include <limits.h>
12053 #else
12054 # include <assert.h>
12055 #endif
12056
12057 #undef $ac_func
12058
12059 /* Override any GCC internal prototype to avoid an error.
12060    Use char because int might match the return type of a GCC
12061    builtin and then its argument prototype would still apply.  */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char $ac_func ();
12066 /* The GNU C library defines this for functions which it implements
12067     to always fail with ENOSYS.  Some functions are actually named
12068     something starting with __ and the normal name is an alias.  */
12069 #if defined __stub_$ac_func || defined __stub___$ac_func
12070 choke me
12071 #endif
12072
12073 int
12074 main ()
12075 {
12076 return $ac_func ();
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (ac_try="$ac_link"
12083 case "(($ac_try" in
12084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085   *) ac_try_echo=$ac_try;;
12086 esac
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088   (eval "$ac_link") 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } && {
12095          test -z "$ac_c_werror_flag" ||
12096          test ! -s conftest.err
12097        } && test -s conftest$ac_exeext &&
12098        $as_test_x conftest$ac_exeext; then
12099   eval "$as_ac_var=yes"
12100 else
12101   echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12103
12104         eval "$as_ac_var=no"
12105 fi
12106
12107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12108       conftest$ac_exeext conftest.$ac_ext
12109 fi
12110 ac_res=`eval echo '${'$as_ac_var'}'`
12111                { echo "$as_me:$LINENO: result: $ac_res" >&5
12112 echo "${ECHO_T}$ac_res" >&6; }
12113 if test `eval echo '${'$as_ac_var'}'` = yes; then
12114   cat >>confdefs.h <<_ACEOF
12115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12116 _ACEOF
12117
12118 fi
12119 done
12120
12121                 SUDO_OBJS="$SUDO_OBJS aix.o"
12122                 ;;
12123     *-*-hiuxmpp*)
12124                 : ${mansectsu='1m'}
12125                 : ${mansectform='4'}
12126                 ;;
12127     *-*-hpux*)
12128                 # AFS support needs -lBSD
12129                 if test "$with_AFS" = "yes"; then
12130                     AFS_LIBS="-lc -lBSD"
12131                 fi
12132                 : ${mansectsu='1m'}
12133                 : ${mansectform='4'}
12134
12135                 # HP-UX bundled compiler can't generate shared objects
12136                 if test "x$ac_cv_prog_cc_c89" = "xno"; then
12137                     with_noexec=no
12138                 fi
12139
12140                 # Use the +DAportable flag if it is supported
12141                 _CFLAGS="$CFLAGS"
12142                 CFLAGS="$CFLAGS +DAportable"
12143                 { echo "$as_me:$LINENO: checking whether $CC understands +DAportable" >&5
12144 echo $ECHO_N "checking whether $CC understands +DAportable... $ECHO_C" >&6; }
12145 if test "${sudo_cv_var_daportable+set}" = set; then
12146   echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148   cat >conftest.$ac_ext <<_ACEOF
12149 /* confdefs.h.  */
12150 _ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h.  */
12154
12155 int
12156 main ()
12157 {
12158
12159   ;
12160   return 0;
12161 }
12162 _ACEOF
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (ac_try="$ac_link"
12165 case "(($ac_try" in
12166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167   *) ac_try_echo=$ac_try;;
12168 esac
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170   (eval "$ac_link") 2>conftest.er1
12171   ac_status=$?
12172   grep -v '^ *+' conftest.er1 >conftest.err
12173   rm -f conftest.er1
12174   cat conftest.err >&5
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } && {
12177          test -z "$ac_c_werror_flag" ||
12178          test ! -s conftest.err
12179        } && test -s conftest$ac_exeext &&
12180        $as_test_x conftest$ac_exeext; then
12181   sudo_cv_var_daportable=yes
12182 else
12183   echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186         sudo_cv_var_daportable=no
12187 fi
12188
12189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12190       conftest$ac_exeext conftest.$ac_ext
12191
12192 fi
12193 { echo "$as_me:$LINENO: result: $sudo_cv_var_daportable" >&5
12194 echo "${ECHO_T}$sudo_cv_var_daportable" >&6; }
12195                 if test X"$sudo_cv_var_daportable" != X"yes"; then
12196                     CFLAGS="$_CFLAGS"
12197                 fi
12198
12199                 case "$host" in
12200                         *-*-hpux1-8.*)
12201                             cat >>confdefs.h <<\_ACEOF
12202 #define BROKEN_SYSLOG 1
12203 _ACEOF
12204
12205
12206                             # Not sure if setuid binaries are safe in < 9.x
12207                             if test -n "$GCC"; then
12208                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12209                             else
12210                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12211                             fi
12212                         ;;
12213                         *-*-hpux9.*)
12214                             cat >>confdefs.h <<\_ACEOF
12215 #define BROKEN_SYSLOG 1
12216 _ACEOF
12217
12218
12219                             shadow_funcs="getspwuid"
12220
12221                             # DCE support (requires ANSI C compiler)
12222                             if test "$with_DCE" = "yes"; then
12223                                 # order of libs in 9.X is important. -lc_r must be last
12224                                 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12225                                 LIBS="${LIBS} -ldce -lM -lc_r"
12226                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12227                             fi
12228                         ;;
12229                         *-*-hpux10.*)
12230                             shadow_funcs="getprpwnam iscomsec"
12231                             shadow_libs="-lsec"
12232                         ;;
12233                         *)
12234                             shadow_funcs="getspnam iscomsec"
12235                             shadow_libs="-lsec"
12236                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12237                         ;;
12238                 esac
12239                 ;;
12240     *-dec-osf*)
12241                 # ignore envariables wrt dynamic lib path
12242                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
12243
12244                 : ${CHECKSIA='true'}
12245                 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
12246 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
12247                 # Check whether --enable-sia was given.
12248 if test "${enable_sia+set}" = set; then
12249   enableval=$enable_sia;  case "$enableval" in
12250                     yes)        { echo "$as_me:$LINENO: result: no" >&5
12251 echo "${ECHO_T}no" >&6; }
12252                                 CHECKSIA=true
12253                                 ;;
12254                     no)         { echo "$as_me:$LINENO: result: yes" >&5
12255 echo "${ECHO_T}yes" >&6; }
12256                                 CHECKSIA=false
12257                                 ;;
12258                     *)          { echo "$as_me:$LINENO: result: no" >&5
12259 echo "${ECHO_T}no" >&6; }
12260                                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12261 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12262                                 ;;
12263                   esac
12264
12265 else
12266   { echo "$as_me:$LINENO: result: no" >&5
12267 echo "${ECHO_T}no" >&6; }
12268 fi
12269
12270
12271                 shadow_funcs="getprpwnam dispcrypt"
12272                 # OSF/1 4.x and higher need -ldb too
12273                 if test $OSMAJOR -lt 4; then
12274                     shadow_libs="-lsecurity -laud -lm"
12275                 else
12276                     shadow_libs="-lsecurity -ldb -laud -lm"
12277                 fi
12278
12279                 # use SIA by default, if we have it
12280                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
12281
12282                 #
12283                 # Some versions of Digital Unix ship with a broken
12284                 # copy of prot.h, which we need for shadow passwords.
12285                 # XXX - make should remove this as part of distclean
12286                 #
12287                 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
12288 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
12289                 cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h.  */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h.  */
12295
12296 #include <sys/types.h>
12297 #include <sys/security.h>
12298 #include <prot.h>
12299
12300 int
12301 main ()
12302 {
12303 exit(0);
12304   ;
12305   return 0;
12306 }
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (ac_try="$ac_compile"
12310 case "(($ac_try" in
12311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312   *) ac_try_echo=$ac_try;;
12313 esac
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315   (eval "$ac_compile") 2>conftest.er1
12316   ac_status=$?
12317   grep -v '^ *+' conftest.er1 >conftest.err
12318   rm -f conftest.er1
12319   cat conftest.err >&5
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } && {
12322          test -z "$ac_c_werror_flag" ||
12323          test ! -s conftest.err
12324        } && test -s conftest.$ac_objext; then
12325   { echo "$as_me:$LINENO: result: no" >&5
12326 echo "${ECHO_T}no" >&6; }
12327 else
12328   echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12330
12331         { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
12332 echo "${ECHO_T}yes, fixing locally" >&6; }
12333                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
12334
12335 fi
12336
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338                 : ${mansectsu='8'}
12339                 : ${mansectform='4'}
12340                 ;;
12341     *-*-irix*)
12342                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
12343                 if test -z "$NROFFPROG"; then
12344                     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)'
12345                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12346                         if test -d /usr/share/catman/local; then
12347                             mandir="/usr/share/catman/local"
12348                         else
12349                             mandir="/usr/catman/local"
12350                         fi
12351                     fi
12352                 else
12353                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12354                         if test -d "/usr/share/man/local"; then
12355                             mandir="/usr/share/man/local"
12356                         else
12357                             mandir="/usr/man/local"
12358                         fi
12359                     fi
12360                 fi
12361                 # IRIX <= 4 needs -lsun
12362                 if test "$OSMAJOR" -le 4; then
12363                     { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
12364 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
12365 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
12366   echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368   ac_check_lib_save_LIBS=$LIBS
12369 LIBS="-lsun  $LIBS"
12370 cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h.  */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h.  */
12376
12377 /* Override any GCC internal prototype to avoid an error.
12378    Use char because int might match the return type of a GCC
12379    builtin and then its argument prototype would still apply.  */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 char getpwnam ();
12384 int
12385 main ()
12386 {
12387 return getpwnam ();
12388   ;
12389   return 0;
12390 }
12391 _ACEOF
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (ac_try="$ac_link"
12394 case "(($ac_try" in
12395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396   *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399   (eval "$ac_link") 2>conftest.er1
12400   ac_status=$?
12401   grep -v '^ *+' conftest.er1 >conftest.err
12402   rm -f conftest.er1
12403   cat conftest.err >&5
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); } && {
12406          test -z "$ac_c_werror_flag" ||
12407          test ! -s conftest.err
12408        } && test -s conftest$ac_exeext &&
12409        $as_test_x conftest$ac_exeext; then
12410   ac_cv_lib_sun_getpwnam=yes
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415         ac_cv_lib_sun_getpwnam=no
12416 fi
12417
12418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12419       conftest$ac_exeext conftest.$ac_ext
12420 LIBS=$ac_check_lib_save_LIBS
12421 fi
12422 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
12423 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
12424 if test $ac_cv_lib_sun_getpwnam = yes; then
12425   LIBS="${LIBS} -lsun"
12426 fi
12427
12428                 fi
12429                 : ${mansectsu='1m'}
12430                 : ${mansectform='4'}
12431                 ;;
12432     *-*-linux*|*-*-k*bsd*-gnu)
12433                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12434                 # Some Linux versions need to link with -lshadow
12435                 shadow_funcs="getspnam"
12436                 shadow_libs_optional="-lshadow"
12437                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12438                 ;;
12439     *-convex-bsd*)
12440                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12441                 if test -z "$GCC"; then
12442                     CFLAGS="${CFLAGS} -D__STDC__"
12443                 fi
12444
12445                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12446                 shadow_funcs="getprpwnam"
12447                 shadow_libs="-lprot"
12448                 ;;
12449     *-*-ultrix*)
12450                 OS="ultrix"
12451                 shadow_funcs="getauthuid"
12452                 shadow_libs="-lauth"
12453                 ;;
12454     *-*-riscos*)
12455                 LIBS="${LIBS} -lsun -lbsd"
12456                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12457                 OSDEFS="${OSDEFS} -D_MIPS"
12458                 : ${mansectsu='1m'}
12459                 : ${mansectform='4'}
12460                 ;;
12461     *-*-isc*)
12462                 OSDEFS="${OSDEFS} -D_ISC"
12463                 LIB_CRYPT=1
12464                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12465                 LIBS="${LIBS} -lcrypt"
12466
12467                 shadow_funcs="getspnam"
12468                 shadow_libs="-lsec"
12469
12470                 : ${mansectsu='1m'}
12471                 : ${mansectform='4'}
12472                 ;;
12473     *-*-sco*|*-sco-*)
12474                 shadow_funcs="getprpwnam"
12475                 shadow_libs="-lprot -lx"
12476                 : ${mansectsu='1m'}
12477                 : ${mansectform='4'}
12478                 ;;
12479     m88k-motorola-sysv*)
12480                 # motorolla's cc (a variant of gcc) does -O but not -O2
12481                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12482                 : ${mansectsu='1m'}
12483                 : ${mansectform='4'}
12484                 ;;
12485     *-sequent-sysv*)
12486                 shadow_funcs="getspnam"
12487                 shadow_libs="-lsec"
12488                 : ${mansectsu='1m'}
12489                 : ${mansectform='4'}
12490                 : ${with_rpath='yes'}
12491                 ;;
12492     *-ncr-sysv4*|*-ncr-sysvr4*)
12493                 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
12494 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
12495 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   ac_check_lib_save_LIBS=$LIBS
12499 LIBS="-lc89  $LIBS"
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h.  */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h.  */
12506
12507 /* Override any GCC internal prototype to avoid an error.
12508    Use char because int might match the return type of a GCC
12509    builtin and then its argument prototype would still apply.  */
12510 #ifdef __cplusplus
12511 extern "C"
12512 #endif
12513 char strcasecmp ();
12514 int
12515 main ()
12516 {
12517 return strcasecmp ();
12518   ;
12519   return 0;
12520 }
12521 _ACEOF
12522 rm -f conftest.$ac_objext conftest$ac_exeext
12523 if { (ac_try="$ac_link"
12524 case "(($ac_try" in
12525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526   *) ac_try_echo=$ac_try;;
12527 esac
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529   (eval "$ac_link") 2>conftest.er1
12530   ac_status=$?
12531   grep -v '^ *+' conftest.er1 >conftest.err
12532   rm -f conftest.er1
12533   cat conftest.err >&5
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } && {
12536          test -z "$ac_c_werror_flag" ||
12537          test ! -s conftest.err
12538        } && test -s conftest$ac_exeext &&
12539        $as_test_x conftest$ac_exeext; then
12540   ac_cv_lib_c89_strcasecmp=yes
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545         ac_cv_lib_c89_strcasecmp=no
12546 fi
12547
12548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12549       conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12551 fi
12552 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
12553 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
12554 if test $ac_cv_lib_c89_strcasecmp = yes; then
12555   cat >>confdefs.h <<\_ACEOF
12556 #define HAVE_STRCASECMP 1
12557 _ACEOF
12558  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
12559 fi
12560
12561                 : ${mansectsu='1m'}
12562                 : ${mansectform='4'}
12563                 : ${with_rpath='yes'}
12564                 ;;
12565     *-ccur-sysv4*|*-ccur-sysvr4*)
12566                 LIBS="${LIBS} -lgen"
12567                 SUDO_LIBS="${SUDO_LIBS} -lgen"
12568                 : ${mansectsu='1m'}
12569                 : ${mansectform='4'}
12570                 : ${with_rpath='yes'}
12571                 ;;
12572     *-*-bsdi*)
12573                 SKIP_SETREUID=yes
12574                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
12575                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
12576                     case "$OSMAJOR" in
12577                         2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
12578 echo "$as_me: using shlicc as CC" >&6;}
12579                                 ac_cv_prog_CC=shlicc
12580                                 CC="$ac_cv_prog_CC"
12581                                 ;;
12582                     esac
12583                 fi
12584                 # Check for newer BSD auth API (just check for >= 3.0?)
12585                 if test -z "$with_bsdauth"; then
12586
12587 for ac_func in auth_challenge
12588 do
12589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h.  */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h.  */
12601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12603 #define $ac_func innocuous_$ac_func
12604
12605 /* System header to define __stub macros and hopefully few prototypes,
12606     which can conflict with char $ac_func (); below.
12607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12608     <limits.h> exists even on freestanding compilers.  */
12609
12610 #ifdef __STDC__
12611 # include <limits.h>
12612 #else
12613 # include <assert.h>
12614 #endif
12615
12616 #undef $ac_func
12617
12618 /* Override any GCC internal prototype to avoid an error.
12619    Use char because int might match the return type of a GCC
12620    builtin and then its argument prototype would still apply.  */
12621 #ifdef __cplusplus
12622 extern "C"
12623 #endif
12624 char $ac_func ();
12625 /* The GNU C library defines this for functions which it implements
12626     to always fail with ENOSYS.  Some functions are actually named
12627     something starting with __ and the normal name is an alias.  */
12628 #if defined __stub_$ac_func || defined __stub___$ac_func
12629 choke me
12630 #endif
12631
12632 int
12633 main ()
12634 {
12635 return $ac_func ();
12636   ;
12637   return 0;
12638 }
12639 _ACEOF
12640 rm -f conftest.$ac_objext conftest$ac_exeext
12641 if { (ac_try="$ac_link"
12642 case "(($ac_try" in
12643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644   *) ac_try_echo=$ac_try;;
12645 esac
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647   (eval "$ac_link") 2>conftest.er1
12648   ac_status=$?
12649   grep -v '^ *+' conftest.er1 >conftest.err
12650   rm -f conftest.er1
12651   cat conftest.err >&5
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); } && {
12654          test -z "$ac_c_werror_flag" ||
12655          test ! -s conftest.err
12656        } && test -s conftest$ac_exeext &&
12657        $as_test_x conftest$ac_exeext; then
12658   eval "$as_ac_var=yes"
12659 else
12660   echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663         eval "$as_ac_var=no"
12664 fi
12665
12666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12667       conftest$ac_exeext conftest.$ac_ext
12668 fi
12669 ac_res=`eval echo '${'$as_ac_var'}'`
12670                { echo "$as_me:$LINENO: result: $ac_res" >&5
12671 echo "${ECHO_T}$ac_res" >&6; }
12672 if test `eval echo '${'$as_ac_var'}'` = yes; then
12673   cat >>confdefs.h <<_ACEOF
12674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12675 _ACEOF
12676  AUTH_EXCL_DEF="BSD_AUTH"
12677 fi
12678 done
12679
12680                 fi
12681                 ;;
12682     *-*-freebsd*)
12683                 # FreeBSD has a real setreuid(2) starting with 2.1 and
12684                 # backported to 2.0.5.  We just take 2.1 and above...
12685                 case "$OSREV" in
12686                 0.*|1.*|2.0*)
12687                     SKIP_SETREUID=yes
12688                     ;;
12689                 esac
12690                 if test "$with_skey" = "yes"; then
12691                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12692                 fi
12693                 CHECKSHADOW="false"
12694                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12695                 : ${with_logincap='maybe'}
12696                 ;;
12697     *-*-*openbsd*)
12698                 # OpenBSD has a real setreuid(2) starting with 3.3 but
12699                 # we will use setreuid(2) instead.
12700                 SKIP_SETREUID=yes
12701                 CHECKSHADOW="false"
12702                 # OpenBSD >= 3.0 supports BSD auth
12703                 if test -z "$with_bsdauth"; then
12704                     case "$OSREV" in
12705                     0-2.*)
12706                         ;;
12707                     *)
12708                         AUTH_EXCL_DEF="BSD_AUTH"
12709                         ;;
12710                     esac
12711                 fi
12712                 : ${with_logincap='maybe'}
12713                 ;;
12714     *-*-*netbsd*)
12715                 # NetBSD has a real setreuid(2) starting with 1.3.2
12716                 case "$OSREV" in
12717                 0.9*|1.012*|1.3|1.3.1)
12718                     SKIP_SETREUID=yes
12719                     ;;
12720                 esac
12721                 CHECKSHADOW="false"
12722                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12723                 : ${with_logincap='maybe'}
12724                 ;;
12725     *-*-dragonfly*)
12726                 if test "$with_skey" = "yes"; then
12727                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12728                 fi
12729                 CHECKSHADOW="false"
12730                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12731                 : ${with_logincap='yes'}
12732                 ;;
12733     *-*-*bsd*)
12734                 CHECKSHADOW="false"
12735                 ;;
12736     *-*-darwin*)
12737                 SKIP_SETREUID=yes
12738                 CHECKSHADOW="false"
12739                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12740                 : ${with_logincap='yes'}
12741                 ;;
12742     *-*-nextstep*)
12743                 # lockf() on is broken on the NeXT -- use flock instead
12744                 ac_cv_func_lockf=no
12745                 ac_cv_func_flock=yes
12746                 ;;
12747     *-*-*sysv4*)
12748                 : ${mansectsu='1m'}
12749                 : ${mansectform='4'}
12750                 : ${with_rpath='yes'}
12751                 ;;
12752     *-*-sysv*)
12753                 : ${mansectsu='1m'}
12754                 : ${mansectform='4'}
12755                 ;;
12756     *-gnu*)
12757                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12758                 ;;
12759 esac
12760
12761 AUTH_REG=${AUTH_REG# }
12762 AUTH_EXCL=${AUTH_EXCL# }
12763 if test -n "$AUTH_EXCL"; then
12764     set -- $AUTH_EXCL
12765     if test $# != 1; then
12766         { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12767 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12768    { (exit 1); exit 1; }; }
12769     fi
12770     if test -n "$AUTH_REG"; then
12771         { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12772 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12773    { (exit 1); exit 1; }; }
12774     fi
12775 fi
12776 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12777     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12778 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12779    { (exit 1); exit 1; }; }
12780 fi
12781
12782 : ${mansectsu='8'}
12783 : ${mansectform='5'}
12784
12785 if test -n "$with_libpath"; then
12786     for i in ${with_libpath}; do
12787
12788     if test X"$with_rpath" = X"yes"; then
12789         LDFLAGS="${LDFLAGS} -L$i -R$i"
12790     else
12791         LDFLAGS="${LDFLAGS} -L$i"
12792     fi
12793     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12794         blibpath_add="${blibpath_add}:$i"
12795     fi
12796
12797     done
12798 fi
12799 if test -n "$with_libraries"; then
12800     for i in ${with_libraries}; do
12801         case $i in
12802             -l*)        ;;
12803             *.a)        ;;
12804             *.o)        ;;
12805             *)  i="-l${i}";;
12806         esac
12807         LIBS="${LIBS} ${i}"
12808     done
12809 fi
12810
12811 if test $ac_cv_c_compiler_gnu = yes; then
12812     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12813 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12814 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12815   echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817     ac_pattern="Autoconf.*'x'"
12818   cat >conftest.$ac_ext <<_ACEOF
12819 /* confdefs.h.  */
12820 _ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h.  */
12824 #include <sgtty.h>
12825 Autoconf TIOCGETP
12826 _ACEOF
12827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12828   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12829   ac_cv_prog_gcc_traditional=yes
12830 else
12831   ac_cv_prog_gcc_traditional=no
12832 fi
12833 rm -f conftest*
12834
12835
12836   if test $ac_cv_prog_gcc_traditional = no; then
12837     cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843 #include <termio.h>
12844 Autoconf TCGETA
12845 _ACEOF
12846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12847   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12848   ac_cv_prog_gcc_traditional=yes
12849 fi
12850 rm -f conftest*
12851
12852   fi
12853 fi
12854 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12855 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12856   if test $ac_cv_prog_gcc_traditional = yes; then
12857     CC="$CC -traditional"
12858   fi
12859 fi
12860
12861 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12862 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12863 if test "${ac_cv_c_const+set}" = set; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866   cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872
12873 int
12874 main ()
12875 {
12876 /* FIXME: Include the comments suggested by Paul. */
12877 #ifndef __cplusplus
12878   /* Ultrix mips cc rejects this.  */
12879   typedef int charset[2];
12880   const charset cs;
12881   /* SunOS 4.1.1 cc rejects this.  */
12882   char const *const *pcpcc;
12883   char **ppc;
12884   /* NEC SVR4.0.2 mips cc rejects this.  */
12885   struct point {int x, y;};
12886   static struct point const zero = {0,0};
12887   /* AIX XL C 1.02.0.0 rejects this.
12888      It does not let you subtract one const X* pointer from another in
12889      an arm of an if-expression whose if-part is not a constant
12890      expression */
12891   const char *g = "string";
12892   pcpcc = &g + (g ? g-g : 0);
12893   /* HPUX 7.0 cc rejects these. */
12894   ++pcpcc;
12895   ppc = (char**) pcpcc;
12896   pcpcc = (char const *const *) ppc;
12897   { /* SCO 3.2v4 cc rejects this.  */
12898     char *t;
12899     char const *s = 0 ? (char *) 0 : (char const *) 0;
12900
12901     *t++ = 0;
12902     if (s) return 0;
12903   }
12904   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12905     int x[] = {25, 17};
12906     const int *foo = &x[0];
12907     ++foo;
12908   }
12909   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12910     typedef const int *iptr;
12911     iptr p = 0;
12912     ++p;
12913   }
12914   { /* AIX XL C 1.02.0.0 rejects this saying
12915        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12916     struct s { int j; const int *ap[3]; };
12917     struct s *b; b->j = 5;
12918   }
12919   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12920     const int foo = 10;
12921     if (!foo) return 0;
12922   }
12923   return !cs[0] && !zero.x;
12924 #endif
12925
12926   ;
12927   return 0;
12928 }
12929 _ACEOF
12930 rm -f conftest.$ac_objext
12931 if { (ac_try="$ac_compile"
12932 case "(($ac_try" in
12933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934   *) ac_try_echo=$ac_try;;
12935 esac
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937   (eval "$ac_compile") 2>conftest.er1
12938   ac_status=$?
12939   grep -v '^ *+' conftest.er1 >conftest.err
12940   rm -f conftest.er1
12941   cat conftest.err >&5
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); } && {
12944          test -z "$ac_c_werror_flag" ||
12945          test ! -s conftest.err
12946        } && test -s conftest.$ac_objext; then
12947   ac_cv_c_const=yes
12948 else
12949   echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952         ac_cv_c_const=no
12953 fi
12954
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 fi
12957 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12958 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12959 if test $ac_cv_c_const = no; then
12960
12961 cat >>confdefs.h <<\_ACEOF
12962 #define const
12963 _ACEOF
12964
12965 fi
12966
12967 { echo "$as_me:$LINENO: checking for working volatile" >&5
12968 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12969 if test "${ac_cv_c_volatile+set}" = set; then
12970   echo $ECHO_N "(cached) $ECHO_C" >&6
12971 else
12972   cat >conftest.$ac_ext <<_ACEOF
12973 /* confdefs.h.  */
12974 _ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h.  */
12978
12979 int
12980 main ()
12981 {
12982
12983 volatile int x;
12984 int * volatile y = (int *) 0;
12985 return !x && !y;
12986   ;
12987   return 0;
12988 }
12989 _ACEOF
12990 rm -f conftest.$ac_objext
12991 if { (ac_try="$ac_compile"
12992 case "(($ac_try" in
12993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994   *) ac_try_echo=$ac_try;;
12995 esac
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997   (eval "$ac_compile") 2>conftest.er1
12998   ac_status=$?
12999   grep -v '^ *+' conftest.er1 >conftest.err
13000   rm -f conftest.er1
13001   cat conftest.err >&5
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); } && {
13004          test -z "$ac_c_werror_flag" ||
13005          test ! -s conftest.err
13006        } && test -s conftest.$ac_objext; then
13007   ac_cv_c_volatile=yes
13008 else
13009   echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012         ac_cv_c_volatile=no
13013 fi
13014
13015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13016 fi
13017 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13018 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13019 if test $ac_cv_c_volatile = no; then
13020
13021 cat >>confdefs.h <<\_ACEOF
13022 #define volatile
13023 _ACEOF
13024
13025 fi
13026
13027 for ac_prog in 'bison -y' byacc
13028 do
13029   # Extract the first word of "$ac_prog", so it can be a program name with args.
13030 set dummy $ac_prog; ac_word=$2
13031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13033 if test "${ac_cv_prog_YACC+set}" = set; then
13034   echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036   if test -n "$YACC"; then
13037   ac_cv_prog_YACC="$YACC" # Let the user override the test.
13038 else
13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040 for as_dir in $PATH
13041 do
13042   IFS=$as_save_IFS
13043   test -z "$as_dir" && as_dir=.
13044   for ac_exec_ext in '' $ac_executable_extensions; do
13045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13046     ac_cv_prog_YACC="$ac_prog"
13047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13048     break 2
13049   fi
13050 done
13051 done
13052 IFS=$as_save_IFS
13053
13054 fi
13055 fi
13056 YACC=$ac_cv_prog_YACC
13057 if test -n "$YACC"; then
13058   { echo "$as_me:$LINENO: result: $YACC" >&5
13059 echo "${ECHO_T}$YACC" >&6; }
13060 else
13061   { echo "$as_me:$LINENO: result: no" >&5
13062 echo "${ECHO_T}no" >&6; }
13063 fi
13064
13065
13066   test -n "$YACC" && break
13067 done
13068 test -n "$YACC" || YACC="yacc"
13069
13070 # Extract the first word of "flex", so it can be a program name with args.
13071 set dummy flex; ac_word=$2
13072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13074 if test "${ac_cv_path_FLEX+set}" = set; then
13075   echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077   case $FLEX in
13078   [\\/]* | ?:[\\/]*)
13079   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13080   ;;
13081   *)
13082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13084 do
13085   IFS=$as_save_IFS
13086   test -z "$as_dir" && as_dir=.
13087   for ac_exec_ext in '' $ac_executable_extensions; do
13088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13091     break 2
13092   fi
13093 done
13094 done
13095 IFS=$as_save_IFS
13096
13097   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13098   ;;
13099 esac
13100 fi
13101 FLEX=$ac_cv_path_FLEX
13102 if test -n "$FLEX"; then
13103   { echo "$as_me:$LINENO: result: $FLEX" >&5
13104 echo "${ECHO_T}$FLEX" >&6; }
13105 else
13106   { echo "$as_me:$LINENO: result: no" >&5
13107 echo "${ECHO_T}no" >&6; }
13108 fi
13109
13110
13111 { echo "$as_me:$LINENO: checking for mv" >&5
13112 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
13113 if test -f "/usr/bin/mv"; then
13114     { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
13115 echo "${ECHO_T}/usr/bin/mv" >&6; }
13116     cat >>confdefs.h <<\EOF
13117 #define _PATH_MV "/usr/bin/mv"
13118 EOF
13119
13120 elif test -f "/bin/mv"; then
13121     { echo "$as_me:$LINENO: result: /bin/mv" >&5
13122 echo "${ECHO_T}/bin/mv" >&6; }
13123     cat >>confdefs.h <<\EOF
13124 #define _PATH_MV "/bin/mv"
13125 EOF
13126
13127 elif test -f "/usr/ucb/mv"; then
13128     { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
13129 echo "${ECHO_T}/usr/ucb/mv" >&6; }
13130     cat >>confdefs.h <<\EOF
13131 #define _PATH_MV "/usr/ucb/mv"
13132 EOF
13133
13134 elif test -f "/usr/sbin/mv"; then
13135     { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
13136 echo "${ECHO_T}/usr/sbin/mv" >&6; }
13137     cat >>confdefs.h <<\EOF
13138 #define _PATH_MV "/usr/sbin/mv"
13139 EOF
13140
13141 else
13142     { echo "$as_me:$LINENO: result: not found" >&5
13143 echo "${ECHO_T}not found" >&6; }
13144 fi
13145
13146 { echo "$as_me:$LINENO: checking for bourne shell" >&5
13147 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
13148 if test -f "/bin/sh"; then
13149     { echo "$as_me:$LINENO: result: /bin/sh" >&5
13150 echo "${ECHO_T}/bin/sh" >&6; }
13151     cat >>confdefs.h <<\EOF
13152 #define _PATH_BSHELL "/bin/sh"
13153 EOF
13154
13155 elif test -f "/usr/bin/sh"; then
13156     { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
13157 echo "${ECHO_T}/usr/bin/sh" >&6; }
13158     cat >>confdefs.h <<\EOF
13159 #define _PATH_BSHELL "/usr/bin/sh"
13160 EOF
13161
13162 elif test -f "/sbin/sh"; then
13163     { echo "$as_me:$LINENO: result: /sbin/sh" >&5
13164 echo "${ECHO_T}/sbin/sh" >&6; }
13165     cat >>confdefs.h <<\EOF
13166 #define _PATH_BSHELL "/sbin/sh"
13167 EOF
13168
13169 elif test -f "/usr/sbin/sh"; then
13170     { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
13171 echo "${ECHO_T}/usr/sbin/sh" >&6; }
13172     cat >>confdefs.h <<\EOF
13173 #define _PATH_BSHELL "/usr/sbin/sh"
13174 EOF
13175
13176 elif test -f "/bin/ksh"; then
13177     { echo "$as_me:$LINENO: result: /bin/ksh" >&5
13178 echo "${ECHO_T}/bin/ksh" >&6; }
13179     cat >>confdefs.h <<\EOF
13180 #define _PATH_BSHELL "/bin/ksh"
13181 EOF
13182
13183 elif test -f "/usr/bin/ksh"; then
13184     { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
13185 echo "${ECHO_T}/usr/bin/ksh" >&6; }
13186     cat >>confdefs.h <<\EOF
13187 #define _PATH_BSHELL "/usr/bin/ksh"
13188 EOF
13189
13190 elif test -f "/bin/bash"; then
13191     { echo "$as_me:$LINENO: result: /bin/bash" >&5
13192 echo "${ECHO_T}/bin/bash" >&6; }
13193     cat >>confdefs.h <<\EOF
13194 #define _PATH_BSHELL "/bin/bash"
13195 EOF
13196
13197 elif test -f "/usr/bin/bash"; then
13198     { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
13199 echo "${ECHO_T}/usr/bin/bash" >&6; }
13200     cat >>confdefs.h <<\EOF
13201 #define _PATH_BSHELL "/usr/bin/bash"
13202 EOF
13203
13204 else
13205     { echo "$as_me:$LINENO: result: not found" >&5
13206 echo "${ECHO_T}not found" >&6; }
13207 fi
13208
13209 if test -z "$with_sendmail"; then
13210     { echo "$as_me:$LINENO: checking for sendmail" >&5
13211 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
13212 if test -f "/usr/sbin/sendmail"; then
13213     { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
13214 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
13215     cat >>confdefs.h <<\EOF
13216 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
13217 EOF
13218
13219 elif test -f "/usr/lib/sendmail"; then
13220     { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
13221 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
13222     cat >>confdefs.h <<\EOF
13223 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
13224 EOF
13225
13226 elif test -f "/usr/etc/sendmail"; then
13227     { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
13228 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
13229     cat >>confdefs.h <<\EOF
13230 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
13231 EOF
13232
13233 elif test -f "/usr/ucblib/sendmail"; then
13234     { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
13235 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
13236     cat >>confdefs.h <<\EOF
13237 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
13238 EOF
13239
13240 elif test -f "/usr/local/lib/sendmail"; then
13241     { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
13242 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
13243     cat >>confdefs.h <<\EOF
13244 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
13245 EOF
13246
13247 elif test -f "/usr/local/bin/sendmail"; then
13248     { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
13249 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
13250     cat >>confdefs.h <<\EOF
13251 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
13252 EOF
13253
13254 else
13255     { echo "$as_me:$LINENO: result: not found" >&5
13256 echo "${ECHO_T}not found" >&6; }
13257 fi
13258
13259 fi
13260 if test -z "$with_editor"; then
13261     { echo "$as_me:$LINENO: checking for vi" >&5
13262 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
13263 if test -f "/usr/bin/vi"; then
13264     { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
13265 echo "${ECHO_T}/usr/bin/vi" >&6; }
13266     cat >>confdefs.h <<\EOF
13267 #define _PATH_VI "/usr/bin/vi"
13268 EOF
13269
13270 elif test -f "/usr/ucb/vi"; then
13271     { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
13272 echo "${ECHO_T}/usr/ucb/vi" >&6; }
13273     cat >>confdefs.h <<\EOF
13274 #define _PATH_VI "/usr/ucb/vi"
13275 EOF
13276
13277 elif test -f "/usr/bsd/vi"; then
13278     { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
13279 echo "${ECHO_T}/usr/bsd/vi" >&6; }
13280     cat >>confdefs.h <<\EOF
13281 #define _PATH_VI "/usr/bsd/vi"
13282 EOF
13283
13284 elif test -f "/bin/vi"; then
13285     { echo "$as_me:$LINENO: result: /bin/vi" >&5
13286 echo "${ECHO_T}/bin/vi" >&6; }
13287     cat >>confdefs.h <<\EOF
13288 #define _PATH_VI "/bin/vi"
13289 EOF
13290
13291 elif test -f "/usr/local/bin/vi"; then
13292     { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
13293 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
13294     cat >>confdefs.h <<\EOF
13295 #define _PATH_VI "/usr/local/bin/vi"
13296 EOF
13297
13298 else
13299     { echo "$as_me:$LINENO: result: not found" >&5
13300 echo "${ECHO_T}not found" >&6; }
13301 fi
13302
13303 fi
13304 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13305 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
13306 if test "${ac_cv_header_stdc+set}" = set; then
13307   echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309   cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h.  */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h.  */
13315 #include <stdlib.h>
13316 #include <stdarg.h>
13317 #include <string.h>
13318 #include <float.h>
13319
13320 int
13321 main ()
13322 {
13323
13324   ;
13325   return 0;
13326 }
13327 _ACEOF
13328 rm -f conftest.$ac_objext
13329 if { (ac_try="$ac_compile"
13330 case "(($ac_try" in
13331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332   *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335   (eval "$ac_compile") 2>conftest.er1
13336   ac_status=$?
13337   grep -v '^ *+' conftest.er1 >conftest.err
13338   rm -f conftest.er1
13339   cat conftest.err >&5
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); } && {
13342          test -z "$ac_c_werror_flag" ||
13343          test ! -s conftest.err
13344        } && test -s conftest.$ac_objext; then
13345   ac_cv_header_stdc=yes
13346 else
13347   echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13349
13350         ac_cv_header_stdc=no
13351 fi
13352
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354
13355 if test $ac_cv_header_stdc = yes; then
13356   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13357   cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h.  */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h.  */
13363 #include <string.h>
13364
13365 _ACEOF
13366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13367   $EGREP "memchr" >/dev/null 2>&1; then
13368   :
13369 else
13370   ac_cv_header_stdc=no
13371 fi
13372 rm -f conftest*
13373
13374 fi
13375
13376 if test $ac_cv_header_stdc = yes; then
13377   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13378   cat >conftest.$ac_ext <<_ACEOF
13379 /* confdefs.h.  */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h.  */
13384 #include <stdlib.h>
13385
13386 _ACEOF
13387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13388   $EGREP "free" >/dev/null 2>&1; then
13389   :
13390 else
13391   ac_cv_header_stdc=no
13392 fi
13393 rm -f conftest*
13394
13395 fi
13396
13397 if test $ac_cv_header_stdc = yes; then
13398   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13399   if test "$cross_compiling" = yes; then
13400   :
13401 else
13402   cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h.  */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h.  */
13408 #include <ctype.h>
13409 #include <stdlib.h>
13410 #if ((' ' & 0x0FF) == 0x020)
13411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13413 #else
13414 # define ISLOWER(c) \
13415                    (('a' <= (c) && (c) <= 'i') \
13416                      || ('j' <= (c) && (c) <= 'r') \
13417                      || ('s' <= (c) && (c) <= 'z'))
13418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13419 #endif
13420
13421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13422 int
13423 main ()
13424 {
13425   int i;
13426   for (i = 0; i < 256; i++)
13427     if (XOR (islower (i), ISLOWER (i))
13428         || toupper (i) != TOUPPER (i))
13429       return 2;
13430   return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest$ac_exeext
13434 if { (ac_try="$ac_link"
13435 case "(($ac_try" in
13436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437   *) ac_try_echo=$ac_try;;
13438 esac
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440   (eval "$ac_link") 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13444   { (case "(($ac_try" in
13445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446   *) ac_try_echo=$ac_try;;
13447 esac
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449   (eval "$ac_try") 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); }; }; then
13453   :
13454 else
13455   echo "$as_me: program exited with status $ac_status" >&5
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 ( exit $ac_status )
13460 ac_cv_header_stdc=no
13461 fi
13462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13463 fi
13464
13465
13466 fi
13467 fi
13468 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13469 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13470 if test $ac_cv_header_stdc = yes; then
13471
13472 cat >>confdefs.h <<\_ACEOF
13473 #define STDC_HEADERS 1
13474 _ACEOF
13475
13476 fi
13477
13478
13479
13480
13481
13482
13483 ac_header_dirent=no
13484 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13485   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13486 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13487 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13489   echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491   cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497 #include <sys/types.h>
13498 #include <$ac_hdr>
13499
13500 int
13501 main ()
13502 {
13503 if ((DIR *) 0)
13504 return 0;
13505   ;
13506   return 0;
13507 }
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (ac_try="$ac_compile"
13511 case "(($ac_try" in
13512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513   *) ac_try_echo=$ac_try;;
13514 esac
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516   (eval "$ac_compile") 2>conftest.er1
13517   ac_status=$?
13518   grep -v '^ *+' conftest.er1 >conftest.err
13519   rm -f conftest.er1
13520   cat conftest.err >&5
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } && {
13523          test -z "$ac_c_werror_flag" ||
13524          test ! -s conftest.err
13525        } && test -s conftest.$ac_objext; then
13526   eval "$as_ac_Header=yes"
13527 else
13528   echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13530
13531         eval "$as_ac_Header=no"
13532 fi
13533
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 fi
13536 ac_res=`eval echo '${'$as_ac_Header'}'`
13537                { echo "$as_me:$LINENO: result: $ac_res" >&5
13538 echo "${ECHO_T}$ac_res" >&6; }
13539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13540   cat >>confdefs.h <<_ACEOF
13541 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13542 _ACEOF
13543
13544 ac_header_dirent=$ac_hdr; break
13545 fi
13546
13547 done
13548 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13549 if test $ac_header_dirent = dirent.h; then
13550   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13552 if test "${ac_cv_search_opendir+set}" = set; then
13553   echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13555   ac_func_search_save_LIBS=$LIBS
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h.  */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h.  */
13562
13563 /* Override any GCC internal prototype to avoid an error.
13564    Use char because int might match the return type of a GCC
13565    builtin and then its argument prototype would still apply.  */
13566 #ifdef __cplusplus
13567 extern "C"
13568 #endif
13569 char opendir ();
13570 int
13571 main ()
13572 {
13573 return opendir ();
13574   ;
13575   return 0;
13576 }
13577 _ACEOF
13578 for ac_lib in '' dir; do
13579   if test -z "$ac_lib"; then
13580     ac_res="none required"
13581   else
13582     ac_res=-l$ac_lib
13583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13584   fi
13585   rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (ac_try="$ac_link"
13587 case "(($ac_try" in
13588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589   *) ac_try_echo=$ac_try;;
13590 esac
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592   (eval "$ac_link") 2>conftest.er1
13593   ac_status=$?
13594   grep -v '^ *+' conftest.er1 >conftest.err
13595   rm -f conftest.er1
13596   cat conftest.err >&5
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); } && {
13599          test -z "$ac_c_werror_flag" ||
13600          test ! -s conftest.err
13601        } && test -s conftest$ac_exeext &&
13602        $as_test_x conftest$ac_exeext; then
13603   ac_cv_search_opendir=$ac_res
13604 else
13605   echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608
13609 fi
13610
13611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13612       conftest$ac_exeext
13613   if test "${ac_cv_search_opendir+set}" = set; then
13614   break
13615 fi
13616 done
13617 if test "${ac_cv_search_opendir+set}" = set; then
13618   :
13619 else
13620   ac_cv_search_opendir=no
13621 fi
13622 rm conftest.$ac_ext
13623 LIBS=$ac_func_search_save_LIBS
13624 fi
13625 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13626 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13627 ac_res=$ac_cv_search_opendir
13628 if test "$ac_res" != no; then
13629   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13630
13631 fi
13632
13633 else
13634   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13635 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13636 if test "${ac_cv_search_opendir+set}" = set; then
13637   echo $ECHO_N "(cached) $ECHO_C" >&6
13638 else
13639   ac_func_search_save_LIBS=$LIBS
13640 cat >conftest.$ac_ext <<_ACEOF
13641 /* confdefs.h.  */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h.  */
13646
13647 /* Override any GCC internal prototype to avoid an error.
13648    Use char because int might match the return type of a GCC
13649    builtin and then its argument prototype would still apply.  */
13650 #ifdef __cplusplus
13651 extern "C"
13652 #endif
13653 char opendir ();
13654 int
13655 main ()
13656 {
13657 return opendir ();
13658   ;
13659   return 0;
13660 }
13661 _ACEOF
13662 for ac_lib in '' x; do
13663   if test -z "$ac_lib"; then
13664     ac_res="none required"
13665   else
13666     ac_res=-l$ac_lib
13667     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13668   fi
13669   rm -f conftest.$ac_objext conftest$ac_exeext
13670 if { (ac_try="$ac_link"
13671 case "(($ac_try" in
13672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673   *) ac_try_echo=$ac_try;;
13674 esac
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676   (eval "$ac_link") 2>conftest.er1
13677   ac_status=$?
13678   grep -v '^ *+' conftest.er1 >conftest.err
13679   rm -f conftest.er1
13680   cat conftest.err >&5
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); } && {
13683          test -z "$ac_c_werror_flag" ||
13684          test ! -s conftest.err
13685        } && test -s conftest$ac_exeext &&
13686        $as_test_x conftest$ac_exeext; then
13687   ac_cv_search_opendir=$ac_res
13688 else
13689   echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13691
13692
13693 fi
13694
13695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13696       conftest$ac_exeext
13697   if test "${ac_cv_search_opendir+set}" = set; then
13698   break
13699 fi
13700 done
13701 if test "${ac_cv_search_opendir+set}" = set; then
13702   :
13703 else
13704   ac_cv_search_opendir=no
13705 fi
13706 rm conftest.$ac_ext
13707 LIBS=$ac_func_search_save_LIBS
13708 fi
13709 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13710 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13711 ac_res=$ac_cv_search_opendir
13712 if test "$ac_res" != no; then
13713   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13714
13715 fi
13716
13717 fi
13718
13719 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13720 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13721 if test "${ac_cv_header_time+set}" = set; then
13722   echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724   cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h.  */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h.  */
13730 #include <sys/types.h>
13731 #include <sys/time.h>
13732 #include <time.h>
13733
13734 int
13735 main ()
13736 {
13737 if ((struct tm *) 0)
13738 return 0;
13739   ;
13740   return 0;
13741 }
13742 _ACEOF
13743 rm -f conftest.$ac_objext
13744 if { (ac_try="$ac_compile"
13745 case "(($ac_try" in
13746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747   *) ac_try_echo=$ac_try;;
13748 esac
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750   (eval "$ac_compile") 2>conftest.er1
13751   ac_status=$?
13752   grep -v '^ *+' conftest.er1 >conftest.err
13753   rm -f conftest.er1
13754   cat conftest.err >&5
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); } && {
13757          test -z "$ac_c_werror_flag" ||
13758          test ! -s conftest.err
13759        } && test -s conftest.$ac_objext; then
13760   ac_cv_header_time=yes
13761 else
13762   echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13764
13765         ac_cv_header_time=no
13766 fi
13767
13768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13769 fi
13770 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13771 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13772 if test $ac_cv_header_time = yes; then
13773
13774 cat >>confdefs.h <<\_ACEOF
13775 #define TIME_WITH_SYS_TIME 1
13776 _ACEOF
13777
13778 fi
13779
13780
13781
13782
13783
13784
13785
13786
13787 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13788 do
13789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13791   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13794   echo $ECHO_N "(cached) $ECHO_C" >&6
13795 fi
13796 ac_res=`eval echo '${'$as_ac_Header'}'`
13797                { echo "$as_me:$LINENO: result: $ac_res" >&5
13798 echo "${ECHO_T}$ac_res" >&6; }
13799 else
13800   # Is the header compilable?
13801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13803 cat >conftest.$ac_ext <<_ACEOF
13804 /* confdefs.h.  */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h.  */
13809 $ac_includes_default
13810 #include <$ac_header>
13811 _ACEOF
13812 rm -f conftest.$ac_objext
13813 if { (ac_try="$ac_compile"
13814 case "(($ac_try" in
13815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816   *) ac_try_echo=$ac_try;;
13817 esac
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819   (eval "$ac_compile") 2>conftest.er1
13820   ac_status=$?
13821   grep -v '^ *+' conftest.er1 >conftest.err
13822   rm -f conftest.er1
13823   cat conftest.err >&5
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); } && {
13826          test -z "$ac_c_werror_flag" ||
13827          test ! -s conftest.err
13828        } && test -s conftest.$ac_objext; then
13829   ac_header_compiler=yes
13830 else
13831   echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13833
13834         ac_header_compiler=no
13835 fi
13836
13837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13839 echo "${ECHO_T}$ac_header_compiler" >&6; }
13840
13841 # Is the header present?
13842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13844 cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h.  */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h.  */
13850 #include <$ac_header>
13851 _ACEOF
13852 if { (ac_try="$ac_cpp conftest.$ac_ext"
13853 case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13859   ac_status=$?
13860   grep -v '^ *+' conftest.er1 >conftest.err
13861   rm -f conftest.er1
13862   cat conftest.err >&5
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); } >/dev/null && {
13865          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13866          test ! -s conftest.err
13867        }; then
13868   ac_header_preproc=yes
13869 else
13870   echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13872
13873   ac_header_preproc=no
13874 fi
13875
13876 rm -f conftest.err conftest.$ac_ext
13877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13878 echo "${ECHO_T}$ac_header_preproc" >&6; }
13879
13880 # So?  What about this header?
13881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13882   yes:no: )
13883     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13887     ac_header_preproc=yes
13888     ;;
13889   no:yes:* )
13890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13892     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13893 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13894     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13896     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13897 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13900     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13902     ( cat <<\_ASBOX
13903 ## --------------------------------------- ##
13904 ## Report this to http://www.sudo.ws/bugs/ ##
13905 ## --------------------------------------- ##
13906 _ASBOX
13907      ) | sed "s/^/$as_me: WARNING:     /" >&2
13908     ;;
13909 esac
13910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13913   echo $ECHO_N "(cached) $ECHO_C" >&6
13914 else
13915   eval "$as_ac_Header=\$ac_header_preproc"
13916 fi
13917 ac_res=`eval echo '${'$as_ac_Header'}'`
13918                { echo "$as_me:$LINENO: result: $ac_res" >&5
13919 echo "${ECHO_T}$ac_res" >&6; }
13920
13921 fi
13922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13923   cat >>confdefs.h <<_ACEOF
13924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13925 _ACEOF
13926
13927 fi
13928
13929 done
13930
13931 if test "$OS" != "ultrix"; then
13932     { echo "$as_me:$LINENO: checking POSIX termios" >&5
13933 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13934 if test "${ac_cv_sys_posix_termios+set}" = set; then
13935   echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937   cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h.  */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h.  */
13943 #include <sys/types.h>
13944 #include <unistd.h>
13945 #include <termios.h>
13946
13947 int
13948 main ()
13949 {
13950 /* SunOS 4.0.3 has termios.h but not the library calls.  */
13951    tcgetattr(0, 0);
13952   ;
13953   return 0;
13954 }
13955 _ACEOF
13956 rm -f conftest.$ac_objext conftest$ac_exeext
13957 if { (ac_try="$ac_link"
13958 case "(($ac_try" in
13959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960   *) ac_try_echo=$ac_try;;
13961 esac
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963   (eval "$ac_link") 2>conftest.er1
13964   ac_status=$?
13965   grep -v '^ *+' conftest.er1 >conftest.err
13966   rm -f conftest.er1
13967   cat conftest.err >&5
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); } && {
13970          test -z "$ac_c_werror_flag" ||
13971          test ! -s conftest.err
13972        } && test -s conftest$ac_exeext &&
13973        $as_test_x conftest$ac_exeext; then
13974   ac_cv_sys_posix_termios=yes
13975 else
13976   echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979         ac_cv_sys_posix_termios=no
13980 fi
13981
13982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13983       conftest$ac_exeext conftest.$ac_ext
13984 fi
13985 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13986 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13987
13988     if test "$ac_cv_sys_posix_termios" = "yes"; then
13989         cat >>confdefs.h <<\_ACEOF
13990 #define HAVE_TERMIOS_H 1
13991 _ACEOF
13992
13993     else
13994
13995 for ac_header in termio.h
13996 do
13997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13999   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14002   echo $ECHO_N "(cached) $ECHO_C" >&6
14003 fi
14004 ac_res=`eval echo '${'$as_ac_Header'}'`
14005                { echo "$as_me:$LINENO: result: $ac_res" >&5
14006 echo "${ECHO_T}$ac_res" >&6; }
14007 else
14008   # Is the header compilable?
14009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14011 cat >conftest.$ac_ext <<_ACEOF
14012 /* confdefs.h.  */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h.  */
14017 $ac_includes_default
14018 #include <$ac_header>
14019 _ACEOF
14020 rm -f conftest.$ac_objext
14021 if { (ac_try="$ac_compile"
14022 case "(($ac_try" in
14023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024   *) ac_try_echo=$ac_try;;
14025 esac
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027   (eval "$ac_compile") 2>conftest.er1
14028   ac_status=$?
14029   grep -v '^ *+' conftest.er1 >conftest.err
14030   rm -f conftest.er1
14031   cat conftest.err >&5
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); } && {
14034          test -z "$ac_c_werror_flag" ||
14035          test ! -s conftest.err
14036        } && test -s conftest.$ac_objext; then
14037   ac_header_compiler=yes
14038 else
14039   echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042         ac_header_compiler=no
14043 fi
14044
14045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14047 echo "${ECHO_T}$ac_header_compiler" >&6; }
14048
14049 # Is the header present?
14050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14052 cat >conftest.$ac_ext <<_ACEOF
14053 /* confdefs.h.  */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h.  */
14058 #include <$ac_header>
14059 _ACEOF
14060 if { (ac_try="$ac_cpp conftest.$ac_ext"
14061 case "(($ac_try" in
14062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063   *) ac_try_echo=$ac_try;;
14064 esac
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14067   ac_status=$?
14068   grep -v '^ *+' conftest.er1 >conftest.err
14069   rm -f conftest.er1
14070   cat conftest.err >&5
14071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072   (exit $ac_status); } >/dev/null && {
14073          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14074          test ! -s conftest.err
14075        }; then
14076   ac_header_preproc=yes
14077 else
14078   echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14080
14081   ac_header_preproc=no
14082 fi
14083
14084 rm -f conftest.err conftest.$ac_ext
14085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14086 echo "${ECHO_T}$ac_header_preproc" >&6; }
14087
14088 # So?  What about this header?
14089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14090   yes:no: )
14091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14095     ac_header_preproc=yes
14096     ;;
14097   no:yes:* )
14098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14110     ( cat <<\_ASBOX
14111 ## --------------------------------------- ##
14112 ## Report this to http://www.sudo.ws/bugs/ ##
14113 ## --------------------------------------- ##
14114 _ASBOX
14115      ) | sed "s/^/$as_me: WARNING:     /" >&2
14116     ;;
14117 esac
14118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14121   echo $ECHO_N "(cached) $ECHO_C" >&6
14122 else
14123   eval "$as_ac_Header=\$ac_header_preproc"
14124 fi
14125 ac_res=`eval echo '${'$as_ac_Header'}'`
14126                { echo "$as_me:$LINENO: result: $ac_res" >&5
14127 echo "${ECHO_T}$ac_res" >&6; }
14128
14129 fi
14130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14131   cat >>confdefs.h <<_ACEOF
14132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14133 _ACEOF
14134
14135 fi
14136
14137 done
14138
14139     fi
14140 fi
14141 if test ${with_logincap-'no'} != "no"; then
14142
14143 for ac_header in login_cap.h
14144 do
14145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14147   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14150   echo $ECHO_N "(cached) $ECHO_C" >&6
14151 fi
14152 ac_res=`eval echo '${'$as_ac_Header'}'`
14153                { echo "$as_me:$LINENO: result: $ac_res" >&5
14154 echo "${ECHO_T}$ac_res" >&6; }
14155 else
14156   # Is the header compilable?
14157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14159 cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h.  */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h.  */
14165 $ac_includes_default
14166 #include <$ac_header>
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (ac_try="$ac_compile"
14170 case "(($ac_try" in
14171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172   *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175   (eval "$ac_compile") 2>conftest.er1
14176   ac_status=$?
14177   grep -v '^ *+' conftest.er1 >conftest.err
14178   rm -f conftest.er1
14179   cat conftest.err >&5
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); } && {
14182          test -z "$ac_c_werror_flag" ||
14183          test ! -s conftest.err
14184        } && test -s conftest.$ac_objext; then
14185   ac_header_compiler=yes
14186 else
14187   echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190         ac_header_compiler=no
14191 fi
14192
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14195 echo "${ECHO_T}$ac_header_compiler" >&6; }
14196
14197 # Is the header present?
14198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h.  */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h.  */
14206 #include <$ac_header>
14207 _ACEOF
14208 if { (ac_try="$ac_cpp conftest.$ac_ext"
14209 case "(($ac_try" in
14210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211   *) ac_try_echo=$ac_try;;
14212 esac
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14215   ac_status=$?
14216   grep -v '^ *+' conftest.er1 >conftest.err
14217   rm -f conftest.er1
14218   cat conftest.err >&5
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); } >/dev/null && {
14221          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14222          test ! -s conftest.err
14223        }; then
14224   ac_header_preproc=yes
14225 else
14226   echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14228
14229   ac_header_preproc=no
14230 fi
14231
14232 rm -f conftest.err conftest.$ac_ext
14233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14234 echo "${ECHO_T}$ac_header_preproc" >&6; }
14235
14236 # So?  What about this header?
14237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14238   yes:no: )
14239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14243     ac_header_preproc=yes
14244     ;;
14245   no:yes:* )
14246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14258     ( cat <<\_ASBOX
14259 ## --------------------------------------- ##
14260 ## Report this to http://www.sudo.ws/bugs/ ##
14261 ## --------------------------------------- ##
14262 _ASBOX
14263      ) | sed "s/^/$as_me: WARNING:     /" >&2
14264     ;;
14265 esac
14266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14269   echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271   eval "$as_ac_Header=\$ac_header_preproc"
14272 fi
14273 ac_res=`eval echo '${'$as_ac_Header'}'`
14274                { echo "$as_me:$LINENO: result: $ac_res" >&5
14275 echo "${ECHO_T}$ac_res" >&6; }
14276
14277 fi
14278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14279   cat >>confdefs.h <<_ACEOF
14280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14281 _ACEOF
14282  LOGINCAP_USAGE='[-c class|-] '; LCMAN=""
14283         case "$OS" in
14284             freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
14285             ;;
14286         esac
14287
14288 fi
14289
14290 done
14291
14292 fi
14293 if test ${with_project-'no'} != "no"; then
14294     if test "${ac_cv_header_project_h+set}" = set; then
14295   { echo "$as_me:$LINENO: checking for project.h" >&5
14296 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14297 if test "${ac_cv_header_project_h+set}" = set; then
14298   echo $ECHO_N "(cached) $ECHO_C" >&6
14299 fi
14300 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14301 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14302 else
14303   # Is the header compilable?
14304 { echo "$as_me:$LINENO: checking project.h usability" >&5
14305 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
14306 cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h.  */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h.  */
14312 $ac_includes_default
14313 #include <project.h>
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319   *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322   (eval "$ac_compile") 2>conftest.er1
14323   ac_status=$?
14324   grep -v '^ *+' conftest.er1 >conftest.err
14325   rm -f conftest.er1
14326   cat conftest.err >&5
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } && {
14329          test -z "$ac_c_werror_flag" ||
14330          test ! -s conftest.err
14331        } && test -s conftest.$ac_objext; then
14332   ac_header_compiler=yes
14333 else
14334   echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337         ac_header_compiler=no
14338 fi
14339
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14342 echo "${ECHO_T}$ac_header_compiler" >&6; }
14343
14344 # Is the header present?
14345 { echo "$as_me:$LINENO: checking project.h presence" >&5
14346 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
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 #include <project.h>
14354 _ACEOF
14355 if { (ac_try="$ac_cpp conftest.$ac_ext"
14356 case "(($ac_try" in
14357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358   *) ac_try_echo=$ac_try;;
14359 esac
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14362   ac_status=$?
14363   grep -v '^ *+' conftest.er1 >conftest.err
14364   rm -f conftest.er1
14365   cat conftest.err >&5
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); } >/dev/null && {
14368          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14369          test ! -s conftest.err
14370        }; then
14371   ac_header_preproc=yes
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376   ac_header_preproc=no
14377 fi
14378
14379 rm -f conftest.err conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14381 echo "${ECHO_T}$ac_header_preproc" >&6; }
14382
14383 # So?  What about this header?
14384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14385   yes:no: )
14386     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
14387 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14388     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
14389 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
14390     ac_header_preproc=yes
14391     ;;
14392   no:yes:* )
14393     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
14394 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
14395     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
14396 echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
14397     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
14398 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
14399     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
14400 echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14401     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
14402 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
14403     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
14404 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
14405     ( cat <<\_ASBOX
14406 ## --------------------------------------- ##
14407 ## Report this to http://www.sudo.ws/bugs/ ##
14408 ## --------------------------------------- ##
14409 _ASBOX
14410      ) | sed "s/^/$as_me: WARNING:     /" >&2
14411     ;;
14412 esac
14413 { echo "$as_me:$LINENO: checking for project.h" >&5
14414 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14415 if test "${ac_cv_header_project_h+set}" = set; then
14416   echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418   ac_cv_header_project_h=$ac_header_preproc
14419 fi
14420 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14421 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14422
14423 fi
14424 if test $ac_cv_header_project_h = yes; then
14425   cat >>confdefs.h <<\_ACEOF
14426 #define HAVE_PROJECT_H 1
14427 _ACEOF
14428
14429         SUDO_LIBS="${SUDO_LIBS} -lproject"
14430 else
14431   -
14432 fi
14433
14434
14435 fi
14436 { echo "$as_me:$LINENO: checking for mode_t" >&5
14437 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
14438 if test "${ac_cv_type_mode_t+set}" = set; then
14439   echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441   cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h.  */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h.  */
14447 $ac_includes_default
14448 typedef mode_t ac__type_new_;
14449 int
14450 main ()
14451 {
14452 if ((ac__type_new_ *) 0)
14453   return 0;
14454 if (sizeof (ac__type_new_))
14455   return 0;
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext
14461 if { (ac_try="$ac_compile"
14462 case "(($ac_try" in
14463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464   *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467   (eval "$ac_compile") 2>conftest.er1
14468   ac_status=$?
14469   grep -v '^ *+' conftest.er1 >conftest.err
14470   rm -f conftest.er1
14471   cat conftest.err >&5
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); } && {
14474          test -z "$ac_c_werror_flag" ||
14475          test ! -s conftest.err
14476        } && test -s conftest.$ac_objext; then
14477   ac_cv_type_mode_t=yes
14478 else
14479   echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14481
14482         ac_cv_type_mode_t=no
14483 fi
14484
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 fi
14487 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14488 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
14489 if test $ac_cv_type_mode_t = yes; then
14490   :
14491 else
14492
14493 cat >>confdefs.h <<_ACEOF
14494 #define mode_t int
14495 _ACEOF
14496
14497 fi
14498
14499 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14500 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
14501 if test "${ac_cv_type_uid_t+set}" = set; then
14502   echo $ECHO_N "(cached) $ECHO_C" >&6
14503 else
14504   cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h.  */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h.  */
14510 #include <sys/types.h>
14511
14512 _ACEOF
14513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14514   $EGREP "uid_t" >/dev/null 2>&1; then
14515   ac_cv_type_uid_t=yes
14516 else
14517   ac_cv_type_uid_t=no
14518 fi
14519 rm -f conftest*
14520
14521 fi
14522 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14523 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
14524 if test $ac_cv_type_uid_t = no; then
14525
14526 cat >>confdefs.h <<\_ACEOF
14527 #define uid_t int
14528 _ACEOF
14529
14530
14531 cat >>confdefs.h <<\_ACEOF
14532 #define gid_t int
14533 _ACEOF
14534
14535 fi
14536
14537 { echo "$as_me:$LINENO: checking for __signed char" >&5
14538 echo $ECHO_N "checking for __signed char... $ECHO_C" >&6; }
14539 if test "${ac_cv_type___signed_char+set}" = set; then
14540   echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542   cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h.  */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h.  */
14548 $ac_includes_default
14549 typedef __signed char ac__type_new_;
14550 int
14551 main ()
14552 {
14553 if ((ac__type_new_ *) 0)
14554   return 0;
14555 if (sizeof (ac__type_new_))
14556   return 0;
14557   ;
14558   return 0;
14559 }
14560 _ACEOF
14561 rm -f conftest.$ac_objext
14562 if { (ac_try="$ac_compile"
14563 case "(($ac_try" in
14564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565   *) ac_try_echo=$ac_try;;
14566 esac
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568   (eval "$ac_compile") 2>conftest.er1
14569   ac_status=$?
14570   grep -v '^ *+' conftest.er1 >conftest.err
14571   rm -f conftest.er1
14572   cat conftest.err >&5
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } && {
14575          test -z "$ac_c_werror_flag" ||
14576          test ! -s conftest.err
14577        } && test -s conftest.$ac_objext; then
14578   ac_cv_type___signed_char=yes
14579 else
14580   echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14582
14583         ac_cv_type___signed_char=no
14584 fi
14585
14586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14587 fi
14588 { echo "$as_me:$LINENO: result: $ac_cv_type___signed_char" >&5
14589 echo "${ECHO_T}$ac_cv_type___signed_char" >&6; }
14590 if test $ac_cv_type___signed_char = yes; then
14591   :
14592 else
14593   { echo "$as_me:$LINENO: checking for signed char" >&5
14594 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
14595 if test "${ac_cv_type_signed_char+set}" = set; then
14596   echo $ECHO_N "(cached) $ECHO_C" >&6
14597 else
14598   cat >conftest.$ac_ext <<_ACEOF
14599 /* confdefs.h.  */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h.  */
14604 $ac_includes_default
14605 typedef signed char ac__type_new_;
14606 int
14607 main ()
14608 {
14609 if ((ac__type_new_ *) 0)
14610   return 0;
14611 if (sizeof (ac__type_new_))
14612   return 0;
14613   ;
14614   return 0;
14615 }
14616 _ACEOF
14617 rm -f conftest.$ac_objext
14618 if { (ac_try="$ac_compile"
14619 case "(($ac_try" in
14620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621   *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624   (eval "$ac_compile") 2>conftest.er1
14625   ac_status=$?
14626   grep -v '^ *+' conftest.er1 >conftest.err
14627   rm -f conftest.er1
14628   cat conftest.err >&5
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); } && {
14631          test -z "$ac_c_werror_flag" ||
14632          test ! -s conftest.err
14633        } && test -s conftest.$ac_objext; then
14634   ac_cv_type_signed_char=yes
14635 else
14636   echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14638
14639         ac_cv_type_signed_char=no
14640 fi
14641
14642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643 fi
14644 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
14645 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
14646 if test $ac_cv_type_signed_char = yes; then
14647   cat >>confdefs.h <<\_ACEOF
14648 #define __signed signed
14649 _ACEOF
14650
14651 else
14652   cat >>confdefs.h <<\_ACEOF
14653 #define __signed
14654 _ACEOF
14655
14656 fi
14657
14658 fi
14659
14660 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14661 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
14662 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14663   echo $ECHO_N "(cached) $ECHO_C" >&6
14664 else
14665   cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h.  */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h.  */
14671 #include <sys/types.h>
14672 #include <signal.h>
14673
14674 typedef sig_atomic_t ac__type_new_;
14675 int
14676 main ()
14677 {
14678 if ((ac__type_new_ *) 0)
14679   return 0;
14680 if (sizeof (ac__type_new_))
14681   return 0;
14682   ;
14683   return 0;
14684 }
14685 _ACEOF
14686 rm -f conftest.$ac_objext
14687 if { (ac_try="$ac_compile"
14688 case "(($ac_try" in
14689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690   *) ac_try_echo=$ac_try;;
14691 esac
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693   (eval "$ac_compile") 2>conftest.er1
14694   ac_status=$?
14695   grep -v '^ *+' conftest.er1 >conftest.err
14696   rm -f conftest.er1
14697   cat conftest.err >&5
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } && {
14700          test -z "$ac_c_werror_flag" ||
14701          test ! -s conftest.err
14702        } && test -s conftest.$ac_objext; then
14703   ac_cv_type_sig_atomic_t=yes
14704 else
14705   echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708         ac_cv_type_sig_atomic_t=no
14709 fi
14710
14711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14712 fi
14713 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14714 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14715 if test $ac_cv_type_sig_atomic_t = yes; then
14716   :
14717 else
14718   cat >>confdefs.h <<\_ACEOF
14719 #define sig_atomic_t int
14720 _ACEOF
14721
14722 fi
14723
14724 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14725 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14726 if test "${ac_cv_type_sigaction_t+set}" = set; then
14727   echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729   cat >conftest.$ac_ext <<_ACEOF
14730 /* confdefs.h.  */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h.  */
14735 #include <sys/types.h>
14736 #include <signal.h>
14737
14738 typedef sigaction_t ac__type_new_;
14739 int
14740 main ()
14741 {
14742 if ((ac__type_new_ *) 0)
14743   return 0;
14744 if (sizeof (ac__type_new_))
14745   return 0;
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754   *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757   (eval "$ac_compile") 2>conftest.er1
14758   ac_status=$?
14759   grep -v '^ *+' conftest.er1 >conftest.err
14760   rm -f conftest.er1
14761   cat conftest.err >&5
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); } && {
14764          test -z "$ac_c_werror_flag" ||
14765          test ! -s conftest.err
14766        } && test -s conftest.$ac_objext; then
14767   ac_cv_type_sigaction_t=yes
14768 else
14769   echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772         ac_cv_type_sigaction_t=no
14773 fi
14774
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 fi
14777 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14778 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14779 if test $ac_cv_type_sigaction_t = yes; then
14780
14781 cat >>confdefs.h <<_ACEOF
14782 #define HAVE_SIGACTION_T 1
14783 _ACEOF
14784
14785 cat >>confdefs.h <<\_ACEOF
14786 #define HAVE_SIGACTION_T 1
14787 _ACEOF
14788
14789 fi
14790
14791 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14792 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14793 if test "${ac_cv_type_struct_timespec+set}" = set; then
14794   echo $ECHO_N "(cached) $ECHO_C" >&6
14795 else
14796   cat >conftest.$ac_ext <<_ACEOF
14797 /* confdefs.h.  */
14798 _ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h.  */
14802 #include <sys/types.h>
14803 #if TIME_WITH_SYS_TIME
14804 # include <sys/time.h>
14805 #endif
14806 #include <time.h>
14807
14808 typedef struct timespec ac__type_new_;
14809 int
14810 main ()
14811 {
14812 if ((ac__type_new_ *) 0)
14813   return 0;
14814 if (sizeof (ac__type_new_))
14815   return 0;
14816   ;
14817   return 0;
14818 }
14819 _ACEOF
14820 rm -f conftest.$ac_objext
14821 if { (ac_try="$ac_compile"
14822 case "(($ac_try" in
14823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824   *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827   (eval "$ac_compile") 2>conftest.er1
14828   ac_status=$?
14829   grep -v '^ *+' conftest.er1 >conftest.err
14830   rm -f conftest.er1
14831   cat conftest.err >&5
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); } && {
14834          test -z "$ac_c_werror_flag" ||
14835          test ! -s conftest.err
14836        } && test -s conftest.$ac_objext; then
14837   ac_cv_type_struct_timespec=yes
14838 else
14839   echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14841
14842         ac_cv_type_struct_timespec=no
14843 fi
14844
14845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14846 fi
14847 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14848 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14849 if test $ac_cv_type_struct_timespec = yes; then
14850   cat >>confdefs.h <<\_ACEOF
14851 #define HAVE_TIMESPEC 1
14852 _ACEOF
14853
14854 fi
14855
14856 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14857 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14858 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14859   echo $ECHO_N "(cached) $ECHO_C" >&6
14860 else
14861   cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h.  */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h.  */
14867 #include <sys/types.h>
14868 #include <netinet/in.h>
14869
14870 typedef struct in6_addr ac__type_new_;
14871 int
14872 main ()
14873 {
14874 if ((ac__type_new_ *) 0)
14875   return 0;
14876 if (sizeof (ac__type_new_))
14877   return 0;
14878   ;
14879   return 0;
14880 }
14881 _ACEOF
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886   *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889   (eval "$ac_compile") 2>conftest.er1
14890   ac_status=$?
14891   grep -v '^ *+' conftest.er1 >conftest.err
14892   rm -f conftest.er1
14893   cat conftest.err >&5
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); } && {
14896          test -z "$ac_c_werror_flag" ||
14897          test ! -s conftest.err
14898        } && test -s conftest.$ac_objext; then
14899   ac_cv_type_struct_in6_addr=yes
14900 else
14901   echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14903
14904         ac_cv_type_struct_in6_addr=no
14905 fi
14906
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 fi
14909 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14910 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14911 if test $ac_cv_type_struct_in6_addr = yes; then
14912
14913 cat >>confdefs.h <<_ACEOF
14914 #define HAVE_STRUCT_IN6_ADDR 1
14915 _ACEOF
14916
14917 cat >>confdefs.h <<\_ACEOF
14918 #define HAVE_IN6_ADDR 1
14919 _ACEOF
14920
14921 fi
14922
14923 { echo "$as_me:$LINENO: checking for size_t" >&5
14924 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14925 if test "${sudo_cv_type_size_t+set}" = set; then
14926   echo $ECHO_N "(cached) $ECHO_C" >&6
14927 else
14928   cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h.  */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h.  */
14934 #include <sys/types.h>
14935 #include <stdio.h>
14936 #if STDC_HEADERS
14937 #include <stdlib.h>
14938 #endif
14939 #if HAVE_UNISTD_H
14940 #include <unistd.h>
14941 #endif
14942 _ACEOF
14943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14944   $EGREP "size_t" >/dev/null 2>&1; then
14945   sudo_cv_type_size_t=yes
14946 else
14947   sudo_cv_type_size_t=no
14948 fi
14949 rm -f conftest*
14950
14951 fi
14952 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14953 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14954 if test $sudo_cv_type_size_t = no; then
14955
14956 cat >>confdefs.h <<\_ACEOF
14957 #define size_t int
14958 _ACEOF
14959
14960 fi
14961
14962 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14963 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14964 if test "${sudo_cv_type_ssize_t+set}" = set; then
14965   echo $ECHO_N "(cached) $ECHO_C" >&6
14966 else
14967   cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h.  */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h.  */
14973 #include <sys/types.h>
14974 #include <stdio.h>
14975 #if STDC_HEADERS
14976 #include <stdlib.h>
14977 #endif
14978 #if HAVE_UNISTD_H
14979 #include <unistd.h>
14980 #endif
14981 _ACEOF
14982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14983   $EGREP "ssize_t" >/dev/null 2>&1; then
14984   sudo_cv_type_ssize_t=yes
14985 else
14986   sudo_cv_type_ssize_t=no
14987 fi
14988 rm -f conftest*
14989
14990 fi
14991 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14992 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14993 if test $sudo_cv_type_ssize_t = no; then
14994
14995 cat >>confdefs.h <<\_ACEOF
14996 #define ssize_t int
14997 _ACEOF
14998
14999 fi
15000
15001 { echo "$as_me:$LINENO: checking for dev_t" >&5
15002 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
15003 if test "${sudo_cv_type_dev_t+set}" = set; then
15004   echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006   cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012 #include <sys/types.h>
15013 #include <stdio.h>
15014 #if STDC_HEADERS
15015 #include <stdlib.h>
15016 #endif
15017 #if HAVE_UNISTD_H
15018 #include <unistd.h>
15019 #endif
15020 _ACEOF
15021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15022   $EGREP "dev_t" >/dev/null 2>&1; then
15023   sudo_cv_type_dev_t=yes
15024 else
15025   sudo_cv_type_dev_t=no
15026 fi
15027 rm -f conftest*
15028
15029 fi
15030 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
15031 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
15032 if test $sudo_cv_type_dev_t = no; then
15033
15034 cat >>confdefs.h <<\_ACEOF
15035 #define dev_t int
15036 _ACEOF
15037
15038 fi
15039
15040 { echo "$as_me:$LINENO: checking for ino_t" >&5
15041 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
15042 if test "${sudo_cv_type_ino_t+set}" = set; then
15043   echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045   cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h.  */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h.  */
15051 #include <sys/types.h>
15052 #include <stdio.h>
15053 #if STDC_HEADERS
15054 #include <stdlib.h>
15055 #endif
15056 #if HAVE_UNISTD_H
15057 #include <unistd.h>
15058 #endif
15059 _ACEOF
15060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15061   $EGREP "ino_t" >/dev/null 2>&1; then
15062   sudo_cv_type_ino_t=yes
15063 else
15064   sudo_cv_type_ino_t=no
15065 fi
15066 rm -f conftest*
15067
15068 fi
15069 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
15070 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
15071 if test $sudo_cv_type_ino_t = no; then
15072
15073 cat >>confdefs.h <<\_ACEOF
15074 #define ino_t unsigned int
15075 _ACEOF
15076
15077 fi
15078
15079
15080 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
15081 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
15082 if test "${sudo_cv_uid_t_len+set}" = set; then
15083   echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085   rm -f conftestdata
15086 if test "$cross_compiling" = yes; then
15087   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15088 See \`config.log' for more details." >&5
15089 echo "$as_me: error: cannot run test program while cross compiling
15090 See \`config.log' for more details." >&2;}
15091    { (exit 1); exit 1; }; }
15092 else
15093   cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h.  */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h.  */
15099 #include <stdio.h>
15100 #include <pwd.h>
15101 #include <limits.h>
15102 #include <sys/types.h>
15103 #include <sys/param.h>
15104 main() {
15105   FILE *f;
15106   char b[1024];
15107   uid_t u = (uid_t) -1;
15108
15109   if ((f = fopen("conftestdata", "w")) == NULL)
15110     exit(1);
15111
15112   (void) sprintf(b, "%lu", (unsigned long) u);
15113   (void) fprintf(f, "%d\n", strlen(b));
15114   (void) fclose(f);
15115   exit(0);
15116 }
15117 _ACEOF
15118 rm -f conftest$ac_exeext
15119 if { (ac_try="$ac_link"
15120 case "(($ac_try" in
15121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122   *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125   (eval "$ac_link") 2>&5
15126   ac_status=$?
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15129   { (case "(($ac_try" in
15130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131   *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134   (eval "$ac_try") 2>&5
15135   ac_status=$?
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); }; }; then
15138   sudo_cv_uid_t_len=`cat conftestdata`
15139 else
15140   echo "$as_me: program exited with status $ac_status" >&5
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15143
15144 ( exit $ac_status )
15145 sudo_cv_uid_t_len=10
15146 fi
15147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15148 fi
15149
15150
15151
15152 fi
15153
15154 rm -f conftestdata
15155 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
15156 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
15157
15158 cat >>confdefs.h <<_ACEOF
15159 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15160 _ACEOF
15161
15162
15163 { echo "$as_me:$LINENO: checking for long long" >&5
15164 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
15165 if test "${ac_cv_type_long_long+set}" = set; then
15166   echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168   cat >conftest.$ac_ext <<_ACEOF
15169 /* confdefs.h.  */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h.  */
15174 $ac_includes_default
15175 typedef long long ac__type_new_;
15176 int
15177 main ()
15178 {
15179 if ((ac__type_new_ *) 0)
15180   return 0;
15181 if (sizeof (ac__type_new_))
15182   return 0;
15183   ;
15184   return 0;
15185 }
15186 _ACEOF
15187 rm -f conftest.$ac_objext
15188 if { (ac_try="$ac_compile"
15189 case "(($ac_try" in
15190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191   *) ac_try_echo=$ac_try;;
15192 esac
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194   (eval "$ac_compile") 2>conftest.er1
15195   ac_status=$?
15196   grep -v '^ *+' conftest.er1 >conftest.err
15197   rm -f conftest.er1
15198   cat conftest.err >&5
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } && {
15201          test -z "$ac_c_werror_flag" ||
15202          test ! -s conftest.err
15203        } && test -s conftest.$ac_objext; then
15204   ac_cv_type_long_long=yes
15205 else
15206   echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15208
15209         ac_cv_type_long_long=no
15210 fi
15211
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213 fi
15214 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15215 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15216 if test $ac_cv_type_long_long = yes; then
15217
15218 cat >>confdefs.h <<_ACEOF
15219 #define HAVE_LONG_LONG 1
15220 _ACEOF
15221
15222
15223 cat >>confdefs.h <<\_ACEOF
15224 #define HAVE_LONG_LONG 1
15225 _ACEOF
15226
15227 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
15228 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
15229 if test "${sudo_cv_type_long_is_quad+set}" = set; then
15230   echo $ECHO_N "(cached) $ECHO_C" >&6
15231 else
15232   if test "$cross_compiling" = yes; then
15233   sudo_cv_type_long_is_quad=no
15234 else
15235   cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241
15242 main() {
15243 if (sizeof(long long) == sizeof(long)) exit(0);
15244 else exit(1);
15245 }
15246 _ACEOF
15247 rm -f conftest$ac_exeext
15248 if { (ac_try="$ac_link"
15249 case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_link") 2>&5
15255   ac_status=$?
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15258   { (case "(($ac_try" in
15259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260   *) ac_try_echo=$ac_try;;
15261 esac
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263   (eval "$ac_try") 2>&5
15264   ac_status=$?
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); }; }; then
15267   sudo_cv_type_long_is_quad=yes
15268 else
15269   echo "$as_me: program exited with status $ac_status" >&5
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15272
15273 ( exit $ac_status )
15274 sudo_cv_type_long_is_quad=no
15275 fi
15276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15277 fi
15278
15279
15280 rm -f core core.* *.core
15281 fi
15282 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
15283 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
15284 if test $sudo_cv_type_long_is_quad = yes; then
15285
15286 cat >>confdefs.h <<\_ACEOF
15287 #define LONG_IS_QUAD 1
15288 _ACEOF
15289
15290 fi
15291
15292 fi
15293
15294 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
15295 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
15296 if test "${sudo_cv_sock_sa_len+set}" = set; then
15297   echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299   if test "$cross_compiling" = yes; then
15300   sudo_cv_sock_sa_len=no
15301 else
15302   cat >conftest.$ac_ext <<_ACEOF
15303 /* confdefs.h.  */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h.  */
15308 #include <sys/types.h>
15309 #include <sys/socket.h>
15310 main() {
15311 struct sockaddr s;
15312 s.sa_len = 0;
15313 exit(0);
15314 }
15315 _ACEOF
15316 rm -f conftest$ac_exeext
15317 if { (ac_try="$ac_link"
15318 case "(($ac_try" in
15319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320   *) ac_try_echo=$ac_try;;
15321 esac
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323   (eval "$ac_link") 2>&5
15324   ac_status=$?
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15327   { (case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332   (eval "$ac_try") 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; }; then
15336   sudo_cv_sock_sa_len=yes
15337 else
15338   echo "$as_me: program exited with status $ac_status" >&5
15339 echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15341
15342 ( exit $ac_status )
15343 sudo_cv_sock_sa_len=no
15344 fi
15345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15346 fi
15347
15348
15349 rm -f core core.* *.core
15350 fi
15351 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
15352 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
15353 if test $sudo_cv_sock_sa_len = yes; then
15354
15355 cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_SA_LEN 1
15357 _ACEOF
15358
15359 fi
15360
15361 case "$DEFS" in
15362     *"RETSIGTYPE"*)     ;;
15363     *)                  { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15364 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15365 if test "${ac_cv_type_signal+set}" = set; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374 #include <sys/types.h>
15375 #include <signal.h>
15376
15377 int
15378 main ()
15379 {
15380 return *(signal (0, 0)) (0) == 1;
15381   ;
15382   return 0;
15383 }
15384 _ACEOF
15385 rm -f conftest.$ac_objext
15386 if { (ac_try="$ac_compile"
15387 case "(($ac_try" in
15388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389   *) ac_try_echo=$ac_try;;
15390 esac
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392   (eval "$ac_compile") 2>conftest.er1
15393   ac_status=$?
15394   grep -v '^ *+' conftest.er1 >conftest.err
15395   rm -f conftest.er1
15396   cat conftest.err >&5
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); } && {
15399          test -z "$ac_c_werror_flag" ||
15400          test ! -s conftest.err
15401        } && test -s conftest.$ac_objext; then
15402   ac_cv_type_signal=int
15403 else
15404   echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15406
15407         ac_cv_type_signal=void
15408 fi
15409
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411 fi
15412 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15413 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15414
15415 cat >>confdefs.h <<_ACEOF
15416 #define RETSIGTYPE $ac_cv_type_signal
15417 _ACEOF
15418
15419 ;;
15420 esac
15421 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15422 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
15423 if test "${ac_cv_type_getgroups+set}" = set; then
15424   echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426   if test "$cross_compiling" = yes; then
15427   ac_cv_type_getgroups=cross
15428 else
15429   cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h.  */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h.  */
15435 /* Thanks to Mike Rendell for this test.  */
15436 $ac_includes_default
15437 #define NGID 256
15438 #undef MAX
15439 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15440
15441 int
15442 main ()
15443 {
15444   gid_t gidset[NGID];
15445   int i, n;
15446   union { gid_t gval; long int lval; }  val;
15447
15448   val.lval = -1;
15449   for (i = 0; i < NGID; i++)
15450     gidset[i] = val.gval;
15451   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15452                  gidset);
15453   /* Exit non-zero if getgroups seems to require an array of ints.  This
15454      happens when gid_t is short int but getgroups modifies an array
15455      of ints.  */
15456   return n > 0 && gidset[n] != val.gval;
15457 }
15458 _ACEOF
15459 rm -f conftest$ac_exeext
15460 if { (ac_try="$ac_link"
15461 case "(($ac_try" in
15462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15463   *) ac_try_echo=$ac_try;;
15464 esac
15465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466   (eval "$ac_link") 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15470   { (case "(($ac_try" in
15471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472   *) ac_try_echo=$ac_try;;
15473 esac
15474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475   (eval "$ac_try") 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); }; }; then
15479   ac_cv_type_getgroups=gid_t
15480 else
15481   echo "$as_me: program exited with status $ac_status" >&5
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15484
15485 ( exit $ac_status )
15486 ac_cv_type_getgroups=int
15487 fi
15488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15489 fi
15490
15491
15492 if test $ac_cv_type_getgroups = cross; then
15493         cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h.  */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h.  */
15499 #include <unistd.h>
15500
15501 _ACEOF
15502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15503   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15504   ac_cv_type_getgroups=gid_t
15505 else
15506   ac_cv_type_getgroups=int
15507 fi
15508 rm -f conftest*
15509
15510 fi
15511 fi
15512 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15513 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
15514
15515 cat >>confdefs.h <<_ACEOF
15516 #define GETGROUPS_T $ac_cv_type_getgroups
15517 _ACEOF
15518
15519
15520 { echo "$as_me:$LINENO: checking for size_t" >&5
15521 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15522 if test "${ac_cv_type_size_t+set}" = set; then
15523   echo $ECHO_N "(cached) $ECHO_C" >&6
15524 else
15525   cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 $ac_includes_default
15532 typedef size_t ac__type_new_;
15533 int
15534 main ()
15535 {
15536 if ((ac__type_new_ *) 0)
15537   return 0;
15538 if (sizeof (ac__type_new_))
15539   return 0;
15540   ;
15541   return 0;
15542 }
15543 _ACEOF
15544 rm -f conftest.$ac_objext
15545 if { (ac_try="$ac_compile"
15546 case "(($ac_try" in
15547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548   *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551   (eval "$ac_compile") 2>conftest.er1
15552   ac_status=$?
15553   grep -v '^ *+' conftest.er1 >conftest.err
15554   rm -f conftest.er1
15555   cat conftest.err >&5
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); } && {
15558          test -z "$ac_c_werror_flag" ||
15559          test ! -s conftest.err
15560        } && test -s conftest.$ac_objext; then
15561   ac_cv_type_size_t=yes
15562 else
15563   echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566         ac_cv_type_size_t=no
15567 fi
15568
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 fi
15571 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15572 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15573 if test $ac_cv_type_size_t = yes; then
15574   :
15575 else
15576
15577 cat >>confdefs.h <<_ACEOF
15578 #define size_t unsigned int
15579 _ACEOF
15580
15581 fi
15582
15583 { echo "$as_me:$LINENO: checking for getgroups" >&5
15584 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
15585 if test "${ac_cv_func_getgroups+set}" = set; then
15586   echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588   cat >conftest.$ac_ext <<_ACEOF
15589 /* confdefs.h.  */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h.  */
15594 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15596 #define getgroups innocuous_getgroups
15597
15598 /* System header to define __stub macros and hopefully few prototypes,
15599     which can conflict with char getgroups (); below.
15600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15601     <limits.h> exists even on freestanding compilers.  */
15602
15603 #ifdef __STDC__
15604 # include <limits.h>
15605 #else
15606 # include <assert.h>
15607 #endif
15608
15609 #undef getgroups
15610
15611 /* Override any GCC internal prototype to avoid an error.
15612    Use char because int might match the return type of a GCC
15613    builtin and then its argument prototype would still apply.  */
15614 #ifdef __cplusplus
15615 extern "C"
15616 #endif
15617 char getgroups ();
15618 /* The GNU C library defines this for functions which it implements
15619     to always fail with ENOSYS.  Some functions are actually named
15620     something starting with __ and the normal name is an alias.  */
15621 #if defined __stub_getgroups || defined __stub___getgroups
15622 choke me
15623 #endif
15624
15625 int
15626 main ()
15627 {
15628 return getgroups ();
15629   ;
15630   return 0;
15631 }
15632 _ACEOF
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (ac_try="$ac_link"
15635 case "(($ac_try" in
15636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637   *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640   (eval "$ac_link") 2>conftest.er1
15641   ac_status=$?
15642   grep -v '^ *+' conftest.er1 >conftest.err
15643   rm -f conftest.er1
15644   cat conftest.err >&5
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); } && {
15647          test -z "$ac_c_werror_flag" ||
15648          test ! -s conftest.err
15649        } && test -s conftest$ac_exeext &&
15650        $as_test_x conftest$ac_exeext; then
15651   ac_cv_func_getgroups=yes
15652 else
15653   echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15655
15656         ac_cv_func_getgroups=no
15657 fi
15658
15659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15660       conftest$ac_exeext conftest.$ac_ext
15661 fi
15662 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15663 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15664
15665
15666 # If we don't yet have getgroups, see if it's in -lbsd.
15667 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15668 ac_save_LIBS=$LIBS
15669 if test $ac_cv_func_getgroups = no; then
15670   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15671 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15672 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15673   echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675   ac_check_lib_save_LIBS=$LIBS
15676 LIBS="-lbsd  $LIBS"
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683
15684 /* Override any GCC internal prototype to avoid an error.
15685    Use char because int might match the return type of a GCC
15686    builtin and then its argument prototype would still apply.  */
15687 #ifdef __cplusplus
15688 extern "C"
15689 #endif
15690 char getgroups ();
15691 int
15692 main ()
15693 {
15694 return getgroups ();
15695   ;
15696   return 0;
15697 }
15698 _ACEOF
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703   *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706   (eval "$ac_link") 2>conftest.er1
15707   ac_status=$?
15708   grep -v '^ *+' conftest.er1 >conftest.err
15709   rm -f conftest.er1
15710   cat conftest.err >&5
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); } && {
15713          test -z "$ac_c_werror_flag" ||
15714          test ! -s conftest.err
15715        } && test -s conftest$ac_exeext &&
15716        $as_test_x conftest$ac_exeext; then
15717   ac_cv_lib_bsd_getgroups=yes
15718 else
15719   echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722         ac_cv_lib_bsd_getgroups=no
15723 fi
15724
15725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15726       conftest$ac_exeext conftest.$ac_ext
15727 LIBS=$ac_check_lib_save_LIBS
15728 fi
15729 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15730 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15731 if test $ac_cv_lib_bsd_getgroups = yes; then
15732   GETGROUPS_LIB=-lbsd
15733 fi
15734
15735 fi
15736
15737 # Run the program to test the functionality of the system-supplied
15738 # getgroups function only if there is such a function.
15739 if test $ac_cv_func_getgroups = yes; then
15740   { echo "$as_me:$LINENO: checking for working getgroups" >&5
15741 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15742 if test "${ac_cv_func_getgroups_works+set}" = set; then
15743   echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745   if test "$cross_compiling" = yes; then
15746   ac_cv_func_getgroups_works=no
15747 else
15748   cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h.  */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h.  */
15754 $ac_includes_default
15755 int
15756 main ()
15757 {
15758 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
15759        return getgroups (0, 0) == -1;
15760   ;
15761   return 0;
15762 }
15763 _ACEOF
15764 rm -f conftest$ac_exeext
15765 if { (ac_try="$ac_link"
15766 case "(($ac_try" in
15767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768   *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771   (eval "$ac_link") 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15775   { (case "(($ac_try" in
15776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777   *) ac_try_echo=$ac_try;;
15778 esac
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780   (eval "$ac_try") 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; }; then
15784   ac_cv_func_getgroups_works=yes
15785 else
15786   echo "$as_me: program exited with status $ac_status" >&5
15787 echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15789
15790 ( exit $ac_status )
15791 ac_cv_func_getgroups_works=no
15792 fi
15793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15794 fi
15795
15796
15797
15798 fi
15799 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15800 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15801   if test $ac_cv_func_getgroups_works = yes; then
15802
15803 cat >>confdefs.h <<\_ACEOF
15804 #define HAVE_GETGROUPS 1
15805 _ACEOF
15806
15807   fi
15808 fi
15809 LIBS=$ac_save_LIBS
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15829                strftime setrlimit initgroups getgroups fstat gettimeofday \
15830                setlocale getaddrinfo setsid setenv
15831 do
15832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15836   echo $ECHO_N "(cached) $ECHO_C" >&6
15837 else
15838   cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h.  */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h.  */
15844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15846 #define $ac_func innocuous_$ac_func
15847
15848 /* System header to define __stub macros and hopefully few prototypes,
15849     which can conflict with char $ac_func (); below.
15850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15851     <limits.h> exists even on freestanding compilers.  */
15852
15853 #ifdef __STDC__
15854 # include <limits.h>
15855 #else
15856 # include <assert.h>
15857 #endif
15858
15859 #undef $ac_func
15860
15861 /* Override any GCC internal prototype to avoid an error.
15862    Use char because int might match the return type of a GCC
15863    builtin and then its argument prototype would still apply.  */
15864 #ifdef __cplusplus
15865 extern "C"
15866 #endif
15867 char $ac_func ();
15868 /* The GNU C library defines this for functions which it implements
15869     to always fail with ENOSYS.  Some functions are actually named
15870     something starting with __ and the normal name is an alias.  */
15871 #if defined __stub_$ac_func || defined __stub___$ac_func
15872 choke me
15873 #endif
15874
15875 int
15876 main ()
15877 {
15878 return $ac_func ();
15879   ;
15880   return 0;
15881 }
15882 _ACEOF
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (ac_try="$ac_link"
15885 case "(($ac_try" in
15886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887   *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890   (eval "$ac_link") 2>conftest.er1
15891   ac_status=$?
15892   grep -v '^ *+' conftest.er1 >conftest.err
15893   rm -f conftest.er1
15894   cat conftest.err >&5
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } && {
15897          test -z "$ac_c_werror_flag" ||
15898          test ! -s conftest.err
15899        } && test -s conftest$ac_exeext &&
15900        $as_test_x conftest$ac_exeext; then
15901   eval "$as_ac_var=yes"
15902 else
15903   echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15905
15906         eval "$as_ac_var=no"
15907 fi
15908
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910       conftest$ac_exeext conftest.$ac_ext
15911 fi
15912 ac_res=`eval echo '${'$as_ac_var'}'`
15913                { echo "$as_me:$LINENO: result: $ac_res" >&5
15914 echo "${ECHO_T}$ac_res" >&6; }
15915 if test `eval echo '${'$as_ac_var'}'` = yes; then
15916   cat >>confdefs.h <<_ACEOF
15917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15918 _ACEOF
15919
15920 fi
15921 done
15922
15923
15924 for ac_func in unsetenv
15925 do
15926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15930   echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932   cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h.  */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h.  */
15938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15940 #define $ac_func innocuous_$ac_func
15941
15942 /* System header to define __stub macros and hopefully few prototypes,
15943     which can conflict with char $ac_func (); below.
15944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15945     <limits.h> exists even on freestanding compilers.  */
15946
15947 #ifdef __STDC__
15948 # include <limits.h>
15949 #else
15950 # include <assert.h>
15951 #endif
15952
15953 #undef $ac_func
15954
15955 /* Override any GCC internal prototype to avoid an error.
15956    Use char because int might match the return type of a GCC
15957    builtin and then its argument prototype would still apply.  */
15958 #ifdef __cplusplus
15959 extern "C"
15960 #endif
15961 char $ac_func ();
15962 /* The GNU C library defines this for functions which it implements
15963     to always fail with ENOSYS.  Some functions are actually named
15964     something starting with __ and the normal name is an alias.  */
15965 #if defined __stub_$ac_func || defined __stub___$ac_func
15966 choke me
15967 #endif
15968
15969 int
15970 main ()
15971 {
15972 return $ac_func ();
15973   ;
15974   return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext conftest$ac_exeext
15978 if { (ac_try="$ac_link"
15979 case "(($ac_try" in
15980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981   *) ac_try_echo=$ac_try;;
15982 esac
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984   (eval "$ac_link") 2>conftest.er1
15985   ac_status=$?
15986   grep -v '^ *+' conftest.er1 >conftest.err
15987   rm -f conftest.er1
15988   cat conftest.err >&5
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); } && {
15991          test -z "$ac_c_werror_flag" ||
15992          test ! -s conftest.err
15993        } && test -s conftest$ac_exeext &&
15994        $as_test_x conftest$ac_exeext; then
15995   eval "$as_ac_var=yes"
15996 else
15997   echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
15999
16000         eval "$as_ac_var=no"
16001 fi
16002
16003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16004       conftest$ac_exeext conftest.$ac_ext
16005 fi
16006 ac_res=`eval echo '${'$as_ac_var'}'`
16007                { echo "$as_me:$LINENO: result: $ac_res" >&5
16008 echo "${ECHO_T}$ac_res" >&6; }
16009 if test `eval echo '${'$as_ac_var'}'` = yes; then
16010   cat >>confdefs.h <<_ACEOF
16011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16012 _ACEOF
16013  { echo "$as_me:$LINENO: checking whether unsetenv returns void" >&5
16014 echo $ECHO_N "checking whether unsetenv returns void... $ECHO_C" >&6; }
16015 if test "${sudo_cv_func_unsetenv_void+set}" = set; then
16016   echo $ECHO_N "(cached) $ECHO_C" >&6
16017 else
16018   if test "$cross_compiling" = yes; then
16019   sudo_cv_func_unsetenv_void=yes
16020 else
16021   cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h.  */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h.  */
16027 $ac_includes_default
16028         int unsetenv();
16029
16030 int
16031 main ()
16032 {
16033
16034         return unsetenv("FOO") != 0;
16035
16036   ;
16037   return 0;
16038 }
16039
16040 _ACEOF
16041 rm -f conftest$ac_exeext
16042 if { (ac_try="$ac_link"
16043 case "(($ac_try" in
16044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045   *) ac_try_echo=$ac_try;;
16046 esac
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048   (eval "$ac_link") 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16052   { (case "(($ac_try" in
16053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054   *) ac_try_echo=$ac_try;;
16055 esac
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057   (eval "$ac_try") 2>&5
16058   ac_status=$?
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); }; }; then
16061   sudo_cv_func_unsetenv_void=no
16062 else
16063   echo "$as_me: program exited with status $ac_status" >&5
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ( exit $ac_status )
16068 sudo_cv_func_unsetenv_void=yes
16069 fi
16070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16071 fi
16072
16073
16074 fi
16075 { echo "$as_me:$LINENO: result: $sudo_cv_func_unsetenv_void" >&5
16076 echo "${ECHO_T}$sudo_cv_func_unsetenv_void" >&6; }
16077     if test $sudo_cv_func_unsetenv_void = yes; then
16078
16079 cat >>confdefs.h <<\_ACEOF
16080 #define UNSETENV_VOID 1
16081 _ACEOF
16082
16083     fi
16084
16085 fi
16086 done
16087
16088 { echo "$as_me:$LINENO: checking whether putenv has a const argument" >&5
16089 echo $ECHO_N "checking whether putenv has a const argument... $ECHO_C" >&6; }
16090 if test "${sudo_cv_func_putenv_const+set}" = set; then
16091   echo $ECHO_N "(cached) $ECHO_C" >&6
16092 else
16093   cat >conftest.$ac_ext <<_ACEOF
16094 /* confdefs.h.  */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h.  */
16099 $ac_includes_default
16100 int putenv(const char *string) {return 0;}
16101 int
16102 main ()
16103 {
16104
16105   ;
16106   return 0;
16107 }
16108 _ACEOF
16109 rm -f conftest.$ac_objext
16110 if { (ac_try="$ac_compile"
16111 case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116   (eval "$ac_compile") 2>conftest.er1
16117   ac_status=$?
16118   grep -v '^ *+' conftest.er1 >conftest.err
16119   rm -f conftest.er1
16120   cat conftest.err >&5
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); } && {
16123          test -z "$ac_c_werror_flag" ||
16124          test ! -s conftest.err
16125        } && test -s conftest.$ac_objext; then
16126   sudo_cv_func_putenv_const=yes
16127 else
16128   echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131         sudo_cv_func_putenv_const=no
16132 fi
16133
16134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135
16136 fi
16137 { echo "$as_me:$LINENO: result: $sudo_cv_func_putenv_const" >&5
16138 echo "${ECHO_T}$sudo_cv_func_putenv_const" >&6; }
16139   if test $sudo_cv_func_putenv_const = yes; then
16140
16141 cat >>confdefs.h <<\_ACEOF
16142 #define PUTENV_CONST 1
16143 _ACEOF
16144
16145   fi
16146
16147 if test -z "$SKIP_SETRESUID"; then
16148
16149 for ac_func in setresuid
16150 do
16151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16155   echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16157   cat >conftest.$ac_ext <<_ACEOF
16158 /* confdefs.h.  */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h.  */
16163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16165 #define $ac_func innocuous_$ac_func
16166
16167 /* System header to define __stub macros and hopefully few prototypes,
16168     which can conflict with char $ac_func (); below.
16169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16170     <limits.h> exists even on freestanding compilers.  */
16171
16172 #ifdef __STDC__
16173 # include <limits.h>
16174 #else
16175 # include <assert.h>
16176 #endif
16177
16178 #undef $ac_func
16179
16180 /* Override any GCC internal prototype to avoid an error.
16181    Use char because int might match the return type of a GCC
16182    builtin and then its argument prototype would still apply.  */
16183 #ifdef __cplusplus
16184 extern "C"
16185 #endif
16186 char $ac_func ();
16187 /* The GNU C library defines this for functions which it implements
16188     to always fail with ENOSYS.  Some functions are actually named
16189     something starting with __ and the normal name is an alias.  */
16190 #if defined __stub_$ac_func || defined __stub___$ac_func
16191 choke me
16192 #endif
16193
16194 int
16195 main ()
16196 {
16197 return $ac_func ();
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (ac_try="$ac_link"
16204 case "(($ac_try" in
16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206   *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209   (eval "$ac_link") 2>conftest.er1
16210   ac_status=$?
16211   grep -v '^ *+' conftest.er1 >conftest.err
16212   rm -f conftest.er1
16213   cat conftest.err >&5
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } && {
16216          test -z "$ac_c_werror_flag" ||
16217          test ! -s conftest.err
16218        } && test -s conftest$ac_exeext &&
16219        $as_test_x conftest$ac_exeext; then
16220   eval "$as_ac_var=yes"
16221 else
16222   echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225         eval "$as_ac_var=no"
16226 fi
16227
16228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16229       conftest$ac_exeext conftest.$ac_ext
16230 fi
16231 ac_res=`eval echo '${'$as_ac_var'}'`
16232                { echo "$as_me:$LINENO: result: $ac_res" >&5
16233 echo "${ECHO_T}$ac_res" >&6; }
16234 if test `eval echo '${'$as_ac_var'}'` = yes; then
16235   cat >>confdefs.h <<_ACEOF
16236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16237 _ACEOF
16238  SKIP_SETREUID=yes
16239 fi
16240 done
16241
16242 fi
16243 if test -z "$SKIP_SETREUID"; then
16244
16245 for ac_func in setreuid
16246 do
16247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16251   echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253   cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h.  */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h.  */
16259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16261 #define $ac_func innocuous_$ac_func
16262
16263 /* System header to define __stub macros and hopefully few prototypes,
16264     which can conflict with char $ac_func (); below.
16265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16266     <limits.h> exists even on freestanding compilers.  */
16267
16268 #ifdef __STDC__
16269 # include <limits.h>
16270 #else
16271 # include <assert.h>
16272 #endif
16273
16274 #undef $ac_func
16275
16276 /* Override any GCC internal prototype to avoid an error.
16277    Use char because int might match the return type of a GCC
16278    builtin and then its argument prototype would still apply.  */
16279 #ifdef __cplusplus
16280 extern "C"
16281 #endif
16282 char $ac_func ();
16283 /* The GNU C library defines this for functions which it implements
16284     to always fail with ENOSYS.  Some functions are actually named
16285     something starting with __ and the normal name is an alias.  */
16286 #if defined __stub_$ac_func || defined __stub___$ac_func
16287 choke me
16288 #endif
16289
16290 int
16291 main ()
16292 {
16293 return $ac_func ();
16294   ;
16295   return 0;
16296 }
16297 _ACEOF
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (ac_try="$ac_link"
16300 case "(($ac_try" in
16301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302   *) ac_try_echo=$ac_try;;
16303 esac
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305   (eval "$ac_link") 2>conftest.er1
16306   ac_status=$?
16307   grep -v '^ *+' conftest.er1 >conftest.err
16308   rm -f conftest.er1
16309   cat conftest.err >&5
16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   (exit $ac_status); } && {
16312          test -z "$ac_c_werror_flag" ||
16313          test ! -s conftest.err
16314        } && test -s conftest$ac_exeext &&
16315        $as_test_x conftest$ac_exeext; then
16316   eval "$as_ac_var=yes"
16317 else
16318   echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16320
16321         eval "$as_ac_var=no"
16322 fi
16323
16324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16325       conftest$ac_exeext conftest.$ac_ext
16326 fi
16327 ac_res=`eval echo '${'$as_ac_var'}'`
16328                { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16330 if test `eval echo '${'$as_ac_var'}'` = yes; then
16331   cat >>confdefs.h <<_ACEOF
16332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16333 _ACEOF
16334  SKIP_SETEUID=yes
16335 fi
16336 done
16337
16338 fi
16339 if test -z "$SKIP_SETEUID"; then
16340
16341 for ac_func in seteuid
16342 do
16343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16347   echo $ECHO_N "(cached) $ECHO_C" >&6
16348 else
16349   cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h.  */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h.  */
16355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16357 #define $ac_func innocuous_$ac_func
16358
16359 /* System header to define __stub macros and hopefully few prototypes,
16360     which can conflict with char $ac_func (); below.
16361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16362     <limits.h> exists even on freestanding compilers.  */
16363
16364 #ifdef __STDC__
16365 # include <limits.h>
16366 #else
16367 # include <assert.h>
16368 #endif
16369
16370 #undef $ac_func
16371
16372 /* Override any GCC internal prototype to avoid an error.
16373    Use char because int might match the return type of a GCC
16374    builtin and then its argument prototype would still apply.  */
16375 #ifdef __cplusplus
16376 extern "C"
16377 #endif
16378 char $ac_func ();
16379 /* The GNU C library defines this for functions which it implements
16380     to always fail with ENOSYS.  Some functions are actually named
16381     something starting with __ and the normal name is an alias.  */
16382 #if defined __stub_$ac_func || defined __stub___$ac_func
16383 choke me
16384 #endif
16385
16386 int
16387 main ()
16388 {
16389 return $ac_func ();
16390   ;
16391   return 0;
16392 }
16393 _ACEOF
16394 rm -f conftest.$ac_objext conftest$ac_exeext
16395 if { (ac_try="$ac_link"
16396 case "(($ac_try" in
16397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398   *) ac_try_echo=$ac_try;;
16399 esac
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401   (eval "$ac_link") 2>conftest.er1
16402   ac_status=$?
16403   grep -v '^ *+' conftest.er1 >conftest.err
16404   rm -f conftest.er1
16405   cat conftest.err >&5
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); } && {
16408          test -z "$ac_c_werror_flag" ||
16409          test ! -s conftest.err
16410        } && test -s conftest$ac_exeext &&
16411        $as_test_x conftest$ac_exeext; then
16412   eval "$as_ac_var=yes"
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417         eval "$as_ac_var=no"
16418 fi
16419
16420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16421       conftest$ac_exeext conftest.$ac_ext
16422 fi
16423 ac_res=`eval echo '${'$as_ac_var'}'`
16424                { echo "$as_me:$LINENO: result: $ac_res" >&5
16425 echo "${ECHO_T}$ac_res" >&6; }
16426 if test `eval echo '${'$as_ac_var'}'` = yes; then
16427   cat >>confdefs.h <<_ACEOF
16428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16429 _ACEOF
16430
16431 fi
16432 done
16433
16434 fi
16435 if test X"$with_interfaces" != X"no"; then
16436
16437 for ac_func in getifaddrs
16438 do
16439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16443   echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445   cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h.  */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h.  */
16451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16453 #define $ac_func innocuous_$ac_func
16454
16455 /* System header to define __stub macros and hopefully few prototypes,
16456     which can conflict with char $ac_func (); below.
16457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16458     <limits.h> exists even on freestanding compilers.  */
16459
16460 #ifdef __STDC__
16461 # include <limits.h>
16462 #else
16463 # include <assert.h>
16464 #endif
16465
16466 #undef $ac_func
16467
16468 /* Override any GCC internal prototype to avoid an error.
16469    Use char because int might match the return type of a GCC
16470    builtin and then its argument prototype would still apply.  */
16471 #ifdef __cplusplus
16472 extern "C"
16473 #endif
16474 char $ac_func ();
16475 /* The GNU C library defines this for functions which it implements
16476     to always fail with ENOSYS.  Some functions are actually named
16477     something starting with __ and the normal name is an alias.  */
16478 #if defined __stub_$ac_func || defined __stub___$ac_func
16479 choke me
16480 #endif
16481
16482 int
16483 main ()
16484 {
16485 return $ac_func ();
16486   ;
16487   return 0;
16488 }
16489 _ACEOF
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (ac_try="$ac_link"
16492 case "(($ac_try" in
16493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494   *) ac_try_echo=$ac_try;;
16495 esac
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497   (eval "$ac_link") 2>conftest.er1
16498   ac_status=$?
16499   grep -v '^ *+' conftest.er1 >conftest.err
16500   rm -f conftest.er1
16501   cat conftest.err >&5
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); } && {
16504          test -z "$ac_c_werror_flag" ||
16505          test ! -s conftest.err
16506        } && test -s conftest$ac_exeext &&
16507        $as_test_x conftest$ac_exeext; then
16508   eval "$as_ac_var=yes"
16509 else
16510   echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513         eval "$as_ac_var=no"
16514 fi
16515
16516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16517       conftest$ac_exeext conftest.$ac_ext
16518 fi
16519 ac_res=`eval echo '${'$as_ac_var'}'`
16520                { echo "$as_me:$LINENO: result: $ac_res" >&5
16521 echo "${ECHO_T}$ac_res" >&6; }
16522 if test `eval echo '${'$as_ac_var'}'` = yes; then
16523   cat >>confdefs.h <<_ACEOF
16524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16525 _ACEOF
16526
16527 for ac_func in freeifaddrs
16528 do
16529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16533   echo $ECHO_N "(cached) $ECHO_C" >&6
16534 else
16535   cat >conftest.$ac_ext <<_ACEOF
16536 /* confdefs.h.  */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h.  */
16541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16543 #define $ac_func innocuous_$ac_func
16544
16545 /* System header to define __stub macros and hopefully few prototypes,
16546     which can conflict with char $ac_func (); below.
16547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16548     <limits.h> exists even on freestanding compilers.  */
16549
16550 #ifdef __STDC__
16551 # include <limits.h>
16552 #else
16553 # include <assert.h>
16554 #endif
16555
16556 #undef $ac_func
16557
16558 /* Override any GCC internal prototype to avoid an error.
16559    Use char because int might match the return type of a GCC
16560    builtin and then its argument prototype would still apply.  */
16561 #ifdef __cplusplus
16562 extern "C"
16563 #endif
16564 char $ac_func ();
16565 /* The GNU C library defines this for functions which it implements
16566     to always fail with ENOSYS.  Some functions are actually named
16567     something starting with __ and the normal name is an alias.  */
16568 #if defined __stub_$ac_func || defined __stub___$ac_func
16569 choke me
16570 #endif
16571
16572 int
16573 main ()
16574 {
16575 return $ac_func ();
16576   ;
16577   return 0;
16578 }
16579 _ACEOF
16580 rm -f conftest.$ac_objext conftest$ac_exeext
16581 if { (ac_try="$ac_link"
16582 case "(($ac_try" in
16583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584   *) ac_try_echo=$ac_try;;
16585 esac
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587   (eval "$ac_link") 2>conftest.er1
16588   ac_status=$?
16589   grep -v '^ *+' conftest.er1 >conftest.err
16590   rm -f conftest.er1
16591   cat conftest.err >&5
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); } && {
16594          test -z "$ac_c_werror_flag" ||
16595          test ! -s conftest.err
16596        } && test -s conftest$ac_exeext &&
16597        $as_test_x conftest$ac_exeext; then
16598   eval "$as_ac_var=yes"
16599 else
16600   echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16602
16603         eval "$as_ac_var=no"
16604 fi
16605
16606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16607       conftest$ac_exeext conftest.$ac_ext
16608 fi
16609 ac_res=`eval echo '${'$as_ac_var'}'`
16610                { echo "$as_me:$LINENO: result: $ac_res" >&5
16611 echo "${ECHO_T}$ac_res" >&6; }
16612 if test `eval echo '${'$as_ac_var'}'` = yes; then
16613   cat >>confdefs.h <<_ACEOF
16614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16615 _ACEOF
16616
16617 fi
16618 done
16619
16620 fi
16621 done
16622
16623 fi
16624 if test -z "$BROKEN_GETCWD"; then
16625
16626 for ac_func in getcwd
16627 do
16628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h.  */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h.  */
16640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16642 #define $ac_func innocuous_$ac_func
16643
16644 /* System header to define __stub macros and hopefully few prototypes,
16645     which can conflict with char $ac_func (); below.
16646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16647     <limits.h> exists even on freestanding compilers.  */
16648
16649 #ifdef __STDC__
16650 # include <limits.h>
16651 #else
16652 # include <assert.h>
16653 #endif
16654
16655 #undef $ac_func
16656
16657 /* Override any GCC internal prototype to avoid an error.
16658    Use char because int might match the return type of a GCC
16659    builtin and then its argument prototype would still apply.  */
16660 #ifdef __cplusplus
16661 extern "C"
16662 #endif
16663 char $ac_func ();
16664 /* The GNU C library defines this for functions which it implements
16665     to always fail with ENOSYS.  Some functions are actually named
16666     something starting with __ and the normal name is an alias.  */
16667 #if defined __stub_$ac_func || defined __stub___$ac_func
16668 choke me
16669 #endif
16670
16671 int
16672 main ()
16673 {
16674 return $ac_func ();
16675   ;
16676   return 0;
16677 }
16678 _ACEOF
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (ac_try="$ac_link"
16681 case "(($ac_try" in
16682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683   *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686   (eval "$ac_link") 2>conftest.er1
16687   ac_status=$?
16688   grep -v '^ *+' conftest.er1 >conftest.err
16689   rm -f conftest.er1
16690   cat conftest.err >&5
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); } && {
16693          test -z "$ac_c_werror_flag" ||
16694          test ! -s conftest.err
16695        } && test -s conftest$ac_exeext &&
16696        $as_test_x conftest$ac_exeext; then
16697   eval "$as_ac_var=yes"
16698 else
16699   echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702         eval "$as_ac_var=no"
16703 fi
16704
16705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16706       conftest$ac_exeext conftest.$ac_ext
16707 fi
16708 ac_res=`eval echo '${'$as_ac_var'}'`
16709                { echo "$as_me:$LINENO: result: $ac_res" >&5
16710 echo "${ECHO_T}$ac_res" >&6; }
16711 if test `eval echo '${'$as_ac_var'}'` = yes; then
16712   cat >>confdefs.h <<_ACEOF
16713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16714 _ACEOF
16715
16716 else
16717   case " $LIBOBJS " in
16718   *" $ac_func.$ac_objext "* ) ;;
16719   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16720  ;;
16721 esac
16722
16723 fi
16724 done
16725
16726
16727 fi
16728
16729 for ac_func in glob
16730 do
16731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16735   echo $ECHO_N "(cached) $ECHO_C" >&6
16736 else
16737   cat >conftest.$ac_ext <<_ACEOF
16738 /* confdefs.h.  */
16739 _ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h.  */
16743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16745 #define $ac_func innocuous_$ac_func
16746
16747 /* System header to define __stub macros and hopefully few prototypes,
16748     which can conflict with char $ac_func (); below.
16749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16750     <limits.h> exists even on freestanding compilers.  */
16751
16752 #ifdef __STDC__
16753 # include <limits.h>
16754 #else
16755 # include <assert.h>
16756 #endif
16757
16758 #undef $ac_func
16759
16760 /* Override any GCC internal prototype to avoid an error.
16761    Use char because int might match the return type of a GCC
16762    builtin and then its argument prototype would still apply.  */
16763 #ifdef __cplusplus
16764 extern "C"
16765 #endif
16766 char $ac_func ();
16767 /* The GNU C library defines this for functions which it implements
16768     to always fail with ENOSYS.  Some functions are actually named
16769     something starting with __ and the normal name is an alias.  */
16770 #if defined __stub_$ac_func || defined __stub___$ac_func
16771 choke me
16772 #endif
16773
16774 int
16775 main ()
16776 {
16777 return $ac_func ();
16778   ;
16779   return 0;
16780 }
16781 _ACEOF
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (ac_try="$ac_link"
16784 case "(($ac_try" in
16785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786   *) ac_try_echo=$ac_try;;
16787 esac
16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789   (eval "$ac_link") 2>conftest.er1
16790   ac_status=$?
16791   grep -v '^ *+' conftest.er1 >conftest.err
16792   rm -f conftest.er1
16793   cat conftest.err >&5
16794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795   (exit $ac_status); } && {
16796          test -z "$ac_c_werror_flag" ||
16797          test ! -s conftest.err
16798        } && test -s conftest$ac_exeext &&
16799        $as_test_x conftest$ac_exeext; then
16800   eval "$as_ac_var=yes"
16801 else
16802   echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805         eval "$as_ac_var=no"
16806 fi
16807
16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809       conftest$ac_exeext conftest.$ac_ext
16810 fi
16811 ac_res=`eval echo '${'$as_ac_var'}'`
16812                { echo "$as_me:$LINENO: result: $ac_res" >&5
16813 echo "${ECHO_T}$ac_res" >&6; }
16814 if test `eval echo '${'$as_ac_var'}'` = yes; then
16815   cat >>confdefs.h <<_ACEOF
16816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16817 _ACEOF
16818  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16819 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
16820 cat >conftest.$ac_ext <<_ACEOF
16821 /* confdefs.h.  */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h.  */
16826 #include <glob.h>
16827 int
16828 main ()
16829 {
16830 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16831   ;
16832   return 0;
16833 }
16834 _ACEOF
16835 rm -f conftest.$ac_objext
16836 if { (ac_try="$ac_compile"
16837 case "(($ac_try" in
16838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839   *) ac_try_echo=$ac_try;;
16840 esac
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842   (eval "$ac_compile") 2>conftest.er1
16843   ac_status=$?
16844   grep -v '^ *+' conftest.er1 >conftest.err
16845   rm -f conftest.er1
16846   cat conftest.err >&5
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); } && {
16849          test -z "$ac_c_werror_flag" ||
16850          test ! -s conftest.err
16851        } && test -s conftest.$ac_objext; then
16852   cat >>confdefs.h <<\_ACEOF
16853 #define HAVE_EXTENDED_GLOB 1
16854 _ACEOF
16855
16856     { echo "$as_me:$LINENO: result: yes" >&5
16857 echo "${ECHO_T}yes" >&6; }
16858 else
16859   echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16861
16862         case " $LIBOBJS " in
16863   *" glob.$ac_objext "* ) ;;
16864   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16865  ;;
16866 esac
16867
16868     { echo "$as_me:$LINENO: result: no" >&5
16869 echo "${ECHO_T}no" >&6; }
16870 fi
16871
16872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873 else
16874   case " $LIBOBJS " in
16875   *" glob.$ac_objext "* ) ;;
16876   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16877  ;;
16878 esac
16879
16880 fi
16881 done
16882
16883
16884
16885 for ac_func in lockf flock
16886 do
16887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16891   echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893   cat >conftest.$ac_ext <<_ACEOF
16894 /* confdefs.h.  */
16895 _ACEOF
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h.  */
16899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16901 #define $ac_func innocuous_$ac_func
16902
16903 /* System header to define __stub macros and hopefully few prototypes,
16904     which can conflict with char $ac_func (); below.
16905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16906     <limits.h> exists even on freestanding compilers.  */
16907
16908 #ifdef __STDC__
16909 # include <limits.h>
16910 #else
16911 # include <assert.h>
16912 #endif
16913
16914 #undef $ac_func
16915
16916 /* Override any GCC internal prototype to avoid an error.
16917    Use char because int might match the return type of a GCC
16918    builtin and then its argument prototype would still apply.  */
16919 #ifdef __cplusplus
16920 extern "C"
16921 #endif
16922 char $ac_func ();
16923 /* The GNU C library defines this for functions which it implements
16924     to always fail with ENOSYS.  Some functions are actually named
16925     something starting with __ and the normal name is an alias.  */
16926 #if defined __stub_$ac_func || defined __stub___$ac_func
16927 choke me
16928 #endif
16929
16930 int
16931 main ()
16932 {
16933 return $ac_func ();
16934   ;
16935   return 0;
16936 }
16937 _ACEOF
16938 rm -f conftest.$ac_objext conftest$ac_exeext
16939 if { (ac_try="$ac_link"
16940 case "(($ac_try" in
16941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942   *) ac_try_echo=$ac_try;;
16943 esac
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945   (eval "$ac_link") 2>conftest.er1
16946   ac_status=$?
16947   grep -v '^ *+' conftest.er1 >conftest.err
16948   rm -f conftest.er1
16949   cat conftest.err >&5
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); } && {
16952          test -z "$ac_c_werror_flag" ||
16953          test ! -s conftest.err
16954        } && test -s conftest$ac_exeext &&
16955        $as_test_x conftest$ac_exeext; then
16956   eval "$as_ac_var=yes"
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961         eval "$as_ac_var=no"
16962 fi
16963
16964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16965       conftest$ac_exeext conftest.$ac_ext
16966 fi
16967 ac_res=`eval echo '${'$as_ac_var'}'`
16968                { echo "$as_me:$LINENO: result: $ac_res" >&5
16969 echo "${ECHO_T}$ac_res" >&6; }
16970 if test `eval echo '${'$as_ac_var'}'` = yes; then
16971   cat >>confdefs.h <<_ACEOF
16972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16973 _ACEOF
16974  break
16975 fi
16976 done
16977
16978
16979
16980 for ac_func in waitpid wait3
16981 do
16982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16986   echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988   cat >conftest.$ac_ext <<_ACEOF
16989 /* confdefs.h.  */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h.  */
16994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16996 #define $ac_func innocuous_$ac_func
16997
16998 /* System header to define __stub macros and hopefully few prototypes,
16999     which can conflict with char $ac_func (); below.
17000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17001     <limits.h> exists even on freestanding compilers.  */
17002
17003 #ifdef __STDC__
17004 # include <limits.h>
17005 #else
17006 # include <assert.h>
17007 #endif
17008
17009 #undef $ac_func
17010
17011 /* Override any GCC internal prototype to avoid an error.
17012    Use char because int might match the return type of a GCC
17013    builtin and then its argument prototype would still apply.  */
17014 #ifdef __cplusplus
17015 extern "C"
17016 #endif
17017 char $ac_func ();
17018 /* The GNU C library defines this for functions which it implements
17019     to always fail with ENOSYS.  Some functions are actually named
17020     something starting with __ and the normal name is an alias.  */
17021 #if defined __stub_$ac_func || defined __stub___$ac_func
17022 choke me
17023 #endif
17024
17025 int
17026 main ()
17027 {
17028 return $ac_func ();
17029   ;
17030   return 0;
17031 }
17032 _ACEOF
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (ac_try="$ac_link"
17035 case "(($ac_try" in
17036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037   *) ac_try_echo=$ac_try;;
17038 esac
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040   (eval "$ac_link") 2>conftest.er1
17041   ac_status=$?
17042   grep -v '^ *+' conftest.er1 >conftest.err
17043   rm -f conftest.er1
17044   cat conftest.err >&5
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); } && {
17047          test -z "$ac_c_werror_flag" ||
17048          test ! -s conftest.err
17049        } && test -s conftest$ac_exeext &&
17050        $as_test_x conftest$ac_exeext; then
17051   eval "$as_ac_var=yes"
17052 else
17053   echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17055
17056         eval "$as_ac_var=no"
17057 fi
17058
17059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17060       conftest$ac_exeext conftest.$ac_ext
17061 fi
17062 ac_res=`eval echo '${'$as_ac_var'}'`
17063                { echo "$as_me:$LINENO: result: $ac_res" >&5
17064 echo "${ECHO_T}$ac_res" >&6; }
17065 if test `eval echo '${'$as_ac_var'}'` = yes; then
17066   cat >>confdefs.h <<_ACEOF
17067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17068 _ACEOF
17069  break
17070 fi
17071 done
17072
17073
17074
17075 for ac_func in innetgr _innetgr
17076 do
17077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17081   echo $ECHO_N "(cached) $ECHO_C" >&6
17082 else
17083   cat >conftest.$ac_ext <<_ACEOF
17084 /* confdefs.h.  */
17085 _ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h.  */
17089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17091 #define $ac_func innocuous_$ac_func
17092
17093 /* System header to define __stub macros and hopefully few prototypes,
17094     which can conflict with char $ac_func (); below.
17095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17096     <limits.h> exists even on freestanding compilers.  */
17097
17098 #ifdef __STDC__
17099 # include <limits.h>
17100 #else
17101 # include <assert.h>
17102 #endif
17103
17104 #undef $ac_func
17105
17106 /* Override any GCC internal prototype to avoid an error.
17107    Use char because int might match the return type of a GCC
17108    builtin and then its argument prototype would still apply.  */
17109 #ifdef __cplusplus
17110 extern "C"
17111 #endif
17112 char $ac_func ();
17113 /* The GNU C library defines this for functions which it implements
17114     to always fail with ENOSYS.  Some functions are actually named
17115     something starting with __ and the normal name is an alias.  */
17116 #if defined __stub_$ac_func || defined __stub___$ac_func
17117 choke me
17118 #endif
17119
17120 int
17121 main ()
17122 {
17123 return $ac_func ();
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext conftest$ac_exeext
17129 if { (ac_try="$ac_link"
17130 case "(($ac_try" in
17131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132   *) ac_try_echo=$ac_try;;
17133 esac
17134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135   (eval "$ac_link") 2>conftest.er1
17136   ac_status=$?
17137   grep -v '^ *+' conftest.er1 >conftest.err
17138   rm -f conftest.er1
17139   cat conftest.err >&5
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); } && {
17142          test -z "$ac_c_werror_flag" ||
17143          test ! -s conftest.err
17144        } && test -s conftest$ac_exeext &&
17145        $as_test_x conftest$ac_exeext; then
17146   eval "$as_ac_var=yes"
17147 else
17148   echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17150
17151         eval "$as_ac_var=no"
17152 fi
17153
17154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17155       conftest$ac_exeext conftest.$ac_ext
17156 fi
17157 ac_res=`eval echo '${'$as_ac_var'}'`
17158                { echo "$as_me:$LINENO: result: $ac_res" >&5
17159 echo "${ECHO_T}$ac_res" >&6; }
17160 if test `eval echo '${'$as_ac_var'}'` = yes; then
17161   cat >>confdefs.h <<_ACEOF
17162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17163 _ACEOF
17164
17165 for ac_func in getdomainname
17166 do
17167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17171   echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173   cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17181 #define $ac_func innocuous_$ac_func
17182
17183 /* System header to define __stub macros and hopefully few prototypes,
17184     which can conflict with char $ac_func (); below.
17185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17186     <limits.h> exists even on freestanding compilers.  */
17187
17188 #ifdef __STDC__
17189 # include <limits.h>
17190 #else
17191 # include <assert.h>
17192 #endif
17193
17194 #undef $ac_func
17195
17196 /* Override any GCC internal prototype to avoid an error.
17197    Use char because int might match the return type of a GCC
17198    builtin and then its argument prototype would still apply.  */
17199 #ifdef __cplusplus
17200 extern "C"
17201 #endif
17202 char $ac_func ();
17203 /* The GNU C library defines this for functions which it implements
17204     to always fail with ENOSYS.  Some functions are actually named
17205     something starting with __ and the normal name is an alias.  */
17206 #if defined __stub_$ac_func || defined __stub___$ac_func
17207 choke me
17208 #endif
17209
17210 int
17211 main ()
17212 {
17213 return $ac_func ();
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (ac_try="$ac_link"
17220 case "(($ac_try" in
17221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222   *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225   (eval "$ac_link") 2>conftest.er1
17226   ac_status=$?
17227   grep -v '^ *+' conftest.er1 >conftest.err
17228   rm -f conftest.er1
17229   cat conftest.err >&5
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } && {
17232          test -z "$ac_c_werror_flag" ||
17233          test ! -s conftest.err
17234        } && test -s conftest$ac_exeext &&
17235        $as_test_x conftest$ac_exeext; then
17236   eval "$as_ac_var=yes"
17237 else
17238   echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17240
17241         eval "$as_ac_var=no"
17242 fi
17243
17244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17245       conftest$ac_exeext conftest.$ac_ext
17246 fi
17247 ac_res=`eval echo '${'$as_ac_var'}'`
17248                { echo "$as_me:$LINENO: result: $ac_res" >&5
17249 echo "${ECHO_T}$ac_res" >&6; }
17250 if test `eval echo '${'$as_ac_var'}'` = yes; then
17251   cat >>confdefs.h <<_ACEOF
17252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17253 _ACEOF
17254
17255 fi
17256 done
17257  break
17258 fi
17259 done
17260
17261
17262 for ac_func in utimes
17263 do
17264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17268   echo $ECHO_N "(cached) $ECHO_C" >&6
17269 else
17270   cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h.  */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h.  */
17276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17278 #define $ac_func innocuous_$ac_func
17279
17280 /* System header to define __stub macros and hopefully few prototypes,
17281     which can conflict with char $ac_func (); below.
17282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17283     <limits.h> exists even on freestanding compilers.  */
17284
17285 #ifdef __STDC__
17286 # include <limits.h>
17287 #else
17288 # include <assert.h>
17289 #endif
17290
17291 #undef $ac_func
17292
17293 /* Override any GCC internal prototype to avoid an error.
17294    Use char because int might match the return type of a GCC
17295    builtin and then its argument prototype would still apply.  */
17296 #ifdef __cplusplus
17297 extern "C"
17298 #endif
17299 char $ac_func ();
17300 /* The GNU C library defines this for functions which it implements
17301     to always fail with ENOSYS.  Some functions are actually named
17302     something starting with __ and the normal name is an alias.  */
17303 #if defined __stub_$ac_func || defined __stub___$ac_func
17304 choke me
17305 #endif
17306
17307 int
17308 main ()
17309 {
17310 return $ac_func ();
17311   ;
17312   return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (ac_try="$ac_link"
17317 case "(($ac_try" in
17318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319   *) ac_try_echo=$ac_try;;
17320 esac
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322   (eval "$ac_link") 2>conftest.er1
17323   ac_status=$?
17324   grep -v '^ *+' conftest.er1 >conftest.err
17325   rm -f conftest.er1
17326   cat conftest.err >&5
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); } && {
17329          test -z "$ac_c_werror_flag" ||
17330          test ! -s conftest.err
17331        } && test -s conftest$ac_exeext &&
17332        $as_test_x conftest$ac_exeext; then
17333   eval "$as_ac_var=yes"
17334 else
17335   echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338         eval "$as_ac_var=no"
17339 fi
17340
17341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17342       conftest$ac_exeext conftest.$ac_ext
17343 fi
17344 ac_res=`eval echo '${'$as_ac_var'}'`
17345                { echo "$as_me:$LINENO: result: $ac_res" >&5
17346 echo "${ECHO_T}$ac_res" >&6; }
17347 if test `eval echo '${'$as_ac_var'}'` = yes; then
17348   cat >>confdefs.h <<_ACEOF
17349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17350 _ACEOF
17351
17352
17353 for ac_func in futimes futimesat
17354 do
17355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17359   echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361   cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h.  */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h.  */
17367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17369 #define $ac_func innocuous_$ac_func
17370
17371 /* System header to define __stub macros and hopefully few prototypes,
17372     which can conflict with char $ac_func (); below.
17373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17374     <limits.h> exists even on freestanding compilers.  */
17375
17376 #ifdef __STDC__
17377 # include <limits.h>
17378 #else
17379 # include <assert.h>
17380 #endif
17381
17382 #undef $ac_func
17383
17384 /* Override any GCC internal prototype to avoid an error.
17385    Use char because int might match the return type of a GCC
17386    builtin and then its argument prototype would still apply.  */
17387 #ifdef __cplusplus
17388 extern "C"
17389 #endif
17390 char $ac_func ();
17391 /* The GNU C library defines this for functions which it implements
17392     to always fail with ENOSYS.  Some functions are actually named
17393     something starting with __ and the normal name is an alias.  */
17394 #if defined __stub_$ac_func || defined __stub___$ac_func
17395 choke me
17396 #endif
17397
17398 int
17399 main ()
17400 {
17401 return $ac_func ();
17402   ;
17403   return 0;
17404 }
17405 _ACEOF
17406 rm -f conftest.$ac_objext conftest$ac_exeext
17407 if { (ac_try="$ac_link"
17408 case "(($ac_try" in
17409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410   *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413   (eval "$ac_link") 2>conftest.er1
17414   ac_status=$?
17415   grep -v '^ *+' conftest.er1 >conftest.err
17416   rm -f conftest.er1
17417   cat conftest.err >&5
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } && {
17420          test -z "$ac_c_werror_flag" ||
17421          test ! -s conftest.err
17422        } && test -s conftest$ac_exeext &&
17423        $as_test_x conftest$ac_exeext; then
17424   eval "$as_ac_var=yes"
17425 else
17426   echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17428
17429         eval "$as_ac_var=no"
17430 fi
17431
17432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17433       conftest$ac_exeext conftest.$ac_ext
17434 fi
17435 ac_res=`eval echo '${'$as_ac_var'}'`
17436                { echo "$as_me:$LINENO: result: $ac_res" >&5
17437 echo "${ECHO_T}$ac_res" >&6; }
17438 if test `eval echo '${'$as_ac_var'}'` = yes; then
17439   cat >>confdefs.h <<_ACEOF
17440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17441 _ACEOF
17442  break
17443 fi
17444 done
17445
17446 else
17447
17448 for ac_func in futime
17449 do
17450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17451 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17454   echo $ECHO_N "(cached) $ECHO_C" >&6
17455 else
17456   cat >conftest.$ac_ext <<_ACEOF
17457 /* confdefs.h.  */
17458 _ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h.  */
17462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17464 #define $ac_func innocuous_$ac_func
17465
17466 /* System header to define __stub macros and hopefully few prototypes,
17467     which can conflict with char $ac_func (); below.
17468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17469     <limits.h> exists even on freestanding compilers.  */
17470
17471 #ifdef __STDC__
17472 # include <limits.h>
17473 #else
17474 # include <assert.h>
17475 #endif
17476
17477 #undef $ac_func
17478
17479 /* Override any GCC internal prototype to avoid an error.
17480    Use char because int might match the return type of a GCC
17481    builtin and then its argument prototype would still apply.  */
17482 #ifdef __cplusplus
17483 extern "C"
17484 #endif
17485 char $ac_func ();
17486 /* The GNU C library defines this for functions which it implements
17487     to always fail with ENOSYS.  Some functions are actually named
17488     something starting with __ and the normal name is an alias.  */
17489 #if defined __stub_$ac_func || defined __stub___$ac_func
17490 choke me
17491 #endif
17492
17493 int
17494 main ()
17495 {
17496 return $ac_func ();
17497   ;
17498   return 0;
17499 }
17500 _ACEOF
17501 rm -f conftest.$ac_objext conftest$ac_exeext
17502 if { (ac_try="$ac_link"
17503 case "(($ac_try" in
17504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505   *) ac_try_echo=$ac_try;;
17506 esac
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508   (eval "$ac_link") 2>conftest.er1
17509   ac_status=$?
17510   grep -v '^ *+' conftest.er1 >conftest.err
17511   rm -f conftest.er1
17512   cat conftest.err >&5
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); } && {
17515          test -z "$ac_c_werror_flag" ||
17516          test ! -s conftest.err
17517        } && test -s conftest$ac_exeext &&
17518        $as_test_x conftest$ac_exeext; then
17519   eval "$as_ac_var=yes"
17520 else
17521   echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524         eval "$as_ac_var=no"
17525 fi
17526
17527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17528       conftest$ac_exeext conftest.$ac_ext
17529 fi
17530 ac_res=`eval echo '${'$as_ac_var'}'`
17531                { echo "$as_me:$LINENO: result: $ac_res" >&5
17532 echo "${ECHO_T}$ac_res" >&6; }
17533 if test `eval echo '${'$as_ac_var'}'` = yes; then
17534   cat >>confdefs.h <<_ACEOF
17535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17536 _ACEOF
17537
17538 fi
17539 done
17540  case " $LIBOBJS " in
17541   *" utimes.$ac_objext "* ) ;;
17542   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17543  ;;
17544 esac
17545
17546 fi
17547 done
17548
17549 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17550 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17551 if test "${sudo_cv_func_fnmatch+set}" = set; then
17552   echo $ECHO_N "(cached) $ECHO_C" >&6
17553 else
17554   rm -f conftestdata; > conftestdata
17555 if test "$cross_compiling" = yes; then
17556   sudo_cv_func_fnmatch=no
17557 else
17558   cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h.  */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h.  */
17564 #include <fnmatch.h>
17565 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17566 _ACEOF
17567 rm -f conftest$ac_exeext
17568 if { (ac_try="$ac_link"
17569 case "(($ac_try" in
17570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571   *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574   (eval "$ac_link") 2>&5
17575   ac_status=$?
17576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17578   { (case "(($ac_try" in
17579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580   *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583   (eval "$ac_try") 2>&5
17584   ac_status=$?
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); }; }; then
17587   sudo_cv_func_fnmatch=yes
17588 else
17589   echo "$as_me: program exited with status $ac_status" >&5
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17592
17593 ( exit $ac_status )
17594 sudo_cv_func_fnmatch=no
17595 fi
17596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17597 fi
17598
17599
17600 rm -f core core.* *.core
17601 fi
17602
17603 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17604 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17605 if test $sudo_cv_func_fnmatch = yes; then
17606   cat >>confdefs.h <<\_ACEOF
17607 #define HAVE_FNMATCH 1
17608 _ACEOF
17609
17610 else
17611   case " $LIBOBJS " in
17612   *" fnmatch.$ac_objext "* ) ;;
17613   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17614  ;;
17615 esac
17616
17617 fi
17618
17619 { echo "$as_me:$LINENO: checking for isblank" >&5
17620 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17621 if test "${sudo_cv_func_isblank+set}" = set; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624   cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h.  */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h.  */
17630 #include <ctype.h>
17631 int
17632 main ()
17633 {
17634 return (isblank('a'));
17635   ;
17636   return 0;
17637 }
17638 _ACEOF
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (ac_try="$ac_link"
17641 case "(($ac_try" in
17642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643   *) ac_try_echo=$ac_try;;
17644 esac
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646   (eval "$ac_link") 2>conftest.er1
17647   ac_status=$?
17648   grep -v '^ *+' conftest.er1 >conftest.err
17649   rm -f conftest.er1
17650   cat conftest.err >&5
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } && {
17653          test -z "$ac_c_werror_flag" ||
17654          test ! -s conftest.err
17655        } && test -s conftest$ac_exeext &&
17656        $as_test_x conftest$ac_exeext; then
17657   sudo_cv_func_isblank=yes
17658 else
17659   echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662         sudo_cv_func_isblank=no
17663 fi
17664
17665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17666       conftest$ac_exeext conftest.$ac_ext
17667 fi
17668 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17669 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17670
17671   if test "$sudo_cv_func_isblank" = "yes"; then
17672
17673 cat >>confdefs.h <<\_ACEOF
17674 #define HAVE_ISBLANK 1
17675 _ACEOF
17676
17677   else
17678     case " $LIBOBJS " in
17679   *" isblank.$ac_objext "* ) ;;
17680   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17681  ;;
17682 esac
17683
17684   fi
17685
17686
17687
17688
17689
17690
17691
17692 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17693 do
17694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17698   echo $ECHO_N "(cached) $ECHO_C" >&6
17699 else
17700   cat >conftest.$ac_ext <<_ACEOF
17701 /* confdefs.h.  */
17702 _ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h.  */
17706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17708 #define $ac_func innocuous_$ac_func
17709
17710 /* System header to define __stub macros and hopefully few prototypes,
17711     which can conflict with char $ac_func (); below.
17712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17713     <limits.h> exists even on freestanding compilers.  */
17714
17715 #ifdef __STDC__
17716 # include <limits.h>
17717 #else
17718 # include <assert.h>
17719 #endif
17720
17721 #undef $ac_func
17722
17723 /* Override any GCC internal prototype to avoid an error.
17724    Use char because int might match the return type of a GCC
17725    builtin and then its argument prototype would still apply.  */
17726 #ifdef __cplusplus
17727 extern "C"
17728 #endif
17729 char $ac_func ();
17730 /* The GNU C library defines this for functions which it implements
17731     to always fail with ENOSYS.  Some functions are actually named
17732     something starting with __ and the normal name is an alias.  */
17733 #if defined __stub_$ac_func || defined __stub___$ac_func
17734 choke me
17735 #endif
17736
17737 int
17738 main ()
17739 {
17740 return $ac_func ();
17741   ;
17742   return 0;
17743 }
17744 _ACEOF
17745 rm -f conftest.$ac_objext conftest$ac_exeext
17746 if { (ac_try="$ac_link"
17747 case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752   (eval "$ac_link") 2>conftest.er1
17753   ac_status=$?
17754   grep -v '^ *+' conftest.er1 >conftest.err
17755   rm -f conftest.er1
17756   cat conftest.err >&5
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); } && {
17759          test -z "$ac_c_werror_flag" ||
17760          test ! -s conftest.err
17761        } && test -s conftest$ac_exeext &&
17762        $as_test_x conftest$ac_exeext; then
17763   eval "$as_ac_var=yes"
17764 else
17765   echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17767
17768         eval "$as_ac_var=no"
17769 fi
17770
17771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17772       conftest$ac_exeext conftest.$ac_ext
17773 fi
17774 ac_res=`eval echo '${'$as_ac_var'}'`
17775                { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17777 if test `eval echo '${'$as_ac_var'}'` = yes; then
17778   cat >>confdefs.h <<_ACEOF
17779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17780 _ACEOF
17781
17782 else
17783   case " $LIBOBJS " in
17784   *" $ac_func.$ac_objext "* ) ;;
17785   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17786  ;;
17787 esac
17788
17789 fi
17790 done
17791
17792
17793
17794 for ac_func in closefrom
17795 do
17796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17800   echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802   cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h.  */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h.  */
17808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17810 #define $ac_func innocuous_$ac_func
17811
17812 /* System header to define __stub macros and hopefully few prototypes,
17813     which can conflict with char $ac_func (); below.
17814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17815     <limits.h> exists even on freestanding compilers.  */
17816
17817 #ifdef __STDC__
17818 # include <limits.h>
17819 #else
17820 # include <assert.h>
17821 #endif
17822
17823 #undef $ac_func
17824
17825 /* Override any GCC internal prototype to avoid an error.
17826    Use char because int might match the return type of a GCC
17827    builtin and then its argument prototype would still apply.  */
17828 #ifdef __cplusplus
17829 extern "C"
17830 #endif
17831 char $ac_func ();
17832 /* The GNU C library defines this for functions which it implements
17833     to always fail with ENOSYS.  Some functions are actually named
17834     something starting with __ and the normal name is an alias.  */
17835 #if defined __stub_$ac_func || defined __stub___$ac_func
17836 choke me
17837 #endif
17838
17839 int
17840 main ()
17841 {
17842 return $ac_func ();
17843   ;
17844   return 0;
17845 }
17846 _ACEOF
17847 rm -f conftest.$ac_objext conftest$ac_exeext
17848 if { (ac_try="$ac_link"
17849 case "(($ac_try" in
17850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851   *) ac_try_echo=$ac_try;;
17852 esac
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854   (eval "$ac_link") 2>conftest.er1
17855   ac_status=$?
17856   grep -v '^ *+' conftest.er1 >conftest.err
17857   rm -f conftest.er1
17858   cat conftest.err >&5
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); } && {
17861          test -z "$ac_c_werror_flag" ||
17862          test ! -s conftest.err
17863        } && test -s conftest$ac_exeext &&
17864        $as_test_x conftest$ac_exeext; then
17865   eval "$as_ac_var=yes"
17866 else
17867   echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17869
17870         eval "$as_ac_var=no"
17871 fi
17872
17873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17874       conftest$ac_exeext conftest.$ac_ext
17875 fi
17876 ac_res=`eval echo '${'$as_ac_var'}'`
17877                { echo "$as_me:$LINENO: result: $ac_res" >&5
17878 echo "${ECHO_T}$ac_res" >&6; }
17879 if test `eval echo '${'$as_ac_var'}'` = yes; then
17880   cat >>confdefs.h <<_ACEOF
17881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17882 _ACEOF
17883
17884 else
17885   case " $LIBOBJS " in
17886   *" closefrom.$ac_objext "* ) ;;
17887   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17888  ;;
17889 esac
17890
17891     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17892 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17893 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17894   echo $ECHO_N "(cached) $ECHO_C" >&6
17895 else
17896   cat >conftest.$ac_ext <<_ACEOF
17897 /* confdefs.h.  */
17898 _ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h.  */
17902  #include <limits.h>
17903           #include <fcntl.h>
17904
17905 int
17906 main ()
17907 {
17908 #ifndef F_CLOSEM
17909   (void) F_CLOSEM;
17910 #endif
17911
17912   ;
17913   return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest.$ac_objext
17917 if { (ac_try="$ac_compile"
17918 case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_compile") 2>conftest.er1
17924   ac_status=$?
17925   grep -v '^ *+' conftest.er1 >conftest.err
17926   rm -f conftest.er1
17927   cat conftest.err >&5
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); } && {
17930          test -z "$ac_c_werror_flag" ||
17931          test ! -s conftest.err
17932        } && test -s conftest.$ac_objext; then
17933   ac_cv_have_decl_F_CLOSEM=yes
17934 else
17935   echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17937
17938         ac_cv_have_decl_F_CLOSEM=no
17939 fi
17940
17941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17942 fi
17943 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17944 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17945 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17946   cat >>confdefs.h <<\_ACEOF
17947 #define HAVE_FCNTL_CLOSEM 1
17948 _ACEOF
17949
17950 fi
17951
17952
17953 fi
17954 done
17955
17956
17957 for ac_func in mkstemp
17958 do
17959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17963   echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965   cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17973 #define $ac_func innocuous_$ac_func
17974
17975 /* System header to define __stub macros and hopefully few prototypes,
17976     which can conflict with char $ac_func (); below.
17977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17978     <limits.h> exists even on freestanding compilers.  */
17979
17980 #ifdef __STDC__
17981 # include <limits.h>
17982 #else
17983 # include <assert.h>
17984 #endif
17985
17986 #undef $ac_func
17987
17988 /* Override any GCC internal prototype to avoid an error.
17989    Use char because int might match the return type of a GCC
17990    builtin and then its argument prototype would still apply.  */
17991 #ifdef __cplusplus
17992 extern "C"
17993 #endif
17994 char $ac_func ();
17995 /* The GNU C library defines this for functions which it implements
17996     to always fail with ENOSYS.  Some functions are actually named
17997     something starting with __ and the normal name is an alias.  */
17998 #if defined __stub_$ac_func || defined __stub___$ac_func
17999 choke me
18000 #endif
18001
18002 int
18003 main ()
18004 {
18005 return $ac_func ();
18006   ;
18007   return 0;
18008 }
18009 _ACEOF
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (ac_try="$ac_link"
18012 case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017   (eval "$ac_link") 2>conftest.er1
18018   ac_status=$?
18019   grep -v '^ *+' conftest.er1 >conftest.err
18020   rm -f conftest.er1
18021   cat conftest.err >&5
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); } && {
18024          test -z "$ac_c_werror_flag" ||
18025          test ! -s conftest.err
18026        } && test -s conftest$ac_exeext &&
18027        $as_test_x conftest$ac_exeext; then
18028   eval "$as_ac_var=yes"
18029 else
18030   echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18032
18033         eval "$as_ac_var=no"
18034 fi
18035
18036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18037       conftest$ac_exeext conftest.$ac_ext
18038 fi
18039 ac_res=`eval echo '${'$as_ac_var'}'`
18040                { echo "$as_me:$LINENO: result: $ac_res" >&5
18041 echo "${ECHO_T}$ac_res" >&6; }
18042 if test `eval echo '${'$as_ac_var'}'` = yes; then
18043   cat >>confdefs.h <<_ACEOF
18044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18045 _ACEOF
18046
18047 else
18048   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
18049
18050
18051 for ac_func in random lrand48
18052 do
18053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18057   echo $ECHO_N "(cached) $ECHO_C" >&6
18058 else
18059   cat >conftest.$ac_ext <<_ACEOF
18060 /* confdefs.h.  */
18061 _ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h.  */
18065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18067 #define $ac_func innocuous_$ac_func
18068
18069 /* System header to define __stub macros and hopefully few prototypes,
18070     which can conflict with char $ac_func (); below.
18071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18072     <limits.h> exists even on freestanding compilers.  */
18073
18074 #ifdef __STDC__
18075 # include <limits.h>
18076 #else
18077 # include <assert.h>
18078 #endif
18079
18080 #undef $ac_func
18081
18082 /* Override any GCC internal prototype to avoid an error.
18083    Use char because int might match the return type of a GCC
18084    builtin and then its argument prototype would still apply.  */
18085 #ifdef __cplusplus
18086 extern "C"
18087 #endif
18088 char $ac_func ();
18089 /* The GNU C library defines this for functions which it implements
18090     to always fail with ENOSYS.  Some functions are actually named
18091     something starting with __ and the normal name is an alias.  */
18092 #if defined __stub_$ac_func || defined __stub___$ac_func
18093 choke me
18094 #endif
18095
18096 int
18097 main ()
18098 {
18099 return $ac_func ();
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (ac_try="$ac_link"
18106 case "(($ac_try" in
18107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108   *) ac_try_echo=$ac_try;;
18109 esac
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111   (eval "$ac_link") 2>conftest.er1
18112   ac_status=$?
18113   grep -v '^ *+' conftest.er1 >conftest.err
18114   rm -f conftest.er1
18115   cat conftest.err >&5
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); } && {
18118          test -z "$ac_c_werror_flag" ||
18119          test ! -s conftest.err
18120        } && test -s conftest$ac_exeext &&
18121        $as_test_x conftest$ac_exeext; then
18122   eval "$as_ac_var=yes"
18123 else
18124   echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127         eval "$as_ac_var=no"
18128 fi
18129
18130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18131       conftest$ac_exeext conftest.$ac_ext
18132 fi
18133 ac_res=`eval echo '${'$as_ac_var'}'`
18134                { echo "$as_me:$LINENO: result: $ac_res" >&5
18135 echo "${ECHO_T}$ac_res" >&6; }
18136 if test `eval echo '${'$as_ac_var'}'` = yes; then
18137   cat >>confdefs.h <<_ACEOF
18138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18139 _ACEOF
18140  break
18141 fi
18142 done
18143
18144
18145 fi
18146 done
18147
18148
18149
18150
18151
18152 for ac_func in snprintf vsnprintf asprintf vasprintf
18153 do
18154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18158   echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160   cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h.  */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h.  */
18166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18168 #define $ac_func innocuous_$ac_func
18169
18170 /* System header to define __stub macros and hopefully few prototypes,
18171     which can conflict with char $ac_func (); below.
18172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18173     <limits.h> exists even on freestanding compilers.  */
18174
18175 #ifdef __STDC__
18176 # include <limits.h>
18177 #else
18178 # include <assert.h>
18179 #endif
18180
18181 #undef $ac_func
18182
18183 /* Override any GCC internal prototype to avoid an error.
18184    Use char because int might match the return type of a GCC
18185    builtin and then its argument prototype would still apply.  */
18186 #ifdef __cplusplus
18187 extern "C"
18188 #endif
18189 char $ac_func ();
18190 /* The GNU C library defines this for functions which it implements
18191     to always fail with ENOSYS.  Some functions are actually named
18192     something starting with __ and the normal name is an alias.  */
18193 #if defined __stub_$ac_func || defined __stub___$ac_func
18194 choke me
18195 #endif
18196
18197 int
18198 main ()
18199 {
18200 return $ac_func ();
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209   *) ac_try_echo=$ac_try;;
18210 esac
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212   (eval "$ac_link") 2>conftest.er1
18213   ac_status=$?
18214   grep -v '^ *+' conftest.er1 >conftest.err
18215   rm -f conftest.er1
18216   cat conftest.err >&5
18217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218   (exit $ac_status); } && {
18219          test -z "$ac_c_werror_flag" ||
18220          test ! -s conftest.err
18221        } && test -s conftest$ac_exeext &&
18222        $as_test_x conftest$ac_exeext; then
18223   eval "$as_ac_var=yes"
18224 else
18225   echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228         eval "$as_ac_var=no"
18229 fi
18230
18231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18232       conftest$ac_exeext conftest.$ac_ext
18233 fi
18234 ac_res=`eval echo '${'$as_ac_var'}'`
18235                { echo "$as_me:$LINENO: result: $ac_res" >&5
18236 echo "${ECHO_T}$ac_res" >&6; }
18237 if test `eval echo '${'$as_ac_var'}'` = yes; then
18238   cat >>confdefs.h <<_ACEOF
18239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18240 _ACEOF
18241
18242 else
18243   NEED_SNPRINTF=1
18244 fi
18245 done
18246
18247 if test X"$ac_cv_type_struct_timespec" != X"no"; then
18248     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
18249 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
18250 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
18251   echo $ECHO_N "(cached) $ECHO_C" >&6
18252 else
18253   cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h.  */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h.  */
18259 $ac_includes_default
18260 int
18261 main ()
18262 {
18263 static struct stat ac_aggr;
18264 if (ac_aggr.st_mtim)
18265 return 0;
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext
18271 if { (ac_try="$ac_compile"
18272 case "(($ac_try" in
18273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274   *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277   (eval "$ac_compile") 2>conftest.er1
18278   ac_status=$?
18279   grep -v '^ *+' conftest.er1 >conftest.err
18280   rm -f conftest.er1
18281   cat conftest.err >&5
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); } && {
18284          test -z "$ac_c_werror_flag" ||
18285          test ! -s conftest.err
18286        } && test -s conftest.$ac_objext; then
18287   ac_cv_member_struct_stat_st_mtim=yes
18288 else
18289   echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18291
18292         cat >conftest.$ac_ext <<_ACEOF
18293 /* confdefs.h.  */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h.  */
18298 $ac_includes_default
18299 int
18300 main ()
18301 {
18302 static struct stat ac_aggr;
18303 if (sizeof ac_aggr.st_mtim)
18304 return 0;
18305   ;
18306   return 0;
18307 }
18308 _ACEOF
18309 rm -f conftest.$ac_objext
18310 if { (ac_try="$ac_compile"
18311 case "(($ac_try" in
18312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313   *) ac_try_echo=$ac_try;;
18314 esac
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316   (eval "$ac_compile") 2>conftest.er1
18317   ac_status=$?
18318   grep -v '^ *+' conftest.er1 >conftest.err
18319   rm -f conftest.er1
18320   cat conftest.err >&5
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); } && {
18323          test -z "$ac_c_werror_flag" ||
18324          test ! -s conftest.err
18325        } && test -s conftest.$ac_objext; then
18326   ac_cv_member_struct_stat_st_mtim=yes
18327 else
18328   echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18330
18331         ac_cv_member_struct_stat_st_mtim=no
18332 fi
18333
18334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18335 fi
18336
18337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338 fi
18339 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
18340 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
18341 if test $ac_cv_member_struct_stat_st_mtim = yes; then
18342   cat >>confdefs.h <<\_ACEOF
18343 #define HAVE_ST_MTIM 1
18344 _ACEOF
18345
18346         { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
18347 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
18348 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
18349   echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18351   cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h.  */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h.  */
18357 $ac_includes_default
18358 int
18359 main ()
18360 {
18361 static struct stat ac_aggr;
18362 if (ac_aggr.st_mtim.st__tim)
18363 return 0;
18364   ;
18365   return 0;
18366 }
18367 _ACEOF
18368 rm -f conftest.$ac_objext
18369 if { (ac_try="$ac_compile"
18370 case "(($ac_try" in
18371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372   *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375   (eval "$ac_compile") 2>conftest.er1
18376   ac_status=$?
18377   grep -v '^ *+' conftest.er1 >conftest.err
18378   rm -f conftest.er1
18379   cat conftest.err >&5
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); } && {
18382          test -z "$ac_c_werror_flag" ||
18383          test ! -s conftest.err
18384        } && test -s conftest.$ac_objext; then
18385   ac_cv_member_struct_stat_st_mtim_st__tim=yes
18386 else
18387   echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18389
18390         cat >conftest.$ac_ext <<_ACEOF
18391 /* confdefs.h.  */
18392 _ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h.  */
18396 $ac_includes_default
18397 int
18398 main ()
18399 {
18400 static struct stat ac_aggr;
18401 if (sizeof ac_aggr.st_mtim.st__tim)
18402 return 0;
18403   ;
18404   return 0;
18405 }
18406 _ACEOF
18407 rm -f conftest.$ac_objext
18408 if { (ac_try="$ac_compile"
18409 case "(($ac_try" in
18410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411   *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414   (eval "$ac_compile") 2>conftest.er1
18415   ac_status=$?
18416   grep -v '^ *+' conftest.er1 >conftest.err
18417   rm -f conftest.er1
18418   cat conftest.err >&5
18419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); } && {
18421          test -z "$ac_c_werror_flag" ||
18422          test ! -s conftest.err
18423        } && test -s conftest.$ac_objext; then
18424   ac_cv_member_struct_stat_st_mtim_st__tim=yes
18425 else
18426   echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429         ac_cv_member_struct_stat_st_mtim_st__tim=no
18430 fi
18431
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18433 fi
18434
18435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18436 fi
18437 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18438 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18439 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18440   cat >>confdefs.h <<\_ACEOF
18441 #define HAVE_ST__TIM 1
18442 _ACEOF
18443
18444 fi
18445
18446 else
18447   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18448 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18449 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
18450   echo $ECHO_N "(cached) $ECHO_C" >&6
18451 else
18452   cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h.  */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h.  */
18458 $ac_includes_default
18459 int
18460 main ()
18461 {
18462 static struct stat ac_aggr;
18463 if (ac_aggr.st_mtimespec)
18464 return 0;
18465   ;
18466   return 0;
18467 }
18468 _ACEOF
18469 rm -f conftest.$ac_objext
18470 if { (ac_try="$ac_compile"
18471 case "(($ac_try" in
18472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473   *) ac_try_echo=$ac_try;;
18474 esac
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476   (eval "$ac_compile") 2>conftest.er1
18477   ac_status=$?
18478   grep -v '^ *+' conftest.er1 >conftest.err
18479   rm -f conftest.er1
18480   cat conftest.err >&5
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); } && {
18483          test -z "$ac_c_werror_flag" ||
18484          test ! -s conftest.err
18485        } && test -s conftest.$ac_objext; then
18486   ac_cv_member_struct_stat_st_mtimespec=yes
18487 else
18488   echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18490
18491         cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h.  */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h.  */
18497 $ac_includes_default
18498 int
18499 main ()
18500 {
18501 static struct stat ac_aggr;
18502 if (sizeof ac_aggr.st_mtimespec)
18503 return 0;
18504   ;
18505   return 0;
18506 }
18507 _ACEOF
18508 rm -f conftest.$ac_objext
18509 if { (ac_try="$ac_compile"
18510 case "(($ac_try" in
18511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512   *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515   (eval "$ac_compile") 2>conftest.er1
18516   ac_status=$?
18517   grep -v '^ *+' conftest.er1 >conftest.err
18518   rm -f conftest.er1
18519   cat conftest.err >&5
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); } && {
18522          test -z "$ac_c_werror_flag" ||
18523          test ! -s conftest.err
18524        } && test -s conftest.$ac_objext; then
18525   ac_cv_member_struct_stat_st_mtimespec=yes
18526 else
18527   echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18529
18530         ac_cv_member_struct_stat_st_mtimespec=no
18531 fi
18532
18533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18534 fi
18535
18536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18537 fi
18538 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18539 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18540 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18541   cat >>confdefs.h <<\_ACEOF
18542 #define HAVE_ST_MTIMESPEC 1
18543 _ACEOF
18544
18545 fi
18546
18547 fi
18548
18549     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18550 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18551     cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h.  */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h.  */
18557 #include <sys/types.h>
18558 #include <sys/time.h>
18559 int
18560 main ()
18561 {
18562 struct timespec ts1, ts2;
18563 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18564 #ifndef timespecsub
18565 #error missing timespecsub
18566 #endif
18567 timespecsub(&ts1, &ts2);
18568   ;
18569   return 0;
18570 }
18571 _ACEOF
18572 rm -f conftest.$ac_objext
18573 if { (ac_try="$ac_compile"
18574 case "(($ac_try" in
18575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576   *) ac_try_echo=$ac_try;;
18577 esac
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579   (eval "$ac_compile") 2>conftest.er1
18580   ac_status=$?
18581   grep -v '^ *+' conftest.er1 >conftest.err
18582   rm -f conftest.er1
18583   cat conftest.err >&5
18584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); } && {
18586          test -z "$ac_c_werror_flag" ||
18587          test ! -s conftest.err
18588        } && test -s conftest.$ac_objext; then
18589   cat >>confdefs.h <<\_ACEOF
18590 #define HAVE_TIMESPECSUB2 1
18591 _ACEOF
18592
18593     { echo "$as_me:$LINENO: result: yes" >&5
18594 echo "${ECHO_T}yes" >&6; }
18595 else
18596   echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18598
18599         { echo "$as_me:$LINENO: result: no" >&5
18600 echo "${ECHO_T}no" >&6; }
18601 fi
18602
18603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18604 fi
18605 cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h.  */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h.  */
18611 #include <sys/types.h>
18612 #include <$ac_header_dirent>
18613 int
18614 main ()
18615 {
18616 DIR *d; (void)dirfd(d);
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   cat >>confdefs.h <<\_ACEOF
18640 #define HAVE_DIRFD 1
18641 _ACEOF
18642
18643 else
18644   echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18646
18647         cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h.  */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h.  */
18653 #include <sys/types.h>
18654 #include <$ac_header_dirent>
18655 int
18656 main ()
18657 {
18658 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18659   ;
18660   return 0;
18661 }
18662 _ACEOF
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
18665 case "(($ac_try" in
18666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667   *) ac_try_echo=$ac_try;;
18668 esac
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670   (eval "$ac_link") 2>conftest.er1
18671   ac_status=$?
18672   grep -v '^ *+' conftest.er1 >conftest.err
18673   rm -f conftest.er1
18674   cat conftest.err >&5
18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676   (exit $ac_status); } && {
18677          test -z "$ac_c_werror_flag" ||
18678          test ! -s conftest.err
18679        } && test -s conftest$ac_exeext &&
18680        $as_test_x conftest$ac_exeext; then
18681   cat >>confdefs.h <<\_ACEOF
18682 #define HAVE_DD_FD 1
18683 _ACEOF
18684
18685 else
18686   echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689
18690 fi
18691
18692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18693       conftest$ac_exeext conftest.$ac_ext
18694 fi
18695
18696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18697       conftest$ac_exeext conftest.$ac_ext
18698 if test -n "$NEED_SNPRINTF"; then
18699     case " $LIBOBJS " in
18700   *" snprintf.$ac_objext "* ) ;;
18701   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18702  ;;
18703 esac
18704
18705 fi
18706 { echo "$as_me:$LINENO: checking for socket" >&5
18707 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18708 if test "${ac_cv_func_socket+set}" = set; then
18709   echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711   cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18719 #define socket innocuous_socket
18720
18721 /* System header to define __stub macros and hopefully few prototypes,
18722     which can conflict with char socket (); below.
18723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18724     <limits.h> exists even on freestanding compilers.  */
18725
18726 #ifdef __STDC__
18727 # include <limits.h>
18728 #else
18729 # include <assert.h>
18730 #endif
18731
18732 #undef socket
18733
18734 /* Override any GCC internal prototype to avoid an error.
18735    Use char because int might match the return type of a GCC
18736    builtin and then its argument prototype would still apply.  */
18737 #ifdef __cplusplus
18738 extern "C"
18739 #endif
18740 char socket ();
18741 /* The GNU C library defines this for functions which it implements
18742     to always fail with ENOSYS.  Some functions are actually named
18743     something starting with __ and the normal name is an alias.  */
18744 #if defined __stub_socket || defined __stub___socket
18745 choke me
18746 #endif
18747
18748 int
18749 main ()
18750 {
18751 return socket ();
18752   ;
18753   return 0;
18754 }
18755 _ACEOF
18756 rm -f conftest.$ac_objext conftest$ac_exeext
18757 if { (ac_try="$ac_link"
18758 case "(($ac_try" in
18759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760   *) ac_try_echo=$ac_try;;
18761 esac
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763   (eval "$ac_link") 2>conftest.er1
18764   ac_status=$?
18765   grep -v '^ *+' conftest.er1 >conftest.err
18766   rm -f conftest.er1
18767   cat conftest.err >&5
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); } && {
18770          test -z "$ac_c_werror_flag" ||
18771          test ! -s conftest.err
18772        } && test -s conftest$ac_exeext &&
18773        $as_test_x conftest$ac_exeext; then
18774   ac_cv_func_socket=yes
18775 else
18776   echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18778
18779         ac_cv_func_socket=no
18780 fi
18781
18782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18783       conftest$ac_exeext conftest.$ac_ext
18784 fi
18785 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18786 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18787 if test $ac_cv_func_socket = yes; then
18788   :
18789 else
18790   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18791 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18792 if test "${ac_cv_lib_socket_socket+set}" = set; then
18793   echo $ECHO_N "(cached) $ECHO_C" >&6
18794 else
18795   ac_check_lib_save_LIBS=$LIBS
18796 LIBS="-lsocket  $LIBS"
18797 cat >conftest.$ac_ext <<_ACEOF
18798 /* confdefs.h.  */
18799 _ACEOF
18800 cat confdefs.h >>conftest.$ac_ext
18801 cat >>conftest.$ac_ext <<_ACEOF
18802 /* end confdefs.h.  */
18803
18804 /* Override any GCC internal prototype to avoid an error.
18805    Use char because int might match the return type of a GCC
18806    builtin and then its argument prototype would still apply.  */
18807 #ifdef __cplusplus
18808 extern "C"
18809 #endif
18810 char socket ();
18811 int
18812 main ()
18813 {
18814 return socket ();
18815   ;
18816   return 0;
18817 }
18818 _ACEOF
18819 rm -f conftest.$ac_objext conftest$ac_exeext
18820 if { (ac_try="$ac_link"
18821 case "(($ac_try" in
18822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823   *) ac_try_echo=$ac_try;;
18824 esac
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826   (eval "$ac_link") 2>conftest.er1
18827   ac_status=$?
18828   grep -v '^ *+' conftest.er1 >conftest.err
18829   rm -f conftest.er1
18830   cat conftest.err >&5
18831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832   (exit $ac_status); } && {
18833          test -z "$ac_c_werror_flag" ||
18834          test ! -s conftest.err
18835        } && test -s conftest$ac_exeext &&
18836        $as_test_x conftest$ac_exeext; then
18837   ac_cv_lib_socket_socket=yes
18838 else
18839   echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842         ac_cv_lib_socket_socket=no
18843 fi
18844
18845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18846       conftest$ac_exeext conftest.$ac_ext
18847 LIBS=$ac_check_lib_save_LIBS
18848 fi
18849 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18850 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18851 if test $ac_cv_lib_socket_socket = yes; then
18852   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18853 else
18854   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18855 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18856 if test "${ac_cv_lib_inet_socket+set}" = set; then
18857   echo $ECHO_N "(cached) $ECHO_C" >&6
18858 else
18859   ac_check_lib_save_LIBS=$LIBS
18860 LIBS="-linet  $LIBS"
18861 cat >conftest.$ac_ext <<_ACEOF
18862 /* confdefs.h.  */
18863 _ACEOF
18864 cat confdefs.h >>conftest.$ac_ext
18865 cat >>conftest.$ac_ext <<_ACEOF
18866 /* end confdefs.h.  */
18867
18868 /* Override any GCC internal prototype to avoid an error.
18869    Use char because int might match the return type of a GCC
18870    builtin and then its argument prototype would still apply.  */
18871 #ifdef __cplusplus
18872 extern "C"
18873 #endif
18874 char socket ();
18875 int
18876 main ()
18877 {
18878 return socket ();
18879   ;
18880   return 0;
18881 }
18882 _ACEOF
18883 rm -f conftest.$ac_objext conftest$ac_exeext
18884 if { (ac_try="$ac_link"
18885 case "(($ac_try" in
18886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887   *) ac_try_echo=$ac_try;;
18888 esac
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890   (eval "$ac_link") 2>conftest.er1
18891   ac_status=$?
18892   grep -v '^ *+' conftest.er1 >conftest.err
18893   rm -f conftest.er1
18894   cat conftest.err >&5
18895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896   (exit $ac_status); } && {
18897          test -z "$ac_c_werror_flag" ||
18898          test ! -s conftest.err
18899        } && test -s conftest$ac_exeext &&
18900        $as_test_x conftest$ac_exeext; then
18901   ac_cv_lib_inet_socket=yes
18902 else
18903   echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18905
18906         ac_cv_lib_inet_socket=no
18907 fi
18908
18909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18910       conftest$ac_exeext conftest.$ac_ext
18911 LIBS=$ac_check_lib_save_LIBS
18912 fi
18913 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18914 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18915 if test $ac_cv_lib_inet_socket = yes; then
18916   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18917 else
18918   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18919 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18920 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18921 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18922 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18923   echo $ECHO_N "(cached) $ECHO_C" >&6
18924 else
18925   ac_check_lib_save_LIBS=$LIBS
18926 LIBS="-lsocket -lnsl $LIBS"
18927 cat >conftest.$ac_ext <<_ACEOF
18928 /* confdefs.h.  */
18929 _ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h.  */
18933
18934 /* Override any GCC internal prototype to avoid an error.
18935    Use char because int might match the return type of a GCC
18936    builtin and then its argument prototype would still apply.  */
18937 #ifdef __cplusplus
18938 extern "C"
18939 #endif
18940 char socket ();
18941 int
18942 main ()
18943 {
18944 return socket ();
18945   ;
18946   return 0;
18947 }
18948 _ACEOF
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953   *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956   (eval "$ac_link") 2>conftest.er1
18957   ac_status=$?
18958   grep -v '^ *+' conftest.er1 >conftest.err
18959   rm -f conftest.er1
18960   cat conftest.err >&5
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); } && {
18963          test -z "$ac_c_werror_flag" ||
18964          test ! -s conftest.err
18965        } && test -s conftest$ac_exeext &&
18966        $as_test_x conftest$ac_exeext; then
18967   ac_cv_lib_socket_socket_lnsl=yes
18968 else
18969   echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972         ac_cv_lib_socket_socket_lnsl=no
18973 fi
18974
18975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18976       conftest$ac_exeext conftest.$ac_ext
18977 LIBS=$ac_check_lib_save_LIBS
18978 fi
18979 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18980 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18981 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18982   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18983 fi
18984
18985 fi
18986
18987 fi
18988
18989 fi
18990
18991 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18992 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18993 if test "${ac_cv_func_inet_addr+set}" = set; then
18994   echo $ECHO_N "(cached) $ECHO_C" >&6
18995 else
18996   cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h.  */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h.  */
19002 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
19003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19004 #define inet_addr innocuous_inet_addr
19005
19006 /* System header to define __stub macros and hopefully few prototypes,
19007     which can conflict with char inet_addr (); below.
19008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19009     <limits.h> exists even on freestanding compilers.  */
19010
19011 #ifdef __STDC__
19012 # include <limits.h>
19013 #else
19014 # include <assert.h>
19015 #endif
19016
19017 #undef inet_addr
19018
19019 /* Override any GCC internal prototype to avoid an error.
19020    Use char because int might match the return type of a GCC
19021    builtin and then its argument prototype would still apply.  */
19022 #ifdef __cplusplus
19023 extern "C"
19024 #endif
19025 char inet_addr ();
19026 /* The GNU C library defines this for functions which it implements
19027     to always fail with ENOSYS.  Some functions are actually named
19028     something starting with __ and the normal name is an alias.  */
19029 #if defined __stub_inet_addr || defined __stub___inet_addr
19030 choke me
19031 #endif
19032
19033 int
19034 main ()
19035 {
19036 return inet_addr ();
19037   ;
19038   return 0;
19039 }
19040 _ACEOF
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (ac_try="$ac_link"
19043 case "(($ac_try" in
19044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045   *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048   (eval "$ac_link") 2>conftest.er1
19049   ac_status=$?
19050   grep -v '^ *+' conftest.er1 >conftest.err
19051   rm -f conftest.er1
19052   cat conftest.err >&5
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); } && {
19055          test -z "$ac_c_werror_flag" ||
19056          test ! -s conftest.err
19057        } && test -s conftest$ac_exeext &&
19058        $as_test_x conftest$ac_exeext; then
19059   ac_cv_func_inet_addr=yes
19060 else
19061   echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19063
19064         ac_cv_func_inet_addr=no
19065 fi
19066
19067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19068       conftest$ac_exeext conftest.$ac_ext
19069 fi
19070 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
19071 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
19072 if test $ac_cv_func_inet_addr = yes; then
19073   :
19074 else
19075   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
19076 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
19077 if test "${ac_cv_func___inet_addr+set}" = set; then
19078   echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080   cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h.  */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h.  */
19086 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
19087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19088 #define __inet_addr innocuous___inet_addr
19089
19090 /* System header to define __stub macros and hopefully few prototypes,
19091     which can conflict with char __inet_addr (); below.
19092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19093     <limits.h> exists even on freestanding compilers.  */
19094
19095 #ifdef __STDC__
19096 # include <limits.h>
19097 #else
19098 # include <assert.h>
19099 #endif
19100
19101 #undef __inet_addr
19102
19103 /* Override any GCC internal prototype to avoid an error.
19104    Use char because int might match the return type of a GCC
19105    builtin and then its argument prototype would still apply.  */
19106 #ifdef __cplusplus
19107 extern "C"
19108 #endif
19109 char __inet_addr ();
19110 /* The GNU C library defines this for functions which it implements
19111     to always fail with ENOSYS.  Some functions are actually named
19112     something starting with __ and the normal name is an alias.  */
19113 #if defined __stub___inet_addr || defined __stub_____inet_addr
19114 choke me
19115 #endif
19116
19117 int
19118 main ()
19119 {
19120 return __inet_addr ();
19121   ;
19122   return 0;
19123 }
19124 _ACEOF
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (ac_try="$ac_link"
19127 case "(($ac_try" in
19128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129   *) ac_try_echo=$ac_try;;
19130 esac
19131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132   (eval "$ac_link") 2>conftest.er1
19133   ac_status=$?
19134   grep -v '^ *+' conftest.er1 >conftest.err
19135   rm -f conftest.er1
19136   cat conftest.err >&5
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); } && {
19139          test -z "$ac_c_werror_flag" ||
19140          test ! -s conftest.err
19141        } && test -s conftest$ac_exeext &&
19142        $as_test_x conftest$ac_exeext; then
19143   ac_cv_func___inet_addr=yes
19144 else
19145   echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19147
19148         ac_cv_func___inet_addr=no
19149 fi
19150
19151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19152       conftest$ac_exeext conftest.$ac_ext
19153 fi
19154 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
19155 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
19156 if test $ac_cv_func___inet_addr = yes; then
19157   :
19158 else
19159   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
19160 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
19161 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164   ac_check_lib_save_LIBS=$LIBS
19165 LIBS="-lnsl  $LIBS"
19166 cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h.  */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h.  */
19172
19173 /* Override any GCC internal prototype to avoid an error.
19174    Use char because int might match the return type of a GCC
19175    builtin and then its argument prototype would still apply.  */
19176 #ifdef __cplusplus
19177 extern "C"
19178 #endif
19179 char inet_addr ();
19180 int
19181 main ()
19182 {
19183 return inet_addr ();
19184   ;
19185   return 0;
19186 }
19187 _ACEOF
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192   *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195   (eval "$ac_link") 2>conftest.er1
19196   ac_status=$?
19197   grep -v '^ *+' conftest.er1 >conftest.err
19198   rm -f conftest.er1
19199   cat conftest.err >&5
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); } && {
19202          test -z "$ac_c_werror_flag" ||
19203          test ! -s conftest.err
19204        } && test -s conftest$ac_exeext &&
19205        $as_test_x conftest$ac_exeext; then
19206   ac_cv_lib_nsl_inet_addr=yes
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211         ac_cv_lib_nsl_inet_addr=no
19212 fi
19213
19214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19215       conftest$ac_exeext conftest.$ac_ext
19216 LIBS=$ac_check_lib_save_LIBS
19217 fi
19218 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
19219 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
19220 if test $ac_cv_lib_nsl_inet_addr = yes; then
19221   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19222 else
19223   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
19224 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
19225 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
19226   echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228   ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-linet  $LIBS"
19230 cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h.  */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h.  */
19236
19237 /* Override any GCC internal prototype to avoid an error.
19238    Use char because int might match the return type of a GCC
19239    builtin and then its argument prototype would still apply.  */
19240 #ifdef __cplusplus
19241 extern "C"
19242 #endif
19243 char inet_addr ();
19244 int
19245 main ()
19246 {
19247 return inet_addr ();
19248   ;
19249   return 0;
19250 }
19251 _ACEOF
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (ac_try="$ac_link"
19254 case "(($ac_try" in
19255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256   *) ac_try_echo=$ac_try;;
19257 esac
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259   (eval "$ac_link") 2>conftest.er1
19260   ac_status=$?
19261   grep -v '^ *+' conftest.er1 >conftest.err
19262   rm -f conftest.er1
19263   cat conftest.err >&5
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); } && {
19266          test -z "$ac_c_werror_flag" ||
19267          test ! -s conftest.err
19268        } && test -s conftest$ac_exeext &&
19269        $as_test_x conftest$ac_exeext; then
19270   ac_cv_lib_inet_inet_addr=yes
19271 else
19272   echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19274
19275         ac_cv_lib_inet_inet_addr=no
19276 fi
19277
19278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19279       conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19281 fi
19282 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
19283 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
19284 if test $ac_cv_lib_inet_inet_addr = yes; then
19285   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19286 else
19287   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
19288 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
19289 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
19290 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
19291 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
19292   echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294   ac_check_lib_save_LIBS=$LIBS
19295 LIBS="-lsocket -lnsl $LIBS"
19296 cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h.  */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h.  */
19302
19303 /* Override any GCC internal prototype to avoid an error.
19304    Use char because int might match the return type of a GCC
19305    builtin and then its argument prototype would still apply.  */
19306 #ifdef __cplusplus
19307 extern "C"
19308 #endif
19309 char inet_addr ();
19310 int
19311 main ()
19312 {
19313 return inet_addr ();
19314   ;
19315   return 0;
19316 }
19317 _ACEOF
19318 rm -f conftest.$ac_objext conftest$ac_exeext
19319 if { (ac_try="$ac_link"
19320 case "(($ac_try" in
19321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322   *) ac_try_echo=$ac_try;;
19323 esac
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325   (eval "$ac_link") 2>conftest.er1
19326   ac_status=$?
19327   grep -v '^ *+' conftest.er1 >conftest.err
19328   rm -f conftest.er1
19329   cat conftest.err >&5
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); } && {
19332          test -z "$ac_c_werror_flag" ||
19333          test ! -s conftest.err
19334        } && test -s conftest$ac_exeext &&
19335        $as_test_x conftest$ac_exeext; then
19336   ac_cv_lib_socket_inet_addr_lnsl=yes
19337 else
19338   echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19340
19341         ac_cv_lib_socket_inet_addr_lnsl=no
19342 fi
19343
19344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19345       conftest$ac_exeext conftest.$ac_ext
19346 LIBS=$ac_check_lib_save_LIBS
19347 fi
19348 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
19349 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
19350 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
19351   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
19352 fi
19353
19354 fi
19355
19356 fi
19357
19358 fi
19359
19360 fi
19361
19362 { echo "$as_me:$LINENO: checking for syslog" >&5
19363 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
19364 if test "${ac_cv_func_syslog+set}" = set; then
19365   echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367   cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19375 #define syslog innocuous_syslog
19376
19377 /* System header to define __stub macros and hopefully few prototypes,
19378     which can conflict with char syslog (); below.
19379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19380     <limits.h> exists even on freestanding compilers.  */
19381
19382 #ifdef __STDC__
19383 # include <limits.h>
19384 #else
19385 # include <assert.h>
19386 #endif
19387
19388 #undef syslog
19389
19390 /* Override any GCC internal prototype to avoid an error.
19391    Use char because int might match the return type of a GCC
19392    builtin and then its argument prototype would still apply.  */
19393 #ifdef __cplusplus
19394 extern "C"
19395 #endif
19396 char syslog ();
19397 /* The GNU C library defines this for functions which it implements
19398     to always fail with ENOSYS.  Some functions are actually named
19399     something starting with __ and the normal name is an alias.  */
19400 #if defined __stub_syslog || defined __stub___syslog
19401 choke me
19402 #endif
19403
19404 int
19405 main ()
19406 {
19407 return syslog ();
19408   ;
19409   return 0;
19410 }
19411 _ACEOF
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (ac_try="$ac_link"
19414 case "(($ac_try" in
19415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416   *) ac_try_echo=$ac_try;;
19417 esac
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419   (eval "$ac_link") 2>conftest.er1
19420   ac_status=$?
19421   grep -v '^ *+' conftest.er1 >conftest.err
19422   rm -f conftest.er1
19423   cat conftest.err >&5
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); } && {
19426          test -z "$ac_c_werror_flag" ||
19427          test ! -s conftest.err
19428        } && test -s conftest$ac_exeext &&
19429        $as_test_x conftest$ac_exeext; then
19430   ac_cv_func_syslog=yes
19431 else
19432   echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19434
19435         ac_cv_func_syslog=no
19436 fi
19437
19438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19439       conftest$ac_exeext conftest.$ac_ext
19440 fi
19441 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19442 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19443 if test $ac_cv_func_syslog = yes; then
19444   :
19445 else
19446   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19447 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19448 if test "${ac_cv_lib_socket_syslog+set}" = set; then
19449   echo $ECHO_N "(cached) $ECHO_C" >&6
19450 else
19451   ac_check_lib_save_LIBS=$LIBS
19452 LIBS="-lsocket  $LIBS"
19453 cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h.  */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h.  */
19459
19460 /* Override any GCC internal prototype to avoid an error.
19461    Use char because int might match the return type of a GCC
19462    builtin and then its argument prototype would still apply.  */
19463 #ifdef __cplusplus
19464 extern "C"
19465 #endif
19466 char syslog ();
19467 int
19468 main ()
19469 {
19470 return syslog ();
19471   ;
19472   return 0;
19473 }
19474 _ACEOF
19475 rm -f conftest.$ac_objext conftest$ac_exeext
19476 if { (ac_try="$ac_link"
19477 case "(($ac_try" in
19478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479   *) ac_try_echo=$ac_try;;
19480 esac
19481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482   (eval "$ac_link") 2>conftest.er1
19483   ac_status=$?
19484   grep -v '^ *+' conftest.er1 >conftest.err
19485   rm -f conftest.er1
19486   cat conftest.err >&5
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); } && {
19489          test -z "$ac_c_werror_flag" ||
19490          test ! -s conftest.err
19491        } && test -s conftest$ac_exeext &&
19492        $as_test_x conftest$ac_exeext; then
19493   ac_cv_lib_socket_syslog=yes
19494 else
19495   echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498         ac_cv_lib_socket_syslog=no
19499 fi
19500
19501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19502       conftest$ac_exeext conftest.$ac_ext
19503 LIBS=$ac_check_lib_save_LIBS
19504 fi
19505 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19506 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19507 if test $ac_cv_lib_socket_syslog = yes; then
19508   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19509 else
19510   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19511 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19512 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19513   echo $ECHO_N "(cached) $ECHO_C" >&6
19514 else
19515   ac_check_lib_save_LIBS=$LIBS
19516 LIBS="-lnsl  $LIBS"
19517 cat >conftest.$ac_ext <<_ACEOF
19518 /* confdefs.h.  */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h.  */
19523
19524 /* Override any GCC internal prototype to avoid an error.
19525    Use char because int might match the return type of a GCC
19526    builtin and then its argument prototype would still apply.  */
19527 #ifdef __cplusplus
19528 extern "C"
19529 #endif
19530 char syslog ();
19531 int
19532 main ()
19533 {
19534 return syslog ();
19535   ;
19536   return 0;
19537 }
19538 _ACEOF
19539 rm -f conftest.$ac_objext conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543   *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546   (eval "$ac_link") 2>conftest.er1
19547   ac_status=$?
19548   grep -v '^ *+' conftest.er1 >conftest.err
19549   rm -f conftest.er1
19550   cat conftest.err >&5
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); } && {
19553          test -z "$ac_c_werror_flag" ||
19554          test ! -s conftest.err
19555        } && test -s conftest$ac_exeext &&
19556        $as_test_x conftest$ac_exeext; then
19557   ac_cv_lib_nsl_syslog=yes
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562         ac_cv_lib_nsl_syslog=no
19563 fi
19564
19565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19566       conftest$ac_exeext conftest.$ac_ext
19567 LIBS=$ac_check_lib_save_LIBS
19568 fi
19569 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19570 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19571 if test $ac_cv_lib_nsl_syslog = yes; then
19572   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19573 else
19574   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19575 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19576 if test "${ac_cv_lib_inet_syslog+set}" = set; then
19577   echo $ECHO_N "(cached) $ECHO_C" >&6
19578 else
19579   ac_check_lib_save_LIBS=$LIBS
19580 LIBS="-linet  $LIBS"
19581 cat >conftest.$ac_ext <<_ACEOF
19582 /* confdefs.h.  */
19583 _ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h.  */
19587
19588 /* Override any GCC internal prototype to avoid an error.
19589    Use char because int might match the return type of a GCC
19590    builtin and then its argument prototype would still apply.  */
19591 #ifdef __cplusplus
19592 extern "C"
19593 #endif
19594 char syslog ();
19595 int
19596 main ()
19597 {
19598 return syslog ();
19599   ;
19600   return 0;
19601 }
19602 _ACEOF
19603 rm -f conftest.$ac_objext conftest$ac_exeext
19604 if { (ac_try="$ac_link"
19605 case "(($ac_try" in
19606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607   *) ac_try_echo=$ac_try;;
19608 esac
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610   (eval "$ac_link") 2>conftest.er1
19611   ac_status=$?
19612   grep -v '^ *+' conftest.er1 >conftest.err
19613   rm -f conftest.er1
19614   cat conftest.err >&5
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); } && {
19617          test -z "$ac_c_werror_flag" ||
19618          test ! -s conftest.err
19619        } && test -s conftest$ac_exeext &&
19620        $as_test_x conftest$ac_exeext; then
19621   ac_cv_lib_inet_syslog=yes
19622 else
19623   echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19625
19626         ac_cv_lib_inet_syslog=no
19627 fi
19628
19629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19630       conftest$ac_exeext conftest.$ac_ext
19631 LIBS=$ac_check_lib_save_LIBS
19632 fi
19633 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19634 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19635 if test $ac_cv_lib_inet_syslog = yes; then
19636   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19637 fi
19638
19639 fi
19640
19641 fi
19642
19643 fi
19644
19645
19646 for ac_func in getprogname
19647 do
19648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654   cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19662 #define $ac_func innocuous_$ac_func
19663
19664 /* System header to define __stub macros and hopefully few prototypes,
19665     which can conflict with char $ac_func (); below.
19666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19667     <limits.h> exists even on freestanding compilers.  */
19668
19669 #ifdef __STDC__
19670 # include <limits.h>
19671 #else
19672 # include <assert.h>
19673 #endif
19674
19675 #undef $ac_func
19676
19677 /* Override any GCC internal prototype to avoid an error.
19678    Use char because int might match the return type of a GCC
19679    builtin and then its argument prototype would still apply.  */
19680 #ifdef __cplusplus
19681 extern "C"
19682 #endif
19683 char $ac_func ();
19684 /* The GNU C library defines this for functions which it implements
19685     to always fail with ENOSYS.  Some functions are actually named
19686     something starting with __ and the normal name is an alias.  */
19687 #if defined __stub_$ac_func || defined __stub___$ac_func
19688 choke me
19689 #endif
19690
19691 int
19692 main ()
19693 {
19694 return $ac_func ();
19695   ;
19696   return 0;
19697 }
19698 _ACEOF
19699 rm -f conftest.$ac_objext conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703   *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706   (eval "$ac_link") 2>conftest.er1
19707   ac_status=$?
19708   grep -v '^ *+' conftest.er1 >conftest.err
19709   rm -f conftest.er1
19710   cat conftest.err >&5
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); } && {
19713          test -z "$ac_c_werror_flag" ||
19714          test ! -s conftest.err
19715        } && test -s conftest$ac_exeext &&
19716        $as_test_x conftest$ac_exeext; then
19717   eval "$as_ac_var=yes"
19718 else
19719   echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19721
19722         eval "$as_ac_var=no"
19723 fi
19724
19725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19726       conftest$ac_exeext conftest.$ac_ext
19727 fi
19728 ac_res=`eval echo '${'$as_ac_var'}'`
19729                { echo "$as_me:$LINENO: result: $ac_res" >&5
19730 echo "${ECHO_T}$ac_res" >&6; }
19731 if test `eval echo '${'$as_ac_var'}'` = yes; then
19732   cat >>confdefs.h <<_ACEOF
19733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19734 _ACEOF
19735
19736 else
19737
19738     { echo "$as_me:$LINENO: checking for __progname" >&5
19739 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19740     if test "${sudo_cv___progname+set}" = set; then
19741   echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743
19744     cat >conftest.$ac_ext <<_ACEOF
19745 /* confdefs.h.  */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h.  */
19750
19751 int
19752 main ()
19753 {
19754 extern char *__progname; (void)puts(__progname);
19755   ;
19756   return 0;
19757 }
19758 _ACEOF
19759 rm -f conftest.$ac_objext conftest$ac_exeext
19760 if { (ac_try="$ac_link"
19761 case "(($ac_try" in
19762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763   *) ac_try_echo=$ac_try;;
19764 esac
19765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766   (eval "$ac_link") 2>conftest.er1
19767   ac_status=$?
19768   grep -v '^ *+' conftest.er1 >conftest.err
19769   rm -f conftest.er1
19770   cat conftest.err >&5
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); } && {
19773          test -z "$ac_c_werror_flag" ||
19774          test ! -s conftest.err
19775        } && test -s conftest$ac_exeext &&
19776        $as_test_x conftest$ac_exeext; then
19777   sudo_cv___progname=yes
19778 else
19779   echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19781
19782         sudo_cv___progname=no
19783 fi
19784
19785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19786       conftest$ac_exeext conftest.$ac_ext
19787 fi
19788
19789     if test "$sudo_cv___progname" = "yes"; then
19790         cat >>confdefs.h <<\_ACEOF
19791 #define HAVE___PROGNAME 1
19792 _ACEOF
19793
19794     else
19795         case " $LIBOBJS " in
19796   *" getprogname.$ac_objext "* ) ;;
19797   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19798  ;;
19799 esac
19800
19801     fi
19802     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19803 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19804
19805 fi
19806 done
19807
19808
19809 netsvc_conf='/etc/netsvc.conf'
19810 nsswitch_conf='/etc/nsswitch.conf'
19811 if test ${with_netsvc-"no"} != "no"; then
19812     cat >>confdefs.h <<EOF
19813 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
19814 EOF
19815
19816     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
19817 elif test ${with_nsswitch-"yes"} != "no"; then
19818     cat >>confdefs.h <<EOF
19819 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
19820 EOF
19821
19822     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
19823 fi
19824
19825
19826 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19827     for auth in $AUTH_EXCL_DEF; do
19828         case $auth in
19829             AIX_AUTH)   with_aixauth=maybe;;
19830             BSD_AUTH)   with_bsdauth=maybe;;
19831             PAM)        with_pam=maybe;;
19832             SIA)        CHECKSIA=true;;
19833         esac
19834     done
19835 fi
19836
19837 if test ${with_pam-"no"} != "no"; then
19838                 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19839 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19840 if test "${ac_cv_lib_dl_main+set}" = set; then
19841   echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843   ac_check_lib_save_LIBS=$LIBS
19844 LIBS="-ldl  $LIBS"
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h.  */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h.  */
19851
19852
19853 int
19854 main ()
19855 {
19856 return main ();
19857   ;
19858   return 0;
19859 }
19860 _ACEOF
19861 rm -f conftest.$ac_objext conftest$ac_exeext
19862 if { (ac_try="$ac_link"
19863 case "(($ac_try" in
19864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865   *) ac_try_echo=$ac_try;;
19866 esac
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868   (eval "$ac_link") 2>conftest.er1
19869   ac_status=$?
19870   grep -v '^ *+' conftest.er1 >conftest.err
19871   rm -f conftest.er1
19872   cat conftest.err >&5
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); } && {
19875          test -z "$ac_c_werror_flag" ||
19876          test ! -s conftest.err
19877        } && test -s conftest$ac_exeext &&
19878        $as_test_x conftest$ac_exeext; then
19879   ac_cv_lib_dl_main=yes
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884         ac_cv_lib_dl_main=no
19885 fi
19886
19887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19888       conftest$ac_exeext conftest.$ac_ext
19889 LIBS=$ac_check_lib_save_LIBS
19890 fi
19891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19892 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19893 if test $ac_cv_lib_dl_main = yes; then
19894   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19895 else
19896   SUDO_LIBS="${SUDO_LIBS} -lpam"
19897 fi
19898
19899     ac_cv_lib_dl=ac_cv_lib_dl_main
19900
19901
19902
19903 for ac_header in security/pam_appl.h pam/pam_appl.h
19904 do
19905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910   echo $ECHO_N "(cached) $ECHO_C" >&6
19911 fi
19912 ac_res=`eval echo '${'$as_ac_Header'}'`
19913                { echo "$as_me:$LINENO: result: $ac_res" >&5
19914 echo "${ECHO_T}$ac_res" >&6; }
19915 else
19916   # Is the header compilable?
19917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19919 cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h.  */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h.  */
19925 $ac_includes_default
19926 #include <$ac_header>
19927 _ACEOF
19928 rm -f conftest.$ac_objext
19929 if { (ac_try="$ac_compile"
19930 case "(($ac_try" in
19931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932   *) ac_try_echo=$ac_try;;
19933 esac
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935   (eval "$ac_compile") 2>conftest.er1
19936   ac_status=$?
19937   grep -v '^ *+' conftest.er1 >conftest.err
19938   rm -f conftest.er1
19939   cat conftest.err >&5
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); } && {
19942          test -z "$ac_c_werror_flag" ||
19943          test ! -s conftest.err
19944        } && test -s conftest.$ac_objext; then
19945   ac_header_compiler=yes
19946 else
19947   echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19949
19950         ac_header_compiler=no
19951 fi
19952
19953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19955 echo "${ECHO_T}$ac_header_compiler" >&6; }
19956
19957 # Is the header present?
19958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19960 cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h.  */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h.  */
19966 #include <$ac_header>
19967 _ACEOF
19968 if { (ac_try="$ac_cpp conftest.$ac_ext"
19969 case "(($ac_try" in
19970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971   *) ac_try_echo=$ac_try;;
19972 esac
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19975   ac_status=$?
19976   grep -v '^ *+' conftest.er1 >conftest.err
19977   rm -f conftest.er1
19978   cat conftest.err >&5
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } >/dev/null && {
19981          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19982          test ! -s conftest.err
19983        }; then
19984   ac_header_preproc=yes
19985 else
19986   echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989   ac_header_preproc=no
19990 fi
19991
19992 rm -f conftest.err conftest.$ac_ext
19993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19994 echo "${ECHO_T}$ac_header_preproc" >&6; }
19995
19996 # So?  What about this header?
19997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19998   yes:no: )
19999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20003     ac_header_preproc=yes
20004     ;;
20005   no:yes:* )
20006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20008     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20009 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20010     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20012     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20013 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20016     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20018     ( cat <<\_ASBOX
20019 ## --------------------------------------- ##
20020 ## Report this to http://www.sudo.ws/bugs/ ##
20021 ## --------------------------------------- ##
20022 _ASBOX
20023      ) | sed "s/^/$as_me: WARNING:     /" >&2
20024     ;;
20025 esac
20026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20029   echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20031   eval "$as_ac_Header=\$ac_header_preproc"
20032 fi
20033 ac_res=`eval echo '${'$as_ac_Header'}'`
20034                { echo "$as_me:$LINENO: result: $ac_res" >&5
20035 echo "${ECHO_T}$ac_res" >&6; }
20036
20037 fi
20038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20039   cat >>confdefs.h <<_ACEOF
20040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20041 _ACEOF
20042  with_pam=yes; break
20043 fi
20044
20045 done
20046
20047     if test "$with_pam" = "yes"; then
20048         cat >>confdefs.h <<\_ACEOF
20049 #define HAVE_PAM 1
20050 _ACEOF
20051
20052         AUTH_OBJS="$AUTH_OBJS pam.o";
20053         AUTH_EXCL=PAM
20054         { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
20055 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
20056         # Check whether --enable-pam_session was given.
20057 if test "${enable_pam_session+set}" = set; then
20058   enableval=$enable_pam_session;  case "$enableval" in
20059                 yes)    { echo "$as_me:$LINENO: result: yes" >&5
20060 echo "${ECHO_T}yes" >&6; }
20061                         ;;
20062                 no)             { echo "$as_me:$LINENO: result: no" >&5
20063 echo "${ECHO_T}no" >&6; }
20064
20065 cat >>confdefs.h <<\_ACEOF
20066 #define NO_PAM_SESSION
20067 _ACEOF
20068
20069                             ;;
20070                 *)              { echo "$as_me:$LINENO: result: no" >&5
20071 echo "${ECHO_T}no" >&6; }
20072                             { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
20073 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
20074                             ;;
20075             esac
20076 else
20077   { echo "$as_me:$LINENO: result: yes" >&5
20078 echo "${ECHO_T}yes" >&6; }
20079 fi
20080
20081         case $host in
20082             *-*-linux*|*-*-solaris*)
20083                     # dgettext() may be defined to dgettext_libintl in the
20084                     # header file, so first check that it links w/ additional
20085                     # libs, then try with -lintl
20086                     cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h.  */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h.  */
20092 #include <libintl.h>
20093 int
20094 main ()
20095 {
20096 (void)dgettext((char *)0, (char *)0);
20097   ;
20098   return 0;
20099 }
20100 _ACEOF
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105   *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108   (eval "$ac_link") 2>conftest.er1
20109   ac_status=$?
20110   grep -v '^ *+' conftest.er1 >conftest.err
20111   rm -f conftest.er1
20112   cat conftest.err >&5
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); } && {
20115          test -z "$ac_c_werror_flag" ||
20116          test ! -s conftest.err
20117        } && test -s conftest$ac_exeext &&
20118        $as_test_x conftest$ac_exeext; then
20119   cat >>confdefs.h <<\_ACEOF
20120 #define HAVE_DGETTEXT 1
20121 _ACEOF
20122
20123 else
20124   echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20126
20127         { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20128 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20129 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20130   echo $ECHO_N "(cached) $ECHO_C" >&6
20131 else
20132   ac_check_lib_save_LIBS=$LIBS
20133 LIBS="-lintl  $LIBS"
20134 cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140
20141 /* Override any GCC internal prototype to avoid an error.
20142    Use char because int might match the return type of a GCC
20143    builtin and then its argument prototype would still apply.  */
20144 #ifdef __cplusplus
20145 extern "C"
20146 #endif
20147 char dgettext ();
20148 int
20149 main ()
20150 {
20151 return dgettext ();
20152   ;
20153   return 0;
20154 }
20155 _ACEOF
20156 rm -f conftest.$ac_objext conftest$ac_exeext
20157 if { (ac_try="$ac_link"
20158 case "(($ac_try" in
20159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160   *) ac_try_echo=$ac_try;;
20161 esac
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163   (eval "$ac_link") 2>conftest.er1
20164   ac_status=$?
20165   grep -v '^ *+' conftest.er1 >conftest.err
20166   rm -f conftest.er1
20167   cat conftest.err >&5
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); } && {
20170          test -z "$ac_c_werror_flag" ||
20171          test ! -s conftest.err
20172        } && test -s conftest$ac_exeext &&
20173        $as_test_x conftest$ac_exeext; then
20174   ac_cv_lib_intl_dgettext=yes
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179         ac_cv_lib_intl_dgettext=no
20180 fi
20181
20182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20183       conftest$ac_exeext conftest.$ac_ext
20184 LIBS=$ac_check_lib_save_LIBS
20185 fi
20186 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20187 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20188 if test $ac_cv_lib_intl_dgettext = yes; then
20189   LIBS="${LIBS} -lintl"
20190                         cat >>confdefs.h <<\_ACEOF
20191 #define HAVE_DGETTEXT 1
20192 _ACEOF
20193
20194 fi
20195
20196 fi
20197
20198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20199       conftest$ac_exeext conftest.$ac_ext
20200                     ;;
20201         esac
20202     fi
20203 fi
20204
20205 if test ${with_aixauth-'no'} != "no"; then
20206     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
20207         { echo "$as_me:$LINENO: using AIX general authentication" >&5
20208 echo "$as_me: using AIX general authentication" >&6;}
20209         cat >>confdefs.h <<\_ACEOF
20210 #define HAVE_AIXAUTH 1
20211 _ACEOF
20212
20213         AUTH_OBJS="$AUTH_OBJS aix_auth.o";
20214         SUDO_LIBS="${SUDO_LIBS} -ls"
20215         AUTH_EXCL=AIX_AUTH
20216     fi
20217 fi
20218
20219 if test ${with_bsdauth-'no'} != "no"; then
20220     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20221   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20222 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20223 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20224   echo $ECHO_N "(cached) $ECHO_C" >&6
20225 fi
20226 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20227 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20228 else
20229   # Is the header compilable?
20230 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
20231 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
20232 cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238 $ac_includes_default
20239 #include <bsd_auth.h>
20240 _ACEOF
20241 rm -f conftest.$ac_objext
20242 if { (ac_try="$ac_compile"
20243 case "(($ac_try" in
20244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245   *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248   (eval "$ac_compile") 2>conftest.er1
20249   ac_status=$?
20250   grep -v '^ *+' conftest.er1 >conftest.err
20251   rm -f conftest.er1
20252   cat conftest.err >&5
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); } && {
20255          test -z "$ac_c_werror_flag" ||
20256          test ! -s conftest.err
20257        } && test -s conftest.$ac_objext; then
20258   ac_header_compiler=yes
20259 else
20260   echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20262
20263         ac_header_compiler=no
20264 fi
20265
20266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20268 echo "${ECHO_T}$ac_header_compiler" >&6; }
20269
20270 # Is the header present?
20271 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20272 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
20273 cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h.  */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h.  */
20279 #include <bsd_auth.h>
20280 _ACEOF
20281 if { (ac_try="$ac_cpp conftest.$ac_ext"
20282 case "(($ac_try" in
20283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284   *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20288   ac_status=$?
20289   grep -v '^ *+' conftest.er1 >conftest.err
20290   rm -f conftest.er1
20291   cat conftest.err >&5
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); } >/dev/null && {
20294          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20295          test ! -s conftest.err
20296        }; then
20297   ac_header_preproc=yes
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302   ac_header_preproc=no
20303 fi
20304
20305 rm -f conftest.err conftest.$ac_ext
20306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20307 echo "${ECHO_T}$ac_header_preproc" >&6; }
20308
20309 # So?  What about this header?
20310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20311   yes:no: )
20312     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20313 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20314     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20315 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20316     ac_header_preproc=yes
20317     ;;
20318   no:yes:* )
20319     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20320 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20321     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
20322 echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
20323     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20324 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20325     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
20326 echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20327     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20328 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20329     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20330 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20331     ( cat <<\_ASBOX
20332 ## --------------------------------------- ##
20333 ## Report this to http://www.sudo.ws/bugs/ ##
20334 ## --------------------------------------- ##
20335 _ASBOX
20336      ) | sed "s/^/$as_me: WARNING:     /" >&2
20337     ;;
20338 esac
20339 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20340 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20341 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20342   echo $ECHO_N "(cached) $ECHO_C" >&6
20343 else
20344   ac_cv_header_bsd_auth_h=$ac_header_preproc
20345 fi
20346 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20347 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20348
20349 fi
20350 if test $ac_cv_header_bsd_auth_h = yes; then
20351   cat >>confdefs.h <<\_ACEOF
20352 #define HAVE_BSD_AUTH_H 1
20353 _ACEOF
20354
20355         AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20356         BSDAUTH_USAGE='[-a auth_type] '
20357         AUTH_EXCL=BSD_AUTH; BAMAN=""
20358 else
20359   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20360 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20361    { (exit 1); exit 1; }; }
20362 fi
20363
20364
20365 fi
20366
20367 if test ${CHECKSIA-'false'} = "true"; then
20368
20369 for ac_func in sia_ses_init
20370 do
20371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20375   echo $ECHO_N "(cached) $ECHO_C" >&6
20376 else
20377   cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20385 #define $ac_func innocuous_$ac_func
20386
20387 /* System header to define __stub macros and hopefully few prototypes,
20388     which can conflict with char $ac_func (); below.
20389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20390     <limits.h> exists even on freestanding compilers.  */
20391
20392 #ifdef __STDC__
20393 # include <limits.h>
20394 #else
20395 # include <assert.h>
20396 #endif
20397
20398 #undef $ac_func
20399
20400 /* Override any GCC internal prototype to avoid an error.
20401    Use char because int might match the return type of a GCC
20402    builtin and then its argument prototype would still apply.  */
20403 #ifdef __cplusplus
20404 extern "C"
20405 #endif
20406 char $ac_func ();
20407 /* The GNU C library defines this for functions which it implements
20408     to always fail with ENOSYS.  Some functions are actually named
20409     something starting with __ and the normal name is an alias.  */
20410 #if defined __stub_$ac_func || defined __stub___$ac_func
20411 choke me
20412 #endif
20413
20414 int
20415 main ()
20416 {
20417 return $ac_func ();
20418   ;
20419   return 0;
20420 }
20421 _ACEOF
20422 rm -f conftest.$ac_objext conftest$ac_exeext
20423 if { (ac_try="$ac_link"
20424 case "(($ac_try" in
20425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426   *) ac_try_echo=$ac_try;;
20427 esac
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429   (eval "$ac_link") 2>conftest.er1
20430   ac_status=$?
20431   grep -v '^ *+' conftest.er1 >conftest.err
20432   rm -f conftest.er1
20433   cat conftest.err >&5
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } && {
20436          test -z "$ac_c_werror_flag" ||
20437          test ! -s conftest.err
20438        } && test -s conftest$ac_exeext &&
20439        $as_test_x conftest$ac_exeext; then
20440   eval "$as_ac_var=yes"
20441 else
20442   echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20444
20445         eval "$as_ac_var=no"
20446 fi
20447
20448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20449       conftest$ac_exeext conftest.$ac_ext
20450 fi
20451 ac_res=`eval echo '${'$as_ac_var'}'`
20452                { echo "$as_me:$LINENO: result: $ac_res" >&5
20453 echo "${ECHO_T}$ac_res" >&6; }
20454 if test `eval echo '${'$as_ac_var'}'` = yes; then
20455   cat >>confdefs.h <<_ACEOF
20456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20457 _ACEOF
20458  found=true
20459 else
20460   found=false
20461 fi
20462 done
20463
20464     if test "$found" = "true"; then
20465         AUTH_EXCL=SIA
20466         AUTH_OBJS="$AUTH_OBJS sia.o"
20467     fi
20468 fi
20469
20470 if test ${with_fwtk-'no'} != "no"; then
20471     if test "$with_fwtk" != "yes"; then
20472
20473     if test X"$with_rpath" = X"yes"; then
20474         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20475     else
20476         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20477     fi
20478     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20479         blibpath_add="${blibpath_add}:${with_fwtk}"
20480     fi
20481
20482         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20483         with_fwtk=yes
20484     fi
20485     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20486     AUTH_OBJS="$AUTH_OBJS fwtk.o"
20487 fi
20488
20489 if test ${with_SecurID-'no'} != "no"; then
20490     if test "$with_SecurID" != "yes"; then
20491         :
20492     elif test -d /usr/ace/examples; then
20493         with_SecurID=/usr/ace/examples
20494     else
20495         with_SecurID=/usr/ace
20496     fi
20497     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20498     _LDFLAGS="${LDFLAGS}"
20499
20500     if test X"$with_rpath" = X"yes"; then
20501         LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20502     else
20503         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20504     fi
20505     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20506         blibpath_add="${blibpath_add}:${with_SecurID}"
20507     fi
20508
20509     #
20510     # Determine whether to use the new or old SecurID API
20511     #
20512     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20513 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20514 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20515   echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20517   ac_check_lib_save_LIBS=$LIBS
20518 LIBS="-laceclnt
20519             -lpthread
20520
20521      $LIBS"
20522 cat >conftest.$ac_ext <<_ACEOF
20523 /* confdefs.h.  */
20524 _ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h.  */
20528
20529 /* Override any GCC internal prototype to avoid an error.
20530    Use char because int might match the return type of a GCC
20531    builtin and then its argument prototype would still apply.  */
20532 #ifdef __cplusplus
20533 extern "C"
20534 #endif
20535 char SD_Init ();
20536 int
20537 main ()
20538 {
20539 return SD_Init ();
20540   ;
20541   return 0;
20542 }
20543 _ACEOF
20544 rm -f conftest.$ac_objext conftest$ac_exeext
20545 if { (ac_try="$ac_link"
20546 case "(($ac_try" in
20547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548   *) ac_try_echo=$ac_try;;
20549 esac
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551   (eval "$ac_link") 2>conftest.er1
20552   ac_status=$?
20553   grep -v '^ *+' conftest.er1 >conftest.err
20554   rm -f conftest.er1
20555   cat conftest.err >&5
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); } && {
20558          test -z "$ac_c_werror_flag" ||
20559          test ! -s conftest.err
20560        } && test -s conftest$ac_exeext &&
20561        $as_test_x conftest$ac_exeext; then
20562   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20563 else
20564   echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20566
20567         ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20568 fi
20569
20570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20571       conftest$ac_exeext conftest.$ac_ext
20572 LIBS=$ac_check_lib_save_LIBS
20573 fi
20574 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20575 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20576 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20577
20578             AUTH_OBJS="$AUTH_OBJS securid5.o";
20579             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20580
20581
20582
20583     if test X"$with_rpath" = X"yes"; then
20584         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20585     else
20586         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20587     fi
20588     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20589         blibpath_add="${blibpath_add}:${with_SecurID}"
20590     fi
20591
20592
20593 else
20594
20595             AUTH_OBJS="$AUTH_OBJS securid.o";
20596             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20597
20598 fi
20599
20600     LDFLAGS="${_LDFLAGS}"
20601 fi
20602
20603
20604 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20605     for auth in $AUTH_DEF; do
20606         case $auth in
20607             passwd)     : ${with_passwd='maybe'};;
20608         esac
20609     done
20610 fi
20611
20612 if test ${with_kerb4-'no'} != "no"; then
20613     cat >>confdefs.h <<\_ACEOF
20614 #define HAVE_KERB4 1
20615 _ACEOF
20616
20617                 O_LDFLAGS="$LDFLAGS"
20618     if test "$with_kerb4" = "yes"; then
20619         found=no
20620         O_CPPFLAGS="$CPPFLAGS"
20621         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20622             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20623             cat >conftest.$ac_ext <<_ACEOF
20624 #include <krb.h>
20625 _ACEOF
20626 if { (ac_try="$ac_cpp conftest.$ac_ext"
20627 case "(($ac_try" in
20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629   *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20633   ac_status=$?
20634   grep -v '^ *+' conftest.er1 >conftest.err
20635   rm -f conftest.er1
20636   cat conftest.err >&5
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); } >/dev/null && {
20639          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20640          test ! -s conftest.err
20641        }; then
20642   found=yes; break
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647
20648 fi
20649
20650 rm -f conftest.err conftest.$ac_ext
20651         done
20652         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20653     else
20654
20655     if test X"$with_rpath" = X"yes"; then
20656         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20657     else
20658         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20659     fi
20660     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20661         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20662     fi
20663
20664
20665     if test X"$with_rpath" = X"yes"; then
20666         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20667     else
20668         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20669     fi
20670     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20671         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20672     fi
20673
20674         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20675         if test "${ac_cv_header_krb_h+set}" = set; then
20676   { echo "$as_me:$LINENO: checking for krb.h" >&5
20677 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20678 if test "${ac_cv_header_krb_h+set}" = set; then
20679   echo $ECHO_N "(cached) $ECHO_C" >&6
20680 fi
20681 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20682 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20683 else
20684   # Is the header compilable?
20685 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20686 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20687 cat >conftest.$ac_ext <<_ACEOF
20688 /* confdefs.h.  */
20689 _ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h.  */
20693 $ac_includes_default
20694 #include <krb.h>
20695 _ACEOF
20696 rm -f conftest.$ac_objext
20697 if { (ac_try="$ac_compile"
20698 case "(($ac_try" in
20699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700   *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703   (eval "$ac_compile") 2>conftest.er1
20704   ac_status=$?
20705   grep -v '^ *+' conftest.er1 >conftest.err
20706   rm -f conftest.er1
20707   cat conftest.err >&5
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); } && {
20710          test -z "$ac_c_werror_flag" ||
20711          test ! -s conftest.err
20712        } && test -s conftest.$ac_objext; then
20713   ac_header_compiler=yes
20714 else
20715   echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718         ac_header_compiler=no
20719 fi
20720
20721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20723 echo "${ECHO_T}$ac_header_compiler" >&6; }
20724
20725 # Is the header present?
20726 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20727 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h.  */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h.  */
20734 #include <krb.h>
20735 _ACEOF
20736 if { (ac_try="$ac_cpp conftest.$ac_ext"
20737 case "(($ac_try" in
20738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739   *) ac_try_echo=$ac_try;;
20740 esac
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20743   ac_status=$?
20744   grep -v '^ *+' conftest.er1 >conftest.err
20745   rm -f conftest.er1
20746   cat conftest.err >&5
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } >/dev/null && {
20749          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20750          test ! -s conftest.err
20751        }; then
20752   ac_header_preproc=yes
20753 else
20754   echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757   ac_header_preproc=no
20758 fi
20759
20760 rm -f conftest.err conftest.$ac_ext
20761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20762 echo "${ECHO_T}$ac_header_preproc" >&6; }
20763
20764 # So?  What about this header?
20765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20766   yes:no: )
20767     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20768 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20769     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20770 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20771     ac_header_preproc=yes
20772     ;;
20773   no:yes:* )
20774     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20775 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20776     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
20777 echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
20778     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20779 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20780     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
20781 echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20782     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20783 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20784     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20785 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20786     ( cat <<\_ASBOX
20787 ## --------------------------------------- ##
20788 ## Report this to http://www.sudo.ws/bugs/ ##
20789 ## --------------------------------------- ##
20790 _ASBOX
20791      ) | sed "s/^/$as_me: WARNING:     /" >&2
20792     ;;
20793 esac
20794 { echo "$as_me:$LINENO: checking for krb.h" >&5
20795 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20796 if test "${ac_cv_header_krb_h+set}" = set; then
20797   echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799   ac_cv_header_krb_h=$ac_header_preproc
20800 fi
20801 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20802 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20803
20804 fi
20805 if test $ac_cv_header_krb_h = yes; then
20806   found=yes
20807 else
20808   found=no
20809 fi
20810
20811
20812     fi
20813     if test X"$found" = X"no"; then
20814         { 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
20815 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;}
20816     fi
20817
20818                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20819 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20820 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20821   echo $ECHO_N "(cached) $ECHO_C" >&6
20822 else
20823   ac_check_lib_save_LIBS=$LIBS
20824 LIBS="-ldes  $LIBS"
20825 cat >conftest.$ac_ext <<_ACEOF
20826 /* confdefs.h.  */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h.  */
20831
20832 /* Override any GCC internal prototype to avoid an error.
20833    Use char because int might match the return type of a GCC
20834    builtin and then its argument prototype would still apply.  */
20835 #ifdef __cplusplus
20836 extern "C"
20837 #endif
20838 char des_cbc_encrypt ();
20839 int
20840 main ()
20841 {
20842 return des_cbc_encrypt ();
20843   ;
20844   return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851   *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854   (eval "$ac_link") 2>conftest.er1
20855   ac_status=$?
20856   grep -v '^ *+' conftest.er1 >conftest.err
20857   rm -f conftest.er1
20858   cat conftest.err >&5
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); } && {
20861          test -z "$ac_c_werror_flag" ||
20862          test ! -s conftest.err
20863        } && test -s conftest$ac_exeext &&
20864        $as_test_x conftest$ac_exeext; then
20865   ac_cv_lib_des_des_cbc_encrypt=yes
20866 else
20867   echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20869
20870         ac_cv_lib_des_des_cbc_encrypt=no
20871 fi
20872
20873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20874       conftest$ac_exeext conftest.$ac_ext
20875 LIBS=$ac_check_lib_save_LIBS
20876 fi
20877 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20878 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20879 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20880   K4LIBS="-ldes"
20881 else
20882
20883         { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20884 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20885 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20886   echo $ECHO_N "(cached) $ECHO_C" >&6
20887 else
20888   ac_check_lib_save_LIBS=$LIBS
20889 LIBS="-ldes425  $LIBS"
20890 cat >conftest.$ac_ext <<_ACEOF
20891 /* confdefs.h.  */
20892 _ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h.  */
20896
20897 /* Override any GCC internal prototype to avoid an error.
20898    Use char because int might match the return type of a GCC
20899    builtin and then its argument prototype would still apply.  */
20900 #ifdef __cplusplus
20901 extern "C"
20902 #endif
20903 char des_cbc_encrypt ();
20904 int
20905 main ()
20906 {
20907 return des_cbc_encrypt ();
20908   ;
20909   return 0;
20910 }
20911 _ACEOF
20912 rm -f conftest.$ac_objext conftest$ac_exeext
20913 if { (ac_try="$ac_link"
20914 case "(($ac_try" in
20915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916   *) ac_try_echo=$ac_try;;
20917 esac
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919   (eval "$ac_link") 2>conftest.er1
20920   ac_status=$?
20921   grep -v '^ *+' conftest.er1 >conftest.err
20922   rm -f conftest.er1
20923   cat conftest.err >&5
20924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925   (exit $ac_status); } && {
20926          test -z "$ac_c_werror_flag" ||
20927          test ! -s conftest.err
20928        } && test -s conftest$ac_exeext &&
20929        $as_test_x conftest$ac_exeext; then
20930   ac_cv_lib_des425_des_cbc_encrypt=yes
20931 else
20932   echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935         ac_cv_lib_des425_des_cbc_encrypt=no
20936 fi
20937
20938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20939       conftest$ac_exeext conftest.$ac_ext
20940 LIBS=$ac_check_lib_save_LIBS
20941 fi
20942 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20943 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20944 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20945   K4LIBS="-ldes425"
20946 else
20947   K4LIBS=""
20948 fi
20949
20950
20951 fi
20952
20953                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20954 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20955     cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h.  */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h.  */
20961 #include <krb.h>
20962 int
20963 main ()
20964 {
20965 const char *tmp = krb4_version;
20966   ;
20967   return 0;
20968 }
20969 _ACEOF
20970 rm -f conftest.$ac_objext
20971 if { (ac_try="$ac_compile"
20972 case "(($ac_try" in
20973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974   *) ac_try_echo=$ac_try;;
20975 esac
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977   (eval "$ac_compile") 2>conftest.er1
20978   ac_status=$?
20979   grep -v '^ *+' conftest.er1 >conftest.err
20980   rm -f conftest.er1
20981   cat conftest.err >&5
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); } && {
20984          test -z "$ac_c_werror_flag" ||
20985          test ! -s conftest.err
20986        } && test -s conftest.$ac_objext; then
20987
20988             { echo "$as_me:$LINENO: result: yes" >&5
20989 echo "${ECHO_T}yes" >&6; }
20990             K4LIBS="${K4LIBS} -lcom_err"
20991             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20992 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20993 if test "${ac_cv_lib_roken_main+set}" = set; then
20994   echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996   ac_check_lib_save_LIBS=$LIBS
20997 LIBS="-lroken  $LIBS"
20998 cat >conftest.$ac_ext <<_ACEOF
20999 /* confdefs.h.  */
21000 _ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h.  */
21004
21005
21006 int
21007 main ()
21008 {
21009 return main ();
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 rm -f conftest.$ac_objext conftest$ac_exeext
21015 if { (ac_try="$ac_link"
21016 case "(($ac_try" in
21017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018   *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021   (eval "$ac_link") 2>conftest.er1
21022   ac_status=$?
21023   grep -v '^ *+' conftest.er1 >conftest.err
21024   rm -f conftest.er1
21025   cat conftest.err >&5
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); } && {
21028          test -z "$ac_c_werror_flag" ||
21029          test ! -s conftest.err
21030        } && test -s conftest$ac_exeext &&
21031        $as_test_x conftest$ac_exeext; then
21032   ac_cv_lib_roken_main=yes
21033 else
21034   echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037         ac_cv_lib_roken_main=no
21038 fi
21039
21040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21041       conftest$ac_exeext conftest.$ac_ext
21042 LIBS=$ac_check_lib_save_LIBS
21043 fi
21044 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21045 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21046 if test $ac_cv_lib_roken_main = yes; then
21047   K4LIBS="${K4LIBS} -lroken"
21048 fi
21049
21050
21051 else
21052   echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21054
21055
21056             { echo "$as_me:$LINENO: result: no" >&5
21057 echo "${ECHO_T}no" >&6; }
21058
21059
21060 fi
21061
21062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21063                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
21064 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
21065 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
21066 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21067   echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21069   ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-lkrb $K4LIBS $LIBS"
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077
21078
21079 int
21080 main ()
21081 {
21082 return main ();
21083   ;
21084   return 0;
21085 }
21086 _ACEOF
21087 rm -f conftest.$ac_objext conftest$ac_exeext
21088 if { (ac_try="$ac_link"
21089 case "(($ac_try" in
21090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091   *) ac_try_echo=$ac_try;;
21092 esac
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094   (eval "$ac_link") 2>conftest.er1
21095   ac_status=$?
21096   grep -v '^ *+' conftest.er1 >conftest.err
21097   rm -f conftest.er1
21098   cat conftest.err >&5
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); } && {
21101          test -z "$ac_c_werror_flag" ||
21102          test ! -s conftest.err
21103        } && test -s conftest$ac_exeext &&
21104        $as_test_x conftest$ac_exeext; then
21105   eval "$as_ac_Lib=yes"
21106 else
21107   echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110         eval "$as_ac_Lib=no"
21111 fi
21112
21113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21114       conftest$ac_exeext conftest.$ac_ext
21115 LIBS=$ac_check_lib_save_LIBS
21116 fi
21117 ac_res=`eval echo '${'$as_ac_Lib'}'`
21118                { echo "$as_me:$LINENO: result: $ac_res" >&5
21119 echo "${ECHO_T}$ac_res" >&6; }
21120 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21121   K4LIBS="-lkrb $K4LIBS"
21122 else
21123
21124         as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
21125 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
21126 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
21127 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21128   echo $ECHO_N "(cached) $ECHO_C" >&6
21129 else
21130   ac_check_lib_save_LIBS=$LIBS
21131 LIBS="-lkrb4 $K4LIBS $LIBS"
21132 cat >conftest.$ac_ext <<_ACEOF
21133 /* confdefs.h.  */
21134 _ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h.  */
21138
21139
21140 int
21141 main ()
21142 {
21143 return main ();
21144   ;
21145   return 0;
21146 }
21147 _ACEOF
21148 rm -f conftest.$ac_objext conftest$ac_exeext
21149 if { (ac_try="$ac_link"
21150 case "(($ac_try" in
21151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152   *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155   (eval "$ac_link") 2>conftest.er1
21156   ac_status=$?
21157   grep -v '^ *+' conftest.er1 >conftest.err
21158   rm -f conftest.er1
21159   cat conftest.err >&5
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); } && {
21162          test -z "$ac_c_werror_flag" ||
21163          test ! -s conftest.err
21164        } && test -s conftest$ac_exeext &&
21165        $as_test_x conftest$ac_exeext; then
21166   eval "$as_ac_Lib=yes"
21167 else
21168   echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21170
21171         eval "$as_ac_Lib=no"
21172 fi
21173
21174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21175       conftest$ac_exeext conftest.$ac_ext
21176 LIBS=$ac_check_lib_save_LIBS
21177 fi
21178 ac_res=`eval echo '${'$as_ac_Lib'}'`
21179                { echo "$as_me:$LINENO: result: $ac_res" >&5
21180 echo "${ECHO_T}$ac_res" >&6; }
21181 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21182   K4LIBS="-lkrb4 $K4LIBS"
21183 else
21184   K4LIBS="-lkrb $K4LIBS"
21185             { 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
21186 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;}
21187
21188 fi
21189
21190
21191 fi
21192
21193     LDFLAGS="$O_LDFLAGS"
21194     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
21195     AUTH_OBJS="$AUTH_OBJS kerb4.o"
21196 fi
21197
21198 if test ${with_kerb5-'no'} != "no"; then
21199     # Extract the first word of "krb5-config", so it can be a program name with args.
21200 set dummy krb5-config; ac_word=$2
21201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21203 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
21204   echo $ECHO_N "(cached) $ECHO_C" >&6
21205 else
21206   if test -n "$KRB5CONFIG"; then
21207   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
21208 else
21209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21210 for as_dir in $PATH
21211 do
21212   IFS=$as_save_IFS
21213   test -z "$as_dir" && as_dir=.
21214   for ac_exec_ext in '' $ac_executable_extensions; do
21215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21216     ac_cv_prog_KRB5CONFIG="yes"
21217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21218     break 2
21219   fi
21220 done
21221 done
21222 IFS=$as_save_IFS
21223
21224   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
21225 fi
21226 fi
21227 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
21228 if test -n "$KRB5CONFIG"; then
21229   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
21230 echo "${ECHO_T}$KRB5CONFIG" >&6; }
21231 else
21232   { echo "$as_me:$LINENO: result: no" >&5
21233 echo "${ECHO_T}no" >&6; }
21234 fi
21235
21236
21237     if test -n "$KRB5CONFIG"; then
21238         cat >>confdefs.h <<\_ACEOF
21239 #define HAVE_KERB5 1
21240 _ACEOF
21241
21242         AUTH_OBJS="$AUTH_OBJS kerb5.o"
21243         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
21244         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
21245                                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21246 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21247         cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h.  */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h.  */
21253 #include <krb5.h>
21254 int
21255 main ()
21256 {
21257 const char *tmp = heimdal_version;
21258   ;
21259   return 0;
21260 }
21261 _ACEOF
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266   *) ac_try_echo=$ac_try;;
21267 esac
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269   (eval "$ac_compile") 2>conftest.er1
21270   ac_status=$?
21271   grep -v '^ *+' conftest.er1 >conftest.err
21272   rm -f conftest.er1
21273   cat conftest.err >&5
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } && {
21276          test -z "$ac_c_werror_flag" ||
21277          test ! -s conftest.err
21278        } && test -s conftest.$ac_objext; then
21279
21280                 { echo "$as_me:$LINENO: result: yes" >&5
21281 echo "${ECHO_T}yes" >&6; }
21282                 cat >>confdefs.h <<\_ACEOF
21283 #define HAVE_HEIMDAL 1
21284 _ACEOF
21285
21286
21287 else
21288   echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21290
21291
21292                 { echo "$as_me:$LINENO: result: no" >&5
21293 echo "${ECHO_T}no" >&6; }
21294
21295
21296 fi
21297
21298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21299     fi
21300 fi
21301 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21302     cat >>confdefs.h <<\_ACEOF
21303 #define HAVE_KERB5 1
21304 _ACEOF
21305
21306                 if test "$with_kerb5" = "yes"; then
21307         found=no
21308         O_CPPFLAGS="$CPPFLAGS"
21309         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21310             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21311             cat >conftest.$ac_ext <<_ACEOF
21312 #include <krb5.h>
21313 _ACEOF
21314 if { (ac_try="$ac_cpp conftest.$ac_ext"
21315 case "(($ac_try" in
21316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317   *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21321   ac_status=$?
21322   grep -v '^ *+' conftest.er1 >conftest.err
21323   rm -f conftest.er1
21324   cat conftest.err >&5
21325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326   (exit $ac_status); } >/dev/null && {
21327          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21328          test ! -s conftest.err
21329        }; then
21330   found=yes; break
21331 else
21332   echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21334
21335
21336 fi
21337
21338 rm -f conftest.err conftest.$ac_ext
21339         done
21340         if test X"$found" = X"no"; then
21341             CPPFLAGS="$O_CPPFLAGS"
21342             { 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
21343 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;}
21344         fi
21345     else
21346
21347     if test X"$with_rpath" = X"yes"; then
21348         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21349     else
21350         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21351     fi
21352     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21353         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21354     fi
21355
21356         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21357     fi
21358
21359                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21360 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21361     cat >conftest.$ac_ext <<_ACEOF
21362 /* confdefs.h.  */
21363 _ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h.  */
21367 #include <krb5.h>
21368 int
21369 main ()
21370 {
21371 const char *tmp = heimdal_version;
21372   ;
21373   return 0;
21374 }
21375 _ACEOF
21376 rm -f conftest.$ac_objext
21377 if { (ac_try="$ac_compile"
21378 case "(($ac_try" in
21379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380   *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383   (eval "$ac_compile") 2>conftest.er1
21384   ac_status=$?
21385   grep -v '^ *+' conftest.er1 >conftest.err
21386   rm -f conftest.er1
21387   cat conftest.err >&5
21388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389   (exit $ac_status); } && {
21390          test -z "$ac_c_werror_flag" ||
21391          test ! -s conftest.err
21392        } && test -s conftest.$ac_objext; then
21393
21394             { echo "$as_me:$LINENO: result: yes" >&5
21395 echo "${ECHO_T}yes" >&6; }
21396             cat >>confdefs.h <<\_ACEOF
21397 #define HAVE_HEIMDAL 1
21398 _ACEOF
21399
21400             # XXX - need to check whether -lcrypo is needed!
21401             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21402             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21403 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21404 if test "${ac_cv_lib_roken_main+set}" = set; then
21405   echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407   ac_check_lib_save_LIBS=$LIBS
21408 LIBS="-lroken  $LIBS"
21409 cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h.  */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h.  */
21415
21416
21417 int
21418 main ()
21419 {
21420 return main ();
21421   ;
21422   return 0;
21423 }
21424 _ACEOF
21425 rm -f conftest.$ac_objext conftest$ac_exeext
21426 if { (ac_try="$ac_link"
21427 case "(($ac_try" in
21428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429   *) ac_try_echo=$ac_try;;
21430 esac
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432   (eval "$ac_link") 2>conftest.er1
21433   ac_status=$?
21434   grep -v '^ *+' conftest.er1 >conftest.err
21435   rm -f conftest.er1
21436   cat conftest.err >&5
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); } && {
21439          test -z "$ac_c_werror_flag" ||
21440          test ! -s conftest.err
21441        } && test -s conftest$ac_exeext &&
21442        $as_test_x conftest$ac_exeext; then
21443   ac_cv_lib_roken_main=yes
21444 else
21445   echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21447
21448         ac_cv_lib_roken_main=no
21449 fi
21450
21451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21452       conftest$ac_exeext conftest.$ac_ext
21453 LIBS=$ac_check_lib_save_LIBS
21454 fi
21455 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21456 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21457 if test $ac_cv_lib_roken_main = yes; then
21458   SUDO_LIBS="${SUDO_LIBS} -lroken"
21459 fi
21460
21461
21462 else
21463   echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21465
21466
21467             { echo "$as_me:$LINENO: result: no" >&5
21468 echo "${ECHO_T}no" >&6; }
21469             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21470             { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21471 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21472 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21473   echo $ECHO_N "(cached) $ECHO_C" >&6
21474 else
21475   ac_check_lib_save_LIBS=$LIBS
21476 LIBS="-lkrb5support  $LIBS"
21477 cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h.  */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h.  */
21483
21484
21485 int
21486 main ()
21487 {
21488 return main ();
21489   ;
21490   return 0;
21491 }
21492 _ACEOF
21493 rm -f conftest.$ac_objext conftest$ac_exeext
21494 if { (ac_try="$ac_link"
21495 case "(($ac_try" in
21496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497   *) ac_try_echo=$ac_try;;
21498 esac
21499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500   (eval "$ac_link") 2>conftest.er1
21501   ac_status=$?
21502   grep -v '^ *+' conftest.er1 >conftest.err
21503   rm -f conftest.er1
21504   cat conftest.err >&5
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); } && {
21507          test -z "$ac_c_werror_flag" ||
21508          test ! -s conftest.err
21509        } && test -s conftest$ac_exeext &&
21510        $as_test_x conftest$ac_exeext; then
21511   ac_cv_lib_krb5support_main=yes
21512 else
21513   echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21515
21516         ac_cv_lib_krb5support_main=no
21517 fi
21518
21519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21520       conftest$ac_exeext conftest.$ac_ext
21521 LIBS=$ac_check_lib_save_LIBS
21522 fi
21523 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21524 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21525 if test $ac_cv_lib_krb5support_main = yes; then
21526   SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21527 fi
21528
21529
21530 fi
21531
21532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533     AUTH_OBJS="$AUTH_OBJS kerb5.o"
21534     _LIBS="$LIBS"
21535     LIBS="${LIBS} ${SUDO_LIBS}"
21536
21537
21538
21539 for ac_func in krb5_verify_user krb5_init_secure_context krb5_get_init_creds_opt_alloc
21540 do
21541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21545   echo $ECHO_N "(cached) $ECHO_C" >&6
21546 else
21547   cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21555 #define $ac_func innocuous_$ac_func
21556
21557 /* System header to define __stub macros and hopefully few prototypes,
21558     which can conflict with char $ac_func (); below.
21559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21560     <limits.h> exists even on freestanding compilers.  */
21561
21562 #ifdef __STDC__
21563 # include <limits.h>
21564 #else
21565 # include <assert.h>
21566 #endif
21567
21568 #undef $ac_func
21569
21570 /* Override any GCC internal prototype to avoid an error.
21571    Use char because int might match the return type of a GCC
21572    builtin and then its argument prototype would still apply.  */
21573 #ifdef __cplusplus
21574 extern "C"
21575 #endif
21576 char $ac_func ();
21577 /* The GNU C library defines this for functions which it implements
21578     to always fail with ENOSYS.  Some functions are actually named
21579     something starting with __ and the normal name is an alias.  */
21580 #if defined __stub_$ac_func || defined __stub___$ac_func
21581 choke me
21582 #endif
21583
21584 int
21585 main ()
21586 {
21587 return $ac_func ();
21588   ;
21589   return 0;
21590 }
21591 _ACEOF
21592 rm -f conftest.$ac_objext conftest$ac_exeext
21593 if { (ac_try="$ac_link"
21594 case "(($ac_try" in
21595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596   *) ac_try_echo=$ac_try;;
21597 esac
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599   (eval "$ac_link") 2>conftest.er1
21600   ac_status=$?
21601   grep -v '^ *+' conftest.er1 >conftest.err
21602   rm -f conftest.er1
21603   cat conftest.err >&5
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); } && {
21606          test -z "$ac_c_werror_flag" ||
21607          test ! -s conftest.err
21608        } && test -s conftest$ac_exeext &&
21609        $as_test_x conftest$ac_exeext; then
21610   eval "$as_ac_var=yes"
21611 else
21612   echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21614
21615         eval "$as_ac_var=no"
21616 fi
21617
21618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21619       conftest$ac_exeext conftest.$ac_ext
21620 fi
21621 ac_res=`eval echo '${'$as_ac_var'}'`
21622                { echo "$as_me:$LINENO: result: $ac_res" >&5
21623 echo "${ECHO_T}$ac_res" >&6; }
21624 if test `eval echo '${'$as_ac_var'}'` = yes; then
21625   cat >>confdefs.h <<_ACEOF
21626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21627 _ACEOF
21628
21629 fi
21630 done
21631
21632     { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a two argument2" >&5
21633 echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a two argument2... $ECHO_C" >&6; }
21634 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then
21635   echo $ECHO_N "(cached) $ECHO_C" >&6
21636 else
21637
21638             cat >conftest.$ac_ext <<_ACEOF
21639 /* confdefs.h.  */
21640 _ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h.  */
21644 #include <krb5.h>
21645 int
21646 main ()
21647 {
21648
21649                     krb5_context context = NULL;
21650                     krb5_get_init_creds_opt *opts = NULL;
21651                     krb5_get_init_creds_opt_free(context, opts);
21652
21653   ;
21654   return 0;
21655 }
21656 _ACEOF
21657 rm -f conftest.$ac_objext
21658 if { (ac_try="$ac_compile"
21659 case "(($ac_try" in
21660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661   *) ac_try_echo=$ac_try;;
21662 esac
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664   (eval "$ac_compile") 2>conftest.er1
21665   ac_status=$?
21666   grep -v '^ *+' conftest.er1 >conftest.err
21667   rm -f conftest.er1
21668   cat conftest.err >&5
21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670   (exit $ac_status); } && {
21671          test -z "$ac_c_werror_flag" ||
21672          test ! -s conftest.err
21673        } && test -s conftest.$ac_objext; then
21674   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
21675 else
21676   echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21678
21679         sudo_cv_krb5_get_init_creds_opt_free_two_args=no
21680
21681 fi
21682
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684
21685
21686 fi
21687 { echo "$as_me:$LINENO: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
21688 echo "${ECHO_T}$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
21689     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
21690         cat >>confdefs.h <<\_ACEOF
21691 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1
21692 _ACEOF
21693
21694     fi
21695     LIBS="$_LIBS"
21696 fi
21697
21698 if test ${with_AFS-'no'} = "yes"; then
21699
21700     # looks like the "standard" place for AFS libs is /usr/afsws/lib
21701     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21702     for i in $AFSLIBDIRS; do
21703         if test -d ${i}; then
21704
21705     if test X"$with_rpath" = X"yes"; then
21706         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21707     else
21708         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21709     fi
21710     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21711         blibpath_add="${blibpath_add}:$i"
21712     fi
21713
21714             FOUND_AFSLIBDIR=true
21715         fi
21716     done
21717     if test -z "$FOUND_AFSLIBDIR"; then
21718         { 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
21719 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;}
21720     fi
21721
21722     # Order is important here.  Note that we build AFS_LIBS from right to left
21723     # since AFS_LIBS may be initialized with BSD compat libs that must go last
21724     AFS_LIBS="-laudit ${AFS_LIBS}"
21725     for i in $AFSLIBDIRS; do
21726         if test -f ${i}/util.a; then
21727             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21728             FOUND_UTIL_A=true
21729             break;
21730         fi
21731     done
21732     if test -z "$FOUND_UTIL_A"; then
21733         AFS_LIBS="-lutil ${AFS_LIBS}"
21734     fi
21735     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21736
21737     # AFS includes may live in /usr/include on some machines...
21738     for i in /usr/afsws/include; do
21739         if test -d ${i}; then
21740             CPPFLAGS="${CPPFLAGS} -I${i}"
21741             FOUND_AFSINCDIR=true
21742         fi
21743     done
21744
21745     if test -z "$FOUND_AFSLIBDIR"; then
21746         { 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
21747 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;}
21748     fi
21749
21750     AUTH_OBJS="$AUTH_OBJS afs.o"
21751 fi
21752
21753 if test ${with_DCE-'no'} = "yes"; then
21754     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21755     SUDO_LIBS="${SUDO_LIBS} -ldce"
21756     AUTH_OBJS="$AUTH_OBJS dce.o"
21757 fi
21758
21759 if test ${with_skey-'no'} = "yes"; then
21760     O_LDFLAGS="$LDFLAGS"
21761     if test "$with_skey" != "yes"; then
21762         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21763
21764     if test X"$with_rpath" = X"yes"; then
21765         LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21766     else
21767         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21768     fi
21769     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21770         blibpath_add="${blibpath_add}:${with_skey}/lib"
21771     fi
21772
21773
21774     if test X"$with_rpath" = X"yes"; then
21775         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21776     else
21777         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21778     fi
21779     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21780         blibpath_add="${blibpath_add}:${with_skey}/lib"
21781     fi
21782
21783         cat >conftest.$ac_ext <<_ACEOF
21784 #include <skey.h>
21785 _ACEOF
21786 if { (ac_try="$ac_cpp conftest.$ac_ext"
21787 case "(($ac_try" in
21788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789   *) ac_try_echo=$ac_try;;
21790 esac
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21793   ac_status=$?
21794   grep -v '^ *+' conftest.er1 >conftest.err
21795   rm -f conftest.er1
21796   cat conftest.err >&5
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } >/dev/null && {
21799          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21800          test ! -s conftest.err
21801        }; then
21802   found=yes
21803 else
21804   echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21806
21807   found=no
21808 fi
21809
21810 rm -f conftest.err conftest.$ac_ext
21811     else
21812         found=no
21813         O_CPPFLAGS="$CPPFLAGS"
21814         for dir in "" "/usr/local" "/usr/contrib"; do
21815             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21816             cat >conftest.$ac_ext <<_ACEOF
21817 #include <skey.h>
21818 _ACEOF
21819 if { (ac_try="$ac_cpp conftest.$ac_ext"
21820 case "(($ac_try" in
21821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822   *) ac_try_echo=$ac_try;;
21823 esac
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21826   ac_status=$?
21827   grep -v '^ *+' conftest.er1 >conftest.err
21828   rm -f conftest.er1
21829   cat conftest.err >&5
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); } >/dev/null && {
21832          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21833          test ! -s conftest.err
21834        }; then
21835   found=yes; break
21836 else
21837   echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21839
21840
21841 fi
21842
21843 rm -f conftest.err conftest.$ac_ext
21844         done
21845         if test "$found" = "no" -o -z "$dir"; then
21846             CPPFLAGS="$O_CPPFLAGS"
21847         else
21848
21849     if test X"$with_rpath" = X"yes"; then
21850         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21851     else
21852         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21853     fi
21854     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21855         blibpath_add="${blibpath_add}:${dir}/lib"
21856     fi
21857
21858
21859     if test X"$with_rpath" = X"yes"; then
21860         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21861     else
21862         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21863     fi
21864     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21865         blibpath_add="${blibpath_add}:${dir}/lib"
21866     fi
21867
21868         fi
21869     fi
21870     if test "$found" = "no"; then
21871         { 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
21872 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;}
21873     fi
21874     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21875 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21876 if test "${ac_cv_lib_skey_main+set}" = set; then
21877   echo $ECHO_N "(cached) $ECHO_C" >&6
21878 else
21879   ac_check_lib_save_LIBS=$LIBS
21880 LIBS="-lskey  $LIBS"
21881 cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h.  */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h.  */
21887
21888
21889 int
21890 main ()
21891 {
21892 return main ();
21893   ;
21894   return 0;
21895 }
21896 _ACEOF
21897 rm -f conftest.$ac_objext conftest$ac_exeext
21898 if { (ac_try="$ac_link"
21899 case "(($ac_try" in
21900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901   *) ac_try_echo=$ac_try;;
21902 esac
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904   (eval "$ac_link") 2>conftest.er1
21905   ac_status=$?
21906   grep -v '^ *+' conftest.er1 >conftest.err
21907   rm -f conftest.er1
21908   cat conftest.err >&5
21909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910   (exit $ac_status); } && {
21911          test -z "$ac_c_werror_flag" ||
21912          test ! -s conftest.err
21913        } && test -s conftest$ac_exeext &&
21914        $as_test_x conftest$ac_exeext; then
21915   ac_cv_lib_skey_main=yes
21916 else
21917   echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21919
21920         ac_cv_lib_skey_main=no
21921 fi
21922
21923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21924       conftest$ac_exeext conftest.$ac_ext
21925 LIBS=$ac_check_lib_save_LIBS
21926 fi
21927 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21928 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21929 if test $ac_cv_lib_skey_main = yes; then
21930   found=yes
21931 else
21932   { 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
21933 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;}
21934 fi
21935
21936     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21937 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21938 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21939   echo $ECHO_N "(cached) $ECHO_C" >&6
21940 else
21941   ac_check_lib_save_LIBS=$LIBS
21942 LIBS="-lskey  $LIBS"
21943 cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h.  */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h.  */
21949
21950 /* Override any GCC internal prototype to avoid an error.
21951    Use char because int might match the return type of a GCC
21952    builtin and then its argument prototype would still apply.  */
21953 #ifdef __cplusplus
21954 extern "C"
21955 #endif
21956 char skeyaccess ();
21957 int
21958 main ()
21959 {
21960 return skeyaccess ();
21961   ;
21962   return 0;
21963 }
21964 _ACEOF
21965 rm -f conftest.$ac_objext conftest$ac_exeext
21966 if { (ac_try="$ac_link"
21967 case "(($ac_try" in
21968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969   *) ac_try_echo=$ac_try;;
21970 esac
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972   (eval "$ac_link") 2>conftest.er1
21973   ac_status=$?
21974   grep -v '^ *+' conftest.er1 >conftest.err
21975   rm -f conftest.er1
21976   cat conftest.err >&5
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); } && {
21979          test -z "$ac_c_werror_flag" ||
21980          test ! -s conftest.err
21981        } && test -s conftest$ac_exeext &&
21982        $as_test_x conftest$ac_exeext; then
21983   ac_cv_lib_skey_skeyaccess=yes
21984 else
21985   echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21987
21988         ac_cv_lib_skey_skeyaccess=no
21989 fi
21990
21991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21992       conftest$ac_exeext conftest.$ac_ext
21993 LIBS=$ac_check_lib_save_LIBS
21994 fi
21995 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21996 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21997 if test $ac_cv_lib_skey_skeyaccess = yes; then
21998   cat >>confdefs.h <<\_ACEOF
21999 #define HAVE_SKEYACCESS 1
22000 _ACEOF
22001
22002 fi
22003
22004     LDFLAGS="$O_LDFLAGS"
22005     SUDO_LIBS="${SUDO_LIBS} -lskey"
22006     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22007 fi
22008
22009 if test ${with_opie-'no'} = "yes"; then
22010     O_LDFLAGS="$LDFLAGS"
22011     if test "$with_opie" != "yes"; then
22012         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
22013
22014     if test X"$with_rpath" = X"yes"; then
22015         LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22016     else
22017         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
22018     fi
22019     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22020         blibpath_add="${blibpath_add}:${with_opie}/lib"
22021     fi
22022
22023
22024     if test X"$with_rpath" = X"yes"; then
22025         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22026     else
22027         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
22028     fi
22029     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22030         blibpath_add="${blibpath_add}:${with_opie}/lib"
22031     fi
22032
22033         cat >conftest.$ac_ext <<_ACEOF
22034 #include <opie.h>
22035 _ACEOF
22036 if { (ac_try="$ac_cpp conftest.$ac_ext"
22037 case "(($ac_try" in
22038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039   *) ac_try_echo=$ac_try;;
22040 esac
22041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22043   ac_status=$?
22044   grep -v '^ *+' conftest.er1 >conftest.err
22045   rm -f conftest.er1
22046   cat conftest.err >&5
22047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048   (exit $ac_status); } >/dev/null && {
22049          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22050          test ! -s conftest.err
22051        }; then
22052   found=yes
22053 else
22054   echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22056
22057   found=no
22058 fi
22059
22060 rm -f conftest.err conftest.$ac_ext
22061     else
22062         found=no
22063         O_CPPFLAGS="$CPPFLAGS"
22064         for dir in "" "/usr/local" "/usr/contrib"; do
22065             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
22066             cat >conftest.$ac_ext <<_ACEOF
22067 #include <opie.h>
22068 _ACEOF
22069 if { (ac_try="$ac_cpp conftest.$ac_ext"
22070 case "(($ac_try" in
22071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072   *) ac_try_echo=$ac_try;;
22073 esac
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22076   ac_status=$?
22077   grep -v '^ *+' conftest.er1 >conftest.err
22078   rm -f conftest.er1
22079   cat conftest.err >&5
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } >/dev/null && {
22082          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22083          test ! -s conftest.err
22084        }; then
22085   found=yes; break
22086 else
22087   echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22089
22090
22091 fi
22092
22093 rm -f conftest.err conftest.$ac_ext
22094         done
22095         if test "$found" = "no" -o -z "$dir"; then
22096             CPPFLAGS="$O_CPPFLAGS"
22097         else
22098
22099     if test X"$with_rpath" = X"yes"; then
22100         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
22101     else
22102         LDFLAGS="${LDFLAGS} -L${dir}/lib"
22103     fi
22104     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22105         blibpath_add="${blibpath_add}:${dir}/lib"
22106     fi
22107
22108
22109     if test X"$with_rpath" = X"yes"; then
22110         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
22111     else
22112         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
22113     fi
22114     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22115         blibpath_add="${blibpath_add}:${dir}/lib"
22116     fi
22117
22118         fi
22119     fi
22120     if test "$found" = "no"; then
22121         { 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
22122 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;}
22123     fi
22124     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
22125 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
22126 if test "${ac_cv_lib_opie_main+set}" = set; then
22127   echo $ECHO_N "(cached) $ECHO_C" >&6
22128 else
22129   ac_check_lib_save_LIBS=$LIBS
22130 LIBS="-lopie  $LIBS"
22131 cat >conftest.$ac_ext <<_ACEOF
22132 /* confdefs.h.  */
22133 _ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h.  */
22137
22138
22139 int
22140 main ()
22141 {
22142 return main ();
22143   ;
22144   return 0;
22145 }
22146 _ACEOF
22147 rm -f conftest.$ac_objext conftest$ac_exeext
22148 if { (ac_try="$ac_link"
22149 case "(($ac_try" in
22150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151   *) ac_try_echo=$ac_try;;
22152 esac
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154   (eval "$ac_link") 2>conftest.er1
22155   ac_status=$?
22156   grep -v '^ *+' conftest.er1 >conftest.err
22157   rm -f conftest.er1
22158   cat conftest.err >&5
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); } && {
22161          test -z "$ac_c_werror_flag" ||
22162          test ! -s conftest.err
22163        } && test -s conftest$ac_exeext &&
22164        $as_test_x conftest$ac_exeext; then
22165   ac_cv_lib_opie_main=yes
22166 else
22167   echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22169
22170         ac_cv_lib_opie_main=no
22171 fi
22172
22173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22174       conftest$ac_exeext conftest.$ac_ext
22175 LIBS=$ac_check_lib_save_LIBS
22176 fi
22177 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
22178 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
22179 if test $ac_cv_lib_opie_main = yes; then
22180   found=yes
22181 else
22182   { 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
22183 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;}
22184 fi
22185
22186     LDFLAGS="$O_LDFLAGS"
22187     SUDO_LIBS="${SUDO_LIBS} -lopie"
22188     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22189 fi
22190
22191 if test ${with_passwd-'no'} != "no"; then
22192                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
22193         { echo "$as_me:$LINENO: checking for library containing crypt" >&5
22194 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22195 if test "${ac_cv_search_crypt+set}" = set; then
22196   echo $ECHO_N "(cached) $ECHO_C" >&6
22197 else
22198   ac_func_search_save_LIBS=$LIBS
22199 cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h.  */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h.  */
22205
22206 /* Override any GCC internal prototype to avoid an error.
22207    Use char because int might match the return type of a GCC
22208    builtin and then its argument prototype would still apply.  */
22209 #ifdef __cplusplus
22210 extern "C"
22211 #endif
22212 char crypt ();
22213 int
22214 main ()
22215 {
22216 return crypt ();
22217   ;
22218   return 0;
22219 }
22220 _ACEOF
22221 for ac_lib in '' crypt crypt_d ufc; do
22222   if test -z "$ac_lib"; then
22223     ac_res="none required"
22224   else
22225     ac_res=-l$ac_lib
22226     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22227   fi
22228   rm -f conftest.$ac_objext conftest$ac_exeext
22229 if { (ac_try="$ac_link"
22230 case "(($ac_try" in
22231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232   *) ac_try_echo=$ac_try;;
22233 esac
22234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235   (eval "$ac_link") 2>conftest.er1
22236   ac_status=$?
22237   grep -v '^ *+' conftest.er1 >conftest.err
22238   rm -f conftest.er1
22239   cat conftest.err >&5
22240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241   (exit $ac_status); } && {
22242          test -z "$ac_c_werror_flag" ||
22243          test ! -s conftest.err
22244        } && test -s conftest$ac_exeext &&
22245        $as_test_x conftest$ac_exeext; then
22246   ac_cv_search_crypt=$ac_res
22247 else
22248   echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251
22252 fi
22253
22254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22255       conftest$ac_exeext
22256   if test "${ac_cv_search_crypt+set}" = set; then
22257   break
22258 fi
22259 done
22260 if test "${ac_cv_search_crypt+set}" = set; then
22261   :
22262 else
22263   ac_cv_search_crypt=no
22264 fi
22265 rm conftest.$ac_ext
22266 LIBS=$ac_func_search_save_LIBS
22267 fi
22268 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22269 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22270 ac_res=$ac_cv_search_crypt
22271 if test "$ac_res" != no; then
22272   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22273   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22274 fi
22275
22276     fi
22277
22278     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
22279         _LIBS="$LIBS"
22280         LIBS="$LIBS $shadow_libs"
22281         found=no
22282
22283 for ac_func in $shadow_funcs
22284 do
22285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22289   echo $ECHO_N "(cached) $ECHO_C" >&6
22290 else
22291   cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h.  */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h.  */
22297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22299 #define $ac_func innocuous_$ac_func
22300
22301 /* System header to define __stub macros and hopefully few prototypes,
22302     which can conflict with char $ac_func (); below.
22303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22304     <limits.h> exists even on freestanding compilers.  */
22305
22306 #ifdef __STDC__
22307 # include <limits.h>
22308 #else
22309 # include <assert.h>
22310 #endif
22311
22312 #undef $ac_func
22313
22314 /* Override any GCC internal prototype to avoid an error.
22315    Use char because int might match the return type of a GCC
22316    builtin and then its argument prototype would still apply.  */
22317 #ifdef __cplusplus
22318 extern "C"
22319 #endif
22320 char $ac_func ();
22321 /* The GNU C library defines this for functions which it implements
22322     to always fail with ENOSYS.  Some functions are actually named
22323     something starting with __ and the normal name is an alias.  */
22324 #if defined __stub_$ac_func || defined __stub___$ac_func
22325 choke me
22326 #endif
22327
22328 int
22329 main ()
22330 {
22331 return $ac_func ();
22332   ;
22333   return 0;
22334 }
22335 _ACEOF
22336 rm -f conftest.$ac_objext conftest$ac_exeext
22337 if { (ac_try="$ac_link"
22338 case "(($ac_try" in
22339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340   *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343   (eval "$ac_link") 2>conftest.er1
22344   ac_status=$?
22345   grep -v '^ *+' conftest.er1 >conftest.err
22346   rm -f conftest.er1
22347   cat conftest.err >&5
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } && {
22350          test -z "$ac_c_werror_flag" ||
22351          test ! -s conftest.err
22352        } && test -s conftest$ac_exeext &&
22353        $as_test_x conftest$ac_exeext; then
22354   eval "$as_ac_var=yes"
22355 else
22356   echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22358
22359         eval "$as_ac_var=no"
22360 fi
22361
22362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22363       conftest$ac_exeext conftest.$ac_ext
22364 fi
22365 ac_res=`eval echo '${'$as_ac_var'}'`
22366                { echo "$as_me:$LINENO: result: $ac_res" >&5
22367 echo "${ECHO_T}$ac_res" >&6; }
22368 if test `eval echo '${'$as_ac_var'}'` = yes; then
22369   cat >>confdefs.h <<_ACEOF
22370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22371 _ACEOF
22372  found=yes
22373 fi
22374 done
22375
22376         if test "$found" = "yes"; then
22377             SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22378         elif test -n "$shadow_libs_optional"; then
22379             LIBS="$LIBS $shadow_libs_optional"
22380
22381 for ac_func in $shadow_funcs
22382 do
22383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22387   echo $ECHO_N "(cached) $ECHO_C" >&6
22388 else
22389   cat >conftest.$ac_ext <<_ACEOF
22390 /* confdefs.h.  */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h.  */
22395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22397 #define $ac_func innocuous_$ac_func
22398
22399 /* System header to define __stub macros and hopefully few prototypes,
22400     which can conflict with char $ac_func (); below.
22401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22402     <limits.h> exists even on freestanding compilers.  */
22403
22404 #ifdef __STDC__
22405 # include <limits.h>
22406 #else
22407 # include <assert.h>
22408 #endif
22409
22410 #undef $ac_func
22411
22412 /* Override any GCC internal prototype to avoid an error.
22413    Use char because int might match the return type of a GCC
22414    builtin and then its argument prototype would still apply.  */
22415 #ifdef __cplusplus
22416 extern "C"
22417 #endif
22418 char $ac_func ();
22419 /* The GNU C library defines this for functions which it implements
22420     to always fail with ENOSYS.  Some functions are actually named
22421     something starting with __ and the normal name is an alias.  */
22422 #if defined __stub_$ac_func || defined __stub___$ac_func
22423 choke me
22424 #endif
22425
22426 int
22427 main ()
22428 {
22429 return $ac_func ();
22430   ;
22431   return 0;
22432 }
22433 _ACEOF
22434 rm -f conftest.$ac_objext conftest$ac_exeext
22435 if { (ac_try="$ac_link"
22436 case "(($ac_try" in
22437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438   *) ac_try_echo=$ac_try;;
22439 esac
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441   (eval "$ac_link") 2>conftest.er1
22442   ac_status=$?
22443   grep -v '^ *+' conftest.er1 >conftest.err
22444   rm -f conftest.er1
22445   cat conftest.err >&5
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); } && {
22448          test -z "$ac_c_werror_flag" ||
22449          test ! -s conftest.err
22450        } && test -s conftest$ac_exeext &&
22451        $as_test_x conftest$ac_exeext; then
22452   eval "$as_ac_var=yes"
22453 else
22454   echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22456
22457         eval "$as_ac_var=no"
22458 fi
22459
22460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22461       conftest$ac_exeext conftest.$ac_ext
22462 fi
22463 ac_res=`eval echo '${'$as_ac_var'}'`
22464                { echo "$as_me:$LINENO: result: $ac_res" >&5
22465 echo "${ECHO_T}$ac_res" >&6; }
22466 if test `eval echo '${'$as_ac_var'}'` = yes; then
22467   cat >>confdefs.h <<_ACEOF
22468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22469 _ACEOF
22470  found=yes
22471 fi
22472 done
22473
22474             if test "$found" = "yes"; then
22475                 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22476             fi
22477         fi
22478         if test "$found" = "yes"; then
22479             case "$shadow_funcs" in
22480                 *getprpwnam*) SECUREWARE=1;;
22481             esac
22482             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22483         else
22484             LIBS="$_LIBS"
22485         fi
22486         CHECKSHADOW=false
22487     fi
22488     if test "$CHECKSHADOW" = "true"; then
22489         { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22490 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22491 if test "${ac_cv_search_getspnam+set}" = set; then
22492   echo $ECHO_N "(cached) $ECHO_C" >&6
22493 else
22494   ac_func_search_save_LIBS=$LIBS
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h.  */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h.  */
22501
22502 /* Override any GCC internal prototype to avoid an error.
22503    Use char because int might match the return type of a GCC
22504    builtin and then its argument prototype would still apply.  */
22505 #ifdef __cplusplus
22506 extern "C"
22507 #endif
22508 char getspnam ();
22509 int
22510 main ()
22511 {
22512 return getspnam ();
22513   ;
22514   return 0;
22515 }
22516 _ACEOF
22517 for ac_lib in '' gen; do
22518   if test -z "$ac_lib"; then
22519     ac_res="none required"
22520   else
22521     ac_res=-l$ac_lib
22522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22523   fi
22524   rm -f conftest.$ac_objext conftest$ac_exeext
22525 if { (ac_try="$ac_link"
22526 case "(($ac_try" in
22527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528   *) ac_try_echo=$ac_try;;
22529 esac
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531   (eval "$ac_link") 2>conftest.er1
22532   ac_status=$?
22533   grep -v '^ *+' conftest.er1 >conftest.err
22534   rm -f conftest.er1
22535   cat conftest.err >&5
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); } && {
22538          test -z "$ac_c_werror_flag" ||
22539          test ! -s conftest.err
22540        } && test -s conftest$ac_exeext &&
22541        $as_test_x conftest$ac_exeext; then
22542   ac_cv_search_getspnam=$ac_res
22543 else
22544   echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22546
22547
22548 fi
22549
22550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22551       conftest$ac_exeext
22552   if test "${ac_cv_search_getspnam+set}" = set; then
22553   break
22554 fi
22555 done
22556 if test "${ac_cv_search_getspnam+set}" = set; then
22557   :
22558 else
22559   ac_cv_search_getspnam=no
22560 fi
22561 rm conftest.$ac_ext
22562 LIBS=$ac_func_search_save_LIBS
22563 fi
22564 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22565 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22566 ac_res=$ac_cv_search_getspnam
22567 if test "$ac_res" != no; then
22568   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22569   cat >>confdefs.h <<\_ACEOF
22570 #define HAVE_GETSPNAM 1
22571 _ACEOF
22572  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22573 fi
22574
22575     fi
22576     if test "$CHECKSHADOW" = "true"; then
22577         { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22578 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22579 if test "${ac_cv_search_getprpwnam+set}" = set; then
22580   echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582   ac_func_search_save_LIBS=$LIBS
22583 cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
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 getprpwnam ();
22597 int
22598 main ()
22599 {
22600 return getprpwnam ();
22601   ;
22602   return 0;
22603 }
22604 _ACEOF
22605 for ac_lib in '' sec security prot; do
22606   if test -z "$ac_lib"; then
22607     ac_res="none required"
22608   else
22609     ac_res=-l$ac_lib
22610     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22611   fi
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   ac_cv_search_getprpwnam=$ac_res
22631 else
22632   echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22634
22635
22636 fi
22637
22638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22639       conftest$ac_exeext
22640   if test "${ac_cv_search_getprpwnam+set}" = set; then
22641   break
22642 fi
22643 done
22644 if test "${ac_cv_search_getprpwnam+set}" = set; then
22645   :
22646 else
22647   ac_cv_search_getprpwnam=no
22648 fi
22649 rm conftest.$ac_ext
22650 LIBS=$ac_func_search_save_LIBS
22651 fi
22652 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22653 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22654 ac_res=$ac_cv_search_getprpwnam
22655 if test "$ac_res" != no; then
22656   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22657   cat >>confdefs.h <<\_ACEOF
22658 #define HAVE_GETPRPWNAM 1
22659 _ACEOF
22660  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22661 fi
22662
22663     fi
22664     if test -n "$SECUREWARE"; then
22665
22666
22667
22668 for ac_func in bigcrypt set_auth_parameters initprivs
22669 do
22670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22674   echo $ECHO_N "(cached) $ECHO_C" >&6
22675 else
22676   cat >conftest.$ac_ext <<_ACEOF
22677 /* confdefs.h.  */
22678 _ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h.  */
22682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22684 #define $ac_func innocuous_$ac_func
22685
22686 /* System header to define __stub macros and hopefully few prototypes,
22687     which can conflict with char $ac_func (); below.
22688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22689     <limits.h> exists even on freestanding compilers.  */
22690
22691 #ifdef __STDC__
22692 # include <limits.h>
22693 #else
22694 # include <assert.h>
22695 #endif
22696
22697 #undef $ac_func
22698
22699 /* Override any GCC internal prototype to avoid an error.
22700    Use char because int might match the return type of a GCC
22701    builtin and then its argument prototype would still apply.  */
22702 #ifdef __cplusplus
22703 extern "C"
22704 #endif
22705 char $ac_func ();
22706 /* The GNU C library defines this for functions which it implements
22707     to always fail with ENOSYS.  Some functions are actually named
22708     something starting with __ and the normal name is an alias.  */
22709 #if defined __stub_$ac_func || defined __stub___$ac_func
22710 choke me
22711 #endif
22712
22713 int
22714 main ()
22715 {
22716 return $ac_func ();
22717   ;
22718   return 0;
22719 }
22720 _ACEOF
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (ac_try="$ac_link"
22723 case "(($ac_try" in
22724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725   *) ac_try_echo=$ac_try;;
22726 esac
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728   (eval "$ac_link") 2>conftest.er1
22729   ac_status=$?
22730   grep -v '^ *+' conftest.er1 >conftest.err
22731   rm -f conftest.er1
22732   cat conftest.err >&5
22733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734   (exit $ac_status); } && {
22735          test -z "$ac_c_werror_flag" ||
22736          test ! -s conftest.err
22737        } && test -s conftest$ac_exeext &&
22738        $as_test_x conftest$ac_exeext; then
22739   eval "$as_ac_var=yes"
22740 else
22741   echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22743
22744         eval "$as_ac_var=no"
22745 fi
22746
22747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22748       conftest$ac_exeext conftest.$ac_ext
22749 fi
22750 ac_res=`eval echo '${'$as_ac_var'}'`
22751                { echo "$as_me:$LINENO: result: $ac_res" >&5
22752 echo "${ECHO_T}$ac_res" >&6; }
22753 if test `eval echo '${'$as_ac_var'}'` = yes; then
22754   cat >>confdefs.h <<_ACEOF
22755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22756 _ACEOF
22757
22758 fi
22759 done
22760
22761         AUTH_OBJS="$AUTH_OBJS secureware.o"
22762     fi
22763 fi
22764
22765 if test ${with_ldap-'no'} != "no"; then
22766     _LDFLAGS="$LDFLAGS"
22767     if test "$with_ldap" != "yes"; then
22768
22769     if test X"$with_rpath" = X"yes"; then
22770         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22771     else
22772         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22773     fi
22774     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22775         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22776     fi
22777
22778
22779     if test X"$with_rpath" = X"yes"; then
22780         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22781     else
22782         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22783     fi
22784     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22785         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22786     fi
22787
22788         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22789         with_ldap=yes
22790         LDAP=""
22791     fi
22792     SUDO_OBJS="${SUDO_OBJS} ldap.o"
22793
22794     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22795 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22796     LDAP_LIBS=""
22797     _LIBS="$LIBS"
22798     found=no
22799     for l in -lldap -llber '-lssl -lcrypto'; do
22800         LIBS="${LIBS} $l"
22801         LDAP_LIBS="${LDAP_LIBS} $l"
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 <sys/types.h>
22809         #include <lber.h>
22810         #include <ldap.h>
22811 int
22812 main ()
22813 {
22814 (void)ldap_init(0, 0)
22815   ;
22816   return 0;
22817 }
22818 _ACEOF
22819 rm -f conftest.$ac_objext conftest$ac_exeext
22820 if { (ac_try="$ac_link"
22821 case "(($ac_try" in
22822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823   *) ac_try_echo=$ac_try;;
22824 esac
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826   (eval "$ac_link") 2>conftest.er1
22827   ac_status=$?
22828   grep -v '^ *+' conftest.er1 >conftest.err
22829   rm -f conftest.er1
22830   cat conftest.err >&5
22831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832   (exit $ac_status); } && {
22833          test -z "$ac_c_werror_flag" ||
22834          test ! -s conftest.err
22835        } && test -s conftest$ac_exeext &&
22836        $as_test_x conftest$ac_exeext; then
22837   found=yes; break
22838 else
22839   echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22841
22842
22843 fi
22844
22845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22846       conftest$ac_exeext conftest.$ac_ext
22847     done
22848         if test "$found" = "no"; then
22849         LIBS="${_LIBS} -lldap"
22850         LDAP_LIBS="-lldap"
22851         { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22852 echo "${ECHO_T}not found, using -lldap" >&6; }
22853     else
22854         { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22855 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22856     fi
22857         OLIBS="$LIBS"
22858     { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22859 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22860 if test "${ac_cv_search_ber_set_option+set}" = set; then
22861   echo $ECHO_N "(cached) $ECHO_C" >&6
22862 else
22863   ac_func_search_save_LIBS=$LIBS
22864 cat >conftest.$ac_ext <<_ACEOF
22865 /* confdefs.h.  */
22866 _ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h.  */
22870
22871 /* Override any GCC internal prototype to avoid an error.
22872    Use char because int might match the return type of a GCC
22873    builtin and then its argument prototype would still apply.  */
22874 #ifdef __cplusplus
22875 extern "C"
22876 #endif
22877 char ber_set_option ();
22878 int
22879 main ()
22880 {
22881 return ber_set_option ();
22882   ;
22883   return 0;
22884 }
22885 _ACEOF
22886 for ac_lib in '' lber; do
22887   if test -z "$ac_lib"; then
22888     ac_res="none required"
22889   else
22890     ac_res=-l$ac_lib
22891     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22892   fi
22893   rm -f conftest.$ac_objext conftest$ac_exeext
22894 if { (ac_try="$ac_link"
22895 case "(($ac_try" in
22896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897   *) ac_try_echo=$ac_try;;
22898 esac
22899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22900   (eval "$ac_link") 2>conftest.er1
22901   ac_status=$?
22902   grep -v '^ *+' conftest.er1 >conftest.err
22903   rm -f conftest.er1
22904   cat conftest.err >&5
22905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906   (exit $ac_status); } && {
22907          test -z "$ac_c_werror_flag" ||
22908          test ! -s conftest.err
22909        } && test -s conftest$ac_exeext &&
22910        $as_test_x conftest$ac_exeext; then
22911   ac_cv_search_ber_set_option=$ac_res
22912 else
22913   echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22915
22916
22917 fi
22918
22919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22920       conftest$ac_exeext
22921   if test "${ac_cv_search_ber_set_option+set}" = set; then
22922   break
22923 fi
22924 done
22925 if test "${ac_cv_search_ber_set_option+set}" = set; then
22926   :
22927 else
22928   ac_cv_search_ber_set_option=no
22929 fi
22930 rm conftest.$ac_ext
22931 LIBS=$ac_func_search_save_LIBS
22932 fi
22933 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22934 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22935 ac_res=$ac_cv_search_ber_set_option
22936 if test "$ac_res" != no; then
22937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22938   found=yes
22939 else
22940   found=no
22941 fi
22942
22943     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22944         LDAP_LIBS="$LDAP_LIBS -llber"
22945     fi
22946         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22947 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22948     cat >conftest.$ac_ext <<_ACEOF
22949 /* confdefs.h.  */
22950 _ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h.  */
22954 #include <sys/types.h>
22955     #include <ldap.h>
22956 int
22957 main ()
22958 {
22959 (void)ldap_init(0, 0)
22960   ;
22961   return 0;
22962 }
22963 _ACEOF
22964 rm -f conftest.$ac_objext conftest$ac_exeext
22965 if { (ac_try="$ac_link"
22966 case "(($ac_try" in
22967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968   *) ac_try_echo=$ac_try;;
22969 esac
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971   (eval "$ac_link") 2>conftest.er1
22972   ac_status=$?
22973   grep -v '^ *+' conftest.er1 >conftest.err
22974   rm -f conftest.er1
22975   cat conftest.err >&5
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); } && {
22978          test -z "$ac_c_werror_flag" ||
22979          test ! -s conftest.err
22980        } && test -s conftest$ac_exeext &&
22981        $as_test_x conftest$ac_exeext; then
22982   { echo "$as_me:$LINENO: result: no" >&5
22983 echo "${ECHO_T}no" >&6; }
22984 else
22985   echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22987
22988
22989     { echo "$as_me:$LINENO: result: yes" >&5
22990 echo "${ECHO_T}yes" >&6; }
22991     cat >>confdefs.h <<\_ACEOF
22992 #define HAVE_LBER_H 1
22993 _ACEOF
22994
22995 fi
22996
22997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22998       conftest$ac_exeext conftest.$ac_ext
22999
23000
23001
23002 for ac_header in sasl/sasl.h sasl.h
23003 do
23004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23006   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23009   echo $ECHO_N "(cached) $ECHO_C" >&6
23010 fi
23011 ac_res=`eval echo '${'$as_ac_Header'}'`
23012                { echo "$as_me:$LINENO: result: $ac_res" >&5
23013 echo "${ECHO_T}$ac_res" >&6; }
23014 else
23015   # Is the header compilable?
23016 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23018 cat >conftest.$ac_ext <<_ACEOF
23019 /* confdefs.h.  */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h.  */
23024 $ac_includes_default
23025 #include <$ac_header>
23026 _ACEOF
23027 rm -f conftest.$ac_objext
23028 if { (ac_try="$ac_compile"
23029 case "(($ac_try" in
23030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031   *) ac_try_echo=$ac_try;;
23032 esac
23033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23034   (eval "$ac_compile") 2>conftest.er1
23035   ac_status=$?
23036   grep -v '^ *+' conftest.er1 >conftest.err
23037   rm -f conftest.er1
23038   cat conftest.err >&5
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); } && {
23041          test -z "$ac_c_werror_flag" ||
23042          test ! -s conftest.err
23043        } && test -s conftest.$ac_objext; then
23044   ac_header_compiler=yes
23045 else
23046   echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049         ac_header_compiler=no
23050 fi
23051
23052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23054 echo "${ECHO_T}$ac_header_compiler" >&6; }
23055
23056 # Is the header present?
23057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23059 cat >conftest.$ac_ext <<_ACEOF
23060 /* confdefs.h.  */
23061 _ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h.  */
23065 #include <$ac_header>
23066 _ACEOF
23067 if { (ac_try="$ac_cpp conftest.$ac_ext"
23068 case "(($ac_try" in
23069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23070   *) ac_try_echo=$ac_try;;
23071 esac
23072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23074   ac_status=$?
23075   grep -v '^ *+' conftest.er1 >conftest.err
23076   rm -f conftest.er1
23077   cat conftest.err >&5
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); } >/dev/null && {
23080          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23081          test ! -s conftest.err
23082        }; then
23083   ac_header_preproc=yes
23084 else
23085   echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23087
23088   ac_header_preproc=no
23089 fi
23090
23091 rm -f conftest.err conftest.$ac_ext
23092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23093 echo "${ECHO_T}$ac_header_preproc" >&6; }
23094
23095 # So?  What about this header?
23096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23097   yes:no: )
23098     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23102     ac_header_preproc=yes
23103     ;;
23104   no:yes:* )
23105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23107     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23108 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23109     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23111     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23112 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23115     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23117     ( cat <<\_ASBOX
23118 ## --------------------------------------- ##
23119 ## Report this to http://www.sudo.ws/bugs/ ##
23120 ## --------------------------------------- ##
23121 _ASBOX
23122      ) | sed "s/^/$as_me: WARNING:     /" >&2
23123     ;;
23124 esac
23125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23128   echo $ECHO_N "(cached) $ECHO_C" >&6
23129 else
23130   eval "$as_ac_Header=\$ac_header_preproc"
23131 fi
23132 ac_res=`eval echo '${'$as_ac_Header'}'`
23133                { echo "$as_me:$LINENO: result: $ac_res" >&5
23134 echo "${ECHO_T}$ac_res" >&6; }
23135
23136 fi
23137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23138   cat >>confdefs.h <<_ACEOF
23139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23140 _ACEOF
23141
23142 for ac_func in ldap_sasl_interactive_bind_s
23143 do
23144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23148   echo $ECHO_N "(cached) $ECHO_C" >&6
23149 else
23150   cat >conftest.$ac_ext <<_ACEOF
23151 /* confdefs.h.  */
23152 _ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h.  */
23156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23158 #define $ac_func innocuous_$ac_func
23159
23160 /* System header to define __stub macros and hopefully few prototypes,
23161     which can conflict with char $ac_func (); below.
23162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23163     <limits.h> exists even on freestanding compilers.  */
23164
23165 #ifdef __STDC__
23166 # include <limits.h>
23167 #else
23168 # include <assert.h>
23169 #endif
23170
23171 #undef $ac_func
23172
23173 /* Override any GCC internal prototype to avoid an error.
23174    Use char because int might match the return type of a GCC
23175    builtin and then its argument prototype would still apply.  */
23176 #ifdef __cplusplus
23177 extern "C"
23178 #endif
23179 char $ac_func ();
23180 /* The GNU C library defines this for functions which it implements
23181     to always fail with ENOSYS.  Some functions are actually named
23182     something starting with __ and the normal name is an alias.  */
23183 #if defined __stub_$ac_func || defined __stub___$ac_func
23184 choke me
23185 #endif
23186
23187 int
23188 main ()
23189 {
23190 return $ac_func ();
23191   ;
23192   return 0;
23193 }
23194 _ACEOF
23195 rm -f conftest.$ac_objext conftest$ac_exeext
23196 if { (ac_try="$ac_link"
23197 case "(($ac_try" in
23198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199   *) ac_try_echo=$ac_try;;
23200 esac
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202   (eval "$ac_link") 2>conftest.er1
23203   ac_status=$?
23204   grep -v '^ *+' conftest.er1 >conftest.err
23205   rm -f conftest.er1
23206   cat conftest.err >&5
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); } && {
23209          test -z "$ac_c_werror_flag" ||
23210          test ! -s conftest.err
23211        } && test -s conftest$ac_exeext &&
23212        $as_test_x conftest$ac_exeext; then
23213   eval "$as_ac_var=yes"
23214 else
23215   echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23217
23218         eval "$as_ac_var=no"
23219 fi
23220
23221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23222       conftest$ac_exeext conftest.$ac_ext
23223 fi
23224 ac_res=`eval echo '${'$as_ac_var'}'`
23225                { echo "$as_me:$LINENO: result: $ac_res" >&5
23226 echo "${ECHO_T}$ac_res" >&6; }
23227 if test `eval echo '${'$as_ac_var'}'` = yes; then
23228   cat >>confdefs.h <<_ACEOF
23229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23230 _ACEOF
23231
23232 fi
23233 done
23234
23235 else
23236   break
23237 fi
23238
23239 done
23240
23241
23242
23243 for ac_header in ldap_ssl.h mps/ldap_ssl.h
23244 do
23245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23249   echo $ECHO_N "(cached) $ECHO_C" >&6
23250 else
23251   cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h.  */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h.  */
23257 #include <ldap.h>
23258
23259 #include <$ac_header>
23260 _ACEOF
23261 rm -f conftest.$ac_objext
23262 if { (ac_try="$ac_compile"
23263 case "(($ac_try" in
23264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265   *) ac_try_echo=$ac_try;;
23266 esac
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268   (eval "$ac_compile") 2>conftest.er1
23269   ac_status=$?
23270   grep -v '^ *+' conftest.er1 >conftest.err
23271   rm -f conftest.er1
23272   cat conftest.err >&5
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); } && {
23275          test -z "$ac_c_werror_flag" ||
23276          test ! -s conftest.err
23277        } && test -s conftest.$ac_objext; then
23278   eval "$as_ac_Header=yes"
23279 else
23280   echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23282
23283         eval "$as_ac_Header=no"
23284 fi
23285
23286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23287 fi
23288 ac_res=`eval echo '${'$as_ac_Header'}'`
23289                { echo "$as_me:$LINENO: result: $ac_res" >&5
23290 echo "${ECHO_T}$ac_res" >&6; }
23291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23292   cat >>confdefs.h <<_ACEOF
23293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23294 _ACEOF
23295  break
23296 fi
23297
23298 done
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
23312 do
23313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23317   echo $ECHO_N "(cached) $ECHO_C" >&6
23318 else
23319   cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h.  */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h.  */
23325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23327 #define $ac_func innocuous_$ac_func
23328
23329 /* System header to define __stub macros and hopefully few prototypes,
23330     which can conflict with char $ac_func (); below.
23331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23332     <limits.h> exists even on freestanding compilers.  */
23333
23334 #ifdef __STDC__
23335 # include <limits.h>
23336 #else
23337 # include <assert.h>
23338 #endif
23339
23340 #undef $ac_func
23341
23342 /* Override any GCC internal prototype to avoid an error.
23343    Use char because int might match the return type of a GCC
23344    builtin and then its argument prototype would still apply.  */
23345 #ifdef __cplusplus
23346 extern "C"
23347 #endif
23348 char $ac_func ();
23349 /* The GNU C library defines this for functions which it implements
23350     to always fail with ENOSYS.  Some functions are actually named
23351     something starting with __ and the normal name is an alias.  */
23352 #if defined __stub_$ac_func || defined __stub___$ac_func
23353 choke me
23354 #endif
23355
23356 int
23357 main ()
23358 {
23359 return $ac_func ();
23360   ;
23361   return 0;
23362 }
23363 _ACEOF
23364 rm -f conftest.$ac_objext conftest$ac_exeext
23365 if { (ac_try="$ac_link"
23366 case "(($ac_try" in
23367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368   *) ac_try_echo=$ac_try;;
23369 esac
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371   (eval "$ac_link") 2>conftest.er1
23372   ac_status=$?
23373   grep -v '^ *+' conftest.er1 >conftest.err
23374   rm -f conftest.er1
23375   cat conftest.err >&5
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); } && {
23378          test -z "$ac_c_werror_flag" ||
23379          test ! -s conftest.err
23380        } && test -s conftest$ac_exeext &&
23381        $as_test_x conftest$ac_exeext; then
23382   eval "$as_ac_var=yes"
23383 else
23384   echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23386
23387         eval "$as_ac_var=no"
23388 fi
23389
23390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23391       conftest$ac_exeext conftest.$ac_ext
23392 fi
23393 ac_res=`eval echo '${'$as_ac_var'}'`
23394                { echo "$as_me:$LINENO: result: $ac_res" >&5
23395 echo "${ECHO_T}$ac_res" >&6; }
23396 if test `eval echo '${'$as_ac_var'}'` = yes; then
23397   cat >>confdefs.h <<_ACEOF
23398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23399 _ACEOF
23400
23401 fi
23402 done
23403
23404
23405     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
23406         { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
23407 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
23408 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
23409   echo $ECHO_N "(cached) $ECHO_C" >&6
23410 else
23411   ac_check_lib_save_LIBS=$LIBS
23412 LIBS="-lgssapi  $LIBS"
23413 cat >conftest.$ac_ext <<_ACEOF
23414 /* confdefs.h.  */
23415 _ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h.  */
23419
23420 /* Override any GCC internal prototype to avoid an error.
23421    Use char because int might match the return type of a GCC
23422    builtin and then its argument prototype would still apply.  */
23423 #ifdef __cplusplus
23424 extern "C"
23425 #endif
23426 char gss_krb5_ccache_name ();
23427 int
23428 main ()
23429 {
23430 return gss_krb5_ccache_name ();
23431   ;
23432   return 0;
23433 }
23434 _ACEOF
23435 rm -f conftest.$ac_objext conftest$ac_exeext
23436 if { (ac_try="$ac_link"
23437 case "(($ac_try" in
23438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439   *) ac_try_echo=$ac_try;;
23440 esac
23441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23442   (eval "$ac_link") 2>conftest.er1
23443   ac_status=$?
23444   grep -v '^ *+' conftest.er1 >conftest.err
23445   rm -f conftest.er1
23446   cat conftest.err >&5
23447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448   (exit $ac_status); } && {
23449          test -z "$ac_c_werror_flag" ||
23450          test ! -s conftest.err
23451        } && test -s conftest$ac_exeext &&
23452        $as_test_x conftest$ac_exeext; then
23453   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
23454 else
23455   echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23457
23458         ac_cv_lib_gssapi_gss_krb5_ccache_name=no
23459 fi
23460
23461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23462       conftest$ac_exeext conftest.$ac_ext
23463 LIBS=$ac_check_lib_save_LIBS
23464 fi
23465 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
23466 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
23467 if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
23468   cat >>confdefs.h <<\_ACEOF
23469 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23470 _ACEOF
23471
23472             LDAP_LIBS="${LDAP_LIBS} -lgssapi"
23473 else
23474   { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
23475 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
23476 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
23477   echo $ECHO_N "(cached) $ECHO_C" >&6
23478 else
23479   ac_check_lib_save_LIBS=$LIBS
23480 LIBS="-lgssapi_krb5  $LIBS"
23481 cat >conftest.$ac_ext <<_ACEOF
23482 /* confdefs.h.  */
23483 _ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h.  */
23487
23488 /* Override any GCC internal prototype to avoid an error.
23489    Use char because int might match the return type of a GCC
23490    builtin and then its argument prototype would still apply.  */
23491 #ifdef __cplusplus
23492 extern "C"
23493 #endif
23494 char gss_krb5_ccache_name ();
23495 int
23496 main ()
23497 {
23498 return gss_krb5_ccache_name ();
23499   ;
23500   return 0;
23501 }
23502 _ACEOF
23503 rm -f conftest.$ac_objext conftest$ac_exeext
23504 if { (ac_try="$ac_link"
23505 case "(($ac_try" in
23506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507   *) ac_try_echo=$ac_try;;
23508 esac
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510   (eval "$ac_link") 2>conftest.er1
23511   ac_status=$?
23512   grep -v '^ *+' conftest.er1 >conftest.err
23513   rm -f conftest.er1
23514   cat conftest.err >&5
23515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516   (exit $ac_status); } && {
23517          test -z "$ac_c_werror_flag" ||
23518          test ! -s conftest.err
23519        } && test -s conftest$ac_exeext &&
23520        $as_test_x conftest$ac_exeext; then
23521   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
23522 else
23523   echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23525
23526         ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
23527 fi
23528
23529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23530       conftest$ac_exeext conftest.$ac_ext
23531 LIBS=$ac_check_lib_save_LIBS
23532 fi
23533 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
23534 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
23535 if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
23536   cat >>confdefs.h <<\_ACEOF
23537 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23538 _ACEOF
23539
23540                 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
23541 fi
23542
23543
23544 fi
23545
23546
23547         # gssapi headers may be separate or part of Kerberos V
23548         found=no
23549         O_CPPFLAGS="$CPPFLAGS"
23550         for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
23551             test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
23552             cat >conftest.$ac_ext <<_ACEOF
23553 #include <gssapi/gssapi.h>
23554 _ACEOF
23555 if { (ac_try="$ac_cpp conftest.$ac_ext"
23556 case "(($ac_try" in
23557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558   *) ac_try_echo=$ac_try;;
23559 esac
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23562   ac_status=$?
23563   grep -v '^ *+' conftest.er1 >conftest.err
23564   rm -f conftest.er1
23565   cat conftest.err >&5
23566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567   (exit $ac_status); } >/dev/null && {
23568          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23569          test ! -s conftest.err
23570        }; then
23571   found="gssapi/gssapi.h"; break
23572 else
23573   echo "$as_me: failed program was:" >&5
23574 sed 's/^/| /' conftest.$ac_ext >&5
23575
23576   cat >conftest.$ac_ext <<_ACEOF
23577 #include <gssapi.h>
23578 _ACEOF
23579 if { (ac_try="$ac_cpp conftest.$ac_ext"
23580 case "(($ac_try" in
23581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582   *) ac_try_echo=$ac_try;;
23583 esac
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23586   ac_status=$?
23587   grep -v '^ *+' conftest.er1 >conftest.err
23588   rm -f conftest.er1
23589   cat conftest.err >&5
23590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591   (exit $ac_status); } >/dev/null && {
23592          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23593          test ! -s conftest.err
23594        }; then
23595   found="gssapi.h"; break
23596 else
23597   echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23599
23600
23601 fi
23602
23603 rm -f conftest.err conftest.$ac_ext
23604 fi
23605
23606 rm -f conftest.err conftest.$ac_ext
23607         done
23608         if test X"$found" != X"no"; then
23609
23610 for ac_header in $found
23611 do
23612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23614   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23617   echo $ECHO_N "(cached) $ECHO_C" >&6
23618 fi
23619 ac_res=`eval echo '${'$as_ac_Header'}'`
23620                { echo "$as_me:$LINENO: result: $ac_res" >&5
23621 echo "${ECHO_T}$ac_res" >&6; }
23622 else
23623   # Is the header compilable?
23624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23626 cat >conftest.$ac_ext <<_ACEOF
23627 /* confdefs.h.  */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h.  */
23632 $ac_includes_default
23633 #include <$ac_header>
23634 _ACEOF
23635 rm -f conftest.$ac_objext
23636 if { (ac_try="$ac_compile"
23637 case "(($ac_try" in
23638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639   *) ac_try_echo=$ac_try;;
23640 esac
23641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23642   (eval "$ac_compile") 2>conftest.er1
23643   ac_status=$?
23644   grep -v '^ *+' conftest.er1 >conftest.err
23645   rm -f conftest.er1
23646   cat conftest.err >&5
23647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); } && {
23649          test -z "$ac_c_werror_flag" ||
23650          test ! -s conftest.err
23651        } && test -s conftest.$ac_objext; then
23652   ac_header_compiler=yes
23653 else
23654   echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23656
23657         ac_header_compiler=no
23658 fi
23659
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23662 echo "${ECHO_T}$ac_header_compiler" >&6; }
23663
23664 # Is the header present?
23665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23667 cat >conftest.$ac_ext <<_ACEOF
23668 /* confdefs.h.  */
23669 _ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h.  */
23673 #include <$ac_header>
23674 _ACEOF
23675 if { (ac_try="$ac_cpp conftest.$ac_ext"
23676 case "(($ac_try" in
23677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678   *) ac_try_echo=$ac_try;;
23679 esac
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23682   ac_status=$?
23683   grep -v '^ *+' conftest.er1 >conftest.err
23684   rm -f conftest.er1
23685   cat conftest.err >&5
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); } >/dev/null && {
23688          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23689          test ! -s conftest.err
23690        }; then
23691   ac_header_preproc=yes
23692 else
23693   echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23695
23696   ac_header_preproc=no
23697 fi
23698
23699 rm -f conftest.err conftest.$ac_ext
23700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23701 echo "${ECHO_T}$ac_header_preproc" >&6; }
23702
23703 # So?  What about this header?
23704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23705   yes:no: )
23706     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23710     ac_header_preproc=yes
23711     ;;
23712   no:yes:* )
23713     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23715     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23716 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23717     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23719     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23720 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23723     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23725     ( cat <<\_ASBOX
23726 ## --------------------------------------- ##
23727 ## Report this to http://www.sudo.ws/bugs/ ##
23728 ## --------------------------------------- ##
23729 _ASBOX
23730      ) | sed "s/^/$as_me: WARNING:     /" >&2
23731     ;;
23732 esac
23733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23736   echo $ECHO_N "(cached) $ECHO_C" >&6
23737 else
23738   eval "$as_ac_Header=\$ac_header_preproc"
23739 fi
23740 ac_res=`eval echo '${'$as_ac_Header'}'`
23741                { echo "$as_me:$LINENO: result: $ac_res" >&5
23742 echo "${ECHO_T}$ac_res" >&6; }
23743
23744 fi
23745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23746   cat >>confdefs.h <<_ACEOF
23747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23748 _ACEOF
23749
23750 fi
23751
23752 done
23753
23754             if test X"$found" = X"gssapi/gssapi.h"; then
23755
23756 for ac_header in gssapi/gssapi_krb5.h
23757 do
23758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23760   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23763   echo $ECHO_N "(cached) $ECHO_C" >&6
23764 fi
23765 ac_res=`eval echo '${'$as_ac_Header'}'`
23766                { echo "$as_me:$LINENO: result: $ac_res" >&5
23767 echo "${ECHO_T}$ac_res" >&6; }
23768 else
23769   # Is the header compilable?
23770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23772 cat >conftest.$ac_ext <<_ACEOF
23773 /* confdefs.h.  */
23774 _ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h.  */
23778 $ac_includes_default
23779 #include <$ac_header>
23780 _ACEOF
23781 rm -f conftest.$ac_objext
23782 if { (ac_try="$ac_compile"
23783 case "(($ac_try" in
23784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23785   *) ac_try_echo=$ac_try;;
23786 esac
23787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23788   (eval "$ac_compile") 2>conftest.er1
23789   ac_status=$?
23790   grep -v '^ *+' conftest.er1 >conftest.err
23791   rm -f conftest.er1
23792   cat conftest.err >&5
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); } && {
23795          test -z "$ac_c_werror_flag" ||
23796          test ! -s conftest.err
23797        } && test -s conftest.$ac_objext; then
23798   ac_header_compiler=yes
23799 else
23800   echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23802
23803         ac_header_compiler=no
23804 fi
23805
23806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23808 echo "${ECHO_T}$ac_header_compiler" >&6; }
23809
23810 # Is the header present?
23811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23813 cat >conftest.$ac_ext <<_ACEOF
23814 /* confdefs.h.  */
23815 _ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h.  */
23819 #include <$ac_header>
23820 _ACEOF
23821 if { (ac_try="$ac_cpp conftest.$ac_ext"
23822 case "(($ac_try" in
23823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824   *) ac_try_echo=$ac_try;;
23825 esac
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23828   ac_status=$?
23829   grep -v '^ *+' conftest.er1 >conftest.err
23830   rm -f conftest.er1
23831   cat conftest.err >&5
23832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833   (exit $ac_status); } >/dev/null && {
23834          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23835          test ! -s conftest.err
23836        }; then
23837   ac_header_preproc=yes
23838 else
23839   echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23841
23842   ac_header_preproc=no
23843 fi
23844
23845 rm -f conftest.err conftest.$ac_ext
23846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23847 echo "${ECHO_T}$ac_header_preproc" >&6; }
23848
23849 # So?  What about this header?
23850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23851   yes:no: )
23852     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23856     ac_header_preproc=yes
23857     ;;
23858   no:yes:* )
23859     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23861     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23862 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23863     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23865     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23866 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23869     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23871     ( cat <<\_ASBOX
23872 ## --------------------------------------- ##
23873 ## Report this to http://www.sudo.ws/bugs/ ##
23874 ## --------------------------------------- ##
23875 _ASBOX
23876      ) | sed "s/^/$as_me: WARNING:     /" >&2
23877     ;;
23878 esac
23879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23882   echo $ECHO_N "(cached) $ECHO_C" >&6
23883 else
23884   eval "$as_ac_Header=\$ac_header_preproc"
23885 fi
23886 ac_res=`eval echo '${'$as_ac_Header'}'`
23887                { echo "$as_me:$LINENO: result: $ac_res" >&5
23888 echo "${ECHO_T}$ac_res" >&6; }
23889
23890 fi
23891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23892   cat >>confdefs.h <<_ACEOF
23893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23894 _ACEOF
23895
23896 fi
23897
23898 done
23899
23900             fi
23901         else
23902             CPPFLAGS="$O_CPPFLAGS"
23903             { 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
23904 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;}
23905         fi
23906     fi
23907
23908     SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
23909     LIBS="$_LIBS"
23910     LDFLAGS="$_LDFLAGS"
23911 fi
23912
23913 if test X"$LIBVAS_RPATH" != X""; then
23914     if test -n "$blibpath"; then
23915         blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
23916     else
23917         LDFLAGS="$LDFLAGS -R$LIBVAS_RPATH"
23918     fi
23919 fi
23920
23921 if test -n "$blibpath"; then
23922     if test -n "$blibpath_add"; then
23923         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
23924     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
23925         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
23926     fi
23927 fi
23928
23929 { echo "$as_me:$LINENO: checking for log file location" >&5
23930 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
23931 if test -n "$with_logpath"; then
23932     { echo "$as_me:$LINENO: result: $with_logpath" >&5
23933 echo "${ECHO_T}$with_logpath" >&6; }
23934     cat >>confdefs.h <<EOF
23935 #define _PATH_SUDO_LOGFILE "$with_logpath"
23936 EOF
23937
23938 elif test -d "/var/log"; then
23939     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
23940 echo "${ECHO_T}/var/log/sudo.log" >&6; }
23941     cat >>confdefs.h <<\EOF
23942 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
23943 EOF
23944
23945 elif test -d "/var/adm"; then
23946     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
23947 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
23948     cat >>confdefs.h <<\EOF
23949 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
23950 EOF
23951
23952 elif test -d "/usr/adm"; then
23953     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
23954 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
23955     cat >>confdefs.h <<\EOF
23956 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
23957 EOF
23958
23959 else
23960     { echo "$as_me:$LINENO: result: unknown" >&5
23961 echo "${ECHO_T}unknown" >&6; }
23962 fi
23963
23964 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
23965 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
23966 if test -n "$with_timedir"; then
23967     { echo "$as_me:$LINENO: result: $with_timedir" >&5
23968 echo "${ECHO_T}$with_timedir" >&6; }
23969     cat >>confdefs.h <<EOF
23970 #define _PATH_SUDO_TIMEDIR "$with_timedir"
23971 EOF
23972
23973     timedir="$with_timedir"
23974 elif test -d "/var/run"; then
23975     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
23976 echo "${ECHO_T}/var/run/sudo" >&6; }
23977     cat >>confdefs.h <<\EOF
23978 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
23979 EOF
23980
23981     timedir="/var/run/sudo"
23982 elif test -d "/var/adm"; then
23983     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
23984 echo "${ECHO_T}/var/adm/sudo" >&6; }
23985     cat >>confdefs.h <<\EOF
23986 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
23987 EOF
23988
23989     timedir="/var/adm/sudo"
23990 else
23991     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
23992 echo "${ECHO_T}/usr/adm/sudo" >&6; }
23993     cat >>confdefs.h <<\EOF
23994 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
23995 EOF
23996
23997     timedir="/usr/adm/sudo"
23998 fi
23999
24000
24001 case "$with_passwd" in
24002 yes|maybe)
24003     AUTH_OBJS="$AUTH_OBJS passwd.o"
24004     ;;
24005 *)
24006     cat >>confdefs.h <<\_ACEOF
24007 #define WITHOUT_PASSWD 1
24008 _ACEOF
24009
24010     if test -z "$AUTH_OBJS"; then
24011         { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
24012 echo "$as_me: error: no authentication methods defined." >&2;}
24013    { (exit 1); exit 1; }; }
24014     fi
24015     ;;
24016 esac
24017 AUTH_OBJS=${AUTH_OBJS# }
24018 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
24019 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
24020 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
24021
24022 if test -n "$LIBS"; then
24023     L="$LIBS"
24024     LIBS=
24025     for l in ${L}; do
24026         dupe=0
24027         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
24028             test $l = $sl && dupe=1
24029         done
24030         test $dupe = 0 && LIBS="${LIBS} $l"
24031     done
24032 fi
24033
24034 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
24035
24036 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
24037     oexec_prefix="$exec_prefix"
24038     if test "$exec_prefix" = '$(prefix)'; then
24039         if test "$prefix" = "NONE"; then
24040             exec_prefix="$ac_default_prefix"
24041         else
24042             exec_prefix="$prefix"
24043         fi
24044     fi
24045     if test X"$with_noexec" != X"no"; then
24046         PROGS="${PROGS} sudo_noexec.la"
24047         INSTALL_NOEXEC="install-noexec"
24048
24049         eval noexec_file="$with_noexec"
24050
24051 cat >>confdefs.h <<_ACEOF
24052 #define _PATH_SUDO_NOEXEC "$noexec_file"
24053 _ACEOF
24054
24055     fi
24056     if test X"$with_selinux" != X"no"; then
24057         eval sesh_file="$libexecdir/sesh"
24058
24059 cat >>confdefs.h <<_ACEOF
24060 #define _PATH_SUDO_SESH "$sesh_file"
24061 _ACEOF
24062
24063     fi
24064     exec_prefix="$oexec_prefix"
24065 fi
24066
24067 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudo_usage.h"
24068
24069 cat >confcache <<\_ACEOF
24070 # This file is a shell script that caches the results of configure
24071 # tests run on this system so they can be shared between configure
24072 # scripts and configure runs, see configure's option --config-cache.
24073 # It is not useful on other systems.  If it contains results you don't
24074 # want to keep, you may remove or edit it.
24075 #
24076 # config.status only pays attention to the cache file if you give it
24077 # the --recheck option to rerun configure.
24078 #
24079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24081 # following values.
24082
24083 _ACEOF
24084
24085 # The following way of writing the cache mishandles newlines in values,
24086 # but we know of no workaround that is simple, portable, and efficient.
24087 # So, we kill variables containing newlines.
24088 # Ultrix sh set writes to stderr and can't be redirected directly,
24089 # and sets the high bit in the cache file unless we assign to the vars.
24090 (
24091   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24092     eval ac_val=\$$ac_var
24093     case $ac_val in #(
24094     *${as_nl}*)
24095       case $ac_var in #(
24096       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24097 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24098       esac
24099       case $ac_var in #(
24100       _ | IFS | as_nl) ;; #(
24101       *) $as_unset $ac_var ;;
24102       esac ;;
24103     esac
24104   done
24105
24106   (set) 2>&1 |
24107     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24108     *${as_nl}ac_space=\ *)
24109       # `set' does not quote correctly, so add quotes (double-quote
24110       # substitution turns \\\\ into \\, and sed turns \\ into \).
24111       sed -n \
24112         "s/'/'\\\\''/g;
24113           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24114       ;; #(
24115     *)
24116       # `set' quotes correctly as required by POSIX, so do not add quotes.
24117       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24118       ;;
24119     esac |
24120     sort
24121 ) |
24122   sed '
24123      /^ac_cv_env_/b end
24124      t clear
24125      :clear
24126      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24127      t end
24128      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24129      :end' >>confcache
24130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24131   if test -w "$cache_file"; then
24132     test "x$cache_file" != "x/dev/null" &&
24133       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24134 echo "$as_me: updating cache $cache_file" >&6;}
24135     cat confcache >$cache_file
24136   else
24137     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24138 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24139   fi
24140 fi
24141 rm -f confcache
24142
24143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24144 # Let make expand exec_prefix.
24145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24146
24147 DEFS=-DHAVE_CONFIG_H
24148
24149 ac_libobjs=
24150 ac_ltlibobjs=
24151 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24152   # 1. Remove the extension, and $U if already installed.
24153   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24154   ac_i=`echo "$ac_i" | sed "$ac_script"`
24155   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24156   #    will be set to the directory where LIBOBJS objects are built.
24157   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24158   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24159 done
24160 LIBOBJS=$ac_libobjs
24161
24162 LTLIBOBJS=$ac_ltlibobjs
24163
24164
24165
24166 : ${CONFIG_STATUS=./config.status}
24167 ac_clean_files_save=$ac_clean_files
24168 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24169 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24171 cat >$CONFIG_STATUS <<_ACEOF
24172 #! $SHELL
24173 # Generated by $as_me.
24174 # Run this file to recreate the current configuration.
24175 # Compiler output produced by configure, useful for debugging
24176 # configure, is in config.log if it exists.
24177
24178 debug=false
24179 ac_cs_recheck=false
24180 ac_cs_silent=false
24181 SHELL=\${CONFIG_SHELL-$SHELL}
24182 _ACEOF
24183
24184 cat >>$CONFIG_STATUS <<\_ACEOF
24185 ## --------------------- ##
24186 ## M4sh Initialization.  ##
24187 ## --------------------- ##
24188
24189 # Be more Bourne compatible
24190 DUALCASE=1; export DUALCASE # for MKS sh
24191 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24192   emulate sh
24193   NULLCMD=:
24194   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24195   # is contrary to our usage.  Disable this feature.
24196   alias -g '${1+"$@"}'='"$@"'
24197   setopt NO_GLOB_SUBST
24198 else
24199   case `(set -o) 2>/dev/null` in
24200   *posix*) set -o posix ;;
24201 esac
24202
24203 fi
24204
24205
24206
24207
24208 # PATH needs CR
24209 # Avoid depending upon Character Ranges.
24210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24213 as_cr_digits='0123456789'
24214 as_cr_alnum=$as_cr_Letters$as_cr_digits
24215
24216 # The user is always right.
24217 if test "${PATH_SEPARATOR+set}" != set; then
24218   echo "#! /bin/sh" >conf$$.sh
24219   echo  "exit 0"   >>conf$$.sh
24220   chmod +x conf$$.sh
24221   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24222     PATH_SEPARATOR=';'
24223   else
24224     PATH_SEPARATOR=:
24225   fi
24226   rm -f conf$$.sh
24227 fi
24228
24229 # Support unset when possible.
24230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24231   as_unset=unset
24232 else
24233   as_unset=false
24234 fi
24235
24236
24237 # IFS
24238 # We need space, tab and new line, in precisely that order.  Quoting is
24239 # there to prevent editors from complaining about space-tab.
24240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24241 # splitting by setting IFS to empty value.)
24242 as_nl='
24243 '
24244 IFS=" ""        $as_nl"
24245
24246 # Find who we are.  Look in the path if we contain no directory separator.
24247 case $0 in
24248   *[\\/]* ) as_myself=$0 ;;
24249   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24250 for as_dir in $PATH
24251 do
24252   IFS=$as_save_IFS
24253   test -z "$as_dir" && as_dir=.
24254   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24255 done
24256 IFS=$as_save_IFS
24257
24258      ;;
24259 esac
24260 # We did not find ourselves, most probably we were run as `sh COMMAND'
24261 # in which case we are not to be found in the path.
24262 if test "x$as_myself" = x; then
24263   as_myself=$0
24264 fi
24265 if test ! -f "$as_myself"; then
24266   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24267   { (exit 1); exit 1; }
24268 fi
24269
24270 # Work around bugs in pre-3.0 UWIN ksh.
24271 for as_var in ENV MAIL MAILPATH
24272 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24273 done
24274 PS1='$ '
24275 PS2='> '
24276 PS4='+ '
24277
24278 # NLS nuisances.
24279 for as_var in \
24280   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24281   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24282   LC_TELEPHONE LC_TIME
24283 do
24284   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24285     eval $as_var=C; export $as_var
24286   else
24287     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24288   fi
24289 done
24290
24291 # Required to use basename.
24292 if expr a : '\(a\)' >/dev/null 2>&1 &&
24293    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24294   as_expr=expr
24295 else
24296   as_expr=false
24297 fi
24298
24299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24300   as_basename=basename
24301 else
24302   as_basename=false
24303 fi
24304
24305
24306 # Name of the executable.
24307 as_me=`$as_basename -- "$0" ||
24308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24309          X"$0" : 'X\(//\)$' \| \
24310          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24311 echo X/"$0" |
24312     sed '/^.*\/\([^/][^/]*\)\/*$/{
24313             s//\1/
24314             q
24315           }
24316           /^X\/\(\/\/\)$/{
24317             s//\1/
24318             q
24319           }
24320           /^X\/\(\/\).*/{
24321             s//\1/
24322             q
24323           }
24324           s/.*/./; q'`
24325
24326 # CDPATH.
24327 $as_unset CDPATH
24328
24329
24330
24331   as_lineno_1=$LINENO
24332   as_lineno_2=$LINENO
24333   test "x$as_lineno_1" != "x$as_lineno_2" &&
24334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24335
24336   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24337   # uniformly replaced by the line number.  The first 'sed' inserts a
24338   # line-number line after each line using $LINENO; the second 'sed'
24339   # does the real work.  The second script uses 'N' to pair each
24340   # line-number line with the line containing $LINENO, and appends
24341   # trailing '-' during substitution so that $LINENO is not a special
24342   # case at line end.
24343   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24344   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24345   # E. McMahon (1931-1989) for sed's syntax.  :-)
24346   sed -n '
24347     p
24348     /[$]LINENO/=
24349   ' <$as_myself |
24350     sed '
24351       s/[$]LINENO.*/&-/
24352       t lineno
24353       b
24354       :lineno
24355       N
24356       :loop
24357       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24358       t loop
24359       s/-\n.*//
24360     ' >$as_me.lineno &&
24361   chmod +x "$as_me.lineno" ||
24362     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24363    { (exit 1); exit 1; }; }
24364
24365   # Don't try to exec as it changes $[0], causing all sort of problems
24366   # (the dirname of $[0] is not the place where we might find the
24367   # original and so on.  Autoconf is especially sensitive to this).
24368   . "./$as_me.lineno"
24369   # Exit status is that of the last command.
24370   exit
24371 }
24372
24373
24374 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24375   as_dirname=dirname
24376 else
24377   as_dirname=false
24378 fi
24379
24380 ECHO_C= ECHO_N= ECHO_T=
24381 case `echo -n x` in
24382 -n*)
24383   case `echo 'x\c'` in
24384   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24385   *)   ECHO_C='\c';;
24386   esac;;
24387 *)
24388   ECHO_N='-n';;
24389 esac
24390
24391 if expr a : '\(a\)' >/dev/null 2>&1 &&
24392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24393   as_expr=expr
24394 else
24395   as_expr=false
24396 fi
24397
24398 rm -f conf$$ conf$$.exe conf$$.file
24399 if test -d conf$$.dir; then
24400   rm -f conf$$.dir/conf$$.file
24401 else
24402   rm -f conf$$.dir
24403   mkdir conf$$.dir
24404 fi
24405 echo >conf$$.file
24406 if ln -s conf$$.file conf$$ 2>/dev/null; then
24407   as_ln_s='ln -s'
24408   # ... but there are two gotchas:
24409   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24410   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24411   # In both cases, we have to default to `cp -p'.
24412   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24413     as_ln_s='cp -p'
24414 elif ln conf$$.file conf$$ 2>/dev/null; then
24415   as_ln_s=ln
24416 else
24417   as_ln_s='cp -p'
24418 fi
24419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24420 rmdir conf$$.dir 2>/dev/null
24421
24422 if mkdir -p . 2>/dev/null; then
24423   as_mkdir_p=:
24424 else
24425   test -d ./-p && rmdir ./-p
24426   as_mkdir_p=false
24427 fi
24428
24429 if test -x / >/dev/null 2>&1; then
24430   as_test_x='test -x'
24431 else
24432   if ls -dL / >/dev/null 2>&1; then
24433     as_ls_L_option=L
24434   else
24435     as_ls_L_option=
24436   fi
24437   as_test_x='
24438     eval sh -c '\''
24439       if test -d "$1"; then
24440         test -d "$1/.";
24441       else
24442         case $1 in
24443         -*)set "./$1";;
24444         esac;
24445         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24446         ???[sx]*):;;*)false;;esac;fi
24447     '\'' sh
24448   '
24449 fi
24450 as_executable_p=$as_test_x
24451
24452 # Sed expression to map a string onto a valid CPP name.
24453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24454
24455 # Sed expression to map a string onto a valid variable name.
24456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24457
24458
24459 exec 6>&1
24460
24461 # Save the log message, to keep $[0] and so on meaningful, and to
24462 # report actual input values of CONFIG_FILES etc. instead of their
24463 # values after options handling.
24464 ac_log="
24465 This file was extended by sudo $as_me 1.7.2p1, which was
24466 generated by GNU Autoconf 2.61.  Invocation command line was
24467
24468   CONFIG_FILES    = $CONFIG_FILES
24469   CONFIG_HEADERS  = $CONFIG_HEADERS
24470   CONFIG_LINKS    = $CONFIG_LINKS
24471   CONFIG_COMMANDS = $CONFIG_COMMANDS
24472   $ $0 $@
24473
24474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24475 "
24476
24477 _ACEOF
24478
24479 cat >>$CONFIG_STATUS <<_ACEOF
24480 # Files that config.status was made for.
24481 config_files="$ac_config_files"
24482 config_headers="$ac_config_headers"
24483
24484 _ACEOF
24485
24486 cat >>$CONFIG_STATUS <<\_ACEOF
24487 ac_cs_usage="\
24488 \`$as_me' instantiates files from templates according to the
24489 current configuration.
24490
24491 Usage: $0 [OPTIONS] [FILE]...
24492
24493   -h, --help       print this help, then exit
24494   -V, --version    print version number and configuration settings, then exit
24495   -q, --quiet      do not print progress messages
24496   -d, --debug      don't remove temporary files
24497       --recheck    update $as_me by reconfiguring in the same conditions
24498   --file=FILE[:TEMPLATE]
24499                    instantiate the configuration file FILE
24500   --header=FILE[:TEMPLATE]
24501                    instantiate the configuration header FILE
24502
24503 Configuration files:
24504 $config_files
24505
24506 Configuration headers:
24507 $config_headers
24508
24509 Report bugs to <bug-autoconf@gnu.org>."
24510
24511 _ACEOF
24512 cat >>$CONFIG_STATUS <<_ACEOF
24513 ac_cs_version="\\
24514 sudo config.status 1.7.2p1
24515 configured by $0, generated by GNU Autoconf 2.61,
24516   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24517
24518 Copyright (C) 2006 Free Software Foundation, Inc.
24519 This config.status script is free software; the Free Software Foundation
24520 gives unlimited permission to copy, distribute and modify it."
24521
24522 ac_pwd='$ac_pwd'
24523 srcdir='$srcdir'
24524 _ACEOF
24525
24526 cat >>$CONFIG_STATUS <<\_ACEOF
24527 # If no file are specified by the user, then we need to provide default
24528 # value.  By we need to know if files were specified by the user.
24529 ac_need_defaults=:
24530 while test $# != 0
24531 do
24532   case $1 in
24533   --*=*)
24534     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24535     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24536     ac_shift=:
24537     ;;
24538   *)
24539     ac_option=$1
24540     ac_optarg=$2
24541     ac_shift=shift
24542     ;;
24543   esac
24544
24545   case $ac_option in
24546   # Handling of the options.
24547   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24548     ac_cs_recheck=: ;;
24549   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24550     echo "$ac_cs_version"; exit ;;
24551   --debug | --debu | --deb | --de | --d | -d )
24552     debug=: ;;
24553   --file | --fil | --fi | --f )
24554     $ac_shift
24555     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24556     ac_need_defaults=false;;
24557   --header | --heade | --head | --hea )
24558     $ac_shift
24559     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24560     ac_need_defaults=false;;
24561   --he | --h)
24562     # Conflict between --help and --header
24563     { echo "$as_me: error: ambiguous option: $1
24564 Try \`$0 --help' for more information." >&2
24565    { (exit 1); exit 1; }; };;
24566   --help | --hel | -h )
24567     echo "$ac_cs_usage"; exit ;;
24568   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24569   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24570     ac_cs_silent=: ;;
24571
24572   # This is an error.
24573   -*) { echo "$as_me: error: unrecognized option: $1
24574 Try \`$0 --help' for more information." >&2
24575    { (exit 1); exit 1; }; } ;;
24576
24577   *) ac_config_targets="$ac_config_targets $1"
24578      ac_need_defaults=false ;;
24579
24580   esac
24581   shift
24582 done
24583
24584 ac_configure_extra_args=
24585
24586 if $ac_cs_silent; then
24587   exec 6>/dev/null
24588   ac_configure_extra_args="$ac_configure_extra_args --silent"
24589 fi
24590
24591 _ACEOF
24592 cat >>$CONFIG_STATUS <<_ACEOF
24593 if \$ac_cs_recheck; then
24594   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24595   CONFIG_SHELL=$SHELL
24596   export CONFIG_SHELL
24597   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24598 fi
24599
24600 _ACEOF
24601 cat >>$CONFIG_STATUS <<\_ACEOF
24602 exec 5>>config.log
24603 {
24604   echo
24605   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24606 ## Running $as_me. ##
24607 _ASBOX
24608   echo "$ac_log"
24609 } >&5
24610
24611 _ACEOF
24612 cat >>$CONFIG_STATUS <<_ACEOF
24613 _ACEOF
24614
24615 cat >>$CONFIG_STATUS <<\_ACEOF
24616
24617 # Handling of arguments.
24618 for ac_config_target in $ac_config_targets
24619 do
24620   case $ac_config_target in
24621     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24622     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
24623     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24624     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
24625     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
24626     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
24627     "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
24628     "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
24629
24630   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24631 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24632    { (exit 1); exit 1; }; };;
24633   esac
24634 done
24635
24636
24637 # If the user did not use the arguments to specify the items to instantiate,
24638 # then the envvar interface is used.  Set only those that are not.
24639 # We use the long form for the default assignment because of an extremely
24640 # bizarre bug on SunOS 4.1.3.
24641 if $ac_need_defaults; then
24642   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24643   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24644 fi
24645
24646 # Have a temporary directory for convenience.  Make it in the build tree
24647 # simply because there is no reason against having it here, and in addition,
24648 # creating and moving files from /tmp can sometimes cause problems.
24649 # Hook for its removal unless debugging.
24650 # Note that there is a small window in which the directory will not be cleaned:
24651 # after its creation but before its name has been assigned to `$tmp'.
24652 $debug ||
24653 {
24654   tmp=
24655   trap 'exit_status=$?
24656   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24657 ' 0
24658   trap '{ (exit 1); exit 1; }' 1 2 13 15
24659 }
24660 # Create a (secure) tmp directory for tmp files.
24661
24662 {
24663   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24664   test -n "$tmp" && test -d "$tmp"
24665 }  ||
24666 {
24667   tmp=./conf$$-$RANDOM
24668   (umask 077 && mkdir "$tmp")
24669 } ||
24670 {
24671    echo "$me: cannot create a temporary directory in ." >&2
24672    { (exit 1); exit 1; }
24673 }
24674
24675 #
24676 # Set up the sed scripts for CONFIG_FILES section.
24677 #
24678
24679 # No need to generate the scripts if there are no CONFIG_FILES.
24680 # This happens for instance when ./config.status config.h
24681 if test -n "$CONFIG_FILES"; then
24682
24683 _ACEOF
24684
24685
24686
24687 ac_delim='%!_!# '
24688 for ac_last_try in false false false false false :; do
24689   cat >conf$$subs.sed <<_ACEOF
24690 SHELL!$SHELL$ac_delim
24691 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24692 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24693 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24694 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24695 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24696 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24697 exec_prefix!$exec_prefix$ac_delim
24698 prefix!$prefix$ac_delim
24699 program_transform_name!$program_transform_name$ac_delim
24700 bindir!$bindir$ac_delim
24701 sbindir!$sbindir$ac_delim
24702 libexecdir!$libexecdir$ac_delim
24703 datarootdir!$datarootdir$ac_delim
24704 datadir!$datadir$ac_delim
24705 sysconfdir!$sysconfdir$ac_delim
24706 sharedstatedir!$sharedstatedir$ac_delim
24707 localstatedir!$localstatedir$ac_delim
24708 includedir!$includedir$ac_delim
24709 oldincludedir!$oldincludedir$ac_delim
24710 docdir!$docdir$ac_delim
24711 infodir!$infodir$ac_delim
24712 htmldir!$htmldir$ac_delim
24713 dvidir!$dvidir$ac_delim
24714 pdfdir!$pdfdir$ac_delim
24715 psdir!$psdir$ac_delim
24716 libdir!$libdir$ac_delim
24717 localedir!$localedir$ac_delim
24718 mandir!$mandir$ac_delim
24719 DEFS!$DEFS$ac_delim
24720 ECHO_C!$ECHO_C$ac_delim
24721 ECHO_N!$ECHO_N$ac_delim
24722 ECHO_T!$ECHO_T$ac_delim
24723 LIBS!$LIBS$ac_delim
24724 build_alias!$build_alias$ac_delim
24725 host_alias!$host_alias$ac_delim
24726 target_alias!$target_alias$ac_delim
24727 HAVE_BSM_AUDIT!$HAVE_BSM_AUDIT$ac_delim
24728 LIBTOOL!$LIBTOOL$ac_delim
24729 CFLAGS!$CFLAGS$ac_delim
24730 PROGS!$PROGS$ac_delim
24731 CPPFLAGS!$CPPFLAGS$ac_delim
24732 LDFLAGS!$LDFLAGS$ac_delim
24733 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
24734 SUDO_OBJS!$SUDO_OBJS$ac_delim
24735 SUDO_LIBS!$SUDO_LIBS$ac_delim
24736 NET_LIBS!$NET_LIBS$ac_delim
24737 AFS_LIBS!$AFS_LIBS$ac_delim
24738 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
24739 OSDEFS!$OSDEFS$ac_delim
24740 AUTH_OBJS!$AUTH_OBJS$ac_delim
24741 MANTYPE!$MANTYPE$ac_delim
24742 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
24743 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
24744 SUDOERS_UID!$SUDOERS_UID$ac_delim
24745 SUDOERS_GID!$SUDOERS_GID$ac_delim
24746 DEV!$DEV$ac_delim
24747 SELINUX!$SELINUX$ac_delim
24748 BAMAN!$BAMAN$ac_delim
24749 LCMAN!$LCMAN$ac_delim
24750 SEMAN!$SEMAN$ac_delim
24751 devdir!$devdir$ac_delim
24752 mansectsu!$mansectsu$ac_delim
24753 mansectform!$mansectform$ac_delim
24754 mansrcdir!$mansrcdir$ac_delim
24755 NOEXECFILE!$NOEXECFILE$ac_delim
24756 NOEXECDIR!$NOEXECDIR$ac_delim
24757 noexec_file!$noexec_file$ac_delim
24758 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
24759 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
24760 BSDAUTH_USAGE!$BSDAUTH_USAGE$ac_delim
24761 SELINUX_USAGE!$SELINUX_USAGE$ac_delim
24762 LDAP!$LDAP$ac_delim
24763 LOGINCAP_USAGE!$LOGINCAP_USAGE$ac_delim
24764 NONUNIX_GROUPS_IMPL!$NONUNIX_GROUPS_IMPL$ac_delim
24765 timedir!$timedir$ac_delim
24766 timeout!$timeout$ac_delim
24767 password_timeout!$password_timeout$ac_delim
24768 sudo_umask!$sudo_umask$ac_delim
24769 passprompt!$passprompt$ac_delim
24770 long_otp_prompt!$long_otp_prompt$ac_delim
24771 lecture!$lecture$ac_delim
24772 logfac!$logfac$ac_delim
24773 goodpri!$goodpri$ac_delim
24774 badpri!$badpri$ac_delim
24775 loglen!$loglen$ac_delim
24776 ignore_dot!$ignore_dot$ac_delim
24777 mail_no_user!$mail_no_user$ac_delim
24778 mail_no_host!$mail_no_host$ac_delim
24779 mail_no_perms!$mail_no_perms$ac_delim
24780 mailto!$mailto$ac_delim
24781 mailsub!$mailsub$ac_delim
24782 badpass_message!$badpass_message$ac_delim
24783 fqdn!$fqdn$ac_delim
24784 runas_default!$runas_default$ac_delim
24785 env_editor!$env_editor$ac_delim
24786 passwd_tries!$passwd_tries$ac_delim
24787 _ACEOF
24788
24789   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24790     break
24791   elif $ac_last_try; then
24792     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24794    { (exit 1); exit 1; }; }
24795   else
24796     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24797   fi
24798 done
24799
24800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24801 if test -n "$ac_eof"; then
24802   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24803   ac_eof=`expr $ac_eof + 1`
24804 fi
24805
24806 cat >>$CONFIG_STATUS <<_ACEOF
24807 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24809 _ACEOF
24810 sed '
24811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24812 s/^/s,@/; s/!/@,|#_!!_#|/
24813 :n
24814 t n
24815 s/'"$ac_delim"'$/,g/; t
24816 s/$/\\/; p
24817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24818 ' >>$CONFIG_STATUS <conf$$subs.sed
24819 rm -f conf$$subs.sed
24820 cat >>$CONFIG_STATUS <<_ACEOF
24821 CEOF$ac_eof
24822 _ACEOF
24823
24824
24825 ac_delim='%!_!# '
24826 for ac_last_try in false false false false false :; do
24827   cat >conf$$subs.sed <<_ACEOF
24828 tty_tickets!$tty_tickets$ac_delim
24829 insults!$insults$ac_delim
24830 root_sudo!$root_sudo$ac_delim
24831 path_info!$path_info$ac_delim
24832 ldap_conf!$ldap_conf$ac_delim
24833 ldap_secret!$ldap_secret$ac_delim
24834 nsswitch_conf!$nsswitch_conf$ac_delim
24835 netsvc_conf!$netsvc_conf$ac_delim
24836 EGREPPROG!$EGREPPROG$ac_delim
24837 CC!$CC$ac_delim
24838 ac_ct_CC!$ac_ct_CC$ac_delim
24839 EXEEXT!$EXEEXT$ac_delim
24840 OBJEXT!$OBJEXT$ac_delim
24841 CPP!$CPP$ac_delim
24842 build!$build$ac_delim
24843 build_cpu!$build_cpu$ac_delim
24844 build_vendor!$build_vendor$ac_delim
24845 build_os!$build_os$ac_delim
24846 host!$host$ac_delim
24847 host_cpu!$host_cpu$ac_delim
24848 host_vendor!$host_vendor$ac_delim
24849 host_os!$host_os$ac_delim
24850 SED!$SED$ac_delim
24851 GREP!$GREP$ac_delim
24852 EGREP!$EGREP$ac_delim
24853 LN_S!$LN_S$ac_delim
24854 ECHO!$ECHO$ac_delim
24855 AR!$AR$ac_delim
24856 RANLIB!$RANLIB$ac_delim
24857 STRIP!$STRIP$ac_delim
24858 DSYMUTIL!$DSYMUTIL$ac_delim
24859 NMEDIT!$NMEDIT$ac_delim
24860 UNAMEPROG!$UNAMEPROG$ac_delim
24861 TRPROG!$TRPROG$ac_delim
24862 NROFFPROG!$NROFFPROG$ac_delim
24863 YACC!$YACC$ac_delim
24864 YFLAGS!$YFLAGS$ac_delim
24865 FLEX!$FLEX$ac_delim
24866 LIBOBJS!$LIBOBJS$ac_delim
24867 KRB5CONFIG!$KRB5CONFIG$ac_delim
24868 LTLIBOBJS!$LTLIBOBJS$ac_delim
24869 _ACEOF
24870
24871   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then
24872     break
24873   elif $ac_last_try; then
24874     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24875 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24876    { (exit 1); exit 1; }; }
24877   else
24878     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24879   fi
24880 done
24881
24882 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24883 if test -n "$ac_eof"; then
24884   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24885   ac_eof=`expr $ac_eof + 1`
24886 fi
24887
24888 cat >>$CONFIG_STATUS <<_ACEOF
24889 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24891 _ACEOF
24892 sed '
24893 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24894 s/^/s,@/; s/!/@,|#_!!_#|/
24895 :n
24896 t n
24897 s/'"$ac_delim"'$/,g/; t
24898 s/$/\\/; p
24899 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24900 ' >>$CONFIG_STATUS <conf$$subs.sed
24901 rm -f conf$$subs.sed
24902 cat >>$CONFIG_STATUS <<_ACEOF
24903 :end
24904 s/|#_!!_#|//g
24905 CEOF$ac_eof
24906 _ACEOF
24907
24908
24909 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24910 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24911 # trailing colons and then remove the whole line if VPATH becomes empty
24912 # (actually we leave an empty line to preserve line numbers).
24913 if test "x$srcdir" = x.; then
24914   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24915 s/:*\$(srcdir):*/:/
24916 s/:*\${srcdir}:*/:/
24917 s/:*@srcdir@:*/:/
24918 s/^\([^=]*=[     ]*\):*/\1/
24919 s/:*$//
24920 s/^[^=]*=[       ]*$//
24921 }'
24922 fi
24923
24924 cat >>$CONFIG_STATUS <<\_ACEOF
24925 fi # test -n "$CONFIG_FILES"
24926
24927
24928 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
24929 do
24930   case $ac_tag in
24931   :[FHLC]) ac_mode=$ac_tag; continue;;
24932   esac
24933   case $ac_mode$ac_tag in
24934   :[FHL]*:*);;
24935   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24936 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24937    { (exit 1); exit 1; }; };;
24938   :[FH]-) ac_tag=-:-;;
24939   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24940   esac
24941   ac_save_IFS=$IFS
24942   IFS=:
24943   set x $ac_tag
24944   IFS=$ac_save_IFS
24945   shift
24946   ac_file=$1
24947   shift
24948
24949   case $ac_mode in
24950   :L) ac_source=$1;;
24951   :[FH])
24952     ac_file_inputs=
24953     for ac_f
24954     do
24955       case $ac_f in
24956       -) ac_f="$tmp/stdin";;
24957       *) # Look for the file first in the build tree, then in the source tree
24958          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24959          # because $ac_f cannot contain `:'.
24960          test -f "$ac_f" ||
24961            case $ac_f in
24962            [\\/$]*) false;;
24963            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24964            esac ||
24965            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24966 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24967    { (exit 1); exit 1; }; };;
24968       esac
24969       ac_file_inputs="$ac_file_inputs $ac_f"
24970     done
24971
24972     # Let's still pretend it is `configure' which instantiates (i.e., don't
24973     # use $as_me), people would be surprised to read:
24974     #    /* config.h.  Generated by config.status.  */
24975     configure_input="Generated from "`IFS=:
24976           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24977     if test x"$ac_file" != x-; then
24978       configure_input="$ac_file.  $configure_input"
24979       { echo "$as_me:$LINENO: creating $ac_file" >&5
24980 echo "$as_me: creating $ac_file" >&6;}
24981     fi
24982
24983     case $ac_tag in
24984     *:-:* | *:-) cat >"$tmp/stdin";;
24985     esac
24986     ;;
24987   esac
24988
24989   ac_dir=`$as_dirname -- "$ac_file" ||
24990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24991          X"$ac_file" : 'X\(//\)[^/]' \| \
24992          X"$ac_file" : 'X\(//\)$' \| \
24993          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24994 echo X"$ac_file" |
24995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24996             s//\1/
24997             q
24998           }
24999           /^X\(\/\/\)[^/].*/{
25000             s//\1/
25001             q
25002           }
25003           /^X\(\/\/\)$/{
25004             s//\1/
25005             q
25006           }
25007           /^X\(\/\).*/{
25008             s//\1/
25009             q
25010           }
25011           s/.*/./; q'`
25012   { as_dir="$ac_dir"
25013   case $as_dir in #(
25014   -*) as_dir=./$as_dir;;
25015   esac
25016   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25017     as_dirs=
25018     while :; do
25019       case $as_dir in #(
25020       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25021       *) as_qdir=$as_dir;;
25022       esac
25023       as_dirs="'$as_qdir' $as_dirs"
25024       as_dir=`$as_dirname -- "$as_dir" ||
25025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25026          X"$as_dir" : 'X\(//\)[^/]' \| \
25027          X"$as_dir" : 'X\(//\)$' \| \
25028          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25029 echo X"$as_dir" |
25030     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25031             s//\1/
25032             q
25033           }
25034           /^X\(\/\/\)[^/].*/{
25035             s//\1/
25036             q
25037           }
25038           /^X\(\/\/\)$/{
25039             s//\1/
25040             q
25041           }
25042           /^X\(\/\).*/{
25043             s//\1/
25044             q
25045           }
25046           s/.*/./; q'`
25047       test -d "$as_dir" && break
25048     done
25049     test -z "$as_dirs" || eval "mkdir $as_dirs"
25050   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25051 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25052    { (exit 1); exit 1; }; }; }
25053   ac_builddir=.
25054
25055 case "$ac_dir" in
25056 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25057 *)
25058   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25059   # A ".." for each directory in $ac_dir_suffix.
25060   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25061   case $ac_top_builddir_sub in
25062   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25063   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25064   esac ;;
25065 esac
25066 ac_abs_top_builddir=$ac_pwd
25067 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25068 # for backward compatibility:
25069 ac_top_builddir=$ac_top_build_prefix
25070
25071 case $srcdir in
25072   .)  # We are building in place.
25073     ac_srcdir=.
25074     ac_top_srcdir=$ac_top_builddir_sub
25075     ac_abs_top_srcdir=$ac_pwd ;;
25076   [\\/]* | ?:[\\/]* )  # Absolute name.
25077     ac_srcdir=$srcdir$ac_dir_suffix;
25078     ac_top_srcdir=$srcdir
25079     ac_abs_top_srcdir=$srcdir ;;
25080   *) # Relative name.
25081     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25082     ac_top_srcdir=$ac_top_build_prefix$srcdir
25083     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25084 esac
25085 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25086
25087
25088   case $ac_mode in
25089   :F)
25090   #
25091   # CONFIG_FILE
25092   #
25093
25094 _ACEOF
25095
25096 cat >>$CONFIG_STATUS <<\_ACEOF
25097 # If the template does not know about datarootdir, expand it.
25098 # FIXME: This hack should be removed a few years after 2.60.
25099 ac_datarootdir_hack=; ac_datarootdir_seen=
25100
25101 case `sed -n '/datarootdir/ {
25102   p
25103   q
25104 }
25105 /@datadir@/p
25106 /@docdir@/p
25107 /@infodir@/p
25108 /@localedir@/p
25109 /@mandir@/p
25110 ' $ac_file_inputs` in
25111 *datarootdir*) ac_datarootdir_seen=yes;;
25112 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25113   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25114 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25115 _ACEOF
25116 cat >>$CONFIG_STATUS <<_ACEOF
25117   ac_datarootdir_hack='
25118   s&@datadir@&$datadir&g
25119   s&@docdir@&$docdir&g
25120   s&@infodir@&$infodir&g
25121   s&@localedir@&$localedir&g
25122   s&@mandir@&$mandir&g
25123     s&\\\${datarootdir}&$datarootdir&g' ;;
25124 esac
25125 _ACEOF
25126
25127 # Neutralize VPATH when `$srcdir' = `.'.
25128 # Shell code in configure.ac might set extrasub.
25129 # FIXME: do we really want to maintain this feature?
25130 cat >>$CONFIG_STATUS <<_ACEOF
25131   sed "$ac_vpsub
25132 $extrasub
25133 _ACEOF
25134 cat >>$CONFIG_STATUS <<\_ACEOF
25135 :t
25136 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25137 s&@configure_input@&$configure_input&;t t
25138 s&@top_builddir@&$ac_top_builddir_sub&;t t
25139 s&@srcdir@&$ac_srcdir&;t t
25140 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25141 s&@top_srcdir@&$ac_top_srcdir&;t t
25142 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25143 s&@builddir@&$ac_builddir&;t t
25144 s&@abs_builddir@&$ac_abs_builddir&;t t
25145 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25146 $ac_datarootdir_hack
25147 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25148
25149 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25150   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25151   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25152   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25153 which seems to be undefined.  Please make sure it is defined." >&5
25154 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25155 which seems to be undefined.  Please make sure it is defined." >&2;}
25156
25157   rm -f "$tmp/stdin"
25158   case $ac_file in
25159   -) cat "$tmp/out"; rm -f "$tmp/out";;
25160   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25161   esac
25162  ;;
25163   :H)
25164   #
25165   # CONFIG_HEADER
25166   #
25167 _ACEOF
25168
25169 # Transform confdefs.h into a sed script `conftest.defines', that
25170 # substitutes the proper values into config.h.in to produce config.h.
25171 rm -f conftest.defines conftest.tail
25172 # First, append a space to every undef/define line, to ease matching.
25173 echo 's/$/ /' >conftest.defines
25174 # Then, protect against being on the right side of a sed subst, or in
25175 # an unquoted here document, in config.status.  If some macros were
25176 # called several times there might be several #defines for the same
25177 # symbol, which is useless.  But do not sort them, since the last
25178 # AC_DEFINE must be honored.
25179 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25180 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25181 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25182 # PARAMS is the parameter list in the macro definition--in most cases, it's
25183 # just an empty string.
25184 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25185 ac_dB='\\)[      (].*,\\1define\\2'
25186 ac_dC=' '
25187 ac_dD=' ,'
25188
25189 uniq confdefs.h |
25190   sed -n '
25191         t rset
25192         :rset
25193         s/^[     ]*#[    ]*define[       ][      ]*//
25194         t ok
25195         d
25196         :ok
25197         s/[\\&,]/\\&/g
25198         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25199         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25200   ' >>conftest.defines
25201
25202 # Remove the space that was appended to ease matching.
25203 # Then replace #undef with comments.  This is necessary, for
25204 # example, in the case of _POSIX_SOURCE, which is predefined and required
25205 # on some systems where configure will not decide to define it.
25206 # (The regexp can be short, since the line contains either #define or #undef.)
25207 echo 's/ $//
25208 s,^[     #]*u.*,/* & */,' >>conftest.defines
25209
25210 # Break up conftest.defines:
25211 ac_max_sed_lines=50
25212
25213 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25214 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25215 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25216 # et cetera.
25217 ac_in='$ac_file_inputs'
25218 ac_out='"$tmp/out1"'
25219 ac_nxt='"$tmp/out2"'
25220
25221 while :
25222 do
25223   # Write a here document:
25224     cat >>$CONFIG_STATUS <<_ACEOF
25225     # First, check the format of the line:
25226     cat >"\$tmp/defines.sed" <<\\CEOF
25227 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25228 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25229 b
25230 :def
25231 _ACEOF
25232   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25233   echo 'CEOF
25234     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25235   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25236   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25237   grep . conftest.tail >/dev/null || break
25238   rm -f conftest.defines
25239   mv conftest.tail conftest.defines
25240 done
25241 rm -f conftest.defines conftest.tail
25242
25243 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25244 cat >>$CONFIG_STATUS <<\_ACEOF
25245   if test x"$ac_file" != x-; then
25246     echo "/* $configure_input  */" >"$tmp/config.h"
25247     cat "$ac_result" >>"$tmp/config.h"
25248     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25249       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25250 echo "$as_me: $ac_file is unchanged" >&6;}
25251     else
25252       rm -f $ac_file
25253       mv "$tmp/config.h" $ac_file
25254     fi
25255   else
25256     echo "/* $configure_input  */"
25257     cat "$ac_result"
25258   fi
25259   rm -f "$tmp/out12"
25260 # Compute $ac_file's index in $config_headers.
25261 _am_arg=$ac_file
25262 _am_stamp_count=1
25263 for _am_header in $config_headers :; do
25264   case $_am_header in
25265     $_am_arg | $_am_arg:* )
25266       break ;;
25267     * )
25268       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25269   esac
25270 done
25271 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25272 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25273          X"$_am_arg" : 'X\(//\)[^/]' \| \
25274          X"$_am_arg" : 'X\(//\)$' \| \
25275          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25276 echo X"$_am_arg" |
25277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25278             s//\1/
25279             q
25280           }
25281           /^X\(\/\/\)[^/].*/{
25282             s//\1/
25283             q
25284           }
25285           /^X\(\/\/\)$/{
25286             s//\1/
25287             q
25288           }
25289           /^X\(\/\).*/{
25290             s//\1/
25291             q
25292           }
25293           s/.*/./; q'`/stamp-h$_am_stamp_count
25294  ;;
25295
25296
25297   esac
25298
25299 done # for ac_tag
25300
25301
25302 { (exit 0); exit 0; }
25303 _ACEOF
25304 chmod +x $CONFIG_STATUS
25305 ac_clean_files=$ac_clean_files_save
25306
25307
25308 # configure is writing to config.log, and then calls config.status.
25309 # config.status does its own redirection, appending to config.log.
25310 # Unfortunately, on DOS this fails, as config.log is still kept open
25311 # by configure, so config.status won't be able to write to it; its
25312 # output is simply discarded.  So we exec the FD to /dev/null,
25313 # effectively closing config.log, so it can be properly (re)opened and
25314 # appended to by config.status.  When coming back to configure, we
25315 # need to make the FD available again.
25316 if test "$no_create" != yes; then
25317   ac_cs_success=:
25318   ac_config_status_args=
25319   test "$silent" = yes &&
25320     ac_config_status_args="$ac_config_status_args --quiet"
25321   exec 5>/dev/null
25322   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25323   exec 5>>config.log
25324   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25325   # would make configure fail if this is the last instruction.
25326   $ac_cs_success || { (exit 1); exit 1; }
25327 fi
25328
25329
25330 if test "$with_pam" = "yes"; then
25331     case $host in
25332         *-*-linux*)
25333             { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
25334 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
25335             ;;
25336     esac
25337 fi
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498