add doc about interaction with RAMRUN to README.Debian in response to #581393
[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.2p6.
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.2p6'
728 PACKAGE_STRING='sudo 1.7.2p6'
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 secure_path
873 EGREPPROG
874 CC
875 ac_ct_CC
876 EXEEXT
877 OBJEXT
878 CPP
879 build
880 build_cpu
881 build_vendor
882 build_os
883 host
884 host_cpu
885 host_vendor
886 host_os
887 SED
888 GREP
889 EGREP
890 LN_S
891 ECHO
892 AR
893 RANLIB
894 STRIP
895 DSYMUTIL
896 NMEDIT
897 UNAMEPROG
898 TRPROG
899 NROFFPROG
900 YACC
901 YFLAGS
902 FLEX
903 LIBOBJS
904 KRB5CONFIG
905 LTLIBOBJS'
906 ac_subst_files=''
907       ac_precious_vars='build_alias
908 host_alias
909 target_alias
910 CC
911 CFLAGS
912 LDFLAGS
913 LIBS
914 CPPFLAGS
915 CPP
916 YACC
917 YFLAGS'
918
919
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
925 cache_file=/dev/null
926 exec_prefix=NONE
927 no_create=
928 no_recursion=
929 prefix=NONE
930 program_prefix=NONE
931 program_suffix=NONE
932 program_transform_name=s,x,x,
933 silent=
934 site=
935 srcdir=
936 verbose=
937 x_includes=NONE
938 x_libraries=NONE
939
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 includedir='${prefix}/include'
955 oldincludedir='/usr/include'
956 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
957 infodir='${datarootdir}/info'
958 htmldir='${docdir}'
959 dvidir='${docdir}'
960 pdfdir='${docdir}'
961 psdir='${docdir}'
962 libdir='${exec_prefix}/lib'
963 localedir='${datarootdir}/locale'
964 mandir='${datarootdir}/man'
965
966 ac_prev=
967 ac_dashdash=
968 for ac_option
969 do
970   # If the previous option needs an argument, assign it.
971   if test -n "$ac_prev"; then
972     eval $ac_prev=\$ac_option
973     ac_prev=
974     continue
975   fi
976
977   case $ac_option in
978   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979   *)    ac_optarg=yes ;;
980   esac
981
982   # Accept the important Cygnus configure options, so we can diagnose typos.
983
984   case $ac_dashdash$ac_option in
985   --)
986     ac_dashdash=yes ;;
987
988   -bindir | --bindir | --bindi | --bind | --bin | --bi)
989     ac_prev=bindir ;;
990   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991     bindir=$ac_optarg ;;
992
993   -build | --build | --buil | --bui | --bu)
994     ac_prev=build_alias ;;
995   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996     build_alias=$ac_optarg ;;
997
998   -cache-file | --cache-file | --cache-fil | --cache-fi \
999   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000     ac_prev=cache_file ;;
1001   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003     cache_file=$ac_optarg ;;
1004
1005   --config-cache | -C)
1006     cache_file=config.cache ;;
1007
1008   -datadir | --datadir | --datadi | --datad)
1009     ac_prev=datadir ;;
1010   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011     datadir=$ac_optarg ;;
1012
1013   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014   | --dataroo | --dataro | --datar)
1015     ac_prev=datarootdir ;;
1016   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018     datarootdir=$ac_optarg ;;
1019
1020   -disable-* | --disable-*)
1021     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022     # Reject names that are not valid shell variable names.
1023     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1024       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1025    { (exit 1); exit 1; }; }
1026     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1027     eval enable_$ac_feature=no ;;
1028
1029   -docdir | --docdir | --docdi | --doc | --do)
1030     ac_prev=docdir ;;
1031   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032     docdir=$ac_optarg ;;
1033
1034   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035     ac_prev=dvidir ;;
1036   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037     dvidir=$ac_optarg ;;
1038
1039   -enable-* | --enable-*)
1040     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1044    { (exit 1); exit 1; }; }
1045     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1046     eval enable_$ac_feature=\$ac_optarg ;;
1047
1048   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050   | --exec | --exe | --ex)
1051     ac_prev=exec_prefix ;;
1052   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054   | --exec=* | --exe=* | --ex=*)
1055     exec_prefix=$ac_optarg ;;
1056
1057   -gas | --gas | --ga | --g)
1058     # Obsolete; use --with-gas.
1059     with_gas=yes ;;
1060
1061   -help | --help | --hel | --he | -h)
1062     ac_init_help=long ;;
1063   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064     ac_init_help=recursive ;;
1065   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066     ac_init_help=short ;;
1067
1068   -host | --host | --hos | --ho)
1069     ac_prev=host_alias ;;
1070   -host=* | --host=* | --hos=* | --ho=*)
1071     host_alias=$ac_optarg ;;
1072
1073   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074     ac_prev=htmldir ;;
1075   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076   | --ht=*)
1077     htmldir=$ac_optarg ;;
1078
1079   -includedir | --includedir | --includedi | --included | --include \
1080   | --includ | --inclu | --incl | --inc)
1081     ac_prev=includedir ;;
1082   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083   | --includ=* | --inclu=* | --incl=* | --inc=*)
1084     includedir=$ac_optarg ;;
1085
1086   -infodir | --infodir | --infodi | --infod | --info | --inf)
1087     ac_prev=infodir ;;
1088   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089     infodir=$ac_optarg ;;
1090
1091   -libdir | --libdir | --libdi | --libd)
1092     ac_prev=libdir ;;
1093   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094     libdir=$ac_optarg ;;
1095
1096   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097   | --libexe | --libex | --libe)
1098     ac_prev=libexecdir ;;
1099   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100   | --libexe=* | --libex=* | --libe=*)
1101     libexecdir=$ac_optarg ;;
1102
1103   -localedir | --localedir | --localedi | --localed | --locale)
1104     ac_prev=localedir ;;
1105   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106     localedir=$ac_optarg ;;
1107
1108   -localstatedir | --localstatedir | --localstatedi | --localstated \
1109   | --localstate | --localstat | --localsta | --localst | --locals)
1110     ac_prev=localstatedir ;;
1111   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113     localstatedir=$ac_optarg ;;
1114
1115   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116     ac_prev=mandir ;;
1117   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118     mandir=$ac_optarg ;;
1119
1120   -nfp | --nfp | --nf)
1121     # Obsolete; use --without-fp.
1122     with_fp=no ;;
1123
1124   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125   | --no-cr | --no-c | -n)
1126     no_create=yes ;;
1127
1128   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130     no_recursion=yes ;;
1131
1132   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134   | --oldin | --oldi | --old | --ol | --o)
1135     ac_prev=oldincludedir ;;
1136   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139     oldincludedir=$ac_optarg ;;
1140
1141   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142     ac_prev=prefix ;;
1143   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144     prefix=$ac_optarg ;;
1145
1146   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147   | --program-pre | --program-pr | --program-p)
1148     ac_prev=program_prefix ;;
1149   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151     program_prefix=$ac_optarg ;;
1152
1153   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154   | --program-suf | --program-su | --program-s)
1155     ac_prev=program_suffix ;;
1156   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158     program_suffix=$ac_optarg ;;
1159
1160   -program-transform-name | --program-transform-name \
1161   | --program-transform-nam | --program-transform-na \
1162   | --program-transform-n | --program-transform- \
1163   | --program-transform | --program-transfor \
1164   | --program-transfo | --program-transf \
1165   | --program-trans | --program-tran \
1166   | --progr-tra | --program-tr | --program-t)
1167     ac_prev=program_transform_name ;;
1168   -program-transform-name=* | --program-transform-name=* \
1169   | --program-transform-nam=* | --program-transform-na=* \
1170   | --program-transform-n=* | --program-transform-=* \
1171   | --program-transform=* | --program-transfor=* \
1172   | --program-transfo=* | --program-transf=* \
1173   | --program-trans=* | --program-tran=* \
1174   | --progr-tra=* | --program-tr=* | --program-t=*)
1175     program_transform_name=$ac_optarg ;;
1176
1177   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178     ac_prev=pdfdir ;;
1179   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180     pdfdir=$ac_optarg ;;
1181
1182   -psdir | --psdir | --psdi | --psd | --ps)
1183     ac_prev=psdir ;;
1184   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185     psdir=$ac_optarg ;;
1186
1187   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188   | -silent | --silent | --silen | --sile | --sil)
1189     silent=yes ;;
1190
1191   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192     ac_prev=sbindir ;;
1193   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194   | --sbi=* | --sb=*)
1195     sbindir=$ac_optarg ;;
1196
1197   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199   | --sharedst | --shareds | --shared | --share | --shar \
1200   | --sha | --sh)
1201     ac_prev=sharedstatedir ;;
1202   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205   | --sha=* | --sh=*)
1206     sharedstatedir=$ac_optarg ;;
1207
1208   -site | --site | --sit)
1209     ac_prev=site ;;
1210   -site=* | --site=* | --sit=*)
1211     site=$ac_optarg ;;
1212
1213   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214     ac_prev=srcdir ;;
1215   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216     srcdir=$ac_optarg ;;
1217
1218   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219   | --syscon | --sysco | --sysc | --sys | --sy)
1220     ac_prev=sysconfdir ;;
1221   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223     sysconfdir=$ac_optarg ;;
1224
1225   -target | --target | --targe | --targ | --tar | --ta | --t)
1226     ac_prev=target_alias ;;
1227   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228     target_alias=$ac_optarg ;;
1229
1230   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231     verbose=yes ;;
1232
1233   -version | --version | --versio | --versi | --vers | -V)
1234     ac_init_version=: ;;
1235
1236   -with-* | --with-*)
1237     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238     # Reject names that are not valid shell variable names.
1239     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240       { echo "$as_me: error: invalid package name: $ac_package" >&2
1241    { (exit 1); exit 1; }; }
1242     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243     eval with_$ac_package=\$ac_optarg ;;
1244
1245   -without-* | --without-*)
1246     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1247     # Reject names that are not valid shell variable names.
1248     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249       { echo "$as_me: error: invalid package name: $ac_package" >&2
1250    { (exit 1); exit 1; }; }
1251     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1252     eval with_$ac_package=no ;;
1253
1254   --x)
1255     # Obsolete; use --with-x.
1256     with_x=yes ;;
1257
1258   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259   | --x-incl | --x-inc | --x-in | --x-i)
1260     ac_prev=x_includes ;;
1261   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263     x_includes=$ac_optarg ;;
1264
1265   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267     ac_prev=x_libraries ;;
1268   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270     x_libraries=$ac_optarg ;;
1271
1272   -*) { echo "$as_me: error: unrecognized option: $ac_option
1273 Try \`$0 --help' for more information." >&2
1274    { (exit 1); exit 1; }; }
1275     ;;
1276
1277   *=*)
1278     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1281       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1282    { (exit 1); exit 1; }; }
1283     eval $ac_envvar=\$ac_optarg
1284     export $ac_envvar ;;
1285
1286   *)
1287     # FIXME: should be removed in autoconf 3.0.
1288     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1292     ;;
1293
1294   esac
1295 done
1296
1297 if test -n "$ac_prev"; then
1298   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299   { echo "$as_me: error: missing argument to $ac_option" >&2
1300    { (exit 1); exit 1; }; }
1301 fi
1302
1303 # Be sure to have absolute directory names.
1304 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305                 datadir sysconfdir sharedstatedir localstatedir includedir \
1306                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307                 libdir localedir mandir
1308 do
1309   eval ac_val=\$$ac_var
1310   case $ac_val in
1311     [\\/$]* | ?:[\\/]* )  continue;;
1312     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313   esac
1314   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1315    { (exit 1); exit 1; }; }
1316 done
1317
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1324
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327   if test "x$build_alias" = x; then
1328     cross_compiling=maybe
1329     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1330     If a cross compiler is detected then cross compile mode will be used." >&2
1331   elif test "x$build_alias" != "x$host_alias"; then
1332     cross_compiling=yes
1333   fi
1334 fi
1335
1336 ac_tool_prefix=
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339 test "$silent" = yes && exec 6>/dev/null
1340
1341
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345   { echo "$as_me: error: Working directory cannot be determined" >&2
1346    { (exit 1); exit 1; }; }
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348   { echo "$as_me: error: pwd does not report name of working directory" >&2
1349    { (exit 1); exit 1; }; }
1350
1351
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354   ac_srcdir_defaulted=yes
1355   # Try the directory containing this script, then the parent directory.
1356   ac_confdir=`$as_dirname -- "$0" ||
1357 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358          X"$0" : 'X\(//\)[^/]' \| \
1359          X"$0" : 'X\(//\)$' \| \
1360          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1361 echo X"$0" |
1362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\/\)[^/].*/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\/\)$/{
1371             s//\1/
1372             q
1373           }
1374           /^X\(\/\).*/{
1375             s//\1/
1376             q
1377           }
1378           s/.*/./; q'`
1379   srcdir=$ac_confdir
1380   if test ! -r "$srcdir/$ac_unique_file"; then
1381     srcdir=..
1382   fi
1383 else
1384   ac_srcdir_defaulted=no
1385 fi
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1389    { (exit 1); exit 1; }; }
1390 fi
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1394    { (exit 1); exit 1; }; }
1395         pwd)`
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398   srcdir=.
1399 fi
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1403 case $srcdir in
1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 esac
1406 for ac_var in $ac_precious_vars; do
1407   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408   eval ac_env_${ac_var}_value=\$${ac_var}
1409   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411 done
1412
1413 #
1414 # Report the --help message.
1415 #
1416 if test "$ac_init_help" = "long"; then
1417   # Omit some internal or obsolete options to make the list less imposing.
1418   # This message is too long to be a string in the A/UX 3.1 sh.
1419   cat <<_ACEOF
1420 \`configure' configures sudo 1.7.2p6 to adapt to many kinds of systems.
1421
1422 Usage: $0 [OPTION]... [VAR=VALUE]...
1423
1424 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425 VAR=VALUE.  See below for descriptions of some of the useful variables.
1426
1427 Defaults for the options are specified in brackets.
1428
1429 Configuration:
1430   -h, --help              display this help and exit
1431       --help=short        display options specific to this package
1432       --help=recursive    display the short help of all the included packages
1433   -V, --version           display version information and exit
1434   -q, --quiet, --silent   do not print \`checking...' messages
1435       --cache-file=FILE   cache test results in FILE [disabled]
1436   -C, --config-cache      alias for \`--cache-file=config.cache'
1437   -n, --no-create         do not create output files
1438       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1439
1440 Installation directories:
1441   --prefix=PREFIX         install architecture-independent files in PREFIX
1442                           [$ac_default_prefix]
1443   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1444                           [PREFIX]
1445
1446 By default, \`make install' will install all the files in
1447 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1448 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449 for instance \`--prefix=\$HOME'.
1450
1451 For better control, use the options below.
1452
1453 Fine tuning of the installation directories:
1454   --bindir=DIR           user executables [EPREFIX/bin]
1455   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1456   --libexecdir=DIR       program executables [EPREFIX/libexec]
1457   --sysconfdir=DIR       read-only single-machine data [etc]
1458   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1459   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1460   --libdir=DIR           object code libraries [EPREFIX/lib]
1461   --includedir=DIR       C header files [PREFIX/include]
1462   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1463   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1464   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1465   --infodir=DIR          info documentation [DATAROOTDIR/info]
1466   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1467   --mandir=DIR           man documentation [DATAROOTDIR/man]
1468   --docdir=DIR           documentation root [DATAROOTDIR/doc/sudo]
1469   --htmldir=DIR          html documentation [DOCDIR]
1470   --dvidir=DIR           dvi documentation [DOCDIR]
1471   --pdfdir=DIR           pdf documentation [DOCDIR]
1472   --psdir=DIR            ps documentation [DOCDIR]
1473 _ACEOF
1474
1475   cat <<\_ACEOF
1476
1477 System types:
1478   --build=BUILD     configure for building on BUILD [guessed]
1479   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484   case $ac_init_help in
1485      short | recursive ) echo "Configuration of sudo 1.7.2p6:";;
1486    esac
1487   cat <<\_ACEOF
1488
1489 Optional Features:
1490   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1491   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1492   --disable-authentication
1493                           Do not require authentication by default
1494   --disable-root-mailer   Don't run the mailer as root, run as the user
1495   --disable-setreuid      Don't try to use the setreuid() function
1496   --disable-setresuid     Don't try to use the setresuid() function
1497   --disable-shadow        Never use shadow passwords
1498   --disable-root-sudo     Don't allow root to run sudo
1499   --enable-log-host       Log the hostname in the log file
1500   --enable-noargs-shell   If sudo is given no arguments run a shell
1501   --enable-shell-sets-home
1502                           Set $HOME to target user in shell mode
1503   --disable-path-info     Print 'command not allowed' not 'command not found'
1504   --enable-env-debug      Whether to enable environment debugging.
1505   --enable-gss-krb5-ccache-name
1506                           Use GSS-API to set the Kerberos V cred cache name
1507   --enable-static[=PKGS]  build static libraries [default=no]
1508   --enable-shared[=PKGS]  build shared libraries [default=yes]
1509   --enable-fast-install[=PKGS]
1510                           optimize for fast installation [default=yes]
1511   --disable-libtool-lock  avoid locking (might break parallel builds)
1512   --disable-sia           Disable SIA on Digital UNIX
1513   --disable-pam-session   Disable PAM session support
1514
1515 Optional Packages:
1516   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1517   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1518   --with-otp-only         deprecated
1519   --with-alertmail        deprecated
1520   --with-CC               C compiler to use
1521   --with-rpath            pass -R flag in addition to -L for lib paths
1522   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1523   --with-bsm-audit        enable BSM audit support
1524   --with-incpath          additional places to look for include files
1525   --with-libpath          additional places to look for libraries
1526   --with-libraries        additional libraries to link with
1527   --with-devel            add development options
1528   --with-efence           link with -lefence for malloc() debugging
1529   --with-csops            add CSOps standard options
1530   --without-passwd        don't use passwd/shadow file for authentication
1531   --with-skey=DIR         enable S/Key support
1532   --with-opie=DIR         enable OPIE support
1533   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1534   --with-SecurID=DIR      enable SecurID support
1535   --with-fwtk=DIR         enable FWTK AuthSRV support
1536   --with-kerb4=DIR        enable Kerberos IV support
1537   --with-kerb5=DIR        enable Kerberos V support
1538   --with-aixauth          enable AIX general authentication support
1539   --with-pam              enable PAM support
1540   --with-AFS              enable AFS support
1541   --with-DCE              enable DCE support
1542   --with-logincap         enable BSD login class support
1543   --with-bsdauth          enable BSD authentication support
1544   --with-project          enable Solaris project support
1545   --without-lecture       don't print lecture for first-time sudoer
1546   --with-logging          log via syslog, file, or both
1547   --with-logfac           syslog facility to log with (default is "local2")
1548   --with-goodpri          syslog priority for commands (def is "notice")
1549   --with-badpri           syslog priority for failures (def is "alert")
1550   --with-logpath          path to the sudo log file
1551   --with-loglen           maximum length of a log file line (default is 80)
1552   --with-ignore-dot       ignore '.' in the PATH
1553   --without-mail-if-no-user
1554                           do not send mail if user not in sudoers
1555   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1556   --with-mail-if-noperms  send mail if user not allowed to run command
1557   --with-mailto           who should get sudo mail (default is "root")
1558   --with-mailsubject      subject of sudo mail
1559   --with-passprompt       default password prompt
1560   --with-badpass-message  message the user sees when the password is wrong
1561   --with-fqdn             expect fully qualified hosts in sudoers
1562   --with-timedir          path to the sudo timestamp dir
1563   --with-sendmail         set path to sendmail
1564   --without-sendmail      do not send mail at all
1565   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1566   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1567   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1568   --with-umask            umask with which the prog should run (default is
1569                           022)
1570   --without-umask         Preserves the umask of the user invoking sudo.
1571   --with-runas-default    User to run commands as (default is "root")
1572   --with-exempt=group     no passwd needed for users in this group
1573   --with-editor=path      Default editor for visudo (defaults to vi)
1574   --with-env-editor       Use the environment variable EDITOR for visudo
1575   --with-passwd-tries     number of tries to enter password (default is 3)
1576   --with-timeout          minutes before sudo asks for passwd again (def is 5
1577                           minutes)
1578   --with-password-timeout passwd prompt timeout in minutes (default is 5
1579                           minutes)
1580   --with-tty-tickets      use a different ticket file for each tty
1581   --with-insults          insult the user for entering an incorrect password
1582   --with-all-insults      include all the sudo insult sets
1583   --with-classic-insults  include the insults from the "classic" sudo
1584   --with-csops-insults    include CSOps insults
1585   --with-hal-insults      include 2001-like insults
1586   --with-goons-insults    include the insults from the "Goon Show"
1587   --with-nsswitch=PATH    path to nsswitch.conf
1588   --with-ldap=DIR         enable LDAP support
1589   --with-ldap-conf-file   path to LDAP configuration file
1590   --with-ldap-secret-file path to LDAP secret password file
1591   --with-pc-insults       replace politically incorrect insults with less
1592                           offensive ones
1593   --with-secure-path      override the user's path with a built-in one
1594   --without-interfaces    don't try to read the ip addr of ether interfaces
1595   --with-stow             properly handle GNU stow packaging
1596   --with-askpass=PATH     Fully qualified pathname of askpass helper
1597   --with-libvas=NAME      Name of the libvas shared library
1598                           (default=libvas.so)
1599   --with-libvas-rpath=PATH
1600                           Path to look for libvas in [default=/opt/quest/lib]
1601   --with-selinux          enable SELinux support
1602   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1603   --with-pic              try to use only PIC/non-PIC objects [default=use
1604                           both]
1605   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1606   --with-netsvc=PATH      path to netsvc.conf
1607
1608 Some influential environment variables:
1609   CC          C compiler command
1610   CFLAGS      C compiler flags
1611   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1612               nonstandard directory <lib dir>
1613   LIBS        libraries to pass to the linker, e.g. -l<library>
1614   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1615               you have headers in a nonstandard directory <include dir>
1616   CPP         C preprocessor
1617   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1618               the first program found out of: `bison -y', `byacc', `yacc'.
1619   YFLAGS      The list of arguments that will be passed by default to $YACC.
1620               This script will default YFLAGS to the empty string to avoid a
1621               default value of `-d' given by some make applications.
1622
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1625
1626 Report bugs to <http://www.sudo.ws/bugs/>.
1627 _ACEOF
1628 ac_status=$?
1629 fi
1630
1631 if test "$ac_init_help" = "recursive"; then
1632   # If there are subdirs, report their specific --help.
1633   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634     test -d "$ac_dir" || continue
1635     ac_builddir=.
1636
1637 case "$ac_dir" in
1638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *)
1640   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1641   # A ".." for each directory in $ac_dir_suffix.
1642   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1643   case $ac_top_builddir_sub in
1644   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646   esac ;;
1647 esac
1648 ac_abs_top_builddir=$ac_pwd
1649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650 # for backward compatibility:
1651 ac_top_builddir=$ac_top_build_prefix
1652
1653 case $srcdir in
1654   .)  # We are building in place.
1655     ac_srcdir=.
1656     ac_top_srcdir=$ac_top_builddir_sub
1657     ac_abs_top_srcdir=$ac_pwd ;;
1658   [\\/]* | ?:[\\/]* )  # Absolute name.
1659     ac_srcdir=$srcdir$ac_dir_suffix;
1660     ac_top_srcdir=$srcdir
1661     ac_abs_top_srcdir=$srcdir ;;
1662   *) # Relative name.
1663     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664     ac_top_srcdir=$ac_top_build_prefix$srcdir
1665     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666 esac
1667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668
1669     cd "$ac_dir" || { ac_status=$?; continue; }
1670     # Check for guested configure.
1671     if test -f "$ac_srcdir/configure.gnu"; then
1672       echo &&
1673       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674     elif test -f "$ac_srcdir/configure"; then
1675       echo &&
1676       $SHELL "$ac_srcdir/configure" --help=recursive
1677     else
1678       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679     fi || ac_status=$?
1680     cd "$ac_pwd" || { ac_status=$?; break; }
1681   done
1682 fi
1683
1684 test -n "$ac_init_help" && exit $ac_status
1685 if $ac_init_version; then
1686   cat <<\_ACEOF
1687 sudo configure 1.7.2p6
1688 generated by GNU Autoconf 2.61
1689
1690 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1691 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1694 _ACEOF
1695   exit
1696 fi
1697 cat >config.log <<_ACEOF
1698 This file contains any messages produced by compilers while
1699 running configure, to aid debugging if configure makes a mistake.
1700
1701 It was created by sudo $as_me 1.7.2p6, which was
1702 generated by GNU Autoconf 2.61.  Invocation command line was
1703
1704   $ $0 $@
1705
1706 _ACEOF
1707 exec 5>>config.log
1708 {
1709 cat <<_ASUNAME
1710 ## --------- ##
1711 ## Platform. ##
1712 ## --------- ##
1713
1714 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1715 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1716 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1717 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1718 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719
1720 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1721 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1722
1723 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1724 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1725 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1726 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1727 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1728 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1729 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1730
1731 _ASUNAME
1732
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1735 do
1736   IFS=$as_save_IFS
1737   test -z "$as_dir" && as_dir=.
1738   echo "PATH: $as_dir"
1739 done
1740 IFS=$as_save_IFS
1741
1742 } >&5
1743
1744 cat >&5 <<_ACEOF
1745
1746
1747 ## ----------- ##
1748 ## Core tests. ##
1749 ## ----------- ##
1750
1751 _ACEOF
1752
1753
1754 # Keep a trace of the command line.
1755 # Strip out --no-create and --no-recursion so they do not pile up.
1756 # Strip out --silent because we don't want to record it for future runs.
1757 # Also quote any args containing shell meta-characters.
1758 # Make two passes to allow for proper duplicate-argument suppression.
1759 ac_configure_args=
1760 ac_configure_args0=
1761 ac_configure_args1=
1762 ac_must_keep_next=false
1763 for ac_pass in 1 2
1764 do
1765   for ac_arg
1766   do
1767     case $ac_arg in
1768     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1769     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1770     | -silent | --silent | --silen | --sile | --sil)
1771       continue ;;
1772     *\'*)
1773       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774     esac
1775     case $ac_pass in
1776     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1777     2)
1778       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1779       if test $ac_must_keep_next = true; then
1780         ac_must_keep_next=false # Got value, back to normal.
1781       else
1782         case $ac_arg in
1783           *=* | --config-cache | -C | -disable-* | --disable-* \
1784           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1785           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1786           | -with-* | --with-* | -without-* | --without-* | --x)
1787             case "$ac_configure_args0 " in
1788               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789             esac
1790             ;;
1791           -* ) ac_must_keep_next=true ;;
1792         esac
1793       fi
1794       ac_configure_args="$ac_configure_args '$ac_arg'"
1795       ;;
1796     esac
1797   done
1798 done
1799 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1800 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1801
1802 # When interrupted or exit'd, cleanup temporary files, and complete
1803 # config.log.  We remove comments because anyway the quotes in there
1804 # would cause problems or look ugly.
1805 # WARNING: Use '\'' to represent an apostrophe within the trap.
1806 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1807 trap 'exit_status=$?
1808   # Save into config.log some information that might help in debugging.
1809   {
1810     echo
1811
1812     cat <<\_ASBOX
1813 ## ---------------- ##
1814 ## Cache variables. ##
1815 ## ---------------- ##
1816 _ASBOX
1817     echo
1818     # The following way of writing the cache mishandles newlines in values,
1819 (
1820   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1821     eval ac_val=\$$ac_var
1822     case $ac_val in #(
1823     *${as_nl}*)
1824       case $ac_var in #(
1825       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1826 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1827       esac
1828       case $ac_var in #(
1829       _ | IFS | as_nl) ;; #(
1830       *) $as_unset $ac_var ;;
1831       esac ;;
1832     esac
1833   done
1834   (set) 2>&1 |
1835     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1836     *${as_nl}ac_space=\ *)
1837       sed -n \
1838         "s/'\''/'\''\\\\'\'''\''/g;
1839           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1840       ;; #(
1841     *)
1842       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1843       ;;
1844     esac |
1845     sort
1846 )
1847     echo
1848
1849     cat <<\_ASBOX
1850 ## ----------------- ##
1851 ## Output variables. ##
1852 ## ----------------- ##
1853 _ASBOX
1854     echo
1855     for ac_var in $ac_subst_vars
1856     do
1857       eval ac_val=\$$ac_var
1858       case $ac_val in
1859       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860       esac
1861       echo "$ac_var='\''$ac_val'\''"
1862     done | sort
1863     echo
1864
1865     if test -n "$ac_subst_files"; then
1866       cat <<\_ASBOX
1867 ## ------------------- ##
1868 ## File substitutions. ##
1869 ## ------------------- ##
1870 _ASBOX
1871       echo
1872       for ac_var in $ac_subst_files
1873       do
1874         eval ac_val=\$$ac_var
1875         case $ac_val in
1876         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877         esac
1878         echo "$ac_var='\''$ac_val'\''"
1879       done | sort
1880       echo
1881     fi
1882
1883     if test -s confdefs.h; then
1884       cat <<\_ASBOX
1885 ## ----------- ##
1886 ## confdefs.h. ##
1887 ## ----------- ##
1888 _ASBOX
1889       echo
1890       cat confdefs.h
1891       echo
1892     fi
1893     test "$ac_signal" != 0 &&
1894       echo "$as_me: caught signal $ac_signal"
1895     echo "$as_me: exit $exit_status"
1896   } >&5
1897   rm -f core *.core core.conftest.* &&
1898     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899     exit $exit_status
1900 ' 0
1901 for ac_signal in 1 2 13 15; do
1902   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1903 done
1904 ac_signal=0
1905
1906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1907 rm -f -r conftest* confdefs.h
1908
1909 # Predefined preprocessor variables.
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_NAME "$PACKAGE_NAME"
1913 _ACEOF
1914
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1918 _ACEOF
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_STRING "$PACKAGE_STRING"
1928 _ACEOF
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933 _ACEOF
1934
1935
1936 # Let the site file select an alternate cache file if it wants to.
1937 # Prefer explicitly selected file to automatically selected ones.
1938 if test -n "$CONFIG_SITE"; then
1939   set x "$CONFIG_SITE"
1940 elif test "x$prefix" != xNONE; then
1941   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1942 else
1943   set x "$ac_default_prefix/share/config.site" \
1944         "$ac_default_prefix/etc/config.site"
1945 fi
1946 shift
1947 for ac_site_file
1948 do
1949   if test -r "$ac_site_file"; then
1950     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1951 echo "$as_me: loading site script $ac_site_file" >&6;}
1952     sed 's/^/| /' "$ac_site_file" >&5
1953     . "$ac_site_file"
1954   fi
1955 done
1956
1957 if test -r "$cache_file"; then
1958   # Some versions of bash will fail to source /dev/null (special
1959   # files actually), so we avoid doing that.
1960   if test -f "$cache_file"; then
1961     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1962 echo "$as_me: loading cache $cache_file" >&6;}
1963     case $cache_file in
1964       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1965       *)                      . "./$cache_file";;
1966     esac
1967   fi
1968 else
1969   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1970 echo "$as_me: creating cache $cache_file" >&6;}
1971   >$cache_file
1972 fi
1973
1974 # Check that the precious variables saved in the cache have kept the same
1975 # value.
1976 ac_cache_corrupted=false
1977 for ac_var in $ac_precious_vars; do
1978   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1979   eval ac_new_set=\$ac_env_${ac_var}_set
1980   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1981   eval ac_new_val=\$ac_env_${ac_var}_value
1982   case $ac_old_set,$ac_new_set in
1983     set,)
1984       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1985 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1986       ac_cache_corrupted=: ;;
1987     ,set)
1988       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1989 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1990       ac_cache_corrupted=: ;;
1991     ,);;
1992     *)
1993       if test "x$ac_old_val" != "x$ac_new_val"; then
1994         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1995 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1996         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1997 echo "$as_me:   former value:  $ac_old_val" >&2;}
1998         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1999 echo "$as_me:   current value: $ac_new_val" >&2;}
2000         ac_cache_corrupted=:
2001       fi;;
2002   esac
2003   # Pass precious variables to config.status.
2004   if test "$ac_new_set" = set; then
2005     case $ac_new_val in
2006     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2007     *) ac_arg=$ac_var=$ac_new_val ;;
2008     esac
2009     case " $ac_configure_args " in
2010       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2011       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2012     esac
2013   fi
2014 done
2015 if $ac_cache_corrupted; then
2016   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2017 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2019 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2020    { (exit 1); exit 1; }; }
2021 fi
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
2047 ac_ext=c
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052
2053
2054 ac_config_headers="$ac_config_headers config.h pathnames.h"
2055
2056 { echo "$as_me:$LINENO: Configuring Sudo version $PACKAGE_VERSION" >&5
2057 echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
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
2126
2127 timeout=5
2128 password_timeout=5
2129 sudo_umask=0022
2130 passprompt="Password:"
2131 long_otp_prompt=off
2132 lecture=once
2133 logfac=local2
2134 goodpri=notice
2135 badpri=alert
2136 loglen=80
2137 ignore_dot=off
2138 mail_no_user=on
2139 mail_no_host=off
2140 mail_no_perms=off
2141 mailto=root
2142 mailsub='*** SECURITY information for %h ***'
2143 badpass_message='Sorry, try again.'
2144 fqdn=off
2145 runas_default=root
2146 env_editor=off
2147 passwd_tries=3
2148 tty_tickets=off
2149 insults=off
2150 root_sudo=on
2151 path_info=on
2152 secure_path="not set"
2153 INSTALL_NOEXEC=
2154 devdir='$(srcdir)'
2155 PROGS="sudo visudo"
2156 : ${MANTYPE='man'}
2157 : ${mansrcdir='.'}
2158 : ${SUDOERS_MODE='0440'}
2159 : ${SUDOERS_UID='0'}
2160 : ${SUDOERS_GID='0'}
2161 DEV="#"
2162 LDAP="#"
2163 SELINUX="#"
2164 BAMAN='.\" '
2165 LCMAN='.\" '
2166 SEMAN='.\" '
2167 AUTH_OBJS=
2168 AUTH_REG=
2169 AUTH_EXCL=
2170 AUTH_EXCL_DEF=
2171 AUTH_DEF=passwd
2172
2173 CHECKSHADOW=true
2174 shadow_defs=
2175 shadow_funcs=
2176 shadow_libs=
2177 shadow_libs_optional=
2178
2179 if test X"$prefix" = X"NONE"; then
2180     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2181 else
2182     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2183 fi
2184 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2185 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2186 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2187
2188
2189
2190 # Check whether --with-otp-only was given.
2191 if test "${with_otp_only+set}" = set; then
2192   withval=$with_otp_only; case $with_otp_only in
2193     yes)        with_passwd="no"
2194                 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2195 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2196                 ;;
2197 esac
2198 fi
2199
2200
2201
2202 # Check whether --with-alertmail was given.
2203 if test "${with_alertmail+set}" = set; then
2204   withval=$with_alertmail; case $with_alertmail in
2205     *)          with_mailto="$with_alertmail"
2206                 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2207 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2208                 ;;
2209 esac
2210 fi
2211
2212
2213
2214
2215 # Check whether --with-CC was given.
2216 if test "${with_CC+set}" = set; then
2217   withval=$with_CC; case $with_CC in
2218     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2219 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2220    { (exit 1); exit 1; }; }
2221                 ;;
2222     no)         { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2223 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2224    { (exit 1); exit 1; }; }
2225                 ;;
2226     *)          CC=$with_CC
2227                 ;;
2228 esac
2229 fi
2230
2231
2232
2233 # Check whether --with-rpath was given.
2234 if test "${with_rpath+set}" = set; then
2235   withval=$with_rpath; case $with_rpath in
2236     yes|no)     ;;
2237     *)          { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2238 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2239    { (exit 1); exit 1; }; }
2240                 ;;
2241 esac
2242 fi
2243
2244
2245
2246 # Check whether --with-blibpath was given.
2247 if test "${with_blibpath+set}" = set; then
2248   withval=$with_blibpath; case $with_blibpath in
2249     yes|no)     ;;
2250     *)          { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2251 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2252                 ;;
2253 esac
2254 fi
2255
2256
2257
2258 # Check whether --with-bsm-audit was given.
2259 if test "${with_bsm_audit+set}" = set; then
2260   withval=$with_bsm_audit; case $with_bsm_audit in
2261     yes)        cat >>confdefs.h <<\_ACEOF
2262 #define HAVE_BSM_AUDIT 1
2263 _ACEOF
2264
2265                 SUDO_LIBS="${SUDO_LIBS} -lbsm"
2266                 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
2267                 ;;
2268     no)         ;;
2269     *)          { { echo "$as_me:$LINENO: error: \"--with-bsm-audit does not take an argument.\"" >&5
2270 echo "$as_me: error: \"--with-bsm-audit does not take an argument.\"" >&2;}
2271    { (exit 1); exit 1; }; }
2272                 ;;
2273 esac
2274 fi
2275
2276
2277
2278 # Check whether --with-incpath was given.
2279 if test "${with_incpath+set}" = set; then
2280   withval=$with_incpath; case $with_incpath in
2281     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2282 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2283    { (exit 1); exit 1; }; }
2284                 ;;
2285     no)         { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2286 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2287    { (exit 1); exit 1; }; }
2288                 ;;
2289     *)          { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2290 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2291                 for i in ${with_incpath}; do
2292                     CPPFLAGS="${CPPFLAGS} -I${i}"
2293                 done
2294                 ;;
2295 esac
2296 fi
2297
2298
2299
2300 # Check whether --with-libpath was given.
2301 if test "${with_libpath+set}" = set; then
2302   withval=$with_libpath; case $with_libpath in
2303     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2304 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2305    { (exit 1); exit 1; }; }
2306                 ;;
2307     no)         { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2308 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2309    { (exit 1); exit 1; }; }
2310                 ;;
2311     *)          { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2312 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2313                 ;;
2314 esac
2315 fi
2316
2317
2318
2319 # Check whether --with-libraries was given.
2320 if test "${with_libraries+set}" = set; then
2321   withval=$with_libraries; case $with_libraries in
2322     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2323 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2324    { (exit 1); exit 1; }; }
2325                 ;;
2326     no)         { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2327 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2328    { (exit 1); exit 1; }; }
2329                 ;;
2330     *)          { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2331 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2332                 ;;
2333 esac
2334 fi
2335
2336
2337
2338 # Check whether --with-devel was given.
2339 if test "${with_devel+set}" = set; then
2340   withval=$with_devel; case $with_devel in
2341     yes)        { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2342 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2343                 PROGS="${PROGS} testsudoers"
2344                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2345                 DEV=""
2346                 devdir=.
2347                 ;;
2348     no)         ;;
2349     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2350 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2351                 ;;
2352 esac
2353 fi
2354
2355
2356
2357 # Check whether --with-efence was given.
2358 if test "${with_efence+set}" = set; then
2359   withval=$with_efence; case $with_efence in
2360     yes)        { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2361 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2362                 LIBS="${LIBS} -lefence"
2363                 if test -f /usr/local/lib/libefence.a; then
2364                     with_libpath="${with_libpath} /usr/local/lib"
2365                 fi
2366                 ;;
2367     no)         ;;
2368     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2369 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2370                 ;;
2371 esac
2372 fi
2373
2374
2375
2376 # Check whether --with-csops was given.
2377 if test "${with_csops+set}" = set; then
2378   withval=$with_csops; case $with_csops in
2379     yes)        { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2380 echo "$as_me: Adding CSOps standard options" >&6;}
2381                 CHECKSIA=false
2382                 with_ignore_dot=yes
2383                 insults=on
2384                 with_classic_insults=yes
2385                 with_csops_insults=yes
2386                 with_env_editor=yes
2387                 : ${mansectsu='8'}
2388                 : ${mansectform='5'}
2389                 ;;
2390     no)         ;;
2391     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2392 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2393                 ;;
2394 esac
2395 fi
2396
2397
2398
2399 # Check whether --with-passwd was given.
2400 if test "${with_passwd+set}" = set; then
2401   withval=$with_passwd; case $with_passwd in
2402     yes|no)     { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2403 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2404                 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2405 echo "${ECHO_T}$with_passwd" >&6; }
2406                 AUTH_DEF=""
2407                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2408                 ;;
2409     *)          { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2410 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2411    { (exit 1); exit 1; }; }
2412                 ;;
2413 esac
2414 fi
2415
2416
2417
2418 # Check whether --with-skey was given.
2419 if test "${with_skey+set}" = set; then
2420   withval=$with_skey; case $with_skey in
2421     no)         with_skey=""
2422                 ;;
2423     *)          cat >>confdefs.h <<\_ACEOF
2424 #define HAVE_SKEY 1
2425 _ACEOF
2426
2427                 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2428 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2429                 { echo "$as_me:$LINENO: result: yes" >&5
2430 echo "${ECHO_T}yes" >&6; }
2431                 AUTH_REG="$AUTH_REG S/Key"
2432                 ;;
2433 esac
2434 fi
2435
2436
2437
2438 # Check whether --with-opie was given.
2439 if test "${with_opie+set}" = set; then
2440   withval=$with_opie; case $with_opie in
2441     no)         with_opie=""
2442                 ;;
2443     *)          cat >>confdefs.h <<\_ACEOF
2444 #define HAVE_OPIE 1
2445 _ACEOF
2446
2447                 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2448 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2449                 { echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6; }
2451                 AUTH_REG="$AUTH_REG NRL_OPIE"
2452                 ;;
2453 esac
2454 fi
2455
2456
2457
2458 # Check whether --with-long-otp-prompt was given.
2459 if test "${with_long_otp_prompt+set}" = set; then
2460   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2461     yes)        cat >>confdefs.h <<\_ACEOF
2462 #define LONG_OTP_PROMPT 1
2463 _ACEOF
2464
2465                 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2466 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2467                 { echo "$as_me:$LINENO: result: yes" >&5
2468 echo "${ECHO_T}yes" >&6; }
2469                 long_otp_prompt=on
2470                 ;;
2471     no)         long_otp_prompt=off
2472                 ;;
2473     *)          { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2474 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2475    { (exit 1); exit 1; }; }
2476                 ;;
2477 esac
2478 fi
2479
2480
2481
2482 # Check whether --with-SecurID was given.
2483 if test "${with_SecurID+set}" = set; then
2484   withval=$with_SecurID; case $with_SecurID in
2485     no)         with_SecurID="";;
2486     *)          cat >>confdefs.h <<\_ACEOF
2487 #define HAVE_SECURID 1
2488 _ACEOF
2489
2490                 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2491 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2492                 { echo "$as_me:$LINENO: result: yes" >&5
2493 echo "${ECHO_T}yes" >&6; }
2494                 AUTH_EXCL="$AUTH_EXCL SecurID"
2495                 ;;
2496 esac
2497 fi
2498
2499
2500
2501 # Check whether --with-fwtk was given.
2502 if test "${with_fwtk+set}" = set; then
2503   withval=$with_fwtk; case $with_fwtk in
2504     no)         with_fwtk="";;
2505     *)          cat >>confdefs.h <<\_ACEOF
2506 #define HAVE_FWTK 1
2507 _ACEOF
2508
2509                 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2510 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2511                 { echo "$as_me:$LINENO: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6; }
2513                 AUTH_EXCL="$AUTH_EXCL FWTK"
2514                 ;;
2515 esac
2516 fi
2517
2518
2519
2520 # Check whether --with-kerb4 was given.
2521 if test "${with_kerb4+set}" = set; then
2522   withval=$with_kerb4; case $with_kerb4 in
2523     no)         with_kerb4="";;
2524     *)          { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2525 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2526                 { echo "$as_me:$LINENO: result: yes" >&5
2527 echo "${ECHO_T}yes" >&6; }
2528                 AUTH_REG="$AUTH_REG kerb4"
2529                 ;;
2530 esac
2531 fi
2532
2533
2534
2535 # Check whether --with-kerb5 was given.
2536 if test "${with_kerb5+set}" = set; then
2537   withval=$with_kerb5; case $with_kerb5 in
2538     no)         with_kerb5="";;
2539     *)          { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2540 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2541                 { echo "$as_me:$LINENO: result: yes" >&5
2542 echo "${ECHO_T}yes" >&6; }
2543                 AUTH_REG="$AUTH_REG kerb5"
2544                 ;;
2545 esac
2546 fi
2547
2548
2549
2550 # Check whether --with-aixauth was given.
2551 if test "${with_aixauth+set}" = set; then
2552   withval=$with_aixauth; case $with_aixauth in
2553     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2554     no)         ;;
2555     *)          { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2556 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2557    { (exit 1); exit 1; }; }
2558                 ;;
2559 esac
2560 fi
2561
2562
2563
2564 # Check whether --with-pam was given.
2565 if test "${with_pam+set}" = set; then
2566   withval=$with_pam; case $with_pam in
2567     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
2568     no)         ;;
2569     *)          { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2570 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2571    { (exit 1); exit 1; }; }
2572                 ;;
2573 esac
2574 fi
2575
2576
2577
2578 # Check whether --with-AFS was given.
2579 if test "${with_AFS+set}" = set; then
2580   withval=$with_AFS; case $with_AFS in
2581     yes)        cat >>confdefs.h <<\_ACEOF
2582 #define HAVE_AFS 1
2583 _ACEOF
2584
2585                 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2586 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2587                 { echo "$as_me:$LINENO: result: yes" >&5
2588 echo "${ECHO_T}yes" >&6; }
2589                 AUTH_REG="$AUTH_REG AFS"
2590                 ;;
2591     no)         ;;
2592     *)          { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2593 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2594    { (exit 1); exit 1; }; }
2595                 ;;
2596 esac
2597 fi
2598
2599
2600
2601 # Check whether --with-DCE was given.
2602 if test "${with_DCE+set}" = set; then
2603   withval=$with_DCE; case $with_DCE in
2604     yes)        cat >>confdefs.h <<\_ACEOF
2605 #define HAVE_DCE 1
2606 _ACEOF
2607
2608                 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2609 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2610                 { echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6; }
2612                 AUTH_REG="$AUTH_REG DCE"
2613                 ;;
2614     no)         ;;
2615     *)          { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2616 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2617    { (exit 1); exit 1; }; }
2618                 ;;
2619 esac
2620 fi
2621
2622
2623
2624 # Check whether --with-logincap was given.
2625 if test "${with_logincap+set}" = set; then
2626   withval=$with_logincap; case $with_logincap in
2627     yes|no)     ;;
2628     *)          { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2629 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2630    { (exit 1); exit 1; }; }
2631                 ;;
2632 esac
2633 fi
2634
2635
2636
2637 # Check whether --with-bsdauth was given.
2638 if test "${with_bsdauth+set}" = set; then
2639   withval=$with_bsdauth; case $with_bsdauth in
2640     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2641     no)         ;;
2642     *)          { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2643 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2644    { (exit 1); exit 1; }; }
2645                 ;;
2646 esac
2647 fi
2648
2649
2650
2651 # Check whether --with-project was given.
2652 if test "${with_project+set}" = set; then
2653   withval=$with_project; case $with_project in
2654     yes|no)     ;;
2655     no) ;;
2656     *)          { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2657 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2658    { (exit 1); exit 1; }; }
2659                 ;;
2660 esac
2661 fi
2662
2663
2664 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2665 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2666
2667 # Check whether --with-lecture was given.
2668 if test "${with_lecture+set}" = set; then
2669   withval=$with_lecture; case $with_lecture in
2670     yes|short|always)   lecture=once
2671                 ;;
2672     no|none|never)      lecture=never
2673                 ;;
2674     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2675 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2676    { (exit 1); exit 1; }; }
2677                 ;;
2678 esac
2679 fi
2680
2681 if test "$lecture" = "once"; then
2682     { echo "$as_me:$LINENO: result: yes" >&5
2683 echo "${ECHO_T}yes" >&6; }
2684 else
2685     cat >>confdefs.h <<\_ACEOF
2686 #define NO_LECTURE 1
2687 _ACEOF
2688
2689     { echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6; }
2691 fi
2692
2693 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2694 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2695
2696 # Check whether --with-logging was given.
2697 if test "${with_logging+set}" = set; then
2698   withval=$with_logging; case $with_logging in
2699     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2700 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2701    { (exit 1); exit 1; }; }
2702                 ;;
2703     no)         { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2704 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2705    { (exit 1); exit 1; }; }
2706                 ;;
2707     syslog)     cat >>confdefs.h <<\_ACEOF
2708 #define LOGGING SLOG_SYSLOG
2709 _ACEOF
2710
2711                 { echo "$as_me:$LINENO: result: syslog" >&5
2712 echo "${ECHO_T}syslog" >&6; }
2713                 ;;
2714     file)       cat >>confdefs.h <<\_ACEOF
2715 #define LOGGING SLOG_FILE
2716 _ACEOF
2717
2718                 { echo "$as_me:$LINENO: result: file" >&5
2719 echo "${ECHO_T}file" >&6; }
2720                 ;;
2721     both)       cat >>confdefs.h <<\_ACEOF
2722 #define LOGGING SLOG_BOTH
2723 _ACEOF
2724
2725                 { echo "$as_me:$LINENO: result: both" >&5
2726 echo "${ECHO_T}both" >&6; }
2727                 ;;
2728     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2729 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2730    { (exit 1); exit 1; }; }
2731                 ;;
2732 esac
2733 else
2734   cat >>confdefs.h <<\_ACEOF
2735 #define LOGGING SLOG_SYSLOG
2736 _ACEOF
2737  { echo "$as_me:$LINENO: result: syslog" >&5
2738 echo "${ECHO_T}syslog" >&6; }
2739 fi
2740
2741
2742 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2743 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2744
2745 # Check whether --with-logfac was given.
2746 if test "${with_logfac+set}" = set; then
2747   withval=$with_logfac; case $with_logfac in
2748     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2749 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2750    { (exit 1); exit 1; }; }
2751                 ;;
2752     no)         { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2753 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2754    { (exit 1); exit 1; }; }
2755                 ;;
2756     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
2757                 ;;
2758     *)          { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2759 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2760    { (exit 1); exit 1; }; }
2761                 ;;
2762 esac
2763 fi
2764
2765
2766 cat >>confdefs.h <<_ACEOF
2767 #define LOGFAC "$logfac"
2768 _ACEOF
2769
2770 { echo "$as_me:$LINENO: result: $logfac" >&5
2771 echo "${ECHO_T}$logfac" >&6; }
2772
2773 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2774 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2775
2776 # Check whether --with-goodpri was given.
2777 if test "${with_goodpri+set}" = set; then
2778   withval=$with_goodpri; case $with_goodpri in
2779     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2780 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2781    { (exit 1); exit 1; }; }
2782                 ;;
2783     no)         { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2784 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2785    { (exit 1); exit 1; }; }
2786                 ;;
2787     alert|crit|debug|emerg|err|info|notice|warning)
2788                 goodpri=$with_goodpri
2789                 ;;
2790     *)          { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2791 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2792    { (exit 1); exit 1; }; }
2793                 ;;
2794 esac
2795 fi
2796
2797
2798 cat >>confdefs.h <<_ACEOF
2799 #define PRI_SUCCESS "$goodpri"
2800 _ACEOF
2801
2802 { echo "$as_me:$LINENO: result: $goodpri" >&5
2803 echo "${ECHO_T}$goodpri" >&6; }
2804
2805 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2806 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2807
2808 # Check whether --with-badpri was given.
2809 if test "${with_badpri+set}" = set; then
2810   withval=$with_badpri; case $with_badpri in
2811     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2812 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2813    { (exit 1); exit 1; }; }
2814                 ;;
2815     no)         { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2816 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2817    { (exit 1); exit 1; }; }
2818                 ;;
2819     alert|crit|debug|emerg|err|info|notice|warning)
2820                 badpri=$with_badpri
2821                 ;;
2822     *)          { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2823 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2824    { (exit 1); exit 1; }; }
2825                 ;;
2826 esac
2827 fi
2828
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PRI_FAILURE "$badpri"
2832 _ACEOF
2833
2834 { echo "$as_me:$LINENO: result: $badpri" >&5
2835 echo "${ECHO_T}$badpri" >&6; }
2836
2837
2838 # Check whether --with-logpath was given.
2839 if test "${with_logpath+set}" = set; then
2840   withval=$with_logpath; case $with_logpath in
2841     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2842 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2843    { (exit 1); exit 1; }; }
2844                 ;;
2845     no)         { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2846 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2847    { (exit 1); exit 1; }; }
2848                 ;;
2849 esac
2850 fi
2851
2852
2853 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2854 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2855
2856 # Check whether --with-loglen was given.
2857 if test "${with_loglen+set}" = set; then
2858   withval=$with_loglen; case $with_loglen in
2859     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2860 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2861    { (exit 1); exit 1; }; }
2862                 ;;
2863     no)         { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2864 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2865    { (exit 1); exit 1; }; }
2866                 ;;
2867     [0-9]*)     loglen=$with_loglen
2868                 ;;
2869     *)          { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2870 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2871    { (exit 1); exit 1; }; }
2872                 ;;
2873 esac
2874 fi
2875
2876
2877 cat >>confdefs.h <<_ACEOF
2878 #define MAXLOGFILELEN $loglen
2879 _ACEOF
2880
2881 { echo "$as_me:$LINENO: result: $loglen" >&5
2882 echo "${ECHO_T}$loglen" >&6; }
2883
2884 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2885 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2886
2887 # Check whether --with-ignore-dot was given.
2888 if test "${with_ignore_dot+set}" = set; then
2889   withval=$with_ignore_dot; case $with_ignore_dot in
2890     yes)        ignore_dot=on
2891                 ;;
2892     no)         ignore_dot=off
2893                 ;;
2894     *)          { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2895 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2896    { (exit 1); exit 1; }; }
2897                 ;;
2898 esac
2899 fi
2900
2901 if test "$ignore_dot" = "on"; then
2902     cat >>confdefs.h <<\_ACEOF
2903 #define IGNORE_DOT_PATH 1
2904 _ACEOF
2905
2906     { echo "$as_me:$LINENO: result: yes" >&5
2907 echo "${ECHO_T}yes" >&6; }
2908 else
2909     { echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6; }
2911 fi
2912
2913 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2914 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2915
2916 # Check whether --with-mail-if-no-user was given.
2917 if test "${with_mail_if_no_user+set}" = set; then
2918   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2919     yes)        mail_no_user=on
2920                 ;;
2921     no)         mail_no_user=off
2922                 ;;
2923     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2924 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2925    { (exit 1); exit 1; }; }
2926                 ;;
2927 esac
2928 fi
2929
2930 if test "$mail_no_user" = "on"; then
2931     cat >>confdefs.h <<\_ACEOF
2932 #define SEND_MAIL_WHEN_NO_USER 1
2933 _ACEOF
2934
2935     { echo "$as_me:$LINENO: result: yes" >&5
2936 echo "${ECHO_T}yes" >&6; }
2937 else
2938     { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2940 fi
2941
2942 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2943 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2944
2945 # Check whether --with-mail-if-no-host was given.
2946 if test "${with_mail_if_no_host+set}" = set; then
2947   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2948     yes)        mail_no_host=on
2949                 ;;
2950     no)         mail_no_host=off
2951                 ;;
2952     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2953 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2954    { (exit 1); exit 1; }; }
2955                 ;;
2956 esac
2957 fi
2958
2959 if test "$mail_no_host" = "on"; then
2960     cat >>confdefs.h <<\_ACEOF
2961 #define SEND_MAIL_WHEN_NO_HOST 1
2962 _ACEOF
2963
2964     { echo "$as_me:$LINENO: result: yes" >&5
2965 echo "${ECHO_T}yes" >&6; }
2966 else
2967     { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2969 fi
2970
2971 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2972 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2973
2974 # Check whether --with-mail-if-noperms was given.
2975 if test "${with_mail_if_noperms+set}" = set; then
2976   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2977     yes)        mail_noperms=on
2978                 ;;
2979     no)         mail_noperms=off
2980                 ;;
2981     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2982 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2983    { (exit 1); exit 1; }; }
2984                 ;;
2985 esac
2986 fi
2987
2988 if test "$mail_noperms" = "on"; then
2989     cat >>confdefs.h <<\_ACEOF
2990 #define SEND_MAIL_WHEN_NOT_OK 1
2991 _ACEOF
2992
2993     { echo "$as_me:$LINENO: result: yes" >&5
2994 echo "${ECHO_T}yes" >&6; }
2995 else
2996     { echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6; }
2998 fi
2999
3000 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
3001 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
3002
3003 # Check whether --with-mailto was given.
3004 if test "${with_mailto+set}" = set; then
3005   withval=$with_mailto; case $with_mailto in
3006     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
3007 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
3008    { (exit 1); exit 1; }; }
3009                 ;;
3010     no)         { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
3011 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
3012    { (exit 1); exit 1; }; }
3013                 ;;
3014     *)          mailto=$with_mailto
3015                 ;;
3016 esac
3017 fi
3018
3019
3020 cat >>confdefs.h <<_ACEOF
3021 #define MAILTO "$mailto"
3022 _ACEOF
3023
3024 { echo "$as_me:$LINENO: result: $mailto" >&5
3025 echo "${ECHO_T}$mailto" >&6; }
3026
3027
3028 # Check whether --with-mailsubject was given.
3029 if test "${with_mailsubject+set}" = set; then
3030   withval=$with_mailsubject; case $with_mailsubject in
3031     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
3032 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
3033    { (exit 1); exit 1; }; }
3034                 ;;
3035     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
3036 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
3037                 ;;
3038     *)          mailsub="$with_mailsubject"
3039                 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
3040 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
3041                 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
3042 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
3043                 ;;
3044 esac
3045 fi
3046
3047
3048 cat >>confdefs.h <<_ACEOF
3049 #define MAILSUBJECT "$mailsub"
3050 _ACEOF
3051
3052
3053 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
3054 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
3055
3056 # Check whether --with-passprompt was given.
3057 if test "${with_passprompt+set}" = set; then
3058   withval=$with_passprompt; case $with_passprompt in
3059     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
3060 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
3061    { (exit 1); exit 1; }; }
3062                 ;;
3063     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
3064 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
3065                 ;;
3066     *)          passprompt="$with_passprompt"
3067 esac
3068 fi
3069
3070 { echo "$as_me:$LINENO: result: $passprompt" >&5
3071 echo "${ECHO_T}$passprompt" >&6; }
3072
3073 cat >>confdefs.h <<_ACEOF
3074 #define PASSPROMPT "$passprompt"
3075 _ACEOF
3076
3077
3078 { echo "$as_me:$LINENO: checking for bad password message" >&5
3079 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
3080
3081 # Check whether --with-badpass-message was given.
3082 if test "${with_badpass_message+set}" = set; then
3083   withval=$with_badpass_message; case $with_badpass_message in
3084     yes)        { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3085 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3086    { (exit 1); exit 1; }; }
3087                 ;;
3088     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3089 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3090                 ;;
3091     *)          badpass_message="$with_badpass_message"
3092                 ;;
3093 esac
3094 fi
3095
3096
3097 cat >>confdefs.h <<_ACEOF
3098 #define INCORRECT_PASSWORD "$badpass_message"
3099 _ACEOF
3100
3101 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3102 echo "${ECHO_T}$badpass_message" >&6; }
3103
3104 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3105 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3106
3107 # Check whether --with-fqdn was given.
3108 if test "${with_fqdn+set}" = set; then
3109   withval=$with_fqdn; case $with_fqdn in
3110     yes)        fqdn=on
3111                 ;;
3112     no)         fqdn=off
3113                 ;;
3114     *)          { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3115 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3116    { (exit 1); exit 1; }; }
3117                 ;;
3118 esac
3119 fi
3120
3121 if test "$fqdn" = "on"; then
3122     cat >>confdefs.h <<\_ACEOF
3123 #define FQDN 1
3124 _ACEOF
3125
3126     { echo "$as_me:$LINENO: result: yes" >&5
3127 echo "${ECHO_T}yes" >&6; }
3128 else
3129     { echo "$as_me:$LINENO: result: no" >&5
3130 echo "${ECHO_T}no" >&6; }
3131 fi
3132
3133
3134 # Check whether --with-timedir was given.
3135 if test "${with_timedir+set}" = set; then
3136   withval=$with_timedir; case $with_timedir in
3137     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3138 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3139    { (exit 1); exit 1; }; }
3140                 ;;
3141     no)         { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3142 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3143    { (exit 1); exit 1; }; }
3144                 ;;
3145 esac
3146 fi
3147
3148
3149
3150 # Check whether --with-sendmail was given.
3151 if test "${with_sendmail+set}" = set; then
3152   withval=$with_sendmail; case $with_sendmail in
3153     yes)        with_sendmail=""
3154                 ;;
3155     no)         ;;
3156     *)          cat >>confdefs.h <<EOF
3157 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3158 EOF
3159
3160                 ;;
3161 esac
3162 fi
3163
3164
3165
3166 # Check whether --with-sudoers-mode was given.
3167 if test "${with_sudoers_mode+set}" = set; then
3168   withval=$with_sudoers_mode; case $with_sudoers_mode in
3169     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3170 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3171    { (exit 1); exit 1; }; }
3172                 ;;
3173     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3174 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3175    { (exit 1); exit 1; }; }
3176                 ;;
3177     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
3178                 ;;
3179     0*)         SUDOERS_MODE=$with_sudoers_mode
3180                 ;;
3181     *)          { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3182 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3183    { (exit 1); exit 1; }; }
3184                 ;;
3185 esac
3186 fi
3187
3188
3189
3190 # Check whether --with-sudoers-uid was given.
3191 if test "${with_sudoers_uid+set}" = set; then
3192   withval=$with_sudoers_uid; case $with_sudoers_uid in
3193     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3194 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3195    { (exit 1); exit 1; }; }
3196                 ;;
3197     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3198 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3199    { (exit 1); exit 1; }; }
3200                 ;;
3201     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
3202                 ;;
3203     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3204 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3205    { (exit 1); exit 1; }; }
3206                 ;;
3207 esac
3208 fi
3209
3210
3211
3212 # Check whether --with-sudoers-gid was given.
3213 if test "${with_sudoers_gid+set}" = set; then
3214   withval=$with_sudoers_gid; case $with_sudoers_gid in
3215     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3216 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3217    { (exit 1); exit 1; }; }
3218                 ;;
3219     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3220 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3221    { (exit 1); exit 1; }; }
3222                 ;;
3223     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
3224                 ;;
3225     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3226 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3227    { (exit 1); exit 1; }; }
3228                 ;;
3229 esac
3230 fi
3231
3232
3233 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3234 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3235
3236 # Check whether --with-umask was given.
3237 if test "${with_umask+set}" = set; then
3238   withval=$with_umask; case $with_umask in
3239     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3240 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3241    { (exit 1); exit 1; }; }
3242                 ;;
3243     no)         sudo_umask=0777
3244                 ;;
3245     [0-9]*)     sudo_umask=$with_umask
3246                 ;;
3247     *)          { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3248 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3249    { (exit 1); exit 1; }; }
3250                 ;;
3251 esac
3252 fi
3253
3254
3255 cat >>confdefs.h <<_ACEOF
3256 #define SUDO_UMASK $sudo_umask
3257 _ACEOF
3258
3259 if test "$sudo_umask" = "0777"; then
3260     { echo "$as_me:$LINENO: result: user" >&5
3261 echo "${ECHO_T}user" >&6; }
3262 else
3263     { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3264 echo "${ECHO_T}$sudo_umask" >&6; }
3265 fi
3266
3267 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3268 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3269
3270 # Check whether --with-runas-default was given.
3271 if test "${with_runas_default+set}" = set; then
3272   withval=$with_runas_default; case $with_runas_default in
3273     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3274 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3275    { (exit 1); exit 1; }; }
3276                 ;;
3277     no)         { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3278 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3279    { (exit 1); exit 1; }; }
3280                 ;;
3281     *)          runas_default="$with_runas_default"
3282                 ;;
3283 esac
3284 fi
3285
3286
3287 cat >>confdefs.h <<_ACEOF
3288 #define RUNAS_DEFAULT "$runas_default"
3289 _ACEOF
3290
3291 { echo "$as_me:$LINENO: result: $runas_default" >&5
3292 echo "${ECHO_T}$runas_default" >&6; }
3293
3294
3295 # Check whether --with-exempt was given.
3296 if test "${with_exempt+set}" = set; then
3297   withval=$with_exempt; case $with_exempt in
3298     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3299 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3300    { (exit 1); exit 1; }; }
3301                 ;;
3302     no)         { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3303 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3304    { (exit 1); exit 1; }; }
3305                 ;;
3306     *)
3307 cat >>confdefs.h <<_ACEOF
3308 #define EXEMPTGROUP "$with_exempt"
3309 _ACEOF
3310
3311                 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3312 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3313                 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3314 echo "${ECHO_T}$with_exempt" >&6; }
3315                 ;;
3316 esac
3317 fi
3318
3319
3320 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3321 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3322
3323 # Check whether --with-editor was given.
3324 if test "${with_editor+set}" = set; then
3325   withval=$with_editor; case $with_editor in
3326     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3327 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3328    { (exit 1); exit 1; }; }
3329                 ;;
3330     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3331 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3332    { (exit 1); exit 1; }; }
3333                 ;;
3334     *)
3335 cat >>confdefs.h <<_ACEOF
3336 #define EDITOR "$with_editor"
3337 _ACEOF
3338
3339                 { echo "$as_me:$LINENO: result: $with_editor" >&5
3340 echo "${ECHO_T}$with_editor" >&6; }
3341                 ;;
3342 esac
3343 else
3344   cat >>confdefs.h <<\_ACEOF
3345 #define EDITOR _PATH_VI
3346 _ACEOF
3347  { echo "$as_me:$LINENO: result: vi" >&5
3348 echo "${ECHO_T}vi" >&6; }
3349 fi
3350
3351
3352 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3353 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3354
3355 # Check whether --with-env-editor was given.
3356 if test "${with_env_editor+set}" = set; then
3357   withval=$with_env_editor; case $with_env_editor in
3358     yes)        env_editor=on
3359                 ;;
3360     no)         env_editor=off
3361                 ;;
3362     *)          { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3363 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3364    { (exit 1); exit 1; }; }
3365                 ;;
3366 esac
3367 fi
3368
3369 if test "$env_editor" = "on"; then
3370     cat >>confdefs.h <<\_ACEOF
3371 #define ENV_EDITOR 1
3372 _ACEOF
3373
3374     { echo "$as_me:$LINENO: result: yes" >&5
3375 echo "${ECHO_T}yes" >&6; }
3376 else
3377     { echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6; }
3379 fi
3380
3381 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3382 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3383
3384 # Check whether --with-passwd-tries was given.
3385 if test "${with_passwd_tries+set}" = set; then
3386   withval=$with_passwd_tries; case $with_passwd_tries in
3387     yes)        ;;
3388     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3389 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3390    { (exit 1); exit 1; }; }
3391                 ;;
3392     [1-9]*)     passwd_tries=$with_passwd_tries
3393                 ;;
3394     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3395 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3396    { (exit 1); exit 1; }; }
3397                 ;;
3398 esac
3399 fi
3400
3401
3402 cat >>confdefs.h <<_ACEOF
3403 #define TRIES_FOR_PASSWORD $passwd_tries
3404 _ACEOF
3405
3406 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3407 echo "${ECHO_T}$passwd_tries" >&6; }
3408
3409 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3410 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3411
3412 # Check whether --with-timeout was given.
3413 if test "${with_timeout+set}" = set; then
3414   withval=$with_timeout; case $with_timeout in
3415     yes)        ;;
3416     no)         timeout=0
3417                 ;;
3418     [0-9]*)     timeout=$with_timeout
3419                 ;;
3420     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3421 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3422    { (exit 1); exit 1; }; }
3423                 ;;
3424 esac
3425 fi
3426
3427
3428 cat >>confdefs.h <<_ACEOF
3429 #define TIMEOUT $timeout
3430 _ACEOF
3431
3432 { echo "$as_me:$LINENO: result: $timeout" >&5
3433 echo "${ECHO_T}$timeout" >&6; }
3434
3435 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3436 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3437
3438 # Check whether --with-password-timeout was given.
3439 if test "${with_password_timeout+set}" = set; then
3440   withval=$with_password_timeout; case $with_password_timeout in
3441     yes)        ;;
3442     no)         password_timeout=0
3443                 ;;
3444     [0-9]*)     password_timeout=$with_password_timeout
3445                 ;;
3446     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3447 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3448    { (exit 1); exit 1; }; }
3449                 ;;
3450 esac
3451 fi
3452
3453
3454 cat >>confdefs.h <<_ACEOF
3455 #define PASSWORD_TIMEOUT $password_timeout
3456 _ACEOF
3457
3458 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3459 echo "${ECHO_T}$password_timeout" >&6; }
3460
3461 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3462 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3463
3464 # Check whether --with-tty-tickets was given.
3465 if test "${with_tty_tickets+set}" = set; then
3466   withval=$with_tty_tickets; case $with_tty_tickets in
3467     yes)        tty_tickets=on
3468                 ;;
3469     no)         tty_tickets=off
3470                 ;;
3471     *)          { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3472 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3473    { (exit 1); exit 1; }; }
3474                 ;;
3475 esac
3476 fi
3477
3478 if test "$tty_tickets" = "on"; then
3479     cat >>confdefs.h <<\_ACEOF
3480 #define USE_TTY_TICKETS 1
3481 _ACEOF
3482
3483     { echo "$as_me:$LINENO: result: yes" >&5
3484 echo "${ECHO_T}yes" >&6; }
3485 else
3486     { echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6; }
3488 fi
3489
3490 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3491 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3492
3493 # Check whether --with-insults was given.
3494 if test "${with_insults+set}" = set; then
3495   withval=$with_insults; case $with_insults in
3496     yes)        insults=on
3497                 with_classic_insults=yes
3498                 with_csops_insults=yes
3499                 ;;
3500     no)         insults=off
3501                 ;;
3502     *)          { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3503 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3504    { (exit 1); exit 1; }; }
3505                 ;;
3506 esac
3507 fi
3508
3509 if test "$insults" = "on"; then
3510     cat >>confdefs.h <<\_ACEOF
3511 #define USE_INSULTS 1
3512 _ACEOF
3513
3514     { echo "$as_me:$LINENO: result: yes" >&5
3515 echo "${ECHO_T}yes" >&6; }
3516 else
3517     { echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6; }
3519 fi
3520
3521
3522 # Check whether --with-all-insults was given.
3523 if test "${with_all_insults+set}" = set; then
3524   withval=$with_all_insults; case $with_all_insults in
3525     yes)        with_classic_insults=yes
3526                 with_csops_insults=yes
3527                 with_hal_insults=yes
3528                 with_goons_insults=yes
3529                 ;;
3530     no)         ;;
3531     *)          { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3532 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3533    { (exit 1); exit 1; }; }
3534                 ;;
3535 esac
3536 fi
3537
3538
3539
3540 # Check whether --with-classic-insults was given.
3541 if test "${with_classic_insults+set}" = set; then
3542   withval=$with_classic_insults; case $with_classic_insults in
3543     yes)        cat >>confdefs.h <<\_ACEOF
3544 #define CLASSIC_INSULTS 1
3545 _ACEOF
3546
3547                 ;;
3548     no)         ;;
3549     *)          { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3550 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3551    { (exit 1); exit 1; }; }
3552                 ;;
3553 esac
3554 fi
3555
3556
3557
3558 # Check whether --with-csops-insults was given.
3559 if test "${with_csops_insults+set}" = set; then
3560   withval=$with_csops_insults; case $with_csops_insults in
3561     yes)        cat >>confdefs.h <<\_ACEOF
3562 #define CSOPS_INSULTS 1
3563 _ACEOF
3564
3565                 ;;
3566     no)         ;;
3567     *)          { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3568 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3569    { (exit 1); exit 1; }; }
3570                 ;;
3571 esac
3572 fi
3573
3574
3575
3576 # Check whether --with-hal-insults was given.
3577 if test "${with_hal_insults+set}" = set; then
3578   withval=$with_hal_insults; case $with_hal_insults in
3579     yes)        cat >>confdefs.h <<\_ACEOF
3580 #define HAL_INSULTS 1
3581 _ACEOF
3582
3583                 ;;
3584     no)         ;;
3585     *)          { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3586 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3587    { (exit 1); exit 1; }; }
3588                 ;;
3589 esac
3590 fi
3591
3592
3593
3594 # Check whether --with-goons-insults was given.
3595 if test "${with_goons_insults+set}" = set; then
3596   withval=$with_goons_insults; case $with_goons_insults in
3597     yes)        cat >>confdefs.h <<\_ACEOF
3598 #define GOONS_INSULTS 1
3599 _ACEOF
3600
3601                 ;;
3602     no)         ;;
3603     *)          { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3604 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3605    { (exit 1); exit 1; }; }
3606                 ;;
3607 esac
3608 fi
3609
3610
3611
3612 # Check whether --with-nsswitch was given.
3613 if test "${with_nsswitch+set}" = set; then
3614   withval=$with_nsswitch; case $with_nsswitch in
3615     no)         ;;
3616     yes)        with_nsswitch="/etc/nsswitch.conf"
3617                 ;;
3618     *)          ;;
3619 esac
3620 fi
3621
3622
3623
3624 # Check whether --with-ldap was given.
3625 if test "${with_ldap+set}" = set; then
3626   withval=$with_ldap; case $with_ldap in
3627     no)         ;;
3628     *)          cat >>confdefs.h <<\_ACEOF
3629 #define HAVE_LDAP 1
3630 _ACEOF
3631
3632                 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3633 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3634                 { echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6; }
3636                 ;;
3637 esac
3638 fi
3639
3640
3641
3642 # Check whether --with-ldap-conf-file was given.
3643 if test "${with_ldap_conf_file+set}" = set; then
3644   withval=$with_ldap_conf_file;
3645 fi
3646
3647 cat >>confdefs.h <<EOF
3648 #define _PATH_LDAP_CONF "${with_ldap_conf_file-/etc/ldap.conf}"
3649 EOF
3650
3651 ldap_conf=${with_ldap_conf_file-'/etc/ldap.conf'}
3652
3653
3654 # Check whether --with-ldap-secret-file was given.
3655 if test "${with_ldap_secret_file+set}" = set; then
3656   withval=$with_ldap_secret_file;
3657 fi
3658
3659 cat >>confdefs.h <<EOF
3660 #define _PATH_LDAP_SECRET "${with_ldap_secret_file-/etc/ldap.secret}"
3661 EOF
3662
3663 ldap_secret=${with_ldap_secret_file-'/etc/ldap.secret'}
3664
3665
3666 # Check whether --with-pc-insults was given.
3667 if test "${with_pc_insults+set}" = set; then
3668   withval=$with_pc_insults; case $with_pc_insults in
3669     yes)        cat >>confdefs.h <<\_ACEOF
3670 #define PC_INSULTS 1
3671 _ACEOF
3672
3673                 ;;
3674     no)         ;;
3675     *)          { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3676 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3677    { (exit 1); exit 1; }; }
3678                 ;;
3679 esac
3680 fi
3681
3682
3683 if test "$insults" = "on"; then
3684     { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3685 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3686     i=""
3687     test "$with_goons_insults" = "yes" && i="goons ${i}"
3688     test "$with_hal_insults" = "yes" && i="hal ${i}"
3689     test "$with_csops_insults" = "yes" && i="csops ${i}"
3690     test "$with_classic_insults" = "yes" && i="classic ${i}"
3691     { echo "$as_me:$LINENO: result: $i" >&5
3692 echo "${ECHO_T}$i" >&6; }
3693 fi
3694
3695 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3696 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3697
3698 # Check whether --with-secure-path was given.
3699 if test "${with_secure_path+set}" = set; then
3700   withval=$with_secure_path; case $with_secure_path in
3701     yes)        with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3702                 cat >>confdefs.h <<_ACEOF
3703 #define SECURE_PATH "$with_secure_path"
3704 _ACEOF
3705
3706                 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3707 echo "${ECHO_T}$with_secure_path" >&6; }
3708                 secure_path="set to $with_secure_path"
3709                 ;;
3710     no)         { echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6; }
3712                 ;;
3713     *)          cat >>confdefs.h <<_ACEOF
3714 #define SECURE_PATH "$with_secure_path"
3715 _ACEOF
3716
3717                 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3718 echo "${ECHO_T}$with_secure_path" >&6; }
3719                 secure_path="set to F<$with_secure_path>"
3720                 ;;
3721 esac
3722 else
3723   { echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6; }
3725 fi
3726
3727
3728 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3729 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3730
3731 # Check whether --with-interfaces was given.
3732 if test "${with_interfaces+set}" = set; then
3733   withval=$with_interfaces; case $with_interfaces in
3734     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3735 echo "${ECHO_T}yes" >&6; }
3736                 ;;
3737     no)         cat >>confdefs.h <<\_ACEOF
3738 #define STUB_LOAD_INTERFACES 1
3739 _ACEOF
3740
3741                 { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3743                 ;;
3744     *)          { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3745 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3746    { (exit 1); exit 1; }; }
3747                 ;;
3748 esac
3749 else
3750   { echo "$as_me:$LINENO: result: yes" >&5
3751 echo "${ECHO_T}yes" >&6; }
3752 fi
3753
3754
3755 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3756 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3757
3758 # Check whether --with-stow was given.
3759 if test "${with_stow+set}" = set; then
3760   withval=$with_stow; case $with_stow in
3761     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3762 echo "${ECHO_T}yes" >&6; }
3763                 cat >>confdefs.h <<\_ACEOF
3764 #define USE_STOW 1
3765 _ACEOF
3766
3767                 ;;
3768     no)         { echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6; }
3770                 ;;
3771     *)          { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3772 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3773    { (exit 1); exit 1; }; }
3774                 ;;
3775 esac
3776 else
3777   { echo "$as_me:$LINENO: result: no" >&5
3778 echo "${ECHO_T}no" >&6; }
3779 fi
3780
3781
3782 { echo "$as_me:$LINENO: checking whether to use an askpass helper" >&5
3783 echo $ECHO_N "checking whether to use an askpass helper... $ECHO_C" >&6; }
3784
3785 # Check whether --with-askpass was given.
3786 if test "${with_askpass+set}" = set; then
3787   withval=$with_askpass; case $with_askpass in
3788     yes)        { { echo "$as_me:$LINENO: error: \"--with-askpass takes a path as an argument.\"" >&5
3789 echo "$as_me: error: \"--with-askpass takes a path as an argument.\"" >&2;}
3790    { (exit 1); exit 1; }; }
3791                 ;;
3792     no)         ;;
3793     *)
3794 cat >>confdefs.h <<_ACEOF
3795 #define _PATH_SUDO_ASKPASS "$with_askpass"
3796 _ACEOF
3797
3798                 ;;
3799 esac
3800 else
3801   { echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6; }
3803 fi
3804
3805
3806
3807 # Check whether --with-libvas was given.
3808 if test "${with_libvas+set}" = set; then
3809   withval=$with_libvas; case $with_libvas in
3810     yes)        with_libvas=libvas.so
3811                 ;;
3812     no)         ;;
3813     *)
3814 cat >>confdefs.h <<_ACEOF
3815 #define LIBVAS_SO "$with_with_libvas"
3816 _ACEOF
3817
3818                 ;;
3819 esac
3820 if test X"$with_libvas" != X"no"; then
3821
3822 cat >>confdefs.h <<_ACEOF
3823 #define LIBVAS_SO "$with_libvas"
3824 _ACEOF
3825
3826     cat >>confdefs.h <<\_ACEOF
3827 #define USING_NONUNIX_GROUPS 1
3828 _ACEOF
3829
3830     NONUNIX_GROUPS_IMPL="vasgroups.o"
3831
3832 # Check whether --with-libvas-rpath was given.
3833 if test "${with_libvas_rpath+set}" = set; then
3834   withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
3835 else
3836   LIBVAS_RPATH=/opt/quest/lib
3837 fi
3838
3839 fi
3840
3841 fi
3842
3843
3844
3845 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3846 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3847 # Check whether --enable-authentication was given.
3848 if test "${enable_authentication+set}" = set; then
3849   enableval=$enable_authentication;  case "$enableval" in
3850     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3851 echo "${ECHO_T}yes" >&6; }
3852                 ;;
3853     no)         { echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6; }
3855                 cat >>confdefs.h <<\_ACEOF
3856 #define NO_AUTHENTICATION 1
3857 _ACEOF
3858
3859                 ;;
3860     *)          { echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6; }
3862                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3863 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3864                 ;;
3865   esac
3866
3867 else
3868   { echo "$as_me:$LINENO: result: yes" >&5
3869 echo "${ECHO_T}yes" >&6; }
3870 fi
3871
3872
3873 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3874 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3875 # Check whether --enable-root-mailer was given.
3876 if test "${enable_root_mailer+set}" = set; then
3877   enableval=$enable_root_mailer;  case "$enableval" in
3878     yes)        { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3880                 ;;
3881     no)         { echo "$as_me:$LINENO: result: yes" >&5
3882 echo "${ECHO_T}yes" >&6; }
3883                 cat >>confdefs.h <<\_ACEOF
3884 #define NO_ROOT_MAILER 1
3885 _ACEOF
3886
3887                 ;;
3888     *)          { echo "$as_me:$LINENO: result: no" >&5
3889 echo "${ECHO_T}no" >&6; }
3890                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3891 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3892                 ;;
3893   esac
3894
3895 else
3896   { echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6; }
3898 fi
3899
3900
3901 # Check whether --enable-setreuid was given.
3902 if test "${enable_setreuid+set}" = set; then
3903   enableval=$enable_setreuid;  case "$enableval" in
3904     no)         SKIP_SETREUID=yes
3905                 ;;
3906     *)          ;;
3907   esac
3908
3909 fi
3910
3911
3912 # Check whether --enable-setresuid was given.
3913 if test "${enable_setresuid+set}" = set; then
3914   enableval=$enable_setresuid;  case "$enableval" in
3915     no)         SKIP_SETRESUID=yes
3916                 ;;
3917     *)          ;;
3918   esac
3919
3920 fi
3921
3922
3923 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3924 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3925 # Check whether --enable-shadow was given.
3926 if test "${enable_shadow+set}" = set; then
3927   enableval=$enable_shadow;  case "$enableval" in
3928     yes)        { echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6; }
3930                 ;;
3931     no)         { echo "$as_me:$LINENO: result: yes" >&5
3932 echo "${ECHO_T}yes" >&6; }
3933                 CHECKSHADOW="false"
3934                 ;;
3935     *)          { echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6; }
3937                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3938 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3939                 ;;
3940   esac
3941
3942 else
3943   { echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6; }
3945 fi
3946
3947
3948 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3949 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3950 # Check whether --enable-root-sudo was given.
3951 if test "${enable_root_sudo+set}" = set; then
3952   enableval=$enable_root_sudo;  case "$enableval" in
3953     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3954 echo "${ECHO_T}yes" >&6; }
3955                 ;;
3956     no)         cat >>confdefs.h <<\_ACEOF
3957 #define NO_ROOT_SUDO 1
3958 _ACEOF
3959
3960                 { echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6; }
3962                 root_sudo=off
3963                 ;;
3964     *)          { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3965 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3966    { (exit 1); exit 1; }; }
3967                 ;;
3968   esac
3969
3970 else
3971   { echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6; }
3973 fi
3974
3975
3976 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3977 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3978 # Check whether --enable-log-host was given.
3979 if test "${enable_log_host+set}" = set; then
3980   enableval=$enable_log_host;  case "$enableval" in
3981     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3982 echo "${ECHO_T}yes" >&6; }
3983                 cat >>confdefs.h <<\_ACEOF
3984 #define HOST_IN_LOG 1
3985 _ACEOF
3986
3987                 ;;
3988     no)         { echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6; }
3990                 ;;
3991     *)          { echo "$as_me:$LINENO: result: no" >&5
3992 echo "${ECHO_T}no" >&6; }
3993                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3994 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3995                 ;;
3996   esac
3997
3998 else
3999   { echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6; }
4001 fi
4002
4003
4004 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
4005 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
4006 # Check whether --enable-noargs-shell was given.
4007 if test "${enable_noargs_shell+set}" = set; then
4008   enableval=$enable_noargs_shell;  case "$enableval" in
4009     yes)        { echo "$as_me:$LINENO: result: yes" >&5
4010 echo "${ECHO_T}yes" >&6; }
4011                 cat >>confdefs.h <<\_ACEOF
4012 #define SHELL_IF_NO_ARGS 1
4013 _ACEOF
4014
4015                 ;;
4016     no)         { echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6; }
4018                 ;;
4019     *)          { echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6; }
4021                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
4022 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
4023                 ;;
4024   esac
4025
4026 else
4027   { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4029 fi
4030
4031
4032 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
4033 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
4034 # Check whether --enable-shell-sets-home was given.
4035 if test "${enable_shell_sets_home+set}" = set; then
4036   enableval=$enable_shell_sets_home;  case "$enableval" in
4037     yes)        { echo "$as_me:$LINENO: result: yes" >&5
4038 echo "${ECHO_T}yes" >&6; }
4039                 cat >>confdefs.h <<\_ACEOF
4040 #define SHELL_SETS_HOME 1
4041 _ACEOF
4042
4043                 ;;
4044     no)         { echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6; }
4046                 ;;
4047     *)          { echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6; }
4049                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
4050 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
4051                 ;;
4052   esac
4053
4054 else
4055   { echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6; }
4057 fi
4058
4059
4060 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
4061 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
4062 # Check whether --enable-path_info was given.
4063 if test "${enable_path_info+set}" = set; then
4064   enableval=$enable_path_info;  case "$enableval" in
4065     yes)        { echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6; }
4067                 ;;
4068     no)         { echo "$as_me:$LINENO: result: yes" >&5
4069 echo "${ECHO_T}yes" >&6; }
4070                 cat >>confdefs.h <<\_ACEOF
4071 #define DONT_LEAK_PATH_INFO 1
4072 _ACEOF
4073
4074                 path_info=off
4075                 ;;
4076     *)          { echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6; }
4078                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
4079 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
4080                 ;;
4081   esac
4082
4083 else
4084   { echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6; }
4086 fi
4087
4088
4089 { echo "$as_me:$LINENO: checking whether to enable environment debugging" >&5
4090 echo $ECHO_N "checking whether to enable environment debugging... $ECHO_C" >&6; }
4091 # Check whether --enable-env_debug was given.
4092 if test "${enable_env_debug+set}" = set; then
4093   enableval=$enable_env_debug;  case "$enableval" in
4094     yes)        { echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6; }
4096                 cat >>confdefs.h <<\_ACEOF
4097 #define ENV_DEBUG 1
4098 _ACEOF
4099
4100                 ;;
4101     no)         { echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6; }
4103                 ;;
4104     *)          { echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6; }
4106                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
4107 echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
4108                 ;;
4109   esac
4110
4111 else
4112   { echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6; }
4114 fi
4115
4116
4117
4118 # Check whether --with-selinux was given.
4119 if test "${with_selinux+set}" = set; then
4120   withval=$with_selinux; case $with_selinux in
4121     yes)        SELINUX_USAGE="[-r role] [-t type] "
4122                 cat >>confdefs.h <<\_ACEOF
4123 #define HAVE_SELINUX 1
4124 _ACEOF
4125
4126                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
4127                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
4128                 PROGS="${PROGS} sesh"
4129                 SELINUX=""
4130                 SEMAN=""
4131                 ;;
4132     no)         ;;
4133     *)          { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
4134 echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
4135    { (exit 1); exit 1; }; }
4136                 ;;
4137 esac
4138 fi
4139
4140
4141 # Check whether --enable-gss_krb5_ccache_name was given.
4142 if test "${enable_gss_krb5_ccache_name+set}" = set; then
4143   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
4144 else
4145   check_gss_krb5_ccache_name=no
4146 fi
4147
4148
4149 # Extract the first word of "egrep", so it can be a program name with args.
4150 set dummy egrep; ac_word=$2
4151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4153 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   if test -n "$EGREPPROG"; then
4157   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162   IFS=$as_save_IFS
4163   test -z "$as_dir" && as_dir=.
4164   for ac_exec_ext in '' $ac_executable_extensions; do
4165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166     ac_cv_prog_EGREPPROG="egrep"
4167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168     break 2
4169   fi
4170 done
4171 done
4172 IFS=$as_save_IFS
4173
4174 fi
4175 fi
4176 EGREPPROG=$ac_cv_prog_EGREPPROG
4177 if test -n "$EGREPPROG"; then
4178   { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
4179 echo "${ECHO_T}$EGREPPROG" >&6; }
4180 else
4181   { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4183 fi
4184
4185
4186 if test -z "$EGREPPROG"; then
4187     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
4188 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
4189    { (exit 1); exit 1; }; }
4190 fi
4191
4192 if test "$with_devel" != "yes"; then
4193     ac_cv_prog_cc_g=no
4194 fi
4195
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 if test -n "$ac_tool_prefix"; then
4202   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_CC+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   if test -n "$CC"; then
4210   ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217   for ac_exec_ext in '' $ac_executable_extensions; do
4218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221     break 2
4222   fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227 fi
4228 fi
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231   { echo "$as_me:$LINENO: result: $CC" >&5
4232 echo "${ECHO_T}$CC" >&6; }
4233 else
4234   { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4236 fi
4237
4238
4239 fi
4240 if test -z "$ac_cv_prog_CC"; then
4241   ac_ct_CC=$CC
4242   # Extract the first word of "gcc", so it can be a program name with args.
4243 set dummy gcc; ac_word=$2
4244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4246 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   if test -n "$ac_ct_CC"; then
4250   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for ac_exec_ext in '' $ac_executable_extensions; do
4258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259     ac_cv_prog_ac_ct_CC="gcc"
4260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4272 echo "${ECHO_T}$ac_ct_CC" >&6; }
4273 else
4274   { echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6; }
4276 fi
4277
4278   if test "x$ac_ct_CC" = x; then
4279     CC=""
4280   else
4281     case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4284 whose name does not start with the host triplet.  If you think this
4285 configuration is useful to you, please write to autoconf@gnu.org." >&5
4286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4287 whose name does not start with the host triplet.  If you think this
4288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4289 ac_tool_warned=yes ;;
4290 esac
4291     CC=$ac_ct_CC
4292   fi
4293 else
4294   CC="$ac_cv_prog_CC"
4295 fi
4296
4297 if test -z "$CC"; then
4298           if test -n "$ac_tool_prefix"; then
4299     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4300 set dummy ${ac_tool_prefix}cc; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_CC+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -n "$CC"; then
4307   ac_cv_prog_CC="$CC" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314   for ac_exec_ext in '' $ac_executable_extensions; do
4315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316     ac_cv_prog_CC="${ac_tool_prefix}cc"
4317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318     break 2
4319   fi
4320 done
4321 done
4322 IFS=$as_save_IFS
4323
4324 fi
4325 fi
4326 CC=$ac_cv_prog_CC
4327 if test -n "$CC"; then
4328   { echo "$as_me:$LINENO: result: $CC" >&5
4329 echo "${ECHO_T}$CC" >&6; }
4330 else
4331   { echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6; }
4333 fi
4334
4335
4336   fi
4337 fi
4338 if test -z "$CC"; then
4339   # Extract the first word of "cc", so it can be a program name with args.
4340 set dummy cc; ac_word=$2
4341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4343 if test "${ac_cv_prog_CC+set}" = set; then
4344   echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346   if test -n "$CC"; then
4347   ac_cv_prog_CC="$CC" # Let the user override the test.
4348 else
4349   ac_prog_rejected=no
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4352 do
4353   IFS=$as_save_IFS
4354   test -z "$as_dir" && as_dir=.
4355   for ac_exec_ext in '' $ac_executable_extensions; do
4356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4358        ac_prog_rejected=yes
4359        continue
4360      fi
4361     ac_cv_prog_CC="cc"
4362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363     break 2
4364   fi
4365 done
4366 done
4367 IFS=$as_save_IFS
4368
4369 if test $ac_prog_rejected = yes; then
4370   # We found a bogon in the path, so make sure we never use it.
4371   set dummy $ac_cv_prog_CC
4372   shift
4373   if test $# != 0; then
4374     # We chose a different compiler from the bogus one.
4375     # However, it has the same basename, so the bogon will be chosen
4376     # first if we set CC to just the basename; use the full file name.
4377     shift
4378     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4379   fi
4380 fi
4381 fi
4382 fi
4383 CC=$ac_cv_prog_CC
4384 if test -n "$CC"; then
4385   { echo "$as_me:$LINENO: result: $CC" >&5
4386 echo "${ECHO_T}$CC" >&6; }
4387 else
4388   { echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6; }
4390 fi
4391
4392
4393 fi
4394 if test -z "$CC"; then
4395   if test -n "$ac_tool_prefix"; then
4396   for ac_prog in cl.exe
4397   do
4398     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4402 if test "${ac_cv_prog_CC+set}" = set; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405   if test -n "$CC"; then
4406   ac_cv_prog_CC="$CC" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413   for ac_exec_ext in '' $ac_executable_extensions; do
4414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420 done
4421 IFS=$as_save_IFS
4422
4423 fi
4424 fi
4425 CC=$ac_cv_prog_CC
4426 if test -n "$CC"; then
4427   { echo "$as_me:$LINENO: result: $CC" >&5
4428 echo "${ECHO_T}$CC" >&6; }
4429 else
4430   { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4432 fi
4433
4434
4435     test -n "$CC" && break
4436   done
4437 fi
4438 if test -z "$CC"; then
4439   ac_ct_CC=$CC
4440   for ac_prog in cl.exe
4441 do
4442   # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy $ac_prog; ac_word=$2
4444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   if test -n "$ac_ct_CC"; then
4450   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455   IFS=$as_save_IFS
4456   test -z "$as_dir" && as_dir=.
4457   for ac_exec_ext in '' $ac_executable_extensions; do
4458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459     ac_cv_prog_ac_ct_CC="$ac_prog"
4460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461     break 2
4462   fi
4463 done
4464 done
4465 IFS=$as_save_IFS
4466
4467 fi
4468 fi
4469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4470 if test -n "$ac_ct_CC"; then
4471   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4472 echo "${ECHO_T}$ac_ct_CC" >&6; }
4473 else
4474   { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4476 fi
4477
4478
4479   test -n "$ac_ct_CC" && break
4480 done
4481
4482   if test "x$ac_ct_CC" = x; then
4483     CC=""
4484   else
4485     case $cross_compiling:$ac_tool_warned in
4486 yes:)
4487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4488 whose name does not start with the host triplet.  If you think this
4489 configuration is useful to you, please write to autoconf@gnu.org." >&5
4490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4491 whose name does not start with the host triplet.  If you think this
4492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4493 ac_tool_warned=yes ;;
4494 esac
4495     CC=$ac_ct_CC
4496   fi
4497 fi
4498
4499 fi
4500
4501
4502 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4503 See \`config.log' for more details." >&5
4504 echo "$as_me: error: no acceptable C compiler found in \$PATH
4505 See \`config.log' for more details." >&2;}
4506    { (exit 1); exit 1; }; }
4507
4508 # Provide some information about the compiler.
4509 echo "$as_me:$LINENO: checking for C compiler version" >&5
4510 ac_compiler=`set X $ac_compile; echo $2`
4511 { (ac_try="$ac_compiler --version >&5"
4512 case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517   (eval "$ac_compiler --version >&5") 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }
4521 { (ac_try="$ac_compiler -v >&5"
4522 case "(($ac_try" in
4523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524   *) ac_try_echo=$ac_try;;
4525 esac
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527   (eval "$ac_compiler -v >&5") 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }
4531 { (ac_try="$ac_compiler -V >&5"
4532 case "(($ac_try" in
4533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534   *) ac_try_echo=$ac_try;;
4535 esac
4536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537   (eval "$ac_compiler -V >&5") 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }
4541
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548
4549 int
4550 main ()
4551 {
4552
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 ac_clean_files_save=$ac_clean_files
4558 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4559 # Try to create an executable without -o first, disregard a.out.
4560 # It will help us diagnose broken compilers, and finding out an intuition
4561 # of exeext.
4562 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4563 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4564 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4565 #
4566 # List of possible output files, starting from the most likely.
4567 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4568 # only as a last resort.  b.out is created by i960 compilers.
4569 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4570 #
4571 # The IRIX 6 linker writes into existing files which may not be
4572 # executable, retaining their permissions.  Remove them first so a
4573 # subsequent execution test works.
4574 ac_rmfiles=
4575 for ac_file in $ac_files
4576 do
4577   case $ac_file in
4578     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4579     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4580   esac
4581 done
4582 rm -f $ac_rmfiles
4583
4584 if { (ac_try="$ac_link_default"
4585 case "(($ac_try" in
4586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587   *) ac_try_echo=$ac_try;;
4588 esac
4589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590   (eval "$ac_link_default") 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }; then
4594   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4595 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4596 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4597 # so that the user can short-circuit this test for compilers unknown to
4598 # Autoconf.
4599 for ac_file in $ac_files ''
4600 do
4601   test -f "$ac_file" || continue
4602   case $ac_file in
4603     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4604         ;;
4605     [ab].out )
4606         # We found the default executable, but exeext='' is most
4607         # certainly right.
4608         break;;
4609     *.* )
4610         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4611         then :; else
4612            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4613         fi
4614         # We set ac_cv_exeext here because the later test for it is not
4615         # safe: cross compilers may not add the suffix if given an `-o'
4616         # argument, so we may need to know it at that point already.
4617         # Even if this section looks crufty: it has the advantage of
4618         # actually working.
4619         break;;
4620     * )
4621         break;;
4622   esac
4623 done
4624 test "$ac_cv_exeext" = no && ac_cv_exeext=
4625
4626 else
4627   ac_file=''
4628 fi
4629
4630 { echo "$as_me:$LINENO: result: $ac_file" >&5
4631 echo "${ECHO_T}$ac_file" >&6; }
4632 if test -z "$ac_file"; then
4633   echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4637 See \`config.log' for more details." >&5
4638 echo "$as_me: error: C compiler cannot create executables
4639 See \`config.log' for more details." >&2;}
4640    { (exit 77); exit 77; }; }
4641 fi
4642
4643 ac_exeext=$ac_cv_exeext
4644
4645 # Check that the compiler produces executables we can run.  If not, either
4646 # the compiler is broken, or we cross compile.
4647 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4648 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4649 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4650 # If not cross compiling, check that we can run a simple program.
4651 if test "$cross_compiling" != yes; then
4652   if { ac_try='./$ac_file'
4653   { (case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658   (eval "$ac_try") 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); }; }; then
4662     cross_compiling=no
4663   else
4664     if test "$cross_compiling" = maybe; then
4665         cross_compiling=yes
4666     else
4667         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4668 If you meant to cross compile, use \`--host'.
4669 See \`config.log' for more details." >&5
4670 echo "$as_me: error: cannot run C compiled programs.
4671 If you meant to cross compile, use \`--host'.
4672 See \`config.log' for more details." >&2;}
4673    { (exit 1); exit 1; }; }
4674     fi
4675   fi
4676 fi
4677 { echo "$as_me:$LINENO: result: yes" >&5
4678 echo "${ECHO_T}yes" >&6; }
4679
4680 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4681 ac_clean_files=$ac_clean_files_save
4682 # Check that the compiler produces executables we can run.  If not, either
4683 # the compiler is broken, or we cross compile.
4684 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4685 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4686 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4687 echo "${ECHO_T}$cross_compiling" >&6; }
4688
4689 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4690 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4691 if { (ac_try="$ac_link"
4692 case "(($ac_try" in
4693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694   *) ac_try_echo=$ac_try;;
4695 esac
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697   (eval "$ac_link") 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; then
4701   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4702 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4703 # work properly (i.e., refer to `conftest.exe'), while it won't with
4704 # `rm'.
4705 for ac_file in conftest.exe conftest conftest.*; do
4706   test -f "$ac_file" || continue
4707   case $ac_file in
4708     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4709     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4710           break;;
4711     * ) break;;
4712   esac
4713 done
4714 else
4715   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4716 See \`config.log' for more details." >&5
4717 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4718 See \`config.log' for more details." >&2;}
4719    { (exit 1); exit 1; }; }
4720 fi
4721
4722 rm -f conftest$ac_cv_exeext
4723 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4724 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4725
4726 rm -f conftest.$ac_ext
4727 EXEEXT=$ac_cv_exeext
4728 ac_exeext=$EXEEXT
4729 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4730 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4731 if test "${ac_cv_objext+set}" = set; then
4732   echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734   cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h.  */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h.  */
4740
4741 int
4742 main ()
4743 {
4744
4745   ;
4746   return 0;
4747 }
4748 _ACEOF
4749 rm -f conftest.o conftest.obj
4750 if { (ac_try="$ac_compile"
4751 case "(($ac_try" in
4752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753   *) ac_try_echo=$ac_try;;
4754 esac
4755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756   (eval "$ac_compile") 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; then
4760   for ac_file in conftest.o conftest.obj conftest.*; do
4761   test -f "$ac_file" || continue;
4762   case $ac_file in
4763     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4764     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4765        break;;
4766   esac
4767 done
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4773 See \`config.log' for more details." >&5
4774 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4775 See \`config.log' for more details." >&2;}
4776    { (exit 1); exit 1; }; }
4777 fi
4778
4779 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4780 fi
4781 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4782 echo "${ECHO_T}$ac_cv_objext" >&6; }
4783 OBJEXT=$ac_cv_objext
4784 ac_objext=$OBJEXT
4785 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4786 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4787 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790   cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h.  */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h.  */
4796
4797 int
4798 main ()
4799 {
4800 #ifndef __GNUC__
4801        choke me
4802 #endif
4803
4804   ;
4805   return 0;
4806 }
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (ac_try="$ac_compile"
4810 case "(($ac_try" in
4811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812   *) ac_try_echo=$ac_try;;
4813 esac
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815   (eval "$ac_compile") 2>conftest.er1
4816   ac_status=$?
4817   grep -v '^ *+' conftest.er1 >conftest.err
4818   rm -f conftest.er1
4819   cat conftest.err >&5
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } && {
4822          test -z "$ac_c_werror_flag" ||
4823          test ! -s conftest.err
4824        } && test -s conftest.$ac_objext; then
4825   ac_compiler_gnu=yes
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830         ac_compiler_gnu=no
4831 fi
4832
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4835
4836 fi
4837 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4838 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4839 GCC=`test $ac_compiler_gnu = yes && echo yes`
4840 ac_test_CFLAGS=${CFLAGS+set}
4841 ac_save_CFLAGS=$CFLAGS
4842 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4843 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4844 if test "${ac_cv_prog_cc_g+set}" = set; then
4845   echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847   ac_save_c_werror_flag=$ac_c_werror_flag
4848    ac_c_werror_flag=yes
4849    ac_cv_prog_cc_g=no
4850    CFLAGS="-g"
4851    cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857
4858 int
4859 main ()
4860 {
4861
4862   ;
4863   return 0;
4864 }
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (ac_try="$ac_compile"
4868 case "(($ac_try" in
4869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870   *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873   (eval "$ac_compile") 2>conftest.er1
4874   ac_status=$?
4875   grep -v '^ *+' conftest.er1 >conftest.err
4876   rm -f conftest.er1
4877   cat conftest.err >&5
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); } && {
4880          test -z "$ac_c_werror_flag" ||
4881          test ! -s conftest.err
4882        } && test -s conftest.$ac_objext; then
4883   ac_cv_prog_cc_g=yes
4884 else
4885   echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4887
4888         CFLAGS=""
4889       cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h.  */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h.  */
4895
4896 int
4897 main ()
4898 {
4899
4900   ;
4901   return 0;
4902 }
4903 _ACEOF
4904 rm -f conftest.$ac_objext
4905 if { (ac_try="$ac_compile"
4906 case "(($ac_try" in
4907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908   *) ac_try_echo=$ac_try;;
4909 esac
4910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911   (eval "$ac_compile") 2>conftest.er1
4912   ac_status=$?
4913   grep -v '^ *+' conftest.er1 >conftest.err
4914   rm -f conftest.er1
4915   cat conftest.err >&5
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); } && {
4918          test -z "$ac_c_werror_flag" ||
4919          test ! -s conftest.err
4920        } && test -s conftest.$ac_objext; then
4921   :
4922 else
4923   echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4925
4926         ac_c_werror_flag=$ac_save_c_werror_flag
4927          CFLAGS="-g"
4928          cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934
4935 int
4936 main ()
4937 {
4938
4939   ;
4940   return 0;
4941 }
4942 _ACEOF
4943 rm -f conftest.$ac_objext
4944 if { (ac_try="$ac_compile"
4945 case "(($ac_try" in
4946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947   *) ac_try_echo=$ac_try;;
4948 esac
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950   (eval "$ac_compile") 2>conftest.er1
4951   ac_status=$?
4952   grep -v '^ *+' conftest.er1 >conftest.err
4953   rm -f conftest.er1
4954   cat conftest.err >&5
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); } && {
4957          test -z "$ac_c_werror_flag" ||
4958          test ! -s conftest.err
4959        } && test -s conftest.$ac_objext; then
4960   ac_cv_prog_cc_g=yes
4961 else
4962   echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4964
4965
4966 fi
4967
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969 fi
4970
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 fi
4973
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975    ac_c_werror_flag=$ac_save_c_werror_flag
4976 fi
4977 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4978 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4979 if test "$ac_test_CFLAGS" = set; then
4980   CFLAGS=$ac_save_CFLAGS
4981 elif test $ac_cv_prog_cc_g = yes; then
4982   if test "$GCC" = yes; then
4983     CFLAGS="-g -O2"
4984   else
4985     CFLAGS="-g"
4986   fi
4987 else
4988   if test "$GCC" = yes; then
4989     CFLAGS="-O2"
4990   else
4991     CFLAGS=
4992   fi
4993 fi
4994 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4995 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4996 if test "${ac_cv_prog_cc_c89+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   ac_cv_prog_cc_c89=no
5000 ac_save_CC=$CC
5001 cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007 #include <stdarg.h>
5008 #include <stdio.h>
5009 #include <sys/types.h>
5010 #include <sys/stat.h>
5011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5012 struct buf { int x; };
5013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5014 static char *e (p, i)
5015      char **p;
5016      int i;
5017 {
5018   return p[i];
5019 }
5020 static char *f (char * (*g) (char **, int), char **p, ...)
5021 {
5022   char *s;
5023   va_list v;
5024   va_start (v,p);
5025   s = g (p, va_arg (v,int));
5026   va_end (v);
5027   return s;
5028 }
5029
5030 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5031    function prototypes and stuff, but not '\xHH' hex character constants.
5032    These don't provoke an error unfortunately, instead are silently treated
5033    as 'x'.  The following induces an error, until -std is added to get
5034    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5035    array size at least.  It's necessary to write '\x00'==0 to get something
5036    that's true only with -std.  */
5037 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5038
5039 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5040    inside strings and character constants.  */
5041 #define FOO(x) 'x'
5042 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5043
5044 int test (int i, double x);
5045 struct s1 {int (*f) (int a);};
5046 struct s2 {int (*f) (double a);};
5047 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5048 int argc;
5049 char **argv;
5050 int
5051 main ()
5052 {
5053 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5054   ;
5055   return 0;
5056 }
5057 _ACEOF
5058 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5059         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5060 do
5061   CC="$ac_save_CC $ac_arg"
5062   rm -f conftest.$ac_objext
5063 if { (ac_try="$ac_compile"
5064 case "(($ac_try" in
5065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066   *) ac_try_echo=$ac_try;;
5067 esac
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069   (eval "$ac_compile") 2>conftest.er1
5070   ac_status=$?
5071   grep -v '^ *+' conftest.er1 >conftest.err
5072   rm -f conftest.er1
5073   cat conftest.err >&5
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); } && {
5076          test -z "$ac_c_werror_flag" ||
5077          test ! -s conftest.err
5078        } && test -s conftest.$ac_objext; then
5079   ac_cv_prog_cc_c89=$ac_arg
5080 else
5081   echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084
5085 fi
5086
5087 rm -f core conftest.err conftest.$ac_objext
5088   test "x$ac_cv_prog_cc_c89" != "xno" && break
5089 done
5090 rm -f conftest.$ac_ext
5091 CC=$ac_save_CC
5092
5093 fi
5094 # AC_CACHE_VAL
5095 case "x$ac_cv_prog_cc_c89" in
5096   x)
5097     { echo "$as_me:$LINENO: result: none needed" >&5
5098 echo "${ECHO_T}none needed" >&6; } ;;
5099   xno)
5100     { echo "$as_me:$LINENO: result: unsupported" >&5
5101 echo "${ECHO_T}unsupported" >&6; } ;;
5102   *)
5103     CC="$CC $ac_cv_prog_cc_c89"
5104     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5105 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5106 esac
5107
5108
5109 ac_ext=c
5110 ac_cpp='$CPP $CPPFLAGS'
5111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115
5116 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
5117 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5118 if test "${ac_cv_search_strerror+set}" = set; then
5119   echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121   ac_func_search_save_LIBS=$LIBS
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128
5129 /* Override any GCC internal prototype to avoid an error.
5130    Use char because int might match the return type of a GCC
5131    builtin and then its argument prototype would still apply.  */
5132 #ifdef __cplusplus
5133 extern "C"
5134 #endif
5135 char strerror ();
5136 int
5137 main ()
5138 {
5139 return strerror ();
5140   ;
5141   return 0;
5142 }
5143 _ACEOF
5144 for ac_lib in '' cposix; do
5145   if test -z "$ac_lib"; then
5146     ac_res="none required"
5147   else
5148     ac_res=-l$ac_lib
5149     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5150   fi
5151   rm -f conftest.$ac_objext conftest$ac_exeext
5152 if { (ac_try="$ac_link"
5153 case "(($ac_try" in
5154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155   *) ac_try_echo=$ac_try;;
5156 esac
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158   (eval "$ac_link") 2>conftest.er1
5159   ac_status=$?
5160   grep -v '^ *+' conftest.er1 >conftest.err
5161   rm -f conftest.er1
5162   cat conftest.err >&5
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); } && {
5165          test -z "$ac_c_werror_flag" ||
5166          test ! -s conftest.err
5167        } && test -s conftest$ac_exeext &&
5168        $as_test_x conftest$ac_exeext; then
5169   ac_cv_search_strerror=$ac_res
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174
5175 fi
5176
5177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5178       conftest$ac_exeext
5179   if test "${ac_cv_search_strerror+set}" = set; then
5180   break
5181 fi
5182 done
5183 if test "${ac_cv_search_strerror+set}" = set; then
5184   :
5185 else
5186   ac_cv_search_strerror=no
5187 fi
5188 rm conftest.$ac_ext
5189 LIBS=$ac_func_search_save_LIBS
5190 fi
5191 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5192 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5193 ac_res=$ac_cv_search_strerror
5194 if test "$ac_res" != no; then
5195   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5196
5197 fi
5198
5199 ac_ext=c
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5205 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5206 # On Suns, sometimes $CPP names a directory.
5207 if test -n "$CPP" && test -d "$CPP"; then
5208   CPP=
5209 fi
5210 if test -z "$CPP"; then
5211   if test "${ac_cv_prog_CPP+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214       # Double quotes because CPP needs to be expanded
5215     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5216     do
5217       ac_preproc_ok=false
5218 for ac_c_preproc_warn_flag in '' yes
5219 do
5220   # Use a header file that comes with gcc, so configuring glibc
5221   # with a fresh cross-compiler works.
5222   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223   # <limits.h> exists even on freestanding compilers.
5224   # On the NeXT, cc -E runs the code through the compiler's parser,
5225   # not just through cpp. "Syntax error" is here to catch this case.
5226   cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h.  */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h.  */
5232 #ifdef __STDC__
5233 # include <limits.h>
5234 #else
5235 # include <assert.h>
5236 #endif
5237                      Syntax error
5238 _ACEOF
5239 if { (ac_try="$ac_cpp conftest.$ac_ext"
5240 case "(($ac_try" in
5241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242   *) ac_try_echo=$ac_try;;
5243 esac
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5246   ac_status=$?
5247   grep -v '^ *+' conftest.er1 >conftest.err
5248   rm -f conftest.er1
5249   cat conftest.err >&5
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); } >/dev/null && {
5252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5253          test ! -s conftest.err
5254        }; then
5255   :
5256 else
5257   echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260   # Broken: fails on valid input.
5261 continue
5262 fi
5263
5264 rm -f conftest.err conftest.$ac_ext
5265
5266   # OK, works on sane cases.  Now check whether nonexistent headers
5267   # can be detected and how.
5268   cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h.  */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h.  */
5274 #include <ac_nonexistent.h>
5275 _ACEOF
5276 if { (ac_try="$ac_cpp conftest.$ac_ext"
5277 case "(($ac_try" in
5278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279   *) ac_try_echo=$ac_try;;
5280 esac
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5283   ac_status=$?
5284   grep -v '^ *+' conftest.er1 >conftest.err
5285   rm -f conftest.er1
5286   cat conftest.err >&5
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } >/dev/null && {
5289          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5290          test ! -s conftest.err
5291        }; then
5292   # Broken: success on invalid input.
5293 continue
5294 else
5295   echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5297
5298   # Passes both tests.
5299 ac_preproc_ok=:
5300 break
5301 fi
5302
5303 rm -f conftest.err conftest.$ac_ext
5304
5305 done
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then
5309   break
5310 fi
5311
5312     done
5313     ac_cv_prog_CPP=$CPP
5314
5315 fi
5316   CPP=$ac_cv_prog_CPP
5317 else
5318   ac_cv_prog_CPP=$CPP
5319 fi
5320 { echo "$as_me:$LINENO: result: $CPP" >&5
5321 echo "${ECHO_T}$CPP" >&6; }
5322 ac_preproc_ok=false
5323 for ac_c_preproc_warn_flag in '' yes
5324 do
5325   # Use a header file that comes with gcc, so configuring glibc
5326   # with a fresh cross-compiler works.
5327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328   # <limits.h> exists even on freestanding compilers.
5329   # On the NeXT, cc -E runs the code through the compiler's parser,
5330   # not just through cpp. "Syntax error" is here to catch this case.
5331   cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337 #ifdef __STDC__
5338 # include <limits.h>
5339 #else
5340 # include <assert.h>
5341 #endif
5342                      Syntax error
5343 _ACEOF
5344 if { (ac_try="$ac_cpp conftest.$ac_ext"
5345 case "(($ac_try" in
5346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347   *) ac_try_echo=$ac_try;;
5348 esac
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5351   ac_status=$?
5352   grep -v '^ *+' conftest.er1 >conftest.err
5353   rm -f conftest.er1
5354   cat conftest.err >&5
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); } >/dev/null && {
5357          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5358          test ! -s conftest.err
5359        }; then
5360   :
5361 else
5362   echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365   # Broken: fails on valid input.
5366 continue
5367 fi
5368
5369 rm -f conftest.err conftest.$ac_ext
5370
5371   # OK, works on sane cases.  Now check whether nonexistent headers
5372   # can be detected and how.
5373   cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h.  */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h.  */
5379 #include <ac_nonexistent.h>
5380 _ACEOF
5381 if { (ac_try="$ac_cpp conftest.$ac_ext"
5382 case "(($ac_try" in
5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384   *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5388   ac_status=$?
5389   grep -v '^ *+' conftest.er1 >conftest.err
5390   rm -f conftest.er1
5391   cat conftest.err >&5
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); } >/dev/null && {
5394          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5395          test ! -s conftest.err
5396        }; then
5397   # Broken: success on invalid input.
5398 continue
5399 else
5400   echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403   # Passes both tests.
5404 ac_preproc_ok=:
5405 break
5406 fi
5407
5408 rm -f conftest.err conftest.$ac_ext
5409
5410 done
5411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5412 rm -f conftest.err conftest.$ac_ext
5413 if $ac_preproc_ok; then
5414   :
5415 else
5416   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5417 See \`config.log' for more details." >&5
5418 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5419 See \`config.log' for more details." >&2;}
5420    { (exit 1); exit 1; }; }
5421 fi
5422
5423 ac_ext=c
5424 ac_cpp='$CPP $CPPFLAGS'
5425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428
5429
5430 ac_aux_dir=
5431 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5432   if test -f "$ac_dir/install-sh"; then
5433     ac_aux_dir=$ac_dir
5434     ac_install_sh="$ac_aux_dir/install-sh -c"
5435     break
5436   elif test -f "$ac_dir/install.sh"; then
5437     ac_aux_dir=$ac_dir
5438     ac_install_sh="$ac_aux_dir/install.sh -c"
5439     break
5440   elif test -f "$ac_dir/shtool"; then
5441     ac_aux_dir=$ac_dir
5442     ac_install_sh="$ac_aux_dir/shtool install -c"
5443     break
5444   fi
5445 done
5446 if test -z "$ac_aux_dir"; then
5447   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5448 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5449    { (exit 1); exit 1; }; }
5450 fi
5451
5452 # These three variables are undocumented and unsupported,
5453 # and are intended to be withdrawn in a future Autoconf release.
5454 # They can cause serious problems if a builder's source tree is in a directory
5455 # whose full name contains unusual characters.
5456 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5457 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5458 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5459
5460
5461 # Make sure we can run config.sub.
5462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5463   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5464 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5465    { (exit 1); exit 1; }; }
5466
5467 { echo "$as_me:$LINENO: checking build system type" >&5
5468 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5469 if test "${ac_cv_build+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   ac_build_alias=$build_alias
5473 test "x$ac_build_alias" = x &&
5474   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5475 test "x$ac_build_alias" = x &&
5476   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5477 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5478    { (exit 1); exit 1; }; }
5479 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5480   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5481 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5482    { (exit 1); exit 1; }; }
5483
5484 fi
5485 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5486 echo "${ECHO_T}$ac_cv_build" >&6; }
5487 case $ac_cv_build in
5488 *-*-*) ;;
5489 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5490 echo "$as_me: error: invalid value of canonical build" >&2;}
5491    { (exit 1); exit 1; }; };;
5492 esac
5493 build=$ac_cv_build
5494 ac_save_IFS=$IFS; IFS='-'
5495 set x $ac_cv_build
5496 shift
5497 build_cpu=$1
5498 build_vendor=$2
5499 shift; shift
5500 # Remember, the first character of IFS is used to create $*,
5501 # except with old shells:
5502 build_os=$*
5503 IFS=$ac_save_IFS
5504 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5505
5506
5507 { echo "$as_me:$LINENO: checking host system type" >&5
5508 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5509 if test "${ac_cv_host+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   if test "x$host_alias" = x; then
5513   ac_cv_host=$ac_cv_build
5514 else
5515   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5516     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5517 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5518    { (exit 1); exit 1; }; }
5519 fi
5520
5521 fi
5522 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5523 echo "${ECHO_T}$ac_cv_host" >&6; }
5524 case $ac_cv_host in
5525 *-*-*) ;;
5526 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5527 echo "$as_me: error: invalid value of canonical host" >&2;}
5528    { (exit 1); exit 1; }; };;
5529 esac
5530 host=$ac_cv_host
5531 ac_save_IFS=$IFS; IFS='-'
5532 set x $ac_cv_host
5533 shift
5534 host_cpu=$1
5535 host_vendor=$2
5536 shift; shift
5537 # Remember, the first character of IFS is used to create $*,
5538 # except with old shells:
5539 host_os=$*
5540 IFS=$ac_save_IFS
5541 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5542
5543
5544 # Check whether --enable-static was given.
5545 if test "${enable_static+set}" = set; then
5546   enableval=$enable_static; p=${PACKAGE-default}
5547     case $enableval in
5548     yes) enable_static=yes ;;
5549     no) enable_static=no ;;
5550     *)
5551      enable_static=no
5552       # Look at the argument we got.  We use all the common list separators.
5553       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5554       for pkg in $enableval; do
5555         IFS="$lt_save_ifs"
5556         if test "X$pkg" = "X$p"; then
5557           enable_static=yes
5558         fi
5559       done
5560       IFS="$lt_save_ifs"
5561       ;;
5562     esac
5563 else
5564   enable_static=no
5565 fi
5566
5567
5568
5569
5570
5571 # Check whether --enable-shared was given.
5572 if test "${enable_shared+set}" = set; then
5573   enableval=$enable_shared; p=${PACKAGE-default}
5574     case $enableval in
5575     yes) enable_shared=yes ;;
5576     no) enable_shared=no ;;
5577     *)
5578       enable_shared=no
5579       # Look at the argument we got.  We use all the common list separators.
5580       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5581       for pkg in $enableval; do
5582         IFS="$lt_save_ifs"
5583         if test "X$pkg" = "X$p"; then
5584           enable_shared=yes
5585         fi
5586       done
5587       IFS="$lt_save_ifs"
5588       ;;
5589     esac
5590 else
5591   enable_shared=yes
5592 fi
5593
5594
5595 # Check whether --enable-fast-install was given.
5596 if test "${enable_fast_install+set}" = set; then
5597   enableval=$enable_fast_install; p=${PACKAGE-default}
5598     case $enableval in
5599     yes) enable_fast_install=yes ;;
5600     no) enable_fast_install=no ;;
5601     *)
5602       enable_fast_install=no
5603       # Look at the argument we got.  We use all the common list separators.
5604       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5605       for pkg in $enableval; do
5606         IFS="$lt_save_ifs"
5607         if test "X$pkg" = "X$p"; then
5608           enable_fast_install=yes
5609         fi
5610       done
5611       IFS="$lt_save_ifs"
5612       ;;
5613     esac
5614 else
5615   enable_fast_install=yes
5616 fi
5617
5618
5619 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5620 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5621 if test "${lt_cv_path_SED+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   # Loop through the user's path and test for sed and gsed.
5625 # Then use that list of sed's as ones to test for truncation.
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631   for lt_ac_prog in sed gsed; do
5632     for ac_exec_ext in '' $ac_executable_extensions; do
5633       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5634         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5635       fi
5636     done
5637   done
5638 done
5639 IFS=$as_save_IFS
5640 lt_ac_max=0
5641 lt_ac_count=0
5642 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5643 # along with /bin/sed that truncates output.
5644 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5645   test ! -f $lt_ac_sed && continue
5646   cat /dev/null > conftest.in
5647   lt_ac_count=0
5648   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5649   # Check for GNU sed and select it if it is found.
5650   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5651     lt_cv_path_SED=$lt_ac_sed
5652     break
5653   fi
5654   while true; do
5655     cat conftest.in conftest.in >conftest.tmp
5656     mv conftest.tmp conftest.in
5657     cp conftest.in conftest.nl
5658     echo >>conftest.nl
5659     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5660     cmp -s conftest.out conftest.nl || break
5661     # 10000 chars as input seems more than enough
5662     test $lt_ac_count -gt 10 && break
5663     lt_ac_count=`expr $lt_ac_count + 1`
5664     if test $lt_ac_count -gt $lt_ac_max; then
5665       lt_ac_max=$lt_ac_count
5666       lt_cv_path_SED=$lt_ac_sed
5667     fi
5668   done
5669 done
5670
5671 fi
5672
5673 SED=$lt_cv_path_SED
5674
5675 { echo "$as_me:$LINENO: result: $SED" >&5
5676 echo "${ECHO_T}$SED" >&6; }
5677
5678 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5679 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5680 if test "${ac_cv_path_GREP+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   # Extract the first word of "grep ggrep" to use in msg output
5684 if test -z "$GREP"; then
5685 set dummy grep ggrep; ac_prog_name=$2
5686 if test "${ac_cv_path_GREP+set}" = set; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   ac_path_GREP_found=false
5690 # Loop through the user's path and test for each of PROGNAME-LIST
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5693 do
5694   IFS=$as_save_IFS
5695   test -z "$as_dir" && as_dir=.
5696   for ac_prog in grep ggrep; do
5697   for ac_exec_ext in '' $ac_executable_extensions; do
5698     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5699     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5700     # Check for GNU ac_path_GREP and select it if it is found.
5701   # Check for GNU $ac_path_GREP
5702 case `"$ac_path_GREP" --version 2>&1` in
5703 *GNU*)
5704   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5705 *)
5706   ac_count=0
5707   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5708   while :
5709   do
5710     cat "conftest.in" "conftest.in" >"conftest.tmp"
5711     mv "conftest.tmp" "conftest.in"
5712     cp "conftest.in" "conftest.nl"
5713     echo 'GREP' >> "conftest.nl"
5714     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5715     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5716     ac_count=`expr $ac_count + 1`
5717     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5718       # Best one so far, save it but keep looking for a better one
5719       ac_cv_path_GREP="$ac_path_GREP"
5720       ac_path_GREP_max=$ac_count
5721     fi
5722     # 10*(2^10) chars as input seems more than enough
5723     test $ac_count -gt 10 && break
5724   done
5725   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5726 esac
5727
5728
5729     $ac_path_GREP_found && break 3
5730   done
5731 done
5732
5733 done
5734 IFS=$as_save_IFS
5735
5736
5737 fi
5738
5739 GREP="$ac_cv_path_GREP"
5740 if test -z "$GREP"; then
5741   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5742 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5743    { (exit 1); exit 1; }; }
5744 fi
5745
5746 else
5747   ac_cv_path_GREP=$GREP
5748 fi
5749
5750
5751 fi
5752 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5753 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5754  GREP="$ac_cv_path_GREP"
5755
5756
5757 { echo "$as_me:$LINENO: checking for egrep" >&5
5758 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5759 if test "${ac_cv_path_EGREP+set}" = set; then
5760   echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5763    then ac_cv_path_EGREP="$GREP -E"
5764    else
5765      # Extract the first word of "egrep" to use in msg output
5766 if test -z "$EGREP"; then
5767 set dummy egrep; ac_prog_name=$2
5768 if test "${ac_cv_path_EGREP+set}" = set; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   ac_path_EGREP_found=false
5772 # Loop through the user's path and test for each of PROGNAME-LIST
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778   for ac_prog in egrep; do
5779   for ac_exec_ext in '' $ac_executable_extensions; do
5780     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5781     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5782     # Check for GNU ac_path_EGREP and select it if it is found.
5783   # Check for GNU $ac_path_EGREP
5784 case `"$ac_path_EGREP" --version 2>&1` in
5785 *GNU*)
5786   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5787 *)
5788   ac_count=0
5789   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5790   while :
5791   do
5792     cat "conftest.in" "conftest.in" >"conftest.tmp"
5793     mv "conftest.tmp" "conftest.in"
5794     cp "conftest.in" "conftest.nl"
5795     echo 'EGREP' >> "conftest.nl"
5796     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5797     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5798     ac_count=`expr $ac_count + 1`
5799     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5800       # Best one so far, save it but keep looking for a better one
5801       ac_cv_path_EGREP="$ac_path_EGREP"
5802       ac_path_EGREP_max=$ac_count
5803     fi
5804     # 10*(2^10) chars as input seems more than enough
5805     test $ac_count -gt 10 && break
5806   done
5807   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5808 esac
5809
5810
5811     $ac_path_EGREP_found && break 3
5812   done
5813 done
5814
5815 done
5816 IFS=$as_save_IFS
5817
5818
5819 fi
5820
5821 EGREP="$ac_cv_path_EGREP"
5822 if test -z "$EGREP"; then
5823   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5824 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5825    { (exit 1); exit 1; }; }
5826 fi
5827
5828 else
5829   ac_cv_path_EGREP=$EGREP
5830 fi
5831
5832
5833    fi
5834 fi
5835 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5836 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5837  EGREP="$ac_cv_path_EGREP"
5838
5839
5840
5841 # Check whether --with-gnu-ld was given.
5842 if test "${with_gnu_ld+set}" = set; then
5843   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5844 else
5845   with_gnu_ld=no
5846 fi
5847
5848 ac_prog=ld
5849 if test "$GCC" = yes; then
5850   # Check if gcc -print-prog-name=ld gives a path.
5851   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5852 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5853   case $host in
5854   *-*-mingw*)
5855     # gcc leaves a trailing carriage return which upsets mingw
5856     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5857   *)
5858     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5859   esac
5860   case $ac_prog in
5861     # Accept absolute paths.
5862     [\\/]* | ?:[\\/]*)
5863       re_direlt='/[^/][^/]*/\.\./'
5864       # Canonicalize the pathname of ld
5865       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5866       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5867         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5868       done
5869       test -z "$LD" && LD="$ac_prog"
5870       ;;
5871   "")
5872     # If it fails, then pretend we aren't using GCC.
5873     ac_prog=ld
5874     ;;
5875   *)
5876     # If it is relative, then search for the first ld in PATH.
5877     with_gnu_ld=unknown
5878     ;;
5879   esac
5880 elif test "$with_gnu_ld" = yes; then
5881   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5882 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5883 else
5884   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5885 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5886 fi
5887 if test "${lt_cv_path_LD+set}" = set; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   if test -z "$LD"; then
5891   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5892   for ac_dir in $PATH; do
5893     IFS="$lt_save_ifs"
5894     test -z "$ac_dir" && ac_dir=.
5895     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5896       lt_cv_path_LD="$ac_dir/$ac_prog"
5897       # Check to see if the program is GNU ld.  I'd rather use --version,
5898       # but apparently some variants of GNU ld only accept -v.
5899       # Break only if it was the GNU/non-GNU ld that we prefer.
5900       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5901       *GNU* | *'with BFD'*)
5902         test "$with_gnu_ld" != no && break
5903         ;;
5904       *)
5905         test "$with_gnu_ld" != yes && break
5906         ;;
5907       esac
5908     fi
5909   done
5910   IFS="$lt_save_ifs"
5911 else
5912   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5913 fi
5914 fi
5915
5916 LD="$lt_cv_path_LD"
5917 if test -n "$LD"; then
5918   { echo "$as_me:$LINENO: result: $LD" >&5
5919 echo "${ECHO_T}$LD" >&6; }
5920 else
5921   { echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6; }
5923 fi
5924 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5925 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5926    { (exit 1); exit 1; }; }
5927 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5928 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5929 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5933 case `$LD -v 2>&1 </dev/null` in
5934 *GNU* | *'with BFD'*)
5935   lt_cv_prog_gnu_ld=yes
5936   ;;
5937 *)
5938   lt_cv_prog_gnu_ld=no
5939   ;;
5940 esac
5941 fi
5942 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5943 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5944 with_gnu_ld=$lt_cv_prog_gnu_ld
5945
5946
5947 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5948 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5949 if test "${lt_cv_ld_reload_flag+set}" = set; then
5950   echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952   lt_cv_ld_reload_flag='-r'
5953 fi
5954 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5955 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5956 reload_flag=$lt_cv_ld_reload_flag
5957 case $reload_flag in
5958 "" | " "*) ;;
5959 *) reload_flag=" $reload_flag" ;;
5960 esac
5961 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5962 case $host_os in
5963   darwin*)
5964     if test "$GCC" = yes; then
5965       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5966     else
5967       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5968     fi
5969     ;;
5970 esac
5971
5972 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5973 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5974 if test "${lt_cv_path_NM+set}" = set; then
5975   echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977   if test -n "$NM"; then
5978   # Let the user override the test.
5979   lt_cv_path_NM="$NM"
5980 else
5981   lt_nm_to_check="${ac_tool_prefix}nm"
5982   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5983     lt_nm_to_check="$lt_nm_to_check nm"
5984   fi
5985   for lt_tmp_nm in $lt_nm_to_check; do
5986     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5987     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5988       IFS="$lt_save_ifs"
5989       test -z "$ac_dir" && ac_dir=.
5990       tmp_nm="$ac_dir/$lt_tmp_nm"
5991       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5992         # Check to see if the nm accepts a BSD-compat flag.
5993         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5994         #   nm: unknown option "B" ignored
5995         # Tru64's nm complains that /dev/null is an invalid object file
5996         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5997         */dev/null* | *'Invalid file or object type'*)
5998           lt_cv_path_NM="$tmp_nm -B"
5999           break
6000           ;;
6001         *)
6002           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6003           */dev/null*)
6004             lt_cv_path_NM="$tmp_nm -p"
6005             break
6006             ;;
6007           *)
6008             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6009             continue # so that we can try to find one that supports BSD flags
6010             ;;
6011           esac
6012           ;;
6013         esac
6014       fi
6015     done
6016     IFS="$lt_save_ifs"
6017   done
6018   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6019 fi
6020 fi
6021 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6022 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6023 NM="$lt_cv_path_NM"
6024
6025 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6026 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6027 LN_S=$as_ln_s
6028 if test "$LN_S" = "ln -s"; then
6029   { echo "$as_me:$LINENO: result: yes" >&5
6030 echo "${ECHO_T}yes" >&6; }
6031 else
6032   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6033 echo "${ECHO_T}no, using $LN_S" >&6; }
6034 fi
6035
6036 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6037 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6038 if test "${lt_cv_deplibs_check_method+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   lt_cv_file_magic_cmd='$MAGIC_CMD'
6042 lt_cv_file_magic_test_file=
6043 lt_cv_deplibs_check_method='unknown'
6044 # Need to set the preceding variable on all platforms that support
6045 # interlibrary dependencies.
6046 # 'none' -- dependencies not supported.
6047 # `unknown' -- same as none, but documents that we really don't know.
6048 # 'pass_all' -- all dependencies passed with no checks.
6049 # 'test_compile' -- check by making test program.
6050 # 'file_magic [[regex]]' -- check by looking for files in library path
6051 # which responds to the $file_magic_cmd with a given extended regex.
6052 # If you have `file' or equivalent on your system and you're not sure
6053 # whether `pass_all' will *always* work, you probably want this one.
6054
6055 case $host_os in
6056 aix[4-9]*)
6057   lt_cv_deplibs_check_method=pass_all
6058   ;;
6059
6060 beos*)
6061   lt_cv_deplibs_check_method=pass_all
6062   ;;
6063
6064 bsdi[45]*)
6065   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6066   lt_cv_file_magic_cmd='/usr/bin/file -L'
6067   lt_cv_file_magic_test_file=/shlib/libc.so
6068   ;;
6069
6070 cygwin*)
6071   # func_win32_libid is a shell function defined in ltmain.sh
6072   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6073   lt_cv_file_magic_cmd='func_win32_libid'
6074   ;;
6075
6076 mingw* | pw32*)
6077   # Base MSYS/MinGW do not provide the 'file' command needed by
6078   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6079   # unless we find 'file', for example because we are cross-compiling.
6080   if ( file / ) >/dev/null 2>&1; then
6081     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6082     lt_cv_file_magic_cmd='func_win32_libid'
6083   else
6084     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6085     lt_cv_file_magic_cmd='$OBJDUMP -f'
6086   fi
6087   ;;
6088
6089 darwin* | rhapsody*)
6090   lt_cv_deplibs_check_method=pass_all
6091   ;;
6092
6093 freebsd* | dragonfly*)
6094   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6095     case $host_cpu in
6096     i*86 )
6097       # Not sure whether the presence of OpenBSD here was a mistake.
6098       # Let's accept both of them until this is cleared up.
6099       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6100       lt_cv_file_magic_cmd=/usr/bin/file
6101       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6102       ;;
6103     esac
6104   else
6105     lt_cv_deplibs_check_method=pass_all
6106   fi
6107   ;;
6108
6109 gnu*)
6110   lt_cv_deplibs_check_method=pass_all
6111   ;;
6112
6113 hpux10.20* | hpux11*)
6114   lt_cv_file_magic_cmd=/usr/bin/file
6115   case $host_cpu in
6116   ia64*)
6117     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6118     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6119     ;;
6120   hppa*64*)
6121     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]'
6122     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6123     ;;
6124   *)
6125     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6126     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6127     ;;
6128   esac
6129   ;;
6130
6131 interix[3-9]*)
6132   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6133   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6134   ;;
6135
6136 irix5* | irix6* | nonstopux*)
6137   case $LD in
6138   *-32|*"-32 ") libmagic=32-bit;;
6139   *-n32|*"-n32 ") libmagic=N32;;
6140   *-64|*"-64 ") libmagic=64-bit;;
6141   *) libmagic=never-match;;
6142   esac
6143   lt_cv_deplibs_check_method=pass_all
6144   ;;
6145
6146 # This must be Linux ELF.
6147 linux* | k*bsd*-gnu)
6148   lt_cv_deplibs_check_method=pass_all
6149   ;;
6150
6151 netbsd*)
6152   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6153     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6154   else
6155     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6156   fi
6157   ;;
6158
6159 newos6*)
6160   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6161   lt_cv_file_magic_cmd=/usr/bin/file
6162   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6163   ;;
6164
6165 nto-qnx*)
6166   lt_cv_deplibs_check_method=unknown
6167   ;;
6168
6169 openbsd*)
6170   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6171     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6172   else
6173     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6174   fi
6175   ;;
6176
6177 osf3* | osf4* | osf5*)
6178   lt_cv_deplibs_check_method=pass_all
6179   ;;
6180
6181 rdos*)
6182   lt_cv_deplibs_check_method=pass_all
6183   ;;
6184
6185 solaris*)
6186   lt_cv_deplibs_check_method=pass_all
6187   ;;
6188
6189 sysv4 | sysv4.3*)
6190   case $host_vendor in
6191   motorola)
6192     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]'
6193     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6194     ;;
6195   ncr)
6196     lt_cv_deplibs_check_method=pass_all
6197     ;;
6198   sequent)
6199     lt_cv_file_magic_cmd='/bin/file'
6200     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6201     ;;
6202   sni)
6203     lt_cv_file_magic_cmd='/bin/file'
6204     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6205     lt_cv_file_magic_test_file=/lib/libc.so
6206     ;;
6207   siemens)
6208     lt_cv_deplibs_check_method=pass_all
6209     ;;
6210   pc)
6211     lt_cv_deplibs_check_method=pass_all
6212     ;;
6213   esac
6214   ;;
6215
6216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6217   lt_cv_deplibs_check_method=pass_all
6218   ;;
6219 esac
6220
6221 fi
6222 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6223 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6224 file_magic_cmd=$lt_cv_file_magic_cmd
6225 deplibs_check_method=$lt_cv_deplibs_check_method
6226 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6227
6228
6229
6230
6231 # If no C compiler was specified, use CC.
6232 LTCC=${LTCC-"$CC"}
6233
6234 # If no C compiler flags were specified, use CFLAGS.
6235 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6236
6237 # Allow CC to be a program name with arguments.
6238 compiler=$CC
6239
6240 # Check whether --enable-libtool-lock was given.
6241 if test "${enable_libtool_lock+set}" = set; then
6242   enableval=$enable_libtool_lock;
6243 fi
6244
6245 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6246
6247 # Some flags need to be propagated to the compiler or linker for good
6248 # libtool support.
6249 case $host in
6250 ia64-*-hpux*)
6251   # Find out which ABI we are using.
6252   echo 'int i;' > conftest.$ac_ext
6253   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254   (eval $ac_compile) 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; then
6258     case `/usr/bin/file conftest.$ac_objext` in
6259     *ELF-32*)
6260       HPUX_IA64_MODE="32"
6261       ;;
6262     *ELF-64*)
6263       HPUX_IA64_MODE="64"
6264       ;;
6265     esac
6266   fi
6267   rm -rf conftest*
6268   ;;
6269 *-*-irix6*)
6270   # Find out which ABI we are using.
6271   echo '#line 6271 "configure"' > conftest.$ac_ext
6272   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273   (eval $ac_compile) 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }; then
6277    if test "$lt_cv_prog_gnu_ld" = yes; then
6278     case `/usr/bin/file conftest.$ac_objext` in
6279     *32-bit*)
6280       LD="${LD-ld} -melf32bsmip"
6281       ;;
6282     *N32*)
6283       LD="${LD-ld} -melf32bmipn32"
6284       ;;
6285     *64-bit*)
6286       LD="${LD-ld} -melf64bmip"
6287       ;;
6288     esac
6289    else
6290     case `/usr/bin/file conftest.$ac_objext` in
6291     *32-bit*)
6292       LD="${LD-ld} -32"
6293       ;;
6294     *N32*)
6295       LD="${LD-ld} -n32"
6296       ;;
6297     *64-bit*)
6298       LD="${LD-ld} -64"
6299       ;;
6300     esac
6301    fi
6302   fi
6303   rm -rf conftest*
6304   ;;
6305
6306 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6307 s390*-*linux*|sparc*-*linux*)
6308   # Find out which ABI we are using.
6309   echo 'int i;' > conftest.$ac_ext
6310   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6311   (eval $ac_compile) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); }; then
6315     case `/usr/bin/file conftest.o` in
6316     *32-bit*)
6317       case $host in
6318         x86_64-*kfreebsd*-gnu)
6319           LD="${LD-ld} -m elf_i386_fbsd"
6320           ;;
6321         x86_64-*linux*)
6322           LD="${LD-ld} -m elf_i386"
6323           ;;
6324         ppc64-*linux*|powerpc64-*linux*)
6325           LD="${LD-ld} -m elf32ppclinux"
6326           ;;
6327         s390x-*linux*)
6328           LD="${LD-ld} -m elf_s390"
6329           ;;
6330         sparc64-*linux*)
6331           LD="${LD-ld} -m elf32_sparc"
6332           ;;
6333       esac
6334       ;;
6335     *64-bit*)
6336       case $host in
6337         x86_64-*kfreebsd*-gnu)
6338           LD="${LD-ld} -m elf_x86_64_fbsd"
6339           ;;
6340         x86_64-*linux*)
6341           LD="${LD-ld} -m elf_x86_64"
6342           ;;
6343         ppc*-*linux*|powerpc*-*linux*)
6344           LD="${LD-ld} -m elf64ppc"
6345           ;;
6346         s390*-*linux*)
6347           LD="${LD-ld} -m elf64_s390"
6348           ;;
6349         sparc*-*linux*)
6350           LD="${LD-ld} -m elf64_sparc"
6351           ;;
6352       esac
6353       ;;
6354     esac
6355   fi
6356   rm -rf conftest*
6357   ;;
6358
6359 *-*-sco3.2v5*)
6360   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6361   SAVE_CFLAGS="$CFLAGS"
6362   CFLAGS="$CFLAGS -belf"
6363   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6364 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6365 if test "${lt_cv_cc_needs_belf+set}" = set; then
6366   echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368   ac_ext=c
6369 ac_cpp='$CPP $CPPFLAGS'
6370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6373
6374      cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380
6381 int
6382 main ()
6383 {
6384
6385   ;
6386   return 0;
6387 }
6388 _ACEOF
6389 rm -f conftest.$ac_objext conftest$ac_exeext
6390 if { (ac_try="$ac_link"
6391 case "(($ac_try" in
6392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393   *) ac_try_echo=$ac_try;;
6394 esac
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396   (eval "$ac_link") 2>conftest.er1
6397   ac_status=$?
6398   grep -v '^ *+' conftest.er1 >conftest.err
6399   rm -f conftest.er1
6400   cat conftest.err >&5
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); } && {
6403          test -z "$ac_c_werror_flag" ||
6404          test ! -s conftest.err
6405        } && test -s conftest$ac_exeext &&
6406        $as_test_x conftest$ac_exeext; then
6407   lt_cv_cc_needs_belf=yes
6408 else
6409   echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412         lt_cv_cc_needs_belf=no
6413 fi
6414
6415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6416       conftest$ac_exeext conftest.$ac_ext
6417      ac_ext=c
6418 ac_cpp='$CPP $CPPFLAGS'
6419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6422
6423 fi
6424 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6425 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6426   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6427     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6428     CFLAGS="$SAVE_CFLAGS"
6429   fi
6430   ;;
6431 sparc*-*solaris*)
6432   # Find out which ABI we are using.
6433   echo 'int i;' > conftest.$ac_ext
6434   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435   (eval $ac_compile) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; then
6439     case `/usr/bin/file conftest.o` in
6440     *64-bit*)
6441       case $lt_cv_prog_gnu_ld in
6442       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6443       *)
6444         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6445           LD="${LD-ld} -64"
6446         fi
6447         ;;
6448       esac
6449       ;;
6450     esac
6451   fi
6452   rm -rf conftest*
6453   ;;
6454
6455
6456 esac
6457
6458 need_locks="$enable_libtool_lock"
6459
6460
6461
6462 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6463 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6464 if test "${ac_cv_header_stdc+set}" = set; then
6465   echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467   cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h.  */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h.  */
6473 #include <stdlib.h>
6474 #include <stdarg.h>
6475 #include <string.h>
6476 #include <float.h>
6477
6478 int
6479 main ()
6480 {
6481
6482   ;
6483   return 0;
6484 }
6485 _ACEOF
6486 rm -f conftest.$ac_objext
6487 if { (ac_try="$ac_compile"
6488 case "(($ac_try" in
6489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490   *) ac_try_echo=$ac_try;;
6491 esac
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493   (eval "$ac_compile") 2>conftest.er1
6494   ac_status=$?
6495   grep -v '^ *+' conftest.er1 >conftest.err
6496   rm -f conftest.er1
6497   cat conftest.err >&5
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); } && {
6500          test -z "$ac_c_werror_flag" ||
6501          test ! -s conftest.err
6502        } && test -s conftest.$ac_objext; then
6503   ac_cv_header_stdc=yes
6504 else
6505   echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6507
6508         ac_cv_header_stdc=no
6509 fi
6510
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512
6513 if test $ac_cv_header_stdc = yes; then
6514   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6515   cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h.  */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h.  */
6521 #include <string.h>
6522
6523 _ACEOF
6524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525   $EGREP "memchr" >/dev/null 2>&1; then
6526   :
6527 else
6528   ac_cv_header_stdc=no
6529 fi
6530 rm -f conftest*
6531
6532 fi
6533
6534 if test $ac_cv_header_stdc = yes; then
6535   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6536   cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h.  */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h.  */
6542 #include <stdlib.h>
6543
6544 _ACEOF
6545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6546   $EGREP "free" >/dev/null 2>&1; then
6547   :
6548 else
6549   ac_cv_header_stdc=no
6550 fi
6551 rm -f conftest*
6552
6553 fi
6554
6555 if test $ac_cv_header_stdc = yes; then
6556   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6557   if test "$cross_compiling" = yes; then
6558   :
6559 else
6560   cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h.  */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h.  */
6566 #include <ctype.h>
6567 #include <stdlib.h>
6568 #if ((' ' & 0x0FF) == 0x020)
6569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6571 #else
6572 # define ISLOWER(c) \
6573                    (('a' <= (c) && (c) <= 'i') \
6574                      || ('j' <= (c) && (c) <= 'r') \
6575                      || ('s' <= (c) && (c) <= 'z'))
6576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6577 #endif
6578
6579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6580 int
6581 main ()
6582 {
6583   int i;
6584   for (i = 0; i < 256; i++)
6585     if (XOR (islower (i), ISLOWER (i))
6586         || toupper (i) != TOUPPER (i))
6587       return 2;
6588   return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest$ac_exeext
6592 if { (ac_try="$ac_link"
6593 case "(($ac_try" in
6594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595   *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598   (eval "$ac_link") 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6602   { (case "(($ac_try" in
6603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604   *) ac_try_echo=$ac_try;;
6605 esac
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607   (eval "$ac_try") 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); }; }; then
6611   :
6612 else
6613   echo "$as_me: program exited with status $ac_status" >&5
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6616
6617 ( exit $ac_status )
6618 ac_cv_header_stdc=no
6619 fi
6620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6621 fi
6622
6623
6624 fi
6625 fi
6626 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6627 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6628 if test $ac_cv_header_stdc = yes; then
6629
6630 cat >>confdefs.h <<\_ACEOF
6631 #define STDC_HEADERS 1
6632 _ACEOF
6633
6634 fi
6635
6636 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6647                   inttypes.h stdint.h unistd.h
6648 do
6649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6653   echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655   cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h.  */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h.  */
6661 $ac_includes_default
6662
6663 #include <$ac_header>
6664 _ACEOF
6665 rm -f conftest.$ac_objext
6666 if { (ac_try="$ac_compile"
6667 case "(($ac_try" in
6668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669   *) ac_try_echo=$ac_try;;
6670 esac
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672   (eval "$ac_compile") 2>conftest.er1
6673   ac_status=$?
6674   grep -v '^ *+' conftest.er1 >conftest.err
6675   rm -f conftest.er1
6676   cat conftest.err >&5
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); } && {
6679          test -z "$ac_c_werror_flag" ||
6680          test ! -s conftest.err
6681        } && test -s conftest.$ac_objext; then
6682   eval "$as_ac_Header=yes"
6683 else
6684   echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6686
6687         eval "$as_ac_Header=no"
6688 fi
6689
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 fi
6692 ac_res=`eval echo '${'$as_ac_Header'}'`
6693                { echo "$as_me:$LINENO: result: $ac_res" >&5
6694 echo "${ECHO_T}$ac_res" >&6; }
6695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6696   cat >>confdefs.h <<_ACEOF
6697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6698 _ACEOF
6699
6700 fi
6701
6702 done
6703
6704
6705
6706 for ac_header in dlfcn.h
6707 do
6708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 fi
6715 ac_res=`eval echo '${'$as_ac_Header'}'`
6716                { echo "$as_me:$LINENO: result: $ac_res" >&5
6717 echo "${ECHO_T}$ac_res" >&6; }
6718 else
6719   # Is the header compilable?
6720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6722 cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h.  */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h.  */
6728 $ac_includes_default
6729 #include <$ac_header>
6730 _ACEOF
6731 rm -f conftest.$ac_objext
6732 if { (ac_try="$ac_compile"
6733 case "(($ac_try" in
6734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735   *) ac_try_echo=$ac_try;;
6736 esac
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738   (eval "$ac_compile") 2>conftest.er1
6739   ac_status=$?
6740   grep -v '^ *+' conftest.er1 >conftest.err
6741   rm -f conftest.er1
6742   cat conftest.err >&5
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); } && {
6745          test -z "$ac_c_werror_flag" ||
6746          test ! -s conftest.err
6747        } && test -s conftest.$ac_objext; then
6748   ac_header_compiler=yes
6749 else
6750   echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753         ac_header_compiler=no
6754 fi
6755
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6758 echo "${ECHO_T}$ac_header_compiler" >&6; }
6759
6760 # Is the header present?
6761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h.  */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h.  */
6769 #include <$ac_header>
6770 _ACEOF
6771 if { (ac_try="$ac_cpp conftest.$ac_ext"
6772 case "(($ac_try" in
6773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774   *) ac_try_echo=$ac_try;;
6775 esac
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6778   ac_status=$?
6779   grep -v '^ *+' conftest.er1 >conftest.err
6780   rm -f conftest.er1
6781   cat conftest.err >&5
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); } >/dev/null && {
6784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6785          test ! -s conftest.err
6786        }; then
6787   ac_header_preproc=yes
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792   ac_header_preproc=no
6793 fi
6794
6795 rm -f conftest.err conftest.$ac_ext
6796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6797 echo "${ECHO_T}$ac_header_preproc" >&6; }
6798
6799 # So?  What about this header?
6800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6801   yes:no: )
6802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6806     ac_header_preproc=yes
6807     ;;
6808   no:yes:* )
6809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6821     ( cat <<\_ASBOX
6822 ## --------------------------------------- ##
6823 ## Report this to http://www.sudo.ws/bugs/ ##
6824 ## --------------------------------------- ##
6825 _ASBOX
6826      ) | sed "s/^/$as_me: WARNING:     /" >&2
6827     ;;
6828 esac
6829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834   eval "$as_ac_Header=\$ac_header_preproc"
6835 fi
6836 ac_res=`eval echo '${'$as_ac_Header'}'`
6837                { echo "$as_me:$LINENO: result: $ac_res" >&5
6838 echo "${ECHO_T}$ac_res" >&6; }
6839
6840 fi
6841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6842   cat >>confdefs.h <<_ACEOF
6843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6844 _ACEOF
6845
6846 fi
6847
6848 done
6849
6850
6851 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6852 # find the maximum length of command line arguments
6853 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6854 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6855 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6856   echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858     i=0
6859   teststring="ABCD"
6860
6861   case $build_os in
6862   msdosdjgpp*)
6863     # On DJGPP, this test can blow up pretty badly due to problems in libc
6864     # (any single argument exceeding 2000 bytes causes a buffer overrun
6865     # during glob expansion).  Even if it were fixed, the result of this
6866     # check would be larger than it should be.
6867     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6868     ;;
6869
6870   gnu*)
6871     # Under GNU Hurd, this test is not required because there is
6872     # no limit to the length of command line arguments.
6873     # Libtool will interpret -1 as no limit whatsoever
6874     lt_cv_sys_max_cmd_len=-1;
6875     ;;
6876
6877   cygwin* | mingw*)
6878     # On Win9x/ME, this test blows up -- it succeeds, but takes
6879     # about 5 minutes as the teststring grows exponentially.
6880     # Worse, since 9x/ME are not pre-emptively multitasking,
6881     # you end up with a "frozen" computer, even though with patience
6882     # the test eventually succeeds (with a max line length of 256k).
6883     # Instead, let's just punt: use the minimum linelength reported by
6884     # all of the supported platforms: 8192 (on NT/2K/XP).
6885     lt_cv_sys_max_cmd_len=8192;
6886     ;;
6887
6888   amigaos*)
6889     # On AmigaOS with pdksh, this test takes hours, literally.
6890     # So we just punt and use a minimum line length of 8192.
6891     lt_cv_sys_max_cmd_len=8192;
6892     ;;
6893
6894   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6895     # This has been around since 386BSD, at least.  Likely further.
6896     if test -x /sbin/sysctl; then
6897       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6898     elif test -x /usr/sbin/sysctl; then
6899       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6900     else
6901       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6902     fi
6903     # And add a safety zone
6904     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6905     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6906     ;;
6907
6908   interix*)
6909     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6910     lt_cv_sys_max_cmd_len=196608
6911     ;;
6912
6913   osf*)
6914     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6915     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6916     # nice to cause kernel panics so lets avoid the loop below.
6917     # First set a reasonable default.
6918     lt_cv_sys_max_cmd_len=16384
6919     #
6920     if test -x /sbin/sysconfig; then
6921       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6922         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6923       esac
6924     fi
6925     ;;
6926   sco3.2v5*)
6927     lt_cv_sys_max_cmd_len=102400
6928     ;;
6929   sysv5* | sco5v6* | sysv4.2uw2*)
6930     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6931     if test -n "$kargmax"; then
6932       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6933     else
6934       lt_cv_sys_max_cmd_len=32768
6935     fi
6936     ;;
6937   *)
6938     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6939     if test -n "$lt_cv_sys_max_cmd_len"; then
6940       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6941       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6942     else
6943       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6944       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6945                = "XX$teststring") >/dev/null 2>&1 &&
6946               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6947               lt_cv_sys_max_cmd_len=$new_result &&
6948               test $i != 17 # 1/2 MB should be enough
6949       do
6950         i=`expr $i + 1`
6951         teststring=$teststring$teststring
6952       done
6953       teststring=
6954       # Add a significant safety factor because C++ compilers can tack on massive
6955       # amounts of additional arguments before passing them to the linker.
6956       # It appears as though 1/2 is a usable value.
6957       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6958     fi
6959     ;;
6960   esac
6961
6962 fi
6963
6964 if test -n $lt_cv_sys_max_cmd_len ; then
6965   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6966 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6967 else
6968   { echo "$as_me:$LINENO: result: none" >&5
6969 echo "${ECHO_T}none" >&6; }
6970 fi
6971
6972
6973
6974
6975
6976 # Check for command to grab the raw symbol name followed by C symbol from nm.
6977 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6978 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6979 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6980   echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982
6983 # These are sane defaults that work on at least a few old systems.
6984 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6985
6986 # Character class describing NM global symbol codes.
6987 symcode='[BCDEGRST]'
6988
6989 # Regexp to match symbols that can be accessed directly from C.
6990 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6991
6992 # Transform an extracted symbol line into a proper C declaration
6993 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6994
6995 # Transform an extracted symbol line into symbol name and symbol address
6996 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'"
6997
6998 # Define system-specific variables.
6999 case $host_os in
7000 aix*)
7001   symcode='[BCDT]'
7002   ;;
7003 cygwin* | mingw* | pw32*)
7004   symcode='[ABCDGISTW]'
7005   ;;
7006 hpux*) # Its linker distinguishes data from code symbols
7007   if test "$host_cpu" = ia64; then
7008     symcode='[ABCDEGRST]'
7009   fi
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   ;;
7013 linux* | k*bsd*-gnu)
7014   if test "$host_cpu" = ia64; then
7015     symcode='[ABCDGIRSTW]'
7016     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7017     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'"
7018   fi
7019   ;;
7020 irix* | nonstopux*)
7021   symcode='[BCDEGRST]'
7022   ;;
7023 osf*)
7024   symcode='[BCDEGQRST]'
7025   ;;
7026 solaris*)
7027   symcode='[BDRT]'
7028   ;;
7029 sco3.2v5*)
7030   symcode='[DT]'
7031   ;;
7032 sysv4.2uw2*)
7033   symcode='[DT]'
7034   ;;
7035 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7036   symcode='[ABDT]'
7037   ;;
7038 sysv4)
7039   symcode='[DFNSTU]'
7040   ;;
7041 esac
7042
7043 # Handle CRLF in mingw tool chain
7044 opt_cr=
7045 case $build_os in
7046 mingw*)
7047   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7048   ;;
7049 esac
7050
7051 # If we're using GNU nm, then use its standard symbol codes.
7052 case `$NM -V 2>&1` in
7053 *GNU* | *'with BFD'*)
7054   symcode='[ABCDGIRSTW]' ;;
7055 esac
7056
7057 # Try without a prefix undercore, then with it.
7058 for ac_symprfx in "" "_"; do
7059
7060   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7061   symxfrm="\\1 $ac_symprfx\\2 \\2"
7062
7063   # Write the raw and C identifiers.
7064   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7065
7066   # Check to see that the pipe works correctly.
7067   pipe_works=no
7068
7069   rm -f conftest*
7070   cat > conftest.$ac_ext <<EOF
7071 #ifdef __cplusplus
7072 extern "C" {
7073 #endif
7074 char nm_test_var;
7075 void nm_test_func(){}
7076 #ifdef __cplusplus
7077 }
7078 #endif
7079 int main(){nm_test_var='a';nm_test_func();return(0);}
7080 EOF
7081
7082   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083   (eval $ac_compile) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; then
7087     # Now try to grab the symbols.
7088     nlist=conftest.nm
7089     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7090   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7091   ac_status=$?
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); } && test -s "$nlist"; then
7094       # Try sorting and uniquifying the output.
7095       if sort "$nlist" | uniq > "$nlist"T; then
7096         mv -f "$nlist"T "$nlist"
7097       else
7098         rm -f "$nlist"T
7099       fi
7100
7101       # Make sure that we snagged all the symbols we need.
7102       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7103         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7104           cat <<EOF > conftest.$ac_ext
7105 #ifdef __cplusplus
7106 extern "C" {
7107 #endif
7108
7109 EOF
7110           # Now generate the symbol file.
7111           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7112
7113           cat <<EOF >> conftest.$ac_ext
7114 #if defined (__STDC__) && __STDC__
7115 # define lt_ptr_t void *
7116 #else
7117 # define lt_ptr_t char *
7118 # define const
7119 #endif
7120
7121 /* The mapping between symbol names and symbols. */
7122 const struct {
7123   const char *name;
7124   lt_ptr_t address;
7125 }
7126 lt_preloaded_symbols[] =
7127 {
7128 EOF
7129           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7130           cat <<\EOF >> conftest.$ac_ext
7131   {0, (lt_ptr_t) 0}
7132 };
7133
7134 #ifdef __cplusplus
7135 }
7136 #endif
7137 EOF
7138           # Now try linking the two files.
7139           mv conftest.$ac_objext conftstm.$ac_objext
7140           lt_save_LIBS="$LIBS"
7141           lt_save_CFLAGS="$CFLAGS"
7142           LIBS="conftstm.$ac_objext"
7143           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7144           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7145   (eval $ac_link) 2>&5
7146   ac_status=$?
7147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7149             pipe_works=yes
7150           fi
7151           LIBS="$lt_save_LIBS"
7152           CFLAGS="$lt_save_CFLAGS"
7153         else
7154           echo "cannot find nm_test_func in $nlist" >&5
7155         fi
7156       else
7157         echo "cannot find nm_test_var in $nlist" >&5
7158       fi
7159     else
7160       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7161     fi
7162   else
7163     echo "$progname: failed program was:" >&5
7164     cat conftest.$ac_ext >&5
7165   fi
7166   rm -rf conftest* conftst*
7167
7168   # Do not use the global_symbol_pipe unless it works.
7169   if test "$pipe_works" = yes; then
7170     break
7171   else
7172     lt_cv_sys_global_symbol_pipe=
7173   fi
7174 done
7175
7176 fi
7177
7178 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7179   lt_cv_sys_global_symbol_to_cdecl=
7180 fi
7181 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7182   { echo "$as_me:$LINENO: result: failed" >&5
7183 echo "${ECHO_T}failed" >&6; }
7184 else
7185   { echo "$as_me:$LINENO: result: ok" >&5
7186 echo "${ECHO_T}ok" >&6; }
7187 fi
7188
7189 { echo "$as_me:$LINENO: checking for objdir" >&5
7190 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7191 if test "${lt_cv_objdir+set}" = set; then
7192   echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194   rm -f .libs 2>/dev/null
7195 mkdir .libs 2>/dev/null
7196 if test -d .libs; then
7197   lt_cv_objdir=.libs
7198 else
7199   # MS-DOS does not allow filenames that begin with a dot.
7200   lt_cv_objdir=_libs
7201 fi
7202 rmdir .libs 2>/dev/null
7203 fi
7204 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7205 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7206 objdir=$lt_cv_objdir
7207
7208
7209
7210
7211
7212 case $host_os in
7213 aix3*)
7214   # AIX sometimes has problems with the GCC collect2 program.  For some
7215   # reason, if we set the COLLECT_NAMES environment variable, the problems
7216   # vanish in a puff of smoke.
7217   if test "X${COLLECT_NAMES+set}" != Xset; then
7218     COLLECT_NAMES=
7219     export COLLECT_NAMES
7220   fi
7221   ;;
7222 esac
7223
7224 # Sed substitution that helps us do robust quoting.  It backslashifies
7225 # metacharacters that are still active within double-quoted strings.
7226 Xsed='sed -e 1s/^X//'
7227 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7228
7229 # Same as above, but do not quote variable references.
7230 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7231
7232 # Sed substitution to delay expansion of an escaped shell variable in a
7233 # double_quote_subst'ed string.
7234 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7235
7236 # Sed substitution to avoid accidental globbing in evaled expressions
7237 no_glob_subst='s/\*/\\\*/g'
7238
7239 # Constants:
7240 rm="rm -f"
7241
7242 # Global variables:
7243 default_ofile=libtool
7244 can_build_shared=yes
7245
7246 # All known linkers require a `.a' archive for static linking (except MSVC,
7247 # which needs '.lib').
7248 libext=a
7249 ltmain="$ac_aux_dir/ltmain.sh"
7250 ofile="$default_ofile"
7251 with_gnu_ld="$lt_cv_prog_gnu_ld"
7252
7253 if test -n "$ac_tool_prefix"; then
7254   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7255 set dummy ${ac_tool_prefix}ar; ac_word=$2
7256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7258 if test "${ac_cv_prog_AR+set}" = set; then
7259   echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261   if test -n "$AR"; then
7262   ac_cv_prog_AR="$AR" # Let the user override the test.
7263 else
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7266 do
7267   IFS=$as_save_IFS
7268   test -z "$as_dir" && as_dir=.
7269   for ac_exec_ext in '' $ac_executable_extensions; do
7270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271     ac_cv_prog_AR="${ac_tool_prefix}ar"
7272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273     break 2
7274   fi
7275 done
7276 done
7277 IFS=$as_save_IFS
7278
7279 fi
7280 fi
7281 AR=$ac_cv_prog_AR
7282 if test -n "$AR"; then
7283   { echo "$as_me:$LINENO: result: $AR" >&5
7284 echo "${ECHO_T}$AR" >&6; }
7285 else
7286   { echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6; }
7288 fi
7289
7290
7291 fi
7292 if test -z "$ac_cv_prog_AR"; then
7293   ac_ct_AR=$AR
7294   # Extract the first word of "ar", so it can be a program name with args.
7295 set dummy ar; ac_word=$2
7296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   if test -n "$ac_ct_AR"; then
7302   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309   for ac_exec_ext in '' $ac_executable_extensions; do
7310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311     ac_cv_prog_ac_ct_AR="ar"
7312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316 done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7322 if test -n "$ac_ct_AR"; then
7323   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7324 echo "${ECHO_T}$ac_ct_AR" >&6; }
7325 else
7326   { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7328 fi
7329
7330   if test "x$ac_ct_AR" = x; then
7331     AR="false"
7332   else
7333     case $cross_compiling:$ac_tool_warned in
7334 yes:)
7335 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7336 whose name does not start with the host triplet.  If you think this
7337 configuration is useful to you, please write to autoconf@gnu.org." >&5
7338 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7339 whose name does not start with the host triplet.  If you think this
7340 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7341 ac_tool_warned=yes ;;
7342 esac
7343     AR=$ac_ct_AR
7344   fi
7345 else
7346   AR="$ac_cv_prog_AR"
7347 fi
7348
7349 if test -n "$ac_tool_prefix"; then
7350   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7354 if test "${ac_cv_prog_RANLIB+set}" = set; then
7355   echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357   if test -n "$RANLIB"; then
7358   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365   for ac_exec_ext in '' $ac_executable_extensions; do
7366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372 done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 RANLIB=$ac_cv_prog_RANLIB
7378 if test -n "$RANLIB"; then
7379   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7380 echo "${ECHO_T}$RANLIB" >&6; }
7381 else
7382   { echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6; }
7384 fi
7385
7386
7387 fi
7388 if test -z "$ac_cv_prog_RANLIB"; then
7389   ac_ct_RANLIB=$RANLIB
7390   # Extract the first word of "ranlib", so it can be a program name with args.
7391 set dummy ranlib; ac_word=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397   if test -n "$ac_ct_RANLIB"; then
7398   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405   for ac_exec_ext in '' $ac_executable_extensions; do
7406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407     ac_cv_prog_ac_ct_RANLIB="ranlib"
7408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412 done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7418 if test -n "$ac_ct_RANLIB"; then
7419   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7420 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7421 else
7422   { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7424 fi
7425
7426   if test "x$ac_ct_RANLIB" = x; then
7427     RANLIB=":"
7428   else
7429     case $cross_compiling:$ac_tool_warned in
7430 yes:)
7431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7432 whose name does not start with the host triplet.  If you think this
7433 configuration is useful to you, please write to autoconf@gnu.org." >&5
7434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7435 whose name does not start with the host triplet.  If you think this
7436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7437 ac_tool_warned=yes ;;
7438 esac
7439     RANLIB=$ac_ct_RANLIB
7440   fi
7441 else
7442   RANLIB="$ac_cv_prog_RANLIB"
7443 fi
7444
7445 if test -n "$ac_tool_prefix"; then
7446   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7447 set dummy ${ac_tool_prefix}strip; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_prog_STRIP+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   if test -n "$STRIP"; then
7454   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459   IFS=$as_save_IFS
7460   test -z "$as_dir" && as_dir=.
7461   for ac_exec_ext in '' $ac_executable_extensions; do
7462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465     break 2
7466   fi
7467 done
7468 done
7469 IFS=$as_save_IFS
7470
7471 fi
7472 fi
7473 STRIP=$ac_cv_prog_STRIP
7474 if test -n "$STRIP"; then
7475   { echo "$as_me:$LINENO: result: $STRIP" >&5
7476 echo "${ECHO_T}$STRIP" >&6; }
7477 else
7478   { echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6; }
7480 fi
7481
7482
7483 fi
7484 if test -z "$ac_cv_prog_STRIP"; then
7485   ac_ct_STRIP=$STRIP
7486   # Extract the first word of "strip", so it can be a program name with args.
7487 set dummy strip; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   if test -n "$ac_ct_STRIP"; then
7494   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499   IFS=$as_save_IFS
7500   test -z "$as_dir" && as_dir=.
7501   for ac_exec_ext in '' $ac_executable_extensions; do
7502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7503     ac_cv_prog_ac_ct_STRIP="strip"
7504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7505     break 2
7506   fi
7507 done
7508 done
7509 IFS=$as_save_IFS
7510
7511 fi
7512 fi
7513 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7514 if test -n "$ac_ct_STRIP"; then
7515   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7516 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7517 else
7518   { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7520 fi
7521
7522   if test "x$ac_ct_STRIP" = x; then
7523     STRIP=":"
7524   else
7525     case $cross_compiling:$ac_tool_warned in
7526 yes:)
7527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7528 whose name does not start with the host triplet.  If you think this
7529 configuration is useful to you, please write to autoconf@gnu.org." >&5
7530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7531 whose name does not start with the host triplet.  If you think this
7532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7533 ac_tool_warned=yes ;;
7534 esac
7535     STRIP=$ac_ct_STRIP
7536   fi
7537 else
7538   STRIP="$ac_cv_prog_STRIP"
7539 fi
7540
7541
7542 old_CC="$CC"
7543 old_CFLAGS="$CFLAGS"
7544
7545 # Set sane defaults for various variables
7546 test -z "$AR" && AR=ar
7547 test -z "$AR_FLAGS" && AR_FLAGS=cru
7548 test -z "$AS" && AS=as
7549 test -z "$CC" && CC=cc
7550 test -z "$LTCC" && LTCC=$CC
7551 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7552 test -z "$DLLTOOL" && DLLTOOL=dlltool
7553 test -z "$LD" && LD=ld
7554 test -z "$LN_S" && LN_S="ln -s"
7555 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7556 test -z "$NM" && NM=nm
7557 test -z "$SED" && SED=sed
7558 test -z "$OBJDUMP" && OBJDUMP=objdump
7559 test -z "$RANLIB" && RANLIB=:
7560 test -z "$STRIP" && STRIP=:
7561 test -z "$ac_objext" && ac_objext=o
7562
7563 # Determine commands to create old-style static archives.
7564 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7565 old_postinstall_cmds='chmod 644 $oldlib'
7566 old_postuninstall_cmds=
7567
7568 if test -n "$RANLIB"; then
7569   case $host_os in
7570   openbsd*)
7571     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7572     ;;
7573   *)
7574     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7575     ;;
7576   esac
7577   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7578 fi
7579
7580 for cc_temp in $compiler""; do
7581   case $cc_temp in
7582     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7583     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7584     \-*) ;;
7585     *) break;;
7586   esac
7587 done
7588 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7589
7590
7591 # Only perform the check for file, if the check method requires it
7592 case $deplibs_check_method in
7593 file_magic*)
7594   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7595     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7596 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7597 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600   case $MAGIC_CMD in
7601 [\\/*] |  ?:[\\/]*)
7602   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7603   ;;
7604 *)
7605   lt_save_MAGIC_CMD="$MAGIC_CMD"
7606   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7607   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7608   for ac_dir in $ac_dummy; do
7609     IFS="$lt_save_ifs"
7610     test -z "$ac_dir" && ac_dir=.
7611     if test -f $ac_dir/${ac_tool_prefix}file; then
7612       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7613       if test -n "$file_magic_test_file"; then
7614         case $deplibs_check_method in
7615         "file_magic "*)
7616           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7617           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7618           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7619             $EGREP "$file_magic_regex" > /dev/null; then
7620             :
7621           else
7622             cat <<EOF 1>&2
7623
7624 *** Warning: the command libtool uses to detect shared libraries,
7625 *** $file_magic_cmd, produces output that libtool cannot recognize.
7626 *** The result is that libtool may fail to recognize shared libraries
7627 *** as such.  This will affect the creation of libtool libraries that
7628 *** depend on shared libraries, but programs linked with such libtool
7629 *** libraries will work regardless of this problem.  Nevertheless, you
7630 *** may want to report the problem to your system manager and/or to
7631 *** bug-libtool@gnu.org
7632
7633 EOF
7634           fi ;;
7635         esac
7636       fi
7637       break
7638     fi
7639   done
7640   IFS="$lt_save_ifs"
7641   MAGIC_CMD="$lt_save_MAGIC_CMD"
7642   ;;
7643 esac
7644 fi
7645
7646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7647 if test -n "$MAGIC_CMD"; then
7648   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7649 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7650 else
7651   { echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6; }
7653 fi
7654
7655 if test -z "$lt_cv_path_MAGIC_CMD"; then
7656   if test -n "$ac_tool_prefix"; then
7657     { echo "$as_me:$LINENO: checking for file" >&5
7658 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7659 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662   case $MAGIC_CMD in
7663 [\\/*] |  ?:[\\/]*)
7664   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7665   ;;
7666 *)
7667   lt_save_MAGIC_CMD="$MAGIC_CMD"
7668   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7669   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7670   for ac_dir in $ac_dummy; do
7671     IFS="$lt_save_ifs"
7672     test -z "$ac_dir" && ac_dir=.
7673     if test -f $ac_dir/file; then
7674       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7675       if test -n "$file_magic_test_file"; then
7676         case $deplibs_check_method in
7677         "file_magic "*)
7678           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7679           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7680           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7681             $EGREP "$file_magic_regex" > /dev/null; then
7682             :
7683           else
7684             cat <<EOF 1>&2
7685
7686 *** Warning: the command libtool uses to detect shared libraries,
7687 *** $file_magic_cmd, produces output that libtool cannot recognize.
7688 *** The result is that libtool may fail to recognize shared libraries
7689 *** as such.  This will affect the creation of libtool libraries that
7690 *** depend on shared libraries, but programs linked with such libtool
7691 *** libraries will work regardless of this problem.  Nevertheless, you
7692 *** may want to report the problem to your system manager and/or to
7693 *** bug-libtool@gnu.org
7694
7695 EOF
7696           fi ;;
7697         esac
7698       fi
7699       break
7700     fi
7701   done
7702   IFS="$lt_save_ifs"
7703   MAGIC_CMD="$lt_save_MAGIC_CMD"
7704   ;;
7705 esac
7706 fi
7707
7708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7709 if test -n "$MAGIC_CMD"; then
7710   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7711 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7712 else
7713   { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7715 fi
7716
7717   else
7718     MAGIC_CMD=:
7719   fi
7720 fi
7721
7722   fi
7723   ;;
7724 esac
7725
7726
7727   case $host_os in
7728     rhapsody* | darwin*)
7729     if test -n "$ac_tool_prefix"; then
7730   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7731 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7734 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7735   echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737   if test -n "$DSYMUTIL"; then
7738   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745   for ac_exec_ext in '' $ac_executable_extensions; do
7746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7747     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749     break 2
7750   fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7758 if test -n "$DSYMUTIL"; then
7759   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7760 echo "${ECHO_T}$DSYMUTIL" >&6; }
7761 else
7762   { echo "$as_me:$LINENO: result: no" >&5
7763 echo "${ECHO_T}no" >&6; }
7764 fi
7765
7766
7767 fi
7768 if test -z "$ac_cv_prog_DSYMUTIL"; then
7769   ac_ct_DSYMUTIL=$DSYMUTIL
7770   # Extract the first word of "dsymutil", so it can be a program name with args.
7771 set dummy dsymutil; ac_word=$2
7772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   if test -n "$ac_ct_DSYMUTIL"; then
7778   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785   for ac_exec_ext in '' $ac_executable_extensions; do
7786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7798 if test -n "$ac_ct_DSYMUTIL"; then
7799   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7800 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7801 else
7802   { echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6; }
7804 fi
7805
7806   if test "x$ac_ct_DSYMUTIL" = x; then
7807     DSYMUTIL=":"
7808   else
7809     case $cross_compiling:$ac_tool_warned in
7810 yes:)
7811 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7812 whose name does not start with the host triplet.  If you think this
7813 configuration is useful to you, please write to autoconf@gnu.org." >&5
7814 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7815 whose name does not start with the host triplet.  If you think this
7816 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7817 ac_tool_warned=yes ;;
7818 esac
7819     DSYMUTIL=$ac_ct_DSYMUTIL
7820   fi
7821 else
7822   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7823 fi
7824
7825     if test -n "$ac_tool_prefix"; then
7826   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7827 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7831   echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833   if test -n "$NMEDIT"; then
7834   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839   IFS=$as_save_IFS
7840   test -z "$as_dir" && as_dir=.
7841   for ac_exec_ext in '' $ac_executable_extensions; do
7842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845     break 2
7846   fi
7847 done
7848 done
7849 IFS=$as_save_IFS
7850
7851 fi
7852 fi
7853 NMEDIT=$ac_cv_prog_NMEDIT
7854 if test -n "$NMEDIT"; then
7855   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7856 echo "${ECHO_T}$NMEDIT" >&6; }
7857 else
7858   { echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6; }
7860 fi
7861
7862
7863 fi
7864 if test -z "$ac_cv_prog_NMEDIT"; then
7865   ac_ct_NMEDIT=$NMEDIT
7866   # Extract the first word of "nmedit", so it can be a program name with args.
7867 set dummy nmedit; ac_word=$2
7868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873   if test -n "$ac_ct_NMEDIT"; then
7874   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879   IFS=$as_save_IFS
7880   test -z "$as_dir" && as_dir=.
7881   for ac_exec_ext in '' $ac_executable_extensions; do
7882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885     break 2
7886   fi
7887 done
7888 done
7889 IFS=$as_save_IFS
7890
7891 fi
7892 fi
7893 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7894 if test -n "$ac_ct_NMEDIT"; then
7895   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7896 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7897 else
7898   { echo "$as_me:$LINENO: result: no" >&5
7899 echo "${ECHO_T}no" >&6; }
7900 fi
7901
7902   if test "x$ac_ct_NMEDIT" = x; then
7903     NMEDIT=":"
7904   else
7905     case $cross_compiling:$ac_tool_warned in
7906 yes:)
7907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7908 whose name does not start with the host triplet.  If you think this
7909 configuration is useful to you, please write to autoconf@gnu.org." >&5
7910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7911 whose name does not start with the host triplet.  If you think this
7912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7913 ac_tool_warned=yes ;;
7914 esac
7915     NMEDIT=$ac_ct_NMEDIT
7916   fi
7917 else
7918   NMEDIT="$ac_cv_prog_NMEDIT"
7919 fi
7920
7921
7922     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7923 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7924 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927   lt_cv_apple_cc_single_mod=no
7928       if test -z "${LT_MULTI_MODULE}"; then
7929    # By default we will add the -single_module flag. You can override
7930    # by either setting the environment variable LT_MULTI_MODULE
7931    # non-empty at configure time, or by adding -multi_module to the
7932    # link flags.
7933    echo "int foo(void){return 1;}" > conftest.c
7934    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7935      -dynamiclib ${wl}-single_module conftest.c
7936    if test -f libconftest.dylib; then
7937      lt_cv_apple_cc_single_mod=yes
7938      rm -rf libconftest.dylib*
7939    fi
7940    rm conftest.c
7941       fi
7942 fi
7943 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7944 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7945     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7946 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7947 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950   lt_cv_ld_exported_symbols_list=no
7951       save_LDFLAGS=$LDFLAGS
7952       echo "_main" > conftest.sym
7953       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7954       cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960
7961 int
7962 main ()
7963 {
7964
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (ac_try="$ac_link"
7971 case "(($ac_try" in
7972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973   *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976   (eval "$ac_link") 2>conftest.er1
7977   ac_status=$?
7978   grep -v '^ *+' conftest.er1 >conftest.err
7979   rm -f conftest.er1
7980   cat conftest.err >&5
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); } && {
7983          test -z "$ac_c_werror_flag" ||
7984          test ! -s conftest.err
7985        } && test -s conftest$ac_exeext &&
7986        $as_test_x conftest$ac_exeext; then
7987   lt_cv_ld_exported_symbols_list=yes
7988 else
7989   echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7991
7992         lt_cv_ld_exported_symbols_list=no
7993 fi
7994
7995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7996       conftest$ac_exeext conftest.$ac_ext
7997    LDFLAGS="$save_LDFLAGS"
7998
7999 fi
8000 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8001 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8002     case $host_os in
8003     rhapsody* | darwin1.[0123])
8004       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8005     darwin1.*)
8006      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8007     darwin*)
8008       # if running on 10.5 or later, the deployment target defaults
8009       # to the OS version, if on x86, and 10.4, the deployment
8010       # target defaults to 10.4. Don't you love it?
8011       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8012    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8013      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8014    10.[012]*)
8015      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8016    10.*)
8017      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8018       esac
8019     ;;
8020   esac
8021     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8022       _lt_dar_single_mod='$single_module'
8023     fi
8024     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8025       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8026     else
8027       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8028     fi
8029     if test "$DSYMUTIL" != ":"; then
8030       _lt_dsymutil="~$DSYMUTIL \$lib || :"
8031     else
8032       _lt_dsymutil=
8033     fi
8034     ;;
8035   esac
8036
8037
8038 enable_dlopen=yes
8039 enable_win32_dll=no
8040
8041 # Check whether --enable-libtool-lock was given.
8042 if test "${enable_libtool_lock+set}" = set; then
8043   enableval=$enable_libtool_lock;
8044 fi
8045
8046 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8047
8048
8049 # Check whether --with-pic was given.
8050 if test "${with_pic+set}" = set; then
8051   withval=$with_pic; pic_mode="$withval"
8052 else
8053   pic_mode=default
8054 fi
8055
8056 test -z "$pic_mode" && pic_mode=default
8057
8058 # Use C for the default configuration in the libtool script
8059 tagname=
8060 lt_save_CC="$CC"
8061 ac_ext=c
8062 ac_cpp='$CPP $CPPFLAGS'
8063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8066
8067
8068 # Source file extension for C test sources.
8069 ac_ext=c
8070
8071 # Object file extension for compiled C test sources.
8072 objext=o
8073 objext=$objext
8074
8075 # Code to be used in simple compile tests
8076 lt_simple_compile_test_code="int some_variable = 0;"
8077
8078 # Code to be used in simple link tests
8079 lt_simple_link_test_code='int main(){return(0);}'
8080
8081
8082 # If no C compiler was specified, use CC.
8083 LTCC=${LTCC-"$CC"}
8084
8085 # If no C compiler flags were specified, use CFLAGS.
8086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8087
8088 # Allow CC to be a program name with arguments.
8089 compiler=$CC
8090
8091
8092 # save warnings/boilerplate of simple test code
8093 ac_outfile=conftest.$ac_objext
8094 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8096 _lt_compiler_boilerplate=`cat conftest.err`
8097 $rm conftest*
8098
8099 ac_outfile=conftest.$ac_objext
8100 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8102 _lt_linker_boilerplate=`cat conftest.err`
8103 $rm -r conftest*
8104
8105
8106 ## CAVEAT EMPTOR:
8107 ## There is no encapsulation within the following macros, do not change
8108 ## the running order or otherwise move them around unless you know exactly
8109 ## what you are doing...
8110
8111 lt_prog_compiler_no_builtin_flag=
8112
8113 if test "$GCC" = yes; then
8114   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8115
8116
8117 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8118 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8119 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8120   echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122   lt_cv_prog_compiler_rtti_exceptions=no
8123   ac_outfile=conftest.$ac_objext
8124    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8125    lt_compiler_flag="-fno-rtti -fno-exceptions"
8126    # Insert the option either (1) after the last *FLAGS variable, or
8127    # (2) before a word containing "conftest.", or (3) at the end.
8128    # Note that $ac_compile itself does not contain backslashes and begins
8129    # with a dollar sign (not a hyphen), so the echo should work correctly.
8130    # The option is referenced via a variable to avoid confusing sed.
8131    lt_compile=`echo "$ac_compile" | $SED \
8132    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8133    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8134    -e 's:$: $lt_compiler_flag:'`
8135    (eval echo "\"\$as_me:8135: $lt_compile\"" >&5)
8136    (eval "$lt_compile" 2>conftest.err)
8137    ac_status=$?
8138    cat conftest.err >&5
8139    echo "$as_me:8139: \$? = $ac_status" >&5
8140    if (exit $ac_status) && test -s "$ac_outfile"; then
8141      # The compiler can only warn and ignore the option if not recognized
8142      # So say no if there are warnings other than the usual output.
8143      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8144      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8145      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8146        lt_cv_prog_compiler_rtti_exceptions=yes
8147      fi
8148    fi
8149    $rm conftest*
8150
8151 fi
8152 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8153 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8154
8155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8156     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8157 else
8158     :
8159 fi
8160
8161 fi
8162
8163 lt_prog_compiler_wl=
8164 lt_prog_compiler_pic=
8165 lt_prog_compiler_static=
8166
8167 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8168 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8169
8170   if test "$GCC" = yes; then
8171     lt_prog_compiler_wl='-Wl,'
8172     lt_prog_compiler_static='-static'
8173
8174     case $host_os in
8175       aix*)
8176       # All AIX code is PIC.
8177       if test "$host_cpu" = ia64; then
8178         # AIX 5 now supports IA64 processor
8179         lt_prog_compiler_static='-Bstatic'
8180       fi
8181       ;;
8182
8183     amigaos*)
8184       # FIXME: we need at least 68020 code to build shared libraries, but
8185       # adding the `-m68020' flag to GCC prevents building anything better,
8186       # like `-m68040'.
8187       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8188       ;;
8189
8190     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8191       # PIC is the default for these OSes.
8192       ;;
8193
8194     mingw* | cygwin* | pw32* | os2*)
8195       # This hack is so that the source file can tell whether it is being
8196       # built for inclusion in a dll (and should export symbols for example).
8197       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8198       # (--disable-auto-import) libraries
8199       lt_prog_compiler_pic='-DDLL_EXPORT'
8200       ;;
8201
8202     darwin* | rhapsody*)
8203       # PIC is the default on this platform
8204       # Common symbols not allowed in MH_DYLIB files
8205       lt_prog_compiler_pic='-fno-common'
8206       ;;
8207
8208     interix[3-9]*)
8209       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8210       # Instead, we relocate shared libraries at runtime.
8211       ;;
8212
8213     msdosdjgpp*)
8214       # Just because we use GCC doesn't mean we suddenly get shared libraries
8215       # on systems that don't support them.
8216       lt_prog_compiler_can_build_shared=no
8217       enable_shared=no
8218       ;;
8219
8220     sysv4*MP*)
8221       if test -d /usr/nec; then
8222         lt_prog_compiler_pic=-Kconform_pic
8223       fi
8224       ;;
8225
8226     hpux*)
8227       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8228       # not for PA HP-UX.
8229       case $host_cpu in
8230       hppa*64*|ia64*)
8231         # +Z the default
8232         ;;
8233       *)
8234         lt_prog_compiler_pic='-fPIC'
8235         ;;
8236       esac
8237       ;;
8238
8239     *)
8240       lt_prog_compiler_pic='-fPIC'
8241       ;;
8242     esac
8243   else
8244     # PORTME Check for flag to pass linker flags through the system compiler.
8245     case $host_os in
8246     aix*)
8247       lt_prog_compiler_wl='-Wl,'
8248       if test "$host_cpu" = ia64; then
8249         # AIX 5 now supports IA64 processor
8250         lt_prog_compiler_static='-Bstatic'
8251       else
8252         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8253       fi
8254       ;;
8255       darwin*)
8256         # PIC is the default on this platform
8257         # Common symbols not allowed in MH_DYLIB files
8258        case $cc_basename in
8259          xlc*)
8260          lt_prog_compiler_pic='-qnocommon'
8261          lt_prog_compiler_wl='-Wl,'
8262          ;;
8263        esac
8264        ;;
8265
8266     mingw* | cygwin* | pw32* | os2*)
8267       # This hack is so that the source file can tell whether it is being
8268       # built for inclusion in a dll (and should export symbols for example).
8269       lt_prog_compiler_pic='-DDLL_EXPORT'
8270       ;;
8271
8272     hpux9* | hpux10* | hpux11*)
8273       lt_prog_compiler_wl='-Wl,'
8274       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8275       # not for PA HP-UX.
8276       case $host_cpu in
8277       hppa*64*|ia64*)
8278         # +Z the default
8279         ;;
8280       *)
8281         lt_prog_compiler_pic='+Z'
8282         ;;
8283       esac
8284       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8285       lt_prog_compiler_static='${wl}-a ${wl}archive'
8286       ;;
8287
8288     irix5* | irix6* | nonstopux*)
8289       lt_prog_compiler_wl='-Wl,'
8290       # PIC (with -KPIC) is the default.
8291       lt_prog_compiler_static='-non_shared'
8292       ;;
8293
8294     newsos6)
8295       lt_prog_compiler_pic='-KPIC'
8296       lt_prog_compiler_static='-Bstatic'
8297       ;;
8298
8299     linux* | k*bsd*-gnu)
8300       case $cc_basename in
8301       icc* | ecc*)
8302         lt_prog_compiler_wl='-Wl,'
8303         lt_prog_compiler_pic='-KPIC'
8304         lt_prog_compiler_static='-static'
8305         ;;
8306       pgcc* | pgf77* | pgf90* | pgf95*)
8307         # Portland Group compilers (*not* the Pentium gcc compiler,
8308         # which looks to be a dead project)
8309         lt_prog_compiler_wl='-Wl,'
8310         lt_prog_compiler_pic='-fpic'
8311         lt_prog_compiler_static='-Bstatic'
8312         ;;
8313       ccc*)
8314         lt_prog_compiler_wl='-Wl,'
8315         # All Alpha code is PIC.
8316         lt_prog_compiler_static='-non_shared'
8317         ;;
8318       *)
8319         case `$CC -V 2>&1 | sed 5q` in
8320         *Sun\ C*)
8321           # Sun C 5.9
8322           lt_prog_compiler_pic='-KPIC'
8323           lt_prog_compiler_static='-Bstatic'
8324           lt_prog_compiler_wl='-Wl,'
8325           ;;
8326         *Sun\ F*)
8327           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8328           lt_prog_compiler_pic='-KPIC'
8329           lt_prog_compiler_static='-Bstatic'
8330           lt_prog_compiler_wl=''
8331           ;;
8332         esac
8333         ;;
8334       esac
8335       ;;
8336
8337     osf3* | osf4* | osf5*)
8338       lt_prog_compiler_wl='-Wl,'
8339       # All OSF/1 code is PIC.
8340       lt_prog_compiler_static='-non_shared'
8341       ;;
8342
8343     rdos*)
8344       lt_prog_compiler_static='-non_shared'
8345       ;;
8346
8347     solaris*)
8348       lt_prog_compiler_pic='-KPIC'
8349       lt_prog_compiler_static='-Bstatic'
8350       case $cc_basename in
8351       f77* | f90* | f95*)
8352         lt_prog_compiler_wl='-Qoption ld ';;
8353       *)
8354         lt_prog_compiler_wl='-Wl,';;
8355       esac
8356       ;;
8357
8358     sunos4*)
8359       lt_prog_compiler_wl='-Qoption ld '
8360       lt_prog_compiler_pic='-PIC'
8361       lt_prog_compiler_static='-Bstatic'
8362       ;;
8363
8364     sysv4 | sysv4.2uw2* | sysv4.3*)
8365       lt_prog_compiler_wl='-Wl,'
8366       lt_prog_compiler_pic='-KPIC'
8367       lt_prog_compiler_static='-Bstatic'
8368       ;;
8369
8370     sysv4*MP*)
8371       if test -d /usr/nec ;then
8372         lt_prog_compiler_pic='-Kconform_pic'
8373         lt_prog_compiler_static='-Bstatic'
8374       fi
8375       ;;
8376
8377     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8378       lt_prog_compiler_wl='-Wl,'
8379       lt_prog_compiler_pic='-KPIC'
8380       lt_prog_compiler_static='-Bstatic'
8381       ;;
8382
8383     unicos*)
8384       lt_prog_compiler_wl='-Wl,'
8385       lt_prog_compiler_can_build_shared=no
8386       ;;
8387
8388     uts4*)
8389       lt_prog_compiler_pic='-pic'
8390       lt_prog_compiler_static='-Bstatic'
8391       ;;
8392
8393     *)
8394       lt_prog_compiler_can_build_shared=no
8395       ;;
8396     esac
8397   fi
8398
8399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8400 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8401
8402 #
8403 # Check to make sure the PIC flag actually works.
8404 #
8405 if test -n "$lt_prog_compiler_pic"; then
8406
8407 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8408 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8409 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8410   echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412   lt_cv_prog_compiler_pic_works=no
8413   ac_outfile=conftest.$ac_objext
8414    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8415    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8416    # Insert the option either (1) after the last *FLAGS variable, or
8417    # (2) before a word containing "conftest.", or (3) at the end.
8418    # Note that $ac_compile itself does not contain backslashes and begins
8419    # with a dollar sign (not a hyphen), so the echo should work correctly.
8420    # The option is referenced via a variable to avoid confusing sed.
8421    lt_compile=`echo "$ac_compile" | $SED \
8422    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8424    -e 's:$: $lt_compiler_flag:'`
8425    (eval echo "\"\$as_me:8425: $lt_compile\"" >&5)
8426    (eval "$lt_compile" 2>conftest.err)
8427    ac_status=$?
8428    cat conftest.err >&5
8429    echo "$as_me:8429: \$? = $ac_status" >&5
8430    if (exit $ac_status) && test -s "$ac_outfile"; then
8431      # The compiler can only warn and ignore the option if not recognized
8432      # So say no if there are warnings other than the usual output.
8433      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8434      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8435      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8436        lt_cv_prog_compiler_pic_works=yes
8437      fi
8438    fi
8439    $rm conftest*
8440
8441 fi
8442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8443 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8444
8445 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8446     case $lt_prog_compiler_pic in
8447      "" | " "*) ;;
8448      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8449      esac
8450 else
8451     lt_prog_compiler_pic=
8452      lt_prog_compiler_can_build_shared=no
8453 fi
8454
8455 fi
8456 case $host_os in
8457   # For platforms which do not support PIC, -DPIC is meaningless:
8458   *djgpp*)
8459     lt_prog_compiler_pic=
8460     ;;
8461   *)
8462     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8463     ;;
8464 esac
8465
8466 #
8467 # Check to make sure the static flag actually works.
8468 #
8469 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8470 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8471 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8472 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8473   echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475   lt_cv_prog_compiler_static_works=no
8476    save_LDFLAGS="$LDFLAGS"
8477    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8478    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8479    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8480      # The linker can only warn and ignore the option if not recognized
8481      # So say no if there are warnings
8482      if test -s conftest.err; then
8483        # Append any errors to the config.log.
8484        cat conftest.err 1>&5
8485        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8486        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8487        if diff conftest.exp conftest.er2 >/dev/null; then
8488          lt_cv_prog_compiler_static_works=yes
8489        fi
8490      else
8491        lt_cv_prog_compiler_static_works=yes
8492      fi
8493    fi
8494    $rm -r conftest*
8495    LDFLAGS="$save_LDFLAGS"
8496
8497 fi
8498 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8499 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8500
8501 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8502     :
8503 else
8504     lt_prog_compiler_static=
8505 fi
8506
8507
8508 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8509 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8510 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8511   echo $ECHO_N "(cached) $ECHO_C" >&6
8512 else
8513   lt_cv_prog_compiler_c_o=no
8514    $rm -r conftest 2>/dev/null
8515    mkdir conftest
8516    cd conftest
8517    mkdir out
8518    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8519
8520    lt_compiler_flag="-o out/conftest2.$ac_objext"
8521    # Insert the option either (1) after the last *FLAGS variable, or
8522    # (2) before a word containing "conftest.", or (3) at the end.
8523    # Note that $ac_compile itself does not contain backslashes and begins
8524    # with a dollar sign (not a hyphen), so the echo should work correctly.
8525    lt_compile=`echo "$ac_compile" | $SED \
8526    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8527    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8528    -e 's:$: $lt_compiler_flag:'`
8529    (eval echo "\"\$as_me:8529: $lt_compile\"" >&5)
8530    (eval "$lt_compile" 2>out/conftest.err)
8531    ac_status=$?
8532    cat out/conftest.err >&5
8533    echo "$as_me:8533: \$? = $ac_status" >&5
8534    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8535    then
8536      # The compiler can only warn and ignore the option if not recognized
8537      # So say no if there are warnings
8538      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8539      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8540      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8541        lt_cv_prog_compiler_c_o=yes
8542      fi
8543    fi
8544    chmod u+w . 2>&5
8545    $rm conftest*
8546    # SGI C++ compiler will create directory out/ii_files/ for
8547    # template instantiation
8548    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8549    $rm out/* && rmdir out
8550    cd ..
8551    rmdir conftest
8552    $rm conftest*
8553
8554 fi
8555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8556 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8557
8558
8559 hard_links="nottested"
8560 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8561   # do not overwrite the value of need_locks provided by the user
8562   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8563 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8564   hard_links=yes
8565   $rm conftest*
8566   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8567   touch conftest.a
8568   ln conftest.a conftest.b 2>&5 || hard_links=no
8569   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8570   { echo "$as_me:$LINENO: result: $hard_links" >&5
8571 echo "${ECHO_T}$hard_links" >&6; }
8572   if test "$hard_links" = no; then
8573     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8574 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8575     need_locks=warn
8576   fi
8577 else
8578   need_locks=no
8579 fi
8580
8581 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8582 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8583
8584   runpath_var=
8585   allow_undefined_flag=
8586   enable_shared_with_static_runtimes=no
8587   archive_cmds=
8588   archive_expsym_cmds=
8589   old_archive_From_new_cmds=
8590   old_archive_from_expsyms_cmds=
8591   export_dynamic_flag_spec=
8592   whole_archive_flag_spec=
8593   thread_safe_flag_spec=
8594   hardcode_libdir_flag_spec=
8595   hardcode_libdir_flag_spec_ld=
8596   hardcode_libdir_separator=
8597   hardcode_direct=no
8598   hardcode_minus_L=no
8599   hardcode_shlibpath_var=unsupported
8600   link_all_deplibs=unknown
8601   hardcode_automatic=no
8602   module_cmds=
8603   module_expsym_cmds=
8604   always_export_symbols=no
8605   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8606   # include_expsyms should be a list of space-separated symbols to be *always*
8607   # included in the symbol list
8608   include_expsyms=
8609   # exclude_expsyms can be an extended regexp of symbols to exclude
8610   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8611   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8612   # as well as any symbol that contains `d'.
8613   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8614   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8615   # platforms (ab)use it in PIC code, but their linkers get confused if
8616   # the symbol is explicitly referenced.  Since portable code cannot
8617   # rely on this symbol name, it's probably fine to never include it in
8618   # preloaded symbol tables.
8619   # Exclude shared library initialization/finalization symbols.
8620   extract_expsyms_cmds=
8621   # Just being paranoid about ensuring that cc_basename is set.
8622   for cc_temp in $compiler""; do
8623   case $cc_temp in
8624     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8625     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8626     \-*) ;;
8627     *) break;;
8628   esac
8629 done
8630 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8631
8632   case $host_os in
8633   cygwin* | mingw* | pw32*)
8634     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8635     # When not using gcc, we currently assume that we are using
8636     # Microsoft Visual C++.
8637     if test "$GCC" != yes; then
8638       with_gnu_ld=no
8639     fi
8640     ;;
8641   interix*)
8642     # we just hope/assume this is gcc and not c89 (= MSVC++)
8643     with_gnu_ld=yes
8644     ;;
8645   openbsd*)
8646     with_gnu_ld=no
8647     ;;
8648   esac
8649
8650   ld_shlibs=yes
8651   if test "$with_gnu_ld" = yes; then
8652     # If archive_cmds runs LD, not CC, wlarc should be empty
8653     wlarc='${wl}'
8654
8655     # Set some defaults for GNU ld with shared library support. These
8656     # are reset later if shared libraries are not supported. Putting them
8657     # here allows them to be overridden if necessary.
8658     runpath_var=LD_RUN_PATH
8659     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8660     export_dynamic_flag_spec='${wl}--export-dynamic'
8661     # ancient GNU ld didn't support --whole-archive et. al.
8662     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8663         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8664       else
8665         whole_archive_flag_spec=
8666     fi
8667     supports_anon_versioning=no
8668     case `$LD -v 2>/dev/null` in
8669       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8670       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8671       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8672       *\ 2.11.*) ;; # other 2.11 versions
8673       *) supports_anon_versioning=yes ;;
8674     esac
8675
8676     # See if GNU ld supports shared libraries.
8677     case $host_os in
8678     aix[3-9]*)
8679       # On AIX/PPC, the GNU linker is very broken
8680       if test "$host_cpu" != ia64; then
8681         ld_shlibs=no
8682         cat <<EOF 1>&2
8683
8684 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8685 *** to be unable to reliably create shared libraries on AIX.
8686 *** Therefore, libtool is disabling shared libraries support.  If you
8687 *** really care for shared libraries, you may want to modify your PATH
8688 *** so that a non-GNU linker is found, and then restart.
8689
8690 EOF
8691       fi
8692       ;;
8693
8694     amigaos*)
8695       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)'
8696       hardcode_libdir_flag_spec='-L$libdir'
8697       hardcode_minus_L=yes
8698
8699       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8700       # that the semantics of dynamic libraries on AmigaOS, at least up
8701       # to version 4, is to share data among multiple programs linked
8702       # with the same dynamic library.  Since this doesn't match the
8703       # behavior of shared libraries on other platforms, we can't use
8704       # them.
8705       ld_shlibs=no
8706       ;;
8707
8708     beos*)
8709       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8710         allow_undefined_flag=unsupported
8711         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8712         # support --undefined.  This deserves some investigation.  FIXME
8713         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714       else
8715         ld_shlibs=no
8716       fi
8717       ;;
8718
8719     cygwin* | mingw* | pw32*)
8720       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8721       # as there is no search path for DLLs.
8722       hardcode_libdir_flag_spec='-L$libdir'
8723       allow_undefined_flag=unsupported
8724       always_export_symbols=no
8725       enable_shared_with_static_runtimes=yes
8726       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8727
8728       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8729         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8730         # If the export-symbols file already is a .def file (1st line
8731         # is EXPORTS), use it as is; otherwise, prepend...
8732         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8733           cp $export_symbols $output_objdir/$soname.def;
8734         else
8735           echo EXPORTS > $output_objdir/$soname.def;
8736           cat $export_symbols >> $output_objdir/$soname.def;
8737         fi~
8738         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8739       else
8740         ld_shlibs=no
8741       fi
8742       ;;
8743
8744     interix[3-9]*)
8745       hardcode_direct=no
8746       hardcode_shlibpath_var=no
8747       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8748       export_dynamic_flag_spec='${wl}-E'
8749       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8750       # Instead, shared libraries are loaded at an image base (0x10000000 by
8751       # default) and relocated if they conflict, which is a slow very memory
8752       # consuming and fragmenting process.  To avoid this, we pick a random,
8753       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8754       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8755       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8756       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'
8757       ;;
8758
8759     gnu* | linux* | k*bsd*-gnu)
8760       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8761         tmp_addflag=
8762         case $cc_basename,$host_cpu in
8763         pgcc*)                          # Portland Group C compiler
8764           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'
8765           tmp_addflag=' $pic_flag'
8766           ;;
8767         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8768           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'
8769           tmp_addflag=' $pic_flag -Mnomain' ;;
8770         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8771           tmp_addflag=' -i_dynamic' ;;
8772         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8773           tmp_addflag=' -i_dynamic -nofor_main' ;;
8774         ifc* | ifort*)                  # Intel Fortran compiler
8775           tmp_addflag=' -nofor_main' ;;
8776         esac
8777         case `$CC -V 2>&1 | sed 5q` in
8778         *Sun\ C*)                       # Sun C 5.9
8779           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'
8780           tmp_sharedflag='-G' ;;
8781         *Sun\ F*)                       # Sun Fortran 8.3
8782           tmp_sharedflag='-G' ;;
8783         *)
8784           tmp_sharedflag='-shared' ;;
8785         esac
8786         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8787
8788         if test $supports_anon_versioning = yes; then
8789           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8790   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8791   $echo "local: *; };" >> $output_objdir/$libname.ver~
8792           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8793         fi
8794       else
8795         ld_shlibs=no
8796       fi
8797       ;;
8798
8799     netbsd*)
8800       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8801         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8802         wlarc=
8803       else
8804         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8805         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8806       fi
8807       ;;
8808
8809     solaris*)
8810       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8811         ld_shlibs=no
8812         cat <<EOF 1>&2
8813
8814 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8815 *** create shared libraries on Solaris systems.  Therefore, libtool
8816 *** is disabling shared libraries support.  We urge you to upgrade GNU
8817 *** binutils to release 2.9.1 or newer.  Another option is to modify
8818 *** your PATH or compiler configuration so that the native linker is
8819 *** used, and then restart.
8820
8821 EOF
8822       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8823         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8825       else
8826         ld_shlibs=no
8827       fi
8828       ;;
8829
8830     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8831       case `$LD -v 2>&1` in
8832         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8833         ld_shlibs=no
8834         cat <<_LT_EOF 1>&2
8835
8836 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8837 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8838 *** is disabling shared libraries support.  We urge you to upgrade GNU
8839 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8840 *** your PATH or compiler configuration so that the native linker is
8841 *** used, and then restart.
8842
8843 _LT_EOF
8844         ;;
8845         *)
8846           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8847             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8848             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8849             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8850           else
8851             ld_shlibs=no
8852           fi
8853         ;;
8854       esac
8855       ;;
8856
8857     sunos4*)
8858       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8859       wlarc=
8860       hardcode_direct=yes
8861       hardcode_shlibpath_var=no
8862       ;;
8863
8864     *)
8865       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8866         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8868       else
8869         ld_shlibs=no
8870       fi
8871       ;;
8872     esac
8873
8874     if test "$ld_shlibs" = no; then
8875       runpath_var=
8876       hardcode_libdir_flag_spec=
8877       export_dynamic_flag_spec=
8878       whole_archive_flag_spec=
8879     fi
8880   else
8881     # PORTME fill in a description of your system's linker (not GNU ld)
8882     case $host_os in
8883     aix3*)
8884       allow_undefined_flag=unsupported
8885       always_export_symbols=yes
8886       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'
8887       # Note: this linker hardcodes the directories in LIBPATH if there
8888       # are no directories specified by -L.
8889       hardcode_minus_L=yes
8890       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8891         # Neither direct hardcoding nor static linking is supported with a
8892         # broken collect2.
8893         hardcode_direct=unsupported
8894       fi
8895       ;;
8896
8897     aix[4-9]*)
8898       if test "$host_cpu" = ia64; then
8899         # On IA64, the linker does run time linking by default, so we don't
8900         # have to do anything special.
8901         aix_use_runtimelinking=no
8902         exp_sym_flag='-Bexport'
8903         no_entry_flag=""
8904       else
8905         # If we're using GNU nm, then we don't want the "-C" option.
8906         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8907         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8908           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'
8909         else
8910           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'
8911         fi
8912         aix_use_runtimelinking=no
8913
8914         # Test if we are trying to use run time linking or normal
8915         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8916         # need to do runtime linking.
8917         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8918           for ld_flag in $LDFLAGS; do
8919           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8920             aix_use_runtimelinking=yes
8921             break
8922           fi
8923           done
8924           ;;
8925         esac
8926
8927         exp_sym_flag='-bexport'
8928         no_entry_flag='-bnoentry'
8929       fi
8930
8931       # When large executables or shared objects are built, AIX ld can
8932       # have problems creating the table of contents.  If linking a library
8933       # or program results in "error TOC overflow" add -mminimal-toc to
8934       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8935       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8936
8937       archive_cmds=''
8938       hardcode_direct=yes
8939       hardcode_libdir_separator=':'
8940       link_all_deplibs=yes
8941
8942       if test "$GCC" = yes; then
8943         case $host_os in aix4.[012]|aix4.[012].*)
8944         # We only want to do this on AIX 4.2 and lower, the check
8945         # below for broken collect2 doesn't work under 4.3+
8946           collect2name=`${CC} -print-prog-name=collect2`
8947           if test -f "$collect2name" && \
8948            strings "$collect2name" | grep resolve_lib_name >/dev/null
8949           then
8950           # We have reworked collect2
8951           :
8952           else
8953           # We have old collect2
8954           hardcode_direct=unsupported
8955           # It fails to find uninstalled libraries when the uninstalled
8956           # path is not listed in the libpath.  Setting hardcode_minus_L
8957           # to unsupported forces relinking
8958           hardcode_minus_L=yes
8959           hardcode_libdir_flag_spec='-L$libdir'
8960           hardcode_libdir_separator=
8961           fi
8962           ;;
8963         esac
8964         shared_flag='-shared'
8965         if test "$aix_use_runtimelinking" = yes; then
8966           shared_flag="$shared_flag "'${wl}-G'
8967         fi
8968       else
8969         # not using gcc
8970         if test "$host_cpu" = ia64; then
8971         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8972         # chokes on -Wl,-G. The following line is correct:
8973           shared_flag='-G'
8974         else
8975           if test "$aix_use_runtimelinking" = yes; then
8976             shared_flag='${wl}-G'
8977           else
8978             shared_flag='${wl}-bM:SRE'
8979           fi
8980         fi
8981       fi
8982
8983       # It seems that -bexpall does not export symbols beginning with
8984       # underscore (_), so it is better to generate a list of symbols to export.
8985       always_export_symbols=yes
8986       if test "$aix_use_runtimelinking" = yes; then
8987         # Warning - without using the other runtime loading flags (-brtl),
8988         # -berok will link without error, but may produce a broken library.
8989         allow_undefined_flag='-berok'
8990        # Determine the default libpath from the value encoded in an empty executable.
8991        cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h.  */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h.  */
8997
8998 int
8999 main ()
9000 {
9001
9002   ;
9003   return 0;
9004 }
9005 _ACEOF
9006 rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (ac_try="$ac_link"
9008 case "(($ac_try" in
9009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010   *) ac_try_echo=$ac_try;;
9011 esac
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013   (eval "$ac_link") 2>conftest.er1
9014   ac_status=$?
9015   grep -v '^ *+' conftest.er1 >conftest.err
9016   rm -f conftest.er1
9017   cat conftest.err >&5
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } && {
9020          test -z "$ac_c_werror_flag" ||
9021          test ! -s conftest.err
9022        } && test -s conftest$ac_exeext &&
9023        $as_test_x conftest$ac_exeext; then
9024
9025 lt_aix_libpath_sed='
9026     /Import File Strings/,/^$/ {
9027         /^0/ {
9028             s/^0  *\(.*\)$/\1/
9029             p
9030         }
9031     }'
9032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9033 # Check for a 64-bit object if we didn't find anything.
9034 if test -z "$aix_libpath"; then
9035   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9036 fi
9037 else
9038   echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.$ac_ext >&5
9040
9041
9042 fi
9043
9044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9045       conftest$ac_exeext conftest.$ac_ext
9046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9047
9048        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9049         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"
9050        else
9051         if test "$host_cpu" = ia64; then
9052           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9053           allow_undefined_flag="-z nodefs"
9054           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"
9055         else
9056          # Determine the default libpath from the value encoded in an empty executable.
9057          cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h.  */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h.  */
9063
9064 int
9065 main ()
9066 {
9067
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (ac_try="$ac_link"
9074 case "(($ac_try" in
9075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076   *) ac_try_echo=$ac_try;;
9077 esac
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079   (eval "$ac_link") 2>conftest.er1
9080   ac_status=$?
9081   grep -v '^ *+' conftest.er1 >conftest.err
9082   rm -f conftest.er1
9083   cat conftest.err >&5
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } && {
9086          test -z "$ac_c_werror_flag" ||
9087          test ! -s conftest.err
9088        } && test -s conftest$ac_exeext &&
9089        $as_test_x conftest$ac_exeext; then
9090
9091 lt_aix_libpath_sed='
9092     /Import File Strings/,/^$/ {
9093         /^0/ {
9094             s/^0  *\(.*\)$/\1/
9095             p
9096         }
9097     }'
9098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9099 # Check for a 64-bit object if we didn't find anything.
9100 if test -z "$aix_libpath"; then
9101   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9102 fi
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107
9108 fi
9109
9110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9111       conftest$ac_exeext conftest.$ac_ext
9112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9113
9114          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9115           # Warning - without using the other run time loading flags,
9116           # -berok will link without error, but may produce a broken library.
9117           no_undefined_flag=' ${wl}-bernotok'
9118           allow_undefined_flag=' ${wl}-berok'
9119           # Exported symbols can be pulled into shared objects from archives
9120           whole_archive_flag_spec='$convenience'
9121           archive_cmds_need_lc=yes
9122           # This is similar to how AIX traditionally builds its shared libraries.
9123           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'
9124         fi
9125       fi
9126       ;;
9127
9128     amigaos*)
9129       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)'
9130       hardcode_libdir_flag_spec='-L$libdir'
9131       hardcode_minus_L=yes
9132       # see comment about different semantics on the GNU ld section
9133       ld_shlibs=no
9134       ;;
9135
9136     bsdi[45]*)
9137       export_dynamic_flag_spec=-rdynamic
9138       ;;
9139
9140     cygwin* | mingw* | pw32*)
9141       # When not using gcc, we currently assume that we are using
9142       # Microsoft Visual C++.
9143       # hardcode_libdir_flag_spec is actually meaningless, as there is
9144       # no search path for DLLs.
9145       hardcode_libdir_flag_spec=' '
9146       allow_undefined_flag=unsupported
9147       # Tell ltmain to make .lib files, not .a files.
9148       libext=lib
9149       # Tell ltmain to make .dll files, not .so files.
9150       shrext_cmds=".dll"
9151       # FIXME: Setting linknames here is a bad hack.
9152       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9153       # The linker will automatically build a .lib file if we build a DLL.
9154       old_archive_From_new_cmds='true'
9155       # FIXME: Should let the user specify the lib program.
9156       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9157       fix_srcfile_path='`cygpath -w "$srcfile"`'
9158       enable_shared_with_static_runtimes=yes
9159       ;;
9160
9161     darwin* | rhapsody*)
9162       case $host_os in
9163         rhapsody* | darwin1.[012])
9164          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9165          ;;
9166        *) # Darwin 1.3 on
9167          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9168            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9169          else
9170            case ${MACOSX_DEPLOYMENT_TARGET} in
9171              10.[012])
9172                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9173                ;;
9174              10.*)
9175                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9176                ;;
9177            esac
9178          fi
9179          ;;
9180       esac
9181       archive_cmds_need_lc=no
9182       hardcode_direct=no
9183       hardcode_automatic=yes
9184       hardcode_shlibpath_var=unsupported
9185       whole_archive_flag_spec=''
9186       link_all_deplibs=yes
9187     if test "$GCC" = yes ; then
9188         output_verbose_link_cmd='echo'
9189         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9190         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9191         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}"
9192         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}"
9193     else
9194       case $cc_basename in
9195         xlc*)
9196          output_verbose_link_cmd='echo'
9197          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9198          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9199           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9200          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}'
9201           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}'
9202           ;;
9203        *)
9204          ld_shlibs=no
9205           ;;
9206       esac
9207     fi
9208       ;;
9209
9210     dgux*)
9211       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212       hardcode_libdir_flag_spec='-L$libdir'
9213       hardcode_shlibpath_var=no
9214       ;;
9215
9216     freebsd1*)
9217       ld_shlibs=no
9218       ;;
9219
9220     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9221     # support.  Future versions do this automatically, but an explicit c++rt0.o
9222     # does not break anything, and helps significantly (at the cost of a little
9223     # extra space).
9224     freebsd2.2*)
9225       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9226       hardcode_libdir_flag_spec='-R$libdir'
9227       hardcode_direct=yes
9228       hardcode_shlibpath_var=no
9229       ;;
9230
9231     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9232     freebsd2*)
9233       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9234       hardcode_direct=yes
9235       hardcode_minus_L=yes
9236       hardcode_shlibpath_var=no
9237       ;;
9238
9239     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9240     freebsd* | dragonfly*)
9241       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9242       hardcode_libdir_flag_spec='-R$libdir'
9243       hardcode_direct=yes
9244       hardcode_shlibpath_var=no
9245       ;;
9246
9247     hpux9*)
9248       if test "$GCC" = yes; then
9249         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'
9250       else
9251         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'
9252       fi
9253       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254       hardcode_libdir_separator=:
9255       hardcode_direct=yes
9256
9257       # hardcode_minus_L: Not really in the search PATH,
9258       # but as the default location of the library.
9259       hardcode_minus_L=yes
9260       export_dynamic_flag_spec='${wl}-E'
9261       ;;
9262
9263     hpux10*)
9264       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9265         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9266       else
9267         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9268       fi
9269       if test "$with_gnu_ld" = no; then
9270         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9271         hardcode_libdir_separator=:
9272
9273         hardcode_direct=yes
9274         export_dynamic_flag_spec='${wl}-E'
9275
9276         # hardcode_minus_L: Not really in the search PATH,
9277         # but as the default location of the library.
9278         hardcode_minus_L=yes
9279       fi
9280       ;;
9281
9282     hpux11*)
9283       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9284         case $host_cpu in
9285         hppa*64*)
9286           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9287           ;;
9288         ia64*)
9289           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9290           ;;
9291         *)
9292           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9293           ;;
9294         esac
9295       else
9296         case $host_cpu in
9297         hppa*64*)
9298           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9299           ;;
9300         ia64*)
9301           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9302           ;;
9303         *)
9304           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9305           ;;
9306         esac
9307       fi
9308       if test "$with_gnu_ld" = no; then
9309         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9310         hardcode_libdir_separator=:
9311
9312         case $host_cpu in
9313         hppa*64*|ia64*)
9314           hardcode_libdir_flag_spec_ld='+b $libdir'
9315           hardcode_direct=no
9316           hardcode_shlibpath_var=no
9317           ;;
9318         *)
9319           hardcode_direct=yes
9320           export_dynamic_flag_spec='${wl}-E'
9321
9322           # hardcode_minus_L: Not really in the search PATH,
9323           # but as the default location of the library.
9324           hardcode_minus_L=yes
9325           ;;
9326         esac
9327       fi
9328       ;;
9329
9330     irix5* | irix6* | nonstopux*)
9331       if test "$GCC" = yes; then
9332         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'
9333       else
9334         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'
9335         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9336       fi
9337       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338       hardcode_libdir_separator=:
9339       link_all_deplibs=yes
9340       ;;
9341
9342     netbsd*)
9343       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9344         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9345       else
9346         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9347       fi
9348       hardcode_libdir_flag_spec='-R$libdir'
9349       hardcode_direct=yes
9350       hardcode_shlibpath_var=no
9351       ;;
9352
9353     newsos6)
9354       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355       hardcode_direct=yes
9356       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9357       hardcode_libdir_separator=:
9358       hardcode_shlibpath_var=no
9359       ;;
9360
9361     openbsd*)
9362       if test -f /usr/libexec/ld.so; then
9363         hardcode_direct=yes
9364         hardcode_shlibpath_var=no
9365         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9366           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9367           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9368           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9369           export_dynamic_flag_spec='${wl}-E'
9370         else
9371           case $host_os in
9372            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9373              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9374              hardcode_libdir_flag_spec='-R$libdir'
9375              ;;
9376            *)
9377              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9378              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9379              ;;
9380           esac
9381         fi
9382       else
9383         ld_shlibs=no
9384       fi
9385       ;;
9386
9387     os2*)
9388       hardcode_libdir_flag_spec='-L$libdir'
9389       hardcode_minus_L=yes
9390       allow_undefined_flag=unsupported
9391       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'
9392       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9393       ;;
9394
9395     osf3*)
9396       if test "$GCC" = yes; then
9397         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9398         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'
9399       else
9400         allow_undefined_flag=' -expect_unresolved \*'
9401         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'
9402       fi
9403       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9404       hardcode_libdir_separator=:
9405       ;;
9406
9407     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9408       if test "$GCC" = yes; then
9409         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9410         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'
9411         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9412       else
9413         allow_undefined_flag=' -expect_unresolved \*'
9414         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'
9415         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9416         $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'
9417
9418         # Both c and cxx compiler support -rpath directly
9419         hardcode_libdir_flag_spec='-rpath $libdir'
9420       fi
9421       hardcode_libdir_separator=:
9422       ;;
9423
9424     solaris*)
9425       no_undefined_flag=' -z text'
9426       if test "$GCC" = yes; then
9427         wlarc='${wl}'
9428         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9429         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9430           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9431       else
9432         wlarc=''
9433         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9434         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9435         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9436       fi
9437       hardcode_libdir_flag_spec='-R$libdir'
9438       hardcode_shlibpath_var=no
9439       case $host_os in
9440       solaris2.[0-5] | solaris2.[0-5].*) ;;
9441       *)
9442         # The compiler driver will combine and reorder linker options,
9443         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9444         # but is careful enough not to reorder.
9445         # Supported since Solaris 2.6 (maybe 2.5.1?)
9446         if test "$GCC" = yes; then
9447           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9448         else
9449           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9450         fi
9451         ;;
9452       esac
9453       link_all_deplibs=yes
9454       ;;
9455
9456     sunos4*)
9457       if test "x$host_vendor" = xsequent; then
9458         # Use $CC to link under sequent, because it throws in some extra .o
9459         # files that make .init and .fini sections work.
9460         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9461       else
9462         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9463       fi
9464       hardcode_libdir_flag_spec='-L$libdir'
9465       hardcode_direct=yes
9466       hardcode_minus_L=yes
9467       hardcode_shlibpath_var=no
9468       ;;
9469
9470     sysv4)
9471       case $host_vendor in
9472         sni)
9473           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474           hardcode_direct=yes # is this really true???
9475         ;;
9476         siemens)
9477           ## LD is ld it makes a PLAMLIB
9478           ## CC just makes a GrossModule.
9479           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9480           reload_cmds='$CC -r -o $output$reload_objs'
9481           hardcode_direct=no
9482         ;;
9483         motorola)
9484           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9486         ;;
9487       esac
9488       runpath_var='LD_RUN_PATH'
9489       hardcode_shlibpath_var=no
9490       ;;
9491
9492     sysv4.3*)
9493       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494       hardcode_shlibpath_var=no
9495       export_dynamic_flag_spec='-Bexport'
9496       ;;
9497
9498     sysv4*MP*)
9499       if test -d /usr/nec; then
9500         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9501         hardcode_shlibpath_var=no
9502         runpath_var=LD_RUN_PATH
9503         hardcode_runpath_var=yes
9504         ld_shlibs=yes
9505       fi
9506       ;;
9507
9508     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9509       no_undefined_flag='${wl}-z,text'
9510       archive_cmds_need_lc=no
9511       hardcode_shlibpath_var=no
9512       runpath_var='LD_RUN_PATH'
9513
9514       if test "$GCC" = yes; then
9515         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517       else
9518         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520       fi
9521       ;;
9522
9523     sysv5* | sco3.2v5* | sco5v6*)
9524       # Note: We can NOT use -z defs as we might desire, because we do not
9525       # link with -lc, and that would cause any symbols used from libc to
9526       # always be unresolved, which means just about no library would
9527       # ever link correctly.  If we're not using GNU ld we use -z text
9528       # though, which does catch some bad symbols but isn't as heavy-handed
9529       # as -z defs.
9530       no_undefined_flag='${wl}-z,text'
9531       allow_undefined_flag='${wl}-z,nodefs'
9532       archive_cmds_need_lc=no
9533       hardcode_shlibpath_var=no
9534       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9535       hardcode_libdir_separator=':'
9536       link_all_deplibs=yes
9537       export_dynamic_flag_spec='${wl}-Bexport'
9538       runpath_var='LD_RUN_PATH'
9539
9540       if test "$GCC" = yes; then
9541         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9542         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9543       else
9544         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9545         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9546       fi
9547       ;;
9548
9549     uts4*)
9550       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551       hardcode_libdir_flag_spec='-L$libdir'
9552       hardcode_shlibpath_var=no
9553       ;;
9554
9555     *)
9556       ld_shlibs=no
9557       ;;
9558     esac
9559   fi
9560
9561 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9562 echo "${ECHO_T}$ld_shlibs" >&6; }
9563 test "$ld_shlibs" = no && can_build_shared=no
9564
9565 #
9566 # Do we need to explicitly link libc?
9567 #
9568 case "x$archive_cmds_need_lc" in
9569 x|xyes)
9570   # Assume -lc should be added
9571   archive_cmds_need_lc=yes
9572
9573   if test "$enable_shared" = yes && test "$GCC" = yes; then
9574     case $archive_cmds in
9575     *'~'*)
9576       # FIXME: we may have to deal with multi-command sequences.
9577       ;;
9578     '$CC '*)
9579       # Test whether the compiler implicitly links with -lc since on some
9580       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9581       # to ld, don't add -lc before -lgcc.
9582       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9583 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9584       $rm conftest*
9585       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9586
9587       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588   (eval $ac_compile) 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } 2>conftest.err; then
9592         soname=conftest
9593         lib=conftest
9594         libobjs=conftest.$ac_objext
9595         deplibs=
9596         wl=$lt_prog_compiler_wl
9597         pic_flag=$lt_prog_compiler_pic
9598         compiler_flags=-v
9599         linker_flags=-v
9600         verstring=
9601         output_objdir=.
9602         libname=conftest
9603         lt_save_allow_undefined_flag=$allow_undefined_flag
9604         allow_undefined_flag=
9605         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9606   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); }
9610         then
9611           archive_cmds_need_lc=no
9612         else
9613           archive_cmds_need_lc=yes
9614         fi
9615         allow_undefined_flag=$lt_save_allow_undefined_flag
9616       else
9617         cat conftest.err 1>&5
9618       fi
9619       $rm conftest*
9620       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9621 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9622       ;;
9623     esac
9624   fi
9625   ;;
9626 esac
9627
9628 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9629 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9630 library_names_spec=
9631 libname_spec='lib$name'
9632 soname_spec=
9633 shrext_cmds=".so"
9634 postinstall_cmds=
9635 postuninstall_cmds=
9636 finish_cmds=
9637 finish_eval=
9638 shlibpath_var=
9639 shlibpath_overrides_runpath=unknown
9640 version_type=none
9641 dynamic_linker="$host_os ld.so"
9642 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9643
9644 if test "$GCC" = yes; then
9645   case $host_os in
9646     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9647     *) lt_awk_arg="/^libraries:/" ;;
9648   esac
9649   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9650   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9651     # if the path contains ";" then we assume it to be the separator
9652     # otherwise default to the standard path separator (i.e. ":") - it is
9653     # assumed that no part of a normal pathname contains ";" but that should
9654     # okay in the real world where ";" in dirpaths is itself problematic.
9655     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9656   else
9657     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9658   fi
9659   # Ok, now we have the path, separated by spaces, we can step through it
9660   # and add multilib dir if necessary.
9661   lt_tmp_lt_search_path_spec=
9662   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9663   for lt_sys_path in $lt_search_path_spec; do
9664     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9665       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9666     else
9667       test -d "$lt_sys_path" && \
9668         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9669     fi
9670   done
9671   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9672 BEGIN {RS=" "; FS="/|\n";} {
9673   lt_foo="";
9674   lt_count=0;
9675   for (lt_i = NF; lt_i > 0; lt_i--) {
9676     if ($lt_i != "" && $lt_i != ".") {
9677       if ($lt_i == "..") {
9678         lt_count++;
9679       } else {
9680         if (lt_count == 0) {
9681           lt_foo="/" $lt_i lt_foo;
9682         } else {
9683           lt_count--;
9684         }
9685       }
9686     }
9687   }
9688   if (lt_foo != "") { lt_freq[lt_foo]++; }
9689   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9690 }'`
9691   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9692 else
9693   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9694 fi
9695 need_lib_prefix=no
9696 hardcode_into_libs=no
9697
9698 # when you set need_version to no, make sure it does not cause -set_version
9699 # flags to be left without arguments
9700 need_version=no
9701
9702 case $host_os in
9703 aix3*)
9704   version_type=linux
9705   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9706   shlibpath_var=LIBPATH
9707
9708   # AIX 3 has no versioning support, so we append a major version to the name.
9709   soname_spec='${libname}${release}${shared_ext}$major'
9710   ;;
9711
9712 aix[4-9]*)
9713   version_type=linux
9714   need_lib_prefix=no
9715   need_version=no
9716   hardcode_into_libs=yes
9717   if test "$host_cpu" = ia64; then
9718     # AIX 5 supports IA64
9719     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9720     shlibpath_var=LD_LIBRARY_PATH
9721   else
9722     # With GCC up to 2.95.x, collect2 would create an import file
9723     # for dependence libraries.  The import file would start with
9724     # the line `#! .'.  This would cause the generated library to
9725     # depend on `.', always an invalid library.  This was fixed in
9726     # development snapshots of GCC prior to 3.0.
9727     case $host_os in
9728       aix4 | aix4.[01] | aix4.[01].*)
9729       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9730            echo ' yes '
9731            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9732         :
9733       else
9734         can_build_shared=no
9735       fi
9736       ;;
9737     esac
9738     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9739     # soname into executable. Probably we can add versioning support to
9740     # collect2, so additional links can be useful in future.
9741     if test "$aix_use_runtimelinking" = yes; then
9742       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9743       # instead of lib<name>.a to let people know that these are not
9744       # typical AIX shared libraries.
9745       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746     else
9747       # We preserve .a as extension for shared libraries through AIX4.2
9748       # and later when we are not doing run time linking.
9749       library_names_spec='${libname}${release}.a $libname.a'
9750       soname_spec='${libname}${release}${shared_ext}$major'
9751     fi
9752     shlibpath_var=LIBPATH
9753   fi
9754   ;;
9755
9756 amigaos*)
9757   library_names_spec='$libname.ixlibrary $libname.a'
9758   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9759   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'
9760   ;;
9761
9762 beos*)
9763   library_names_spec='${libname}${shared_ext}'
9764   dynamic_linker="$host_os ld.so"
9765   shlibpath_var=LIBRARY_PATH
9766   ;;
9767
9768 bsdi[45]*)
9769   version_type=linux
9770   need_version=no
9771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772   soname_spec='${libname}${release}${shared_ext}$major'
9773   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9774   shlibpath_var=LD_LIBRARY_PATH
9775   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9776   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9777   # the default ld.so.conf also contains /usr/contrib/lib and
9778   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9779   # libtool to hard-code these into programs
9780   ;;
9781
9782 cygwin* | mingw* | pw32*)
9783   version_type=windows
9784   shrext_cmds=".dll"
9785   need_version=no
9786   need_lib_prefix=no
9787
9788   case $GCC,$host_os in
9789   yes,cygwin* | yes,mingw* | yes,pw32*)
9790     library_names_spec='$libname.dll.a'
9791     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9792     postinstall_cmds='base_file=`basename \${file}`~
9793       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9794       dldir=$destdir/`dirname \$dlpath`~
9795       test -d \$dldir || mkdir -p \$dldir~
9796       $install_prog $dir/$dlname \$dldir/$dlname~
9797       chmod a+x \$dldir/$dlname'
9798     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9799       dlpath=$dir/\$dldll~
9800        $rm \$dlpath'
9801     shlibpath_overrides_runpath=yes
9802
9803     case $host_os in
9804     cygwin*)
9805       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9806       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9807       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9808       ;;
9809     mingw*)
9810       # MinGW DLLs use traditional 'lib' prefix
9811       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9812       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9813       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9814         # It is most probably a Windows format PATH printed by
9815         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9816         # path with ; separators, and with drive letters. We can handle the
9817         # drive letters (cygwin fileutils understands them), so leave them,
9818         # especially as we might pass files found there to a mingw objdump,
9819         # which wouldn't understand a cygwinified path. Ahh.
9820         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9821       else
9822         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9823       fi
9824       ;;
9825     pw32*)
9826       # pw32 DLLs use 'pw' prefix rather than 'lib'
9827       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9828       ;;
9829     esac
9830     ;;
9831
9832   *)
9833     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9834     ;;
9835   esac
9836   dynamic_linker='Win32 ld.exe'
9837   # FIXME: first we should search . and the directory the executable is in
9838   shlibpath_var=PATH
9839   ;;
9840
9841 darwin* | rhapsody*)
9842   dynamic_linker="$host_os dyld"
9843   version_type=darwin
9844   need_lib_prefix=no
9845   need_version=no
9846   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9847   soname_spec='${libname}${release}${major}$shared_ext'
9848   shlibpath_overrides_runpath=yes
9849   shlibpath_var=DYLD_LIBRARY_PATH
9850   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9851
9852   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9853   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9854   ;;
9855
9856 dgux*)
9857   version_type=linux
9858   need_lib_prefix=no
9859   need_version=no
9860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9861   soname_spec='${libname}${release}${shared_ext}$major'
9862   shlibpath_var=LD_LIBRARY_PATH
9863   ;;
9864
9865 freebsd1*)
9866   dynamic_linker=no
9867   ;;
9868
9869 freebsd* | dragonfly*)
9870   # DragonFly does not have aout.  When/if they implement a new
9871   # versioning mechanism, adjust this.
9872   if test -x /usr/bin/objformat; then
9873     objformat=`/usr/bin/objformat`
9874   else
9875     case $host_os in
9876     freebsd[123]*) objformat=aout ;;
9877     *) objformat=elf ;;
9878     esac
9879   fi
9880   version_type=freebsd-$objformat
9881   case $version_type in
9882     freebsd-elf*)
9883       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9884       need_version=no
9885       need_lib_prefix=no
9886       ;;
9887     freebsd-*)
9888       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9889       need_version=no
9890       ;;
9891   esac
9892   shlibpath_var=LD_LIBRARY_PATH
9893   case $host_os in
9894   freebsd2*)
9895     shlibpath_overrides_runpath=yes
9896     ;;
9897   freebsd3.[01]* | freebsdelf3.[01]*)
9898     shlibpath_overrides_runpath=yes
9899     hardcode_into_libs=yes
9900     ;;
9901   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9902   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9903     shlibpath_overrides_runpath=no
9904     hardcode_into_libs=yes
9905     ;;
9906   *) # from 4.6 on, and DragonFly
9907     shlibpath_overrides_runpath=yes
9908     hardcode_into_libs=yes
9909     ;;
9910   esac
9911   ;;
9912
9913 gnu*)
9914   version_type=linux
9915   need_lib_prefix=no
9916   need_version=no
9917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9918   soname_spec='${libname}${release}${shared_ext}$major'
9919   shlibpath_var=LD_LIBRARY_PATH
9920   hardcode_into_libs=yes
9921   ;;
9922
9923 hpux9* | hpux10* | hpux11*)
9924   # Give a soname corresponding to the major version so that dld.sl refuses to
9925   # link against other versions.
9926   version_type=sunos
9927   need_lib_prefix=no
9928   need_version=no
9929   case $host_cpu in
9930   ia64*)
9931     shrext_cmds='.so'
9932     hardcode_into_libs=yes
9933     dynamic_linker="$host_os dld.so"
9934     shlibpath_var=LD_LIBRARY_PATH
9935     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937     soname_spec='${libname}${release}${shared_ext}$major'
9938     if test "X$HPUX_IA64_MODE" = X32; then
9939       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9940     else
9941       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9942     fi
9943     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9944     ;;
9945    hppa*64*)
9946      shrext_cmds='.sl'
9947      hardcode_into_libs=yes
9948      dynamic_linker="$host_os dld.sl"
9949      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9950      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9951      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952      soname_spec='${libname}${release}${shared_ext}$major'
9953      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9954      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9955      ;;
9956    *)
9957     shrext_cmds='.sl'
9958     dynamic_linker="$host_os dld.sl"
9959     shlibpath_var=SHLIB_PATH
9960     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962     soname_spec='${libname}${release}${shared_ext}$major'
9963     ;;
9964   esac
9965   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9966   postinstall_cmds='chmod 555 $lib'
9967   ;;
9968
9969 interix[3-9]*)
9970   version_type=linux
9971   need_lib_prefix=no
9972   need_version=no
9973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9974   soname_spec='${libname}${release}${shared_ext}$major'
9975   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9976   shlibpath_var=LD_LIBRARY_PATH
9977   shlibpath_overrides_runpath=no
9978   hardcode_into_libs=yes
9979   ;;
9980
9981 irix5* | irix6* | nonstopux*)
9982   case $host_os in
9983     nonstopux*) version_type=nonstopux ;;
9984     *)
9985         if test "$lt_cv_prog_gnu_ld" = yes; then
9986                 version_type=linux
9987         else
9988                 version_type=irix
9989         fi ;;
9990   esac
9991   need_lib_prefix=no
9992   need_version=no
9993   soname_spec='${libname}${release}${shared_ext}$major'
9994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9995   case $host_os in
9996   irix5* | nonstopux*)
9997     libsuff= shlibsuff=
9998     ;;
9999   *)
10000     case $LD in # libtool.m4 will add one of these switches to LD
10001     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10002       libsuff= shlibsuff= libmagic=32-bit;;
10003     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10004       libsuff=32 shlibsuff=N32 libmagic=N32;;
10005     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10006       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10007     *) libsuff= shlibsuff= libmagic=never-match;;
10008     esac
10009     ;;
10010   esac
10011   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10012   shlibpath_overrides_runpath=no
10013   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10014   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10015   hardcode_into_libs=yes
10016   ;;
10017
10018 # No shared lib support for Linux oldld, aout, or coff.
10019 linux*oldld* | linux*aout* | linux*coff*)
10020   dynamic_linker=no
10021   ;;
10022
10023 # This must be Linux ELF.
10024 linux* | k*bsd*-gnu)
10025   version_type=linux
10026   need_lib_prefix=no
10027   need_version=no
10028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029   soname_spec='${libname}${release}${shared_ext}$major'
10030   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10031   shlibpath_var=LD_LIBRARY_PATH
10032   shlibpath_overrides_runpath=no
10033   # This implies no fast_install, which is unacceptable.
10034   # Some rework will be needed to allow for fast_install
10035   # before this can be enabled.
10036   hardcode_into_libs=yes
10037
10038   # Append ld.so.conf contents to the search path
10039   if test -f /etc/ld.so.conf; then
10040     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' ' '`
10041     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10042   fi
10043
10044   # We used to test for /lib/ld.so.1 and disable shared libraries on
10045   # powerpc, because MkLinux only supported shared libraries with the
10046   # GNU dynamic linker.  Since this was broken with cross compilers,
10047   # most powerpc-linux boxes support dynamic linking these days and
10048   # people can always --disable-shared, the test was removed, and we
10049   # assume the GNU/Linux dynamic linker is in use.
10050   dynamic_linker='GNU/Linux ld.so'
10051   ;;
10052
10053 netbsd*)
10054   version_type=sunos
10055   need_lib_prefix=no
10056   need_version=no
10057   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10058     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10059     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10060     dynamic_linker='NetBSD (a.out) ld.so'
10061   else
10062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10063     soname_spec='${libname}${release}${shared_ext}$major'
10064     dynamic_linker='NetBSD ld.elf_so'
10065   fi
10066   shlibpath_var=LD_LIBRARY_PATH
10067   shlibpath_overrides_runpath=yes
10068   hardcode_into_libs=yes
10069   ;;
10070
10071 newsos6)
10072   version_type=linux
10073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074   shlibpath_var=LD_LIBRARY_PATH
10075   shlibpath_overrides_runpath=yes
10076   ;;
10077
10078 nto-qnx*)
10079   version_type=linux
10080   need_lib_prefix=no
10081   need_version=no
10082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10083   soname_spec='${libname}${release}${shared_ext}$major'
10084   shlibpath_var=LD_LIBRARY_PATH
10085   shlibpath_overrides_runpath=yes
10086   ;;
10087
10088 openbsd*)
10089   version_type=sunos
10090   sys_lib_dlsearch_path_spec="/usr/lib"
10091   need_lib_prefix=no
10092   need_version=no
10093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10094   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10095   shlibpath_var=LD_LIBRARY_PATH
10096   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10097     case $host_os in
10098       openbsd2.[89] | openbsd2.[89].*)
10099         shlibpath_overrides_runpath=no
10100         ;;
10101       *)
10102         shlibpath_overrides_runpath=yes
10103         ;;
10104       esac
10105   else
10106     shlibpath_overrides_runpath=yes
10107   fi
10108   ;;
10109
10110 os2*)
10111   libname_spec='$name'
10112   shrext_cmds=".dll"
10113   need_lib_prefix=no
10114   library_names_spec='$libname${shared_ext} $libname.a'
10115   dynamic_linker='OS/2 ld.exe'
10116   shlibpath_var=LIBPATH
10117   ;;
10118
10119 osf3* | osf4* | osf5*)
10120   version_type=osf
10121   need_lib_prefix=no
10122   need_version=no
10123   soname_spec='${libname}${release}${shared_ext}$major'
10124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125   shlibpath_var=LD_LIBRARY_PATH
10126   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10127   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10128   ;;
10129
10130 rdos*)
10131   dynamic_linker=no
10132   ;;
10133
10134 solaris*)
10135   version_type=linux
10136   need_lib_prefix=no
10137   need_version=no
10138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139   soname_spec='${libname}${release}${shared_ext}$major'
10140   shlibpath_var=LD_LIBRARY_PATH
10141   shlibpath_overrides_runpath=yes
10142   hardcode_into_libs=yes
10143   # ldd complains unless libraries are executable
10144   postinstall_cmds='chmod +x $lib'
10145   ;;
10146
10147 sunos4*)
10148   version_type=sunos
10149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10150   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10151   shlibpath_var=LD_LIBRARY_PATH
10152   shlibpath_overrides_runpath=yes
10153   if test "$with_gnu_ld" = yes; then
10154     need_lib_prefix=no
10155   fi
10156   need_version=no
10157   ;;
10158
10159 sysv4 | sysv4.3*)
10160   version_type=linux
10161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162   soname_spec='${libname}${release}${shared_ext}$major'
10163   shlibpath_var=LD_LIBRARY_PATH
10164   case $host_vendor in
10165     sni)
10166       shlibpath_overrides_runpath=no
10167       need_lib_prefix=no
10168       export_dynamic_flag_spec='${wl}-Blargedynsym'
10169       runpath_var=LD_RUN_PATH
10170       ;;
10171     siemens)
10172       need_lib_prefix=no
10173       ;;
10174     motorola)
10175       need_lib_prefix=no
10176       need_version=no
10177       shlibpath_overrides_runpath=no
10178       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10179       ;;
10180   esac
10181   ;;
10182
10183 sysv4*MP*)
10184   if test -d /usr/nec ;then
10185     version_type=linux
10186     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10187     soname_spec='$libname${shared_ext}.$major'
10188     shlibpath_var=LD_LIBRARY_PATH
10189   fi
10190   ;;
10191
10192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10193   version_type=freebsd-elf
10194   need_lib_prefix=no
10195   need_version=no
10196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10197   soname_spec='${libname}${release}${shared_ext}$major'
10198   shlibpath_var=LD_LIBRARY_PATH
10199   hardcode_into_libs=yes
10200   if test "$with_gnu_ld" = yes; then
10201     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10202     shlibpath_overrides_runpath=no
10203   else
10204     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10205     shlibpath_overrides_runpath=yes
10206     case $host_os in
10207       sco3.2v5*)
10208         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10209         ;;
10210     esac
10211   fi
10212   sys_lib_dlsearch_path_spec='/usr/lib'
10213   ;;
10214
10215 uts4*)
10216   version_type=linux
10217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218   soname_spec='${libname}${release}${shared_ext}$major'
10219   shlibpath_var=LD_LIBRARY_PATH
10220   ;;
10221
10222 *)
10223   dynamic_linker=no
10224   ;;
10225 esac
10226 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10227 echo "${ECHO_T}$dynamic_linker" >&6; }
10228 test "$dynamic_linker" = no && can_build_shared=no
10229
10230 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10234 fi
10235
10236 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10237 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10241 fi
10242
10243 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10244
10245 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10246 if test "$GCC" = yes; then
10247   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10248 fi
10249
10250 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10251 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10252 hardcode_action=
10253 if test -n "$hardcode_libdir_flag_spec" || \
10254    test -n "$runpath_var" || \
10255    test "X$hardcode_automatic" = "Xyes" ; then
10256
10257   # We can hardcode non-existent directories.
10258   if test "$hardcode_direct" != no &&
10259      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10260      # have to relink, otherwise we might link with an installed library
10261      # when we should be linking with a yet-to-be-installed one
10262      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10263      test "$hardcode_minus_L" != no; then
10264     # Linking always hardcodes the temporary library directory.
10265     hardcode_action=relink
10266   else
10267     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10268     hardcode_action=immediate
10269   fi
10270 else
10271   # We cannot hardcode anything, or else we can only hardcode existing
10272   # directories.
10273   hardcode_action=unsupported
10274 fi
10275 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10276 echo "${ECHO_T}$hardcode_action" >&6; }
10277
10278 if test "$hardcode_action" = relink; then
10279   # Fast installation is not supported
10280   enable_fast_install=no
10281 elif test "$shlibpath_overrides_runpath" = yes ||
10282      test "$enable_shared" = no; then
10283   # Fast installation is not necessary
10284   enable_fast_install=needless
10285 fi
10286
10287 striplib=
10288 old_striplib=
10289 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10290 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10291 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10292   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10293   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10294   { echo "$as_me:$LINENO: result: yes" >&5
10295 echo "${ECHO_T}yes" >&6; }
10296 else
10297 # FIXME - insert some real tests, host_os isn't really good enough
10298   case $host_os in
10299    darwin*)
10300        if test -n "$STRIP" ; then
10301          striplib="$STRIP -x"
10302          old_striplib="$STRIP -S"
10303          { echo "$as_me:$LINENO: result: yes" >&5
10304 echo "${ECHO_T}yes" >&6; }
10305        else
10306   { echo "$as_me:$LINENO: result: no" >&5
10307 echo "${ECHO_T}no" >&6; }
10308 fi
10309        ;;
10310    *)
10311   { echo "$as_me:$LINENO: result: no" >&5
10312 echo "${ECHO_T}no" >&6; }
10313     ;;
10314   esac
10315 fi
10316
10317 if test "x$enable_dlopen" != xyes; then
10318   enable_dlopen=unknown
10319   enable_dlopen_self=unknown
10320   enable_dlopen_self_static=unknown
10321 else
10322   lt_cv_dlopen=no
10323   lt_cv_dlopen_libs=
10324
10325   case $host_os in
10326   beos*)
10327     lt_cv_dlopen="load_add_on"
10328     lt_cv_dlopen_libs=
10329     lt_cv_dlopen_self=yes
10330     ;;
10331
10332   mingw* | pw32*)
10333     lt_cv_dlopen="LoadLibrary"
10334     lt_cv_dlopen_libs=
10335    ;;
10336
10337   cygwin*)
10338     lt_cv_dlopen="dlopen"
10339     lt_cv_dlopen_libs=
10340    ;;
10341
10342   darwin*)
10343   # if libdl is installed we need to link against it
10344     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10345 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10347   echo $ECHO_N "(cached) $ECHO_C" >&6
10348 else
10349   ac_check_lib_save_LIBS=$LIBS
10350 LIBS="-ldl  $LIBS"
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h.  */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h.  */
10357
10358 /* Override any GCC internal prototype to avoid an error.
10359    Use char because int might match the return type of a GCC
10360    builtin and then its argument prototype would still apply.  */
10361 #ifdef __cplusplus
10362 extern "C"
10363 #endif
10364 char dlopen ();
10365 int
10366 main ()
10367 {
10368 return dlopen ();
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (ac_try="$ac_link"
10375 case "(($ac_try" in
10376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377   *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380   (eval "$ac_link") 2>conftest.er1
10381   ac_status=$?
10382   grep -v '^ *+' conftest.er1 >conftest.err
10383   rm -f conftest.er1
10384   cat conftest.err >&5
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } && {
10387          test -z "$ac_c_werror_flag" ||
10388          test ! -s conftest.err
10389        } && test -s conftest$ac_exeext &&
10390        $as_test_x conftest$ac_exeext; then
10391   ac_cv_lib_dl_dlopen=yes
10392 else
10393   echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10395
10396         ac_cv_lib_dl_dlopen=no
10397 fi
10398
10399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10400       conftest$ac_exeext conftest.$ac_ext
10401 LIBS=$ac_check_lib_save_LIBS
10402 fi
10403 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10404 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10405 if test $ac_cv_lib_dl_dlopen = yes; then
10406   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10407 else
10408
10409     lt_cv_dlopen="dyld"
10410     lt_cv_dlopen_libs=
10411     lt_cv_dlopen_self=yes
10412
10413 fi
10414
10415    ;;
10416
10417   *)
10418     { echo "$as_me:$LINENO: checking for shl_load" >&5
10419 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10420 if test "${ac_cv_func_shl_load+set}" = set; then
10421   echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423   cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10431 #define shl_load innocuous_shl_load
10432
10433 /* System header to define __stub macros and hopefully few prototypes,
10434     which can conflict with char shl_load (); below.
10435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10436     <limits.h> exists even on freestanding compilers.  */
10437
10438 #ifdef __STDC__
10439 # include <limits.h>
10440 #else
10441 # include <assert.h>
10442 #endif
10443
10444 #undef shl_load
10445
10446 /* Override any GCC internal prototype to avoid an error.
10447    Use char because int might match the return type of a GCC
10448    builtin and then its argument prototype would still apply.  */
10449 #ifdef __cplusplus
10450 extern "C"
10451 #endif
10452 char shl_load ();
10453 /* The GNU C library defines this for functions which it implements
10454     to always fail with ENOSYS.  Some functions are actually named
10455     something starting with __ and the normal name is an alias.  */
10456 #if defined __stub_shl_load || defined __stub___shl_load
10457 choke me
10458 #endif
10459
10460 int
10461 main ()
10462 {
10463 return shl_load ();
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (ac_try="$ac_link"
10470 case "(($ac_try" in
10471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472   *) ac_try_echo=$ac_try;;
10473 esac
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475   (eval "$ac_link") 2>conftest.er1
10476   ac_status=$?
10477   grep -v '^ *+' conftest.er1 >conftest.err
10478   rm -f conftest.er1
10479   cat conftest.err >&5
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); } && {
10482          test -z "$ac_c_werror_flag" ||
10483          test ! -s conftest.err
10484        } && test -s conftest$ac_exeext &&
10485        $as_test_x conftest$ac_exeext; then
10486   ac_cv_func_shl_load=yes
10487 else
10488   echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491         ac_cv_func_shl_load=no
10492 fi
10493
10494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10495       conftest$ac_exeext conftest.$ac_ext
10496 fi
10497 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10498 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10499 if test $ac_cv_func_shl_load = yes; then
10500   lt_cv_dlopen="shl_load"
10501 else
10502   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10503 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10504 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   ac_check_lib_save_LIBS=$LIBS
10508 LIBS="-ldld  $LIBS"
10509 cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515
10516 /* Override any GCC internal prototype to avoid an error.
10517    Use char because int might match the return type of a GCC
10518    builtin and then its argument prototype would still apply.  */
10519 #ifdef __cplusplus
10520 extern "C"
10521 #endif
10522 char shl_load ();
10523 int
10524 main ()
10525 {
10526 return shl_load ();
10527   ;
10528   return 0;
10529 }
10530 _ACEOF
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535   *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538   (eval "$ac_link") 2>conftest.er1
10539   ac_status=$?
10540   grep -v '^ *+' conftest.er1 >conftest.err
10541   rm -f conftest.er1
10542   cat conftest.err >&5
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } && {
10545          test -z "$ac_c_werror_flag" ||
10546          test ! -s conftest.err
10547        } && test -s conftest$ac_exeext &&
10548        $as_test_x conftest$ac_exeext; then
10549   ac_cv_lib_dld_shl_load=yes
10550 else
10551   echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554         ac_cv_lib_dld_shl_load=no
10555 fi
10556
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558       conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10560 fi
10561 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10562 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10563 if test $ac_cv_lib_dld_shl_load = yes; then
10564   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10565 else
10566   { echo "$as_me:$LINENO: checking for dlopen" >&5
10567 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10568 if test "${ac_cv_func_dlopen+set}" = set; then
10569   echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571   cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10579 #define dlopen innocuous_dlopen
10580
10581 /* System header to define __stub macros and hopefully few prototypes,
10582     which can conflict with char dlopen (); below.
10583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10584     <limits.h> exists even on freestanding compilers.  */
10585
10586 #ifdef __STDC__
10587 # include <limits.h>
10588 #else
10589 # include <assert.h>
10590 #endif
10591
10592 #undef dlopen
10593
10594 /* Override any GCC internal prototype to avoid an error.
10595    Use char because int might match the return type of a GCC
10596    builtin and then its argument prototype would still apply.  */
10597 #ifdef __cplusplus
10598 extern "C"
10599 #endif
10600 char dlopen ();
10601 /* The GNU C library defines this for functions which it implements
10602     to always fail with ENOSYS.  Some functions are actually named
10603     something starting with __ and the normal name is an alias.  */
10604 #if defined __stub_dlopen || defined __stub___dlopen
10605 choke me
10606 #endif
10607
10608 int
10609 main ()
10610 {
10611 return dlopen ();
10612   ;
10613   return 0;
10614 }
10615 _ACEOF
10616 rm -f conftest.$ac_objext conftest$ac_exeext
10617 if { (ac_try="$ac_link"
10618 case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623   (eval "$ac_link") 2>conftest.er1
10624   ac_status=$?
10625   grep -v '^ *+' conftest.er1 >conftest.err
10626   rm -f conftest.er1
10627   cat conftest.err >&5
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } && {
10630          test -z "$ac_c_werror_flag" ||
10631          test ! -s conftest.err
10632        } && test -s conftest$ac_exeext &&
10633        $as_test_x conftest$ac_exeext; then
10634   ac_cv_func_dlopen=yes
10635 else
10636   echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639         ac_cv_func_dlopen=no
10640 fi
10641
10642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10643       conftest$ac_exeext conftest.$ac_ext
10644 fi
10645 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10646 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10647 if test $ac_cv_func_dlopen = yes; then
10648   lt_cv_dlopen="dlopen"
10649 else
10650   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10651 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10653   echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655   ac_check_lib_save_LIBS=$LIBS
10656 LIBS="-ldl  $LIBS"
10657 cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663
10664 /* Override any GCC internal prototype to avoid an error.
10665    Use char because int might match the return type of a GCC
10666    builtin and then its argument prototype would still apply.  */
10667 #ifdef __cplusplus
10668 extern "C"
10669 #endif
10670 char dlopen ();
10671 int
10672 main ()
10673 {
10674 return dlopen ();
10675   ;
10676   return 0;
10677 }
10678 _ACEOF
10679 rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683   *) ac_try_echo=$ac_try;;
10684 esac
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686   (eval "$ac_link") 2>conftest.er1
10687   ac_status=$?
10688   grep -v '^ *+' conftest.er1 >conftest.err
10689   rm -f conftest.er1
10690   cat conftest.err >&5
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } && {
10693          test -z "$ac_c_werror_flag" ||
10694          test ! -s conftest.err
10695        } && test -s conftest$ac_exeext &&
10696        $as_test_x conftest$ac_exeext; then
10697   ac_cv_lib_dl_dlopen=yes
10698 else
10699   echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10701
10702         ac_cv_lib_dl_dlopen=no
10703 fi
10704
10705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10706       conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10708 fi
10709 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10710 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10711 if test $ac_cv_lib_dl_dlopen = yes; then
10712   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10713 else
10714   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10715 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10716 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10717   echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719   ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-lsvld  $LIBS"
10721 cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h.  */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h.  */
10727
10728 /* Override any GCC internal prototype to avoid an error.
10729    Use char because int might match the return type of a GCC
10730    builtin and then its argument prototype would still apply.  */
10731 #ifdef __cplusplus
10732 extern "C"
10733 #endif
10734 char dlopen ();
10735 int
10736 main ()
10737 {
10738 return dlopen ();
10739   ;
10740   return 0;
10741 }
10742 _ACEOF
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (ac_try="$ac_link"
10745 case "(($ac_try" in
10746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747   *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750   (eval "$ac_link") 2>conftest.er1
10751   ac_status=$?
10752   grep -v '^ *+' conftest.er1 >conftest.err
10753   rm -f conftest.er1
10754   cat conftest.err >&5
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); } && {
10757          test -z "$ac_c_werror_flag" ||
10758          test ! -s conftest.err
10759        } && test -s conftest$ac_exeext &&
10760        $as_test_x conftest$ac_exeext; then
10761   ac_cv_lib_svld_dlopen=yes
10762 else
10763   echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10765
10766         ac_cv_lib_svld_dlopen=no
10767 fi
10768
10769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10770       conftest$ac_exeext conftest.$ac_ext
10771 LIBS=$ac_check_lib_save_LIBS
10772 fi
10773 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10774 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10775 if test $ac_cv_lib_svld_dlopen = yes; then
10776   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10777 else
10778   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10779 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10780 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10781   echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783   ac_check_lib_save_LIBS=$LIBS
10784 LIBS="-ldld  $LIBS"
10785 cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h.  */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h.  */
10791
10792 /* Override any GCC internal prototype to avoid an error.
10793    Use char because int might match the return type of a GCC
10794    builtin and then its argument prototype would still apply.  */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char dld_link ();
10799 int
10800 main ()
10801 {
10802 return dld_link ();
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 rm -f conftest.$ac_objext conftest$ac_exeext
10808 if { (ac_try="$ac_link"
10809 case "(($ac_try" in
10810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811   *) ac_try_echo=$ac_try;;
10812 esac
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814   (eval "$ac_link") 2>conftest.er1
10815   ac_status=$?
10816   grep -v '^ *+' conftest.er1 >conftest.err
10817   rm -f conftest.er1
10818   cat conftest.err >&5
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); } && {
10821          test -z "$ac_c_werror_flag" ||
10822          test ! -s conftest.err
10823        } && test -s conftest$ac_exeext &&
10824        $as_test_x conftest$ac_exeext; then
10825   ac_cv_lib_dld_dld_link=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830         ac_cv_lib_dld_dld_link=no
10831 fi
10832
10833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10834       conftest$ac_exeext conftest.$ac_ext
10835 LIBS=$ac_check_lib_save_LIBS
10836 fi
10837 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10838 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10839 if test $ac_cv_lib_dld_dld_link = yes; then
10840   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10841 fi
10842
10843
10844 fi
10845
10846
10847 fi
10848
10849
10850 fi
10851
10852
10853 fi
10854
10855
10856 fi
10857
10858     ;;
10859   esac
10860
10861   if test "x$lt_cv_dlopen" != xno; then
10862     enable_dlopen=yes
10863   else
10864     enable_dlopen=no
10865   fi
10866
10867   case $lt_cv_dlopen in
10868   dlopen)
10869     save_CPPFLAGS="$CPPFLAGS"
10870     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10871
10872     save_LDFLAGS="$LDFLAGS"
10873     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10874
10875     save_LIBS="$LIBS"
10876     LIBS="$lt_cv_dlopen_libs $LIBS"
10877
10878     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10879 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10880 if test "${lt_cv_dlopen_self+set}" = set; then
10881   echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883           if test "$cross_compiling" = yes; then :
10884   lt_cv_dlopen_self=cross
10885 else
10886   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10887   lt_status=$lt_dlunknown
10888   cat > conftest.$ac_ext <<EOF
10889 #line 10889 "configure"
10890 #include "confdefs.h"
10891
10892 #if HAVE_DLFCN_H
10893 #include <dlfcn.h>
10894 #endif
10895
10896 #include <stdio.h>
10897
10898 #ifdef RTLD_GLOBAL
10899 #  define LT_DLGLOBAL           RTLD_GLOBAL
10900 #else
10901 #  ifdef DL_GLOBAL
10902 #    define LT_DLGLOBAL         DL_GLOBAL
10903 #  else
10904 #    define LT_DLGLOBAL         0
10905 #  endif
10906 #endif
10907
10908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10909    find out it does not work in some platform. */
10910 #ifndef LT_DLLAZY_OR_NOW
10911 #  ifdef RTLD_LAZY
10912 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10913 #  else
10914 #    ifdef DL_LAZY
10915 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10916 #    else
10917 #      ifdef RTLD_NOW
10918 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10919 #      else
10920 #        ifdef DL_NOW
10921 #          define LT_DLLAZY_OR_NOW      DL_NOW
10922 #        else
10923 #          define LT_DLLAZY_OR_NOW      0
10924 #        endif
10925 #      endif
10926 #    endif
10927 #  endif
10928 #endif
10929
10930 #ifdef __cplusplus
10931 extern "C" void exit (int);
10932 #endif
10933
10934 void fnord() { int i=42;}
10935 int main ()
10936 {
10937   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10938   int status = $lt_dlunknown;
10939
10940   if (self)
10941     {
10942       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10943       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10944       /* dlclose (self); */
10945     }
10946   else
10947     puts (dlerror ());
10948
10949     exit (status);
10950 }
10951 EOF
10952   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10953   (eval $ac_link) 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10957     (./conftest; exit; ) >&5 2>/dev/null
10958     lt_status=$?
10959     case x$lt_status in
10960       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10961       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10962       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10963     esac
10964   else :
10965     # compilation failed
10966     lt_cv_dlopen_self=no
10967   fi
10968 fi
10969 rm -fr conftest*
10970
10971
10972 fi
10973 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10974 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10975
10976     if test "x$lt_cv_dlopen_self" = xyes; then
10977       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10978       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10979 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10980 if test "${lt_cv_dlopen_self_static+set}" = set; then
10981   echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983           if test "$cross_compiling" = yes; then :
10984   lt_cv_dlopen_self_static=cross
10985 else
10986   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10987   lt_status=$lt_dlunknown
10988   cat > conftest.$ac_ext <<EOF
10989 #line 10989 "configure"
10990 #include "confdefs.h"
10991
10992 #if HAVE_DLFCN_H
10993 #include <dlfcn.h>
10994 #endif
10995
10996 #include <stdio.h>
10997
10998 #ifdef RTLD_GLOBAL
10999 #  define LT_DLGLOBAL           RTLD_GLOBAL
11000 #else
11001 #  ifdef DL_GLOBAL
11002 #    define LT_DLGLOBAL         DL_GLOBAL
11003 #  else
11004 #    define LT_DLGLOBAL         0
11005 #  endif
11006 #endif
11007
11008 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11009    find out it does not work in some platform. */
11010 #ifndef LT_DLLAZY_OR_NOW
11011 #  ifdef RTLD_LAZY
11012 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11013 #  else
11014 #    ifdef DL_LAZY
11015 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11016 #    else
11017 #      ifdef RTLD_NOW
11018 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11019 #      else
11020 #        ifdef DL_NOW
11021 #          define LT_DLLAZY_OR_NOW      DL_NOW
11022 #        else
11023 #          define LT_DLLAZY_OR_NOW      0
11024 #        endif
11025 #      endif
11026 #    endif
11027 #  endif
11028 #endif
11029
11030 #ifdef __cplusplus
11031 extern "C" void exit (int);
11032 #endif
11033
11034 void fnord() { int i=42;}
11035 int main ()
11036 {
11037   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11038   int status = $lt_dlunknown;
11039
11040   if (self)
11041     {
11042       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11043       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11044       /* dlclose (self); */
11045     }
11046   else
11047     puts (dlerror ());
11048
11049     exit (status);
11050 }
11051 EOF
11052   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11053   (eval $ac_link) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11057     (./conftest; exit; ) >&5 2>/dev/null
11058     lt_status=$?
11059     case x$lt_status in
11060       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11061       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11062       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11063     esac
11064   else :
11065     # compilation failed
11066     lt_cv_dlopen_self_static=no
11067   fi
11068 fi
11069 rm -fr conftest*
11070
11071
11072 fi
11073 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11074 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11075     fi
11076
11077     CPPFLAGS="$save_CPPFLAGS"
11078     LDFLAGS="$save_LDFLAGS"
11079     LIBS="$save_LIBS"
11080     ;;
11081   esac
11082
11083   case $lt_cv_dlopen_self in
11084   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11085   *) enable_dlopen_self=unknown ;;
11086   esac
11087
11088   case $lt_cv_dlopen_self_static in
11089   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11090   *) enable_dlopen_self_static=unknown ;;
11091   esac
11092 fi
11093
11094
11095 # Report which library types will actually be built
11096 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11097 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11098 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11099 echo "${ECHO_T}$can_build_shared" >&6; }
11100
11101 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11102 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11103 test "$can_build_shared" = "no" && enable_shared=no
11104
11105 # On AIX, shared libraries and static libraries use the same namespace, and
11106 # are all built from PIC.
11107 case $host_os in
11108 aix3*)
11109   test "$enable_shared" = yes && enable_static=no
11110   if test -n "$RANLIB"; then
11111     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11112     postinstall_cmds='$RANLIB $lib'
11113   fi
11114   ;;
11115
11116 aix[4-9]*)
11117   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11118     test "$enable_shared" = yes && enable_static=no
11119   fi
11120     ;;
11121 esac
11122 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11123 echo "${ECHO_T}$enable_shared" >&6; }
11124
11125 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11126 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11127 # Make sure either enable_shared or enable_static is yes.
11128 test "$enable_shared" = yes || enable_static=yes
11129 { echo "$as_me:$LINENO: result: $enable_static" >&5
11130 echo "${ECHO_T}$enable_static" >&6; }
11131
11132 # The else clause should only fire when bootstrapping the
11133 # libtool distribution, otherwise you forgot to ship ltmain.sh
11134 # with your package, and you will get complaints that there are
11135 # no rules to generate ltmain.sh.
11136 if test -f "$ltmain"; then
11137   # See if we are running on zsh, and set the options which allow our commands through
11138   # without removal of \ escapes.
11139   if test -n "${ZSH_VERSION+set}" ; then
11140     setopt NO_GLOB_SUBST
11141   fi
11142   # Now quote all the things that may contain metacharacters while being
11143   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11144   # variables and quote the copies for generation of the libtool script.
11145   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11146     SED SHELL STRIP \
11147     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11148     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11149     deplibs_check_method reload_flag reload_cmds need_locks \
11150     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11151     lt_cv_sys_global_symbol_to_c_name_address \
11152     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11153     old_postinstall_cmds old_postuninstall_cmds \
11154     compiler \
11155     CC \
11156     LD \
11157     lt_prog_compiler_wl \
11158     lt_prog_compiler_pic \
11159     lt_prog_compiler_static \
11160     lt_prog_compiler_no_builtin_flag \
11161     export_dynamic_flag_spec \
11162     thread_safe_flag_spec \
11163     whole_archive_flag_spec \
11164     enable_shared_with_static_runtimes \
11165     old_archive_cmds \
11166     old_archive_from_new_cmds \
11167     predep_objects \
11168     postdep_objects \
11169     predeps \
11170     postdeps \
11171     compiler_lib_search_path \
11172     compiler_lib_search_dirs \
11173     archive_cmds \
11174     archive_expsym_cmds \
11175     postinstall_cmds \
11176     postuninstall_cmds \
11177     old_archive_from_expsyms_cmds \
11178     allow_undefined_flag \
11179     no_undefined_flag \
11180     export_symbols_cmds \
11181     hardcode_libdir_flag_spec \
11182     hardcode_libdir_flag_spec_ld \
11183     hardcode_libdir_separator \
11184     hardcode_automatic \
11185     module_cmds \
11186     module_expsym_cmds \
11187     lt_cv_prog_compiler_c_o \
11188     fix_srcfile_path \
11189     exclude_expsyms \
11190     include_expsyms; do
11191
11192     case $var in
11193     old_archive_cmds | \
11194     old_archive_from_new_cmds | \
11195     archive_cmds | \
11196     archive_expsym_cmds | \
11197     module_cmds | \
11198     module_expsym_cmds | \
11199     old_archive_from_expsyms_cmds | \
11200     export_symbols_cmds | \
11201     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11202     postinstall_cmds | postuninstall_cmds | \
11203     old_postinstall_cmds | old_postuninstall_cmds | \
11204     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11205       # Double-quote double-evaled strings.
11206       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11207       ;;
11208     *)
11209       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11210       ;;
11211     esac
11212   done
11213
11214   case $lt_echo in
11215   *'\$0 --fallback-echo"')
11216     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11217     ;;
11218   esac
11219
11220 cfgfile="${ofile}T"
11221   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11222   $rm -f "$cfgfile"
11223   { echo "$as_me:$LINENO: creating $ofile" >&5
11224 echo "$as_me: creating $ofile" >&6;}
11225
11226   cat <<__EOF__ >> "$cfgfile"
11227 #! $SHELL
11228
11229 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11230 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11231 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11232 #
11233 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11234 # Free Software Foundation, Inc.
11235 #
11236 # This file is part of GNU Libtool:
11237 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11238 #
11239 # This program is free software; you can redistribute it and/or modify
11240 # it under the terms of the GNU General Public License as published by
11241 # the Free Software Foundation; either version 2 of the License, or
11242 # (at your option) any later version.
11243 #
11244 # This program is distributed in the hope that it will be useful, but
11245 # WITHOUT ANY WARRANTY; without even the implied warranty of
11246 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11247 # General Public License for more details.
11248 #
11249 # You should have received a copy of the GNU General Public License
11250 # along with this program; if not, write to the Free Software
11251 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11252 #
11253 # As a special exception to the GNU General Public License, if you
11254 # distribute this file as part of a program that contains a
11255 # configuration script generated by Autoconf, you may include it under
11256 # the same distribution terms that you use for the rest of that program.
11257
11258 # A sed program that does not truncate output.
11259 SED=$lt_SED
11260
11261 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11262 Xsed="$SED -e 1s/^X//"
11263
11264 # The HP-UX ksh and POSIX shell print the target directory to stdout
11265 # if CDPATH is set.
11266 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11267
11268 # The names of the tagged configurations supported by this script.
11269 available_tags=
11270
11271 # ### BEGIN LIBTOOL CONFIG
11272
11273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11274
11275 # Shell to use when invoking shell scripts.
11276 SHELL=$lt_SHELL
11277
11278 # Whether or not to build shared libraries.
11279 build_libtool_libs=$enable_shared
11280
11281 # Whether or not to build static libraries.
11282 build_old_libs=$enable_static
11283
11284 # Whether or not to add -lc for building shared libraries.
11285 build_libtool_need_lc=$archive_cmds_need_lc
11286
11287 # Whether or not to disallow shared libs when runtime libs are static
11288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11289
11290 # Whether or not to optimize for fast installation.
11291 fast_install=$enable_fast_install
11292
11293 # The host system.
11294 host_alias=$host_alias
11295 host=$host
11296 host_os=$host_os
11297
11298 # The build system.
11299 build_alias=$build_alias
11300 build=$build
11301 build_os=$build_os
11302
11303 # An echo program that does not interpret backslashes.
11304 echo=$lt_echo
11305
11306 # The archiver.
11307 AR=$lt_AR
11308 AR_FLAGS=$lt_AR_FLAGS
11309
11310 # A C compiler.
11311 LTCC=$lt_LTCC
11312
11313 # LTCC compiler flags.
11314 LTCFLAGS=$lt_LTCFLAGS
11315
11316 # A language-specific compiler.
11317 CC=$lt_compiler
11318
11319 # Is the compiler the GNU C compiler?
11320 with_gcc=$GCC
11321
11322 # An ERE matcher.
11323 EGREP=$lt_EGREP
11324
11325 # The linker used to build libraries.
11326 LD=$lt_LD
11327
11328 # Whether we need hard or soft links.
11329 LN_S=$lt_LN_S
11330
11331 # A BSD-compatible nm program.
11332 NM=$lt_NM
11333
11334 # A symbol stripping program
11335 STRIP=$lt_STRIP
11336
11337 # Used to examine libraries when file_magic_cmd begins "file"
11338 MAGIC_CMD=$MAGIC_CMD
11339
11340 # Used on cygwin: DLL creation program.
11341 DLLTOOL="$DLLTOOL"
11342
11343 # Used on cygwin: object dumper.
11344 OBJDUMP="$OBJDUMP"
11345
11346 # Used on cygwin: assembler.
11347 AS="$AS"
11348
11349 # The name of the directory that contains temporary libtool files.
11350 objdir=$objdir
11351
11352 # How to create reloadable object files.
11353 reload_flag=$lt_reload_flag
11354 reload_cmds=$lt_reload_cmds
11355
11356 # How to pass a linker flag through the compiler.
11357 wl=$lt_lt_prog_compiler_wl
11358
11359 # Object file suffix (normally "o").
11360 objext="$ac_objext"
11361
11362 # Old archive suffix (normally "a").
11363 libext="$libext"
11364
11365 # Shared library suffix (normally ".so").
11366 shrext_cmds='$shrext_cmds'
11367
11368 # Executable file suffix (normally "").
11369 exeext="$exeext"
11370
11371 # Additional compiler flags for building library objects.
11372 pic_flag=$lt_lt_prog_compiler_pic
11373 pic_mode=$pic_mode
11374
11375 # What is the maximum length of a command?
11376 max_cmd_len=$lt_cv_sys_max_cmd_len
11377
11378 # Does compiler simultaneously support -c and -o options?
11379 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11380
11381 # Must we lock files when doing compilation?
11382 need_locks=$lt_need_locks
11383
11384 # Do we need the lib prefix for modules?
11385 need_lib_prefix=$need_lib_prefix
11386
11387 # Do we need a version for libraries?
11388 need_version=$need_version
11389
11390 # Whether dlopen is supported.
11391 dlopen_support=$enable_dlopen
11392
11393 # Whether dlopen of programs is supported.
11394 dlopen_self=$enable_dlopen_self
11395
11396 # Whether dlopen of statically linked programs is supported.
11397 dlopen_self_static=$enable_dlopen_self_static
11398
11399 # Compiler flag to prevent dynamic linking.
11400 link_static_flag=$lt_lt_prog_compiler_static
11401
11402 # Compiler flag to turn off builtin functions.
11403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11404
11405 # Compiler flag to allow reflexive dlopens.
11406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11407
11408 # Compiler flag to generate shared objects directly from archives.
11409 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11410
11411 # Compiler flag to generate thread-safe objects.
11412 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11413
11414 # Library versioning type.
11415 version_type=$version_type
11416
11417 # Format of library name prefix.
11418 libname_spec=$lt_libname_spec
11419
11420 # List of archive names.  First name is the real one, the rest are links.
11421 # The last name is the one that the linker finds with -lNAME.
11422 library_names_spec=$lt_library_names_spec
11423
11424 # The coded name of the library, if different from the real name.
11425 soname_spec=$lt_soname_spec
11426
11427 # Commands used to build and install an old-style archive.
11428 RANLIB=$lt_RANLIB
11429 old_archive_cmds=$lt_old_archive_cmds
11430 old_postinstall_cmds=$lt_old_postinstall_cmds
11431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11432
11433 # Create an old-style archive from a shared archive.
11434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11435
11436 # Create a temporary old-style archive to link instead of a shared archive.
11437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11438
11439 # Commands used to build and install a shared archive.
11440 archive_cmds=$lt_archive_cmds
11441 archive_expsym_cmds=$lt_archive_expsym_cmds
11442 postinstall_cmds=$lt_postinstall_cmds
11443 postuninstall_cmds=$lt_postuninstall_cmds
11444
11445 # Commands used to build a loadable module (assumed same as above if empty)
11446 module_cmds=$lt_module_cmds
11447 module_expsym_cmds=$lt_module_expsym_cmds
11448
11449 # Commands to strip libraries.
11450 old_striplib=$lt_old_striplib
11451 striplib=$lt_striplib
11452
11453 # Dependencies to place before the objects being linked to create a
11454 # shared library.
11455 predep_objects=$lt_predep_objects
11456
11457 # Dependencies to place after the objects being linked to create a
11458 # shared library.
11459 postdep_objects=$lt_postdep_objects
11460
11461 # Dependencies to place before the objects being linked to create a
11462 # shared library.
11463 predeps=$lt_predeps
11464
11465 # Dependencies to place after the objects being linked to create a
11466 # shared library.
11467 postdeps=$lt_postdeps
11468
11469 # The directories searched by this compiler when creating a shared
11470 # library
11471 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11472
11473 # The library search path used internally by the compiler when linking
11474 # a shared library.
11475 compiler_lib_search_path=$lt_compiler_lib_search_path
11476
11477 # Method to check whether dependent libraries are shared objects.
11478 deplibs_check_method=$lt_deplibs_check_method
11479
11480 # Command to use when deplibs_check_method == file_magic.
11481 file_magic_cmd=$lt_file_magic_cmd
11482
11483 # Flag that allows shared libraries with undefined symbols to be built.
11484 allow_undefined_flag=$lt_allow_undefined_flag
11485
11486 # Flag that forces no undefined symbols.
11487 no_undefined_flag=$lt_no_undefined_flag
11488
11489 # Commands used to finish a libtool library installation in a directory.
11490 finish_cmds=$lt_finish_cmds
11491
11492 # Same as above, but a single script fragment to be evaled but not shown.
11493 finish_eval=$lt_finish_eval
11494
11495 # Take the output of nm and produce a listing of raw symbols and C names.
11496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11497
11498 # Transform the output of nm in a proper C declaration
11499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11500
11501 # Transform the output of nm in a C name address pair
11502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11503
11504 # This is the shared library runtime path variable.
11505 runpath_var=$runpath_var
11506
11507 # This is the shared library path variable.
11508 shlibpath_var=$shlibpath_var
11509
11510 # Is shlibpath searched before the hard-coded library search path?
11511 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11512
11513 # How to hardcode a shared library path into an executable.
11514 hardcode_action=$hardcode_action
11515
11516 # Whether we should hardcode library paths into libraries.
11517 hardcode_into_libs=$hardcode_into_libs
11518
11519 # Flag to hardcode \$libdir into a binary during linking.
11520 # This must work even if \$libdir does not exist.
11521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11522
11523 # If ld is used when linking, flag to hardcode \$libdir into
11524 # a binary during linking. This must work even if \$libdir does
11525 # not exist.
11526 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11527
11528 # Whether we need a single -rpath flag with a separated argument.
11529 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11530
11531 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11532 # resulting binary.
11533 hardcode_direct=$hardcode_direct
11534
11535 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11536 # resulting binary.
11537 hardcode_minus_L=$hardcode_minus_L
11538
11539 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11540 # the resulting binary.
11541 hardcode_shlibpath_var=$hardcode_shlibpath_var
11542
11543 # Set to yes if building a shared library automatically hardcodes DIR into the library
11544 # and all subsequent libraries and executables linked against it.
11545 hardcode_automatic=$hardcode_automatic
11546
11547 # Variables whose values should be saved in libtool wrapper scripts and
11548 # restored at relink time.
11549 variables_saved_for_relink="$variables_saved_for_relink"
11550
11551 # Whether libtool must link a program against all its dependency libraries.
11552 link_all_deplibs=$link_all_deplibs
11553
11554 # Compile-time system search path for libraries
11555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11556
11557 # Run-time system search path for libraries
11558 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11559
11560 # Fix the shell variable \$srcfile for the compiler.
11561 fix_srcfile_path=$lt_fix_srcfile_path
11562
11563 # Set to yes if exported symbols are required.
11564 always_export_symbols=$always_export_symbols
11565
11566 # The commands to list exported symbols.
11567 export_symbols_cmds=$lt_export_symbols_cmds
11568
11569 # The commands to extract the exported symbol list from a shared archive.
11570 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11571
11572 # Symbols that should not be listed in the preloaded symbols.
11573 exclude_expsyms=$lt_exclude_expsyms
11574
11575 # Symbols that must always be exported.
11576 include_expsyms=$lt_include_expsyms
11577
11578 # ### END LIBTOOL CONFIG
11579
11580 __EOF__
11581
11582
11583   case $host_os in
11584   aix3*)
11585     cat <<\EOF >> "$cfgfile"
11586
11587 # AIX sometimes has problems with the GCC collect2 program.  For some
11588 # reason, if we set the COLLECT_NAMES environment variable, the problems
11589 # vanish in a puff of smoke.
11590 if test "X${COLLECT_NAMES+set}" != Xset; then
11591   COLLECT_NAMES=
11592   export COLLECT_NAMES
11593 fi
11594 EOF
11595     ;;
11596   esac
11597
11598   # We use sed instead of cat because bash on DJGPP gets confused if
11599   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11600   # text mode, it properly converts lines to CR/LF.  This bash problem
11601   # is reportedly fixed, but why not run on old versions too?
11602   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11603
11604   mv -f "$cfgfile" "$ofile" || \
11605     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11606   chmod +x "$ofile"
11607
11608 else
11609   # If there is no Makefile yet, we rely on a make rule to execute
11610   # `config.status --recheck' to rerun these tests and create the
11611   # libtool script then.
11612   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11613   if test -f "$ltmain_in"; then
11614     test -f Makefile && make "$ltmain"
11615   fi
11616 fi
11617
11618
11619 ac_ext=c
11620 ac_cpp='$CPP $CPPFLAGS'
11621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11624
11625 CC="$lt_save_CC"
11626
11627
11628
11629 # This can be used to rebuild libtool when needed
11630 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11631
11632 # Always use our own libtool.
11633 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11634
11635 # Prevent multiple expansion
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646 if test "$enable_shared" = "no"; then
11647     with_noexec=no
11648 else
11649     eval _shrext="$shrext_cmds"
11650 fi
11651 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11652 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11653
11654 # Check whether --with-noexec was given.
11655 if test "${with_noexec+set}" = set; then
11656   withval=$with_noexec; case $with_noexec in
11657     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
11658                 ;;
11659     no)         ;;
11660     *)          ;;
11661 esac
11662 else
11663   with_noexec="$libexecdir/sudo_noexec$_shrext"
11664 fi
11665
11666 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11667 echo "${ECHO_T}$with_noexec" >&6; }
11668 NOEXECFILE="sudo_noexec$_shrext"
11669 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11670
11671 if test "$with_devel" = "yes" -a -n "$GCC"; then
11672     CFLAGS="${CFLAGS} -Wall"
11673 fi
11674
11675 # Extract the first word of "uname", so it can be a program name with args.
11676 set dummy uname; ac_word=$2
11677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11679 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682   if test -n "$UNAMEPROG"; then
11683   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688   IFS=$as_save_IFS
11689   test -z "$as_dir" && as_dir=.
11690   for ac_exec_ext in '' $ac_executable_extensions; do
11691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692     ac_cv_prog_UNAMEPROG="uname"
11693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11694     break 2
11695   fi
11696 done
11697 done
11698 IFS=$as_save_IFS
11699
11700 fi
11701 fi
11702 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11703 if test -n "$UNAMEPROG"; then
11704   { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11705 echo "${ECHO_T}$UNAMEPROG" >&6; }
11706 else
11707   { echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6; }
11709 fi
11710
11711
11712 # Extract the first word of "tr", so it can be a program name with args.
11713 set dummy tr; ac_word=$2
11714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11716 if test "${ac_cv_prog_TRPROG+set}" = set; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   if test -n "$TRPROG"; then
11720   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11721 else
11722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723 for as_dir in $PATH
11724 do
11725   IFS=$as_save_IFS
11726   test -z "$as_dir" && as_dir=.
11727   for ac_exec_ext in '' $ac_executable_extensions; do
11728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11729     ac_cv_prog_TRPROG="tr"
11730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11731     break 2
11732   fi
11733 done
11734 done
11735 IFS=$as_save_IFS
11736
11737 fi
11738 fi
11739 TRPROG=$ac_cv_prog_TRPROG
11740 if test -n "$TRPROG"; then
11741   { echo "$as_me:$LINENO: result: $TRPROG" >&5
11742 echo "${ECHO_T}$TRPROG" >&6; }
11743 else
11744   { echo "$as_me:$LINENO: result: no" >&5
11745 echo "${ECHO_T}no" >&6; }
11746 fi
11747
11748
11749 # Extract the first word of "nroff", so it can be a program name with args.
11750 set dummy nroff; ac_word=$2
11751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11753 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   if test -n "$NROFFPROG"; then
11757   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11758 else
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $PATH
11761 do
11762   IFS=$as_save_IFS
11763   test -z "$as_dir" && as_dir=.
11764   for ac_exec_ext in '' $ac_executable_extensions; do
11765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11766     ac_cv_prog_NROFFPROG="nroff"
11767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11768     break 2
11769   fi
11770 done
11771 done
11772 IFS=$as_save_IFS
11773
11774 fi
11775 fi
11776 NROFFPROG=$ac_cv_prog_NROFFPROG
11777 if test -n "$NROFFPROG"; then
11778   { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11779 echo "${ECHO_T}$NROFFPROG" >&6; }
11780 else
11781   { echo "$as_me:$LINENO: result: no" >&5
11782 echo "${ECHO_T}no" >&6; }
11783 fi
11784
11785
11786 if test -z "$NROFFPROG"; then
11787     MANTYPE="cat"
11788     mansrcdir='$(srcdir)'
11789 fi
11790
11791 if test -n "$sudo_cv_prev_host"; then
11792     if test "$sudo_cv_prev_host" != "$host"; then
11793         { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11794 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11795    { (exit 1); exit 1; }; }
11796     else
11797         { echo "$as_me:$LINENO: checking previous host type" >&5
11798 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11799         if test "${sudo_cv_prev_host+set}" = set; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802   sudo_cv_prev_host="$host"
11803 fi
11804
11805         { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11806 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11807     fi
11808 else
11809     # this will produce no output since there is no cached value
11810     if test "${sudo_cv_prev_host+set}" = set; then
11811   echo $ECHO_N "(cached) $ECHO_C" >&6
11812 else
11813   sudo_cv_prev_host="$host"
11814 fi
11815
11816 fi
11817
11818 if test -n "$host_os"; then
11819     OS=`echo $host_os | sed 's/[0-9].*//'`
11820     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11821     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11822 else
11823     OS="unknown"
11824     OSREV=0
11825     OSMAJOR=0
11826 fi
11827
11828 case "$host" in
11829     *-*-sunos4*)
11830                 # getcwd(3) opens a pipe to getpwd(1)!?!
11831                 BROKEN_GETCWD=1
11832
11833                 # system headers lack prototypes but gcc helps...
11834                 if test -n "$GCC"; then
11835                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11836                 fi
11837
11838                 shadow_funcs="getpwanam issecure"
11839                 ;;
11840     *-*-solaris2*)
11841                 # To get the crypt(3) prototype (so we pass -Wall)
11842                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11843                 # AFS support needs -lucb
11844                 if test "$with_AFS" = "yes"; then
11845                     AFS_LIBS="-lc -lucb"
11846                 fi
11847                 : ${mansectsu='1m'}
11848                 : ${mansectform='4'}
11849                 : ${with_rpath='yes'}
11850                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11851                 ;;
11852     *-*-aix*)
11853                 # To get all prototypes (so we pass -Wall)
11854                 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11855                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11856                 if test X"$with_blibpath" != X"no"; then
11857                     { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11858 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11859                     O_LDFLAGS="$LDFLAGS"
11860                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11861                     cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867
11868 int
11869 main ()
11870 {
11871
11872   ;
11873   return 0;
11874 }
11875 _ACEOF
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (ac_try="$ac_link"
11878 case "(($ac_try" in
11879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880   *) ac_try_echo=$ac_try;;
11881 esac
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883   (eval "$ac_link") 2>conftest.er1
11884   ac_status=$?
11885   grep -v '^ *+' conftest.er1 >conftest.err
11886   rm -f conftest.er1
11887   cat conftest.err >&5
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); } && {
11890          test -z "$ac_c_werror_flag" ||
11891          test ! -s conftest.err
11892        } && test -s conftest$ac_exeext &&
11893        $as_test_x conftest$ac_exeext; then
11894
11895                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11896                             blibpath="$with_blibpath"
11897                         elif test -n "$GCC"; then
11898                             blibpath="/usr/lib:/lib:/usr/local/lib"
11899                         else
11900                             blibpath="/usr/lib:/lib"
11901                         fi
11902                         { echo "$as_me:$LINENO: result: yes" >&5
11903 echo "${ECHO_T}yes" >&6; }
11904
11905 else
11906   echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11908
11909         { echo "$as_me:$LINENO: result: no" >&5
11910 echo "${ECHO_T}no" >&6; }
11911 fi
11912
11913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11914       conftest$ac_exeext conftest.$ac_ext
11915                 fi
11916                 LDFLAGS="$O_LDFLAGS"
11917
11918                 # Use authenticate(3) as the default authentication method
11919                 if test X"$with_aixauth" = X""; then
11920
11921 for ac_func in authenticate
11922 do
11923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11927   echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929   cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h.  */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h.  */
11935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11937 #define $ac_func innocuous_$ac_func
11938
11939 /* System header to define __stub macros and hopefully few prototypes,
11940     which can conflict with char $ac_func (); below.
11941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11942     <limits.h> exists even on freestanding compilers.  */
11943
11944 #ifdef __STDC__
11945 # include <limits.h>
11946 #else
11947 # include <assert.h>
11948 #endif
11949
11950 #undef $ac_func
11951
11952 /* Override any GCC internal prototype to avoid an error.
11953    Use char because int might match the return type of a GCC
11954    builtin and then its argument prototype would still apply.  */
11955 #ifdef __cplusplus
11956 extern "C"
11957 #endif
11958 char $ac_func ();
11959 /* The GNU C library defines this for functions which it implements
11960     to always fail with ENOSYS.  Some functions are actually named
11961     something starting with __ and the normal name is an alias.  */
11962 #if defined __stub_$ac_func || defined __stub___$ac_func
11963 choke me
11964 #endif
11965
11966 int
11967 main ()
11968 {
11969 return $ac_func ();
11970   ;
11971   return 0;
11972 }
11973 _ACEOF
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (ac_try="$ac_link"
11976 case "(($ac_try" in
11977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978   *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981   (eval "$ac_link") 2>conftest.er1
11982   ac_status=$?
11983   grep -v '^ *+' conftest.er1 >conftest.err
11984   rm -f conftest.er1
11985   cat conftest.err >&5
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); } && {
11988          test -z "$ac_c_werror_flag" ||
11989          test ! -s conftest.err
11990        } && test -s conftest$ac_exeext &&
11991        $as_test_x conftest$ac_exeext; then
11992   eval "$as_ac_var=yes"
11993 else
11994   echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11996
11997         eval "$as_ac_var=no"
11998 fi
11999
12000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12001       conftest$ac_exeext conftest.$ac_ext
12002 fi
12003 ac_res=`eval echo '${'$as_ac_var'}'`
12004                { echo "$as_me:$LINENO: result: $ac_res" >&5
12005 echo "${ECHO_T}$ac_res" >&6; }
12006 if test `eval echo '${'$as_ac_var'}'` = yes; then
12007   cat >>confdefs.h <<_ACEOF
12008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12009 _ACEOF
12010  AUTH_EXCL_DEF="AIX_AUTH"
12011 fi
12012 done
12013
12014                 fi
12015
12016                 # AIX analog of nsswitch.conf, enabled by default
12017
12018 # Check whether --with-netsvc was given.
12019 if test "${with_netsvc+set}" = set; then
12020   withval=$with_netsvc; case $with_netsvc in
12021                     no)         ;;
12022                     yes)        with_netsvc="/etc/netsvc.conf"
12023                                 ;;
12024                     *)          ;;
12025                 esac
12026 fi
12027
12028                 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
12029                     with_netsvc="/etc/netsvc.conf"
12030                 fi
12031
12032                 # AIX-specific functions
12033
12034 for ac_func in getuserattr
12035 do
12036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042   cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h.  */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h.  */
12048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12050 #define $ac_func innocuous_$ac_func
12051
12052 /* System header to define __stub macros and hopefully few prototypes,
12053     which can conflict with char $ac_func (); below.
12054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12055     <limits.h> exists even on freestanding compilers.  */
12056
12057 #ifdef __STDC__
12058 # include <limits.h>
12059 #else
12060 # include <assert.h>
12061 #endif
12062
12063 #undef $ac_func
12064
12065 /* Override any GCC internal prototype to avoid an error.
12066    Use char because int might match the return type of a GCC
12067    builtin and then its argument prototype would still apply.  */
12068 #ifdef __cplusplus
12069 extern "C"
12070 #endif
12071 char $ac_func ();
12072 /* The GNU C library defines this for functions which it implements
12073     to always fail with ENOSYS.  Some functions are actually named
12074     something starting with __ and the normal name is an alias.  */
12075 #if defined __stub_$ac_func || defined __stub___$ac_func
12076 choke me
12077 #endif
12078
12079 int
12080 main ()
12081 {
12082 return $ac_func ();
12083   ;
12084   return 0;
12085 }
12086 _ACEOF
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (ac_try="$ac_link"
12089 case "(($ac_try" in
12090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091   *) ac_try_echo=$ac_try;;
12092 esac
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094   (eval "$ac_link") 2>conftest.er1
12095   ac_status=$?
12096   grep -v '^ *+' conftest.er1 >conftest.err
12097   rm -f conftest.er1
12098   cat conftest.err >&5
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); } && {
12101          test -z "$ac_c_werror_flag" ||
12102          test ! -s conftest.err
12103        } && test -s conftest$ac_exeext &&
12104        $as_test_x conftest$ac_exeext; then
12105   eval "$as_ac_var=yes"
12106 else
12107   echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12109
12110         eval "$as_ac_var=no"
12111 fi
12112
12113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12114       conftest$ac_exeext conftest.$ac_ext
12115 fi
12116 ac_res=`eval echo '${'$as_ac_var'}'`
12117                { echo "$as_me:$LINENO: result: $ac_res" >&5
12118 echo "${ECHO_T}$ac_res" >&6; }
12119 if test `eval echo '${'$as_ac_var'}'` = yes; then
12120   cat >>confdefs.h <<_ACEOF
12121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12122 _ACEOF
12123
12124 fi
12125 done
12126
12127                 SUDO_OBJS="$SUDO_OBJS aix.o"
12128                 ;;
12129     *-*-hiuxmpp*)
12130                 : ${mansectsu='1m'}
12131                 : ${mansectform='4'}
12132                 ;;
12133     *-*-hpux*)
12134                 # AFS support needs -lBSD
12135                 if test "$with_AFS" = "yes"; then
12136                     AFS_LIBS="-lc -lBSD"
12137                 fi
12138                 : ${mansectsu='1m'}
12139                 : ${mansectform='4'}
12140
12141                 # HP-UX bundled compiler can't generate shared objects
12142                 if test "x$ac_cv_prog_cc_c89" = "xno"; then
12143                     with_noexec=no
12144                 fi
12145
12146                 # Use the +DAportable flag if it is supported
12147                 _CFLAGS="$CFLAGS"
12148                 CFLAGS="$CFLAGS +DAportable"
12149                 { echo "$as_me:$LINENO: checking whether $CC understands +DAportable" >&5
12150 echo $ECHO_N "checking whether $CC understands +DAportable... $ECHO_C" >&6; }
12151 if test "${sudo_cv_var_daportable+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160
12161 int
12162 main ()
12163 {
12164
12165   ;
12166   return 0;
12167 }
12168 _ACEOF
12169 rm -f conftest.$ac_objext conftest$ac_exeext
12170 if { (ac_try="$ac_link"
12171 case "(($ac_try" in
12172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173   *) ac_try_echo=$ac_try;;
12174 esac
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176   (eval "$ac_link") 2>conftest.er1
12177   ac_status=$?
12178   grep -v '^ *+' conftest.er1 >conftest.err
12179   rm -f conftest.er1
12180   cat conftest.err >&5
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); } && {
12183          test -z "$ac_c_werror_flag" ||
12184          test ! -s conftest.err
12185        } && test -s conftest$ac_exeext &&
12186        $as_test_x conftest$ac_exeext; then
12187   sudo_cv_var_daportable=yes
12188 else
12189   echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12191
12192         sudo_cv_var_daportable=no
12193 fi
12194
12195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12196       conftest$ac_exeext conftest.$ac_ext
12197
12198 fi
12199 { echo "$as_me:$LINENO: result: $sudo_cv_var_daportable" >&5
12200 echo "${ECHO_T}$sudo_cv_var_daportable" >&6; }
12201                 if test X"$sudo_cv_var_daportable" != X"yes"; then
12202                     CFLAGS="$_CFLAGS"
12203                 fi
12204
12205                 case "$host" in
12206                         *-*-hpux1-8.*)
12207                             cat >>confdefs.h <<\_ACEOF
12208 #define BROKEN_SYSLOG 1
12209 _ACEOF
12210
12211
12212                             # Not sure if setuid binaries are safe in < 9.x
12213                             if test -n "$GCC"; then
12214                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12215                             else
12216                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12217                             fi
12218                         ;;
12219                         *-*-hpux9.*)
12220                             cat >>confdefs.h <<\_ACEOF
12221 #define BROKEN_SYSLOG 1
12222 _ACEOF
12223
12224
12225                             shadow_funcs="getspwuid"
12226
12227                             # DCE support (requires ANSI C compiler)
12228                             if test "$with_DCE" = "yes"; then
12229                                 # order of libs in 9.X is important. -lc_r must be last
12230                                 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12231                                 LIBS="${LIBS} -ldce -lM -lc_r"
12232                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12233                             fi
12234                         ;;
12235                         *-*-hpux10.*)
12236                             shadow_funcs="getprpwnam iscomsec"
12237                             shadow_libs="-lsec"
12238                         ;;
12239                         *)
12240                             shadow_funcs="getspnam iscomsec"
12241                             shadow_libs="-lsec"
12242                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12243                         ;;
12244                 esac
12245                 ;;
12246     *-dec-osf*)
12247                 # ignore envariables wrt dynamic lib path
12248                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
12249
12250                 : ${CHECKSIA='true'}
12251                 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
12252 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
12253                 # Check whether --enable-sia was given.
12254 if test "${enable_sia+set}" = set; then
12255   enableval=$enable_sia;  case "$enableval" in
12256                     yes)        { echo "$as_me:$LINENO: result: no" >&5
12257 echo "${ECHO_T}no" >&6; }
12258                                 CHECKSIA=true
12259                                 ;;
12260                     no)         { echo "$as_me:$LINENO: result: yes" >&5
12261 echo "${ECHO_T}yes" >&6; }
12262                                 CHECKSIA=false
12263                                 ;;
12264                     *)          { echo "$as_me:$LINENO: result: no" >&5
12265 echo "${ECHO_T}no" >&6; }
12266                                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12267 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12268                                 ;;
12269                   esac
12270
12271 else
12272   { echo "$as_me:$LINENO: result: no" >&5
12273 echo "${ECHO_T}no" >&6; }
12274 fi
12275
12276
12277                 shadow_funcs="getprpwnam dispcrypt"
12278                 # OSF/1 4.x and higher need -ldb too
12279                 if test $OSMAJOR -lt 4; then
12280                     shadow_libs="-lsecurity -laud -lm"
12281                 else
12282                     shadow_libs="-lsecurity -ldb -laud -lm"
12283                 fi
12284
12285                 # use SIA by default, if we have it
12286                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
12287
12288                 #
12289                 # Some versions of Digital Unix ship with a broken
12290                 # copy of prot.h, which we need for shadow passwords.
12291                 # XXX - make should remove this as part of distclean
12292                 #
12293                 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
12294 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
12295                 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h.  */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h.  */
12301
12302 #include <sys/types.h>
12303 #include <sys/security.h>
12304 #include <prot.h>
12305
12306 int
12307 main ()
12308 {
12309 exit(0);
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (ac_try="$ac_compile"
12316 case "(($ac_try" in
12317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318   *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321   (eval "$ac_compile") 2>conftest.er1
12322   ac_status=$?
12323   grep -v '^ *+' conftest.er1 >conftest.err
12324   rm -f conftest.er1
12325   cat conftest.err >&5
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); } && {
12328          test -z "$ac_c_werror_flag" ||
12329          test ! -s conftest.err
12330        } && test -s conftest.$ac_objext; then
12331   { echo "$as_me:$LINENO: result: no" >&5
12332 echo "${ECHO_T}no" >&6; }
12333 else
12334   echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12336
12337         { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
12338 echo "${ECHO_T}yes, fixing locally" >&6; }
12339                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
12340
12341 fi
12342
12343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12344                 : ${mansectsu='8'}
12345                 : ${mansectform='4'}
12346                 ;;
12347     *-*-irix*)
12348                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
12349                 if test -z "$NROFFPROG"; then
12350                     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)'
12351                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12352                         if test -d /usr/share/catman/local; then
12353                             mandir="/usr/share/catman/local"
12354                         else
12355                             mandir="/usr/catman/local"
12356                         fi
12357                     fi
12358                 else
12359                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12360                         if test -d "/usr/share/man/local"; then
12361                             mandir="/usr/share/man/local"
12362                         else
12363                             mandir="/usr/man/local"
12364                         fi
12365                     fi
12366                 fi
12367                 # IRIX <= 4 needs -lsun
12368                 if test "$OSMAJOR" -le 4; then
12369                     { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
12370 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
12371 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   ac_check_lib_save_LIBS=$LIBS
12375 LIBS="-lsun  $LIBS"
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h.  */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h.  */
12382
12383 /* Override any GCC internal prototype to avoid an error.
12384    Use char because int might match the return type of a GCC
12385    builtin and then its argument prototype would still apply.  */
12386 #ifdef __cplusplus
12387 extern "C"
12388 #endif
12389 char getpwnam ();
12390 int
12391 main ()
12392 {
12393 return getpwnam ();
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402   *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405   (eval "$ac_link") 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } && {
12412          test -z "$ac_c_werror_flag" ||
12413          test ! -s conftest.err
12414        } && test -s conftest$ac_exeext &&
12415        $as_test_x conftest$ac_exeext; then
12416   ac_cv_lib_sun_getpwnam=yes
12417 else
12418   echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421         ac_cv_lib_sun_getpwnam=no
12422 fi
12423
12424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12425       conftest$ac_exeext conftest.$ac_ext
12426 LIBS=$ac_check_lib_save_LIBS
12427 fi
12428 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
12429 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
12430 if test $ac_cv_lib_sun_getpwnam = yes; then
12431   LIBS="${LIBS} -lsun"
12432 fi
12433
12434                 fi
12435                 : ${mansectsu='1m'}
12436                 : ${mansectform='4'}
12437                 ;;
12438     *-*-linux*|*-*-k*bsd*-gnu)
12439                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12440                 # Some Linux versions need to link with -lshadow
12441                 shadow_funcs="getspnam"
12442                 shadow_libs_optional="-lshadow"
12443                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12444                 ;;
12445     *-convex-bsd*)
12446                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12447                 if test -z "$GCC"; then
12448                     CFLAGS="${CFLAGS} -D__STDC__"
12449                 fi
12450
12451                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12452                 shadow_funcs="getprpwnam"
12453                 shadow_libs="-lprot"
12454                 ;;
12455     *-*-ultrix*)
12456                 OS="ultrix"
12457                 shadow_funcs="getauthuid"
12458                 shadow_libs="-lauth"
12459                 ;;
12460     *-*-riscos*)
12461                 LIBS="${LIBS} -lsun -lbsd"
12462                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12463                 OSDEFS="${OSDEFS} -D_MIPS"
12464                 : ${mansectsu='1m'}
12465                 : ${mansectform='4'}
12466                 ;;
12467     *-*-isc*)
12468                 OSDEFS="${OSDEFS} -D_ISC"
12469                 LIB_CRYPT=1
12470                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12471                 LIBS="${LIBS} -lcrypt"
12472
12473                 shadow_funcs="getspnam"
12474                 shadow_libs="-lsec"
12475
12476                 : ${mansectsu='1m'}
12477                 : ${mansectform='4'}
12478                 ;;
12479     *-*-sco*|*-sco-*)
12480                 shadow_funcs="getprpwnam"
12481                 shadow_libs="-lprot -lx"
12482                 : ${mansectsu='1m'}
12483                 : ${mansectform='4'}
12484                 ;;
12485     m88k-motorola-sysv*)
12486                 # motorolla's cc (a variant of gcc) does -O but not -O2
12487                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12488                 : ${mansectsu='1m'}
12489                 : ${mansectform='4'}
12490                 ;;
12491     *-sequent-sysv*)
12492                 shadow_funcs="getspnam"
12493                 shadow_libs="-lsec"
12494                 : ${mansectsu='1m'}
12495                 : ${mansectform='4'}
12496                 : ${with_rpath='yes'}
12497                 ;;
12498     *-ncr-sysv4*|*-ncr-sysvr4*)
12499                 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
12500 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
12501 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504   ac_check_lib_save_LIBS=$LIBS
12505 LIBS="-lc89  $LIBS"
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512
12513 /* Override any GCC internal prototype to avoid an error.
12514    Use char because int might match the return type of a GCC
12515    builtin and then its argument prototype would still apply.  */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 char strcasecmp ();
12520 int
12521 main ()
12522 {
12523 return strcasecmp ();
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (ac_try="$ac_link"
12530 case "(($ac_try" in
12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532   *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535   (eval "$ac_link") 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } && {
12542          test -z "$ac_c_werror_flag" ||
12543          test ! -s conftest.err
12544        } && test -s conftest$ac_exeext &&
12545        $as_test_x conftest$ac_exeext; then
12546   ac_cv_lib_c89_strcasecmp=yes
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551         ac_cv_lib_c89_strcasecmp=no
12552 fi
12553
12554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12555       conftest$ac_exeext conftest.$ac_ext
12556 LIBS=$ac_check_lib_save_LIBS
12557 fi
12558 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
12559 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
12560 if test $ac_cv_lib_c89_strcasecmp = yes; then
12561   cat >>confdefs.h <<\_ACEOF
12562 #define HAVE_STRCASECMP 1
12563 _ACEOF
12564  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
12565 fi
12566
12567                 : ${mansectsu='1m'}
12568                 : ${mansectform='4'}
12569                 : ${with_rpath='yes'}
12570                 ;;
12571     *-ccur-sysv4*|*-ccur-sysvr4*)
12572                 LIBS="${LIBS} -lgen"
12573                 SUDO_LIBS="${SUDO_LIBS} -lgen"
12574                 : ${mansectsu='1m'}
12575                 : ${mansectform='4'}
12576                 : ${with_rpath='yes'}
12577                 ;;
12578     *-*-bsdi*)
12579                 SKIP_SETREUID=yes
12580                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
12581                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
12582                     case "$OSMAJOR" in
12583                         2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
12584 echo "$as_me: using shlicc as CC" >&6;}
12585                                 ac_cv_prog_CC=shlicc
12586                                 CC="$ac_cv_prog_CC"
12587                                 ;;
12588                     esac
12589                 fi
12590                 # Check for newer BSD auth API (just check for >= 3.0?)
12591                 if test -z "$with_bsdauth"; then
12592
12593 for ac_func in auth_challenge
12594 do
12595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12599   echo $ECHO_N "(cached) $ECHO_C" >&6
12600 else
12601   cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12609 #define $ac_func innocuous_$ac_func
12610
12611 /* System header to define __stub macros and hopefully few prototypes,
12612     which can conflict with char $ac_func (); below.
12613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12614     <limits.h> exists even on freestanding compilers.  */
12615
12616 #ifdef __STDC__
12617 # include <limits.h>
12618 #else
12619 # include <assert.h>
12620 #endif
12621
12622 #undef $ac_func
12623
12624 /* Override any GCC internal prototype to avoid an error.
12625    Use char because int might match the return type of a GCC
12626    builtin and then its argument prototype would still apply.  */
12627 #ifdef __cplusplus
12628 extern "C"
12629 #endif
12630 char $ac_func ();
12631 /* The GNU C library defines this for functions which it implements
12632     to always fail with ENOSYS.  Some functions are actually named
12633     something starting with __ and the normal name is an alias.  */
12634 #if defined __stub_$ac_func || defined __stub___$ac_func
12635 choke me
12636 #endif
12637
12638 int
12639 main ()
12640 {
12641 return $ac_func ();
12642   ;
12643   return 0;
12644 }
12645 _ACEOF
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (ac_try="$ac_link"
12648 case "(($ac_try" in
12649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650   *) ac_try_echo=$ac_try;;
12651 esac
12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653   (eval "$ac_link") 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } && {
12660          test -z "$ac_c_werror_flag" ||
12661          test ! -s conftest.err
12662        } && test -s conftest$ac_exeext &&
12663        $as_test_x conftest$ac_exeext; then
12664   eval "$as_ac_var=yes"
12665 else
12666   echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12668
12669         eval "$as_ac_var=no"
12670 fi
12671
12672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12673       conftest$ac_exeext conftest.$ac_ext
12674 fi
12675 ac_res=`eval echo '${'$as_ac_var'}'`
12676                { echo "$as_me:$LINENO: result: $ac_res" >&5
12677 echo "${ECHO_T}$ac_res" >&6; }
12678 if test `eval echo '${'$as_ac_var'}'` = yes; then
12679   cat >>confdefs.h <<_ACEOF
12680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12681 _ACEOF
12682  AUTH_EXCL_DEF="BSD_AUTH"
12683 fi
12684 done
12685
12686                 fi
12687                 ;;
12688     *-*-freebsd*)
12689                 # FreeBSD has a real setreuid(2) starting with 2.1 and
12690                 # backported to 2.0.5.  We just take 2.1 and above...
12691                 case "$OSREV" in
12692                 0.*|1.*|2.0*)
12693                     SKIP_SETREUID=yes
12694                     ;;
12695                 esac
12696                 if test "$with_skey" = "yes"; then
12697                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12698                 fi
12699                 CHECKSHADOW="false"
12700                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12701                 : ${with_logincap='maybe'}
12702                 ;;
12703     *-*-*openbsd*)
12704                 # OpenBSD has a real setreuid(2) starting with 3.3 but
12705                 # we will use setreuid(2) instead.
12706                 SKIP_SETREUID=yes
12707                 CHECKSHADOW="false"
12708                 # OpenBSD >= 3.0 supports BSD auth
12709                 if test -z "$with_bsdauth"; then
12710                     case "$OSREV" in
12711                     0-2.*)
12712                         ;;
12713                     *)
12714                         AUTH_EXCL_DEF="BSD_AUTH"
12715                         ;;
12716                     esac
12717                 fi
12718                 : ${with_logincap='maybe'}
12719                 ;;
12720     *-*-*netbsd*)
12721                 # NetBSD has a real setreuid(2) starting with 1.3.2
12722                 case "$OSREV" in
12723                 0.9*|1.012*|1.3|1.3.1)
12724                     SKIP_SETREUID=yes
12725                     ;;
12726                 esac
12727                 CHECKSHADOW="false"
12728                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12729                 : ${with_logincap='maybe'}
12730                 ;;
12731     *-*-dragonfly*)
12732                 if test "$with_skey" = "yes"; then
12733                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12734                 fi
12735                 CHECKSHADOW="false"
12736                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12737                 : ${with_logincap='yes'}
12738                 ;;
12739     *-*-*bsd*)
12740                 CHECKSHADOW="false"
12741                 ;;
12742     *-*-darwin*)
12743                 SKIP_SETREUID=yes
12744                 CHECKSHADOW="false"
12745                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12746                 : ${with_logincap='yes'}
12747                 ;;
12748     *-*-nextstep*)
12749                 # lockf() on is broken on the NeXT -- use flock instead
12750                 ac_cv_func_lockf=no
12751                 ac_cv_func_flock=yes
12752                 ;;
12753     *-*-*sysv4*)
12754                 : ${mansectsu='1m'}
12755                 : ${mansectform='4'}
12756                 : ${with_rpath='yes'}
12757                 ;;
12758     *-*-sysv*)
12759                 : ${mansectsu='1m'}
12760                 : ${mansectform='4'}
12761                 ;;
12762     *-gnu*)
12763                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12764                 ;;
12765 esac
12766
12767 AUTH_REG=${AUTH_REG# }
12768 AUTH_EXCL=${AUTH_EXCL# }
12769 if test -n "$AUTH_EXCL"; then
12770     set -- $AUTH_EXCL
12771     if test $# != 1; then
12772         { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12773 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12774    { (exit 1); exit 1; }; }
12775     fi
12776     if test -n "$AUTH_REG"; then
12777         { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12778 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12779    { (exit 1); exit 1; }; }
12780     fi
12781 fi
12782 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12783     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12784 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12785    { (exit 1); exit 1; }; }
12786 fi
12787
12788 : ${mansectsu='8'}
12789 : ${mansectform='5'}
12790
12791 if test -n "$with_libpath"; then
12792     for i in ${with_libpath}; do
12793
12794     if test X"$with_rpath" = X"yes"; then
12795         LDFLAGS="${LDFLAGS} -L$i -R$i"
12796     else
12797         LDFLAGS="${LDFLAGS} -L$i"
12798     fi
12799     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12800         blibpath_add="${blibpath_add}:$i"
12801     fi
12802
12803     done
12804 fi
12805 if test -n "$with_libraries"; then
12806     for i in ${with_libraries}; do
12807         case $i in
12808             -l*)        ;;
12809             *.a)        ;;
12810             *.o)        ;;
12811             *)  i="-l${i}";;
12812         esac
12813         LIBS="${LIBS} ${i}"
12814     done
12815 fi
12816
12817 if test $ac_cv_c_compiler_gnu = yes; then
12818     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12819 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12820 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12821   echo $ECHO_N "(cached) $ECHO_C" >&6
12822 else
12823     ac_pattern="Autoconf.*'x'"
12824   cat >conftest.$ac_ext <<_ACEOF
12825 /* confdefs.h.  */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h.  */
12830 #include <sgtty.h>
12831 Autoconf TIOCGETP
12832 _ACEOF
12833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12834   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12835   ac_cv_prog_gcc_traditional=yes
12836 else
12837   ac_cv_prog_gcc_traditional=no
12838 fi
12839 rm -f conftest*
12840
12841
12842   if test $ac_cv_prog_gcc_traditional = no; then
12843     cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h.  */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h.  */
12849 #include <termio.h>
12850 Autoconf TCGETA
12851 _ACEOF
12852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12853   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12854   ac_cv_prog_gcc_traditional=yes
12855 fi
12856 rm -f conftest*
12857
12858   fi
12859 fi
12860 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12861 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12862   if test $ac_cv_prog_gcc_traditional = yes; then
12863     CC="$CC -traditional"
12864   fi
12865 fi
12866
12867 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12868 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12869 if test "${ac_cv_c_const+set}" = set; then
12870   echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872   cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878
12879 int
12880 main ()
12881 {
12882 /* FIXME: Include the comments suggested by Paul. */
12883 #ifndef __cplusplus
12884   /* Ultrix mips cc rejects this.  */
12885   typedef int charset[2];
12886   const charset cs;
12887   /* SunOS 4.1.1 cc rejects this.  */
12888   char const *const *pcpcc;
12889   char **ppc;
12890   /* NEC SVR4.0.2 mips cc rejects this.  */
12891   struct point {int x, y;};
12892   static struct point const zero = {0,0};
12893   /* AIX XL C 1.02.0.0 rejects this.
12894      It does not let you subtract one const X* pointer from another in
12895      an arm of an if-expression whose if-part is not a constant
12896      expression */
12897   const char *g = "string";
12898   pcpcc = &g + (g ? g-g : 0);
12899   /* HPUX 7.0 cc rejects these. */
12900   ++pcpcc;
12901   ppc = (char**) pcpcc;
12902   pcpcc = (char const *const *) ppc;
12903   { /* SCO 3.2v4 cc rejects this.  */
12904     char *t;
12905     char const *s = 0 ? (char *) 0 : (char const *) 0;
12906
12907     *t++ = 0;
12908     if (s) return 0;
12909   }
12910   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12911     int x[] = {25, 17};
12912     const int *foo = &x[0];
12913     ++foo;
12914   }
12915   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12916     typedef const int *iptr;
12917     iptr p = 0;
12918     ++p;
12919   }
12920   { /* AIX XL C 1.02.0.0 rejects this saying
12921        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12922     struct s { int j; const int *ap[3]; };
12923     struct s *b; b->j = 5;
12924   }
12925   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12926     const int foo = 10;
12927     if (!foo) return 0;
12928   }
12929   return !cs[0] && !zero.x;
12930 #endif
12931
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 rm -f conftest.$ac_objext
12937 if { (ac_try="$ac_compile"
12938 case "(($ac_try" in
12939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940   *) ac_try_echo=$ac_try;;
12941 esac
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943   (eval "$ac_compile") 2>conftest.er1
12944   ac_status=$?
12945   grep -v '^ *+' conftest.er1 >conftest.err
12946   rm -f conftest.er1
12947   cat conftest.err >&5
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); } && {
12950          test -z "$ac_c_werror_flag" ||
12951          test ! -s conftest.err
12952        } && test -s conftest.$ac_objext; then
12953   ac_cv_c_const=yes
12954 else
12955   echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12957
12958         ac_cv_c_const=no
12959 fi
12960
12961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12962 fi
12963 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12964 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12965 if test $ac_cv_c_const = no; then
12966
12967 cat >>confdefs.h <<\_ACEOF
12968 #define const
12969 _ACEOF
12970
12971 fi
12972
12973 { echo "$as_me:$LINENO: checking for working volatile" >&5
12974 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12975 if test "${ac_cv_c_volatile+set}" = set; then
12976   echo $ECHO_N "(cached) $ECHO_C" >&6
12977 else
12978   cat >conftest.$ac_ext <<_ACEOF
12979 /* confdefs.h.  */
12980 _ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h.  */
12984
12985 int
12986 main ()
12987 {
12988
12989 volatile int x;
12990 int * volatile y = (int *) 0;
12991 return !x && !y;
12992   ;
12993   return 0;
12994 }
12995 _ACEOF
12996 rm -f conftest.$ac_objext
12997 if { (ac_try="$ac_compile"
12998 case "(($ac_try" in
12999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000   *) ac_try_echo=$ac_try;;
13001 esac
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003   (eval "$ac_compile") 2>conftest.er1
13004   ac_status=$?
13005   grep -v '^ *+' conftest.er1 >conftest.err
13006   rm -f conftest.er1
13007   cat conftest.err >&5
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); } && {
13010          test -z "$ac_c_werror_flag" ||
13011          test ! -s conftest.err
13012        } && test -s conftest.$ac_objext; then
13013   ac_cv_c_volatile=yes
13014 else
13015   echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13017
13018         ac_cv_c_volatile=no
13019 fi
13020
13021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022 fi
13023 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13024 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13025 if test $ac_cv_c_volatile = no; then
13026
13027 cat >>confdefs.h <<\_ACEOF
13028 #define volatile
13029 _ACEOF
13030
13031 fi
13032
13033 for ac_prog in 'bison -y' byacc
13034 do
13035   # Extract the first word of "$ac_prog", so it can be a program name with args.
13036 set dummy $ac_prog; ac_word=$2
13037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13039 if test "${ac_cv_prog_YACC+set}" = set; then
13040   echo $ECHO_N "(cached) $ECHO_C" >&6
13041 else
13042   if test -n "$YACC"; then
13043   ac_cv_prog_YACC="$YACC" # Let the user override the test.
13044 else
13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13047 do
13048   IFS=$as_save_IFS
13049   test -z "$as_dir" && as_dir=.
13050   for ac_exec_ext in '' $ac_executable_extensions; do
13051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13052     ac_cv_prog_YACC="$ac_prog"
13053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13054     break 2
13055   fi
13056 done
13057 done
13058 IFS=$as_save_IFS
13059
13060 fi
13061 fi
13062 YACC=$ac_cv_prog_YACC
13063 if test -n "$YACC"; then
13064   { echo "$as_me:$LINENO: result: $YACC" >&5
13065 echo "${ECHO_T}$YACC" >&6; }
13066 else
13067   { echo "$as_me:$LINENO: result: no" >&5
13068 echo "${ECHO_T}no" >&6; }
13069 fi
13070
13071
13072   test -n "$YACC" && break
13073 done
13074 test -n "$YACC" || YACC="yacc"
13075
13076 # Extract the first word of "flex", so it can be a program name with args.
13077 set dummy flex; ac_word=$2
13078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13080 if test "${ac_cv_path_FLEX+set}" = set; then
13081   echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083   case $FLEX in
13084   [\\/]* | ?:[\\/]*)
13085   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13086   ;;
13087   *)
13088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13090 do
13091   IFS=$as_save_IFS
13092   test -z "$as_dir" && as_dir=.
13093   for ac_exec_ext in '' $ac_executable_extensions; do
13094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13097     break 2
13098   fi
13099 done
13100 done
13101 IFS=$as_save_IFS
13102
13103   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13104   ;;
13105 esac
13106 fi
13107 FLEX=$ac_cv_path_FLEX
13108 if test -n "$FLEX"; then
13109   { echo "$as_me:$LINENO: result: $FLEX" >&5
13110 echo "${ECHO_T}$FLEX" >&6; }
13111 else
13112   { echo "$as_me:$LINENO: result: no" >&5
13113 echo "${ECHO_T}no" >&6; }
13114 fi
13115
13116
13117 { echo "$as_me:$LINENO: checking for mv" >&5
13118 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
13119 if test -f "/usr/bin/mv"; then
13120     { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
13121 echo "${ECHO_T}/usr/bin/mv" >&6; }
13122     cat >>confdefs.h <<\EOF
13123 #define _PATH_MV "/usr/bin/mv"
13124 EOF
13125
13126 elif test -f "/bin/mv"; then
13127     { echo "$as_me:$LINENO: result: /bin/mv" >&5
13128 echo "${ECHO_T}/bin/mv" >&6; }
13129     cat >>confdefs.h <<\EOF
13130 #define _PATH_MV "/bin/mv"
13131 EOF
13132
13133 elif test -f "/usr/ucb/mv"; then
13134     { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
13135 echo "${ECHO_T}/usr/ucb/mv" >&6; }
13136     cat >>confdefs.h <<\EOF
13137 #define _PATH_MV "/usr/ucb/mv"
13138 EOF
13139
13140 elif test -f "/usr/sbin/mv"; then
13141     { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
13142 echo "${ECHO_T}/usr/sbin/mv" >&6; }
13143     cat >>confdefs.h <<\EOF
13144 #define _PATH_MV "/usr/sbin/mv"
13145 EOF
13146
13147 else
13148     { echo "$as_me:$LINENO: result: not found" >&5
13149 echo "${ECHO_T}not found" >&6; }
13150 fi
13151
13152 { echo "$as_me:$LINENO: checking for bourne shell" >&5
13153 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
13154 if test -f "/bin/sh"; then
13155     { echo "$as_me:$LINENO: result: /bin/sh" >&5
13156 echo "${ECHO_T}/bin/sh" >&6; }
13157     cat >>confdefs.h <<\EOF
13158 #define _PATH_BSHELL "/bin/sh"
13159 EOF
13160
13161 elif test -f "/usr/bin/sh"; then
13162     { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
13163 echo "${ECHO_T}/usr/bin/sh" >&6; }
13164     cat >>confdefs.h <<\EOF
13165 #define _PATH_BSHELL "/usr/bin/sh"
13166 EOF
13167
13168 elif test -f "/sbin/sh"; then
13169     { echo "$as_me:$LINENO: result: /sbin/sh" >&5
13170 echo "${ECHO_T}/sbin/sh" >&6; }
13171     cat >>confdefs.h <<\EOF
13172 #define _PATH_BSHELL "/sbin/sh"
13173 EOF
13174
13175 elif test -f "/usr/sbin/sh"; then
13176     { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
13177 echo "${ECHO_T}/usr/sbin/sh" >&6; }
13178     cat >>confdefs.h <<\EOF
13179 #define _PATH_BSHELL "/usr/sbin/sh"
13180 EOF
13181
13182 elif test -f "/bin/ksh"; then
13183     { echo "$as_me:$LINENO: result: /bin/ksh" >&5
13184 echo "${ECHO_T}/bin/ksh" >&6; }
13185     cat >>confdefs.h <<\EOF
13186 #define _PATH_BSHELL "/bin/ksh"
13187 EOF
13188
13189 elif test -f "/usr/bin/ksh"; then
13190     { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
13191 echo "${ECHO_T}/usr/bin/ksh" >&6; }
13192     cat >>confdefs.h <<\EOF
13193 #define _PATH_BSHELL "/usr/bin/ksh"
13194 EOF
13195
13196 elif test -f "/bin/bash"; then
13197     { echo "$as_me:$LINENO: result: /bin/bash" >&5
13198 echo "${ECHO_T}/bin/bash" >&6; }
13199     cat >>confdefs.h <<\EOF
13200 #define _PATH_BSHELL "/bin/bash"
13201 EOF
13202
13203 elif test -f "/usr/bin/bash"; then
13204     { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
13205 echo "${ECHO_T}/usr/bin/bash" >&6; }
13206     cat >>confdefs.h <<\EOF
13207 #define _PATH_BSHELL "/usr/bin/bash"
13208 EOF
13209
13210 else
13211     { echo "$as_me:$LINENO: result: not found" >&5
13212 echo "${ECHO_T}not found" >&6; }
13213 fi
13214
13215 if test -z "$with_sendmail"; then
13216     { echo "$as_me:$LINENO: checking for sendmail" >&5
13217 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
13218 if test -f "/usr/sbin/sendmail"; then
13219     { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
13220 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
13221     cat >>confdefs.h <<\EOF
13222 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
13223 EOF
13224
13225 elif test -f "/usr/lib/sendmail"; then
13226     { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
13227 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
13228     cat >>confdefs.h <<\EOF
13229 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
13230 EOF
13231
13232 elif test -f "/usr/etc/sendmail"; then
13233     { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
13234 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
13235     cat >>confdefs.h <<\EOF
13236 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
13237 EOF
13238
13239 elif test -f "/usr/ucblib/sendmail"; then
13240     { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
13241 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
13242     cat >>confdefs.h <<\EOF
13243 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
13244 EOF
13245
13246 elif test -f "/usr/local/lib/sendmail"; then
13247     { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
13248 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
13249     cat >>confdefs.h <<\EOF
13250 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
13251 EOF
13252
13253 elif test -f "/usr/local/bin/sendmail"; then
13254     { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
13255 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
13256     cat >>confdefs.h <<\EOF
13257 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
13258 EOF
13259
13260 else
13261     { echo "$as_me:$LINENO: result: not found" >&5
13262 echo "${ECHO_T}not found" >&6; }
13263 fi
13264
13265 fi
13266 if test -z "$with_editor"; then
13267     { echo "$as_me:$LINENO: checking for vi" >&5
13268 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
13269 if test -f "/usr/bin/vi"; then
13270     { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
13271 echo "${ECHO_T}/usr/bin/vi" >&6; }
13272     cat >>confdefs.h <<\EOF
13273 #define _PATH_VI "/usr/bin/vi"
13274 EOF
13275
13276 elif test -f "/usr/ucb/vi"; then
13277     { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
13278 echo "${ECHO_T}/usr/ucb/vi" >&6; }
13279     cat >>confdefs.h <<\EOF
13280 #define _PATH_VI "/usr/ucb/vi"
13281 EOF
13282
13283 elif test -f "/usr/bsd/vi"; then
13284     { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
13285 echo "${ECHO_T}/usr/bsd/vi" >&6; }
13286     cat >>confdefs.h <<\EOF
13287 #define _PATH_VI "/usr/bsd/vi"
13288 EOF
13289
13290 elif test -f "/bin/vi"; then
13291     { echo "$as_me:$LINENO: result: /bin/vi" >&5
13292 echo "${ECHO_T}/bin/vi" >&6; }
13293     cat >>confdefs.h <<\EOF
13294 #define _PATH_VI "/bin/vi"
13295 EOF
13296
13297 elif test -f "/usr/local/bin/vi"; then
13298     { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
13299 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
13300     cat >>confdefs.h <<\EOF
13301 #define _PATH_VI "/usr/local/bin/vi"
13302 EOF
13303
13304 else
13305     { echo "$as_me:$LINENO: result: not found" >&5
13306 echo "${ECHO_T}not found" >&6; }
13307 fi
13308
13309 fi
13310 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13311 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
13312 if test "${ac_cv_header_stdc+set}" = set; then
13313   echo $ECHO_N "(cached) $ECHO_C" >&6
13314 else
13315   cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h.  */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h.  */
13321 #include <stdlib.h>
13322 #include <stdarg.h>
13323 #include <string.h>
13324 #include <float.h>
13325
13326 int
13327 main ()
13328 {
13329
13330   ;
13331   return 0;
13332 }
13333 _ACEOF
13334 rm -f conftest.$ac_objext
13335 if { (ac_try="$ac_compile"
13336 case "(($ac_try" in
13337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338   *) ac_try_echo=$ac_try;;
13339 esac
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341   (eval "$ac_compile") 2>conftest.er1
13342   ac_status=$?
13343   grep -v '^ *+' conftest.er1 >conftest.err
13344   rm -f conftest.er1
13345   cat conftest.err >&5
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); } && {
13348          test -z "$ac_c_werror_flag" ||
13349          test ! -s conftest.err
13350        } && test -s conftest.$ac_objext; then
13351   ac_cv_header_stdc=yes
13352 else
13353   echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356         ac_cv_header_stdc=no
13357 fi
13358
13359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360
13361 if test $ac_cv_header_stdc = yes; then
13362   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13363   cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h.  */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h.  */
13369 #include <string.h>
13370
13371 _ACEOF
13372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13373   $EGREP "memchr" >/dev/null 2>&1; then
13374   :
13375 else
13376   ac_cv_header_stdc=no
13377 fi
13378 rm -f conftest*
13379
13380 fi
13381
13382 if test $ac_cv_header_stdc = yes; then
13383   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13384   cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h.  */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h.  */
13390 #include <stdlib.h>
13391
13392 _ACEOF
13393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13394   $EGREP "free" >/dev/null 2>&1; then
13395   :
13396 else
13397   ac_cv_header_stdc=no
13398 fi
13399 rm -f conftest*
13400
13401 fi
13402
13403 if test $ac_cv_header_stdc = yes; then
13404   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13405   if test "$cross_compiling" = yes; then
13406   :
13407 else
13408   cat >conftest.$ac_ext <<_ACEOF
13409 /* confdefs.h.  */
13410 _ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h.  */
13414 #include <ctype.h>
13415 #include <stdlib.h>
13416 #if ((' ' & 0x0FF) == 0x020)
13417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13419 #else
13420 # define ISLOWER(c) \
13421                    (('a' <= (c) && (c) <= 'i') \
13422                      || ('j' <= (c) && (c) <= 'r') \
13423                      || ('s' <= (c) && (c) <= 'z'))
13424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13425 #endif
13426
13427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13428 int
13429 main ()
13430 {
13431   int i;
13432   for (i = 0; i < 256; i++)
13433     if (XOR (islower (i), ISLOWER (i))
13434         || toupper (i) != TOUPPER (i))
13435       return 2;
13436   return 0;
13437 }
13438 _ACEOF
13439 rm -f conftest$ac_exeext
13440 if { (ac_try="$ac_link"
13441 case "(($ac_try" in
13442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443   *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446   (eval "$ac_link") 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13450   { (case "(($ac_try" in
13451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452   *) ac_try_echo=$ac_try;;
13453 esac
13454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455   (eval "$ac_try") 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; }; then
13459   :
13460 else
13461   echo "$as_me: program exited with status $ac_status" >&5
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465 ( exit $ac_status )
13466 ac_cv_header_stdc=no
13467 fi
13468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13469 fi
13470
13471
13472 fi
13473 fi
13474 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13475 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13476 if test $ac_cv_header_stdc = yes; then
13477
13478 cat >>confdefs.h <<\_ACEOF
13479 #define STDC_HEADERS 1
13480 _ACEOF
13481
13482 fi
13483
13484
13485
13486
13487
13488
13489 ac_header_dirent=no
13490 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13491   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13492 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13493 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13495   echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13497   cat >conftest.$ac_ext <<_ACEOF
13498 /* confdefs.h.  */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h.  */
13503 #include <sys/types.h>
13504 #include <$ac_hdr>
13505
13506 int
13507 main ()
13508 {
13509 if ((DIR *) 0)
13510 return 0;
13511   ;
13512   return 0;
13513 }
13514 _ACEOF
13515 rm -f conftest.$ac_objext
13516 if { (ac_try="$ac_compile"
13517 case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522   (eval "$ac_compile") 2>conftest.er1
13523   ac_status=$?
13524   grep -v '^ *+' conftest.er1 >conftest.err
13525   rm -f conftest.er1
13526   cat conftest.err >&5
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); } && {
13529          test -z "$ac_c_werror_flag" ||
13530          test ! -s conftest.err
13531        } && test -s conftest.$ac_objext; then
13532   eval "$as_ac_Header=yes"
13533 else
13534   echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13536
13537         eval "$as_ac_Header=no"
13538 fi
13539
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541 fi
13542 ac_res=`eval echo '${'$as_ac_Header'}'`
13543                { echo "$as_me:$LINENO: result: $ac_res" >&5
13544 echo "${ECHO_T}$ac_res" >&6; }
13545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13546   cat >>confdefs.h <<_ACEOF
13547 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13548 _ACEOF
13549
13550 ac_header_dirent=$ac_hdr; break
13551 fi
13552
13553 done
13554 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13555 if test $ac_header_dirent = dirent.h; then
13556   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13557 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13558 if test "${ac_cv_search_opendir+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561   ac_func_search_save_LIBS=$LIBS
13562 cat >conftest.$ac_ext <<_ACEOF
13563 /* confdefs.h.  */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h.  */
13568
13569 /* Override any GCC internal prototype to avoid an error.
13570    Use char because int might match the return type of a GCC
13571    builtin and then its argument prototype would still apply.  */
13572 #ifdef __cplusplus
13573 extern "C"
13574 #endif
13575 char opendir ();
13576 int
13577 main ()
13578 {
13579 return opendir ();
13580   ;
13581   return 0;
13582 }
13583 _ACEOF
13584 for ac_lib in '' dir; do
13585   if test -z "$ac_lib"; then
13586     ac_res="none required"
13587   else
13588     ac_res=-l$ac_lib
13589     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13590   fi
13591   rm -f conftest.$ac_objext conftest$ac_exeext
13592 if { (ac_try="$ac_link"
13593 case "(($ac_try" in
13594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595   *) ac_try_echo=$ac_try;;
13596 esac
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598   (eval "$ac_link") 2>conftest.er1
13599   ac_status=$?
13600   grep -v '^ *+' conftest.er1 >conftest.err
13601   rm -f conftest.er1
13602   cat conftest.err >&5
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); } && {
13605          test -z "$ac_c_werror_flag" ||
13606          test ! -s conftest.err
13607        } && test -s conftest$ac_exeext &&
13608        $as_test_x conftest$ac_exeext; then
13609   ac_cv_search_opendir=$ac_res
13610 else
13611   echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13613
13614
13615 fi
13616
13617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13618       conftest$ac_exeext
13619   if test "${ac_cv_search_opendir+set}" = set; then
13620   break
13621 fi
13622 done
13623 if test "${ac_cv_search_opendir+set}" = set; then
13624   :
13625 else
13626   ac_cv_search_opendir=no
13627 fi
13628 rm conftest.$ac_ext
13629 LIBS=$ac_func_search_save_LIBS
13630 fi
13631 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13632 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13633 ac_res=$ac_cv_search_opendir
13634 if test "$ac_res" != no; then
13635   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13636
13637 fi
13638
13639 else
13640   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13641 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13642 if test "${ac_cv_search_opendir+set}" = set; then
13643   echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645   ac_func_search_save_LIBS=$LIBS
13646 cat >conftest.$ac_ext <<_ACEOF
13647 /* confdefs.h.  */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h.  */
13652
13653 /* Override any GCC internal prototype to avoid an error.
13654    Use char because int might match the return type of a GCC
13655    builtin and then its argument prototype would still apply.  */
13656 #ifdef __cplusplus
13657 extern "C"
13658 #endif
13659 char opendir ();
13660 int
13661 main ()
13662 {
13663 return opendir ();
13664   ;
13665   return 0;
13666 }
13667 _ACEOF
13668 for ac_lib in '' x; do
13669   if test -z "$ac_lib"; then
13670     ac_res="none required"
13671   else
13672     ac_res=-l$ac_lib
13673     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13674   fi
13675   rm -f conftest.$ac_objext conftest$ac_exeext
13676 if { (ac_try="$ac_link"
13677 case "(($ac_try" in
13678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679   *) ac_try_echo=$ac_try;;
13680 esac
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682   (eval "$ac_link") 2>conftest.er1
13683   ac_status=$?
13684   grep -v '^ *+' conftest.er1 >conftest.err
13685   rm -f conftest.er1
13686   cat conftest.err >&5
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); } && {
13689          test -z "$ac_c_werror_flag" ||
13690          test ! -s conftest.err
13691        } && test -s conftest$ac_exeext &&
13692        $as_test_x conftest$ac_exeext; then
13693   ac_cv_search_opendir=$ac_res
13694 else
13695   echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13697
13698
13699 fi
13700
13701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13702       conftest$ac_exeext
13703   if test "${ac_cv_search_opendir+set}" = set; then
13704   break
13705 fi
13706 done
13707 if test "${ac_cv_search_opendir+set}" = set; then
13708   :
13709 else
13710   ac_cv_search_opendir=no
13711 fi
13712 rm conftest.$ac_ext
13713 LIBS=$ac_func_search_save_LIBS
13714 fi
13715 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13716 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13717 ac_res=$ac_cv_search_opendir
13718 if test "$ac_res" != no; then
13719   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13720
13721 fi
13722
13723 fi
13724
13725 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13727 if test "${ac_cv_header_time+set}" = set; then
13728   echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730   cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h.  */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h.  */
13736 #include <sys/types.h>
13737 #include <sys/time.h>
13738 #include <time.h>
13739
13740 int
13741 main ()
13742 {
13743 if ((struct tm *) 0)
13744 return 0;
13745   ;
13746   return 0;
13747 }
13748 _ACEOF
13749 rm -f conftest.$ac_objext
13750 if { (ac_try="$ac_compile"
13751 case "(($ac_try" in
13752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753   *) ac_try_echo=$ac_try;;
13754 esac
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756   (eval "$ac_compile") 2>conftest.er1
13757   ac_status=$?
13758   grep -v '^ *+' conftest.er1 >conftest.err
13759   rm -f conftest.er1
13760   cat conftest.err >&5
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); } && {
13763          test -z "$ac_c_werror_flag" ||
13764          test ! -s conftest.err
13765        } && test -s conftest.$ac_objext; then
13766   ac_cv_header_time=yes
13767 else
13768   echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771         ac_cv_header_time=no
13772 fi
13773
13774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 fi
13776 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13777 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13778 if test $ac_cv_header_time = yes; then
13779
13780 cat >>confdefs.h <<\_ACEOF
13781 #define TIME_WITH_SYS_TIME 1
13782 _ACEOF
13783
13784 fi
13785
13786
13787
13788
13789
13790
13791
13792
13793 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13794 do
13795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13797   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 fi
13802 ac_res=`eval echo '${'$as_ac_Header'}'`
13803                { echo "$as_me:$LINENO: result: $ac_res" >&5
13804 echo "${ECHO_T}$ac_res" >&6; }
13805 else
13806   # Is the header compilable?
13807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815 $ac_includes_default
13816 #include <$ac_header>
13817 _ACEOF
13818 rm -f conftest.$ac_objext
13819 if { (ac_try="$ac_compile"
13820 case "(($ac_try" in
13821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822   *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825   (eval "$ac_compile") 2>conftest.er1
13826   ac_status=$?
13827   grep -v '^ *+' conftest.er1 >conftest.err
13828   rm -f conftest.er1
13829   cat conftest.err >&5
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); } && {
13832          test -z "$ac_c_werror_flag" ||
13833          test ! -s conftest.err
13834        } && test -s conftest.$ac_objext; then
13835   ac_header_compiler=yes
13836 else
13837   echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840         ac_header_compiler=no
13841 fi
13842
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13845 echo "${ECHO_T}$ac_header_compiler" >&6; }
13846
13847 # Is the header present?
13848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13850 cat >conftest.$ac_ext <<_ACEOF
13851 /* confdefs.h.  */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h.  */
13856 #include <$ac_header>
13857 _ACEOF
13858 if { (ac_try="$ac_cpp conftest.$ac_ext"
13859 case "(($ac_try" in
13860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861   *) ac_try_echo=$ac_try;;
13862 esac
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13865   ac_status=$?
13866   grep -v '^ *+' conftest.er1 >conftest.err
13867   rm -f conftest.er1
13868   cat conftest.err >&5
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); } >/dev/null && {
13871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13872          test ! -s conftest.err
13873        }; then
13874   ac_header_preproc=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879   ac_header_preproc=no
13880 fi
13881
13882 rm -f conftest.err conftest.$ac_ext
13883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13884 echo "${ECHO_T}$ac_header_preproc" >&6; }
13885
13886 # So?  What about this header?
13887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13888   yes:no: )
13889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13893     ac_header_preproc=yes
13894     ;;
13895   no:yes:* )
13896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13898     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13899 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13900     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13902     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13903 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13906     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13908     ( cat <<\_ASBOX
13909 ## --------------------------------------- ##
13910 ## Report this to http://www.sudo.ws/bugs/ ##
13911 ## --------------------------------------- ##
13912 _ASBOX
13913      ) | sed "s/^/$as_me: WARNING:     /" >&2
13914     ;;
13915 esac
13916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13919   echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921   eval "$as_ac_Header=\$ac_header_preproc"
13922 fi
13923 ac_res=`eval echo '${'$as_ac_Header'}'`
13924                { echo "$as_me:$LINENO: result: $ac_res" >&5
13925 echo "${ECHO_T}$ac_res" >&6; }
13926
13927 fi
13928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13929   cat >>confdefs.h <<_ACEOF
13930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13931 _ACEOF
13932
13933 fi
13934
13935 done
13936
13937 if test "$OS" != "ultrix"; then
13938     { echo "$as_me:$LINENO: checking POSIX termios" >&5
13939 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13940 if test "${ac_cv_sys_posix_termios+set}" = set; then
13941   echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943   cat >conftest.$ac_ext <<_ACEOF
13944 /* confdefs.h.  */
13945 _ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h.  */
13949 #include <sys/types.h>
13950 #include <unistd.h>
13951 #include <termios.h>
13952
13953 int
13954 main ()
13955 {
13956 /* SunOS 4.0.3 has termios.h but not the library calls.  */
13957    tcgetattr(0, 0);
13958   ;
13959   return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext conftest$ac_exeext
13963 if { (ac_try="$ac_link"
13964 case "(($ac_try" in
13965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966   *) ac_try_echo=$ac_try;;
13967 esac
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969   (eval "$ac_link") 2>conftest.er1
13970   ac_status=$?
13971   grep -v '^ *+' conftest.er1 >conftest.err
13972   rm -f conftest.er1
13973   cat conftest.err >&5
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); } && {
13976          test -z "$ac_c_werror_flag" ||
13977          test ! -s conftest.err
13978        } && test -s conftest$ac_exeext &&
13979        $as_test_x conftest$ac_exeext; then
13980   ac_cv_sys_posix_termios=yes
13981 else
13982   echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13984
13985         ac_cv_sys_posix_termios=no
13986 fi
13987
13988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13989       conftest$ac_exeext conftest.$ac_ext
13990 fi
13991 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13992 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13993
13994     if test "$ac_cv_sys_posix_termios" = "yes"; then
13995         cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_TERMIOS_H 1
13997 _ACEOF
13998
13999     else
14000
14001 for ac_header in termio.h
14002 do
14003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14005   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 fi
14010 ac_res=`eval echo '${'$as_ac_Header'}'`
14011                { echo "$as_me:$LINENO: result: $ac_res" >&5
14012 echo "${ECHO_T}$ac_res" >&6; }
14013 else
14014   # Is the header compilable?
14015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h.  */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h.  */
14023 $ac_includes_default
14024 #include <$ac_header>
14025 _ACEOF
14026 rm -f conftest.$ac_objext
14027 if { (ac_try="$ac_compile"
14028 case "(($ac_try" in
14029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030   *) ac_try_echo=$ac_try;;
14031 esac
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033   (eval "$ac_compile") 2>conftest.er1
14034   ac_status=$?
14035   grep -v '^ *+' conftest.er1 >conftest.err
14036   rm -f conftest.er1
14037   cat conftest.err >&5
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); } && {
14040          test -z "$ac_c_werror_flag" ||
14041          test ! -s conftest.err
14042        } && test -s conftest.$ac_objext; then
14043   ac_header_compiler=yes
14044 else
14045   echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14047
14048         ac_header_compiler=no
14049 fi
14050
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14053 echo "${ECHO_T}$ac_header_compiler" >&6; }
14054
14055 # Is the header present?
14056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064 #include <$ac_header>
14065 _ACEOF
14066 if { (ac_try="$ac_cpp conftest.$ac_ext"
14067 case "(($ac_try" in
14068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069   *) ac_try_echo=$ac_try;;
14070 esac
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14073   ac_status=$?
14074   grep -v '^ *+' conftest.er1 >conftest.err
14075   rm -f conftest.er1
14076   cat conftest.err >&5
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); } >/dev/null && {
14079          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14080          test ! -s conftest.err
14081        }; then
14082   ac_header_preproc=yes
14083 else
14084   echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14086
14087   ac_header_preproc=no
14088 fi
14089
14090 rm -f conftest.err conftest.$ac_ext
14091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14092 echo "${ECHO_T}$ac_header_preproc" >&6; }
14093
14094 # So?  What about this header?
14095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14096   yes:no: )
14097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14101     ac_header_preproc=yes
14102     ;;
14103   no:yes:* )
14104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14106     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14107 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14108     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14110     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14111 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14114     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14116     ( cat <<\_ASBOX
14117 ## --------------------------------------- ##
14118 ## Report this to http://www.sudo.ws/bugs/ ##
14119 ## --------------------------------------- ##
14120 _ASBOX
14121      ) | sed "s/^/$as_me: WARNING:     /" >&2
14122     ;;
14123 esac
14124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14127   echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129   eval "$as_ac_Header=\$ac_header_preproc"
14130 fi
14131 ac_res=`eval echo '${'$as_ac_Header'}'`
14132                { echo "$as_me:$LINENO: result: $ac_res" >&5
14133 echo "${ECHO_T}$ac_res" >&6; }
14134
14135 fi
14136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14137   cat >>confdefs.h <<_ACEOF
14138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14139 _ACEOF
14140
14141 fi
14142
14143 done
14144
14145     fi
14146 fi
14147 if test ${with_logincap-'no'} != "no"; then
14148
14149 for ac_header in login_cap.h
14150 do
14151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14153   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14156   echo $ECHO_N "(cached) $ECHO_C" >&6
14157 fi
14158 ac_res=`eval echo '${'$as_ac_Header'}'`
14159                { echo "$as_me:$LINENO: result: $ac_res" >&5
14160 echo "${ECHO_T}$ac_res" >&6; }
14161 else
14162   # Is the header compilable?
14163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h.  */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h.  */
14171 $ac_includes_default
14172 #include <$ac_header>
14173 _ACEOF
14174 rm -f conftest.$ac_objext
14175 if { (ac_try="$ac_compile"
14176 case "(($ac_try" in
14177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178   *) ac_try_echo=$ac_try;;
14179 esac
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181   (eval "$ac_compile") 2>conftest.er1
14182   ac_status=$?
14183   grep -v '^ *+' conftest.er1 >conftest.err
14184   rm -f conftest.er1
14185   cat conftest.err >&5
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); } && {
14188          test -z "$ac_c_werror_flag" ||
14189          test ! -s conftest.err
14190        } && test -s conftest.$ac_objext; then
14191   ac_header_compiler=yes
14192 else
14193   echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196         ac_header_compiler=no
14197 fi
14198
14199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14201 echo "${ECHO_T}$ac_header_compiler" >&6; }
14202
14203 # Is the header present?
14204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14206 cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h.  */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h.  */
14212 #include <$ac_header>
14213 _ACEOF
14214 if { (ac_try="$ac_cpp conftest.$ac_ext"
14215 case "(($ac_try" in
14216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217   *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14221   ac_status=$?
14222   grep -v '^ *+' conftest.er1 >conftest.err
14223   rm -f conftest.er1
14224   cat conftest.err >&5
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); } >/dev/null && {
14227          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14228          test ! -s conftest.err
14229        }; then
14230   ac_header_preproc=yes
14231 else
14232   echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14234
14235   ac_header_preproc=no
14236 fi
14237
14238 rm -f conftest.err conftest.$ac_ext
14239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14240 echo "${ECHO_T}$ac_header_preproc" >&6; }
14241
14242 # So?  What about this header?
14243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14244   yes:no: )
14245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14249     ac_header_preproc=yes
14250     ;;
14251   no:yes:* )
14252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14264     ( cat <<\_ASBOX
14265 ## --------------------------------------- ##
14266 ## Report this to http://www.sudo.ws/bugs/ ##
14267 ## --------------------------------------- ##
14268 _ASBOX
14269      ) | sed "s/^/$as_me: WARNING:     /" >&2
14270     ;;
14271 esac
14272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   eval "$as_ac_Header=\$ac_header_preproc"
14278 fi
14279 ac_res=`eval echo '${'$as_ac_Header'}'`
14280                { echo "$as_me:$LINENO: result: $ac_res" >&5
14281 echo "${ECHO_T}$ac_res" >&6; }
14282
14283 fi
14284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14285   cat >>confdefs.h <<_ACEOF
14286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14287 _ACEOF
14288  LOGINCAP_USAGE='[-c class|-] '; LCMAN=""
14289         case "$OS" in
14290             freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
14291             ;;
14292         esac
14293
14294 fi
14295
14296 done
14297
14298 fi
14299 if test ${with_project-'no'} != "no"; then
14300     if test "${ac_cv_header_project_h+set}" = set; then
14301   { echo "$as_me:$LINENO: checking for project.h" >&5
14302 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14303 if test "${ac_cv_header_project_h+set}" = set; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 fi
14306 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14307 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14308 else
14309   # Is the header compilable?
14310 { echo "$as_me:$LINENO: checking project.h usability" >&5
14311 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
14312 cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h.  */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h.  */
14318 $ac_includes_default
14319 #include <project.h>
14320 _ACEOF
14321 rm -f conftest.$ac_objext
14322 if { (ac_try="$ac_compile"
14323 case "(($ac_try" in
14324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325   *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328   (eval "$ac_compile") 2>conftest.er1
14329   ac_status=$?
14330   grep -v '^ *+' conftest.er1 >conftest.err
14331   rm -f conftest.er1
14332   cat conftest.err >&5
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); } && {
14335          test -z "$ac_c_werror_flag" ||
14336          test ! -s conftest.err
14337        } && test -s conftest.$ac_objext; then
14338   ac_header_compiler=yes
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343         ac_header_compiler=no
14344 fi
14345
14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14348 echo "${ECHO_T}$ac_header_compiler" >&6; }
14349
14350 # Is the header present?
14351 { echo "$as_me:$LINENO: checking project.h presence" >&5
14352 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
14353 cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h.  */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h.  */
14359 #include <project.h>
14360 _ACEOF
14361 if { (ac_try="$ac_cpp conftest.$ac_ext"
14362 case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14368   ac_status=$?
14369   grep -v '^ *+' conftest.er1 >conftest.err
14370   rm -f conftest.er1
14371   cat conftest.err >&5
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); } >/dev/null && {
14374          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14375          test ! -s conftest.err
14376        }; then
14377   ac_header_preproc=yes
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382   ac_header_preproc=no
14383 fi
14384
14385 rm -f conftest.err conftest.$ac_ext
14386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14387 echo "${ECHO_T}$ac_header_preproc" >&6; }
14388
14389 # So?  What about this header?
14390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14391   yes:no: )
14392     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
14393 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14394     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
14395 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
14396     ac_header_preproc=yes
14397     ;;
14398   no:yes:* )
14399     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
14400 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
14401     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
14402 echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
14403     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
14404 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
14405     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
14406 echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14407     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
14408 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
14409     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
14410 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
14411     ( cat <<\_ASBOX
14412 ## --------------------------------------- ##
14413 ## Report this to http://www.sudo.ws/bugs/ ##
14414 ## --------------------------------------- ##
14415 _ASBOX
14416      ) | sed "s/^/$as_me: WARNING:     /" >&2
14417     ;;
14418 esac
14419 { echo "$as_me:$LINENO: checking for project.h" >&5
14420 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14421 if test "${ac_cv_header_project_h+set}" = set; then
14422   echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424   ac_cv_header_project_h=$ac_header_preproc
14425 fi
14426 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14427 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14428
14429 fi
14430 if test $ac_cv_header_project_h = yes; then
14431   cat >>confdefs.h <<\_ACEOF
14432 #define HAVE_PROJECT_H 1
14433 _ACEOF
14434
14435         SUDO_LIBS="${SUDO_LIBS} -lproject"
14436 else
14437   -
14438 fi
14439
14440
14441 fi
14442 { echo "$as_me:$LINENO: checking for mode_t" >&5
14443 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
14444 if test "${ac_cv_type_mode_t+set}" = set; then
14445   echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447   cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h.  */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h.  */
14453 $ac_includes_default
14454 typedef mode_t ac__type_new_;
14455 int
14456 main ()
14457 {
14458 if ((ac__type_new_ *) 0)
14459   return 0;
14460 if (sizeof (ac__type_new_))
14461   return 0;
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 rm -f conftest.$ac_objext
14467 if { (ac_try="$ac_compile"
14468 case "(($ac_try" in
14469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470   *) ac_try_echo=$ac_try;;
14471 esac
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473   (eval "$ac_compile") 2>conftest.er1
14474   ac_status=$?
14475   grep -v '^ *+' conftest.er1 >conftest.err
14476   rm -f conftest.er1
14477   cat conftest.err >&5
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); } && {
14480          test -z "$ac_c_werror_flag" ||
14481          test ! -s conftest.err
14482        } && test -s conftest.$ac_objext; then
14483   ac_cv_type_mode_t=yes
14484 else
14485   echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488         ac_cv_type_mode_t=no
14489 fi
14490
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 fi
14493 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14494 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
14495 if test $ac_cv_type_mode_t = yes; then
14496   :
14497 else
14498
14499 cat >>confdefs.h <<_ACEOF
14500 #define mode_t int
14501 _ACEOF
14502
14503 fi
14504
14505 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14506 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
14507 if test "${ac_cv_type_uid_t+set}" = set; then
14508   echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510   cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h.  */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h.  */
14516 #include <sys/types.h>
14517
14518 _ACEOF
14519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14520   $EGREP "uid_t" >/dev/null 2>&1; then
14521   ac_cv_type_uid_t=yes
14522 else
14523   ac_cv_type_uid_t=no
14524 fi
14525 rm -f conftest*
14526
14527 fi
14528 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14529 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
14530 if test $ac_cv_type_uid_t = no; then
14531
14532 cat >>confdefs.h <<\_ACEOF
14533 #define uid_t int
14534 _ACEOF
14535
14536
14537 cat >>confdefs.h <<\_ACEOF
14538 #define gid_t int
14539 _ACEOF
14540
14541 fi
14542
14543 { echo "$as_me:$LINENO: checking for __signed char" >&5
14544 echo $ECHO_N "checking for __signed char... $ECHO_C" >&6; }
14545 if test "${ac_cv_type___signed_char+set}" = set; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   cat >conftest.$ac_ext <<_ACEOF
14549 /* confdefs.h.  */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h.  */
14554 $ac_includes_default
14555 typedef __signed char ac__type_new_;
14556 int
14557 main ()
14558 {
14559 if ((ac__type_new_ *) 0)
14560   return 0;
14561 if (sizeof (ac__type_new_))
14562   return 0;
14563   ;
14564   return 0;
14565 }
14566 _ACEOF
14567 rm -f conftest.$ac_objext
14568 if { (ac_try="$ac_compile"
14569 case "(($ac_try" in
14570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571   *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574   (eval "$ac_compile") 2>conftest.er1
14575   ac_status=$?
14576   grep -v '^ *+' conftest.er1 >conftest.err
14577   rm -f conftest.er1
14578   cat conftest.err >&5
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } && {
14581          test -z "$ac_c_werror_flag" ||
14582          test ! -s conftest.err
14583        } && test -s conftest.$ac_objext; then
14584   ac_cv_type___signed_char=yes
14585 else
14586   echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14588
14589         ac_cv_type___signed_char=no
14590 fi
14591
14592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14593 fi
14594 { echo "$as_me:$LINENO: result: $ac_cv_type___signed_char" >&5
14595 echo "${ECHO_T}$ac_cv_type___signed_char" >&6; }
14596 if test $ac_cv_type___signed_char = yes; then
14597   :
14598 else
14599   { echo "$as_me:$LINENO: checking for signed char" >&5
14600 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
14601 if test "${ac_cv_type_signed_char+set}" = set; then
14602   echo $ECHO_N "(cached) $ECHO_C" >&6
14603 else
14604   cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610 $ac_includes_default
14611 typedef signed char ac__type_new_;
14612 int
14613 main ()
14614 {
14615 if ((ac__type_new_ *) 0)
14616   return 0;
14617 if (sizeof (ac__type_new_))
14618   return 0;
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627   *) ac_try_echo=$ac_try;;
14628 esac
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630   (eval "$ac_compile") 2>conftest.er1
14631   ac_status=$?
14632   grep -v '^ *+' conftest.er1 >conftest.err
14633   rm -f conftest.er1
14634   cat conftest.err >&5
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); } && {
14637          test -z "$ac_c_werror_flag" ||
14638          test ! -s conftest.err
14639        } && test -s conftest.$ac_objext; then
14640   ac_cv_type_signed_char=yes
14641 else
14642   echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14644
14645         ac_cv_type_signed_char=no
14646 fi
14647
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649 fi
14650 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
14651 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
14652 if test $ac_cv_type_signed_char = yes; then
14653   cat >>confdefs.h <<\_ACEOF
14654 #define __signed signed
14655 _ACEOF
14656
14657 else
14658   cat >>confdefs.h <<\_ACEOF
14659 #define __signed
14660 _ACEOF
14661
14662 fi
14663
14664 fi
14665
14666 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14667 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
14668 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14669   echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671   cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h.  */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h.  */
14677 #include <sys/types.h>
14678 #include <signal.h>
14679
14680 typedef sig_atomic_t ac__type_new_;
14681 int
14682 main ()
14683 {
14684 if ((ac__type_new_ *) 0)
14685   return 0;
14686 if (sizeof (ac__type_new_))
14687   return 0;
14688   ;
14689   return 0;
14690 }
14691 _ACEOF
14692 rm -f conftest.$ac_objext
14693 if { (ac_try="$ac_compile"
14694 case "(($ac_try" in
14695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696   *) ac_try_echo=$ac_try;;
14697 esac
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699   (eval "$ac_compile") 2>conftest.er1
14700   ac_status=$?
14701   grep -v '^ *+' conftest.er1 >conftest.err
14702   rm -f conftest.er1
14703   cat conftest.err >&5
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); } && {
14706          test -z "$ac_c_werror_flag" ||
14707          test ! -s conftest.err
14708        } && test -s conftest.$ac_objext; then
14709   ac_cv_type_sig_atomic_t=yes
14710 else
14711   echo "$as_me: failed program was:" >&5
14712 sed 's/^/| /' conftest.$ac_ext >&5
14713
14714         ac_cv_type_sig_atomic_t=no
14715 fi
14716
14717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14718 fi
14719 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14720 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14721 if test $ac_cv_type_sig_atomic_t = yes; then
14722   :
14723 else
14724   cat >>confdefs.h <<\_ACEOF
14725 #define sig_atomic_t int
14726 _ACEOF
14727
14728 fi
14729
14730 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14731 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14732 if test "${ac_cv_type_sigaction_t+set}" = set; then
14733   echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735   cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h.  */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h.  */
14741 #include <sys/types.h>
14742 #include <signal.h>
14743
14744 typedef sigaction_t ac__type_new_;
14745 int
14746 main ()
14747 {
14748 if ((ac__type_new_ *) 0)
14749   return 0;
14750 if (sizeof (ac__type_new_))
14751   return 0;
14752   ;
14753   return 0;
14754 }
14755 _ACEOF
14756 rm -f conftest.$ac_objext
14757 if { (ac_try="$ac_compile"
14758 case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763   (eval "$ac_compile") 2>conftest.er1
14764   ac_status=$?
14765   grep -v '^ *+' conftest.er1 >conftest.err
14766   rm -f conftest.er1
14767   cat conftest.err >&5
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); } && {
14770          test -z "$ac_c_werror_flag" ||
14771          test ! -s conftest.err
14772        } && test -s conftest.$ac_objext; then
14773   ac_cv_type_sigaction_t=yes
14774 else
14775   echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778         ac_cv_type_sigaction_t=no
14779 fi
14780
14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14782 fi
14783 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14784 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14785 if test $ac_cv_type_sigaction_t = yes; then
14786
14787 cat >>confdefs.h <<_ACEOF
14788 #define HAVE_SIGACTION_T 1
14789 _ACEOF
14790
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_SIGACTION_T 1
14793 _ACEOF
14794
14795 fi
14796
14797 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14798 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14799 if test "${ac_cv_type_struct_timespec+set}" = set; then
14800   echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802   cat >conftest.$ac_ext <<_ACEOF
14803 /* confdefs.h.  */
14804 _ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h.  */
14808 #include <sys/types.h>
14809 #if TIME_WITH_SYS_TIME
14810 # include <sys/time.h>
14811 #endif
14812 #include <time.h>
14813
14814 typedef struct timespec ac__type_new_;
14815 int
14816 main ()
14817 {
14818 if ((ac__type_new_ *) 0)
14819   return 0;
14820 if (sizeof (ac__type_new_))
14821   return 0;
14822   ;
14823   return 0;
14824 }
14825 _ACEOF
14826 rm -f conftest.$ac_objext
14827 if { (ac_try="$ac_compile"
14828 case "(($ac_try" in
14829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830   *) ac_try_echo=$ac_try;;
14831 esac
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833   (eval "$ac_compile") 2>conftest.er1
14834   ac_status=$?
14835   grep -v '^ *+' conftest.er1 >conftest.err
14836   rm -f conftest.er1
14837   cat conftest.err >&5
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); } && {
14840          test -z "$ac_c_werror_flag" ||
14841          test ! -s conftest.err
14842        } && test -s conftest.$ac_objext; then
14843   ac_cv_type_struct_timespec=yes
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848         ac_cv_type_struct_timespec=no
14849 fi
14850
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 fi
14853 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14854 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14855 if test $ac_cv_type_struct_timespec = yes; then
14856   cat >>confdefs.h <<\_ACEOF
14857 #define HAVE_TIMESPEC 1
14858 _ACEOF
14859
14860 fi
14861
14862 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14863 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14864 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14865   echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867   cat >conftest.$ac_ext <<_ACEOF
14868 /* confdefs.h.  */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h.  */
14873 #include <sys/types.h>
14874 #include <netinet/in.h>
14875
14876 typedef struct in6_addr ac__type_new_;
14877 int
14878 main ()
14879 {
14880 if ((ac__type_new_ *) 0)
14881   return 0;
14882 if (sizeof (ac__type_new_))
14883   return 0;
14884   ;
14885   return 0;
14886 }
14887 _ACEOF
14888 rm -f conftest.$ac_objext
14889 if { (ac_try="$ac_compile"
14890 case "(($ac_try" in
14891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892   *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895   (eval "$ac_compile") 2>conftest.er1
14896   ac_status=$?
14897   grep -v '^ *+' conftest.er1 >conftest.err
14898   rm -f conftest.er1
14899   cat conftest.err >&5
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); } && {
14902          test -z "$ac_c_werror_flag" ||
14903          test ! -s conftest.err
14904        } && test -s conftest.$ac_objext; then
14905   ac_cv_type_struct_in6_addr=yes
14906 else
14907   echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910         ac_cv_type_struct_in6_addr=no
14911 fi
14912
14913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14914 fi
14915 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14916 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14917 if test $ac_cv_type_struct_in6_addr = yes; then
14918
14919 cat >>confdefs.h <<_ACEOF
14920 #define HAVE_STRUCT_IN6_ADDR 1
14921 _ACEOF
14922
14923 cat >>confdefs.h <<\_ACEOF
14924 #define HAVE_IN6_ADDR 1
14925 _ACEOF
14926
14927 fi
14928
14929 { echo "$as_me:$LINENO: checking for size_t" >&5
14930 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14931 if test "${sudo_cv_type_size_t+set}" = set; then
14932   echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934   cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h.  */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h.  */
14940 #include <sys/types.h>
14941 #include <stdio.h>
14942 #if STDC_HEADERS
14943 #include <stdlib.h>
14944 #endif
14945 #if HAVE_UNISTD_H
14946 #include <unistd.h>
14947 #endif
14948 _ACEOF
14949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14950   $EGREP "size_t" >/dev/null 2>&1; then
14951   sudo_cv_type_size_t=yes
14952 else
14953   sudo_cv_type_size_t=no
14954 fi
14955 rm -f conftest*
14956
14957 fi
14958 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14959 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14960 if test $sudo_cv_type_size_t = no; then
14961
14962 cat >>confdefs.h <<\_ACEOF
14963 #define size_t int
14964 _ACEOF
14965
14966 fi
14967
14968 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14969 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14970 if test "${sudo_cv_type_ssize_t+set}" = set; then
14971   echo $ECHO_N "(cached) $ECHO_C" >&6
14972 else
14973   cat >conftest.$ac_ext <<_ACEOF
14974 /* confdefs.h.  */
14975 _ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h.  */
14979 #include <sys/types.h>
14980 #include <stdio.h>
14981 #if STDC_HEADERS
14982 #include <stdlib.h>
14983 #endif
14984 #if HAVE_UNISTD_H
14985 #include <unistd.h>
14986 #endif
14987 _ACEOF
14988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14989   $EGREP "ssize_t" >/dev/null 2>&1; then
14990   sudo_cv_type_ssize_t=yes
14991 else
14992   sudo_cv_type_ssize_t=no
14993 fi
14994 rm -f conftest*
14995
14996 fi
14997 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14998 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14999 if test $sudo_cv_type_ssize_t = no; then
15000
15001 cat >>confdefs.h <<\_ACEOF
15002 #define ssize_t int
15003 _ACEOF
15004
15005 fi
15006
15007 { echo "$as_me:$LINENO: checking for dev_t" >&5
15008 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
15009 if test "${sudo_cv_type_dev_t+set}" = set; then
15010   echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012   cat >conftest.$ac_ext <<_ACEOF
15013 /* confdefs.h.  */
15014 _ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h.  */
15018 #include <sys/types.h>
15019 #include <stdio.h>
15020 #if STDC_HEADERS
15021 #include <stdlib.h>
15022 #endif
15023 #if HAVE_UNISTD_H
15024 #include <unistd.h>
15025 #endif
15026 _ACEOF
15027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15028   $EGREP "dev_t" >/dev/null 2>&1; then
15029   sudo_cv_type_dev_t=yes
15030 else
15031   sudo_cv_type_dev_t=no
15032 fi
15033 rm -f conftest*
15034
15035 fi
15036 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
15037 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
15038 if test $sudo_cv_type_dev_t = no; then
15039
15040 cat >>confdefs.h <<\_ACEOF
15041 #define dev_t int
15042 _ACEOF
15043
15044 fi
15045
15046 { echo "$as_me:$LINENO: checking for ino_t" >&5
15047 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
15048 if test "${sudo_cv_type_ino_t+set}" = set; then
15049   echo $ECHO_N "(cached) $ECHO_C" >&6
15050 else
15051   cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h.  */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h.  */
15057 #include <sys/types.h>
15058 #include <stdio.h>
15059 #if STDC_HEADERS
15060 #include <stdlib.h>
15061 #endif
15062 #if HAVE_UNISTD_H
15063 #include <unistd.h>
15064 #endif
15065 _ACEOF
15066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15067   $EGREP "ino_t" >/dev/null 2>&1; then
15068   sudo_cv_type_ino_t=yes
15069 else
15070   sudo_cv_type_ino_t=no
15071 fi
15072 rm -f conftest*
15073
15074 fi
15075 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
15076 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
15077 if test $sudo_cv_type_ino_t = no; then
15078
15079 cat >>confdefs.h <<\_ACEOF
15080 #define ino_t unsigned int
15081 _ACEOF
15082
15083 fi
15084
15085
15086 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
15087 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
15088 if test "${sudo_cv_uid_t_len+set}" = set; then
15089   echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091   rm -f conftestdata
15092 if test "$cross_compiling" = yes; then
15093   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15094 See \`config.log' for more details." >&5
15095 echo "$as_me: error: cannot run test program while cross compiling
15096 See \`config.log' for more details." >&2;}
15097    { (exit 1); exit 1; }; }
15098 else
15099   cat >conftest.$ac_ext <<_ACEOF
15100 /* confdefs.h.  */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h.  */
15105 #include <stdio.h>
15106 #include <pwd.h>
15107 #include <limits.h>
15108 #include <sys/types.h>
15109 #include <sys/param.h>
15110 main() {
15111   FILE *f;
15112   char b[1024];
15113   uid_t u = (uid_t) -1;
15114
15115   if ((f = fopen("conftestdata", "w")) == NULL)
15116     exit(1);
15117
15118   (void) sprintf(b, "%lu", (unsigned long) u);
15119   (void) fprintf(f, "%d\n", strlen(b));
15120   (void) fclose(f);
15121   exit(0);
15122 }
15123 _ACEOF
15124 rm -f conftest$ac_exeext
15125 if { (ac_try="$ac_link"
15126 case "(($ac_try" in
15127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128   *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131   (eval "$ac_link") 2>&5
15132   ac_status=$?
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15135   { (case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140   (eval "$ac_try") 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); }; }; then
15144   sudo_cv_uid_t_len=`cat conftestdata`
15145 else
15146   echo "$as_me: program exited with status $ac_status" >&5
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150 ( exit $ac_status )
15151 sudo_cv_uid_t_len=10
15152 fi
15153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15154 fi
15155
15156
15157
15158 fi
15159
15160 rm -f conftestdata
15161 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
15162 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
15163
15164 cat >>confdefs.h <<_ACEOF
15165 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15166 _ACEOF
15167
15168
15169 { echo "$as_me:$LINENO: checking for long long" >&5
15170 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
15171 if test "${ac_cv_type_long_long+set}" = set; then
15172   echo $ECHO_N "(cached) $ECHO_C" >&6
15173 else
15174   cat >conftest.$ac_ext <<_ACEOF
15175 /* confdefs.h.  */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h.  */
15180 $ac_includes_default
15181 typedef long long ac__type_new_;
15182 int
15183 main ()
15184 {
15185 if ((ac__type_new_ *) 0)
15186   return 0;
15187 if (sizeof (ac__type_new_))
15188   return 0;
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 rm -f conftest.$ac_objext
15194 if { (ac_try="$ac_compile"
15195 case "(($ac_try" in
15196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197   *) ac_try_echo=$ac_try;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200   (eval "$ac_compile") 2>conftest.er1
15201   ac_status=$?
15202   grep -v '^ *+' conftest.er1 >conftest.err
15203   rm -f conftest.er1
15204   cat conftest.err >&5
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); } && {
15207          test -z "$ac_c_werror_flag" ||
15208          test ! -s conftest.err
15209        } && test -s conftest.$ac_objext; then
15210   ac_cv_type_long_long=yes
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215         ac_cv_type_long_long=no
15216 fi
15217
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219 fi
15220 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15221 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15222 if test $ac_cv_type_long_long = yes; then
15223
15224 cat >>confdefs.h <<_ACEOF
15225 #define HAVE_LONG_LONG 1
15226 _ACEOF
15227
15228
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_LONG_LONG 1
15231 _ACEOF
15232
15233 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
15234 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
15235 if test "${sudo_cv_type_long_is_quad+set}" = set; then
15236   echo $ECHO_N "(cached) $ECHO_C" >&6
15237 else
15238   if test "$cross_compiling" = yes; then
15239   sudo_cv_type_long_is_quad=no
15240 else
15241   cat >conftest.$ac_ext <<_ACEOF
15242 /* confdefs.h.  */
15243 _ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h.  */
15247
15248 main() {
15249 if (sizeof(long long) == sizeof(long)) exit(0);
15250 else exit(1);
15251 }
15252 _ACEOF
15253 rm -f conftest$ac_exeext
15254 if { (ac_try="$ac_link"
15255 case "(($ac_try" in
15256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257   *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260   (eval "$ac_link") 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15264   { (case "(($ac_try" in
15265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266   *) ac_try_echo=$ac_try;;
15267 esac
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269   (eval "$ac_try") 2>&5
15270   ac_status=$?
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); }; }; then
15273   sudo_cv_type_long_is_quad=yes
15274 else
15275   echo "$as_me: program exited with status $ac_status" >&5
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 ( exit $ac_status )
15280 sudo_cv_type_long_is_quad=no
15281 fi
15282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15283 fi
15284
15285
15286 rm -f core core.* *.core
15287 fi
15288 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
15289 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
15290 if test $sudo_cv_type_long_is_quad = yes; then
15291
15292 cat >>confdefs.h <<\_ACEOF
15293 #define LONG_IS_QUAD 1
15294 _ACEOF
15295
15296 fi
15297
15298 fi
15299
15300 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
15301 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
15302 if test "${sudo_cv_sock_sa_len+set}" = set; then
15303   echo $ECHO_N "(cached) $ECHO_C" >&6
15304 else
15305   if test "$cross_compiling" = yes; then
15306   sudo_cv_sock_sa_len=no
15307 else
15308   cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h.  */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h.  */
15314 #include <sys/types.h>
15315 #include <sys/socket.h>
15316 main() {
15317 struct sockaddr s;
15318 s.sa_len = 0;
15319 exit(0);
15320 }
15321 _ACEOF
15322 rm -f conftest$ac_exeext
15323 if { (ac_try="$ac_link"
15324 case "(($ac_try" in
15325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326   *) ac_try_echo=$ac_try;;
15327 esac
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329   (eval "$ac_link") 2>&5
15330   ac_status=$?
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15333   { (case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_try") 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; }; then
15342   sudo_cv_sock_sa_len=yes
15343 else
15344   echo "$as_me: program exited with status $ac_status" >&5
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15347
15348 ( exit $ac_status )
15349 sudo_cv_sock_sa_len=no
15350 fi
15351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15352 fi
15353
15354
15355 rm -f core core.* *.core
15356 fi
15357 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
15358 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
15359 if test $sudo_cv_sock_sa_len = yes; then
15360
15361 cat >>confdefs.h <<\_ACEOF
15362 #define HAVE_SA_LEN 1
15363 _ACEOF
15364
15365 fi
15366
15367 case "$DEFS" in
15368     *"RETSIGTYPE"*)     ;;
15369     *)                  { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15370 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15371 if test "${ac_cv_type_signal+set}" = set; then
15372   echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374   cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h.  */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h.  */
15380 #include <sys/types.h>
15381 #include <signal.h>
15382
15383 int
15384 main ()
15385 {
15386 return *(signal (0, 0)) (0) == 1;
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 rm -f conftest.$ac_objext
15392 if { (ac_try="$ac_compile"
15393 case "(($ac_try" in
15394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395   *) ac_try_echo=$ac_try;;
15396 esac
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398   (eval "$ac_compile") 2>conftest.er1
15399   ac_status=$?
15400   grep -v '^ *+' conftest.er1 >conftest.err
15401   rm -f conftest.er1
15402   cat conftest.err >&5
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); } && {
15405          test -z "$ac_c_werror_flag" ||
15406          test ! -s conftest.err
15407        } && test -s conftest.$ac_objext; then
15408   ac_cv_type_signal=int
15409 else
15410   echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15412
15413         ac_cv_type_signal=void
15414 fi
15415
15416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15417 fi
15418 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15419 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15420
15421 cat >>confdefs.h <<_ACEOF
15422 #define RETSIGTYPE $ac_cv_type_signal
15423 _ACEOF
15424
15425 ;;
15426 esac
15427 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15428 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
15429 if test "${ac_cv_type_getgroups+set}" = set; then
15430   echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432   if test "$cross_compiling" = yes; then
15433   ac_cv_type_getgroups=cross
15434 else
15435   cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h.  */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h.  */
15441 /* Thanks to Mike Rendell for this test.  */
15442 $ac_includes_default
15443 #define NGID 256
15444 #undef MAX
15445 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15446
15447 int
15448 main ()
15449 {
15450   gid_t gidset[NGID];
15451   int i, n;
15452   union { gid_t gval; long int lval; }  val;
15453
15454   val.lval = -1;
15455   for (i = 0; i < NGID; i++)
15456     gidset[i] = val.gval;
15457   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15458                  gidset);
15459   /* Exit non-zero if getgroups seems to require an array of ints.  This
15460      happens when gid_t is short int but getgroups modifies an array
15461      of ints.  */
15462   return n > 0 && gidset[n] != val.gval;
15463 }
15464 _ACEOF
15465 rm -f conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469   *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472   (eval "$ac_link") 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15476   { (case "(($ac_try" in
15477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478   *) ac_try_echo=$ac_try;;
15479 esac
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481   (eval "$ac_try") 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); }; }; then
15485   ac_cv_type_getgroups=gid_t
15486 else
15487   echo "$as_me: program exited with status $ac_status" >&5
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15490
15491 ( exit $ac_status )
15492 ac_cv_type_getgroups=int
15493 fi
15494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15495 fi
15496
15497
15498 if test $ac_cv_type_getgroups = cross; then
15499         cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h.  */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h.  */
15505 #include <unistd.h>
15506
15507 _ACEOF
15508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15509   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15510   ac_cv_type_getgroups=gid_t
15511 else
15512   ac_cv_type_getgroups=int
15513 fi
15514 rm -f conftest*
15515
15516 fi
15517 fi
15518 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15519 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
15520
15521 cat >>confdefs.h <<_ACEOF
15522 #define GETGROUPS_T $ac_cv_type_getgroups
15523 _ACEOF
15524
15525
15526 { echo "$as_me:$LINENO: checking for size_t" >&5
15527 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15528 if test "${ac_cv_type_size_t+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h.  */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h.  */
15537 $ac_includes_default
15538 typedef size_t ac__type_new_;
15539 int
15540 main ()
15541 {
15542 if ((ac__type_new_ *) 0)
15543   return 0;
15544 if (sizeof (ac__type_new_))
15545   return 0;
15546   ;
15547   return 0;
15548 }
15549 _ACEOF
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557   (eval "$ac_compile") 2>conftest.er1
15558   ac_status=$?
15559   grep -v '^ *+' conftest.er1 >conftest.err
15560   rm -f conftest.er1
15561   cat conftest.err >&5
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); } && {
15564          test -z "$ac_c_werror_flag" ||
15565          test ! -s conftest.err
15566        } && test -s conftest.$ac_objext; then
15567   ac_cv_type_size_t=yes
15568 else
15569   echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15571
15572         ac_cv_type_size_t=no
15573 fi
15574
15575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15576 fi
15577 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15578 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15579 if test $ac_cv_type_size_t = yes; then
15580   :
15581 else
15582
15583 cat >>confdefs.h <<_ACEOF
15584 #define size_t unsigned int
15585 _ACEOF
15586
15587 fi
15588
15589 { echo "$as_me:$LINENO: checking for getgroups" >&5
15590 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
15591 if test "${ac_cv_func_getgroups+set}" = set; then
15592   echo $ECHO_N "(cached) $ECHO_C" >&6
15593 else
15594   cat >conftest.$ac_ext <<_ACEOF
15595 /* confdefs.h.  */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h.  */
15600 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15602 #define getgroups innocuous_getgroups
15603
15604 /* System header to define __stub macros and hopefully few prototypes,
15605     which can conflict with char getgroups (); below.
15606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15607     <limits.h> exists even on freestanding compilers.  */
15608
15609 #ifdef __STDC__
15610 # include <limits.h>
15611 #else
15612 # include <assert.h>
15613 #endif
15614
15615 #undef getgroups
15616
15617 /* Override any GCC internal prototype to avoid an error.
15618    Use char because int might match the return type of a GCC
15619    builtin and then its argument prototype would still apply.  */
15620 #ifdef __cplusplus
15621 extern "C"
15622 #endif
15623 char getgroups ();
15624 /* The GNU C library defines this for functions which it implements
15625     to always fail with ENOSYS.  Some functions are actually named
15626     something starting with __ and the normal name is an alias.  */
15627 #if defined __stub_getgroups || defined __stub___getgroups
15628 choke me
15629 #endif
15630
15631 int
15632 main ()
15633 {
15634 return getgroups ();
15635   ;
15636   return 0;
15637 }
15638 _ACEOF
15639 rm -f conftest.$ac_objext conftest$ac_exeext
15640 if { (ac_try="$ac_link"
15641 case "(($ac_try" in
15642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643   *) ac_try_echo=$ac_try;;
15644 esac
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646   (eval "$ac_link") 2>conftest.er1
15647   ac_status=$?
15648   grep -v '^ *+' conftest.er1 >conftest.err
15649   rm -f conftest.er1
15650   cat conftest.err >&5
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); } && {
15653          test -z "$ac_c_werror_flag" ||
15654          test ! -s conftest.err
15655        } && test -s conftest$ac_exeext &&
15656        $as_test_x conftest$ac_exeext; then
15657   ac_cv_func_getgroups=yes
15658 else
15659   echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15661
15662         ac_cv_func_getgroups=no
15663 fi
15664
15665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15666       conftest$ac_exeext conftest.$ac_ext
15667 fi
15668 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15669 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15670
15671
15672 # If we don't yet have getgroups, see if it's in -lbsd.
15673 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15674 ac_save_LIBS=$LIBS
15675 if test $ac_cv_func_getgroups = no; then
15676   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15677 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15678 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15679   echo $ECHO_N "(cached) $ECHO_C" >&6
15680 else
15681   ac_check_lib_save_LIBS=$LIBS
15682 LIBS="-lbsd  $LIBS"
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689
15690 /* Override any GCC internal prototype to avoid an error.
15691    Use char because int might match the return type of a GCC
15692    builtin and then its argument prototype would still apply.  */
15693 #ifdef __cplusplus
15694 extern "C"
15695 #endif
15696 char getgroups ();
15697 int
15698 main ()
15699 {
15700 return getgroups ();
15701   ;
15702   return 0;
15703 }
15704 _ACEOF
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (ac_try="$ac_link"
15707 case "(($ac_try" in
15708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709   *) ac_try_echo=$ac_try;;
15710 esac
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712   (eval "$ac_link") 2>conftest.er1
15713   ac_status=$?
15714   grep -v '^ *+' conftest.er1 >conftest.err
15715   rm -f conftest.er1
15716   cat conftest.err >&5
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); } && {
15719          test -z "$ac_c_werror_flag" ||
15720          test ! -s conftest.err
15721        } && test -s conftest$ac_exeext &&
15722        $as_test_x conftest$ac_exeext; then
15723   ac_cv_lib_bsd_getgroups=yes
15724 else
15725   echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15727
15728         ac_cv_lib_bsd_getgroups=no
15729 fi
15730
15731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15732       conftest$ac_exeext conftest.$ac_ext
15733 LIBS=$ac_check_lib_save_LIBS
15734 fi
15735 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15736 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15737 if test $ac_cv_lib_bsd_getgroups = yes; then
15738   GETGROUPS_LIB=-lbsd
15739 fi
15740
15741 fi
15742
15743 # Run the program to test the functionality of the system-supplied
15744 # getgroups function only if there is such a function.
15745 if test $ac_cv_func_getgroups = yes; then
15746   { echo "$as_me:$LINENO: checking for working getgroups" >&5
15747 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15748 if test "${ac_cv_func_getgroups_works+set}" = set; then
15749   echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751   if test "$cross_compiling" = yes; then
15752   ac_cv_func_getgroups_works=no
15753 else
15754   cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h.  */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h.  */
15760 $ac_includes_default
15761 int
15762 main ()
15763 {
15764 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
15765        return getgroups (0, 0) == -1;
15766   ;
15767   return 0;
15768 }
15769 _ACEOF
15770 rm -f conftest$ac_exeext
15771 if { (ac_try="$ac_link"
15772 case "(($ac_try" in
15773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774   *) ac_try_echo=$ac_try;;
15775 esac
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777   (eval "$ac_link") 2>&5
15778   ac_status=$?
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15781   { (case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_try") 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790   ac_cv_func_getgroups_works=yes
15791 else
15792   echo "$as_me: program exited with status $ac_status" >&5
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15795
15796 ( exit $ac_status )
15797 ac_cv_func_getgroups_works=no
15798 fi
15799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15800 fi
15801
15802
15803
15804 fi
15805 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15806 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15807   if test $ac_cv_func_getgroups_works = yes; then
15808
15809 cat >>confdefs.h <<\_ACEOF
15810 #define HAVE_GETGROUPS 1
15811 _ACEOF
15812
15813   fi
15814 fi
15815 LIBS=$ac_save_LIBS
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15836                strftime setrlimit initgroups getgroups fstat gettimeofday \
15837                setlocale getaddrinfo setsid setenv setrlimit64
15838 do
15839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15843   echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15845   cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h.  */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h.  */
15851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15853 #define $ac_func innocuous_$ac_func
15854
15855 /* System header to define __stub macros and hopefully few prototypes,
15856     which can conflict with char $ac_func (); below.
15857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15858     <limits.h> exists even on freestanding compilers.  */
15859
15860 #ifdef __STDC__
15861 # include <limits.h>
15862 #else
15863 # include <assert.h>
15864 #endif
15865
15866 #undef $ac_func
15867
15868 /* Override any GCC internal prototype to avoid an error.
15869    Use char because int might match the return type of a GCC
15870    builtin and then its argument prototype would still apply.  */
15871 #ifdef __cplusplus
15872 extern "C"
15873 #endif
15874 char $ac_func ();
15875 /* The GNU C library defines this for functions which it implements
15876     to always fail with ENOSYS.  Some functions are actually named
15877     something starting with __ and the normal name is an alias.  */
15878 #if defined __stub_$ac_func || defined __stub___$ac_func
15879 choke me
15880 #endif
15881
15882 int
15883 main ()
15884 {
15885 return $ac_func ();
15886   ;
15887   return 0;
15888 }
15889 _ACEOF
15890 rm -f conftest.$ac_objext conftest$ac_exeext
15891 if { (ac_try="$ac_link"
15892 case "(($ac_try" in
15893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894   *) ac_try_echo=$ac_try;;
15895 esac
15896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897   (eval "$ac_link") 2>conftest.er1
15898   ac_status=$?
15899   grep -v '^ *+' conftest.er1 >conftest.err
15900   rm -f conftest.er1
15901   cat conftest.err >&5
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); } && {
15904          test -z "$ac_c_werror_flag" ||
15905          test ! -s conftest.err
15906        } && test -s conftest$ac_exeext &&
15907        $as_test_x conftest$ac_exeext; then
15908   eval "$as_ac_var=yes"
15909 else
15910   echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15912
15913         eval "$as_ac_var=no"
15914 fi
15915
15916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15917       conftest$ac_exeext conftest.$ac_ext
15918 fi
15919 ac_res=`eval echo '${'$as_ac_var'}'`
15920                { echo "$as_me:$LINENO: result: $ac_res" >&5
15921 echo "${ECHO_T}$ac_res" >&6; }
15922 if test `eval echo '${'$as_ac_var'}'` = yes; then
15923   cat >>confdefs.h <<_ACEOF
15924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15925 _ACEOF
15926
15927 fi
15928 done
15929
15930
15931 for ac_func in unsetenv
15932 do
15933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15937   echo $ECHO_N "(cached) $ECHO_C" >&6
15938 else
15939   cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h.  */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h.  */
15945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15947 #define $ac_func innocuous_$ac_func
15948
15949 /* System header to define __stub macros and hopefully few prototypes,
15950     which can conflict with char $ac_func (); below.
15951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15952     <limits.h> exists even on freestanding compilers.  */
15953
15954 #ifdef __STDC__
15955 # include <limits.h>
15956 #else
15957 # include <assert.h>
15958 #endif
15959
15960 #undef $ac_func
15961
15962 /* Override any GCC internal prototype to avoid an error.
15963    Use char because int might match the return type of a GCC
15964    builtin and then its argument prototype would still apply.  */
15965 #ifdef __cplusplus
15966 extern "C"
15967 #endif
15968 char $ac_func ();
15969 /* The GNU C library defines this for functions which it implements
15970     to always fail with ENOSYS.  Some functions are actually named
15971     something starting with __ and the normal name is an alias.  */
15972 #if defined __stub_$ac_func || defined __stub___$ac_func
15973 choke me
15974 #endif
15975
15976 int
15977 main ()
15978 {
15979 return $ac_func ();
15980   ;
15981   return 0;
15982 }
15983 _ACEOF
15984 rm -f conftest.$ac_objext conftest$ac_exeext
15985 if { (ac_try="$ac_link"
15986 case "(($ac_try" in
15987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988   *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991   (eval "$ac_link") 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } && {
15998          test -z "$ac_c_werror_flag" ||
15999          test ! -s conftest.err
16000        } && test -s conftest$ac_exeext &&
16001        $as_test_x conftest$ac_exeext; then
16002   eval "$as_ac_var=yes"
16003 else
16004   echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007         eval "$as_ac_var=no"
16008 fi
16009
16010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16011       conftest$ac_exeext conftest.$ac_ext
16012 fi
16013 ac_res=`eval echo '${'$as_ac_var'}'`
16014                { echo "$as_me:$LINENO: result: $ac_res" >&5
16015 echo "${ECHO_T}$ac_res" >&6; }
16016 if test `eval echo '${'$as_ac_var'}'` = yes; then
16017   cat >>confdefs.h <<_ACEOF
16018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16019 _ACEOF
16020  { echo "$as_me:$LINENO: checking whether unsetenv returns void" >&5
16021 echo $ECHO_N "checking whether unsetenv returns void... $ECHO_C" >&6; }
16022 if test "${sudo_cv_func_unsetenv_void+set}" = set; then
16023   echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025   if test "$cross_compiling" = yes; then
16026   sudo_cv_func_unsetenv_void=yes
16027 else
16028   cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h.  */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h.  */
16034 $ac_includes_default
16035         int unsetenv();
16036
16037 int
16038 main ()
16039 {
16040
16041         return unsetenv("FOO") != 0;
16042
16043   ;
16044   return 0;
16045 }
16046
16047 _ACEOF
16048 rm -f conftest$ac_exeext
16049 if { (ac_try="$ac_link"
16050 case "(($ac_try" in
16051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052   *) ac_try_echo=$ac_try;;
16053 esac
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055   (eval "$ac_link") 2>&5
16056   ac_status=$?
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16059   { (case "(($ac_try" in
16060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061   *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064   (eval "$ac_try") 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); }; }; then
16068   sudo_cv_func_unsetenv_void=no
16069 else
16070   echo "$as_me: program exited with status $ac_status" >&5
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 ( exit $ac_status )
16075 sudo_cv_func_unsetenv_void=yes
16076 fi
16077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16078 fi
16079
16080
16081 fi
16082 { echo "$as_me:$LINENO: result: $sudo_cv_func_unsetenv_void" >&5
16083 echo "${ECHO_T}$sudo_cv_func_unsetenv_void" >&6; }
16084     if test $sudo_cv_func_unsetenv_void = yes; then
16085
16086 cat >>confdefs.h <<\_ACEOF
16087 #define UNSETENV_VOID 1
16088 _ACEOF
16089
16090     fi
16091
16092 fi
16093 done
16094
16095 { echo "$as_me:$LINENO: checking whether putenv has a const argument" >&5
16096 echo $ECHO_N "checking whether putenv has a const argument... $ECHO_C" >&6; }
16097 if test "${sudo_cv_func_putenv_const+set}" = set; then
16098   echo $ECHO_N "(cached) $ECHO_C" >&6
16099 else
16100   cat >conftest.$ac_ext <<_ACEOF
16101 /* confdefs.h.  */
16102 _ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h.  */
16106 $ac_includes_default
16107 int putenv(const char *string) {return 0;}
16108 int
16109 main ()
16110 {
16111
16112   ;
16113   return 0;
16114 }
16115 _ACEOF
16116 rm -f conftest.$ac_objext
16117 if { (ac_try="$ac_compile"
16118 case "(($ac_try" in
16119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120   *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123   (eval "$ac_compile") 2>conftest.er1
16124   ac_status=$?
16125   grep -v '^ *+' conftest.er1 >conftest.err
16126   rm -f conftest.er1
16127   cat conftest.err >&5
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); } && {
16130          test -z "$ac_c_werror_flag" ||
16131          test ! -s conftest.err
16132        } && test -s conftest.$ac_objext; then
16133   sudo_cv_func_putenv_const=yes
16134 else
16135   echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138         sudo_cv_func_putenv_const=no
16139 fi
16140
16141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16142
16143 fi
16144 { echo "$as_me:$LINENO: result: $sudo_cv_func_putenv_const" >&5
16145 echo "${ECHO_T}$sudo_cv_func_putenv_const" >&6; }
16146   if test $sudo_cv_func_putenv_const = yes; then
16147
16148 cat >>confdefs.h <<\_ACEOF
16149 #define PUTENV_CONST 1
16150 _ACEOF
16151
16152   fi
16153
16154 if test -z "$SKIP_SETRESUID"; then
16155
16156 for ac_func in setresuid
16157 do
16158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16162   echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164   cat >conftest.$ac_ext <<_ACEOF
16165 /* confdefs.h.  */
16166 _ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h.  */
16170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16172 #define $ac_func innocuous_$ac_func
16173
16174 /* System header to define __stub macros and hopefully few prototypes,
16175     which can conflict with char $ac_func (); below.
16176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16177     <limits.h> exists even on freestanding compilers.  */
16178
16179 #ifdef __STDC__
16180 # include <limits.h>
16181 #else
16182 # include <assert.h>
16183 #endif
16184
16185 #undef $ac_func
16186
16187 /* Override any GCC internal prototype to avoid an error.
16188    Use char because int might match the return type of a GCC
16189    builtin and then its argument prototype would still apply.  */
16190 #ifdef __cplusplus
16191 extern "C"
16192 #endif
16193 char $ac_func ();
16194 /* The GNU C library defines this for functions which it implements
16195     to always fail with ENOSYS.  Some functions are actually named
16196     something starting with __ and the normal name is an alias.  */
16197 #if defined __stub_$ac_func || defined __stub___$ac_func
16198 choke me
16199 #endif
16200
16201 int
16202 main ()
16203 {
16204 return $ac_func ();
16205   ;
16206   return 0;
16207 }
16208 _ACEOF
16209 rm -f conftest.$ac_objext conftest$ac_exeext
16210 if { (ac_try="$ac_link"
16211 case "(($ac_try" in
16212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213   *) ac_try_echo=$ac_try;;
16214 esac
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216   (eval "$ac_link") 2>conftest.er1
16217   ac_status=$?
16218   grep -v '^ *+' conftest.er1 >conftest.err
16219   rm -f conftest.er1
16220   cat conftest.err >&5
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } && {
16223          test -z "$ac_c_werror_flag" ||
16224          test ! -s conftest.err
16225        } && test -s conftest$ac_exeext &&
16226        $as_test_x conftest$ac_exeext; then
16227   eval "$as_ac_var=yes"
16228 else
16229   echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16231
16232         eval "$as_ac_var=no"
16233 fi
16234
16235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16236       conftest$ac_exeext conftest.$ac_ext
16237 fi
16238 ac_res=`eval echo '${'$as_ac_var'}'`
16239                { echo "$as_me:$LINENO: result: $ac_res" >&5
16240 echo "${ECHO_T}$ac_res" >&6; }
16241 if test `eval echo '${'$as_ac_var'}'` = yes; then
16242   cat >>confdefs.h <<_ACEOF
16243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16244 _ACEOF
16245  SKIP_SETREUID=yes
16246 fi
16247 done
16248
16249 fi
16250 if test -z "$SKIP_SETREUID"; then
16251
16252 for ac_func in setreuid
16253 do
16254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16258   echo $ECHO_N "(cached) $ECHO_C" >&6
16259 else
16260   cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h.  */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h.  */
16266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16268 #define $ac_func innocuous_$ac_func
16269
16270 /* System header to define __stub macros and hopefully few prototypes,
16271     which can conflict with char $ac_func (); below.
16272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16273     <limits.h> exists even on freestanding compilers.  */
16274
16275 #ifdef __STDC__
16276 # include <limits.h>
16277 #else
16278 # include <assert.h>
16279 #endif
16280
16281 #undef $ac_func
16282
16283 /* Override any GCC internal prototype to avoid an error.
16284    Use char because int might match the return type of a GCC
16285    builtin and then its argument prototype would still apply.  */
16286 #ifdef __cplusplus
16287 extern "C"
16288 #endif
16289 char $ac_func ();
16290 /* The GNU C library defines this for functions which it implements
16291     to always fail with ENOSYS.  Some functions are actually named
16292     something starting with __ and the normal name is an alias.  */
16293 #if defined __stub_$ac_func || defined __stub___$ac_func
16294 choke me
16295 #endif
16296
16297 int
16298 main ()
16299 {
16300 return $ac_func ();
16301   ;
16302   return 0;
16303 }
16304 _ACEOF
16305 rm -f conftest.$ac_objext conftest$ac_exeext
16306 if { (ac_try="$ac_link"
16307 case "(($ac_try" in
16308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309   *) ac_try_echo=$ac_try;;
16310 esac
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312   (eval "$ac_link") 2>conftest.er1
16313   ac_status=$?
16314   grep -v '^ *+' conftest.er1 >conftest.err
16315   rm -f conftest.er1
16316   cat conftest.err >&5
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); } && {
16319          test -z "$ac_c_werror_flag" ||
16320          test ! -s conftest.err
16321        } && test -s conftest$ac_exeext &&
16322        $as_test_x conftest$ac_exeext; then
16323   eval "$as_ac_var=yes"
16324 else
16325   echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16327
16328         eval "$as_ac_var=no"
16329 fi
16330
16331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16332       conftest$ac_exeext conftest.$ac_ext
16333 fi
16334 ac_res=`eval echo '${'$as_ac_var'}'`
16335                { echo "$as_me:$LINENO: result: $ac_res" >&5
16336 echo "${ECHO_T}$ac_res" >&6; }
16337 if test `eval echo '${'$as_ac_var'}'` = yes; then
16338   cat >>confdefs.h <<_ACEOF
16339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16340 _ACEOF
16341  SKIP_SETEUID=yes
16342 fi
16343 done
16344
16345 fi
16346 if test -z "$SKIP_SETEUID"; then
16347
16348 for ac_func in seteuid
16349 do
16350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16354   echo $ECHO_N "(cached) $ECHO_C" >&6
16355 else
16356   cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16364 #define $ac_func innocuous_$ac_func
16365
16366 /* System header to define __stub macros and hopefully few prototypes,
16367     which can conflict with char $ac_func (); below.
16368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16369     <limits.h> exists even on freestanding compilers.  */
16370
16371 #ifdef __STDC__
16372 # include <limits.h>
16373 #else
16374 # include <assert.h>
16375 #endif
16376
16377 #undef $ac_func
16378
16379 /* Override any GCC internal prototype to avoid an error.
16380    Use char because int might match the return type of a GCC
16381    builtin and then its argument prototype would still apply.  */
16382 #ifdef __cplusplus
16383 extern "C"
16384 #endif
16385 char $ac_func ();
16386 /* The GNU C library defines this for functions which it implements
16387     to always fail with ENOSYS.  Some functions are actually named
16388     something starting with __ and the normal name is an alias.  */
16389 #if defined __stub_$ac_func || defined __stub___$ac_func
16390 choke me
16391 #endif
16392
16393 int
16394 main ()
16395 {
16396 return $ac_func ();
16397   ;
16398   return 0;
16399 }
16400 _ACEOF
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (ac_try="$ac_link"
16403 case "(($ac_try" in
16404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405   *) ac_try_echo=$ac_try;;
16406 esac
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408   (eval "$ac_link") 2>conftest.er1
16409   ac_status=$?
16410   grep -v '^ *+' conftest.er1 >conftest.err
16411   rm -f conftest.er1
16412   cat conftest.err >&5
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); } && {
16415          test -z "$ac_c_werror_flag" ||
16416          test ! -s conftest.err
16417        } && test -s conftest$ac_exeext &&
16418        $as_test_x conftest$ac_exeext; then
16419   eval "$as_ac_var=yes"
16420 else
16421   echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16423
16424         eval "$as_ac_var=no"
16425 fi
16426
16427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16428       conftest$ac_exeext conftest.$ac_ext
16429 fi
16430 ac_res=`eval echo '${'$as_ac_var'}'`
16431                { echo "$as_me:$LINENO: result: $ac_res" >&5
16432 echo "${ECHO_T}$ac_res" >&6; }
16433 if test `eval echo '${'$as_ac_var'}'` = yes; then
16434   cat >>confdefs.h <<_ACEOF
16435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16436 _ACEOF
16437
16438 fi
16439 done
16440
16441 fi
16442 if test X"$with_interfaces" != X"no"; then
16443
16444 for ac_func in getifaddrs
16445 do
16446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16450   echo $ECHO_N "(cached) $ECHO_C" >&6
16451 else
16452   cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h.  */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h.  */
16458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16460 #define $ac_func innocuous_$ac_func
16461
16462 /* System header to define __stub macros and hopefully few prototypes,
16463     which can conflict with char $ac_func (); below.
16464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16465     <limits.h> exists even on freestanding compilers.  */
16466
16467 #ifdef __STDC__
16468 # include <limits.h>
16469 #else
16470 # include <assert.h>
16471 #endif
16472
16473 #undef $ac_func
16474
16475 /* Override any GCC internal prototype to avoid an error.
16476    Use char because int might match the return type of a GCC
16477    builtin and then its argument prototype would still apply.  */
16478 #ifdef __cplusplus
16479 extern "C"
16480 #endif
16481 char $ac_func ();
16482 /* The GNU C library defines this for functions which it implements
16483     to always fail with ENOSYS.  Some functions are actually named
16484     something starting with __ and the normal name is an alias.  */
16485 #if defined __stub_$ac_func || defined __stub___$ac_func
16486 choke me
16487 #endif
16488
16489 int
16490 main ()
16491 {
16492 return $ac_func ();
16493   ;
16494   return 0;
16495 }
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504   (eval "$ac_link") 2>conftest.er1
16505   ac_status=$?
16506   grep -v '^ *+' conftest.er1 >conftest.err
16507   rm -f conftest.er1
16508   cat conftest.err >&5
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); } && {
16511          test -z "$ac_c_werror_flag" ||
16512          test ! -s conftest.err
16513        } && test -s conftest$ac_exeext &&
16514        $as_test_x conftest$ac_exeext; then
16515   eval "$as_ac_var=yes"
16516 else
16517   echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16519
16520         eval "$as_ac_var=no"
16521 fi
16522
16523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16524       conftest$ac_exeext conftest.$ac_ext
16525 fi
16526 ac_res=`eval echo '${'$as_ac_var'}'`
16527                { echo "$as_me:$LINENO: result: $ac_res" >&5
16528 echo "${ECHO_T}$ac_res" >&6; }
16529 if test `eval echo '${'$as_ac_var'}'` = yes; then
16530   cat >>confdefs.h <<_ACEOF
16531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16532 _ACEOF
16533
16534 for ac_func in freeifaddrs
16535 do
16536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16540   echo $ECHO_N "(cached) $ECHO_C" >&6
16541 else
16542   cat >conftest.$ac_ext <<_ACEOF
16543 /* confdefs.h.  */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h.  */
16548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16550 #define $ac_func innocuous_$ac_func
16551
16552 /* System header to define __stub macros and hopefully few prototypes,
16553     which can conflict with char $ac_func (); below.
16554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16555     <limits.h> exists even on freestanding compilers.  */
16556
16557 #ifdef __STDC__
16558 # include <limits.h>
16559 #else
16560 # include <assert.h>
16561 #endif
16562
16563 #undef $ac_func
16564
16565 /* Override any GCC internal prototype to avoid an error.
16566    Use char because int might match the return type of a GCC
16567    builtin and then its argument prototype would still apply.  */
16568 #ifdef __cplusplus
16569 extern "C"
16570 #endif
16571 char $ac_func ();
16572 /* The GNU C library defines this for functions which it implements
16573     to always fail with ENOSYS.  Some functions are actually named
16574     something starting with __ and the normal name is an alias.  */
16575 #if defined __stub_$ac_func || defined __stub___$ac_func
16576 choke me
16577 #endif
16578
16579 int
16580 main ()
16581 {
16582 return $ac_func ();
16583   ;
16584   return 0;
16585 }
16586 _ACEOF
16587 rm -f conftest.$ac_objext conftest$ac_exeext
16588 if { (ac_try="$ac_link"
16589 case "(($ac_try" in
16590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591   *) ac_try_echo=$ac_try;;
16592 esac
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594   (eval "$ac_link") 2>conftest.er1
16595   ac_status=$?
16596   grep -v '^ *+' conftest.er1 >conftest.err
16597   rm -f conftest.er1
16598   cat conftest.err >&5
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); } && {
16601          test -z "$ac_c_werror_flag" ||
16602          test ! -s conftest.err
16603        } && test -s conftest$ac_exeext &&
16604        $as_test_x conftest$ac_exeext; then
16605   eval "$as_ac_var=yes"
16606 else
16607   echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610         eval "$as_ac_var=no"
16611 fi
16612
16613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16614       conftest$ac_exeext conftest.$ac_ext
16615 fi
16616 ac_res=`eval echo '${'$as_ac_var'}'`
16617                { echo "$as_me:$LINENO: result: $ac_res" >&5
16618 echo "${ECHO_T}$ac_res" >&6; }
16619 if test `eval echo '${'$as_ac_var'}'` = yes; then
16620   cat >>confdefs.h <<_ACEOF
16621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16622 _ACEOF
16623
16624 fi
16625 done
16626
16627 fi
16628 done
16629
16630 fi
16631 if test -z "$BROKEN_GETCWD"; then
16632
16633 for ac_func in getcwd
16634 do
16635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h.  */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h.  */
16647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16649 #define $ac_func innocuous_$ac_func
16650
16651 /* System header to define __stub macros and hopefully few prototypes,
16652     which can conflict with char $ac_func (); below.
16653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16654     <limits.h> exists even on freestanding compilers.  */
16655
16656 #ifdef __STDC__
16657 # include <limits.h>
16658 #else
16659 # include <assert.h>
16660 #endif
16661
16662 #undef $ac_func
16663
16664 /* Override any GCC internal prototype to avoid an error.
16665    Use char because int might match the return type of a GCC
16666    builtin and then its argument prototype would still apply.  */
16667 #ifdef __cplusplus
16668 extern "C"
16669 #endif
16670 char $ac_func ();
16671 /* The GNU C library defines this for functions which it implements
16672     to always fail with ENOSYS.  Some functions are actually named
16673     something starting with __ and the normal name is an alias.  */
16674 #if defined __stub_$ac_func || defined __stub___$ac_func
16675 choke me
16676 #endif
16677
16678 int
16679 main ()
16680 {
16681 return $ac_func ();
16682   ;
16683   return 0;
16684 }
16685 _ACEOF
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (ac_try="$ac_link"
16688 case "(($ac_try" in
16689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690   *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693   (eval "$ac_link") 2>conftest.er1
16694   ac_status=$?
16695   grep -v '^ *+' conftest.er1 >conftest.err
16696   rm -f conftest.er1
16697   cat conftest.err >&5
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); } && {
16700          test -z "$ac_c_werror_flag" ||
16701          test ! -s conftest.err
16702        } && test -s conftest$ac_exeext &&
16703        $as_test_x conftest$ac_exeext; then
16704   eval "$as_ac_var=yes"
16705 else
16706   echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709         eval "$as_ac_var=no"
16710 fi
16711
16712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16713       conftest$ac_exeext conftest.$ac_ext
16714 fi
16715 ac_res=`eval echo '${'$as_ac_var'}'`
16716                { echo "$as_me:$LINENO: result: $ac_res" >&5
16717 echo "${ECHO_T}$ac_res" >&6; }
16718 if test `eval echo '${'$as_ac_var'}'` = yes; then
16719   cat >>confdefs.h <<_ACEOF
16720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16721 _ACEOF
16722
16723 else
16724   case " $LIBOBJS " in
16725   *" $ac_func.$ac_objext "* ) ;;
16726   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16727  ;;
16728 esac
16729
16730 fi
16731 done
16732
16733
16734 fi
16735
16736 for ac_func in glob
16737 do
16738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16742   echo $ECHO_N "(cached) $ECHO_C" >&6
16743 else
16744   cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16752 #define $ac_func innocuous_$ac_func
16753
16754 /* System header to define __stub macros and hopefully few prototypes,
16755     which can conflict with char $ac_func (); below.
16756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16757     <limits.h> exists even on freestanding compilers.  */
16758
16759 #ifdef __STDC__
16760 # include <limits.h>
16761 #else
16762 # include <assert.h>
16763 #endif
16764
16765 #undef $ac_func
16766
16767 /* Override any GCC internal prototype to avoid an error.
16768    Use char because int might match the return type of a GCC
16769    builtin and then its argument prototype would still apply.  */
16770 #ifdef __cplusplus
16771 extern "C"
16772 #endif
16773 char $ac_func ();
16774 /* The GNU C library defines this for functions which it implements
16775     to always fail with ENOSYS.  Some functions are actually named
16776     something starting with __ and the normal name is an alias.  */
16777 #if defined __stub_$ac_func || defined __stub___$ac_func
16778 choke me
16779 #endif
16780
16781 int
16782 main ()
16783 {
16784 return $ac_func ();
16785   ;
16786   return 0;
16787 }
16788 _ACEOF
16789 rm -f conftest.$ac_objext conftest$ac_exeext
16790 if { (ac_try="$ac_link"
16791 case "(($ac_try" in
16792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793   *) ac_try_echo=$ac_try;;
16794 esac
16795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796   (eval "$ac_link") 2>conftest.er1
16797   ac_status=$?
16798   grep -v '^ *+' conftest.er1 >conftest.err
16799   rm -f conftest.er1
16800   cat conftest.err >&5
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); } && {
16803          test -z "$ac_c_werror_flag" ||
16804          test ! -s conftest.err
16805        } && test -s conftest$ac_exeext &&
16806        $as_test_x conftest$ac_exeext; then
16807   eval "$as_ac_var=yes"
16808 else
16809   echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16811
16812         eval "$as_ac_var=no"
16813 fi
16814
16815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16816       conftest$ac_exeext conftest.$ac_ext
16817 fi
16818 ac_res=`eval echo '${'$as_ac_var'}'`
16819                { echo "$as_me:$LINENO: result: $ac_res" >&5
16820 echo "${ECHO_T}$ac_res" >&6; }
16821 if test `eval echo '${'$as_ac_var'}'` = yes; then
16822   cat >>confdefs.h <<_ACEOF
16823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16824 _ACEOF
16825  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16826 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
16827 cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833 #include <glob.h>
16834 int
16835 main ()
16836 {
16837 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16838   ;
16839   return 0;
16840 }
16841 _ACEOF
16842 rm -f conftest.$ac_objext
16843 if { (ac_try="$ac_compile"
16844 case "(($ac_try" in
16845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846   *) ac_try_echo=$ac_try;;
16847 esac
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849   (eval "$ac_compile") 2>conftest.er1
16850   ac_status=$?
16851   grep -v '^ *+' conftest.er1 >conftest.err
16852   rm -f conftest.er1
16853   cat conftest.err >&5
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); } && {
16856          test -z "$ac_c_werror_flag" ||
16857          test ! -s conftest.err
16858        } && test -s conftest.$ac_objext; then
16859   cat >>confdefs.h <<\_ACEOF
16860 #define HAVE_EXTENDED_GLOB 1
16861 _ACEOF
16862
16863     { echo "$as_me:$LINENO: result: yes" >&5
16864 echo "${ECHO_T}yes" >&6; }
16865 else
16866   echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16868
16869         case " $LIBOBJS " in
16870   *" glob.$ac_objext "* ) ;;
16871   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16872  ;;
16873 esac
16874
16875     { echo "$as_me:$LINENO: result: no" >&5
16876 echo "${ECHO_T}no" >&6; }
16877 fi
16878
16879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880 else
16881   case " $LIBOBJS " in
16882   *" glob.$ac_objext "* ) ;;
16883   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16884  ;;
16885 esac
16886
16887 fi
16888 done
16889
16890
16891
16892 for ac_func in lockf flock
16893 do
16894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16898   echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900   cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16908 #define $ac_func innocuous_$ac_func
16909
16910 /* System header to define __stub macros and hopefully few prototypes,
16911     which can conflict with char $ac_func (); below.
16912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16913     <limits.h> exists even on freestanding compilers.  */
16914
16915 #ifdef __STDC__
16916 # include <limits.h>
16917 #else
16918 # include <assert.h>
16919 #endif
16920
16921 #undef $ac_func
16922
16923 /* Override any GCC internal prototype to avoid an error.
16924    Use char because int might match the return type of a GCC
16925    builtin and then its argument prototype would still apply.  */
16926 #ifdef __cplusplus
16927 extern "C"
16928 #endif
16929 char $ac_func ();
16930 /* The GNU C library defines this for functions which it implements
16931     to always fail with ENOSYS.  Some functions are actually named
16932     something starting with __ and the normal name is an alias.  */
16933 #if defined __stub_$ac_func || defined __stub___$ac_func
16934 choke me
16935 #endif
16936
16937 int
16938 main ()
16939 {
16940 return $ac_func ();
16941   ;
16942   return 0;
16943 }
16944 _ACEOF
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (ac_try="$ac_link"
16947 case "(($ac_try" in
16948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949   *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952   (eval "$ac_link") 2>conftest.er1
16953   ac_status=$?
16954   grep -v '^ *+' conftest.er1 >conftest.err
16955   rm -f conftest.er1
16956   cat conftest.err >&5
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); } && {
16959          test -z "$ac_c_werror_flag" ||
16960          test ! -s conftest.err
16961        } && test -s conftest$ac_exeext &&
16962        $as_test_x conftest$ac_exeext; then
16963   eval "$as_ac_var=yes"
16964 else
16965   echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16967
16968         eval "$as_ac_var=no"
16969 fi
16970
16971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16972       conftest$ac_exeext conftest.$ac_ext
16973 fi
16974 ac_res=`eval echo '${'$as_ac_var'}'`
16975                { echo "$as_me:$LINENO: result: $ac_res" >&5
16976 echo "${ECHO_T}$ac_res" >&6; }
16977 if test `eval echo '${'$as_ac_var'}'` = yes; then
16978   cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16980 _ACEOF
16981  break
16982 fi
16983 done
16984
16985
16986
16987 for ac_func in waitpid wait3
16988 do
16989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16993   echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995   cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h.  */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h.  */
17001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17003 #define $ac_func innocuous_$ac_func
17004
17005 /* System header to define __stub macros and hopefully few prototypes,
17006     which can conflict with char $ac_func (); below.
17007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17008     <limits.h> exists even on freestanding compilers.  */
17009
17010 #ifdef __STDC__
17011 # include <limits.h>
17012 #else
17013 # include <assert.h>
17014 #endif
17015
17016 #undef $ac_func
17017
17018 /* Override any GCC internal prototype to avoid an error.
17019    Use char because int might match the return type of a GCC
17020    builtin and then its argument prototype would still apply.  */
17021 #ifdef __cplusplus
17022 extern "C"
17023 #endif
17024 char $ac_func ();
17025 /* The GNU C library defines this for functions which it implements
17026     to always fail with ENOSYS.  Some functions are actually named
17027     something starting with __ and the normal name is an alias.  */
17028 #if defined __stub_$ac_func || defined __stub___$ac_func
17029 choke me
17030 #endif
17031
17032 int
17033 main ()
17034 {
17035 return $ac_func ();
17036   ;
17037   return 0;
17038 }
17039 _ACEOF
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (ac_try="$ac_link"
17042 case "(($ac_try" in
17043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044   *) ac_try_echo=$ac_try;;
17045 esac
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047   (eval "$ac_link") 2>conftest.er1
17048   ac_status=$?
17049   grep -v '^ *+' conftest.er1 >conftest.err
17050   rm -f conftest.er1
17051   cat conftest.err >&5
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); } && {
17054          test -z "$ac_c_werror_flag" ||
17055          test ! -s conftest.err
17056        } && test -s conftest$ac_exeext &&
17057        $as_test_x conftest$ac_exeext; then
17058   eval "$as_ac_var=yes"
17059 else
17060   echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17062
17063         eval "$as_ac_var=no"
17064 fi
17065
17066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17067       conftest$ac_exeext conftest.$ac_ext
17068 fi
17069 ac_res=`eval echo '${'$as_ac_var'}'`
17070                { echo "$as_me:$LINENO: result: $ac_res" >&5
17071 echo "${ECHO_T}$ac_res" >&6; }
17072 if test `eval echo '${'$as_ac_var'}'` = yes; then
17073   cat >>confdefs.h <<_ACEOF
17074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17075 _ACEOF
17076  break
17077 fi
17078 done
17079
17080
17081
17082 for ac_func in innetgr _innetgr
17083 do
17084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17088   echo $ECHO_N "(cached) $ECHO_C" >&6
17089 else
17090   cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h.  */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h.  */
17096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17098 #define $ac_func innocuous_$ac_func
17099
17100 /* System header to define __stub macros and hopefully few prototypes,
17101     which can conflict with char $ac_func (); below.
17102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17103     <limits.h> exists even on freestanding compilers.  */
17104
17105 #ifdef __STDC__
17106 # include <limits.h>
17107 #else
17108 # include <assert.h>
17109 #endif
17110
17111 #undef $ac_func
17112
17113 /* Override any GCC internal prototype to avoid an error.
17114    Use char because int might match the return type of a GCC
17115    builtin and then its argument prototype would still apply.  */
17116 #ifdef __cplusplus
17117 extern "C"
17118 #endif
17119 char $ac_func ();
17120 /* The GNU C library defines this for functions which it implements
17121     to always fail with ENOSYS.  Some functions are actually named
17122     something starting with __ and the normal name is an alias.  */
17123 #if defined __stub_$ac_func || defined __stub___$ac_func
17124 choke me
17125 #endif
17126
17127 int
17128 main ()
17129 {
17130 return $ac_func ();
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139   *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142   (eval "$ac_link") 2>conftest.er1
17143   ac_status=$?
17144   grep -v '^ *+' conftest.er1 >conftest.err
17145   rm -f conftest.er1
17146   cat conftest.err >&5
17147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); } && {
17149          test -z "$ac_c_werror_flag" ||
17150          test ! -s conftest.err
17151        } && test -s conftest$ac_exeext &&
17152        $as_test_x conftest$ac_exeext; then
17153   eval "$as_ac_var=yes"
17154 else
17155   echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158         eval "$as_ac_var=no"
17159 fi
17160
17161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17162       conftest$ac_exeext conftest.$ac_ext
17163 fi
17164 ac_res=`eval echo '${'$as_ac_var'}'`
17165                { echo "$as_me:$LINENO: result: $ac_res" >&5
17166 echo "${ECHO_T}$ac_res" >&6; }
17167 if test `eval echo '${'$as_ac_var'}'` = yes; then
17168   cat >>confdefs.h <<_ACEOF
17169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17170 _ACEOF
17171
17172 for ac_func in getdomainname
17173 do
17174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17178   echo $ECHO_N "(cached) $ECHO_C" >&6
17179 else
17180   cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h.  */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h.  */
17186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17188 #define $ac_func innocuous_$ac_func
17189
17190 /* System header to define __stub macros and hopefully few prototypes,
17191     which can conflict with char $ac_func (); below.
17192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17193     <limits.h> exists even on freestanding compilers.  */
17194
17195 #ifdef __STDC__
17196 # include <limits.h>
17197 #else
17198 # include <assert.h>
17199 #endif
17200
17201 #undef $ac_func
17202
17203 /* Override any GCC internal prototype to avoid an error.
17204    Use char because int might match the return type of a GCC
17205    builtin and then its argument prototype would still apply.  */
17206 #ifdef __cplusplus
17207 extern "C"
17208 #endif
17209 char $ac_func ();
17210 /* The GNU C library defines this for functions which it implements
17211     to always fail with ENOSYS.  Some functions are actually named
17212     something starting with __ and the normal name is an alias.  */
17213 #if defined __stub_$ac_func || defined __stub___$ac_func
17214 choke me
17215 #endif
17216
17217 int
17218 main ()
17219 {
17220 return $ac_func ();
17221   ;
17222   return 0;
17223 }
17224 _ACEOF
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229   *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232   (eval "$ac_link") 2>conftest.er1
17233   ac_status=$?
17234   grep -v '^ *+' conftest.er1 >conftest.err
17235   rm -f conftest.er1
17236   cat conftest.err >&5
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); } && {
17239          test -z "$ac_c_werror_flag" ||
17240          test ! -s conftest.err
17241        } && test -s conftest$ac_exeext &&
17242        $as_test_x conftest$ac_exeext; then
17243   eval "$as_ac_var=yes"
17244 else
17245   echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248         eval "$as_ac_var=no"
17249 fi
17250
17251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17252       conftest$ac_exeext conftest.$ac_ext
17253 fi
17254 ac_res=`eval echo '${'$as_ac_var'}'`
17255                { echo "$as_me:$LINENO: result: $ac_res" >&5
17256 echo "${ECHO_T}$ac_res" >&6; }
17257 if test `eval echo '${'$as_ac_var'}'` = yes; then
17258   cat >>confdefs.h <<_ACEOF
17259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17260 _ACEOF
17261
17262 fi
17263 done
17264  break
17265 fi
17266 done
17267
17268
17269 for ac_func in utimes
17270 do
17271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17275   echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277   cat >conftest.$ac_ext <<_ACEOF
17278 /* confdefs.h.  */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h.  */
17283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17285 #define $ac_func innocuous_$ac_func
17286
17287 /* System header to define __stub macros and hopefully few prototypes,
17288     which can conflict with char $ac_func (); below.
17289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17290     <limits.h> exists even on freestanding compilers.  */
17291
17292 #ifdef __STDC__
17293 # include <limits.h>
17294 #else
17295 # include <assert.h>
17296 #endif
17297
17298 #undef $ac_func
17299
17300 /* Override any GCC internal prototype to avoid an error.
17301    Use char because int might match the return type of a GCC
17302    builtin and then its argument prototype would still apply.  */
17303 #ifdef __cplusplus
17304 extern "C"
17305 #endif
17306 char $ac_func ();
17307 /* The GNU C library defines this for functions which it implements
17308     to always fail with ENOSYS.  Some functions are actually named
17309     something starting with __ and the normal name is an alias.  */
17310 #if defined __stub_$ac_func || defined __stub___$ac_func
17311 choke me
17312 #endif
17313
17314 int
17315 main ()
17316 {
17317 return $ac_func ();
17318   ;
17319   return 0;
17320 }
17321 _ACEOF
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (ac_try="$ac_link"
17324 case "(($ac_try" in
17325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326   *) ac_try_echo=$ac_try;;
17327 esac
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329   (eval "$ac_link") 2>conftest.er1
17330   ac_status=$?
17331   grep -v '^ *+' conftest.er1 >conftest.err
17332   rm -f conftest.er1
17333   cat conftest.err >&5
17334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335   (exit $ac_status); } && {
17336          test -z "$ac_c_werror_flag" ||
17337          test ! -s conftest.err
17338        } && test -s conftest$ac_exeext &&
17339        $as_test_x conftest$ac_exeext; then
17340   eval "$as_ac_var=yes"
17341 else
17342   echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17344
17345         eval "$as_ac_var=no"
17346 fi
17347
17348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17349       conftest$ac_exeext conftest.$ac_ext
17350 fi
17351 ac_res=`eval echo '${'$as_ac_var'}'`
17352                { echo "$as_me:$LINENO: result: $ac_res" >&5
17353 echo "${ECHO_T}$ac_res" >&6; }
17354 if test `eval echo '${'$as_ac_var'}'` = yes; then
17355   cat >>confdefs.h <<_ACEOF
17356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17357 _ACEOF
17358
17359
17360 for ac_func in futimes futimesat
17361 do
17362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17366   echo $ECHO_N "(cached) $ECHO_C" >&6
17367 else
17368   cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17376 #define $ac_func innocuous_$ac_func
17377
17378 /* System header to define __stub macros and hopefully few prototypes,
17379     which can conflict with char $ac_func (); below.
17380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381     <limits.h> exists even on freestanding compilers.  */
17382
17383 #ifdef __STDC__
17384 # include <limits.h>
17385 #else
17386 # include <assert.h>
17387 #endif
17388
17389 #undef $ac_func
17390
17391 /* Override any GCC internal prototype to avoid an error.
17392    Use char because int might match the return type of a GCC
17393    builtin and then its argument prototype would still apply.  */
17394 #ifdef __cplusplus
17395 extern "C"
17396 #endif
17397 char $ac_func ();
17398 /* The GNU C library defines this for functions which it implements
17399     to always fail with ENOSYS.  Some functions are actually named
17400     something starting with __ and the normal name is an alias.  */
17401 #if defined __stub_$ac_func || defined __stub___$ac_func
17402 choke me
17403 #endif
17404
17405 int
17406 main ()
17407 {
17408 return $ac_func ();
17409   ;
17410   return 0;
17411 }
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (ac_try="$ac_link"
17415 case "(($ac_try" in
17416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417   *) ac_try_echo=$ac_try;;
17418 esac
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420   (eval "$ac_link") 2>conftest.er1
17421   ac_status=$?
17422   grep -v '^ *+' conftest.er1 >conftest.err
17423   rm -f conftest.er1
17424   cat conftest.err >&5
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); } && {
17427          test -z "$ac_c_werror_flag" ||
17428          test ! -s conftest.err
17429        } && test -s conftest$ac_exeext &&
17430        $as_test_x conftest$ac_exeext; then
17431   eval "$as_ac_var=yes"
17432 else
17433   echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17435
17436         eval "$as_ac_var=no"
17437 fi
17438
17439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17440       conftest$ac_exeext conftest.$ac_ext
17441 fi
17442 ac_res=`eval echo '${'$as_ac_var'}'`
17443                { echo "$as_me:$LINENO: result: $ac_res" >&5
17444 echo "${ECHO_T}$ac_res" >&6; }
17445 if test `eval echo '${'$as_ac_var'}'` = yes; then
17446   cat >>confdefs.h <<_ACEOF
17447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17448 _ACEOF
17449  break
17450 fi
17451 done
17452
17453 else
17454
17455 for ac_func in futime
17456 do
17457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463   cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h.  */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h.  */
17469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17471 #define $ac_func innocuous_$ac_func
17472
17473 /* System header to define __stub macros and hopefully few prototypes,
17474     which can conflict with char $ac_func (); below.
17475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17476     <limits.h> exists even on freestanding compilers.  */
17477
17478 #ifdef __STDC__
17479 # include <limits.h>
17480 #else
17481 # include <assert.h>
17482 #endif
17483
17484 #undef $ac_func
17485
17486 /* Override any GCC internal prototype to avoid an error.
17487    Use char because int might match the return type of a GCC
17488    builtin and then its argument prototype would still apply.  */
17489 #ifdef __cplusplus
17490 extern "C"
17491 #endif
17492 char $ac_func ();
17493 /* The GNU C library defines this for functions which it implements
17494     to always fail with ENOSYS.  Some functions are actually named
17495     something starting with __ and the normal name is an alias.  */
17496 #if defined __stub_$ac_func || defined __stub___$ac_func
17497 choke me
17498 #endif
17499
17500 int
17501 main ()
17502 {
17503 return $ac_func ();
17504   ;
17505   return 0;
17506 }
17507 _ACEOF
17508 rm -f conftest.$ac_objext conftest$ac_exeext
17509 if { (ac_try="$ac_link"
17510 case "(($ac_try" in
17511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512   *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515   (eval "$ac_link") 2>conftest.er1
17516   ac_status=$?
17517   grep -v '^ *+' conftest.er1 >conftest.err
17518   rm -f conftest.er1
17519   cat conftest.err >&5
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); } && {
17522          test -z "$ac_c_werror_flag" ||
17523          test ! -s conftest.err
17524        } && test -s conftest$ac_exeext &&
17525        $as_test_x conftest$ac_exeext; then
17526   eval "$as_ac_var=yes"
17527 else
17528   echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17530
17531         eval "$as_ac_var=no"
17532 fi
17533
17534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17535       conftest$ac_exeext conftest.$ac_ext
17536 fi
17537 ac_res=`eval echo '${'$as_ac_var'}'`
17538                { echo "$as_me:$LINENO: result: $ac_res" >&5
17539 echo "${ECHO_T}$ac_res" >&6; }
17540 if test `eval echo '${'$as_ac_var'}'` = yes; then
17541   cat >>confdefs.h <<_ACEOF
17542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17543 _ACEOF
17544
17545 fi
17546 done
17547  case " $LIBOBJS " in
17548   *" utimes.$ac_objext "* ) ;;
17549   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17550  ;;
17551 esac
17552
17553 fi
17554 done
17555
17556 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17557 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17558 if test "${sudo_cv_func_fnmatch+set}" = set; then
17559   echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561   rm -f conftestdata; > conftestdata
17562 if test "$cross_compiling" = yes; then
17563   sudo_cv_func_fnmatch=no
17564 else
17565   cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h.  */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h.  */
17571 #include <fnmatch.h>
17572 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17573 _ACEOF
17574 rm -f conftest$ac_exeext
17575 if { (ac_try="$ac_link"
17576 case "(($ac_try" in
17577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578   *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581   (eval "$ac_link") 2>&5
17582   ac_status=$?
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17585   { (case "(($ac_try" in
17586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587   *) ac_try_echo=$ac_try;;
17588 esac
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590   (eval "$ac_try") 2>&5
17591   ac_status=$?
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); }; }; then
17594   sudo_cv_func_fnmatch=yes
17595 else
17596   echo "$as_me: program exited with status $ac_status" >&5
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 ( exit $ac_status )
17601 sudo_cv_func_fnmatch=no
17602 fi
17603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17604 fi
17605
17606
17607 rm -f core core.* *.core
17608 fi
17609
17610 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17611 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17612 if test $sudo_cv_func_fnmatch = yes; then
17613   cat >>confdefs.h <<\_ACEOF
17614 #define HAVE_FNMATCH 1
17615 _ACEOF
17616
17617 else
17618   case " $LIBOBJS " in
17619   *" fnmatch.$ac_objext "* ) ;;
17620   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17621  ;;
17622 esac
17623
17624 fi
17625
17626 { echo "$as_me:$LINENO: checking for isblank" >&5
17627 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17628 if test "${sudo_cv_func_isblank+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631   cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h.  */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h.  */
17637 #include <ctype.h>
17638 int
17639 main ()
17640 {
17641 return (isblank('a'));
17642   ;
17643   return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (ac_try="$ac_link"
17648 case "(($ac_try" in
17649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650   *) ac_try_echo=$ac_try;;
17651 esac
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653   (eval "$ac_link") 2>conftest.er1
17654   ac_status=$?
17655   grep -v '^ *+' conftest.er1 >conftest.err
17656   rm -f conftest.er1
17657   cat conftest.err >&5
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); } && {
17660          test -z "$ac_c_werror_flag" ||
17661          test ! -s conftest.err
17662        } && test -s conftest$ac_exeext &&
17663        $as_test_x conftest$ac_exeext; then
17664   sudo_cv_func_isblank=yes
17665 else
17666   echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17668
17669         sudo_cv_func_isblank=no
17670 fi
17671
17672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17673       conftest$ac_exeext conftest.$ac_ext
17674 fi
17675 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17676 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17677
17678   if test "$sudo_cv_func_isblank" = "yes"; then
17679
17680 cat >>confdefs.h <<\_ACEOF
17681 #define HAVE_ISBLANK 1
17682 _ACEOF
17683
17684   else
17685     case " $LIBOBJS " in
17686   *" isblank.$ac_objext "* ) ;;
17687   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17688  ;;
17689 esac
17690
17691   fi
17692
17693
17694
17695
17696
17697
17698
17699 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17700 do
17701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17705   echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707   cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h.  */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h.  */
17713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17715 #define $ac_func innocuous_$ac_func
17716
17717 /* System header to define __stub macros and hopefully few prototypes,
17718     which can conflict with char $ac_func (); below.
17719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17720     <limits.h> exists even on freestanding compilers.  */
17721
17722 #ifdef __STDC__
17723 # include <limits.h>
17724 #else
17725 # include <assert.h>
17726 #endif
17727
17728 #undef $ac_func
17729
17730 /* Override any GCC internal prototype to avoid an error.
17731    Use char because int might match the return type of a GCC
17732    builtin and then its argument prototype would still apply.  */
17733 #ifdef __cplusplus
17734 extern "C"
17735 #endif
17736 char $ac_func ();
17737 /* The GNU C library defines this for functions which it implements
17738     to always fail with ENOSYS.  Some functions are actually named
17739     something starting with __ and the normal name is an alias.  */
17740 #if defined __stub_$ac_func || defined __stub___$ac_func
17741 choke me
17742 #endif
17743
17744 int
17745 main ()
17746 {
17747 return $ac_func ();
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (ac_try="$ac_link"
17754 case "(($ac_try" in
17755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756   *) ac_try_echo=$ac_try;;
17757 esac
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759   (eval "$ac_link") 2>conftest.er1
17760   ac_status=$?
17761   grep -v '^ *+' conftest.er1 >conftest.err
17762   rm -f conftest.er1
17763   cat conftest.err >&5
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); } && {
17766          test -z "$ac_c_werror_flag" ||
17767          test ! -s conftest.err
17768        } && test -s conftest$ac_exeext &&
17769        $as_test_x conftest$ac_exeext; then
17770   eval "$as_ac_var=yes"
17771 else
17772   echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17774
17775         eval "$as_ac_var=no"
17776 fi
17777
17778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17779       conftest$ac_exeext conftest.$ac_ext
17780 fi
17781 ac_res=`eval echo '${'$as_ac_var'}'`
17782                { echo "$as_me:$LINENO: result: $ac_res" >&5
17783 echo "${ECHO_T}$ac_res" >&6; }
17784 if test `eval echo '${'$as_ac_var'}'` = yes; then
17785   cat >>confdefs.h <<_ACEOF
17786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17787 _ACEOF
17788
17789 else
17790   case " $LIBOBJS " in
17791   *" $ac_func.$ac_objext "* ) ;;
17792   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17793  ;;
17794 esac
17795
17796 fi
17797 done
17798
17799
17800
17801 for ac_func in closefrom
17802 do
17803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17807   echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809   cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h.  */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h.  */
17815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17817 #define $ac_func innocuous_$ac_func
17818
17819 /* System header to define __stub macros and hopefully few prototypes,
17820     which can conflict with char $ac_func (); below.
17821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17822     <limits.h> exists even on freestanding compilers.  */
17823
17824 #ifdef __STDC__
17825 # include <limits.h>
17826 #else
17827 # include <assert.h>
17828 #endif
17829
17830 #undef $ac_func
17831
17832 /* Override any GCC internal prototype to avoid an error.
17833    Use char because int might match the return type of a GCC
17834    builtin and then its argument prototype would still apply.  */
17835 #ifdef __cplusplus
17836 extern "C"
17837 #endif
17838 char $ac_func ();
17839 /* The GNU C library defines this for functions which it implements
17840     to always fail with ENOSYS.  Some functions are actually named
17841     something starting with __ and the normal name is an alias.  */
17842 #if defined __stub_$ac_func || defined __stub___$ac_func
17843 choke me
17844 #endif
17845
17846 int
17847 main ()
17848 {
17849 return $ac_func ();
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (ac_try="$ac_link"
17856 case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861   (eval "$ac_link") 2>conftest.er1
17862   ac_status=$?
17863   grep -v '^ *+' conftest.er1 >conftest.err
17864   rm -f conftest.er1
17865   cat conftest.err >&5
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); } && {
17868          test -z "$ac_c_werror_flag" ||
17869          test ! -s conftest.err
17870        } && test -s conftest$ac_exeext &&
17871        $as_test_x conftest$ac_exeext; then
17872   eval "$as_ac_var=yes"
17873 else
17874   echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877         eval "$as_ac_var=no"
17878 fi
17879
17880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17881       conftest$ac_exeext conftest.$ac_ext
17882 fi
17883 ac_res=`eval echo '${'$as_ac_var'}'`
17884                { echo "$as_me:$LINENO: result: $ac_res" >&5
17885 echo "${ECHO_T}$ac_res" >&6; }
17886 if test `eval echo '${'$as_ac_var'}'` = yes; then
17887   cat >>confdefs.h <<_ACEOF
17888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17889 _ACEOF
17890
17891 else
17892   case " $LIBOBJS " in
17893   *" closefrom.$ac_objext "* ) ;;
17894   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17895  ;;
17896 esac
17897
17898     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17899 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17900 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17901   echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903   cat >conftest.$ac_ext <<_ACEOF
17904 /* confdefs.h.  */
17905 _ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h.  */
17909  #include <limits.h>
17910           #include <fcntl.h>
17911
17912 int
17913 main ()
17914 {
17915 #ifndef F_CLOSEM
17916   (void) F_CLOSEM;
17917 #endif
17918
17919   ;
17920   return 0;
17921 }
17922 _ACEOF
17923 rm -f conftest.$ac_objext
17924 if { (ac_try="$ac_compile"
17925 case "(($ac_try" in
17926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927   *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930   (eval "$ac_compile") 2>conftest.er1
17931   ac_status=$?
17932   grep -v '^ *+' conftest.er1 >conftest.err
17933   rm -f conftest.er1
17934   cat conftest.err >&5
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); } && {
17937          test -z "$ac_c_werror_flag" ||
17938          test ! -s conftest.err
17939        } && test -s conftest.$ac_objext; then
17940   ac_cv_have_decl_F_CLOSEM=yes
17941 else
17942   echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17944
17945         ac_cv_have_decl_F_CLOSEM=no
17946 fi
17947
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949 fi
17950 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17951 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17952 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17953   cat >>confdefs.h <<\_ACEOF
17954 #define HAVE_FCNTL_CLOSEM 1
17955 _ACEOF
17956
17957 fi
17958
17959
17960 fi
17961 done
17962
17963
17964 for ac_func in mkstemp
17965 do
17966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17970   echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17972   cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h.  */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h.  */
17978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17980 #define $ac_func innocuous_$ac_func
17981
17982 /* System header to define __stub macros and hopefully few prototypes,
17983     which can conflict with char $ac_func (); below.
17984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17985     <limits.h> exists even on freestanding compilers.  */
17986
17987 #ifdef __STDC__
17988 # include <limits.h>
17989 #else
17990 # include <assert.h>
17991 #endif
17992
17993 #undef $ac_func
17994
17995 /* Override any GCC internal prototype to avoid an error.
17996    Use char because int might match the return type of a GCC
17997    builtin and then its argument prototype would still apply.  */
17998 #ifdef __cplusplus
17999 extern "C"
18000 #endif
18001 char $ac_func ();
18002 /* The GNU C library defines this for functions which it implements
18003     to always fail with ENOSYS.  Some functions are actually named
18004     something starting with __ and the normal name is an alias.  */
18005 #if defined __stub_$ac_func || defined __stub___$ac_func
18006 choke me
18007 #endif
18008
18009 int
18010 main ()
18011 {
18012 return $ac_func ();
18013   ;
18014   return 0;
18015 }
18016 _ACEOF
18017 rm -f conftest.$ac_objext conftest$ac_exeext
18018 if { (ac_try="$ac_link"
18019 case "(($ac_try" in
18020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021   *) ac_try_echo=$ac_try;;
18022 esac
18023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024   (eval "$ac_link") 2>conftest.er1
18025   ac_status=$?
18026   grep -v '^ *+' conftest.er1 >conftest.err
18027   rm -f conftest.er1
18028   cat conftest.err >&5
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); } && {
18031          test -z "$ac_c_werror_flag" ||
18032          test ! -s conftest.err
18033        } && test -s conftest$ac_exeext &&
18034        $as_test_x conftest$ac_exeext; then
18035   eval "$as_ac_var=yes"
18036 else
18037   echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.$ac_ext >&5
18039
18040         eval "$as_ac_var=no"
18041 fi
18042
18043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18044       conftest$ac_exeext conftest.$ac_ext
18045 fi
18046 ac_res=`eval echo '${'$as_ac_var'}'`
18047                { echo "$as_me:$LINENO: result: $ac_res" >&5
18048 echo "${ECHO_T}$ac_res" >&6; }
18049 if test `eval echo '${'$as_ac_var'}'` = yes; then
18050   cat >>confdefs.h <<_ACEOF
18051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18052 _ACEOF
18053
18054 else
18055   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
18056
18057
18058 for ac_func in random lrand48
18059 do
18060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18064   echo $ECHO_N "(cached) $ECHO_C" >&6
18065 else
18066   cat >conftest.$ac_ext <<_ACEOF
18067 /* confdefs.h.  */
18068 _ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h.  */
18072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18074 #define $ac_func innocuous_$ac_func
18075
18076 /* System header to define __stub macros and hopefully few prototypes,
18077     which can conflict with char $ac_func (); below.
18078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18079     <limits.h> exists even on freestanding compilers.  */
18080
18081 #ifdef __STDC__
18082 # include <limits.h>
18083 #else
18084 # include <assert.h>
18085 #endif
18086
18087 #undef $ac_func
18088
18089 /* Override any GCC internal prototype to avoid an error.
18090    Use char because int might match the return type of a GCC
18091    builtin and then its argument prototype would still apply.  */
18092 #ifdef __cplusplus
18093 extern "C"
18094 #endif
18095 char $ac_func ();
18096 /* The GNU C library defines this for functions which it implements
18097     to always fail with ENOSYS.  Some functions are actually named
18098     something starting with __ and the normal name is an alias.  */
18099 #if defined __stub_$ac_func || defined __stub___$ac_func
18100 choke me
18101 #endif
18102
18103 int
18104 main ()
18105 {
18106 return $ac_func ();
18107   ;
18108   return 0;
18109 }
18110 _ACEOF
18111 rm -f conftest.$ac_objext conftest$ac_exeext
18112 if { (ac_try="$ac_link"
18113 case "(($ac_try" in
18114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115   *) ac_try_echo=$ac_try;;
18116 esac
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118   (eval "$ac_link") 2>conftest.er1
18119   ac_status=$?
18120   grep -v '^ *+' conftest.er1 >conftest.err
18121   rm -f conftest.er1
18122   cat conftest.err >&5
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); } && {
18125          test -z "$ac_c_werror_flag" ||
18126          test ! -s conftest.err
18127        } && test -s conftest$ac_exeext &&
18128        $as_test_x conftest$ac_exeext; then
18129   eval "$as_ac_var=yes"
18130 else
18131   echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18133
18134         eval "$as_ac_var=no"
18135 fi
18136
18137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18138       conftest$ac_exeext conftest.$ac_ext
18139 fi
18140 ac_res=`eval echo '${'$as_ac_var'}'`
18141                { echo "$as_me:$LINENO: result: $ac_res" >&5
18142 echo "${ECHO_T}$ac_res" >&6; }
18143 if test `eval echo '${'$as_ac_var'}'` = yes; then
18144   cat >>confdefs.h <<_ACEOF
18145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18146 _ACEOF
18147  break
18148 fi
18149 done
18150
18151
18152 fi
18153 done
18154
18155
18156
18157
18158
18159 for ac_func in snprintf vsnprintf asprintf vasprintf
18160 do
18161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18162 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18165   echo $ECHO_N "(cached) $ECHO_C" >&6
18166 else
18167   cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h.  */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h.  */
18173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18175 #define $ac_func innocuous_$ac_func
18176
18177 /* System header to define __stub macros and hopefully few prototypes,
18178     which can conflict with char $ac_func (); below.
18179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180     <limits.h> exists even on freestanding compilers.  */
18181
18182 #ifdef __STDC__
18183 # include <limits.h>
18184 #else
18185 # include <assert.h>
18186 #endif
18187
18188 #undef $ac_func
18189
18190 /* Override any GCC internal prototype to avoid an error.
18191    Use char because int might match the return type of a GCC
18192    builtin and then its argument prototype would still apply.  */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 char $ac_func ();
18197 /* The GNU C library defines this for functions which it implements
18198     to always fail with ENOSYS.  Some functions are actually named
18199     something starting with __ and the normal name is an alias.  */
18200 #if defined __stub_$ac_func || defined __stub___$ac_func
18201 choke me
18202 #endif
18203
18204 int
18205 main ()
18206 {
18207 return $ac_func ();
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216   *) ac_try_echo=$ac_try;;
18217 esac
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219   (eval "$ac_link") 2>conftest.er1
18220   ac_status=$?
18221   grep -v '^ *+' conftest.er1 >conftest.err
18222   rm -f conftest.er1
18223   cat conftest.err >&5
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); } && {
18226          test -z "$ac_c_werror_flag" ||
18227          test ! -s conftest.err
18228        } && test -s conftest$ac_exeext &&
18229        $as_test_x conftest$ac_exeext; then
18230   eval "$as_ac_var=yes"
18231 else
18232   echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18234
18235         eval "$as_ac_var=no"
18236 fi
18237
18238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18239       conftest$ac_exeext conftest.$ac_ext
18240 fi
18241 ac_res=`eval echo '${'$as_ac_var'}'`
18242                { echo "$as_me:$LINENO: result: $ac_res" >&5
18243 echo "${ECHO_T}$ac_res" >&6; }
18244 if test `eval echo '${'$as_ac_var'}'` = yes; then
18245   cat >>confdefs.h <<_ACEOF
18246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18247 _ACEOF
18248
18249 else
18250   NEED_SNPRINTF=1
18251 fi
18252 done
18253
18254 if test X"$ac_cv_type_struct_timespec" != X"no"; then
18255     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
18256 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
18257 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
18258   echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260   cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h.  */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h.  */
18266 $ac_includes_default
18267 int
18268 main ()
18269 {
18270 static struct stat ac_aggr;
18271 if (ac_aggr.st_mtim)
18272 return 0;
18273   ;
18274   return 0;
18275 }
18276 _ACEOF
18277 rm -f conftest.$ac_objext
18278 if { (ac_try="$ac_compile"
18279 case "(($ac_try" in
18280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281   *) ac_try_echo=$ac_try;;
18282 esac
18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284   (eval "$ac_compile") 2>conftest.er1
18285   ac_status=$?
18286   grep -v '^ *+' conftest.er1 >conftest.err
18287   rm -f conftest.er1
18288   cat conftest.err >&5
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); } && {
18291          test -z "$ac_c_werror_flag" ||
18292          test ! -s conftest.err
18293        } && test -s conftest.$ac_objext; then
18294   ac_cv_member_struct_stat_st_mtim=yes
18295 else
18296   echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18298
18299         cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h.  */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h.  */
18305 $ac_includes_default
18306 int
18307 main ()
18308 {
18309 static struct stat ac_aggr;
18310 if (sizeof ac_aggr.st_mtim)
18311 return 0;
18312   ;
18313   return 0;
18314 }
18315 _ACEOF
18316 rm -f conftest.$ac_objext
18317 if { (ac_try="$ac_compile"
18318 case "(($ac_try" in
18319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320   *) ac_try_echo=$ac_try;;
18321 esac
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323   (eval "$ac_compile") 2>conftest.er1
18324   ac_status=$?
18325   grep -v '^ *+' conftest.er1 >conftest.err
18326   rm -f conftest.er1
18327   cat conftest.err >&5
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); } && {
18330          test -z "$ac_c_werror_flag" ||
18331          test ! -s conftest.err
18332        } && test -s conftest.$ac_objext; then
18333   ac_cv_member_struct_stat_st_mtim=yes
18334 else
18335   echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18337
18338         ac_cv_member_struct_stat_st_mtim=no
18339 fi
18340
18341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18342 fi
18343
18344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18345 fi
18346 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
18347 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
18348 if test $ac_cv_member_struct_stat_st_mtim = yes; then
18349   cat >>confdefs.h <<\_ACEOF
18350 #define HAVE_ST_MTIM 1
18351 _ACEOF
18352
18353         { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
18354 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
18355 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
18356   echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358   cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h.  */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h.  */
18364 $ac_includes_default
18365 int
18366 main ()
18367 {
18368 static struct stat ac_aggr;
18369 if (ac_aggr.st_mtim.st__tim)
18370 return 0;
18371   ;
18372   return 0;
18373 }
18374 _ACEOF
18375 rm -f conftest.$ac_objext
18376 if { (ac_try="$ac_compile"
18377 case "(($ac_try" in
18378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379   *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382   (eval "$ac_compile") 2>conftest.er1
18383   ac_status=$?
18384   grep -v '^ *+' conftest.er1 >conftest.err
18385   rm -f conftest.er1
18386   cat conftest.err >&5
18387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388   (exit $ac_status); } && {
18389          test -z "$ac_c_werror_flag" ||
18390          test ! -s conftest.err
18391        } && test -s conftest.$ac_objext; then
18392   ac_cv_member_struct_stat_st_mtim_st__tim=yes
18393 else
18394   echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18396
18397         cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h.  */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h.  */
18403 $ac_includes_default
18404 int
18405 main ()
18406 {
18407 static struct stat ac_aggr;
18408 if (sizeof ac_aggr.st_mtim.st__tim)
18409 return 0;
18410   ;
18411   return 0;
18412 }
18413 _ACEOF
18414 rm -f conftest.$ac_objext
18415 if { (ac_try="$ac_compile"
18416 case "(($ac_try" in
18417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418   *) ac_try_echo=$ac_try;;
18419 esac
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421   (eval "$ac_compile") 2>conftest.er1
18422   ac_status=$?
18423   grep -v '^ *+' conftest.er1 >conftest.err
18424   rm -f conftest.er1
18425   cat conftest.err >&5
18426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427   (exit $ac_status); } && {
18428          test -z "$ac_c_werror_flag" ||
18429          test ! -s conftest.err
18430        } && test -s conftest.$ac_objext; then
18431   ac_cv_member_struct_stat_st_mtim_st__tim=yes
18432 else
18433   echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18435
18436         ac_cv_member_struct_stat_st_mtim_st__tim=no
18437 fi
18438
18439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18440 fi
18441
18442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18443 fi
18444 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18445 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18446 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18447   cat >>confdefs.h <<\_ACEOF
18448 #define HAVE_ST__TIM 1
18449 _ACEOF
18450
18451 fi
18452
18453 else
18454   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18455 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18456 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
18457   echo $ECHO_N "(cached) $ECHO_C" >&6
18458 else
18459   cat >conftest.$ac_ext <<_ACEOF
18460 /* confdefs.h.  */
18461 _ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h.  */
18465 $ac_includes_default
18466 int
18467 main ()
18468 {
18469 static struct stat ac_aggr;
18470 if (ac_aggr.st_mtimespec)
18471 return 0;
18472   ;
18473   return 0;
18474 }
18475 _ACEOF
18476 rm -f conftest.$ac_objext
18477 if { (ac_try="$ac_compile"
18478 case "(($ac_try" in
18479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480   *) ac_try_echo=$ac_try;;
18481 esac
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483   (eval "$ac_compile") 2>conftest.er1
18484   ac_status=$?
18485   grep -v '^ *+' conftest.er1 >conftest.err
18486   rm -f conftest.er1
18487   cat conftest.err >&5
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); } && {
18490          test -z "$ac_c_werror_flag" ||
18491          test ! -s conftest.err
18492        } && test -s conftest.$ac_objext; then
18493   ac_cv_member_struct_stat_st_mtimespec=yes
18494 else
18495   echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18497
18498         cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h.  */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h.  */
18504 $ac_includes_default
18505 int
18506 main ()
18507 {
18508 static struct stat ac_aggr;
18509 if (sizeof ac_aggr.st_mtimespec)
18510 return 0;
18511   ;
18512   return 0;
18513 }
18514 _ACEOF
18515 rm -f conftest.$ac_objext
18516 if { (ac_try="$ac_compile"
18517 case "(($ac_try" in
18518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519   *) ac_try_echo=$ac_try;;
18520 esac
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522   (eval "$ac_compile") 2>conftest.er1
18523   ac_status=$?
18524   grep -v '^ *+' conftest.er1 >conftest.err
18525   rm -f conftest.er1
18526   cat conftest.err >&5
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); } && {
18529          test -z "$ac_c_werror_flag" ||
18530          test ! -s conftest.err
18531        } && test -s conftest.$ac_objext; then
18532   ac_cv_member_struct_stat_st_mtimespec=yes
18533 else
18534   echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18536
18537         ac_cv_member_struct_stat_st_mtimespec=no
18538 fi
18539
18540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18541 fi
18542
18543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18544 fi
18545 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18546 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18547 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18548   cat >>confdefs.h <<\_ACEOF
18549 #define HAVE_ST_MTIMESPEC 1
18550 _ACEOF
18551
18552 fi
18553
18554 fi
18555
18556     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18557 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18558     cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h.  */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h.  */
18564 #include <sys/types.h>
18565 #include <sys/time.h>
18566 int
18567 main ()
18568 {
18569 struct timespec ts1, ts2;
18570 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18571 #ifndef timespecsub
18572 #error missing timespecsub
18573 #endif
18574 timespecsub(&ts1, &ts2);
18575   ;
18576   return 0;
18577 }
18578 _ACEOF
18579 rm -f conftest.$ac_objext
18580 if { (ac_try="$ac_compile"
18581 case "(($ac_try" in
18582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583   *) ac_try_echo=$ac_try;;
18584 esac
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586   (eval "$ac_compile") 2>conftest.er1
18587   ac_status=$?
18588   grep -v '^ *+' conftest.er1 >conftest.err
18589   rm -f conftest.er1
18590   cat conftest.err >&5
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); } && {
18593          test -z "$ac_c_werror_flag" ||
18594          test ! -s conftest.err
18595        } && test -s conftest.$ac_objext; then
18596   cat >>confdefs.h <<\_ACEOF
18597 #define HAVE_TIMESPECSUB2 1
18598 _ACEOF
18599
18600     { echo "$as_me:$LINENO: result: yes" >&5
18601 echo "${ECHO_T}yes" >&6; }
18602 else
18603   echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606         { echo "$as_me:$LINENO: result: no" >&5
18607 echo "${ECHO_T}no" >&6; }
18608 fi
18609
18610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18611 fi
18612 cat >conftest.$ac_ext <<_ACEOF
18613 /* confdefs.h.  */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h.  */
18618 #include <sys/types.h>
18619 #include <$ac_header_dirent>
18620 int
18621 main ()
18622 {
18623 DIR *d; (void)dirfd(d);
18624   ;
18625   return 0;
18626 }
18627 _ACEOF
18628 rm -f conftest.$ac_objext conftest$ac_exeext
18629 if { (ac_try="$ac_link"
18630 case "(($ac_try" in
18631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632   *) ac_try_echo=$ac_try;;
18633 esac
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635   (eval "$ac_link") 2>conftest.er1
18636   ac_status=$?
18637   grep -v '^ *+' conftest.er1 >conftest.err
18638   rm -f conftest.er1
18639   cat conftest.err >&5
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); } && {
18642          test -z "$ac_c_werror_flag" ||
18643          test ! -s conftest.err
18644        } && test -s conftest$ac_exeext &&
18645        $as_test_x conftest$ac_exeext; then
18646   cat >>confdefs.h <<\_ACEOF
18647 #define HAVE_DIRFD 1
18648 _ACEOF
18649
18650 else
18651   echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18653
18654         cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h.  */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h.  */
18660 #include <sys/types.h>
18661 #include <$ac_header_dirent>
18662 int
18663 main ()
18664 {
18665 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18666   ;
18667   return 0;
18668 }
18669 _ACEOF
18670 rm -f conftest.$ac_objext conftest$ac_exeext
18671 if { (ac_try="$ac_link"
18672 case "(($ac_try" in
18673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674   *) ac_try_echo=$ac_try;;
18675 esac
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677   (eval "$ac_link") 2>conftest.er1
18678   ac_status=$?
18679   grep -v '^ *+' conftest.er1 >conftest.err
18680   rm -f conftest.er1
18681   cat conftest.err >&5
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); } && {
18684          test -z "$ac_c_werror_flag" ||
18685          test ! -s conftest.err
18686        } && test -s conftest$ac_exeext &&
18687        $as_test_x conftest$ac_exeext; then
18688   cat >>confdefs.h <<\_ACEOF
18689 #define HAVE_DD_FD 1
18690 _ACEOF
18691
18692 else
18693   echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18695
18696
18697 fi
18698
18699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18700       conftest$ac_exeext conftest.$ac_ext
18701 fi
18702
18703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18704       conftest$ac_exeext conftest.$ac_ext
18705 if test -n "$NEED_SNPRINTF"; then
18706     case " $LIBOBJS " in
18707   *" snprintf.$ac_objext "* ) ;;
18708   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18709  ;;
18710 esac
18711
18712 fi
18713 { echo "$as_me:$LINENO: checking for socket" >&5
18714 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18715 if test "${ac_cv_func_socket+set}" = set; then
18716   echo $ECHO_N "(cached) $ECHO_C" >&6
18717 else
18718   cat >conftest.$ac_ext <<_ACEOF
18719 /* confdefs.h.  */
18720 _ACEOF
18721 cat confdefs.h >>conftest.$ac_ext
18722 cat >>conftest.$ac_ext <<_ACEOF
18723 /* end confdefs.h.  */
18724 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18726 #define socket innocuous_socket
18727
18728 /* System header to define __stub macros and hopefully few prototypes,
18729     which can conflict with char socket (); below.
18730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18731     <limits.h> exists even on freestanding compilers.  */
18732
18733 #ifdef __STDC__
18734 # include <limits.h>
18735 #else
18736 # include <assert.h>
18737 #endif
18738
18739 #undef socket
18740
18741 /* Override any GCC internal prototype to avoid an error.
18742    Use char because int might match the return type of a GCC
18743    builtin and then its argument prototype would still apply.  */
18744 #ifdef __cplusplus
18745 extern "C"
18746 #endif
18747 char socket ();
18748 /* The GNU C library defines this for functions which it implements
18749     to always fail with ENOSYS.  Some functions are actually named
18750     something starting with __ and the normal name is an alias.  */
18751 #if defined __stub_socket || defined __stub___socket
18752 choke me
18753 #endif
18754
18755 int
18756 main ()
18757 {
18758 return socket ();
18759   ;
18760   return 0;
18761 }
18762 _ACEOF
18763 rm -f conftest.$ac_objext conftest$ac_exeext
18764 if { (ac_try="$ac_link"
18765 case "(($ac_try" in
18766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767   *) ac_try_echo=$ac_try;;
18768 esac
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770   (eval "$ac_link") 2>conftest.er1
18771   ac_status=$?
18772   grep -v '^ *+' conftest.er1 >conftest.err
18773   rm -f conftest.er1
18774   cat conftest.err >&5
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } && {
18777          test -z "$ac_c_werror_flag" ||
18778          test ! -s conftest.err
18779        } && test -s conftest$ac_exeext &&
18780        $as_test_x conftest$ac_exeext; then
18781   ac_cv_func_socket=yes
18782 else
18783   echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18785
18786         ac_cv_func_socket=no
18787 fi
18788
18789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18790       conftest$ac_exeext conftest.$ac_ext
18791 fi
18792 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18793 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18794 if test $ac_cv_func_socket = yes; then
18795   :
18796 else
18797   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18798 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18799 if test "${ac_cv_lib_socket_socket+set}" = set; then
18800   echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802   ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lsocket  $LIBS"
18804 cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810
18811 /* Override any GCC internal prototype to avoid an error.
18812    Use char because int might match the return type of a GCC
18813    builtin and then its argument prototype would still apply.  */
18814 #ifdef __cplusplus
18815 extern "C"
18816 #endif
18817 char socket ();
18818 int
18819 main ()
18820 {
18821 return socket ();
18822   ;
18823   return 0;
18824 }
18825 _ACEOF
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830   *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833   (eval "$ac_link") 2>conftest.er1
18834   ac_status=$?
18835   grep -v '^ *+' conftest.er1 >conftest.err
18836   rm -f conftest.er1
18837   cat conftest.err >&5
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); } && {
18840          test -z "$ac_c_werror_flag" ||
18841          test ! -s conftest.err
18842        } && test -s conftest$ac_exeext &&
18843        $as_test_x conftest$ac_exeext; then
18844   ac_cv_lib_socket_socket=yes
18845 else
18846   echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18848
18849         ac_cv_lib_socket_socket=no
18850 fi
18851
18852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18853       conftest$ac_exeext conftest.$ac_ext
18854 LIBS=$ac_check_lib_save_LIBS
18855 fi
18856 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18857 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18858 if test $ac_cv_lib_socket_socket = yes; then
18859   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18860 else
18861   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18862 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18863 if test "${ac_cv_lib_inet_socket+set}" = set; then
18864   echo $ECHO_N "(cached) $ECHO_C" >&6
18865 else
18866   ac_check_lib_save_LIBS=$LIBS
18867 LIBS="-linet  $LIBS"
18868 cat >conftest.$ac_ext <<_ACEOF
18869 /* confdefs.h.  */
18870 _ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h.  */
18874
18875 /* Override any GCC internal prototype to avoid an error.
18876    Use char because int might match the return type of a GCC
18877    builtin and then its argument prototype would still apply.  */
18878 #ifdef __cplusplus
18879 extern "C"
18880 #endif
18881 char socket ();
18882 int
18883 main ()
18884 {
18885 return socket ();
18886   ;
18887   return 0;
18888 }
18889 _ACEOF
18890 rm -f conftest.$ac_objext conftest$ac_exeext
18891 if { (ac_try="$ac_link"
18892 case "(($ac_try" in
18893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894   *) ac_try_echo=$ac_try;;
18895 esac
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897   (eval "$ac_link") 2>conftest.er1
18898   ac_status=$?
18899   grep -v '^ *+' conftest.er1 >conftest.err
18900   rm -f conftest.er1
18901   cat conftest.err >&5
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); } && {
18904          test -z "$ac_c_werror_flag" ||
18905          test ! -s conftest.err
18906        } && test -s conftest$ac_exeext &&
18907        $as_test_x conftest$ac_exeext; then
18908   ac_cv_lib_inet_socket=yes
18909 else
18910   echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18912
18913         ac_cv_lib_inet_socket=no
18914 fi
18915
18916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18917       conftest$ac_exeext conftest.$ac_ext
18918 LIBS=$ac_check_lib_save_LIBS
18919 fi
18920 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18921 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18922 if test $ac_cv_lib_inet_socket = yes; then
18923   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18924 else
18925   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18926 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18927 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18928 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18929 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18930   echo $ECHO_N "(cached) $ECHO_C" >&6
18931 else
18932   ac_check_lib_save_LIBS=$LIBS
18933 LIBS="-lsocket -lnsl $LIBS"
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h.  */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h.  */
18940
18941 /* Override any GCC internal prototype to avoid an error.
18942    Use char because int might match the return type of a GCC
18943    builtin and then its argument prototype would still apply.  */
18944 #ifdef __cplusplus
18945 extern "C"
18946 #endif
18947 char socket ();
18948 int
18949 main ()
18950 {
18951 return socket ();
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (ac_try="$ac_link"
18958 case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_link") 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } && {
18970          test -z "$ac_c_werror_flag" ||
18971          test ! -s conftest.err
18972        } && test -s conftest$ac_exeext &&
18973        $as_test_x conftest$ac_exeext; then
18974   ac_cv_lib_socket_socket_lnsl=yes
18975 else
18976   echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979         ac_cv_lib_socket_socket_lnsl=no
18980 fi
18981
18982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18983       conftest$ac_exeext conftest.$ac_ext
18984 LIBS=$ac_check_lib_save_LIBS
18985 fi
18986 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18987 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18988 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18989   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18990 fi
18991
18992 fi
18993
18994 fi
18995
18996 fi
18997
18998 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18999 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
19000 if test "${ac_cv_func_inet_addr+set}" = set; then
19001   echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003   cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h.  */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h.  */
19009 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
19010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19011 #define inet_addr innocuous_inet_addr
19012
19013 /* System header to define __stub macros and hopefully few prototypes,
19014     which can conflict with char inet_addr (); below.
19015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19016     <limits.h> exists even on freestanding compilers.  */
19017
19018 #ifdef __STDC__
19019 # include <limits.h>
19020 #else
19021 # include <assert.h>
19022 #endif
19023
19024 #undef inet_addr
19025
19026 /* Override any GCC internal prototype to avoid an error.
19027    Use char because int might match the return type of a GCC
19028    builtin and then its argument prototype would still apply.  */
19029 #ifdef __cplusplus
19030 extern "C"
19031 #endif
19032 char inet_addr ();
19033 /* The GNU C library defines this for functions which it implements
19034     to always fail with ENOSYS.  Some functions are actually named
19035     something starting with __ and the normal name is an alias.  */
19036 #if defined __stub_inet_addr || defined __stub___inet_addr
19037 choke me
19038 #endif
19039
19040 int
19041 main ()
19042 {
19043 return inet_addr ();
19044   ;
19045   return 0;
19046 }
19047 _ACEOF
19048 rm -f conftest.$ac_objext conftest$ac_exeext
19049 if { (ac_try="$ac_link"
19050 case "(($ac_try" in
19051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052   *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055   (eval "$ac_link") 2>conftest.er1
19056   ac_status=$?
19057   grep -v '^ *+' conftest.er1 >conftest.err
19058   rm -f conftest.er1
19059   cat conftest.err >&5
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); } && {
19062          test -z "$ac_c_werror_flag" ||
19063          test ! -s conftest.err
19064        } && test -s conftest$ac_exeext &&
19065        $as_test_x conftest$ac_exeext; then
19066   ac_cv_func_inet_addr=yes
19067 else
19068   echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19070
19071         ac_cv_func_inet_addr=no
19072 fi
19073
19074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19075       conftest$ac_exeext conftest.$ac_ext
19076 fi
19077 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
19078 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
19079 if test $ac_cv_func_inet_addr = yes; then
19080   :
19081 else
19082   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
19083 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
19084 if test "${ac_cv_func___inet_addr+set}" = set; then
19085   echo $ECHO_N "(cached) $ECHO_C" >&6
19086 else
19087   cat >conftest.$ac_ext <<_ACEOF
19088 /* confdefs.h.  */
19089 _ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h.  */
19093 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
19094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19095 #define __inet_addr innocuous___inet_addr
19096
19097 /* System header to define __stub macros and hopefully few prototypes,
19098     which can conflict with char __inet_addr (); below.
19099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19100     <limits.h> exists even on freestanding compilers.  */
19101
19102 #ifdef __STDC__
19103 # include <limits.h>
19104 #else
19105 # include <assert.h>
19106 #endif
19107
19108 #undef __inet_addr
19109
19110 /* Override any GCC internal prototype to avoid an error.
19111    Use char because int might match the return type of a GCC
19112    builtin and then its argument prototype would still apply.  */
19113 #ifdef __cplusplus
19114 extern "C"
19115 #endif
19116 char __inet_addr ();
19117 /* The GNU C library defines this for functions which it implements
19118     to always fail with ENOSYS.  Some functions are actually named
19119     something starting with __ and the normal name is an alias.  */
19120 #if defined __stub___inet_addr || defined __stub_____inet_addr
19121 choke me
19122 #endif
19123
19124 int
19125 main ()
19126 {
19127 return __inet_addr ();
19128   ;
19129   return 0;
19130 }
19131 _ACEOF
19132 rm -f conftest.$ac_objext conftest$ac_exeext
19133 if { (ac_try="$ac_link"
19134 case "(($ac_try" in
19135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136   *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139   (eval "$ac_link") 2>conftest.er1
19140   ac_status=$?
19141   grep -v '^ *+' conftest.er1 >conftest.err
19142   rm -f conftest.er1
19143   cat conftest.err >&5
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); } && {
19146          test -z "$ac_c_werror_flag" ||
19147          test ! -s conftest.err
19148        } && test -s conftest$ac_exeext &&
19149        $as_test_x conftest$ac_exeext; then
19150   ac_cv_func___inet_addr=yes
19151 else
19152   echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155         ac_cv_func___inet_addr=no
19156 fi
19157
19158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19159       conftest$ac_exeext conftest.$ac_ext
19160 fi
19161 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
19162 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
19163 if test $ac_cv_func___inet_addr = yes; then
19164   :
19165 else
19166   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
19167 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
19168 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
19169   echo $ECHO_N "(cached) $ECHO_C" >&6
19170 else
19171   ac_check_lib_save_LIBS=$LIBS
19172 LIBS="-lnsl  $LIBS"
19173 cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h.  */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h.  */
19179
19180 /* Override any GCC internal prototype to avoid an error.
19181    Use char because int might match the return type of a GCC
19182    builtin and then its argument prototype would still apply.  */
19183 #ifdef __cplusplus
19184 extern "C"
19185 #endif
19186 char inet_addr ();
19187 int
19188 main ()
19189 {
19190 return inet_addr ();
19191   ;
19192   return 0;
19193 }
19194 _ACEOF
19195 rm -f conftest.$ac_objext conftest$ac_exeext
19196 if { (ac_try="$ac_link"
19197 case "(($ac_try" in
19198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199   *) ac_try_echo=$ac_try;;
19200 esac
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202   (eval "$ac_link") 2>conftest.er1
19203   ac_status=$?
19204   grep -v '^ *+' conftest.er1 >conftest.err
19205   rm -f conftest.er1
19206   cat conftest.err >&5
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); } && {
19209          test -z "$ac_c_werror_flag" ||
19210          test ! -s conftest.err
19211        } && test -s conftest$ac_exeext &&
19212        $as_test_x conftest$ac_exeext; then
19213   ac_cv_lib_nsl_inet_addr=yes
19214 else
19215   echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19217
19218         ac_cv_lib_nsl_inet_addr=no
19219 fi
19220
19221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19222       conftest$ac_exeext conftest.$ac_ext
19223 LIBS=$ac_check_lib_save_LIBS
19224 fi
19225 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
19226 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
19227 if test $ac_cv_lib_nsl_inet_addr = yes; then
19228   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19229 else
19230   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
19231 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
19232 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
19233   echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235   ac_check_lib_save_LIBS=$LIBS
19236 LIBS="-linet  $LIBS"
19237 cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h.  */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h.  */
19243
19244 /* Override any GCC internal prototype to avoid an error.
19245    Use char because int might match the return type of a GCC
19246    builtin and then its argument prototype would still apply.  */
19247 #ifdef __cplusplus
19248 extern "C"
19249 #endif
19250 char inet_addr ();
19251 int
19252 main ()
19253 {
19254 return inet_addr ();
19255   ;
19256   return 0;
19257 }
19258 _ACEOF
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (ac_try="$ac_link"
19261 case "(($ac_try" in
19262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263   *) ac_try_echo=$ac_try;;
19264 esac
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266   (eval "$ac_link") 2>conftest.er1
19267   ac_status=$?
19268   grep -v '^ *+' conftest.er1 >conftest.err
19269   rm -f conftest.er1
19270   cat conftest.err >&5
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); } && {
19273          test -z "$ac_c_werror_flag" ||
19274          test ! -s conftest.err
19275        } && test -s conftest$ac_exeext &&
19276        $as_test_x conftest$ac_exeext; then
19277   ac_cv_lib_inet_inet_addr=yes
19278 else
19279   echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19281
19282         ac_cv_lib_inet_inet_addr=no
19283 fi
19284
19285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19286       conftest$ac_exeext conftest.$ac_ext
19287 LIBS=$ac_check_lib_save_LIBS
19288 fi
19289 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
19290 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
19291 if test $ac_cv_lib_inet_inet_addr = yes; then
19292   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19293 else
19294   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
19295 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
19296 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
19297 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
19298 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
19299   echo $ECHO_N "(cached) $ECHO_C" >&6
19300 else
19301   ac_check_lib_save_LIBS=$LIBS
19302 LIBS="-lsocket -lnsl $LIBS"
19303 cat >conftest.$ac_ext <<_ACEOF
19304 /* confdefs.h.  */
19305 _ACEOF
19306 cat confdefs.h >>conftest.$ac_ext
19307 cat >>conftest.$ac_ext <<_ACEOF
19308 /* end confdefs.h.  */
19309
19310 /* Override any GCC internal prototype to avoid an error.
19311    Use char because int might match the return type of a GCC
19312    builtin and then its argument prototype would still apply.  */
19313 #ifdef __cplusplus
19314 extern "C"
19315 #endif
19316 char inet_addr ();
19317 int
19318 main ()
19319 {
19320 return inet_addr ();
19321   ;
19322   return 0;
19323 }
19324 _ACEOF
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (ac_try="$ac_link"
19327 case "(($ac_try" in
19328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329   *) ac_try_echo=$ac_try;;
19330 esac
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332   (eval "$ac_link") 2>conftest.er1
19333   ac_status=$?
19334   grep -v '^ *+' conftest.er1 >conftest.err
19335   rm -f conftest.er1
19336   cat conftest.err >&5
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); } && {
19339          test -z "$ac_c_werror_flag" ||
19340          test ! -s conftest.err
19341        } && test -s conftest$ac_exeext &&
19342        $as_test_x conftest$ac_exeext; then
19343   ac_cv_lib_socket_inet_addr_lnsl=yes
19344 else
19345   echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19347
19348         ac_cv_lib_socket_inet_addr_lnsl=no
19349 fi
19350
19351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19352       conftest$ac_exeext conftest.$ac_ext
19353 LIBS=$ac_check_lib_save_LIBS
19354 fi
19355 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
19356 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
19357 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
19358   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
19359 fi
19360
19361 fi
19362
19363 fi
19364
19365 fi
19366
19367 fi
19368
19369 { echo "$as_me:$LINENO: checking for syslog" >&5
19370 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
19371 if test "${ac_cv_func_syslog+set}" = set; then
19372   echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374   cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h.  */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h.  */
19380 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19382 #define syslog innocuous_syslog
19383
19384 /* System header to define __stub macros and hopefully few prototypes,
19385     which can conflict with char syslog (); below.
19386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19387     <limits.h> exists even on freestanding compilers.  */
19388
19389 #ifdef __STDC__
19390 # include <limits.h>
19391 #else
19392 # include <assert.h>
19393 #endif
19394
19395 #undef syslog
19396
19397 /* Override any GCC internal prototype to avoid an error.
19398    Use char because int might match the return type of a GCC
19399    builtin and then its argument prototype would still apply.  */
19400 #ifdef __cplusplus
19401 extern "C"
19402 #endif
19403 char syslog ();
19404 /* The GNU C library defines this for functions which it implements
19405     to always fail with ENOSYS.  Some functions are actually named
19406     something starting with __ and the normal name is an alias.  */
19407 #if defined __stub_syslog || defined __stub___syslog
19408 choke me
19409 #endif
19410
19411 int
19412 main ()
19413 {
19414 return syslog ();
19415   ;
19416   return 0;
19417 }
19418 _ACEOF
19419 rm -f conftest.$ac_objext conftest$ac_exeext
19420 if { (ac_try="$ac_link"
19421 case "(($ac_try" in
19422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423   *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426   (eval "$ac_link") 2>conftest.er1
19427   ac_status=$?
19428   grep -v '^ *+' conftest.er1 >conftest.err
19429   rm -f conftest.er1
19430   cat conftest.err >&5
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); } && {
19433          test -z "$ac_c_werror_flag" ||
19434          test ! -s conftest.err
19435        } && test -s conftest$ac_exeext &&
19436        $as_test_x conftest$ac_exeext; then
19437   ac_cv_func_syslog=yes
19438 else
19439   echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19441
19442         ac_cv_func_syslog=no
19443 fi
19444
19445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19446       conftest$ac_exeext conftest.$ac_ext
19447 fi
19448 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19449 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19450 if test $ac_cv_func_syslog = yes; then
19451   :
19452 else
19453   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19454 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19455 if test "${ac_cv_lib_socket_syslog+set}" = set; then
19456   echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458   ac_check_lib_save_LIBS=$LIBS
19459 LIBS="-lsocket  $LIBS"
19460 cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h.  */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h.  */
19466
19467 /* Override any GCC internal prototype to avoid an error.
19468    Use char because int might match the return type of a GCC
19469    builtin and then its argument prototype would still apply.  */
19470 #ifdef __cplusplus
19471 extern "C"
19472 #endif
19473 char syslog ();
19474 int
19475 main ()
19476 {
19477 return syslog ();
19478   ;
19479   return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (ac_try="$ac_link"
19484 case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489   (eval "$ac_link") 2>conftest.er1
19490   ac_status=$?
19491   grep -v '^ *+' conftest.er1 >conftest.err
19492   rm -f conftest.er1
19493   cat conftest.err >&5
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); } && {
19496          test -z "$ac_c_werror_flag" ||
19497          test ! -s conftest.err
19498        } && test -s conftest$ac_exeext &&
19499        $as_test_x conftest$ac_exeext; then
19500   ac_cv_lib_socket_syslog=yes
19501 else
19502   echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19504
19505         ac_cv_lib_socket_syslog=no
19506 fi
19507
19508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19509       conftest$ac_exeext conftest.$ac_ext
19510 LIBS=$ac_check_lib_save_LIBS
19511 fi
19512 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19513 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19514 if test $ac_cv_lib_socket_syslog = yes; then
19515   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19516 else
19517   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19518 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19519 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19520   echo $ECHO_N "(cached) $ECHO_C" >&6
19521 else
19522   ac_check_lib_save_LIBS=$LIBS
19523 LIBS="-lnsl  $LIBS"
19524 cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h.  */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h.  */
19530
19531 /* Override any GCC internal prototype to avoid an error.
19532    Use char because int might match the return type of a GCC
19533    builtin and then its argument prototype would still apply.  */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 char syslog ();
19538 int
19539 main ()
19540 {
19541 return syslog ();
19542   ;
19543   return 0;
19544 }
19545 _ACEOF
19546 rm -f conftest.$ac_objext conftest$ac_exeext
19547 if { (ac_try="$ac_link"
19548 case "(($ac_try" in
19549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550   *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553   (eval "$ac_link") 2>conftest.er1
19554   ac_status=$?
19555   grep -v '^ *+' conftest.er1 >conftest.err
19556   rm -f conftest.er1
19557   cat conftest.err >&5
19558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559   (exit $ac_status); } && {
19560          test -z "$ac_c_werror_flag" ||
19561          test ! -s conftest.err
19562        } && test -s conftest$ac_exeext &&
19563        $as_test_x conftest$ac_exeext; then
19564   ac_cv_lib_nsl_syslog=yes
19565 else
19566   echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569         ac_cv_lib_nsl_syslog=no
19570 fi
19571
19572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19573       conftest$ac_exeext conftest.$ac_ext
19574 LIBS=$ac_check_lib_save_LIBS
19575 fi
19576 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19577 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19578 if test $ac_cv_lib_nsl_syslog = yes; then
19579   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19580 else
19581   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19582 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19583 if test "${ac_cv_lib_inet_syslog+set}" = set; then
19584   echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586   ac_check_lib_save_LIBS=$LIBS
19587 LIBS="-linet  $LIBS"
19588 cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594
19595 /* Override any GCC internal prototype to avoid an error.
19596    Use char because int might match the return type of a GCC
19597    builtin and then its argument prototype would still apply.  */
19598 #ifdef __cplusplus
19599 extern "C"
19600 #endif
19601 char syslog ();
19602 int
19603 main ()
19604 {
19605 return syslog ();
19606   ;
19607   return 0;
19608 }
19609 _ACEOF
19610 rm -f conftest.$ac_objext conftest$ac_exeext
19611 if { (ac_try="$ac_link"
19612 case "(($ac_try" in
19613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614   *) ac_try_echo=$ac_try;;
19615 esac
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617   (eval "$ac_link") 2>conftest.er1
19618   ac_status=$?
19619   grep -v '^ *+' conftest.er1 >conftest.err
19620   rm -f conftest.er1
19621   cat conftest.err >&5
19622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); } && {
19624          test -z "$ac_c_werror_flag" ||
19625          test ! -s conftest.err
19626        } && test -s conftest$ac_exeext &&
19627        $as_test_x conftest$ac_exeext; then
19628   ac_cv_lib_inet_syslog=yes
19629 else
19630   echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19632
19633         ac_cv_lib_inet_syslog=no
19634 fi
19635
19636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19637       conftest$ac_exeext conftest.$ac_ext
19638 LIBS=$ac_check_lib_save_LIBS
19639 fi
19640 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19641 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19642 if test $ac_cv_lib_inet_syslog = yes; then
19643   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19644 fi
19645
19646 fi
19647
19648 fi
19649
19650 fi
19651
19652
19653 for ac_func in getprogname
19654 do
19655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19659   echo $ECHO_N "(cached) $ECHO_C" >&6
19660 else
19661   cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h.  */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h.  */
19667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19669 #define $ac_func innocuous_$ac_func
19670
19671 /* System header to define __stub macros and hopefully few prototypes,
19672     which can conflict with char $ac_func (); below.
19673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19674     <limits.h> exists even on freestanding compilers.  */
19675
19676 #ifdef __STDC__
19677 # include <limits.h>
19678 #else
19679 # include <assert.h>
19680 #endif
19681
19682 #undef $ac_func
19683
19684 /* Override any GCC internal prototype to avoid an error.
19685    Use char because int might match the return type of a GCC
19686    builtin and then its argument prototype would still apply.  */
19687 #ifdef __cplusplus
19688 extern "C"
19689 #endif
19690 char $ac_func ();
19691 /* The GNU C library defines this for functions which it implements
19692     to always fail with ENOSYS.  Some functions are actually named
19693     something starting with __ and the normal name is an alias.  */
19694 #if defined __stub_$ac_func || defined __stub___$ac_func
19695 choke me
19696 #endif
19697
19698 int
19699 main ()
19700 {
19701 return $ac_func ();
19702   ;
19703   return 0;
19704 }
19705 _ACEOF
19706 rm -f conftest.$ac_objext conftest$ac_exeext
19707 if { (ac_try="$ac_link"
19708 case "(($ac_try" in
19709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710   *) ac_try_echo=$ac_try;;
19711 esac
19712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713   (eval "$ac_link") 2>conftest.er1
19714   ac_status=$?
19715   grep -v '^ *+' conftest.er1 >conftest.err
19716   rm -f conftest.er1
19717   cat conftest.err >&5
19718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719   (exit $ac_status); } && {
19720          test -z "$ac_c_werror_flag" ||
19721          test ! -s conftest.err
19722        } && test -s conftest$ac_exeext &&
19723        $as_test_x conftest$ac_exeext; then
19724   eval "$as_ac_var=yes"
19725 else
19726   echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19728
19729         eval "$as_ac_var=no"
19730 fi
19731
19732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19733       conftest$ac_exeext conftest.$ac_ext
19734 fi
19735 ac_res=`eval echo '${'$as_ac_var'}'`
19736                { echo "$as_me:$LINENO: result: $ac_res" >&5
19737 echo "${ECHO_T}$ac_res" >&6; }
19738 if test `eval echo '${'$as_ac_var'}'` = yes; then
19739   cat >>confdefs.h <<_ACEOF
19740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19741 _ACEOF
19742
19743 else
19744
19745     { echo "$as_me:$LINENO: checking for __progname" >&5
19746 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19747     if test "${sudo_cv___progname+set}" = set; then
19748   echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19750
19751     cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h.  */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h.  */
19757
19758 int
19759 main ()
19760 {
19761 extern char *__progname; (void)puts(__progname);
19762   ;
19763   return 0;
19764 }
19765 _ACEOF
19766 rm -f conftest.$ac_objext conftest$ac_exeext
19767 if { (ac_try="$ac_link"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_link") 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } && {
19780          test -z "$ac_c_werror_flag" ||
19781          test ! -s conftest.err
19782        } && test -s conftest$ac_exeext &&
19783        $as_test_x conftest$ac_exeext; then
19784   sudo_cv___progname=yes
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789         sudo_cv___progname=no
19790 fi
19791
19792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19793       conftest$ac_exeext conftest.$ac_ext
19794 fi
19795
19796     if test "$sudo_cv___progname" = "yes"; then
19797         cat >>confdefs.h <<\_ACEOF
19798 #define HAVE___PROGNAME 1
19799 _ACEOF
19800
19801     else
19802         case " $LIBOBJS " in
19803   *" getprogname.$ac_objext "* ) ;;
19804   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19805  ;;
19806 esac
19807
19808     fi
19809     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19810 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19811
19812 fi
19813 done
19814
19815
19816 netsvc_conf='/etc/netsvc.conf'
19817 nsswitch_conf='/etc/nsswitch.conf'
19818 if test ${with_netsvc-"no"} != "no"; then
19819     cat >>confdefs.h <<EOF
19820 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
19821 EOF
19822
19823     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
19824 elif test ${with_nsswitch-"yes"} != "no"; then
19825     cat >>confdefs.h <<EOF
19826 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
19827 EOF
19828
19829     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
19830 fi
19831
19832
19833 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19834     for auth in $AUTH_EXCL_DEF; do
19835         case $auth in
19836             AIX_AUTH)   with_aixauth=maybe;;
19837             BSD_AUTH)   with_bsdauth=maybe;;
19838             PAM)        with_pam=maybe;;
19839             SIA)        CHECKSIA=true;;
19840         esac
19841     done
19842 fi
19843
19844 if test ${with_pam-"no"} != "no"; then
19845                 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19846 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19847 if test "${ac_cv_lib_dl_main+set}" = set; then
19848   echo $ECHO_N "(cached) $ECHO_C" >&6
19849 else
19850   ac_check_lib_save_LIBS=$LIBS
19851 LIBS="-ldl  $LIBS"
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h.  */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h.  */
19858
19859
19860 int
19861 main ()
19862 {
19863 return main ();
19864   ;
19865   return 0;
19866 }
19867 _ACEOF
19868 rm -f conftest.$ac_objext conftest$ac_exeext
19869 if { (ac_try="$ac_link"
19870 case "(($ac_try" in
19871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872   *) ac_try_echo=$ac_try;;
19873 esac
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875   (eval "$ac_link") 2>conftest.er1
19876   ac_status=$?
19877   grep -v '^ *+' conftest.er1 >conftest.err
19878   rm -f conftest.er1
19879   cat conftest.err >&5
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); } && {
19882          test -z "$ac_c_werror_flag" ||
19883          test ! -s conftest.err
19884        } && test -s conftest$ac_exeext &&
19885        $as_test_x conftest$ac_exeext; then
19886   ac_cv_lib_dl_main=yes
19887 else
19888   echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891         ac_cv_lib_dl_main=no
19892 fi
19893
19894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19895       conftest$ac_exeext conftest.$ac_ext
19896 LIBS=$ac_check_lib_save_LIBS
19897 fi
19898 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19899 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19900 if test $ac_cv_lib_dl_main = yes; then
19901   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19902 else
19903   SUDO_LIBS="${SUDO_LIBS} -lpam"
19904 fi
19905
19906     ac_cv_lib_dl=ac_cv_lib_dl_main
19907
19908
19909
19910 for ac_header in security/pam_appl.h pam/pam_appl.h
19911 do
19912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19914   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 fi
19919 ac_res=`eval echo '${'$as_ac_Header'}'`
19920                { echo "$as_me:$LINENO: result: $ac_res" >&5
19921 echo "${ECHO_T}$ac_res" >&6; }
19922 else
19923   # Is the header compilable?
19924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19926 cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h.  */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h.  */
19932 $ac_includes_default
19933 #include <$ac_header>
19934 _ACEOF
19935 rm -f conftest.$ac_objext
19936 if { (ac_try="$ac_compile"
19937 case "(($ac_try" in
19938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939   *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942   (eval "$ac_compile") 2>conftest.er1
19943   ac_status=$?
19944   grep -v '^ *+' conftest.er1 >conftest.err
19945   rm -f conftest.er1
19946   cat conftest.err >&5
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); } && {
19949          test -z "$ac_c_werror_flag" ||
19950          test ! -s conftest.err
19951        } && test -s conftest.$ac_objext; then
19952   ac_header_compiler=yes
19953 else
19954   echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956
19957         ac_header_compiler=no
19958 fi
19959
19960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19962 echo "${ECHO_T}$ac_header_compiler" >&6; }
19963
19964 # Is the header present?
19965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973 #include <$ac_header>
19974 _ACEOF
19975 if { (ac_try="$ac_cpp conftest.$ac_ext"
19976 case "(($ac_try" in
19977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19978   *) ac_try_echo=$ac_try;;
19979 esac
19980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19981   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19982   ac_status=$?
19983   grep -v '^ *+' conftest.er1 >conftest.err
19984   rm -f conftest.er1
19985   cat conftest.err >&5
19986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); } >/dev/null && {
19988          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19989          test ! -s conftest.err
19990        }; then
19991   ac_header_preproc=yes
19992 else
19993   echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19995
19996   ac_header_preproc=no
19997 fi
19998
19999 rm -f conftest.err conftest.$ac_ext
20000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20001 echo "${ECHO_T}$ac_header_preproc" >&6; }
20002
20003 # So?  What about this header?
20004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20005   yes:no: )
20006     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20010     ac_header_preproc=yes
20011     ;;
20012   no:yes:* )
20013     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20015     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20016 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20017     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20019     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20020 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20023     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20025     ( cat <<\_ASBOX
20026 ## --------------------------------------- ##
20027 ## Report this to http://www.sudo.ws/bugs/ ##
20028 ## --------------------------------------- ##
20029 _ASBOX
20030      ) | sed "s/^/$as_me: WARNING:     /" >&2
20031     ;;
20032 esac
20033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20036   echo $ECHO_N "(cached) $ECHO_C" >&6
20037 else
20038   eval "$as_ac_Header=\$ac_header_preproc"
20039 fi
20040 ac_res=`eval echo '${'$as_ac_Header'}'`
20041                { echo "$as_me:$LINENO: result: $ac_res" >&5
20042 echo "${ECHO_T}$ac_res" >&6; }
20043
20044 fi
20045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20046   cat >>confdefs.h <<_ACEOF
20047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20048 _ACEOF
20049  with_pam=yes; break
20050 fi
20051
20052 done
20053
20054     if test "$with_pam" = "yes"; then
20055         cat >>confdefs.h <<\_ACEOF
20056 #define HAVE_PAM 1
20057 _ACEOF
20058
20059         AUTH_OBJS="$AUTH_OBJS pam.o";
20060         AUTH_EXCL=PAM
20061         { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
20062 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
20063         # Check whether --enable-pam_session was given.
20064 if test "${enable_pam_session+set}" = set; then
20065   enableval=$enable_pam_session;  case "$enableval" in
20066                 yes)    { echo "$as_me:$LINENO: result: yes" >&5
20067 echo "${ECHO_T}yes" >&6; }
20068                         ;;
20069                 no)             { echo "$as_me:$LINENO: result: no" >&5
20070 echo "${ECHO_T}no" >&6; }
20071
20072 cat >>confdefs.h <<\_ACEOF
20073 #define NO_PAM_SESSION
20074 _ACEOF
20075
20076                             ;;
20077                 *)              { echo "$as_me:$LINENO: result: no" >&5
20078 echo "${ECHO_T}no" >&6; }
20079                             { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
20080 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
20081                             ;;
20082             esac
20083 else
20084   { echo "$as_me:$LINENO: result: yes" >&5
20085 echo "${ECHO_T}yes" >&6; }
20086 fi
20087
20088         case $host in
20089             *-*-linux*|*-*-solaris*)
20090                     # dgettext() may be defined to dgettext_libintl in the
20091                     # header file, so first check that it links w/ additional
20092                     # libs, then try with -lintl
20093                     cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h.  */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h.  */
20099 #include <libintl.h>
20100 int
20101 main ()
20102 {
20103 (void)dgettext((char *)0, (char *)0);
20104   ;
20105   return 0;
20106 }
20107 _ACEOF
20108 rm -f conftest.$ac_objext conftest$ac_exeext
20109 if { (ac_try="$ac_link"
20110 case "(($ac_try" in
20111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112   *) ac_try_echo=$ac_try;;
20113 esac
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115   (eval "$ac_link") 2>conftest.er1
20116   ac_status=$?
20117   grep -v '^ *+' conftest.er1 >conftest.err
20118   rm -f conftest.er1
20119   cat conftest.err >&5
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); } && {
20122          test -z "$ac_c_werror_flag" ||
20123          test ! -s conftest.err
20124        } && test -s conftest$ac_exeext &&
20125        $as_test_x conftest$ac_exeext; then
20126   cat >>confdefs.h <<\_ACEOF
20127 #define HAVE_DGETTEXT 1
20128 _ACEOF
20129
20130 else
20131   echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20133
20134         { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20135 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20136 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20137   echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139   ac_check_lib_save_LIBS=$LIBS
20140 LIBS="-lintl  $LIBS"
20141 cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147
20148 /* Override any GCC internal prototype to avoid an error.
20149    Use char because int might match the return type of a GCC
20150    builtin and then its argument prototype would still apply.  */
20151 #ifdef __cplusplus
20152 extern "C"
20153 #endif
20154 char dgettext ();
20155 int
20156 main ()
20157 {
20158 return dgettext ();
20159   ;
20160   return 0;
20161 }
20162 _ACEOF
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167   *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170   (eval "$ac_link") 2>conftest.er1
20171   ac_status=$?
20172   grep -v '^ *+' conftest.er1 >conftest.err
20173   rm -f conftest.er1
20174   cat conftest.err >&5
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); } && {
20177          test -z "$ac_c_werror_flag" ||
20178          test ! -s conftest.err
20179        } && test -s conftest$ac_exeext &&
20180        $as_test_x conftest$ac_exeext; then
20181   ac_cv_lib_intl_dgettext=yes
20182 else
20183   echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186         ac_cv_lib_intl_dgettext=no
20187 fi
20188
20189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20190       conftest$ac_exeext conftest.$ac_ext
20191 LIBS=$ac_check_lib_save_LIBS
20192 fi
20193 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20194 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20195 if test $ac_cv_lib_intl_dgettext = yes; then
20196   LIBS="${LIBS} -lintl"
20197                         cat >>confdefs.h <<\_ACEOF
20198 #define HAVE_DGETTEXT 1
20199 _ACEOF
20200
20201 fi
20202
20203 fi
20204
20205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20206       conftest$ac_exeext conftest.$ac_ext
20207                     ;;
20208         esac
20209     fi
20210 fi
20211
20212 if test ${with_aixauth-'no'} != "no"; then
20213     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
20214         { echo "$as_me:$LINENO: using AIX general authentication" >&5
20215 echo "$as_me: using AIX general authentication" >&6;}
20216         cat >>confdefs.h <<\_ACEOF
20217 #define HAVE_AIXAUTH 1
20218 _ACEOF
20219
20220         AUTH_OBJS="$AUTH_OBJS aix_auth.o";
20221         SUDO_LIBS="${SUDO_LIBS} -ls"
20222         AUTH_EXCL=AIX_AUTH
20223     fi
20224 fi
20225
20226 if test ${with_bsdauth-'no'} != "no"; then
20227     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20228   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20229 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20230 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20231   echo $ECHO_N "(cached) $ECHO_C" >&6
20232 fi
20233 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20234 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20235 else
20236   # Is the header compilable?
20237 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
20238 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
20239 cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h.  */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h.  */
20245 $ac_includes_default
20246 #include <bsd_auth.h>
20247 _ACEOF
20248 rm -f conftest.$ac_objext
20249 if { (ac_try="$ac_compile"
20250 case "(($ac_try" in
20251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252   *) ac_try_echo=$ac_try;;
20253 esac
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255   (eval "$ac_compile") 2>conftest.er1
20256   ac_status=$?
20257   grep -v '^ *+' conftest.er1 >conftest.err
20258   rm -f conftest.er1
20259   cat conftest.err >&5
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); } && {
20262          test -z "$ac_c_werror_flag" ||
20263          test ! -s conftest.err
20264        } && test -s conftest.$ac_objext; then
20265   ac_header_compiler=yes
20266 else
20267   echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270         ac_header_compiler=no
20271 fi
20272
20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20275 echo "${ECHO_T}$ac_header_compiler" >&6; }
20276
20277 # Is the header present?
20278 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20279 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
20280 cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h.  */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h.  */
20286 #include <bsd_auth.h>
20287 _ACEOF
20288 if { (ac_try="$ac_cpp conftest.$ac_ext"
20289 case "(($ac_try" in
20290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291   *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20295   ac_status=$?
20296   grep -v '^ *+' conftest.er1 >conftest.err
20297   rm -f conftest.er1
20298   cat conftest.err >&5
20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); } >/dev/null && {
20301          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20302          test ! -s conftest.err
20303        }; then
20304   ac_header_preproc=yes
20305 else
20306   echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20308
20309   ac_header_preproc=no
20310 fi
20311
20312 rm -f conftest.err conftest.$ac_ext
20313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20314 echo "${ECHO_T}$ac_header_preproc" >&6; }
20315
20316 # So?  What about this header?
20317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20318   yes:no: )
20319     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20320 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20321     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20322 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20323     ac_header_preproc=yes
20324     ;;
20325   no:yes:* )
20326     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20327 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20328     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
20329 echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
20330     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20331 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20332     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
20333 echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20334     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20335 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20336     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20337 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20338     ( cat <<\_ASBOX
20339 ## --------------------------------------- ##
20340 ## Report this to http://www.sudo.ws/bugs/ ##
20341 ## --------------------------------------- ##
20342 _ASBOX
20343      ) | sed "s/^/$as_me: WARNING:     /" >&2
20344     ;;
20345 esac
20346 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20347 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20348 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351   ac_cv_header_bsd_auth_h=$ac_header_preproc
20352 fi
20353 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20354 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20355
20356 fi
20357 if test $ac_cv_header_bsd_auth_h = yes; then
20358   cat >>confdefs.h <<\_ACEOF
20359 #define HAVE_BSD_AUTH_H 1
20360 _ACEOF
20361
20362         AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20363         BSDAUTH_USAGE='[-a auth_type] '
20364         AUTH_EXCL=BSD_AUTH; BAMAN=""
20365 else
20366   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20367 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20368    { (exit 1); exit 1; }; }
20369 fi
20370
20371
20372 fi
20373
20374 if test ${CHECKSIA-'false'} = "true"; then
20375
20376 for ac_func in sia_ses_init
20377 do
20378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20382   echo $ECHO_N "(cached) $ECHO_C" >&6
20383 else
20384   cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20392 #define $ac_func innocuous_$ac_func
20393
20394 /* System header to define __stub macros and hopefully few prototypes,
20395     which can conflict with char $ac_func (); below.
20396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20397     <limits.h> exists even on freestanding compilers.  */
20398
20399 #ifdef __STDC__
20400 # include <limits.h>
20401 #else
20402 # include <assert.h>
20403 #endif
20404
20405 #undef $ac_func
20406
20407 /* Override any GCC internal prototype to avoid an error.
20408    Use char because int might match the return type of a GCC
20409    builtin and then its argument prototype would still apply.  */
20410 #ifdef __cplusplus
20411 extern "C"
20412 #endif
20413 char $ac_func ();
20414 /* The GNU C library defines this for functions which it implements
20415     to always fail with ENOSYS.  Some functions are actually named
20416     something starting with __ and the normal name is an alias.  */
20417 #if defined __stub_$ac_func || defined __stub___$ac_func
20418 choke me
20419 #endif
20420
20421 int
20422 main ()
20423 {
20424 return $ac_func ();
20425   ;
20426   return 0;
20427 }
20428 _ACEOF
20429 rm -f conftest.$ac_objext conftest$ac_exeext
20430 if { (ac_try="$ac_link"
20431 case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_link") 2>conftest.er1
20437   ac_status=$?
20438   grep -v '^ *+' conftest.er1 >conftest.err
20439   rm -f conftest.er1
20440   cat conftest.err >&5
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); } && {
20443          test -z "$ac_c_werror_flag" ||
20444          test ! -s conftest.err
20445        } && test -s conftest$ac_exeext &&
20446        $as_test_x conftest$ac_exeext; then
20447   eval "$as_ac_var=yes"
20448 else
20449   echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20451
20452         eval "$as_ac_var=no"
20453 fi
20454
20455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20456       conftest$ac_exeext conftest.$ac_ext
20457 fi
20458 ac_res=`eval echo '${'$as_ac_var'}'`
20459                { echo "$as_me:$LINENO: result: $ac_res" >&5
20460 echo "${ECHO_T}$ac_res" >&6; }
20461 if test `eval echo '${'$as_ac_var'}'` = yes; then
20462   cat >>confdefs.h <<_ACEOF
20463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20464 _ACEOF
20465  found=true
20466 else
20467   found=false
20468 fi
20469 done
20470
20471     if test "$found" = "true"; then
20472         AUTH_EXCL=SIA
20473         AUTH_OBJS="$AUTH_OBJS sia.o"
20474     fi
20475 fi
20476
20477 if test ${with_fwtk-'no'} != "no"; then
20478     if test "$with_fwtk" != "yes"; then
20479
20480     if test X"$with_rpath" = X"yes"; then
20481         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20482     else
20483         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20484     fi
20485     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20486         blibpath_add="${blibpath_add}:${with_fwtk}"
20487     fi
20488
20489         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20490         with_fwtk=yes
20491     fi
20492     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20493     AUTH_OBJS="$AUTH_OBJS fwtk.o"
20494 fi
20495
20496 if test ${with_SecurID-'no'} != "no"; then
20497     if test "$with_SecurID" != "yes"; then
20498         :
20499     elif test -d /usr/ace/examples; then
20500         with_SecurID=/usr/ace/examples
20501     else
20502         with_SecurID=/usr/ace
20503     fi
20504     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20505     _LDFLAGS="${LDFLAGS}"
20506
20507     if test X"$with_rpath" = X"yes"; then
20508         LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20509     else
20510         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20511     fi
20512     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20513         blibpath_add="${blibpath_add}:${with_SecurID}"
20514     fi
20515
20516     #
20517     # Determine whether to use the new or old SecurID API
20518     #
20519     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20520 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20521 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20522   echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20524   ac_check_lib_save_LIBS=$LIBS
20525 LIBS="-laceclnt
20526             -lpthread
20527
20528      $LIBS"
20529 cat >conftest.$ac_ext <<_ACEOF
20530 /* confdefs.h.  */
20531 _ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h.  */
20535
20536 /* Override any GCC internal prototype to avoid an error.
20537    Use char because int might match the return type of a GCC
20538    builtin and then its argument prototype would still apply.  */
20539 #ifdef __cplusplus
20540 extern "C"
20541 #endif
20542 char SD_Init ();
20543 int
20544 main ()
20545 {
20546 return SD_Init ();
20547   ;
20548   return 0;
20549 }
20550 _ACEOF
20551 rm -f conftest.$ac_objext conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555   *) ac_try_echo=$ac_try;;
20556 esac
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558   (eval "$ac_link") 2>conftest.er1
20559   ac_status=$?
20560   grep -v '^ *+' conftest.er1 >conftest.err
20561   rm -f conftest.er1
20562   cat conftest.err >&5
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); } && {
20565          test -z "$ac_c_werror_flag" ||
20566          test ! -s conftest.err
20567        } && test -s conftest$ac_exeext &&
20568        $as_test_x conftest$ac_exeext; then
20569   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20570 else
20571   echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20573
20574         ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20575 fi
20576
20577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20578       conftest$ac_exeext conftest.$ac_ext
20579 LIBS=$ac_check_lib_save_LIBS
20580 fi
20581 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20582 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20583 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20584
20585             AUTH_OBJS="$AUTH_OBJS securid5.o";
20586             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20587
20588
20589
20590     if test X"$with_rpath" = X"yes"; then
20591         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20592     else
20593         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20594     fi
20595     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20596         blibpath_add="${blibpath_add}:${with_SecurID}"
20597     fi
20598
20599
20600 else
20601
20602             AUTH_OBJS="$AUTH_OBJS securid.o";
20603             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20604
20605 fi
20606
20607     LDFLAGS="${_LDFLAGS}"
20608 fi
20609
20610
20611 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20612     for auth in $AUTH_DEF; do
20613         case $auth in
20614             passwd)     : ${with_passwd='maybe'};;
20615         esac
20616     done
20617 fi
20618
20619 if test ${with_kerb4-'no'} != "no"; then
20620     cat >>confdefs.h <<\_ACEOF
20621 #define HAVE_KERB4 1
20622 _ACEOF
20623
20624                 O_LDFLAGS="$LDFLAGS"
20625     if test "$with_kerb4" = "yes"; then
20626         found=no
20627         O_CPPFLAGS="$CPPFLAGS"
20628         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20629             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20630             cat >conftest.$ac_ext <<_ACEOF
20631 #include <krb.h>
20632 _ACEOF
20633 if { (ac_try="$ac_cpp conftest.$ac_ext"
20634 case "(($ac_try" in
20635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636   *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20640   ac_status=$?
20641   grep -v '^ *+' conftest.er1 >conftest.err
20642   rm -f conftest.er1
20643   cat conftest.err >&5
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); } >/dev/null && {
20646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20647          test ! -s conftest.err
20648        }; then
20649   found=yes; break
20650 else
20651   echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654
20655 fi
20656
20657 rm -f conftest.err conftest.$ac_ext
20658         done
20659         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20660     else
20661
20662     if test X"$with_rpath" = X"yes"; then
20663         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20664     else
20665         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20666     fi
20667     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20668         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20669     fi
20670
20671
20672     if test X"$with_rpath" = X"yes"; then
20673         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20674     else
20675         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20676     fi
20677     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20678         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20679     fi
20680
20681         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20682         if test "${ac_cv_header_krb_h+set}" = set; then
20683   { echo "$as_me:$LINENO: checking for krb.h" >&5
20684 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20685 if test "${ac_cv_header_krb_h+set}" = set; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 fi
20688 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20689 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20690 else
20691   # Is the header compilable?
20692 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20693 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20694 cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h.  */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h.  */
20700 $ac_includes_default
20701 #include <krb.h>
20702 _ACEOF
20703 rm -f conftest.$ac_objext
20704 if { (ac_try="$ac_compile"
20705 case "(($ac_try" in
20706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707   *) ac_try_echo=$ac_try;;
20708 esac
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710   (eval "$ac_compile") 2>conftest.er1
20711   ac_status=$?
20712   grep -v '^ *+' conftest.er1 >conftest.err
20713   rm -f conftest.er1
20714   cat conftest.err >&5
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } && {
20717          test -z "$ac_c_werror_flag" ||
20718          test ! -s conftest.err
20719        } && test -s conftest.$ac_objext; then
20720   ac_header_compiler=yes
20721 else
20722   echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725         ac_header_compiler=no
20726 fi
20727
20728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20730 echo "${ECHO_T}$ac_header_compiler" >&6; }
20731
20732 # Is the header present?
20733 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20734 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20735 cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h.  */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h.  */
20741 #include <krb.h>
20742 _ACEOF
20743 if { (ac_try="$ac_cpp conftest.$ac_ext"
20744 case "(($ac_try" in
20745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746   *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20750   ac_status=$?
20751   grep -v '^ *+' conftest.er1 >conftest.err
20752   rm -f conftest.er1
20753   cat conftest.err >&5
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); } >/dev/null && {
20756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20757          test ! -s conftest.err
20758        }; then
20759   ac_header_preproc=yes
20760 else
20761   echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20763
20764   ac_header_preproc=no
20765 fi
20766
20767 rm -f conftest.err conftest.$ac_ext
20768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20769 echo "${ECHO_T}$ac_header_preproc" >&6; }
20770
20771 # So?  What about this header?
20772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20773   yes:no: )
20774     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20775 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20776     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20777 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20778     ac_header_preproc=yes
20779     ;;
20780   no:yes:* )
20781     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20782 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20783     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
20784 echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
20785     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20786 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20787     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
20788 echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20789     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20790 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20791     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20792 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20793     ( cat <<\_ASBOX
20794 ## --------------------------------------- ##
20795 ## Report this to http://www.sudo.ws/bugs/ ##
20796 ## --------------------------------------- ##
20797 _ASBOX
20798      ) | sed "s/^/$as_me: WARNING:     /" >&2
20799     ;;
20800 esac
20801 { echo "$as_me:$LINENO: checking for krb.h" >&5
20802 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20803 if test "${ac_cv_header_krb_h+set}" = set; then
20804   echo $ECHO_N "(cached) $ECHO_C" >&6
20805 else
20806   ac_cv_header_krb_h=$ac_header_preproc
20807 fi
20808 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20809 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20810
20811 fi
20812 if test $ac_cv_header_krb_h = yes; then
20813   found=yes
20814 else
20815   found=no
20816 fi
20817
20818
20819     fi
20820     if test X"$found" = X"no"; then
20821         { 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
20822 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;}
20823     fi
20824
20825                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20826 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20827 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20828   echo $ECHO_N "(cached) $ECHO_C" >&6
20829 else
20830   ac_check_lib_save_LIBS=$LIBS
20831 LIBS="-ldes  $LIBS"
20832 cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h.  */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h.  */
20838
20839 /* Override any GCC internal prototype to avoid an error.
20840    Use char because int might match the return type of a GCC
20841    builtin and then its argument prototype would still apply.  */
20842 #ifdef __cplusplus
20843 extern "C"
20844 #endif
20845 char des_cbc_encrypt ();
20846 int
20847 main ()
20848 {
20849 return des_cbc_encrypt ();
20850   ;
20851   return 0;
20852 }
20853 _ACEOF
20854 rm -f conftest.$ac_objext conftest$ac_exeext
20855 if { (ac_try="$ac_link"
20856 case "(($ac_try" in
20857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858   *) ac_try_echo=$ac_try;;
20859 esac
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861   (eval "$ac_link") 2>conftest.er1
20862   ac_status=$?
20863   grep -v '^ *+' conftest.er1 >conftest.err
20864   rm -f conftest.er1
20865   cat conftest.err >&5
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); } && {
20868          test -z "$ac_c_werror_flag" ||
20869          test ! -s conftest.err
20870        } && test -s conftest$ac_exeext &&
20871        $as_test_x conftest$ac_exeext; then
20872   ac_cv_lib_des_des_cbc_encrypt=yes
20873 else
20874   echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20876
20877         ac_cv_lib_des_des_cbc_encrypt=no
20878 fi
20879
20880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20881       conftest$ac_exeext conftest.$ac_ext
20882 LIBS=$ac_check_lib_save_LIBS
20883 fi
20884 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20885 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20886 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20887   K4LIBS="-ldes"
20888 else
20889
20890         { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20891 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20892 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20893   echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895   ac_check_lib_save_LIBS=$LIBS
20896 LIBS="-ldes425  $LIBS"
20897 cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h.  */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h.  */
20903
20904 /* Override any GCC internal prototype to avoid an error.
20905    Use char because int might match the return type of a GCC
20906    builtin and then its argument prototype would still apply.  */
20907 #ifdef __cplusplus
20908 extern "C"
20909 #endif
20910 char des_cbc_encrypt ();
20911 int
20912 main ()
20913 {
20914 return des_cbc_encrypt ();
20915   ;
20916   return 0;
20917 }
20918 _ACEOF
20919 rm -f conftest.$ac_objext conftest$ac_exeext
20920 if { (ac_try="$ac_link"
20921 case "(($ac_try" in
20922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923   *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926   (eval "$ac_link") 2>conftest.er1
20927   ac_status=$?
20928   grep -v '^ *+' conftest.er1 >conftest.err
20929   rm -f conftest.er1
20930   cat conftest.err >&5
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); } && {
20933          test -z "$ac_c_werror_flag" ||
20934          test ! -s conftest.err
20935        } && test -s conftest$ac_exeext &&
20936        $as_test_x conftest$ac_exeext; then
20937   ac_cv_lib_des425_des_cbc_encrypt=yes
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942         ac_cv_lib_des425_des_cbc_encrypt=no
20943 fi
20944
20945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20946       conftest$ac_exeext conftest.$ac_ext
20947 LIBS=$ac_check_lib_save_LIBS
20948 fi
20949 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20950 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20951 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20952   K4LIBS="-ldes425"
20953 else
20954   K4LIBS=""
20955 fi
20956
20957
20958 fi
20959
20960                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20961 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20962     cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h.  */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h.  */
20968 #include <krb.h>
20969 int
20970 main ()
20971 {
20972 const char *tmp = krb4_version;
20973   ;
20974   return 0;
20975 }
20976 _ACEOF
20977 rm -f conftest.$ac_objext
20978 if { (ac_try="$ac_compile"
20979 case "(($ac_try" in
20980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981   *) ac_try_echo=$ac_try;;
20982 esac
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984   (eval "$ac_compile") 2>conftest.er1
20985   ac_status=$?
20986   grep -v '^ *+' conftest.er1 >conftest.err
20987   rm -f conftest.er1
20988   cat conftest.err >&5
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); } && {
20991          test -z "$ac_c_werror_flag" ||
20992          test ! -s conftest.err
20993        } && test -s conftest.$ac_objext; then
20994
20995             { echo "$as_me:$LINENO: result: yes" >&5
20996 echo "${ECHO_T}yes" >&6; }
20997             K4LIBS="${K4LIBS} -lcom_err"
20998             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20999 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21000 if test "${ac_cv_lib_roken_main+set}" = set; then
21001   echo $ECHO_N "(cached) $ECHO_C" >&6
21002 else
21003   ac_check_lib_save_LIBS=$LIBS
21004 LIBS="-lroken  $LIBS"
21005 cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h.  */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h.  */
21011
21012
21013 int
21014 main ()
21015 {
21016 return main ();
21017   ;
21018   return 0;
21019 }
21020 _ACEOF
21021 rm -f conftest.$ac_objext conftest$ac_exeext
21022 if { (ac_try="$ac_link"
21023 case "(($ac_try" in
21024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025   *) ac_try_echo=$ac_try;;
21026 esac
21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21028   (eval "$ac_link") 2>conftest.er1
21029   ac_status=$?
21030   grep -v '^ *+' conftest.er1 >conftest.err
21031   rm -f conftest.er1
21032   cat conftest.err >&5
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); } && {
21035          test -z "$ac_c_werror_flag" ||
21036          test ! -s conftest.err
21037        } && test -s conftest$ac_exeext &&
21038        $as_test_x conftest$ac_exeext; then
21039   ac_cv_lib_roken_main=yes
21040 else
21041   echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044         ac_cv_lib_roken_main=no
21045 fi
21046
21047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21048       conftest$ac_exeext conftest.$ac_ext
21049 LIBS=$ac_check_lib_save_LIBS
21050 fi
21051 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21052 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21053 if test $ac_cv_lib_roken_main = yes; then
21054   K4LIBS="${K4LIBS} -lroken"
21055 fi
21056
21057
21058 else
21059   echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21061
21062
21063             { echo "$as_me:$LINENO: result: no" >&5
21064 echo "${ECHO_T}no" >&6; }
21065
21066
21067 fi
21068
21069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21070                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
21071 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
21072 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
21073 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21074   echo $ECHO_N "(cached) $ECHO_C" >&6
21075 else
21076   ac_check_lib_save_LIBS=$LIBS
21077 LIBS="-lkrb $K4LIBS $LIBS"
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h.  */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h.  */
21084
21085
21086 int
21087 main ()
21088 {
21089 return main ();
21090   ;
21091   return 0;
21092 }
21093 _ACEOF
21094 rm -f conftest.$ac_objext conftest$ac_exeext
21095 if { (ac_try="$ac_link"
21096 case "(($ac_try" in
21097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098   *) ac_try_echo=$ac_try;;
21099 esac
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101   (eval "$ac_link") 2>conftest.er1
21102   ac_status=$?
21103   grep -v '^ *+' conftest.er1 >conftest.err
21104   rm -f conftest.er1
21105   cat conftest.err >&5
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } && {
21108          test -z "$ac_c_werror_flag" ||
21109          test ! -s conftest.err
21110        } && test -s conftest$ac_exeext &&
21111        $as_test_x conftest$ac_exeext; then
21112   eval "$as_ac_Lib=yes"
21113 else
21114   echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21116
21117         eval "$as_ac_Lib=no"
21118 fi
21119
21120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21121       conftest$ac_exeext conftest.$ac_ext
21122 LIBS=$ac_check_lib_save_LIBS
21123 fi
21124 ac_res=`eval echo '${'$as_ac_Lib'}'`
21125                { echo "$as_me:$LINENO: result: $ac_res" >&5
21126 echo "${ECHO_T}$ac_res" >&6; }
21127 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21128   K4LIBS="-lkrb $K4LIBS"
21129 else
21130
21131         as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
21132 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
21133 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
21134 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21135   echo $ECHO_N "(cached) $ECHO_C" >&6
21136 else
21137   ac_check_lib_save_LIBS=$LIBS
21138 LIBS="-lkrb4 $K4LIBS $LIBS"
21139 cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145
21146
21147 int
21148 main ()
21149 {
21150 return main ();
21151   ;
21152   return 0;
21153 }
21154 _ACEOF
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (ac_try="$ac_link"
21157 case "(($ac_try" in
21158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159   *) ac_try_echo=$ac_try;;
21160 esac
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162   (eval "$ac_link") 2>conftest.er1
21163   ac_status=$?
21164   grep -v '^ *+' conftest.er1 >conftest.err
21165   rm -f conftest.er1
21166   cat conftest.err >&5
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); } && {
21169          test -z "$ac_c_werror_flag" ||
21170          test ! -s conftest.err
21171        } && test -s conftest$ac_exeext &&
21172        $as_test_x conftest$ac_exeext; then
21173   eval "$as_ac_Lib=yes"
21174 else
21175   echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21177
21178         eval "$as_ac_Lib=no"
21179 fi
21180
21181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21182       conftest$ac_exeext conftest.$ac_ext
21183 LIBS=$ac_check_lib_save_LIBS
21184 fi
21185 ac_res=`eval echo '${'$as_ac_Lib'}'`
21186                { echo "$as_me:$LINENO: result: $ac_res" >&5
21187 echo "${ECHO_T}$ac_res" >&6; }
21188 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21189   K4LIBS="-lkrb4 $K4LIBS"
21190 else
21191   K4LIBS="-lkrb $K4LIBS"
21192             { 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
21193 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;}
21194
21195 fi
21196
21197
21198 fi
21199
21200     LDFLAGS="$O_LDFLAGS"
21201     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
21202     AUTH_OBJS="$AUTH_OBJS kerb4.o"
21203 fi
21204
21205 if test ${with_kerb5-'no'} != "no"; then
21206     # Extract the first word of "krb5-config", so it can be a program name with args.
21207 set dummy krb5-config; ac_word=$2
21208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21210 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
21211   echo $ECHO_N "(cached) $ECHO_C" >&6
21212 else
21213   if test -n "$KRB5CONFIG"; then
21214   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
21215 else
21216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21217 for as_dir in $PATH
21218 do
21219   IFS=$as_save_IFS
21220   test -z "$as_dir" && as_dir=.
21221   for ac_exec_ext in '' $ac_executable_extensions; do
21222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21223     ac_cv_prog_KRB5CONFIG="yes"
21224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21225     break 2
21226   fi
21227 done
21228 done
21229 IFS=$as_save_IFS
21230
21231   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
21232 fi
21233 fi
21234 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
21235 if test -n "$KRB5CONFIG"; then
21236   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
21237 echo "${ECHO_T}$KRB5CONFIG" >&6; }
21238 else
21239   { echo "$as_me:$LINENO: result: no" >&5
21240 echo "${ECHO_T}no" >&6; }
21241 fi
21242
21243
21244     if test -n "$KRB5CONFIG"; then
21245         cat >>confdefs.h <<\_ACEOF
21246 #define HAVE_KERB5 1
21247 _ACEOF
21248
21249         AUTH_OBJS="$AUTH_OBJS kerb5.o"
21250         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
21251         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
21252                                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21253 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21254         cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h.  */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h.  */
21260 #include <krb5.h>
21261 int
21262 main ()
21263 {
21264 const char *tmp = heimdal_version;
21265   ;
21266   return 0;
21267 }
21268 _ACEOF
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273   *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276   (eval "$ac_compile") 2>conftest.er1
21277   ac_status=$?
21278   grep -v '^ *+' conftest.er1 >conftest.err
21279   rm -f conftest.er1
21280   cat conftest.err >&5
21281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282   (exit $ac_status); } && {
21283          test -z "$ac_c_werror_flag" ||
21284          test ! -s conftest.err
21285        } && test -s conftest.$ac_objext; then
21286
21287                 { echo "$as_me:$LINENO: result: yes" >&5
21288 echo "${ECHO_T}yes" >&6; }
21289                 cat >>confdefs.h <<\_ACEOF
21290 #define HAVE_HEIMDAL 1
21291 _ACEOF
21292
21293
21294 else
21295   echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298
21299                 { echo "$as_me:$LINENO: result: no" >&5
21300 echo "${ECHO_T}no" >&6; }
21301
21302
21303 fi
21304
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306     fi
21307 fi
21308 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21309     cat >>confdefs.h <<\_ACEOF
21310 #define HAVE_KERB5 1
21311 _ACEOF
21312
21313                 if test "$with_kerb5" = "yes"; then
21314         found=no
21315         O_CPPFLAGS="$CPPFLAGS"
21316         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21317             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21318             cat >conftest.$ac_ext <<_ACEOF
21319 #include <krb5.h>
21320 _ACEOF
21321 if { (ac_try="$ac_cpp conftest.$ac_ext"
21322 case "(($ac_try" in
21323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324   *) ac_try_echo=$ac_try;;
21325 esac
21326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21328   ac_status=$?
21329   grep -v '^ *+' conftest.er1 >conftest.err
21330   rm -f conftest.er1
21331   cat conftest.err >&5
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); } >/dev/null && {
21334          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21335          test ! -s conftest.err
21336        }; then
21337   found=yes; break
21338 else
21339   echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341
21342
21343 fi
21344
21345 rm -f conftest.err conftest.$ac_ext
21346         done
21347         if test X"$found" = X"no"; then
21348             CPPFLAGS="$O_CPPFLAGS"
21349             { 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
21350 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;}
21351         fi
21352     else
21353
21354     if test X"$with_rpath" = X"yes"; then
21355         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21356     else
21357         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21358     fi
21359     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21360         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21361     fi
21362
21363         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21364     fi
21365
21366                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21367 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21368     cat >conftest.$ac_ext <<_ACEOF
21369 /* confdefs.h.  */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h.  */
21374 #include <krb5.h>
21375 int
21376 main ()
21377 {
21378 const char *tmp = heimdal_version;
21379   ;
21380   return 0;
21381 }
21382 _ACEOF
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387   *) ac_try_echo=$ac_try;;
21388 esac
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390   (eval "$ac_compile") 2>conftest.er1
21391   ac_status=$?
21392   grep -v '^ *+' conftest.er1 >conftest.err
21393   rm -f conftest.er1
21394   cat conftest.err >&5
21395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396   (exit $ac_status); } && {
21397          test -z "$ac_c_werror_flag" ||
21398          test ! -s conftest.err
21399        } && test -s conftest.$ac_objext; then
21400
21401             { echo "$as_me:$LINENO: result: yes" >&5
21402 echo "${ECHO_T}yes" >&6; }
21403             cat >>confdefs.h <<\_ACEOF
21404 #define HAVE_HEIMDAL 1
21405 _ACEOF
21406
21407             # XXX - need to check whether -lcrypo is needed!
21408             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21409             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21410 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21411 if test "${ac_cv_lib_roken_main+set}" = set; then
21412   echo $ECHO_N "(cached) $ECHO_C" >&6
21413 else
21414   ac_check_lib_save_LIBS=$LIBS
21415 LIBS="-lroken  $LIBS"
21416 cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h.  */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h.  */
21422
21423
21424 int
21425 main ()
21426 {
21427 return main ();
21428   ;
21429   return 0;
21430 }
21431 _ACEOF
21432 rm -f conftest.$ac_objext conftest$ac_exeext
21433 if { (ac_try="$ac_link"
21434 case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_link") 2>conftest.er1
21440   ac_status=$?
21441   grep -v '^ *+' conftest.er1 >conftest.err
21442   rm -f conftest.er1
21443   cat conftest.err >&5
21444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445   (exit $ac_status); } && {
21446          test -z "$ac_c_werror_flag" ||
21447          test ! -s conftest.err
21448        } && test -s conftest$ac_exeext &&
21449        $as_test_x conftest$ac_exeext; then
21450   ac_cv_lib_roken_main=yes
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455         ac_cv_lib_roken_main=no
21456 fi
21457
21458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21459       conftest$ac_exeext conftest.$ac_ext
21460 LIBS=$ac_check_lib_save_LIBS
21461 fi
21462 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21463 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21464 if test $ac_cv_lib_roken_main = yes; then
21465   SUDO_LIBS="${SUDO_LIBS} -lroken"
21466 fi
21467
21468
21469 else
21470   echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21472
21473
21474             { echo "$as_me:$LINENO: result: no" >&5
21475 echo "${ECHO_T}no" >&6; }
21476             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21477             { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21478 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21479 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21480   echo $ECHO_N "(cached) $ECHO_C" >&6
21481 else
21482   ac_check_lib_save_LIBS=$LIBS
21483 LIBS="-lkrb5support  $LIBS"
21484 cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490
21491
21492 int
21493 main ()
21494 {
21495 return main ();
21496   ;
21497   return 0;
21498 }
21499 _ACEOF
21500 rm -f conftest.$ac_objext conftest$ac_exeext
21501 if { (ac_try="$ac_link"
21502 case "(($ac_try" in
21503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504   *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507   (eval "$ac_link") 2>conftest.er1
21508   ac_status=$?
21509   grep -v '^ *+' conftest.er1 >conftest.err
21510   rm -f conftest.er1
21511   cat conftest.err >&5
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); } && {
21514          test -z "$ac_c_werror_flag" ||
21515          test ! -s conftest.err
21516        } && test -s conftest$ac_exeext &&
21517        $as_test_x conftest$ac_exeext; then
21518   ac_cv_lib_krb5support_main=yes
21519 else
21520   echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21522
21523         ac_cv_lib_krb5support_main=no
21524 fi
21525
21526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21527       conftest$ac_exeext conftest.$ac_ext
21528 LIBS=$ac_check_lib_save_LIBS
21529 fi
21530 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21531 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21532 if test $ac_cv_lib_krb5support_main = yes; then
21533   SUDO_LIBS="${SUDO_LIBS} -lkrb5support"
21534 fi
21535
21536
21537 fi
21538
21539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540     AUTH_OBJS="$AUTH_OBJS kerb5.o"
21541     _LIBS="$LIBS"
21542     LIBS="${LIBS} ${SUDO_LIBS}"
21543
21544
21545 for ac_func in krb5_verify_user krb5_init_secure_context
21546 do
21547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21551   echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553   cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h.  */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h.  */
21559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21561 #define $ac_func innocuous_$ac_func
21562
21563 /* System header to define __stub macros and hopefully few prototypes,
21564     which can conflict with char $ac_func (); below.
21565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21566     <limits.h> exists even on freestanding compilers.  */
21567
21568 #ifdef __STDC__
21569 # include <limits.h>
21570 #else
21571 # include <assert.h>
21572 #endif
21573
21574 #undef $ac_func
21575
21576 /* Override any GCC internal prototype to avoid an error.
21577    Use char because int might match the return type of a GCC
21578    builtin and then its argument prototype would still apply.  */
21579 #ifdef __cplusplus
21580 extern "C"
21581 #endif
21582 char $ac_func ();
21583 /* The GNU C library defines this for functions which it implements
21584     to always fail with ENOSYS.  Some functions are actually named
21585     something starting with __ and the normal name is an alias.  */
21586 #if defined __stub_$ac_func || defined __stub___$ac_func
21587 choke me
21588 #endif
21589
21590 int
21591 main ()
21592 {
21593 return $ac_func ();
21594   ;
21595   return 0;
21596 }
21597 _ACEOF
21598 rm -f conftest.$ac_objext conftest$ac_exeext
21599 if { (ac_try="$ac_link"
21600 case "(($ac_try" in
21601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602   *) ac_try_echo=$ac_try;;
21603 esac
21604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605   (eval "$ac_link") 2>conftest.er1
21606   ac_status=$?
21607   grep -v '^ *+' conftest.er1 >conftest.err
21608   rm -f conftest.er1
21609   cat conftest.err >&5
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); } && {
21612          test -z "$ac_c_werror_flag" ||
21613          test ! -s conftest.err
21614        } && test -s conftest$ac_exeext &&
21615        $as_test_x conftest$ac_exeext; then
21616   eval "$as_ac_var=yes"
21617 else
21618   echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621         eval "$as_ac_var=no"
21622 fi
21623
21624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21625       conftest$ac_exeext conftest.$ac_ext
21626 fi
21627 ac_res=`eval echo '${'$as_ac_var'}'`
21628                { echo "$as_me:$LINENO: result: $ac_res" >&5
21629 echo "${ECHO_T}$ac_res" >&6; }
21630 if test `eval echo '${'$as_ac_var'}'` = yes; then
21631   cat >>confdefs.h <<_ACEOF
21632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21633 _ACEOF
21634
21635 fi
21636 done
21637
21638
21639 for ac_func in krb5_get_init_creds_opt_alloc
21640 do
21641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21645   echo $ECHO_N "(cached) $ECHO_C" >&6
21646 else
21647   cat >conftest.$ac_ext <<_ACEOF
21648 /* confdefs.h.  */
21649 _ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h.  */
21653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21655 #define $ac_func innocuous_$ac_func
21656
21657 /* System header to define __stub macros and hopefully few prototypes,
21658     which can conflict with char $ac_func (); below.
21659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21660     <limits.h> exists even on freestanding compilers.  */
21661
21662 #ifdef __STDC__
21663 # include <limits.h>
21664 #else
21665 # include <assert.h>
21666 #endif
21667
21668 #undef $ac_func
21669
21670 /* Override any GCC internal prototype to avoid an error.
21671    Use char because int might match the return type of a GCC
21672    builtin and then its argument prototype would still apply.  */
21673 #ifdef __cplusplus
21674 extern "C"
21675 #endif
21676 char $ac_func ();
21677 /* The GNU C library defines this for functions which it implements
21678     to always fail with ENOSYS.  Some functions are actually named
21679     something starting with __ and the normal name is an alias.  */
21680 #if defined __stub_$ac_func || defined __stub___$ac_func
21681 choke me
21682 #endif
21683
21684 int
21685 main ()
21686 {
21687 return $ac_func ();
21688   ;
21689   return 0;
21690 }
21691 _ACEOF
21692 rm -f conftest.$ac_objext conftest$ac_exeext
21693 if { (ac_try="$ac_link"
21694 case "(($ac_try" in
21695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696   *) ac_try_echo=$ac_try;;
21697 esac
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699   (eval "$ac_link") 2>conftest.er1
21700   ac_status=$?
21701   grep -v '^ *+' conftest.er1 >conftest.err
21702   rm -f conftest.er1
21703   cat conftest.err >&5
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); } && {
21706          test -z "$ac_c_werror_flag" ||
21707          test ! -s conftest.err
21708        } && test -s conftest$ac_exeext &&
21709        $as_test_x conftest$ac_exeext; then
21710   eval "$as_ac_var=yes"
21711 else
21712   echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21714
21715         eval "$as_ac_var=no"
21716 fi
21717
21718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21719       conftest$ac_exeext conftest.$ac_ext
21720 fi
21721 ac_res=`eval echo '${'$as_ac_var'}'`
21722                { echo "$as_me:$LINENO: result: $ac_res" >&5
21723 echo "${ECHO_T}$ac_res" >&6; }
21724 if test `eval echo '${'$as_ac_var'}'` = yes; then
21725   cat >>confdefs.h <<_ACEOF
21726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21727 _ACEOF
21728
21729         { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a context" >&5
21730 echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a context... $ECHO_C" >&6; }
21731 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then
21732   echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734
21735                 cat >conftest.$ac_ext <<_ACEOF
21736 /* confdefs.h.  */
21737 _ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h.  */
21741 #include <krb5.h>
21742 int
21743 main ()
21744 {
21745 krb5_get_init_creds_opt_free(NULL, NULL);
21746   ;
21747   return 0;
21748 }
21749 _ACEOF
21750 rm -f conftest.$ac_objext
21751 if { (ac_try="$ac_compile"
21752 case "(($ac_try" in
21753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754   *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757   (eval "$ac_compile") 2>conftest.er1
21758   ac_status=$?
21759   grep -v '^ *+' conftest.er1 >conftest.err
21760   rm -f conftest.er1
21761   cat conftest.err >&5
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); } && {
21764          test -z "$ac_c_werror_flag" ||
21765          test ! -s conftest.err
21766        } && test -s conftest.$ac_objext; then
21767   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
21768 else
21769   echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772         sudo_cv_krb5_get_init_creds_opt_free_two_args=no
21773
21774 fi
21775
21776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21777
21778
21779 fi
21780 { echo "$as_me:$LINENO: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
21781 echo "${ECHO_T}$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
21782
21783 fi
21784 done
21785
21786     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
21787         cat >>confdefs.h <<\_ACEOF
21788 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1
21789 _ACEOF
21790
21791     fi
21792     LIBS="$_LIBS"
21793 fi
21794
21795 if test ${with_AFS-'no'} = "yes"; then
21796
21797     # looks like the "standard" place for AFS libs is /usr/afsws/lib
21798     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21799     for i in $AFSLIBDIRS; do
21800         if test -d ${i}; then
21801
21802     if test X"$with_rpath" = X"yes"; then
21803         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21804     else
21805         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21806     fi
21807     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21808         blibpath_add="${blibpath_add}:$i"
21809     fi
21810
21811             FOUND_AFSLIBDIR=true
21812         fi
21813     done
21814     if test -z "$FOUND_AFSLIBDIR"; then
21815         { 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
21816 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;}
21817     fi
21818
21819     # Order is important here.  Note that we build AFS_LIBS from right to left
21820     # since AFS_LIBS may be initialized with BSD compat libs that must go last
21821     AFS_LIBS="-laudit ${AFS_LIBS}"
21822     for i in $AFSLIBDIRS; do
21823         if test -f ${i}/util.a; then
21824             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21825             FOUND_UTIL_A=true
21826             break;
21827         fi
21828     done
21829     if test -z "$FOUND_UTIL_A"; then
21830         AFS_LIBS="-lutil ${AFS_LIBS}"
21831     fi
21832     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21833
21834     # AFS includes may live in /usr/include on some machines...
21835     for i in /usr/afsws/include; do
21836         if test -d ${i}; then
21837             CPPFLAGS="${CPPFLAGS} -I${i}"
21838             FOUND_AFSINCDIR=true
21839         fi
21840     done
21841
21842     if test -z "$FOUND_AFSLIBDIR"; then
21843         { 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
21844 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;}
21845     fi
21846
21847     AUTH_OBJS="$AUTH_OBJS afs.o"
21848 fi
21849
21850 if test ${with_DCE-'no'} = "yes"; then
21851     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21852     SUDO_LIBS="${SUDO_LIBS} -ldce"
21853     AUTH_OBJS="$AUTH_OBJS dce.o"
21854 fi
21855
21856 if test ${with_skey-'no'} = "yes"; then
21857     O_LDFLAGS="$LDFLAGS"
21858     if test "$with_skey" != "yes"; then
21859         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21860
21861     if test X"$with_rpath" = X"yes"; then
21862         LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21863     else
21864         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21865     fi
21866     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21867         blibpath_add="${blibpath_add}:${with_skey}/lib"
21868     fi
21869
21870
21871     if test X"$with_rpath" = X"yes"; then
21872         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21873     else
21874         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21875     fi
21876     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21877         blibpath_add="${blibpath_add}:${with_skey}/lib"
21878     fi
21879
21880         cat >conftest.$ac_ext <<_ACEOF
21881 #include <skey.h>
21882 _ACEOF
21883 if { (ac_try="$ac_cpp conftest.$ac_ext"
21884 case "(($ac_try" in
21885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886   *) ac_try_echo=$ac_try;;
21887 esac
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21890   ac_status=$?
21891   grep -v '^ *+' conftest.er1 >conftest.err
21892   rm -f conftest.er1
21893   cat conftest.err >&5
21894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); } >/dev/null && {
21896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21897          test ! -s conftest.err
21898        }; then
21899   found=yes
21900 else
21901   echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904   found=no
21905 fi
21906
21907 rm -f conftest.err conftest.$ac_ext
21908     else
21909         found=no
21910         O_CPPFLAGS="$CPPFLAGS"
21911         for dir in "" "/usr/local" "/usr/contrib"; do
21912             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21913             cat >conftest.$ac_ext <<_ACEOF
21914 #include <skey.h>
21915 _ACEOF
21916 if { (ac_try="$ac_cpp conftest.$ac_ext"
21917 case "(($ac_try" in
21918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919   *) ac_try_echo=$ac_try;;
21920 esac
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21923   ac_status=$?
21924   grep -v '^ *+' conftest.er1 >conftest.err
21925   rm -f conftest.er1
21926   cat conftest.err >&5
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); } >/dev/null && {
21929          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21930          test ! -s conftest.err
21931        }; then
21932   found=yes; break
21933 else
21934   echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21936
21937
21938 fi
21939
21940 rm -f conftest.err conftest.$ac_ext
21941         done
21942         if test "$found" = "no" -o -z "$dir"; then
21943             CPPFLAGS="$O_CPPFLAGS"
21944         else
21945
21946     if test X"$with_rpath" = X"yes"; then
21947         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21948     else
21949         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21950     fi
21951     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21952         blibpath_add="${blibpath_add}:${dir}/lib"
21953     fi
21954
21955
21956     if test X"$with_rpath" = X"yes"; then
21957         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21958     else
21959         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21960     fi
21961     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21962         blibpath_add="${blibpath_add}:${dir}/lib"
21963     fi
21964
21965         fi
21966     fi
21967     if test "$found" = "no"; then
21968         { 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
21969 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;}
21970     fi
21971     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21972 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21973 if test "${ac_cv_lib_skey_main+set}" = set; then
21974   echo $ECHO_N "(cached) $ECHO_C" >&6
21975 else
21976   ac_check_lib_save_LIBS=$LIBS
21977 LIBS="-lskey  $LIBS"
21978 cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h.  */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h.  */
21984
21985
21986 int
21987 main ()
21988 {
21989 return main ();
21990   ;
21991   return 0;
21992 }
21993 _ACEOF
21994 rm -f conftest.$ac_objext conftest$ac_exeext
21995 if { (ac_try="$ac_link"
21996 case "(($ac_try" in
21997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21998   *) ac_try_echo=$ac_try;;
21999 esac
22000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22001   (eval "$ac_link") 2>conftest.er1
22002   ac_status=$?
22003   grep -v '^ *+' conftest.er1 >conftest.err
22004   rm -f conftest.er1
22005   cat conftest.err >&5
22006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007   (exit $ac_status); } && {
22008          test -z "$ac_c_werror_flag" ||
22009          test ! -s conftest.err
22010        } && test -s conftest$ac_exeext &&
22011        $as_test_x conftest$ac_exeext; then
22012   ac_cv_lib_skey_main=yes
22013 else
22014   echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22016
22017         ac_cv_lib_skey_main=no
22018 fi
22019
22020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22021       conftest$ac_exeext conftest.$ac_ext
22022 LIBS=$ac_check_lib_save_LIBS
22023 fi
22024 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
22025 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
22026 if test $ac_cv_lib_skey_main = yes; then
22027   found=yes
22028 else
22029   { 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
22030 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;}
22031 fi
22032
22033     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
22034 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
22035 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
22036   echo $ECHO_N "(cached) $ECHO_C" >&6
22037 else
22038   ac_check_lib_save_LIBS=$LIBS
22039 LIBS="-lskey  $LIBS"
22040 cat >conftest.$ac_ext <<_ACEOF
22041 /* confdefs.h.  */
22042 _ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h.  */
22046
22047 /* Override any GCC internal prototype to avoid an error.
22048    Use char because int might match the return type of a GCC
22049    builtin and then its argument prototype would still apply.  */
22050 #ifdef __cplusplus
22051 extern "C"
22052 #endif
22053 char skeyaccess ();
22054 int
22055 main ()
22056 {
22057 return skeyaccess ();
22058   ;
22059   return 0;
22060 }
22061 _ACEOF
22062 rm -f conftest.$ac_objext conftest$ac_exeext
22063 if { (ac_try="$ac_link"
22064 case "(($ac_try" in
22065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066   *) ac_try_echo=$ac_try;;
22067 esac
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069   (eval "$ac_link") 2>conftest.er1
22070   ac_status=$?
22071   grep -v '^ *+' conftest.er1 >conftest.err
22072   rm -f conftest.er1
22073   cat conftest.err >&5
22074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075   (exit $ac_status); } && {
22076          test -z "$ac_c_werror_flag" ||
22077          test ! -s conftest.err
22078        } && test -s conftest$ac_exeext &&
22079        $as_test_x conftest$ac_exeext; then
22080   ac_cv_lib_skey_skeyaccess=yes
22081 else
22082   echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22084
22085         ac_cv_lib_skey_skeyaccess=no
22086 fi
22087
22088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22089       conftest$ac_exeext conftest.$ac_ext
22090 LIBS=$ac_check_lib_save_LIBS
22091 fi
22092 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
22093 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
22094 if test $ac_cv_lib_skey_skeyaccess = yes; then
22095   cat >>confdefs.h <<\_ACEOF
22096 #define HAVE_SKEYACCESS 1
22097 _ACEOF
22098
22099 fi
22100
22101     LDFLAGS="$O_LDFLAGS"
22102     SUDO_LIBS="${SUDO_LIBS} -lskey"
22103     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22104 fi
22105
22106 if test ${with_opie-'no'} = "yes"; then
22107     O_LDFLAGS="$LDFLAGS"
22108     if test "$with_opie" != "yes"; then
22109         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
22110
22111     if test X"$with_rpath" = X"yes"; then
22112         LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22113     else
22114         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
22115     fi
22116     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22117         blibpath_add="${blibpath_add}:${with_opie}/lib"
22118     fi
22119
22120
22121     if test X"$with_rpath" = X"yes"; then
22122         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22123     else
22124         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
22125     fi
22126     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22127         blibpath_add="${blibpath_add}:${with_opie}/lib"
22128     fi
22129
22130         cat >conftest.$ac_ext <<_ACEOF
22131 #include <opie.h>
22132 _ACEOF
22133 if { (ac_try="$ac_cpp conftest.$ac_ext"
22134 case "(($ac_try" in
22135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136   *) ac_try_echo=$ac_try;;
22137 esac
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22140   ac_status=$?
22141   grep -v '^ *+' conftest.er1 >conftest.err
22142   rm -f conftest.er1
22143   cat conftest.err >&5
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); } >/dev/null && {
22146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22147          test ! -s conftest.err
22148        }; then
22149   found=yes
22150 else
22151   echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22153
22154   found=no
22155 fi
22156
22157 rm -f conftest.err conftest.$ac_ext
22158     else
22159         found=no
22160         O_CPPFLAGS="$CPPFLAGS"
22161         for dir in "" "/usr/local" "/usr/contrib"; do
22162             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
22163             cat >conftest.$ac_ext <<_ACEOF
22164 #include <opie.h>
22165 _ACEOF
22166 if { (ac_try="$ac_cpp conftest.$ac_ext"
22167 case "(($ac_try" in
22168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169   *) ac_try_echo=$ac_try;;
22170 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22173   ac_status=$?
22174   grep -v '^ *+' conftest.er1 >conftest.err
22175   rm -f conftest.er1
22176   cat conftest.err >&5
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); } >/dev/null && {
22179          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22180          test ! -s conftest.err
22181        }; then
22182   found=yes; break
22183 else
22184   echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187
22188 fi
22189
22190 rm -f conftest.err conftest.$ac_ext
22191         done
22192         if test "$found" = "no" -o -z "$dir"; then
22193             CPPFLAGS="$O_CPPFLAGS"
22194         else
22195
22196     if test X"$with_rpath" = X"yes"; then
22197         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
22198     else
22199         LDFLAGS="${LDFLAGS} -L${dir}/lib"
22200     fi
22201     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22202         blibpath_add="${blibpath_add}:${dir}/lib"
22203     fi
22204
22205
22206     if test X"$with_rpath" = X"yes"; then
22207         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
22208     else
22209         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
22210     fi
22211     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22212         blibpath_add="${blibpath_add}:${dir}/lib"
22213     fi
22214
22215         fi
22216     fi
22217     if test "$found" = "no"; then
22218         { 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
22219 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;}
22220     fi
22221     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
22222 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
22223 if test "${ac_cv_lib_opie_main+set}" = set; then
22224   echo $ECHO_N "(cached) $ECHO_C" >&6
22225 else
22226   ac_check_lib_save_LIBS=$LIBS
22227 LIBS="-lopie  $LIBS"
22228 cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h.  */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h.  */
22234
22235
22236 int
22237 main ()
22238 {
22239 return main ();
22240   ;
22241   return 0;
22242 }
22243 _ACEOF
22244 rm -f conftest.$ac_objext conftest$ac_exeext
22245 if { (ac_try="$ac_link"
22246 case "(($ac_try" in
22247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248   *) ac_try_echo=$ac_try;;
22249 esac
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251   (eval "$ac_link") 2>conftest.er1
22252   ac_status=$?
22253   grep -v '^ *+' conftest.er1 >conftest.err
22254   rm -f conftest.er1
22255   cat conftest.err >&5
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); } && {
22258          test -z "$ac_c_werror_flag" ||
22259          test ! -s conftest.err
22260        } && test -s conftest$ac_exeext &&
22261        $as_test_x conftest$ac_exeext; then
22262   ac_cv_lib_opie_main=yes
22263 else
22264   echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22266
22267         ac_cv_lib_opie_main=no
22268 fi
22269
22270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22271       conftest$ac_exeext conftest.$ac_ext
22272 LIBS=$ac_check_lib_save_LIBS
22273 fi
22274 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
22275 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
22276 if test $ac_cv_lib_opie_main = yes; then
22277   found=yes
22278 else
22279   { 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
22280 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;}
22281 fi
22282
22283     LDFLAGS="$O_LDFLAGS"
22284     SUDO_LIBS="${SUDO_LIBS} -lopie"
22285     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22286 fi
22287
22288 if test ${with_passwd-'no'} != "no"; then
22289                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
22290         { echo "$as_me:$LINENO: checking for library containing crypt" >&5
22291 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22292 if test "${ac_cv_search_crypt+set}" = set; then
22293   echo $ECHO_N "(cached) $ECHO_C" >&6
22294 else
22295   ac_func_search_save_LIBS=$LIBS
22296 cat >conftest.$ac_ext <<_ACEOF
22297 /* confdefs.h.  */
22298 _ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h.  */
22302
22303 /* Override any GCC internal prototype to avoid an error.
22304    Use char because int might match the return type of a GCC
22305    builtin and then its argument prototype would still apply.  */
22306 #ifdef __cplusplus
22307 extern "C"
22308 #endif
22309 char crypt ();
22310 int
22311 main ()
22312 {
22313 return crypt ();
22314   ;
22315   return 0;
22316 }
22317 _ACEOF
22318 for ac_lib in '' crypt crypt_d ufc; do
22319   if test -z "$ac_lib"; then
22320     ac_res="none required"
22321   else
22322     ac_res=-l$ac_lib
22323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22324   fi
22325   rm -f conftest.$ac_objext conftest$ac_exeext
22326 if { (ac_try="$ac_link"
22327 case "(($ac_try" in
22328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329   *) ac_try_echo=$ac_try;;
22330 esac
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332   (eval "$ac_link") 2>conftest.er1
22333   ac_status=$?
22334   grep -v '^ *+' conftest.er1 >conftest.err
22335   rm -f conftest.er1
22336   cat conftest.err >&5
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); } && {
22339          test -z "$ac_c_werror_flag" ||
22340          test ! -s conftest.err
22341        } && test -s conftest$ac_exeext &&
22342        $as_test_x conftest$ac_exeext; then
22343   ac_cv_search_crypt=$ac_res
22344 else
22345   echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348
22349 fi
22350
22351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22352       conftest$ac_exeext
22353   if test "${ac_cv_search_crypt+set}" = set; then
22354   break
22355 fi
22356 done
22357 if test "${ac_cv_search_crypt+set}" = set; then
22358   :
22359 else
22360   ac_cv_search_crypt=no
22361 fi
22362 rm conftest.$ac_ext
22363 LIBS=$ac_func_search_save_LIBS
22364 fi
22365 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22366 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22367 ac_res=$ac_cv_search_crypt
22368 if test "$ac_res" != no; then
22369   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22370   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22371 fi
22372
22373     fi
22374
22375     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
22376         _LIBS="$LIBS"
22377         LIBS="$LIBS $shadow_libs"
22378         found=no
22379
22380 for ac_func in $shadow_funcs
22381 do
22382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22386   echo $ECHO_N "(cached) $ECHO_C" >&6
22387 else
22388   cat >conftest.$ac_ext <<_ACEOF
22389 /* confdefs.h.  */
22390 _ACEOF
22391 cat confdefs.h >>conftest.$ac_ext
22392 cat >>conftest.$ac_ext <<_ACEOF
22393 /* end confdefs.h.  */
22394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22396 #define $ac_func innocuous_$ac_func
22397
22398 /* System header to define __stub macros and hopefully few prototypes,
22399     which can conflict with char $ac_func (); below.
22400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22401     <limits.h> exists even on freestanding compilers.  */
22402
22403 #ifdef __STDC__
22404 # include <limits.h>
22405 #else
22406 # include <assert.h>
22407 #endif
22408
22409 #undef $ac_func
22410
22411 /* Override any GCC internal prototype to avoid an error.
22412    Use char because int might match the return type of a GCC
22413    builtin and then its argument prototype would still apply.  */
22414 #ifdef __cplusplus
22415 extern "C"
22416 #endif
22417 char $ac_func ();
22418 /* The GNU C library defines this for functions which it implements
22419     to always fail with ENOSYS.  Some functions are actually named
22420     something starting with __ and the normal name is an alias.  */
22421 #if defined __stub_$ac_func || defined __stub___$ac_func
22422 choke me
22423 #endif
22424
22425 int
22426 main ()
22427 {
22428 return $ac_func ();
22429   ;
22430   return 0;
22431 }
22432 _ACEOF
22433 rm -f conftest.$ac_objext conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437   *) ac_try_echo=$ac_try;;
22438 esac
22439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440   (eval "$ac_link") 2>conftest.er1
22441   ac_status=$?
22442   grep -v '^ *+' conftest.er1 >conftest.err
22443   rm -f conftest.er1
22444   cat conftest.err >&5
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } && {
22447          test -z "$ac_c_werror_flag" ||
22448          test ! -s conftest.err
22449        } && test -s conftest$ac_exeext &&
22450        $as_test_x conftest$ac_exeext; then
22451   eval "$as_ac_var=yes"
22452 else
22453   echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22455
22456         eval "$as_ac_var=no"
22457 fi
22458
22459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22460       conftest$ac_exeext conftest.$ac_ext
22461 fi
22462 ac_res=`eval echo '${'$as_ac_var'}'`
22463                { echo "$as_me:$LINENO: result: $ac_res" >&5
22464 echo "${ECHO_T}$ac_res" >&6; }
22465 if test `eval echo '${'$as_ac_var'}'` = yes; then
22466   cat >>confdefs.h <<_ACEOF
22467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22468 _ACEOF
22469  found=yes
22470 fi
22471 done
22472
22473         if test "$found" = "yes"; then
22474             SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22475         elif test -n "$shadow_libs_optional"; then
22476             LIBS="$LIBS $shadow_libs_optional"
22477
22478 for ac_func in $shadow_funcs
22479 do
22480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22484   echo $ECHO_N "(cached) $ECHO_C" >&6
22485 else
22486   cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h.  */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h.  */
22492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22494 #define $ac_func innocuous_$ac_func
22495
22496 /* System header to define __stub macros and hopefully few prototypes,
22497     which can conflict with char $ac_func (); below.
22498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22499     <limits.h> exists even on freestanding compilers.  */
22500
22501 #ifdef __STDC__
22502 # include <limits.h>
22503 #else
22504 # include <assert.h>
22505 #endif
22506
22507 #undef $ac_func
22508
22509 /* Override any GCC internal prototype to avoid an error.
22510    Use char because int might match the return type of a GCC
22511    builtin and then its argument prototype would still apply.  */
22512 #ifdef __cplusplus
22513 extern "C"
22514 #endif
22515 char $ac_func ();
22516 /* The GNU C library defines this for functions which it implements
22517     to always fail with ENOSYS.  Some functions are actually named
22518     something starting with __ and the normal name is an alias.  */
22519 #if defined __stub_$ac_func || defined __stub___$ac_func
22520 choke me
22521 #endif
22522
22523 int
22524 main ()
22525 {
22526 return $ac_func ();
22527   ;
22528   return 0;
22529 }
22530 _ACEOF
22531 rm -f conftest.$ac_objext conftest$ac_exeext
22532 if { (ac_try="$ac_link"
22533 case "(($ac_try" in
22534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535   *) ac_try_echo=$ac_try;;
22536 esac
22537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538   (eval "$ac_link") 2>conftest.er1
22539   ac_status=$?
22540   grep -v '^ *+' conftest.er1 >conftest.err
22541   rm -f conftest.er1
22542   cat conftest.err >&5
22543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544   (exit $ac_status); } && {
22545          test -z "$ac_c_werror_flag" ||
22546          test ! -s conftest.err
22547        } && test -s conftest$ac_exeext &&
22548        $as_test_x conftest$ac_exeext; then
22549   eval "$as_ac_var=yes"
22550 else
22551   echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22553
22554         eval "$as_ac_var=no"
22555 fi
22556
22557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22558       conftest$ac_exeext conftest.$ac_ext
22559 fi
22560 ac_res=`eval echo '${'$as_ac_var'}'`
22561                { echo "$as_me:$LINENO: result: $ac_res" >&5
22562 echo "${ECHO_T}$ac_res" >&6; }
22563 if test `eval echo '${'$as_ac_var'}'` = yes; then
22564   cat >>confdefs.h <<_ACEOF
22565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22566 _ACEOF
22567  found=yes
22568 fi
22569 done
22570
22571             if test "$found" = "yes"; then
22572                 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22573             fi
22574         fi
22575         if test "$found" = "yes"; then
22576             case "$shadow_funcs" in
22577                 *getprpwnam*) SECUREWARE=1;;
22578             esac
22579             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22580         else
22581             LIBS="$_LIBS"
22582         fi
22583         CHECKSHADOW=false
22584     fi
22585     if test "$CHECKSHADOW" = "true"; then
22586         { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22587 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22588 if test "${ac_cv_search_getspnam+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591   ac_func_search_save_LIBS=$LIBS
22592 cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h.  */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h.  */
22598
22599 /* Override any GCC internal prototype to avoid an error.
22600    Use char because int might match the return type of a GCC
22601    builtin and then its argument prototype would still apply.  */
22602 #ifdef __cplusplus
22603 extern "C"
22604 #endif
22605 char getspnam ();
22606 int
22607 main ()
22608 {
22609 return getspnam ();
22610   ;
22611   return 0;
22612 }
22613 _ACEOF
22614 for ac_lib in '' gen; do
22615   if test -z "$ac_lib"; then
22616     ac_res="none required"
22617   else
22618     ac_res=-l$ac_lib
22619     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22620   fi
22621   rm -f conftest.$ac_objext conftest$ac_exeext
22622 if { (ac_try="$ac_link"
22623 case "(($ac_try" in
22624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625   *) ac_try_echo=$ac_try;;
22626 esac
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628   (eval "$ac_link") 2>conftest.er1
22629   ac_status=$?
22630   grep -v '^ *+' conftest.er1 >conftest.err
22631   rm -f conftest.er1
22632   cat conftest.err >&5
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } && {
22635          test -z "$ac_c_werror_flag" ||
22636          test ! -s conftest.err
22637        } && test -s conftest$ac_exeext &&
22638        $as_test_x conftest$ac_exeext; then
22639   ac_cv_search_getspnam=$ac_res
22640 else
22641   echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22643
22644
22645 fi
22646
22647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22648       conftest$ac_exeext
22649   if test "${ac_cv_search_getspnam+set}" = set; then
22650   break
22651 fi
22652 done
22653 if test "${ac_cv_search_getspnam+set}" = set; then
22654   :
22655 else
22656   ac_cv_search_getspnam=no
22657 fi
22658 rm conftest.$ac_ext
22659 LIBS=$ac_func_search_save_LIBS
22660 fi
22661 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22662 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22663 ac_res=$ac_cv_search_getspnam
22664 if test "$ac_res" != no; then
22665   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22666   cat >>confdefs.h <<\_ACEOF
22667 #define HAVE_GETSPNAM 1
22668 _ACEOF
22669  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22670 fi
22671
22672     fi
22673     if test "$CHECKSHADOW" = "true"; then
22674         { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22675 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22676 if test "${ac_cv_search_getprpwnam+set}" = set; then
22677   echo $ECHO_N "(cached) $ECHO_C" >&6
22678 else
22679   ac_func_search_save_LIBS=$LIBS
22680 cat >conftest.$ac_ext <<_ACEOF
22681 /* confdefs.h.  */
22682 _ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h.  */
22686
22687 /* Override any GCC internal prototype to avoid an error.
22688    Use char because int might match the return type of a GCC
22689    builtin and then its argument prototype would still apply.  */
22690 #ifdef __cplusplus
22691 extern "C"
22692 #endif
22693 char getprpwnam ();
22694 int
22695 main ()
22696 {
22697 return getprpwnam ();
22698   ;
22699   return 0;
22700 }
22701 _ACEOF
22702 for ac_lib in '' sec security prot; do
22703   if test -z "$ac_lib"; then
22704     ac_res="none required"
22705   else
22706     ac_res=-l$ac_lib
22707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22708   fi
22709   rm -f conftest.$ac_objext conftest$ac_exeext
22710 if { (ac_try="$ac_link"
22711 case "(($ac_try" in
22712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713   *) ac_try_echo=$ac_try;;
22714 esac
22715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22716   (eval "$ac_link") 2>conftest.er1
22717   ac_status=$?
22718   grep -v '^ *+' conftest.er1 >conftest.err
22719   rm -f conftest.er1
22720   cat conftest.err >&5
22721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722   (exit $ac_status); } && {
22723          test -z "$ac_c_werror_flag" ||
22724          test ! -s conftest.err
22725        } && test -s conftest$ac_exeext &&
22726        $as_test_x conftest$ac_exeext; then
22727   ac_cv_search_getprpwnam=$ac_res
22728 else
22729   echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22731
22732
22733 fi
22734
22735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22736       conftest$ac_exeext
22737   if test "${ac_cv_search_getprpwnam+set}" = set; then
22738   break
22739 fi
22740 done
22741 if test "${ac_cv_search_getprpwnam+set}" = set; then
22742   :
22743 else
22744   ac_cv_search_getprpwnam=no
22745 fi
22746 rm conftest.$ac_ext
22747 LIBS=$ac_func_search_save_LIBS
22748 fi
22749 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22750 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22751 ac_res=$ac_cv_search_getprpwnam
22752 if test "$ac_res" != no; then
22753   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22754   cat >>confdefs.h <<\_ACEOF
22755 #define HAVE_GETPRPWNAM 1
22756 _ACEOF
22757  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22758 fi
22759
22760     fi
22761     if test -n "$SECUREWARE"; then
22762
22763
22764
22765 for ac_func in bigcrypt set_auth_parameters initprivs
22766 do
22767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22768 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22771   echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773   cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h.  */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h.  */
22779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22781 #define $ac_func innocuous_$ac_func
22782
22783 /* System header to define __stub macros and hopefully few prototypes,
22784     which can conflict with char $ac_func (); below.
22785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22786     <limits.h> exists even on freestanding compilers.  */
22787
22788 #ifdef __STDC__
22789 # include <limits.h>
22790 #else
22791 # include <assert.h>
22792 #endif
22793
22794 #undef $ac_func
22795
22796 /* Override any GCC internal prototype to avoid an error.
22797    Use char because int might match the return type of a GCC
22798    builtin and then its argument prototype would still apply.  */
22799 #ifdef __cplusplus
22800 extern "C"
22801 #endif
22802 char $ac_func ();
22803 /* The GNU C library defines this for functions which it implements
22804     to always fail with ENOSYS.  Some functions are actually named
22805     something starting with __ and the normal name is an alias.  */
22806 #if defined __stub_$ac_func || defined __stub___$ac_func
22807 choke me
22808 #endif
22809
22810 int
22811 main ()
22812 {
22813 return $ac_func ();
22814   ;
22815   return 0;
22816 }
22817 _ACEOF
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (ac_try="$ac_link"
22820 case "(($ac_try" in
22821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822   *) ac_try_echo=$ac_try;;
22823 esac
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825   (eval "$ac_link") 2>conftest.er1
22826   ac_status=$?
22827   grep -v '^ *+' conftest.er1 >conftest.err
22828   rm -f conftest.er1
22829   cat conftest.err >&5
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); } && {
22832          test -z "$ac_c_werror_flag" ||
22833          test ! -s conftest.err
22834        } && test -s conftest$ac_exeext &&
22835        $as_test_x conftest$ac_exeext; then
22836   eval "$as_ac_var=yes"
22837 else
22838   echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22840
22841         eval "$as_ac_var=no"
22842 fi
22843
22844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22845       conftest$ac_exeext conftest.$ac_ext
22846 fi
22847 ac_res=`eval echo '${'$as_ac_var'}'`
22848                { echo "$as_me:$LINENO: result: $ac_res" >&5
22849 echo "${ECHO_T}$ac_res" >&6; }
22850 if test `eval echo '${'$as_ac_var'}'` = yes; then
22851   cat >>confdefs.h <<_ACEOF
22852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22853 _ACEOF
22854
22855 fi
22856 done
22857
22858         AUTH_OBJS="$AUTH_OBJS secureware.o"
22859     fi
22860 fi
22861
22862 if test ${with_ldap-'no'} != "no"; then
22863     _LDFLAGS="$LDFLAGS"
22864     if test "$with_ldap" != "yes"; then
22865
22866     if test X"$with_rpath" = X"yes"; then
22867         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22868     else
22869         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22870     fi
22871     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22872         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22873     fi
22874
22875
22876     if test X"$with_rpath" = X"yes"; then
22877         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22878     else
22879         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22880     fi
22881     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22882         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22883     fi
22884
22885         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22886         with_ldap=yes
22887     fi
22888     SUDO_OBJS="${SUDO_OBJS} ldap.o"
22889     LDAP=""
22890
22891     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22892 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22893     LDAP_LIBS=""
22894     _LIBS="$LIBS"
22895     found=no
22896     for l in -lldap -llber '-lssl -lcrypto'; do
22897         LIBS="${LIBS} $l"
22898         LDAP_LIBS="${LDAP_LIBS} $l"
22899         cat >conftest.$ac_ext <<_ACEOF
22900 /* confdefs.h.  */
22901 _ACEOF
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h.  */
22905 #include <sys/types.h>
22906         #include <lber.h>
22907         #include <ldap.h>
22908 int
22909 main ()
22910 {
22911 (void)ldap_init(0, 0)
22912   ;
22913   return 0;
22914 }
22915 _ACEOF
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (ac_try="$ac_link"
22918 case "(($ac_try" in
22919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920   *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923   (eval "$ac_link") 2>conftest.er1
22924   ac_status=$?
22925   grep -v '^ *+' conftest.er1 >conftest.err
22926   rm -f conftest.er1
22927   cat conftest.err >&5
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); } && {
22930          test -z "$ac_c_werror_flag" ||
22931          test ! -s conftest.err
22932        } && test -s conftest$ac_exeext &&
22933        $as_test_x conftest$ac_exeext; then
22934   found=yes; break
22935 else
22936   echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22938
22939
22940 fi
22941
22942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22943       conftest$ac_exeext conftest.$ac_ext
22944     done
22945         if test "$found" = "no"; then
22946         LIBS="${_LIBS} -lldap"
22947         LDAP_LIBS="-lldap"
22948         { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22949 echo "${ECHO_T}not found, using -lldap" >&6; }
22950     else
22951         { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22952 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22953     fi
22954         OLIBS="$LIBS"
22955     { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22956 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22957 if test "${ac_cv_search_ber_set_option+set}" = set; then
22958   echo $ECHO_N "(cached) $ECHO_C" >&6
22959 else
22960   ac_func_search_save_LIBS=$LIBS
22961 cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h.  */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h.  */
22967
22968 /* Override any GCC internal prototype to avoid an error.
22969    Use char because int might match the return type of a GCC
22970    builtin and then its argument prototype would still apply.  */
22971 #ifdef __cplusplus
22972 extern "C"
22973 #endif
22974 char ber_set_option ();
22975 int
22976 main ()
22977 {
22978 return ber_set_option ();
22979   ;
22980   return 0;
22981 }
22982 _ACEOF
22983 for ac_lib in '' lber; do
22984   if test -z "$ac_lib"; then
22985     ac_res="none required"
22986   else
22987     ac_res=-l$ac_lib
22988     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22989   fi
22990   rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (ac_try="$ac_link"
22992 case "(($ac_try" in
22993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994   *) ac_try_echo=$ac_try;;
22995 esac
22996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997   (eval "$ac_link") 2>conftest.er1
22998   ac_status=$?
22999   grep -v '^ *+' conftest.er1 >conftest.err
23000   rm -f conftest.er1
23001   cat conftest.err >&5
23002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003   (exit $ac_status); } && {
23004          test -z "$ac_c_werror_flag" ||
23005          test ! -s conftest.err
23006        } && test -s conftest$ac_exeext &&
23007        $as_test_x conftest$ac_exeext; then
23008   ac_cv_search_ber_set_option=$ac_res
23009 else
23010   echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23012
23013
23014 fi
23015
23016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23017       conftest$ac_exeext
23018   if test "${ac_cv_search_ber_set_option+set}" = set; then
23019   break
23020 fi
23021 done
23022 if test "${ac_cv_search_ber_set_option+set}" = set; then
23023   :
23024 else
23025   ac_cv_search_ber_set_option=no
23026 fi
23027 rm conftest.$ac_ext
23028 LIBS=$ac_func_search_save_LIBS
23029 fi
23030 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
23031 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
23032 ac_res=$ac_cv_search_ber_set_option
23033 if test "$ac_res" != no; then
23034   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23035   found=yes
23036 else
23037   found=no
23038 fi
23039
23040     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
23041         LDAP_LIBS="$LDAP_LIBS -llber"
23042     fi
23043         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
23044 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
23045     cat >conftest.$ac_ext <<_ACEOF
23046 /* confdefs.h.  */
23047 _ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h.  */
23051 #include <sys/types.h>
23052     #include <ldap.h>
23053 int
23054 main ()
23055 {
23056 (void)ldap_init(0, 0)
23057   ;
23058   return 0;
23059 }
23060 _ACEOF
23061 rm -f conftest.$ac_objext conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065   *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068   (eval "$ac_link") 2>conftest.er1
23069   ac_status=$?
23070   grep -v '^ *+' conftest.er1 >conftest.err
23071   rm -f conftest.er1
23072   cat conftest.err >&5
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); } && {
23075          test -z "$ac_c_werror_flag" ||
23076          test ! -s conftest.err
23077        } && test -s conftest$ac_exeext &&
23078        $as_test_x conftest$ac_exeext; then
23079   { echo "$as_me:$LINENO: result: no" >&5
23080 echo "${ECHO_T}no" >&6; }
23081 else
23082   echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23084
23085
23086     { echo "$as_me:$LINENO: result: yes" >&5
23087 echo "${ECHO_T}yes" >&6; }
23088     cat >>confdefs.h <<\_ACEOF
23089 #define HAVE_LBER_H 1
23090 _ACEOF
23091
23092 fi
23093
23094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23095       conftest$ac_exeext conftest.$ac_ext
23096
23097
23098
23099 for ac_header in sasl/sasl.h sasl.h
23100 do
23101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23106   echo $ECHO_N "(cached) $ECHO_C" >&6
23107 fi
23108 ac_res=`eval echo '${'$as_ac_Header'}'`
23109                { echo "$as_me:$LINENO: result: $ac_res" >&5
23110 echo "${ECHO_T}$ac_res" >&6; }
23111 else
23112   # Is the header compilable?
23113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23115 cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h.  */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h.  */
23121 $ac_includes_default
23122 #include <$ac_header>
23123 _ACEOF
23124 rm -f conftest.$ac_objext
23125 if { (ac_try="$ac_compile"
23126 case "(($ac_try" in
23127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23128   *) ac_try_echo=$ac_try;;
23129 esac
23130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23131   (eval "$ac_compile") 2>conftest.er1
23132   ac_status=$?
23133   grep -v '^ *+' conftest.er1 >conftest.err
23134   rm -f conftest.er1
23135   cat conftest.err >&5
23136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137   (exit $ac_status); } && {
23138          test -z "$ac_c_werror_flag" ||
23139          test ! -s conftest.err
23140        } && test -s conftest.$ac_objext; then
23141   ac_header_compiler=yes
23142 else
23143   echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23145
23146         ac_header_compiler=no
23147 fi
23148
23149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23151 echo "${ECHO_T}$ac_header_compiler" >&6; }
23152
23153 # Is the header present?
23154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23156 cat >conftest.$ac_ext <<_ACEOF
23157 /* confdefs.h.  */
23158 _ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h.  */
23162 #include <$ac_header>
23163 _ACEOF
23164 if { (ac_try="$ac_cpp conftest.$ac_ext"
23165 case "(($ac_try" in
23166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167   *) ac_try_echo=$ac_try;;
23168 esac
23169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23171   ac_status=$?
23172   grep -v '^ *+' conftest.er1 >conftest.err
23173   rm -f conftest.er1
23174   cat conftest.err >&5
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); } >/dev/null && {
23177          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23178          test ! -s conftest.err
23179        }; then
23180   ac_header_preproc=yes
23181 else
23182   echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23184
23185   ac_header_preproc=no
23186 fi
23187
23188 rm -f conftest.err conftest.$ac_ext
23189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23190 echo "${ECHO_T}$ac_header_preproc" >&6; }
23191
23192 # So?  What about this header?
23193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23194   yes:no: )
23195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23199     ac_header_preproc=yes
23200     ;;
23201   no:yes:* )
23202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23214     ( cat <<\_ASBOX
23215 ## --------------------------------------- ##
23216 ## Report this to http://www.sudo.ws/bugs/ ##
23217 ## --------------------------------------- ##
23218 _ASBOX
23219      ) | sed "s/^/$as_me: WARNING:     /" >&2
23220     ;;
23221 esac
23222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23225   echo $ECHO_N "(cached) $ECHO_C" >&6
23226 else
23227   eval "$as_ac_Header=\$ac_header_preproc"
23228 fi
23229 ac_res=`eval echo '${'$as_ac_Header'}'`
23230                { echo "$as_me:$LINENO: result: $ac_res" >&5
23231 echo "${ECHO_T}$ac_res" >&6; }
23232
23233 fi
23234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23235   cat >>confdefs.h <<_ACEOF
23236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23237 _ACEOF
23238
23239 for ac_func in ldap_sasl_interactive_bind_s
23240 do
23241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23245   echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247   cat >conftest.$ac_ext <<_ACEOF
23248 /* confdefs.h.  */
23249 _ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h.  */
23253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23255 #define $ac_func innocuous_$ac_func
23256
23257 /* System header to define __stub macros and hopefully few prototypes,
23258     which can conflict with char $ac_func (); below.
23259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23260     <limits.h> exists even on freestanding compilers.  */
23261
23262 #ifdef __STDC__
23263 # include <limits.h>
23264 #else
23265 # include <assert.h>
23266 #endif
23267
23268 #undef $ac_func
23269
23270 /* Override any GCC internal prototype to avoid an error.
23271    Use char because int might match the return type of a GCC
23272    builtin and then its argument prototype would still apply.  */
23273 #ifdef __cplusplus
23274 extern "C"
23275 #endif
23276 char $ac_func ();
23277 /* The GNU C library defines this for functions which it implements
23278     to always fail with ENOSYS.  Some functions are actually named
23279     something starting with __ and the normal name is an alias.  */
23280 #if defined __stub_$ac_func || defined __stub___$ac_func
23281 choke me
23282 #endif
23283
23284 int
23285 main ()
23286 {
23287 return $ac_func ();
23288   ;
23289   return 0;
23290 }
23291 _ACEOF
23292 rm -f conftest.$ac_objext conftest$ac_exeext
23293 if { (ac_try="$ac_link"
23294 case "(($ac_try" in
23295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23296   *) ac_try_echo=$ac_try;;
23297 esac
23298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23299   (eval "$ac_link") 2>conftest.er1
23300   ac_status=$?
23301   grep -v '^ *+' conftest.er1 >conftest.err
23302   rm -f conftest.er1
23303   cat conftest.err >&5
23304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305   (exit $ac_status); } && {
23306          test -z "$ac_c_werror_flag" ||
23307          test ! -s conftest.err
23308        } && test -s conftest$ac_exeext &&
23309        $as_test_x conftest$ac_exeext; then
23310   eval "$as_ac_var=yes"
23311 else
23312   echo "$as_me: failed program was:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23314
23315         eval "$as_ac_var=no"
23316 fi
23317
23318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23319       conftest$ac_exeext conftest.$ac_ext
23320 fi
23321 ac_res=`eval echo '${'$as_ac_var'}'`
23322                { echo "$as_me:$LINENO: result: $ac_res" >&5
23323 echo "${ECHO_T}$ac_res" >&6; }
23324 if test `eval echo '${'$as_ac_var'}'` = yes; then
23325   cat >>confdefs.h <<_ACEOF
23326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23327 _ACEOF
23328
23329 fi
23330 done
23331
23332 else
23333   break
23334 fi
23335
23336 done
23337
23338
23339
23340 for ac_header in ldap_ssl.h mps/ldap_ssl.h
23341 do
23342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23346   echo $ECHO_N "(cached) $ECHO_C" >&6
23347 else
23348   cat >conftest.$ac_ext <<_ACEOF
23349 /* confdefs.h.  */
23350 _ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h.  */
23354 #include <ldap.h>
23355
23356 #include <$ac_header>
23357 _ACEOF
23358 rm -f conftest.$ac_objext
23359 if { (ac_try="$ac_compile"
23360 case "(($ac_try" in
23361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362   *) ac_try_echo=$ac_try;;
23363 esac
23364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23365   (eval "$ac_compile") 2>conftest.er1
23366   ac_status=$?
23367   grep -v '^ *+' conftest.er1 >conftest.err
23368   rm -f conftest.er1
23369   cat conftest.err >&5
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); } && {
23372          test -z "$ac_c_werror_flag" ||
23373          test ! -s conftest.err
23374        } && test -s conftest.$ac_objext; then
23375   eval "$as_ac_Header=yes"
23376 else
23377   echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23379
23380         eval "$as_ac_Header=no"
23381 fi
23382
23383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23384 fi
23385 ac_res=`eval echo '${'$as_ac_Header'}'`
23386                { echo "$as_me:$LINENO: result: $ac_res" >&5
23387 echo "${ECHO_T}$ac_res" >&6; }
23388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23389   cat >>confdefs.h <<_ACEOF
23390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23391 _ACEOF
23392  break
23393 fi
23394
23395 done
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408 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
23409 do
23410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23414   echo $ECHO_N "(cached) $ECHO_C" >&6
23415 else
23416   cat >conftest.$ac_ext <<_ACEOF
23417 /* confdefs.h.  */
23418 _ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h.  */
23422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23424 #define $ac_func innocuous_$ac_func
23425
23426 /* System header to define __stub macros and hopefully few prototypes,
23427     which can conflict with char $ac_func (); below.
23428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23429     <limits.h> exists even on freestanding compilers.  */
23430
23431 #ifdef __STDC__
23432 # include <limits.h>
23433 #else
23434 # include <assert.h>
23435 #endif
23436
23437 #undef $ac_func
23438
23439 /* Override any GCC internal prototype to avoid an error.
23440    Use char because int might match the return type of a GCC
23441    builtin and then its argument prototype would still apply.  */
23442 #ifdef __cplusplus
23443 extern "C"
23444 #endif
23445 char $ac_func ();
23446 /* The GNU C library defines this for functions which it implements
23447     to always fail with ENOSYS.  Some functions are actually named
23448     something starting with __ and the normal name is an alias.  */
23449 #if defined __stub_$ac_func || defined __stub___$ac_func
23450 choke me
23451 #endif
23452
23453 int
23454 main ()
23455 {
23456 return $ac_func ();
23457   ;
23458   return 0;
23459 }
23460 _ACEOF
23461 rm -f conftest.$ac_objext conftest$ac_exeext
23462 if { (ac_try="$ac_link"
23463 case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_link") 2>conftest.er1
23469   ac_status=$?
23470   grep -v '^ *+' conftest.er1 >conftest.err
23471   rm -f conftest.er1
23472   cat conftest.err >&5
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); } && {
23475          test -z "$ac_c_werror_flag" ||
23476          test ! -s conftest.err
23477        } && test -s conftest$ac_exeext &&
23478        $as_test_x conftest$ac_exeext; then
23479   eval "$as_ac_var=yes"
23480 else
23481   echo "$as_me: failed program was:" >&5
23482 sed 's/^/| /' conftest.$ac_ext >&5
23483
23484         eval "$as_ac_var=no"
23485 fi
23486
23487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23488       conftest$ac_exeext conftest.$ac_ext
23489 fi
23490 ac_res=`eval echo '${'$as_ac_var'}'`
23491                { echo "$as_me:$LINENO: result: $ac_res" >&5
23492 echo "${ECHO_T}$ac_res" >&6; }
23493 if test `eval echo '${'$as_ac_var'}'` = yes; then
23494   cat >>confdefs.h <<_ACEOF
23495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23496 _ACEOF
23497
23498 fi
23499 done
23500
23501
23502     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
23503         { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
23504 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
23505 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
23506   echo $ECHO_N "(cached) $ECHO_C" >&6
23507 else
23508   ac_check_lib_save_LIBS=$LIBS
23509 LIBS="-lgssapi  $LIBS"
23510 cat >conftest.$ac_ext <<_ACEOF
23511 /* confdefs.h.  */
23512 _ACEOF
23513 cat confdefs.h >>conftest.$ac_ext
23514 cat >>conftest.$ac_ext <<_ACEOF
23515 /* end confdefs.h.  */
23516
23517 /* Override any GCC internal prototype to avoid an error.
23518    Use char because int might match the return type of a GCC
23519    builtin and then its argument prototype would still apply.  */
23520 #ifdef __cplusplus
23521 extern "C"
23522 #endif
23523 char gss_krb5_ccache_name ();
23524 int
23525 main ()
23526 {
23527 return gss_krb5_ccache_name ();
23528   ;
23529   return 0;
23530 }
23531 _ACEOF
23532 rm -f conftest.$ac_objext conftest$ac_exeext
23533 if { (ac_try="$ac_link"
23534 case "(($ac_try" in
23535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536   *) ac_try_echo=$ac_try;;
23537 esac
23538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23539   (eval "$ac_link") 2>conftest.er1
23540   ac_status=$?
23541   grep -v '^ *+' conftest.er1 >conftest.err
23542   rm -f conftest.er1
23543   cat conftest.err >&5
23544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545   (exit $ac_status); } && {
23546          test -z "$ac_c_werror_flag" ||
23547          test ! -s conftest.err
23548        } && test -s conftest$ac_exeext &&
23549        $as_test_x conftest$ac_exeext; then
23550   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
23551 else
23552   echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555         ac_cv_lib_gssapi_gss_krb5_ccache_name=no
23556 fi
23557
23558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23559       conftest$ac_exeext conftest.$ac_ext
23560 LIBS=$ac_check_lib_save_LIBS
23561 fi
23562 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
23563 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
23564 if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
23565   cat >>confdefs.h <<\_ACEOF
23566 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23567 _ACEOF
23568
23569             LDAP_LIBS="${LDAP_LIBS} -lgssapi"
23570 else
23571   { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
23572 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
23573 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
23574   echo $ECHO_N "(cached) $ECHO_C" >&6
23575 else
23576   ac_check_lib_save_LIBS=$LIBS
23577 LIBS="-lgssapi_krb5  $LIBS"
23578 cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h.  */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h.  */
23584
23585 /* Override any GCC internal prototype to avoid an error.
23586    Use char because int might match the return type of a GCC
23587    builtin and then its argument prototype would still apply.  */
23588 #ifdef __cplusplus
23589 extern "C"
23590 #endif
23591 char gss_krb5_ccache_name ();
23592 int
23593 main ()
23594 {
23595 return gss_krb5_ccache_name ();
23596   ;
23597   return 0;
23598 }
23599 _ACEOF
23600 rm -f conftest.$ac_objext conftest$ac_exeext
23601 if { (ac_try="$ac_link"
23602 case "(($ac_try" in
23603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604   *) ac_try_echo=$ac_try;;
23605 esac
23606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23607   (eval "$ac_link") 2>conftest.er1
23608   ac_status=$?
23609   grep -v '^ *+' conftest.er1 >conftest.err
23610   rm -f conftest.er1
23611   cat conftest.err >&5
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); } && {
23614          test -z "$ac_c_werror_flag" ||
23615          test ! -s conftest.err
23616        } && test -s conftest$ac_exeext &&
23617        $as_test_x conftest$ac_exeext; then
23618   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
23619 else
23620   echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23622
23623         ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
23624 fi
23625
23626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23627       conftest$ac_exeext conftest.$ac_ext
23628 LIBS=$ac_check_lib_save_LIBS
23629 fi
23630 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
23631 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
23632 if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
23633   cat >>confdefs.h <<\_ACEOF
23634 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23635 _ACEOF
23636
23637                 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
23638 fi
23639
23640
23641 fi
23642
23643
23644         # gssapi headers may be separate or part of Kerberos V
23645         found=no
23646         O_CPPFLAGS="$CPPFLAGS"
23647         for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
23648             test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
23649             cat >conftest.$ac_ext <<_ACEOF
23650 #include <gssapi/gssapi.h>
23651 _ACEOF
23652 if { (ac_try="$ac_cpp conftest.$ac_ext"
23653 case "(($ac_try" in
23654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655   *) ac_try_echo=$ac_try;;
23656 esac
23657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23659   ac_status=$?
23660   grep -v '^ *+' conftest.er1 >conftest.err
23661   rm -f conftest.er1
23662   cat conftest.err >&5
23663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664   (exit $ac_status); } >/dev/null && {
23665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23666          test ! -s conftest.err
23667        }; then
23668   found="gssapi/gssapi.h"; break
23669 else
23670   echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23672
23673   cat >conftest.$ac_ext <<_ACEOF
23674 #include <gssapi.h>
23675 _ACEOF
23676 if { (ac_try="$ac_cpp conftest.$ac_ext"
23677 case "(($ac_try" in
23678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23679   *) ac_try_echo=$ac_try;;
23680 esac
23681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23682   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23683   ac_status=$?
23684   grep -v '^ *+' conftest.er1 >conftest.err
23685   rm -f conftest.er1
23686   cat conftest.err >&5
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); } >/dev/null && {
23689          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23690          test ! -s conftest.err
23691        }; then
23692   found="gssapi.h"; break
23693 else
23694   echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697
23698 fi
23699
23700 rm -f conftest.err conftest.$ac_ext
23701 fi
23702
23703 rm -f conftest.err conftest.$ac_ext
23704         done
23705         if test X"$found" != X"no"; then
23706
23707 for ac_header in $found
23708 do
23709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23711   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23714   echo $ECHO_N "(cached) $ECHO_C" >&6
23715 fi
23716 ac_res=`eval echo '${'$as_ac_Header'}'`
23717                { echo "$as_me:$LINENO: result: $ac_res" >&5
23718 echo "${ECHO_T}$ac_res" >&6; }
23719 else
23720   # Is the header compilable?
23721 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23723 cat >conftest.$ac_ext <<_ACEOF
23724 /* confdefs.h.  */
23725 _ACEOF
23726 cat confdefs.h >>conftest.$ac_ext
23727 cat >>conftest.$ac_ext <<_ACEOF
23728 /* end confdefs.h.  */
23729 $ac_includes_default
23730 #include <$ac_header>
23731 _ACEOF
23732 rm -f conftest.$ac_objext
23733 if { (ac_try="$ac_compile"
23734 case "(($ac_try" in
23735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736   *) ac_try_echo=$ac_try;;
23737 esac
23738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739   (eval "$ac_compile") 2>conftest.er1
23740   ac_status=$?
23741   grep -v '^ *+' conftest.er1 >conftest.err
23742   rm -f conftest.er1
23743   cat conftest.err >&5
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); } && {
23746          test -z "$ac_c_werror_flag" ||
23747          test ! -s conftest.err
23748        } && test -s conftest.$ac_objext; then
23749   ac_header_compiler=yes
23750 else
23751   echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23753
23754         ac_header_compiler=no
23755 fi
23756
23757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23759 echo "${ECHO_T}$ac_header_compiler" >&6; }
23760
23761 # Is the header present?
23762 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23764 cat >conftest.$ac_ext <<_ACEOF
23765 /* confdefs.h.  */
23766 _ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h.  */
23770 #include <$ac_header>
23771 _ACEOF
23772 if { (ac_try="$ac_cpp conftest.$ac_ext"
23773 case "(($ac_try" in
23774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775   *) ac_try_echo=$ac_try;;
23776 esac
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23779   ac_status=$?
23780   grep -v '^ *+' conftest.er1 >conftest.err
23781   rm -f conftest.er1
23782   cat conftest.err >&5
23783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784   (exit $ac_status); } >/dev/null && {
23785          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23786          test ! -s conftest.err
23787        }; then
23788   ac_header_preproc=yes
23789 else
23790   echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23792
23793   ac_header_preproc=no
23794 fi
23795
23796 rm -f conftest.err conftest.$ac_ext
23797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23798 echo "${ECHO_T}$ac_header_preproc" >&6; }
23799
23800 # So?  What about this header?
23801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23802   yes:no: )
23803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23807     ac_header_preproc=yes
23808     ;;
23809   no:yes:* )
23810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23822     ( cat <<\_ASBOX
23823 ## --------------------------------------- ##
23824 ## Report this to http://www.sudo.ws/bugs/ ##
23825 ## --------------------------------------- ##
23826 _ASBOX
23827      ) | sed "s/^/$as_me: WARNING:     /" >&2
23828     ;;
23829 esac
23830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23833   echo $ECHO_N "(cached) $ECHO_C" >&6
23834 else
23835   eval "$as_ac_Header=\$ac_header_preproc"
23836 fi
23837 ac_res=`eval echo '${'$as_ac_Header'}'`
23838                { echo "$as_me:$LINENO: result: $ac_res" >&5
23839 echo "${ECHO_T}$ac_res" >&6; }
23840
23841 fi
23842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23843   cat >>confdefs.h <<_ACEOF
23844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23845 _ACEOF
23846
23847 fi
23848
23849 done
23850
23851             if test X"$found" = X"gssapi/gssapi.h"; then
23852
23853 for ac_header in gssapi/gssapi_krb5.h
23854 do
23855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23857   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23860   echo $ECHO_N "(cached) $ECHO_C" >&6
23861 fi
23862 ac_res=`eval echo '${'$as_ac_Header'}'`
23863                { echo "$as_me:$LINENO: result: $ac_res" >&5
23864 echo "${ECHO_T}$ac_res" >&6; }
23865 else
23866   # Is the header compilable?
23867 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23869 cat >conftest.$ac_ext <<_ACEOF
23870 /* confdefs.h.  */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h.  */
23875 $ac_includes_default
23876 #include <$ac_header>
23877 _ACEOF
23878 rm -f conftest.$ac_objext
23879 if { (ac_try="$ac_compile"
23880 case "(($ac_try" in
23881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882   *) ac_try_echo=$ac_try;;
23883 esac
23884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23885   (eval "$ac_compile") 2>conftest.er1
23886   ac_status=$?
23887   grep -v '^ *+' conftest.er1 >conftest.err
23888   rm -f conftest.er1
23889   cat conftest.err >&5
23890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891   (exit $ac_status); } && {
23892          test -z "$ac_c_werror_flag" ||
23893          test ! -s conftest.err
23894        } && test -s conftest.$ac_objext; then
23895   ac_header_compiler=yes
23896 else
23897   echo "$as_me: failed program was:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23899
23900         ac_header_compiler=no
23901 fi
23902
23903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23905 echo "${ECHO_T}$ac_header_compiler" >&6; }
23906
23907 # Is the header present?
23908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23910 cat >conftest.$ac_ext <<_ACEOF
23911 /* confdefs.h.  */
23912 _ACEOF
23913 cat confdefs.h >>conftest.$ac_ext
23914 cat >>conftest.$ac_ext <<_ACEOF
23915 /* end confdefs.h.  */
23916 #include <$ac_header>
23917 _ACEOF
23918 if { (ac_try="$ac_cpp conftest.$ac_ext"
23919 case "(($ac_try" in
23920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23921   *) ac_try_echo=$ac_try;;
23922 esac
23923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23925   ac_status=$?
23926   grep -v '^ *+' conftest.er1 >conftest.err
23927   rm -f conftest.er1
23928   cat conftest.err >&5
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); } >/dev/null && {
23931          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23932          test ! -s conftest.err
23933        }; then
23934   ac_header_preproc=yes
23935 else
23936   echo "$as_me: failed program was:" >&5
23937 sed 's/^/| /' conftest.$ac_ext >&5
23938
23939   ac_header_preproc=no
23940 fi
23941
23942 rm -f conftest.err conftest.$ac_ext
23943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23944 echo "${ECHO_T}$ac_header_preproc" >&6; }
23945
23946 # So?  What about this header?
23947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23948   yes:no: )
23949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23953     ac_header_preproc=yes
23954     ;;
23955   no:yes:* )
23956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23958     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23959 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23960     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23962     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23963 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23966     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23968     ( cat <<\_ASBOX
23969 ## --------------------------------------- ##
23970 ## Report this to http://www.sudo.ws/bugs/ ##
23971 ## --------------------------------------- ##
23972 _ASBOX
23973      ) | sed "s/^/$as_me: WARNING:     /" >&2
23974     ;;
23975 esac
23976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23979   echo $ECHO_N "(cached) $ECHO_C" >&6
23980 else
23981   eval "$as_ac_Header=\$ac_header_preproc"
23982 fi
23983 ac_res=`eval echo '${'$as_ac_Header'}'`
23984                { echo "$as_me:$LINENO: result: $ac_res" >&5
23985 echo "${ECHO_T}$ac_res" >&6; }
23986
23987 fi
23988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23989   cat >>confdefs.h <<_ACEOF
23990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23991 _ACEOF
23992
23993 fi
23994
23995 done
23996
23997             fi
23998         else
23999             CPPFLAGS="$O_CPPFLAGS"
24000             { 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
24001 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;}
24002         fi
24003     fi
24004
24005     SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
24006     LIBS="$_LIBS"
24007     LDFLAGS="$_LDFLAGS"
24008 fi
24009
24010 if test X"$LIBVAS_RPATH" != X""; then
24011     if test -n "$blibpath"; then
24012         blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
24013     else
24014         LDFLAGS="$LDFLAGS -R$LIBVAS_RPATH"
24015     fi
24016 fi
24017
24018 if test -n "$blibpath"; then
24019     if test -n "$blibpath_add"; then
24020         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
24021     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
24022         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
24023     fi
24024 fi
24025
24026 { echo "$as_me:$LINENO: checking for log file location" >&5
24027 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
24028 if test -n "$with_logpath"; then
24029     { echo "$as_me:$LINENO: result: $with_logpath" >&5
24030 echo "${ECHO_T}$with_logpath" >&6; }
24031     cat >>confdefs.h <<EOF
24032 #define _PATH_SUDO_LOGFILE "$with_logpath"
24033 EOF
24034
24035 elif test -d "/var/log"; then
24036     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
24037 echo "${ECHO_T}/var/log/sudo.log" >&6; }
24038     cat >>confdefs.h <<\EOF
24039 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
24040 EOF
24041
24042 elif test -d "/var/adm"; then
24043     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
24044 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
24045     cat >>confdefs.h <<\EOF
24046 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
24047 EOF
24048
24049 elif test -d "/usr/adm"; then
24050     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
24051 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
24052     cat >>confdefs.h <<\EOF
24053 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
24054 EOF
24055
24056 else
24057     { echo "$as_me:$LINENO: result: unknown" >&5
24058 echo "${ECHO_T}unknown" >&6; }
24059 fi
24060
24061 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
24062 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
24063 if test -n "$with_timedir"; then
24064     { echo "$as_me:$LINENO: result: $with_timedir" >&5
24065 echo "${ECHO_T}$with_timedir" >&6; }
24066     cat >>confdefs.h <<EOF
24067 #define _PATH_SUDO_TIMEDIR "$with_timedir"
24068 EOF
24069
24070     timedir="$with_timedir"
24071 elif test -d "/var/run"; then
24072     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
24073 echo "${ECHO_T}/var/run/sudo" >&6; }
24074     cat >>confdefs.h <<\EOF
24075 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
24076 EOF
24077
24078     timedir="/var/run/sudo"
24079 elif test -d "/var/adm"; then
24080     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
24081 echo "${ECHO_T}/var/adm/sudo" >&6; }
24082     cat >>confdefs.h <<\EOF
24083 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
24084 EOF
24085
24086     timedir="/var/adm/sudo"
24087 else
24088     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
24089 echo "${ECHO_T}/usr/adm/sudo" >&6; }
24090     cat >>confdefs.h <<\EOF
24091 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
24092 EOF
24093
24094     timedir="/usr/adm/sudo"
24095 fi
24096
24097
24098 case "$with_passwd" in
24099 yes|maybe)
24100     AUTH_OBJS="$AUTH_OBJS passwd.o"
24101     ;;
24102 *)
24103     cat >>confdefs.h <<\_ACEOF
24104 #define WITHOUT_PASSWD 1
24105 _ACEOF
24106
24107     if test -z "$AUTH_OBJS"; then
24108         { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
24109 echo "$as_me: error: no authentication methods defined." >&2;}
24110    { (exit 1); exit 1; }; }
24111     fi
24112     ;;
24113 esac
24114 AUTH_OBJS=${AUTH_OBJS# }
24115 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
24116 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
24117 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
24118
24119 if test -n "$LIBS"; then
24120     L="$LIBS"
24121     LIBS=
24122     for l in ${L}; do
24123         dupe=0
24124         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
24125             test $l = $sl && dupe=1
24126         done
24127         test $dupe = 0 && LIBS="${LIBS} $l"
24128     done
24129 fi
24130
24131 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
24132
24133 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
24134     oexec_prefix="$exec_prefix"
24135     if test "$exec_prefix" = '$(prefix)'; then
24136         if test "$prefix" = "NONE"; then
24137             exec_prefix="$ac_default_prefix"
24138         else
24139             exec_prefix="$prefix"
24140         fi
24141     fi
24142     if test X"$with_noexec" != X"no"; then
24143         PROGS="${PROGS} sudo_noexec.la"
24144         INSTALL_NOEXEC="install-noexec"
24145
24146         eval noexec_file="$with_noexec"
24147
24148 cat >>confdefs.h <<_ACEOF
24149 #define _PATH_SUDO_NOEXEC "$noexec_file"
24150 _ACEOF
24151
24152     fi
24153     if test X"$with_selinux" != X"no"; then
24154         eval sesh_file="$libexecdir/sesh"
24155
24156 cat >>confdefs.h <<_ACEOF
24157 #define _PATH_SUDO_SESH "$sesh_file"
24158 _ACEOF
24159
24160     fi
24161     exec_prefix="$oexec_prefix"
24162 fi
24163
24164 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudo_usage.h"
24165
24166 cat >confcache <<\_ACEOF
24167 # This file is a shell script that caches the results of configure
24168 # tests run on this system so they can be shared between configure
24169 # scripts and configure runs, see configure's option --config-cache.
24170 # It is not useful on other systems.  If it contains results you don't
24171 # want to keep, you may remove or edit it.
24172 #
24173 # config.status only pays attention to the cache file if you give it
24174 # the --recheck option to rerun configure.
24175 #
24176 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24177 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24178 # following values.
24179
24180 _ACEOF
24181
24182 # The following way of writing the cache mishandles newlines in values,
24183 # but we know of no workaround that is simple, portable, and efficient.
24184 # So, we kill variables containing newlines.
24185 # Ultrix sh set writes to stderr and can't be redirected directly,
24186 # and sets the high bit in the cache file unless we assign to the vars.
24187 (
24188   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24189     eval ac_val=\$$ac_var
24190     case $ac_val in #(
24191     *${as_nl}*)
24192       case $ac_var in #(
24193       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24194 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24195       esac
24196       case $ac_var in #(
24197       _ | IFS | as_nl) ;; #(
24198       *) $as_unset $ac_var ;;
24199       esac ;;
24200     esac
24201   done
24202
24203   (set) 2>&1 |
24204     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24205     *${as_nl}ac_space=\ *)
24206       # `set' does not quote correctly, so add quotes (double-quote
24207       # substitution turns \\\\ into \\, and sed turns \\ into \).
24208       sed -n \
24209         "s/'/'\\\\''/g;
24210           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24211       ;; #(
24212     *)
24213       # `set' quotes correctly as required by POSIX, so do not add quotes.
24214       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24215       ;;
24216     esac |
24217     sort
24218 ) |
24219   sed '
24220      /^ac_cv_env_/b end
24221      t clear
24222      :clear
24223      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24224      t end
24225      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24226      :end' >>confcache
24227 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24228   if test -w "$cache_file"; then
24229     test "x$cache_file" != "x/dev/null" &&
24230       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24231 echo "$as_me: updating cache $cache_file" >&6;}
24232     cat confcache >$cache_file
24233   else
24234     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24235 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24236   fi
24237 fi
24238 rm -f confcache
24239
24240 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24241 # Let make expand exec_prefix.
24242 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24243
24244 DEFS=-DHAVE_CONFIG_H
24245
24246 ac_libobjs=
24247 ac_ltlibobjs=
24248 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24249   # 1. Remove the extension, and $U if already installed.
24250   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24251   ac_i=`echo "$ac_i" | sed "$ac_script"`
24252   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24253   #    will be set to the directory where LIBOBJS objects are built.
24254   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24255   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24256 done
24257 LIBOBJS=$ac_libobjs
24258
24259 LTLIBOBJS=$ac_ltlibobjs
24260
24261
24262
24263 : ${CONFIG_STATUS=./config.status}
24264 ac_clean_files_save=$ac_clean_files
24265 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24266 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24267 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24268 cat >$CONFIG_STATUS <<_ACEOF
24269 #! $SHELL
24270 # Generated by $as_me.
24271 # Run this file to recreate the current configuration.
24272 # Compiler output produced by configure, useful for debugging
24273 # configure, is in config.log if it exists.
24274
24275 debug=false
24276 ac_cs_recheck=false
24277 ac_cs_silent=false
24278 SHELL=\${CONFIG_SHELL-$SHELL}
24279 _ACEOF
24280
24281 cat >>$CONFIG_STATUS <<\_ACEOF
24282 ## --------------------- ##
24283 ## M4sh Initialization.  ##
24284 ## --------------------- ##
24285
24286 # Be more Bourne compatible
24287 DUALCASE=1; export DUALCASE # for MKS sh
24288 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24289   emulate sh
24290   NULLCMD=:
24291   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24292   # is contrary to our usage.  Disable this feature.
24293   alias -g '${1+"$@"}'='"$@"'
24294   setopt NO_GLOB_SUBST
24295 else
24296   case `(set -o) 2>/dev/null` in
24297   *posix*) set -o posix ;;
24298 esac
24299
24300 fi
24301
24302
24303
24304
24305 # PATH needs CR
24306 # Avoid depending upon Character Ranges.
24307 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24310 as_cr_digits='0123456789'
24311 as_cr_alnum=$as_cr_Letters$as_cr_digits
24312
24313 # The user is always right.
24314 if test "${PATH_SEPARATOR+set}" != set; then
24315   echo "#! /bin/sh" >conf$$.sh
24316   echo  "exit 0"   >>conf$$.sh
24317   chmod +x conf$$.sh
24318   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24319     PATH_SEPARATOR=';'
24320   else
24321     PATH_SEPARATOR=:
24322   fi
24323   rm -f conf$$.sh
24324 fi
24325
24326 # Support unset when possible.
24327 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24328   as_unset=unset
24329 else
24330   as_unset=false
24331 fi
24332
24333
24334 # IFS
24335 # We need space, tab and new line, in precisely that order.  Quoting is
24336 # there to prevent editors from complaining about space-tab.
24337 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24338 # splitting by setting IFS to empty value.)
24339 as_nl='
24340 '
24341 IFS=" ""        $as_nl"
24342
24343 # Find who we are.  Look in the path if we contain no directory separator.
24344 case $0 in
24345   *[\\/]* ) as_myself=$0 ;;
24346   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24347 for as_dir in $PATH
24348 do
24349   IFS=$as_save_IFS
24350   test -z "$as_dir" && as_dir=.
24351   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24352 done
24353 IFS=$as_save_IFS
24354
24355      ;;
24356 esac
24357 # We did not find ourselves, most probably we were run as `sh COMMAND'
24358 # in which case we are not to be found in the path.
24359 if test "x$as_myself" = x; then
24360   as_myself=$0
24361 fi
24362 if test ! -f "$as_myself"; then
24363   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24364   { (exit 1); exit 1; }
24365 fi
24366
24367 # Work around bugs in pre-3.0 UWIN ksh.
24368 for as_var in ENV MAIL MAILPATH
24369 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24370 done
24371 PS1='$ '
24372 PS2='> '
24373 PS4='+ '
24374
24375 # NLS nuisances.
24376 for as_var in \
24377   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24378   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24379   LC_TELEPHONE LC_TIME
24380 do
24381   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24382     eval $as_var=C; export $as_var
24383   else
24384     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24385   fi
24386 done
24387
24388 # Required to use basename.
24389 if expr a : '\(a\)' >/dev/null 2>&1 &&
24390    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24391   as_expr=expr
24392 else
24393   as_expr=false
24394 fi
24395
24396 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24397   as_basename=basename
24398 else
24399   as_basename=false
24400 fi
24401
24402
24403 # Name of the executable.
24404 as_me=`$as_basename -- "$0" ||
24405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24406          X"$0" : 'X\(//\)$' \| \
24407          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24408 echo X/"$0" |
24409     sed '/^.*\/\([^/][^/]*\)\/*$/{
24410             s//\1/
24411             q
24412           }
24413           /^X\/\(\/\/\)$/{
24414             s//\1/
24415             q
24416           }
24417           /^X\/\(\/\).*/{
24418             s//\1/
24419             q
24420           }
24421           s/.*/./; q'`
24422
24423 # CDPATH.
24424 $as_unset CDPATH
24425
24426
24427
24428   as_lineno_1=$LINENO
24429   as_lineno_2=$LINENO
24430   test "x$as_lineno_1" != "x$as_lineno_2" &&
24431   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24432
24433   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24434   # uniformly replaced by the line number.  The first 'sed' inserts a
24435   # line-number line after each line using $LINENO; the second 'sed'
24436   # does the real work.  The second script uses 'N' to pair each
24437   # line-number line with the line containing $LINENO, and appends
24438   # trailing '-' during substitution so that $LINENO is not a special
24439   # case at line end.
24440   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24441   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24442   # E. McMahon (1931-1989) for sed's syntax.  :-)
24443   sed -n '
24444     p
24445     /[$]LINENO/=
24446   ' <$as_myself |
24447     sed '
24448       s/[$]LINENO.*/&-/
24449       t lineno
24450       b
24451       :lineno
24452       N
24453       :loop
24454       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24455       t loop
24456       s/-\n.*//
24457     ' >$as_me.lineno &&
24458   chmod +x "$as_me.lineno" ||
24459     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24460    { (exit 1); exit 1; }; }
24461
24462   # Don't try to exec as it changes $[0], causing all sort of problems
24463   # (the dirname of $[0] is not the place where we might find the
24464   # original and so on.  Autoconf is especially sensitive to this).
24465   . "./$as_me.lineno"
24466   # Exit status is that of the last command.
24467   exit
24468 }
24469
24470
24471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24472   as_dirname=dirname
24473 else
24474   as_dirname=false
24475 fi
24476
24477 ECHO_C= ECHO_N= ECHO_T=
24478 case `echo -n x` in
24479 -n*)
24480   case `echo 'x\c'` in
24481   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24482   *)   ECHO_C='\c';;
24483   esac;;
24484 *)
24485   ECHO_N='-n';;
24486 esac
24487
24488 if expr a : '\(a\)' >/dev/null 2>&1 &&
24489    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24490   as_expr=expr
24491 else
24492   as_expr=false
24493 fi
24494
24495 rm -f conf$$ conf$$.exe conf$$.file
24496 if test -d conf$$.dir; then
24497   rm -f conf$$.dir/conf$$.file
24498 else
24499   rm -f conf$$.dir
24500   mkdir conf$$.dir
24501 fi
24502 echo >conf$$.file
24503 if ln -s conf$$.file conf$$ 2>/dev/null; then
24504   as_ln_s='ln -s'
24505   # ... but there are two gotchas:
24506   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24507   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24508   # In both cases, we have to default to `cp -p'.
24509   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24510     as_ln_s='cp -p'
24511 elif ln conf$$.file conf$$ 2>/dev/null; then
24512   as_ln_s=ln
24513 else
24514   as_ln_s='cp -p'
24515 fi
24516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24517 rmdir conf$$.dir 2>/dev/null
24518
24519 if mkdir -p . 2>/dev/null; then
24520   as_mkdir_p=:
24521 else
24522   test -d ./-p && rmdir ./-p
24523   as_mkdir_p=false
24524 fi
24525
24526 if test -x / >/dev/null 2>&1; then
24527   as_test_x='test -x'
24528 else
24529   if ls -dL / >/dev/null 2>&1; then
24530     as_ls_L_option=L
24531   else
24532     as_ls_L_option=
24533   fi
24534   as_test_x='
24535     eval sh -c '\''
24536       if test -d "$1"; then
24537         test -d "$1/.";
24538       else
24539         case $1 in
24540         -*)set "./$1";;
24541         esac;
24542         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24543         ???[sx]*):;;*)false;;esac;fi
24544     '\'' sh
24545   '
24546 fi
24547 as_executable_p=$as_test_x
24548
24549 # Sed expression to map a string onto a valid CPP name.
24550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24551
24552 # Sed expression to map a string onto a valid variable name.
24553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24554
24555
24556 exec 6>&1
24557
24558 # Save the log message, to keep $[0] and so on meaningful, and to
24559 # report actual input values of CONFIG_FILES etc. instead of their
24560 # values after options handling.
24561 ac_log="
24562 This file was extended by sudo $as_me 1.7.2p6, which was
24563 generated by GNU Autoconf 2.61.  Invocation command line was
24564
24565   CONFIG_FILES    = $CONFIG_FILES
24566   CONFIG_HEADERS  = $CONFIG_HEADERS
24567   CONFIG_LINKS    = $CONFIG_LINKS
24568   CONFIG_COMMANDS = $CONFIG_COMMANDS
24569   $ $0 $@
24570
24571 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24572 "
24573
24574 _ACEOF
24575
24576 cat >>$CONFIG_STATUS <<_ACEOF
24577 # Files that config.status was made for.
24578 config_files="$ac_config_files"
24579 config_headers="$ac_config_headers"
24580
24581 _ACEOF
24582
24583 cat >>$CONFIG_STATUS <<\_ACEOF
24584 ac_cs_usage="\
24585 \`$as_me' instantiates files from templates according to the
24586 current configuration.
24587
24588 Usage: $0 [OPTIONS] [FILE]...
24589
24590   -h, --help       print this help, then exit
24591   -V, --version    print version number and configuration settings, then exit
24592   -q, --quiet      do not print progress messages
24593   -d, --debug      don't remove temporary files
24594       --recheck    update $as_me by reconfiguring in the same conditions
24595   --file=FILE[:TEMPLATE]
24596                    instantiate the configuration file FILE
24597   --header=FILE[:TEMPLATE]
24598                    instantiate the configuration header FILE
24599
24600 Configuration files:
24601 $config_files
24602
24603 Configuration headers:
24604 $config_headers
24605
24606 Report bugs to <bug-autoconf@gnu.org>."
24607
24608 _ACEOF
24609 cat >>$CONFIG_STATUS <<_ACEOF
24610 ac_cs_version="\\
24611 sudo config.status 1.7.2p6
24612 configured by $0, generated by GNU Autoconf 2.61,
24613   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24614
24615 Copyright (C) 2006 Free Software Foundation, Inc.
24616 This config.status script is free software; the Free Software Foundation
24617 gives unlimited permission to copy, distribute and modify it."
24618
24619 ac_pwd='$ac_pwd'
24620 srcdir='$srcdir'
24621 _ACEOF
24622
24623 cat >>$CONFIG_STATUS <<\_ACEOF
24624 # If no file are specified by the user, then we need to provide default
24625 # value.  By we need to know if files were specified by the user.
24626 ac_need_defaults=:
24627 while test $# != 0
24628 do
24629   case $1 in
24630   --*=*)
24631     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24632     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24633     ac_shift=:
24634     ;;
24635   *)
24636     ac_option=$1
24637     ac_optarg=$2
24638     ac_shift=shift
24639     ;;
24640   esac
24641
24642   case $ac_option in
24643   # Handling of the options.
24644   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24645     ac_cs_recheck=: ;;
24646   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24647     echo "$ac_cs_version"; exit ;;
24648   --debug | --debu | --deb | --de | --d | -d )
24649     debug=: ;;
24650   --file | --fil | --fi | --f )
24651     $ac_shift
24652     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24653     ac_need_defaults=false;;
24654   --header | --heade | --head | --hea )
24655     $ac_shift
24656     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24657     ac_need_defaults=false;;
24658   --he | --h)
24659     # Conflict between --help and --header
24660     { echo "$as_me: error: ambiguous option: $1
24661 Try \`$0 --help' for more information." >&2
24662    { (exit 1); exit 1; }; };;
24663   --help | --hel | -h )
24664     echo "$ac_cs_usage"; exit ;;
24665   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24666   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24667     ac_cs_silent=: ;;
24668
24669   # This is an error.
24670   -*) { echo "$as_me: error: unrecognized option: $1
24671 Try \`$0 --help' for more information." >&2
24672    { (exit 1); exit 1; }; } ;;
24673
24674   *) ac_config_targets="$ac_config_targets $1"
24675      ac_need_defaults=false ;;
24676
24677   esac
24678   shift
24679 done
24680
24681 ac_configure_extra_args=
24682
24683 if $ac_cs_silent; then
24684   exec 6>/dev/null
24685   ac_configure_extra_args="$ac_configure_extra_args --silent"
24686 fi
24687
24688 _ACEOF
24689 cat >>$CONFIG_STATUS <<_ACEOF
24690 if \$ac_cs_recheck; then
24691   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24692   CONFIG_SHELL=$SHELL
24693   export CONFIG_SHELL
24694   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24695 fi
24696
24697 _ACEOF
24698 cat >>$CONFIG_STATUS <<\_ACEOF
24699 exec 5>>config.log
24700 {
24701   echo
24702   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24703 ## Running $as_me. ##
24704 _ASBOX
24705   echo "$ac_log"
24706 } >&5
24707
24708 _ACEOF
24709 cat >>$CONFIG_STATUS <<_ACEOF
24710 _ACEOF
24711
24712 cat >>$CONFIG_STATUS <<\_ACEOF
24713
24714 # Handling of arguments.
24715 for ac_config_target in $ac_config_targets
24716 do
24717   case $ac_config_target in
24718     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24719     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
24720     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24721     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
24722     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
24723     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
24724     "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
24725     "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
24726
24727   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24728 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24729    { (exit 1); exit 1; }; };;
24730   esac
24731 done
24732
24733
24734 # If the user did not use the arguments to specify the items to instantiate,
24735 # then the envvar interface is used.  Set only those that are not.
24736 # We use the long form for the default assignment because of an extremely
24737 # bizarre bug on SunOS 4.1.3.
24738 if $ac_need_defaults; then
24739   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24740   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24741 fi
24742
24743 # Have a temporary directory for convenience.  Make it in the build tree
24744 # simply because there is no reason against having it here, and in addition,
24745 # creating and moving files from /tmp can sometimes cause problems.
24746 # Hook for its removal unless debugging.
24747 # Note that there is a small window in which the directory will not be cleaned:
24748 # after its creation but before its name has been assigned to `$tmp'.
24749 $debug ||
24750 {
24751   tmp=
24752   trap 'exit_status=$?
24753   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24754 ' 0
24755   trap '{ (exit 1); exit 1; }' 1 2 13 15
24756 }
24757 # Create a (secure) tmp directory for tmp files.
24758
24759 {
24760   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24761   test -n "$tmp" && test -d "$tmp"
24762 }  ||
24763 {
24764   tmp=./conf$$-$RANDOM
24765   (umask 077 && mkdir "$tmp")
24766 } ||
24767 {
24768    echo "$me: cannot create a temporary directory in ." >&2
24769    { (exit 1); exit 1; }
24770 }
24771
24772 #
24773 # Set up the sed scripts for CONFIG_FILES section.
24774 #
24775
24776 # No need to generate the scripts if there are no CONFIG_FILES.
24777 # This happens for instance when ./config.status config.h
24778 if test -n "$CONFIG_FILES"; then
24779
24780 _ACEOF
24781
24782
24783
24784 ac_delim='%!_!# '
24785 for ac_last_try in false false false false false :; do
24786   cat >conf$$subs.sed <<_ACEOF
24787 SHELL!$SHELL$ac_delim
24788 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24789 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24790 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24791 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24792 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24793 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24794 exec_prefix!$exec_prefix$ac_delim
24795 prefix!$prefix$ac_delim
24796 program_transform_name!$program_transform_name$ac_delim
24797 bindir!$bindir$ac_delim
24798 sbindir!$sbindir$ac_delim
24799 libexecdir!$libexecdir$ac_delim
24800 datarootdir!$datarootdir$ac_delim
24801 datadir!$datadir$ac_delim
24802 sysconfdir!$sysconfdir$ac_delim
24803 sharedstatedir!$sharedstatedir$ac_delim
24804 localstatedir!$localstatedir$ac_delim
24805 includedir!$includedir$ac_delim
24806 oldincludedir!$oldincludedir$ac_delim
24807 docdir!$docdir$ac_delim
24808 infodir!$infodir$ac_delim
24809 htmldir!$htmldir$ac_delim
24810 dvidir!$dvidir$ac_delim
24811 pdfdir!$pdfdir$ac_delim
24812 psdir!$psdir$ac_delim
24813 libdir!$libdir$ac_delim
24814 localedir!$localedir$ac_delim
24815 mandir!$mandir$ac_delim
24816 DEFS!$DEFS$ac_delim
24817 ECHO_C!$ECHO_C$ac_delim
24818 ECHO_N!$ECHO_N$ac_delim
24819 ECHO_T!$ECHO_T$ac_delim
24820 LIBS!$LIBS$ac_delim
24821 build_alias!$build_alias$ac_delim
24822 host_alias!$host_alias$ac_delim
24823 target_alias!$target_alias$ac_delim
24824 HAVE_BSM_AUDIT!$HAVE_BSM_AUDIT$ac_delim
24825 LIBTOOL!$LIBTOOL$ac_delim
24826 CFLAGS!$CFLAGS$ac_delim
24827 PROGS!$PROGS$ac_delim
24828 CPPFLAGS!$CPPFLAGS$ac_delim
24829 LDFLAGS!$LDFLAGS$ac_delim
24830 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
24831 SUDO_OBJS!$SUDO_OBJS$ac_delim
24832 SUDO_LIBS!$SUDO_LIBS$ac_delim
24833 NET_LIBS!$NET_LIBS$ac_delim
24834 AFS_LIBS!$AFS_LIBS$ac_delim
24835 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
24836 OSDEFS!$OSDEFS$ac_delim
24837 AUTH_OBJS!$AUTH_OBJS$ac_delim
24838 MANTYPE!$MANTYPE$ac_delim
24839 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
24840 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
24841 SUDOERS_UID!$SUDOERS_UID$ac_delim
24842 SUDOERS_GID!$SUDOERS_GID$ac_delim
24843 DEV!$DEV$ac_delim
24844 SELINUX!$SELINUX$ac_delim
24845 BAMAN!$BAMAN$ac_delim
24846 LCMAN!$LCMAN$ac_delim
24847 SEMAN!$SEMAN$ac_delim
24848 devdir!$devdir$ac_delim
24849 mansectsu!$mansectsu$ac_delim
24850 mansectform!$mansectform$ac_delim
24851 mansrcdir!$mansrcdir$ac_delim
24852 NOEXECFILE!$NOEXECFILE$ac_delim
24853 NOEXECDIR!$NOEXECDIR$ac_delim
24854 noexec_file!$noexec_file$ac_delim
24855 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
24856 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
24857 BSDAUTH_USAGE!$BSDAUTH_USAGE$ac_delim
24858 SELINUX_USAGE!$SELINUX_USAGE$ac_delim
24859 LDAP!$LDAP$ac_delim
24860 LOGINCAP_USAGE!$LOGINCAP_USAGE$ac_delim
24861 NONUNIX_GROUPS_IMPL!$NONUNIX_GROUPS_IMPL$ac_delim
24862 timedir!$timedir$ac_delim
24863 timeout!$timeout$ac_delim
24864 password_timeout!$password_timeout$ac_delim
24865 sudo_umask!$sudo_umask$ac_delim
24866 passprompt!$passprompt$ac_delim
24867 long_otp_prompt!$long_otp_prompt$ac_delim
24868 lecture!$lecture$ac_delim
24869 logfac!$logfac$ac_delim
24870 goodpri!$goodpri$ac_delim
24871 badpri!$badpri$ac_delim
24872 loglen!$loglen$ac_delim
24873 ignore_dot!$ignore_dot$ac_delim
24874 mail_no_user!$mail_no_user$ac_delim
24875 mail_no_host!$mail_no_host$ac_delim
24876 mail_no_perms!$mail_no_perms$ac_delim
24877 mailto!$mailto$ac_delim
24878 mailsub!$mailsub$ac_delim
24879 badpass_message!$badpass_message$ac_delim
24880 fqdn!$fqdn$ac_delim
24881 runas_default!$runas_default$ac_delim
24882 env_editor!$env_editor$ac_delim
24883 passwd_tries!$passwd_tries$ac_delim
24884 _ACEOF
24885
24886   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24887     break
24888   elif $ac_last_try; then
24889     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24890 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24891    { (exit 1); exit 1; }; }
24892   else
24893     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24894   fi
24895 done
24896
24897 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24898 if test -n "$ac_eof"; then
24899   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24900   ac_eof=`expr $ac_eof + 1`
24901 fi
24902
24903 cat >>$CONFIG_STATUS <<_ACEOF
24904 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24906 _ACEOF
24907 sed '
24908 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24909 s/^/s,@/; s/!/@,|#_!!_#|/
24910 :n
24911 t n
24912 s/'"$ac_delim"'$/,g/; t
24913 s/$/\\/; p
24914 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24915 ' >>$CONFIG_STATUS <conf$$subs.sed
24916 rm -f conf$$subs.sed
24917 cat >>$CONFIG_STATUS <<_ACEOF
24918 CEOF$ac_eof
24919 _ACEOF
24920
24921
24922 ac_delim='%!_!# '
24923 for ac_last_try in false false false false false :; do
24924   cat >conf$$subs.sed <<_ACEOF
24925 tty_tickets!$tty_tickets$ac_delim
24926 insults!$insults$ac_delim
24927 root_sudo!$root_sudo$ac_delim
24928 path_info!$path_info$ac_delim
24929 ldap_conf!$ldap_conf$ac_delim
24930 ldap_secret!$ldap_secret$ac_delim
24931 nsswitch_conf!$nsswitch_conf$ac_delim
24932 netsvc_conf!$netsvc_conf$ac_delim
24933 secure_path!$secure_path$ac_delim
24934 EGREPPROG!$EGREPPROG$ac_delim
24935 CC!$CC$ac_delim
24936 ac_ct_CC!$ac_ct_CC$ac_delim
24937 EXEEXT!$EXEEXT$ac_delim
24938 OBJEXT!$OBJEXT$ac_delim
24939 CPP!$CPP$ac_delim
24940 build!$build$ac_delim
24941 build_cpu!$build_cpu$ac_delim
24942 build_vendor!$build_vendor$ac_delim
24943 build_os!$build_os$ac_delim
24944 host!$host$ac_delim
24945 host_cpu!$host_cpu$ac_delim
24946 host_vendor!$host_vendor$ac_delim
24947 host_os!$host_os$ac_delim
24948 SED!$SED$ac_delim
24949 GREP!$GREP$ac_delim
24950 EGREP!$EGREP$ac_delim
24951 LN_S!$LN_S$ac_delim
24952 ECHO!$ECHO$ac_delim
24953 AR!$AR$ac_delim
24954 RANLIB!$RANLIB$ac_delim
24955 STRIP!$STRIP$ac_delim
24956 DSYMUTIL!$DSYMUTIL$ac_delim
24957 NMEDIT!$NMEDIT$ac_delim
24958 UNAMEPROG!$UNAMEPROG$ac_delim
24959 TRPROG!$TRPROG$ac_delim
24960 NROFFPROG!$NROFFPROG$ac_delim
24961 YACC!$YACC$ac_delim
24962 YFLAGS!$YFLAGS$ac_delim
24963 FLEX!$FLEX$ac_delim
24964 LIBOBJS!$LIBOBJS$ac_delim
24965 KRB5CONFIG!$KRB5CONFIG$ac_delim
24966 LTLIBOBJS!$LTLIBOBJS$ac_delim
24967 _ACEOF
24968
24969   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
24970     break
24971   elif $ac_last_try; then
24972     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24973 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24974    { (exit 1); exit 1; }; }
24975   else
24976     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24977   fi
24978 done
24979
24980 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24981 if test -n "$ac_eof"; then
24982   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24983   ac_eof=`expr $ac_eof + 1`
24984 fi
24985
24986 cat >>$CONFIG_STATUS <<_ACEOF
24987 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24989 _ACEOF
24990 sed '
24991 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24992 s/^/s,@/; s/!/@,|#_!!_#|/
24993 :n
24994 t n
24995 s/'"$ac_delim"'$/,g/; t
24996 s/$/\\/; p
24997 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24998 ' >>$CONFIG_STATUS <conf$$subs.sed
24999 rm -f conf$$subs.sed
25000 cat >>$CONFIG_STATUS <<_ACEOF
25001 :end
25002 s/|#_!!_#|//g
25003 CEOF$ac_eof
25004 _ACEOF
25005
25006
25007 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25008 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25009 # trailing colons and then remove the whole line if VPATH becomes empty
25010 # (actually we leave an empty line to preserve line numbers).
25011 if test "x$srcdir" = x.; then
25012   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25013 s/:*\$(srcdir):*/:/
25014 s/:*\${srcdir}:*/:/
25015 s/:*@srcdir@:*/:/
25016 s/^\([^=]*=[     ]*\):*/\1/
25017 s/:*$//
25018 s/^[^=]*=[       ]*$//
25019 }'
25020 fi
25021
25022 cat >>$CONFIG_STATUS <<\_ACEOF
25023 fi # test -n "$CONFIG_FILES"
25024
25025
25026 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
25027 do
25028   case $ac_tag in
25029   :[FHLC]) ac_mode=$ac_tag; continue;;
25030   esac
25031   case $ac_mode$ac_tag in
25032   :[FHL]*:*);;
25033   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25034 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25035    { (exit 1); exit 1; }; };;
25036   :[FH]-) ac_tag=-:-;;
25037   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25038   esac
25039   ac_save_IFS=$IFS
25040   IFS=:
25041   set x $ac_tag
25042   IFS=$ac_save_IFS
25043   shift
25044   ac_file=$1
25045   shift
25046
25047   case $ac_mode in
25048   :L) ac_source=$1;;
25049   :[FH])
25050     ac_file_inputs=
25051     for ac_f
25052     do
25053       case $ac_f in
25054       -) ac_f="$tmp/stdin";;
25055       *) # Look for the file first in the build tree, then in the source tree
25056          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25057          # because $ac_f cannot contain `:'.
25058          test -f "$ac_f" ||
25059            case $ac_f in
25060            [\\/$]*) false;;
25061            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25062            esac ||
25063            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25064 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25065    { (exit 1); exit 1; }; };;
25066       esac
25067       ac_file_inputs="$ac_file_inputs $ac_f"
25068     done
25069
25070     # Let's still pretend it is `configure' which instantiates (i.e., don't
25071     # use $as_me), people would be surprised to read:
25072     #    /* config.h.  Generated by config.status.  */
25073     configure_input="Generated from "`IFS=:
25074           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25075     if test x"$ac_file" != x-; then
25076       configure_input="$ac_file.  $configure_input"
25077       { echo "$as_me:$LINENO: creating $ac_file" >&5
25078 echo "$as_me: creating $ac_file" >&6;}
25079     fi
25080
25081     case $ac_tag in
25082     *:-:* | *:-) cat >"$tmp/stdin";;
25083     esac
25084     ;;
25085   esac
25086
25087   ac_dir=`$as_dirname -- "$ac_file" ||
25088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25089          X"$ac_file" : 'X\(//\)[^/]' \| \
25090          X"$ac_file" : 'X\(//\)$' \| \
25091          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25092 echo X"$ac_file" |
25093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25094             s//\1/
25095             q
25096           }
25097           /^X\(\/\/\)[^/].*/{
25098             s//\1/
25099             q
25100           }
25101           /^X\(\/\/\)$/{
25102             s//\1/
25103             q
25104           }
25105           /^X\(\/\).*/{
25106             s//\1/
25107             q
25108           }
25109           s/.*/./; q'`
25110   { as_dir="$ac_dir"
25111   case $as_dir in #(
25112   -*) as_dir=./$as_dir;;
25113   esac
25114   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25115     as_dirs=
25116     while :; do
25117       case $as_dir in #(
25118       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25119       *) as_qdir=$as_dir;;
25120       esac
25121       as_dirs="'$as_qdir' $as_dirs"
25122       as_dir=`$as_dirname -- "$as_dir" ||
25123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25124          X"$as_dir" : 'X\(//\)[^/]' \| \
25125          X"$as_dir" : 'X\(//\)$' \| \
25126          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25127 echo X"$as_dir" |
25128     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25129             s//\1/
25130             q
25131           }
25132           /^X\(\/\/\)[^/].*/{
25133             s//\1/
25134             q
25135           }
25136           /^X\(\/\/\)$/{
25137             s//\1/
25138             q
25139           }
25140           /^X\(\/\).*/{
25141             s//\1/
25142             q
25143           }
25144           s/.*/./; q'`
25145       test -d "$as_dir" && break
25146     done
25147     test -z "$as_dirs" || eval "mkdir $as_dirs"
25148   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25149 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25150    { (exit 1); exit 1; }; }; }
25151   ac_builddir=.
25152
25153 case "$ac_dir" in
25154 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25155 *)
25156   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25157   # A ".." for each directory in $ac_dir_suffix.
25158   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25159   case $ac_top_builddir_sub in
25160   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25161   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25162   esac ;;
25163 esac
25164 ac_abs_top_builddir=$ac_pwd
25165 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25166 # for backward compatibility:
25167 ac_top_builddir=$ac_top_build_prefix
25168
25169 case $srcdir in
25170   .)  # We are building in place.
25171     ac_srcdir=.
25172     ac_top_srcdir=$ac_top_builddir_sub
25173     ac_abs_top_srcdir=$ac_pwd ;;
25174   [\\/]* | ?:[\\/]* )  # Absolute name.
25175     ac_srcdir=$srcdir$ac_dir_suffix;
25176     ac_top_srcdir=$srcdir
25177     ac_abs_top_srcdir=$srcdir ;;
25178   *) # Relative name.
25179     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25180     ac_top_srcdir=$ac_top_build_prefix$srcdir
25181     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25182 esac
25183 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25184
25185
25186   case $ac_mode in
25187   :F)
25188   #
25189   # CONFIG_FILE
25190   #
25191
25192 _ACEOF
25193
25194 cat >>$CONFIG_STATUS <<\_ACEOF
25195 # If the template does not know about datarootdir, expand it.
25196 # FIXME: This hack should be removed a few years after 2.60.
25197 ac_datarootdir_hack=; ac_datarootdir_seen=
25198
25199 case `sed -n '/datarootdir/ {
25200   p
25201   q
25202 }
25203 /@datadir@/p
25204 /@docdir@/p
25205 /@infodir@/p
25206 /@localedir@/p
25207 /@mandir@/p
25208 ' $ac_file_inputs` in
25209 *datarootdir*) ac_datarootdir_seen=yes;;
25210 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25211   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25212 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25213 _ACEOF
25214 cat >>$CONFIG_STATUS <<_ACEOF
25215   ac_datarootdir_hack='
25216   s&@datadir@&$datadir&g
25217   s&@docdir@&$docdir&g
25218   s&@infodir@&$infodir&g
25219   s&@localedir@&$localedir&g
25220   s&@mandir@&$mandir&g
25221     s&\\\${datarootdir}&$datarootdir&g' ;;
25222 esac
25223 _ACEOF
25224
25225 # Neutralize VPATH when `$srcdir' = `.'.
25226 # Shell code in configure.ac might set extrasub.
25227 # FIXME: do we really want to maintain this feature?
25228 cat >>$CONFIG_STATUS <<_ACEOF
25229   sed "$ac_vpsub
25230 $extrasub
25231 _ACEOF
25232 cat >>$CONFIG_STATUS <<\_ACEOF
25233 :t
25234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25235 s&@configure_input@&$configure_input&;t t
25236 s&@top_builddir@&$ac_top_builddir_sub&;t t
25237 s&@srcdir@&$ac_srcdir&;t t
25238 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25239 s&@top_srcdir@&$ac_top_srcdir&;t t
25240 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25241 s&@builddir@&$ac_builddir&;t t
25242 s&@abs_builddir@&$ac_abs_builddir&;t t
25243 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25244 $ac_datarootdir_hack
25245 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25246
25247 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25248   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25249   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25250   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25251 which seems to be undefined.  Please make sure it is defined." >&5
25252 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25253 which seems to be undefined.  Please make sure it is defined." >&2;}
25254
25255   rm -f "$tmp/stdin"
25256   case $ac_file in
25257   -) cat "$tmp/out"; rm -f "$tmp/out";;
25258   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25259   esac
25260  ;;
25261   :H)
25262   #
25263   # CONFIG_HEADER
25264   #
25265 _ACEOF
25266
25267 # Transform confdefs.h into a sed script `conftest.defines', that
25268 # substitutes the proper values into config.h.in to produce config.h.
25269 rm -f conftest.defines conftest.tail
25270 # First, append a space to every undef/define line, to ease matching.
25271 echo 's/$/ /' >conftest.defines
25272 # Then, protect against being on the right side of a sed subst, or in
25273 # an unquoted here document, in config.status.  If some macros were
25274 # called several times there might be several #defines for the same
25275 # symbol, which is useless.  But do not sort them, since the last
25276 # AC_DEFINE must be honored.
25277 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25278 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25279 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25280 # PARAMS is the parameter list in the macro definition--in most cases, it's
25281 # just an empty string.
25282 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25283 ac_dB='\\)[      (].*,\\1define\\2'
25284 ac_dC=' '
25285 ac_dD=' ,'
25286
25287 uniq confdefs.h |
25288   sed -n '
25289         t rset
25290         :rset
25291         s/^[     ]*#[    ]*define[       ][      ]*//
25292         t ok
25293         d
25294         :ok
25295         s/[\\&,]/\\&/g
25296         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25297         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25298   ' >>conftest.defines
25299
25300 # Remove the space that was appended to ease matching.
25301 # Then replace #undef with comments.  This is necessary, for
25302 # example, in the case of _POSIX_SOURCE, which is predefined and required
25303 # on some systems where configure will not decide to define it.
25304 # (The regexp can be short, since the line contains either #define or #undef.)
25305 echo 's/ $//
25306 s,^[     #]*u.*,/* & */,' >>conftest.defines
25307
25308 # Break up conftest.defines:
25309 ac_max_sed_lines=50
25310
25311 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25312 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25313 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25314 # et cetera.
25315 ac_in='$ac_file_inputs'
25316 ac_out='"$tmp/out1"'
25317 ac_nxt='"$tmp/out2"'
25318
25319 while :
25320 do
25321   # Write a here document:
25322     cat >>$CONFIG_STATUS <<_ACEOF
25323     # First, check the format of the line:
25324     cat >"\$tmp/defines.sed" <<\\CEOF
25325 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25326 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25327 b
25328 :def
25329 _ACEOF
25330   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25331   echo 'CEOF
25332     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25333   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25334   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25335   grep . conftest.tail >/dev/null || break
25336   rm -f conftest.defines
25337   mv conftest.tail conftest.defines
25338 done
25339 rm -f conftest.defines conftest.tail
25340
25341 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25342 cat >>$CONFIG_STATUS <<\_ACEOF
25343   if test x"$ac_file" != x-; then
25344     echo "/* $configure_input  */" >"$tmp/config.h"
25345     cat "$ac_result" >>"$tmp/config.h"
25346     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25347       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25348 echo "$as_me: $ac_file is unchanged" >&6;}
25349     else
25350       rm -f $ac_file
25351       mv "$tmp/config.h" $ac_file
25352     fi
25353   else
25354     echo "/* $configure_input  */"
25355     cat "$ac_result"
25356   fi
25357   rm -f "$tmp/out12"
25358 # Compute $ac_file's index in $config_headers.
25359 _am_arg=$ac_file
25360 _am_stamp_count=1
25361 for _am_header in $config_headers :; do
25362   case $_am_header in
25363     $_am_arg | $_am_arg:* )
25364       break ;;
25365     * )
25366       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25367   esac
25368 done
25369 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25370 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25371          X"$_am_arg" : 'X\(//\)[^/]' \| \
25372          X"$_am_arg" : 'X\(//\)$' \| \
25373          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25374 echo X"$_am_arg" |
25375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25376             s//\1/
25377             q
25378           }
25379           /^X\(\/\/\)[^/].*/{
25380             s//\1/
25381             q
25382           }
25383           /^X\(\/\/\)$/{
25384             s//\1/
25385             q
25386           }
25387           /^X\(\/\).*/{
25388             s//\1/
25389             q
25390           }
25391           s/.*/./; q'`/stamp-h$_am_stamp_count
25392  ;;
25393
25394
25395   esac
25396
25397 done # for ac_tag
25398
25399
25400 { (exit 0); exit 0; }
25401 _ACEOF
25402 chmod +x $CONFIG_STATUS
25403 ac_clean_files=$ac_clean_files_save
25404
25405
25406 # configure is writing to config.log, and then calls config.status.
25407 # config.status does its own redirection, appending to config.log.
25408 # Unfortunately, on DOS this fails, as config.log is still kept open
25409 # by configure, so config.status won't be able to write to it; its
25410 # output is simply discarded.  So we exec the FD to /dev/null,
25411 # effectively closing config.log, so it can be properly (re)opened and
25412 # appended to by config.status.  When coming back to configure, we
25413 # need to make the FD available again.
25414 if test "$no_create" != yes; then
25415   ac_cs_success=:
25416   ac_config_status_args=
25417   test "$silent" = yes &&
25418     ac_config_status_args="$ac_config_status_args --quiet"
25419   exec 5>/dev/null
25420   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25421   exec 5>>config.log
25422   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25423   # would make configure fail if this is the last instruction.
25424   $ac_cs_success || { (exit 1); exit 1; }
25425 fi
25426
25427
25428 if test "$with_pam" = "yes"; then
25429     case $host in
25430         *-*-linux*)
25431             { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
25432 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
25433             ;;
25434     esac
25435 fi
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
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596