Imported Upstream version 1.6.9p9
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sudo 1.6.9.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 exec 7<&0 </dev/null 6>&1
703
704 # Name of the host.
705 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
706 # so uname gets run too.
707 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
708
709 #
710 # Initializations.
711 #
712 ac_default_prefix=/usr/local
713 ac_clean_files=
714 ac_config_libobj_dir=.
715 LIBOBJS=
716 cross_compiling=no
717 subdirs=
718 MFLAGS=
719 MAKEFLAGS=
720 SHELL=${CONFIG_SHELL-/bin/sh}
721
722 # Identity of this package.
723 PACKAGE_NAME='sudo'
724 PACKAGE_TARNAME='sudo'
725 PACKAGE_VERSION='1.6.9'
726 PACKAGE_STRING='sudo 1.6.9'
727 PACKAGE_BUGREPORT=''
728
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 LIBTOOL
803 CFLAGS
804 PROGS
805 CPPFLAGS
806 LDFLAGS
807 SUDO_LDFLAGS
808 SUDO_OBJS
809 SUDO_LIBS
810 NET_LIBS
811 AFS_LIBS
812 GETGROUPS_LIB
813 OSDEFS
814 AUTH_OBJS
815 MANTYPE
816 MAN_POSTINSTALL
817 SUDOERS_MODE
818 SUDOERS_UID
819 SUDOERS_GID
820 DEV
821 mansectsu
822 mansectform
823 mansrcdir
824 NOEXECDIR
825 noexec_file
826 INSTALL_NOEXEC
827 DONT_LEAK_PATH_INFO
828 timedir
829 timeout
830 password_timeout
831 sudo_umask
832 passprompt
833 long_otp_prompt
834 lecture
835 logfac
836 goodpri
837 badpri
838 loglen
839 ignore_dot
840 mail_no_user
841 mail_no_host
842 mail_no_perms
843 mailto
844 mailsub
845 badpass_message
846 fqdn
847 runas_default
848 env_editor
849 passwd_tries
850 tty_tickets
851 insults
852 root_sudo
853 path_info
854 EGREPPROG
855 CC
856 ac_ct_CC
857 EXEEXT
858 OBJEXT
859 CPP
860 build
861 build_cpu
862 build_vendor
863 build_os
864 host
865 host_cpu
866 host_vendor
867 host_os
868 target
869 target_cpu
870 target_vendor
871 target_os
872 SED
873 GREP
874 EGREP
875 LN_S
876 ECHO
877 AR
878 RANLIB
879 STRIP
880 UNAMEPROG
881 TRPROG
882 NROFFPROG
883 YACC
884 YFLAGS
885 LIBOBJS
886 ALLOCA
887 KRB5CONFIG
888 LTLIBOBJS'
889 ac_subst_files=''
890       ac_precious_vars='build_alias
891 host_alias
892 target_alias
893 CC
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
898 CPP
899 YACC
900 YFLAGS'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
922
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953   # If the previous option needs an argument, assign it.
954   if test -n "$ac_prev"; then
955     eval $ac_prev=\$ac_option
956     ac_prev=
957     continue
958   fi
959
960   case $ac_option in
961   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962   *)    ac_optarg=yes ;;
963   esac
964
965   # Accept the important Cygnus configure options, so we can diagnose typos.
966
967   case $ac_dashdash$ac_option in
968   --)
969     ac_dashdash=yes ;;
970
971   -bindir | --bindir | --bindi | --bind | --bin | --bi)
972     ac_prev=bindir ;;
973   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974     bindir=$ac_optarg ;;
975
976   -build | --build | --buil | --bui | --bu)
977     ac_prev=build_alias ;;
978   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979     build_alias=$ac_optarg ;;
980
981   -cache-file | --cache-file | --cache-fil | --cache-fi \
982   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983     ac_prev=cache_file ;;
984   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986     cache_file=$ac_optarg ;;
987
988   --config-cache | -C)
989     cache_file=config.cache ;;
990
991   -datadir | --datadir | --datadi | --datad)
992     ac_prev=datadir ;;
993   -datadir=* | --datadir=* | --datadi=* | --datad=*)
994     datadir=$ac_optarg ;;
995
996   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997   | --dataroo | --dataro | --datar)
998     ac_prev=datarootdir ;;
999   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001     datarootdir=$ac_optarg ;;
1002
1003   -disable-* | --disable-*)
1004     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008    { (exit 1); exit 1; }; }
1009     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010     eval enable_$ac_feature=no ;;
1011
1012   -docdir | --docdir | --docdi | --doc | --do)
1013     ac_prev=docdir ;;
1014   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015     docdir=$ac_optarg ;;
1016
1017   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018     ac_prev=dvidir ;;
1019   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020     dvidir=$ac_optarg ;;
1021
1022   -enable-* | --enable-*)
1023     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024     # Reject names that are not valid shell variable names.
1025     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027    { (exit 1); exit 1; }; }
1028     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029     eval enable_$ac_feature=\$ac_optarg ;;
1030
1031   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033   | --exec | --exe | --ex)
1034     ac_prev=exec_prefix ;;
1035   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037   | --exec=* | --exe=* | --ex=*)
1038     exec_prefix=$ac_optarg ;;
1039
1040   -gas | --gas | --ga | --g)
1041     # Obsolete; use --with-gas.
1042     with_gas=yes ;;
1043
1044   -help | --help | --hel | --he | -h)
1045     ac_init_help=long ;;
1046   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047     ac_init_help=recursive ;;
1048   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049     ac_init_help=short ;;
1050
1051   -host | --host | --hos | --ho)
1052     ac_prev=host_alias ;;
1053   -host=* | --host=* | --hos=* | --ho=*)
1054     host_alias=$ac_optarg ;;
1055
1056   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057     ac_prev=htmldir ;;
1058   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059   | --ht=*)
1060     htmldir=$ac_optarg ;;
1061
1062   -includedir | --includedir | --includedi | --included | --include \
1063   | --includ | --inclu | --incl | --inc)
1064     ac_prev=includedir ;;
1065   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066   | --includ=* | --inclu=* | --incl=* | --inc=*)
1067     includedir=$ac_optarg ;;
1068
1069   -infodir | --infodir | --infodi | --infod | --info | --inf)
1070     ac_prev=infodir ;;
1071   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072     infodir=$ac_optarg ;;
1073
1074   -libdir | --libdir | --libdi | --libd)
1075     ac_prev=libdir ;;
1076   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077     libdir=$ac_optarg ;;
1078
1079   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080   | --libexe | --libex | --libe)
1081     ac_prev=libexecdir ;;
1082   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083   | --libexe=* | --libex=* | --libe=*)
1084     libexecdir=$ac_optarg ;;
1085
1086   -localedir | --localedir | --localedi | --localed | --locale)
1087     ac_prev=localedir ;;
1088   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089     localedir=$ac_optarg ;;
1090
1091   -localstatedir | --localstatedir | --localstatedi | --localstated \
1092   | --localstate | --localstat | --localsta | --localst | --locals)
1093     ac_prev=localstatedir ;;
1094   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096     localstatedir=$ac_optarg ;;
1097
1098   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099     ac_prev=mandir ;;
1100   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101     mandir=$ac_optarg ;;
1102
1103   -nfp | --nfp | --nf)
1104     # Obsolete; use --without-fp.
1105     with_fp=no ;;
1106
1107   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108   | --no-cr | --no-c | -n)
1109     no_create=yes ;;
1110
1111   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113     no_recursion=yes ;;
1114
1115   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117   | --oldin | --oldi | --old | --ol | --o)
1118     ac_prev=oldincludedir ;;
1119   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122     oldincludedir=$ac_optarg ;;
1123
1124   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125     ac_prev=prefix ;;
1126   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127     prefix=$ac_optarg ;;
1128
1129   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130   | --program-pre | --program-pr | --program-p)
1131     ac_prev=program_prefix ;;
1132   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134     program_prefix=$ac_optarg ;;
1135
1136   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137   | --program-suf | --program-su | --program-s)
1138     ac_prev=program_suffix ;;
1139   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141     program_suffix=$ac_optarg ;;
1142
1143   -program-transform-name | --program-transform-name \
1144   | --program-transform-nam | --program-transform-na \
1145   | --program-transform-n | --program-transform- \
1146   | --program-transform | --program-transfor \
1147   | --program-transfo | --program-transf \
1148   | --program-trans | --program-tran \
1149   | --progr-tra | --program-tr | --program-t)
1150     ac_prev=program_transform_name ;;
1151   -program-transform-name=* | --program-transform-name=* \
1152   | --program-transform-nam=* | --program-transform-na=* \
1153   | --program-transform-n=* | --program-transform-=* \
1154   | --program-transform=* | --program-transfor=* \
1155   | --program-transfo=* | --program-transf=* \
1156   | --program-trans=* | --program-tran=* \
1157   | --progr-tra=* | --program-tr=* | --program-t=*)
1158     program_transform_name=$ac_optarg ;;
1159
1160   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161     ac_prev=pdfdir ;;
1162   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163     pdfdir=$ac_optarg ;;
1164
1165   -psdir | --psdir | --psdi | --psd | --ps)
1166     ac_prev=psdir ;;
1167   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168     psdir=$ac_optarg ;;
1169
1170   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171   | -silent | --silent | --silen | --sile | --sil)
1172     silent=yes ;;
1173
1174   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175     ac_prev=sbindir ;;
1176   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177   | --sbi=* | --sb=*)
1178     sbindir=$ac_optarg ;;
1179
1180   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182   | --sharedst | --shareds | --shared | --share | --shar \
1183   | --sha | --sh)
1184     ac_prev=sharedstatedir ;;
1185   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188   | --sha=* | --sh=*)
1189     sharedstatedir=$ac_optarg ;;
1190
1191   -site | --site | --sit)
1192     ac_prev=site ;;
1193   -site=* | --site=* | --sit=*)
1194     site=$ac_optarg ;;
1195
1196   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197     ac_prev=srcdir ;;
1198   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199     srcdir=$ac_optarg ;;
1200
1201   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202   | --syscon | --sysco | --sysc | --sys | --sy)
1203     ac_prev=sysconfdir ;;
1204   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206     sysconfdir=$ac_optarg ;;
1207
1208   -target | --target | --targe | --targ | --tar | --ta | --t)
1209     ac_prev=target_alias ;;
1210   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211     target_alias=$ac_optarg ;;
1212
1213   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214     verbose=yes ;;
1215
1216   -version | --version | --versio | --versi | --vers | -V)
1217     ac_init_version=: ;;
1218
1219   -with-* | --with-*)
1220     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223       { echo "$as_me: error: invalid package name: $ac_package" >&2
1224    { (exit 1); exit 1; }; }
1225     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226     eval with_$ac_package=\$ac_optarg ;;
1227
1228   -without-* | --without-*)
1229     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230     # Reject names that are not valid shell variable names.
1231     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232       { echo "$as_me: error: invalid package name: $ac_package" >&2
1233    { (exit 1); exit 1; }; }
1234     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1235     eval with_$ac_package=no ;;
1236
1237   --x)
1238     # Obsolete; use --with-x.
1239     with_x=yes ;;
1240
1241   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242   | --x-incl | --x-inc | --x-in | --x-i)
1243     ac_prev=x_includes ;;
1244   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246     x_includes=$ac_optarg ;;
1247
1248   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250     ac_prev=x_libraries ;;
1251   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253     x_libraries=$ac_optarg ;;
1254
1255   -*) { echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257    { (exit 1); exit 1; }; }
1258     ;;
1259
1260   *=*)
1261     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262     # Reject names that are not valid shell variable names.
1263     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265    { (exit 1); exit 1; }; }
1266     eval $ac_envvar=\$ac_optarg
1267     export $ac_envvar ;;
1268
1269   *)
1270     # FIXME: should be removed in autoconf 3.0.
1271     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275     ;;
1276
1277   esac
1278 done
1279
1280 if test -n "$ac_prev"; then
1281   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282   { echo "$as_me: error: missing argument to $ac_option" >&2
1283    { (exit 1); exit 1; }; }
1284 fi
1285
1286 # Be sure to have absolute directory names.
1287 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288                 datadir sysconfdir sharedstatedir localstatedir includedir \
1289                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290                 libdir localedir mandir
1291 do
1292   eval ac_val=\$$ac_var
1293   case $ac_val in
1294     [\\/$]* | ?:[\\/]* )  continue;;
1295     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296   esac
1297   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1298    { (exit 1); exit 1; }; }
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310   if test "x$build_alias" = x; then
1311     cross_compiling=maybe
1312     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1313     If a cross compiler is detected then cross compile mode will be used." >&2
1314   elif test "x$build_alias" != "x$host_alias"; then
1315     cross_compiling=yes
1316   fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328   { echo "$as_me: error: Working directory cannot be determined" >&2
1329    { (exit 1); exit 1; }; }
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331   { echo "$as_me: error: pwd does not report name of working directory" >&2
1332    { (exit 1); exit 1; }; }
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337   ac_srcdir_defaulted=yes
1338   # Try the directory containing this script, then the parent directory.
1339   ac_confdir=`$as_dirname -- "$0" ||
1340 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341          X"$0" : 'X\(//\)[^/]' \| \
1342          X"$0" : 'X\(//\)$' \| \
1343          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344 echo X"$0" |
1345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\/\)[^/].*/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\/\)$/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\).*/{
1358             s//\1/
1359             q
1360           }
1361           s/.*/./; q'`
1362   srcdir=$ac_confdir
1363   if test ! -r "$srcdir/$ac_unique_file"; then
1364     srcdir=..
1365   fi
1366 else
1367   ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1372    { (exit 1); exit 1; }; }
1373 fi
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1377    { (exit 1); exit 1; }; }
1378         pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381   srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391   eval ac_env_${ac_var}_value=\$${ac_var}
1392   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400   # Omit some internal or obsolete options to make the list less imposing.
1401   # This message is too long to be a string in the A/UX 3.1 sh.
1402   cat <<_ACEOF
1403 \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE.  See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413   -h, --help              display this help and exit
1414       --help=short        display options specific to this package
1415       --help=recursive    display the short help of all the included packages
1416   -V, --version           display version information and exit
1417   -q, --quiet, --silent   do not print \`checking...' messages
1418       --cache-file=FILE   cache test results in FILE [disabled]
1419   -C, --config-cache      alias for \`--cache-file=config.cache'
1420   -n, --no-create         do not create output files
1421       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424   --prefix=PREFIX         install architecture-independent files in PREFIX
1425                           [$ac_default_prefix]
1426   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1427                           [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437   --bindir=DIR           user executables [EPREFIX/bin]
1438   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1439   --libexecdir=DIR       program executables [EPREFIX/libexec]
1440   --sysconfdir=DIR       read-only single-machine data [etc]
1441   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1442   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1443   --libdir=DIR           object code libraries [EPREFIX/lib]
1444   --includedir=DIR       C header files [PREFIX/include]
1445   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1446   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1447   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1448   --infodir=DIR          info documentation [DATAROOTDIR/info]
1449   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1450   --mandir=DIR           man documentation [DATAROOTDIR/man]
1451   --docdir=DIR           documentation root [DATAROOTDIR/doc/sudo]
1452   --htmldir=DIR          html documentation [DOCDIR]
1453   --dvidir=DIR           dvi documentation [DOCDIR]
1454   --pdfdir=DIR           pdf documentation [DOCDIR]
1455   --psdir=DIR            ps documentation [DOCDIR]
1456 _ACEOF
1457
1458   cat <<\_ACEOF
1459
1460 System types:
1461   --build=BUILD     configure for building on BUILD [guessed]
1462   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1463   --target=TARGET   configure for building compilers for TARGET [HOST]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468   case $ac_init_help in
1469      short | recursive ) echo "Configuration of sudo 1.6.9:";;
1470    esac
1471   cat <<\_ACEOF
1472
1473 Optional Features:
1474   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1475   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1476   --disable-authentication
1477                           Do not require authentication by default
1478   --disable-root-mailer   Don't run the mailer as root, run as the user
1479   --disable-setreuid      Don't try to use the setreuid() function
1480   --disable-setresuid     Don't try to use the setresuid() function
1481   --disable-shadow        Never use shadow passwords
1482   --disable-root-sudo     Don't allow root to run sudo
1483   --enable-log-host       Log the hostname in the log file
1484   --enable-noargs-shell   If sudo is given no arguments run a shell
1485   --enable-shell-sets-home
1486                           set $HOME to target user in shell mode
1487   --disable-path-info     Print 'command not allowed' not 'command not found'
1488   --enable-static[=PKGS]  build static libraries [default=no]
1489   --enable-shared[=PKGS]  build shared libraries [default=yes]
1490   --enable-fast-install[=PKGS]
1491                           optimize for fast installation [default=yes]
1492   --disable-libtool-lock  avoid locking (might break parallel builds)
1493   --disable-sia           Disable SIA on Digital UNIX
1494   --disable-pam-session   Disable PAM session support
1495
1496 Optional Packages:
1497   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1498   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1499   --with-otp-only         deprecated
1500   --with-alertmail        deprecated
1501   --with-CC               C compiler to use
1502   --with-rpath            pass -R flag in addition to -L for lib paths
1503   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1504   --with-incpath          additional places to look for include files
1505   --with-libpath          additional places to look for libraries
1506   --with-libraries        additional libraries to link with
1507   --with-devel            add development options
1508   --with-efence           link with -lefence for malloc() debugging
1509   --with-csops            add CSOps standard options
1510   --without-passwd        don't use passwd/shadow file for authentication
1511   --with-skey=DIR         enable S/Key support
1512   --with-opie=DIR         enable OPIE support
1513   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1514   --with-SecurID[=DIR]    enable SecurID support
1515   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1516   --with-kerb4[=DIR]      enable Kerberos IV support
1517   --with-kerb5[=DIR]      enable Kerberos V support
1518   --with-aixauth          enable AIX general authentication support
1519   --with-pam              enable PAM support
1520   --with-AFS              enable AFS support
1521   --with-DCE              enable DCE support
1522   --with-logincap         enable BSD login class support
1523   --with-bsdauth          enable BSD authentication support
1524   --with-project          enable Solaris project support
1525   --without-lecture       don't print lecture for first-time sudoer
1526   --with-logging          log via syslog, file, or both
1527   --with-logfac           syslog facility to log with (default is "local2")
1528   --with-goodpri          syslog priority for commands (def is "notice")
1529   --with-badpri           syslog priority for failures (def is "alert")
1530   --with-logpath          path to the sudo log file
1531   --with-loglen           maximum length of a log file line (default is 80)
1532   --with-ignore-dot       ignore '.' in the PATH
1533   --without-mail-if-no-user do not send mail if user not in sudoers
1534   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1535   --with-mail-if-noperms  send mail if user not allowed to run command
1536   --with-mailto           who should get sudo mail (default is "root")
1537   --with-mailsubject      subject of sudo mail
1538   --with-passprompt       default password prompt
1539   --with-badpass-message  message the user sees when the password is wrong
1540   --with-fqdn             expect fully qualified hosts in sudoers
1541   --with-timedir          path to the sudo timestamp dir
1542   --with-sendmail=path    set path to sendmail
1543   --without-sendmail      do not send mail at all
1544   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1545   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1546   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1547   --with-umask            umask with which the prog should run (default is 022)
1548   --without-umask         Preserves the umask of the user invoking sudo.
1549   --with-runas-default    User to run commands as (default is "root")
1550   --with-exempt=group     no passwd needed for users in this group
1551   --with-editor=path      Default editor for visudo (defaults to vi)
1552   --with-env-editor       Use the environment variable EDITOR for visudo
1553   --with-passwd-tries     number of tries to enter password (default is 3)
1554   --with-timeout          minutes before sudo asks for passwd again (def is 5 minutes)
1555   --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1556   --with-tty-tickets      use a different ticket file for each tty
1557   --with-insults          insult the user for entering an incorrect password
1558   --with-all-insults      include all the sudo insult sets
1559   --with-classic-insults  include the insults from the "classic" sudo
1560   --with-csops-insults    include CSOps insults
1561   --with-hal-insults      include 2001-like insults
1562   --with-goons-insults    include the insults from the "Goon Show"
1563   --with-ldap[=DIR]       enable LDAP support
1564   --with-ldap-conf-file   path to LDAP configuration file
1565   --with-ldap-secret-file path to LDAP secret pasdword file
1566   --with-pc-insults       replace politically incorrect insults with less offensive ones
1567   --with-secure-path      override the user's path with a built-in one
1568   --without-interfaces    don't try to read the ip addr of ether interfaces
1569   --with-stow             properly handle GNU stow packaging
1570   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1571   --with-pic              try to use only PIC/non-PIC objects [default=use
1572                           both]
1573   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1574
1575 Some influential environment variables:
1576   CC          C compiler command
1577   CFLAGS      C compiler flags
1578   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1579               nonstandard directory <lib dir>
1580   LIBS        libraries to pass to the linker, e.g. -l<library>
1581   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1582               you have headers in a nonstandard directory <include dir>
1583   CPP         C preprocessor
1584   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1585               the first program found out of: `bison -y', `byacc', `yacc'.
1586   YFLAGS      The list of arguments that will be passed by default to $YACC.
1587               This script will default YFLAGS to the empty string to avoid a
1588               default value of `-d' given by some make applications.
1589
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1592
1593 _ACEOF
1594 ac_status=$?
1595 fi
1596
1597 if test "$ac_init_help" = "recursive"; then
1598   # If there are subdirs, report their specific --help.
1599   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600     test -d "$ac_dir" || continue
1601     ac_builddir=.
1602
1603 case "$ac_dir" in
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *)
1606   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1607   # A ".." for each directory in $ac_dir_suffix.
1608   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1609   case $ac_top_builddir_sub in
1610   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612   esac ;;
1613 esac
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1618
1619 case $srcdir in
1620   .)  # We are building in place.
1621     ac_srcdir=.
1622     ac_top_srcdir=$ac_top_builddir_sub
1623     ac_abs_top_srcdir=$ac_pwd ;;
1624   [\\/]* | ?:[\\/]* )  # Absolute name.
1625     ac_srcdir=$srcdir$ac_dir_suffix;
1626     ac_top_srcdir=$srcdir
1627     ac_abs_top_srcdir=$srcdir ;;
1628   *) # Relative name.
1629     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630     ac_top_srcdir=$ac_top_build_prefix$srcdir
1631     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632 esac
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635     cd "$ac_dir" || { ac_status=$?; continue; }
1636     # Check for guested configure.
1637     if test -f "$ac_srcdir/configure.gnu"; then
1638       echo &&
1639       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640     elif test -f "$ac_srcdir/configure"; then
1641       echo &&
1642       $SHELL "$ac_srcdir/configure" --help=recursive
1643     else
1644       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645     fi || ac_status=$?
1646     cd "$ac_pwd" || { ac_status=$?; break; }
1647   done
1648 fi
1649
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1652   cat <<\_ACEOF
1653 sudo configure 1.6.9
1654 generated by GNU Autoconf 2.61
1655
1656 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1657 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1660 _ACEOF
1661   exit
1662 fi
1663 cat >config.log <<_ACEOF
1664 This file contains any messages produced by compilers while
1665 running configure, to aid debugging if configure makes a mistake.
1666
1667 It was created by sudo $as_me 1.6.9, which was
1668 generated by GNU Autoconf 2.61.  Invocation command line was
1669
1670   $ $0 $@
1671
1672 _ACEOF
1673 exec 5>>config.log
1674 {
1675 cat <<_ASUNAME
1676 ## --------- ##
1677 ## Platform. ##
1678 ## --------- ##
1679
1680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1685
1686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1688
1689 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1690 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1693 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1694 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1695 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1696
1697 _ASUNAME
1698
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   echo "PATH: $as_dir"
1705 done
1706 IFS=$as_save_IFS
1707
1708 } >&5
1709
1710 cat >&5 <<_ACEOF
1711
1712
1713 ## ----------- ##
1714 ## Core tests. ##
1715 ## ----------- ##
1716
1717 _ACEOF
1718
1719
1720 # Keep a trace of the command line.
1721 # Strip out --no-create and --no-recursion so they do not pile up.
1722 # Strip out --silent because we don't want to record it for future runs.
1723 # Also quote any args containing shell meta-characters.
1724 # Make two passes to allow for proper duplicate-argument suppression.
1725 ac_configure_args=
1726 ac_configure_args0=
1727 ac_configure_args1=
1728 ac_must_keep_next=false
1729 for ac_pass in 1 2
1730 do
1731   for ac_arg
1732   do
1733     case $ac_arg in
1734     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736     | -silent | --silent | --silen | --sile | --sil)
1737       continue ;;
1738     *\'*)
1739       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1740     esac
1741     case $ac_pass in
1742     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1743     2)
1744       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745       if test $ac_must_keep_next = true; then
1746         ac_must_keep_next=false # Got value, back to normal.
1747       else
1748         case $ac_arg in
1749           *=* | --config-cache | -C | -disable-* | --disable-* \
1750           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752           | -with-* | --with-* | -without-* | --without-* | --x)
1753             case "$ac_configure_args0 " in
1754               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755             esac
1756             ;;
1757           -* ) ac_must_keep_next=true ;;
1758         esac
1759       fi
1760       ac_configure_args="$ac_configure_args '$ac_arg'"
1761       ;;
1762     esac
1763   done
1764 done
1765 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1767
1768 # When interrupted or exit'd, cleanup temporary files, and complete
1769 # config.log.  We remove comments because anyway the quotes in there
1770 # would cause problems or look ugly.
1771 # WARNING: Use '\'' to represent an apostrophe within the trap.
1772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773 trap 'exit_status=$?
1774   # Save into config.log some information that might help in debugging.
1775   {
1776     echo
1777
1778     cat <<\_ASBOX
1779 ## ---------------- ##
1780 ## Cache variables. ##
1781 ## ---------------- ##
1782 _ASBOX
1783     echo
1784     # The following way of writing the cache mishandles newlines in values,
1785 (
1786   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787     eval ac_val=\$$ac_var
1788     case $ac_val in #(
1789     *${as_nl}*)
1790       case $ac_var in #(
1791       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1792 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1793       esac
1794       case $ac_var in #(
1795       _ | IFS | as_nl) ;; #(
1796       *) $as_unset $ac_var ;;
1797       esac ;;
1798     esac
1799   done
1800   (set) 2>&1 |
1801     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802     *${as_nl}ac_space=\ *)
1803       sed -n \
1804         "s/'\''/'\''\\\\'\'''\''/g;
1805           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1806       ;; #(
1807     *)
1808       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1809       ;;
1810     esac |
1811     sort
1812 )
1813     echo
1814
1815     cat <<\_ASBOX
1816 ## ----------------- ##
1817 ## Output variables. ##
1818 ## ----------------- ##
1819 _ASBOX
1820     echo
1821     for ac_var in $ac_subst_vars
1822     do
1823       eval ac_val=\$$ac_var
1824       case $ac_val in
1825       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826       esac
1827       echo "$ac_var='\''$ac_val'\''"
1828     done | sort
1829     echo
1830
1831     if test -n "$ac_subst_files"; then
1832       cat <<\_ASBOX
1833 ## ------------------- ##
1834 ## File substitutions. ##
1835 ## ------------------- ##
1836 _ASBOX
1837       echo
1838       for ac_var in $ac_subst_files
1839       do
1840         eval ac_val=\$$ac_var
1841         case $ac_val in
1842         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843         esac
1844         echo "$ac_var='\''$ac_val'\''"
1845       done | sort
1846       echo
1847     fi
1848
1849     if test -s confdefs.h; then
1850       cat <<\_ASBOX
1851 ## ----------- ##
1852 ## confdefs.h. ##
1853 ## ----------- ##
1854 _ASBOX
1855       echo
1856       cat confdefs.h
1857       echo
1858     fi
1859     test "$ac_signal" != 0 &&
1860       echo "$as_me: caught signal $ac_signal"
1861     echo "$as_me: exit $exit_status"
1862   } >&5
1863   rm -f core *.core core.conftest.* &&
1864     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1865     exit $exit_status
1866 ' 0
1867 for ac_signal in 1 2 13 15; do
1868   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1869 done
1870 ac_signal=0
1871
1872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1873 rm -f -r conftest* confdefs.h
1874
1875 # Predefined preprocessor variables.
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_NAME "$PACKAGE_NAME"
1879 _ACEOF
1880
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1884 _ACEOF
1885
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1889 _ACEOF
1890
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_STRING "$PACKAGE_STRING"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1899 _ACEOF
1900
1901
1902 # Let the site file select an alternate cache file if it wants to.
1903 # Prefer explicitly selected file to automatically selected ones.
1904 if test -n "$CONFIG_SITE"; then
1905   set x "$CONFIG_SITE"
1906 elif test "x$prefix" != xNONE; then
1907   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1908 else
1909   set x "$ac_default_prefix/share/config.site" \
1910         "$ac_default_prefix/etc/config.site"
1911 fi
1912 shift
1913 for ac_site_file
1914 do
1915   if test -r "$ac_site_file"; then
1916     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1917 echo "$as_me: loading site script $ac_site_file" >&6;}
1918     sed 's/^/| /' "$ac_site_file" >&5
1919     . "$ac_site_file"
1920   fi
1921 done
1922
1923 if test -r "$cache_file"; then
1924   # Some versions of bash will fail to source /dev/null (special
1925   # files actually), so we avoid doing that.
1926   if test -f "$cache_file"; then
1927     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1928 echo "$as_me: loading cache $cache_file" >&6;}
1929     case $cache_file in
1930       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1931       *)                      . "./$cache_file";;
1932     esac
1933   fi
1934 else
1935   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1936 echo "$as_me: creating cache $cache_file" >&6;}
1937   >$cache_file
1938 fi
1939
1940 # Check that the precious variables saved in the cache have kept the same
1941 # value.
1942 ac_cache_corrupted=false
1943 for ac_var in $ac_precious_vars; do
1944   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1945   eval ac_new_set=\$ac_env_${ac_var}_set
1946   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1947   eval ac_new_val=\$ac_env_${ac_var}_value
1948   case $ac_old_set,$ac_new_set in
1949     set,)
1950       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1951 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1952       ac_cache_corrupted=: ;;
1953     ,set)
1954       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1955 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1956       ac_cache_corrupted=: ;;
1957     ,);;
1958     *)
1959       if test "x$ac_old_val" != "x$ac_new_val"; then
1960         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1963 echo "$as_me:   former value:  $ac_old_val" >&2;}
1964         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1965 echo "$as_me:   current value: $ac_new_val" >&2;}
1966         ac_cache_corrupted=:
1967       fi;;
1968   esac
1969   # Pass precious variables to config.status.
1970   if test "$ac_new_set" = set; then
1971     case $ac_new_val in
1972     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973     *) ac_arg=$ac_var=$ac_new_val ;;
1974     esac
1975     case " $ac_configure_args " in
1976       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1977       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1978     esac
1979   fi
1980 done
1981 if $ac_cache_corrupted; then
1982   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1983 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1984   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1985 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1986    { (exit 1); exit 1; }; }
1987 fi
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013 ac_ext=c
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018
2019
2020 ac_config_headers="$ac_config_headers config.h pathnames.h"
2021
2022 { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
2023 echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076 timeout=5
2077 password_timeout=5
2078 sudo_umask=0022
2079 passprompt="Password:"
2080 long_otp_prompt=off
2081 lecture=once
2082 logfac=local2
2083 goodpri=notice
2084 badpri=alert
2085 loglen=80
2086 ignore_dot=off
2087 mail_no_user=on
2088 mail_no_host=off
2089 mail_no_perms=off
2090 mailto=root
2091 mailsub='*** SECURITY information for %h ***'
2092 badpass_message='Sorry, try again.'
2093 fqdn=off
2094 runas_default=root
2095 env_editor=off
2096 passwd_tries=3
2097 tty_tickets=off
2098 insults=off
2099 root_sudo=on
2100 path_info=on
2101 INSTALL_NOEXEC=
2102 PROGS="sudo visudo"
2103 : ${MANTYPE='man'}
2104 : ${mansrcdir='.'}
2105 : ${SUDOERS_MODE='0440'}
2106 : ${SUDOERS_UID='0'}
2107 : ${SUDOERS_GID='0'}
2108 DEV="#"
2109 AUTH_OBJS=
2110 AUTH_REG=
2111 AUTH_EXCL=
2112 AUTH_EXCL_DEF=
2113 AUTH_DEF=passwd
2114
2115 CHECKSHADOW=true
2116 shadow_defs=
2117 shadow_funcs=
2118 shadow_libs=
2119 shadow_libs_optional=
2120
2121 test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
2122 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2123 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2124 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2125
2126
2127
2128 # Check whether --with-otp-only was given.
2129 if test "${with_otp_only+set}" = set; then
2130   withval=$with_otp_only; case $with_otp_only in
2131     yes)        with_passwd="no"
2132                 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2133 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2134                 ;;
2135 esac
2136 fi
2137
2138
2139
2140 # Check whether --with-alertmail was given.
2141 if test "${with_alertmail+set}" = set; then
2142   withval=$with_alertmail; case $with_alertmail in
2143     *)          with_mailto="$with_alertmail"
2144                 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2145 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2146                 ;;
2147 esac
2148 fi
2149
2150
2151
2152
2153 # Check whether --with-CC was given.
2154 if test "${with_CC+set}" = set; then
2155   withval=$with_CC; case $with_CC in
2156     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2157 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2158    { (exit 1); exit 1; }; }
2159                 ;;
2160     no)         { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2161 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2162    { (exit 1); exit 1; }; }
2163                 ;;
2164     *)          CC=$with_CC
2165                 ;;
2166 esac
2167 fi
2168
2169
2170
2171 # Check whether --with-rpath was given.
2172 if test "${with_rpath+set}" = set; then
2173   withval=$with_rpath; case $with_rpath in
2174     yes|no)     ;;
2175     *)          { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2176 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2177    { (exit 1); exit 1; }; }
2178                 ;;
2179 esac
2180 fi
2181
2182
2183
2184 # Check whether --with-blibpath was given.
2185 if test "${with_blibpath+set}" = set; then
2186   withval=$with_blibpath; case $with_blibpath in
2187     yes|no)     ;;
2188     *)          { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2189 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2190                 ;;
2191 esac
2192 fi
2193
2194
2195
2196 # Check whether --with-incpath was given.
2197 if test "${with_incpath+set}" = set; then
2198   withval=$with_incpath; case $with_incpath in
2199     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2200 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2201    { (exit 1); exit 1; }; }
2202                 ;;
2203     no)         { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2204 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2205    { (exit 1); exit 1; }; }
2206                 ;;
2207     *)          { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2208 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2209                 for i in ${with_incpath}; do
2210                     CPPFLAGS="${CPPFLAGS} -I${i}"
2211                 done
2212                 ;;
2213 esac
2214 fi
2215
2216
2217
2218 # Check whether --with-libpath was given.
2219 if test "${with_libpath+set}" = set; then
2220   withval=$with_libpath; case $with_libpath in
2221     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2222 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2223    { (exit 1); exit 1; }; }
2224                 ;;
2225     no)         { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2226 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2227    { (exit 1); exit 1; }; }
2228                 ;;
2229     *)          { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2230 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2231                 ;;
2232 esac
2233 fi
2234
2235
2236
2237 # Check whether --with-libraries was given.
2238 if test "${with_libraries+set}" = set; then
2239   withval=$with_libraries; case $with_libraries in
2240     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2241 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2242    { (exit 1); exit 1; }; }
2243                 ;;
2244     no)         { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2245 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2246    { (exit 1); exit 1; }; }
2247                 ;;
2248     *)          { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2249 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2250                 ;;
2251 esac
2252 fi
2253
2254
2255
2256 # Check whether --with-devel was given.
2257 if test "${with_devel+set}" = set; then
2258   withval=$with_devel; case $with_devel in
2259     yes)        { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2260 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2261                 PROGS="${PROGS} testsudoers"
2262                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2263                 DEV=""
2264                 ;;
2265     no)         ;;
2266     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2267 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2268                 ;;
2269 esac
2270 fi
2271
2272
2273
2274 # Check whether --with-efence was given.
2275 if test "${with_efence+set}" = set; then
2276   withval=$with_efence; case $with_efence in
2277     yes)        { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2278 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2279                 LIBS="${LIBS} -lefence"
2280                 if test -f /usr/local/lib/libefence.a; then
2281                     with_libpath="${with_libpath} /usr/local/lib"
2282                 fi
2283                 ;;
2284     no)         ;;
2285     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2286 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2287                 ;;
2288 esac
2289 fi
2290
2291
2292
2293 # Check whether --with-csops was given.
2294 if test "${with_csops+set}" = set; then
2295   withval=$with_csops; case $with_csops in
2296     yes)        { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2297 echo "$as_me: Adding CSOps standard options" >&6;}
2298                 CHECKSIA=false
2299                 with_ignore_dot=yes
2300                 insults=on
2301                 with_classic_insults=yes
2302                 with_csops_insults=yes
2303                 with_env_editor=yes
2304                 : ${mansectsu='8'}
2305                 : ${mansectform='5'}
2306                 ;;
2307     no)         ;;
2308     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2309 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2310                 ;;
2311 esac
2312 fi
2313
2314
2315
2316 # Check whether --with-passwd was given.
2317 if test "${with_passwd+set}" = set; then
2318   withval=$with_passwd; case $with_passwd in
2319     yes|no)     { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2320 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2321                 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2322 echo "${ECHO_T}$with_passwd" >&6; }
2323                 AUTH_DEF=""
2324                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2325                 ;;
2326     *)          { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2327 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2328    { (exit 1); exit 1; }; }
2329                 ;;
2330 esac
2331 fi
2332
2333
2334
2335 # Check whether --with-skey was given.
2336 if test "${with_skey+set}" = set; then
2337   withval=$with_skey; case $with_skey in
2338     no)         with_skey=""
2339                 ;;
2340     *)          cat >>confdefs.h <<\_ACEOF
2341 #define HAVE_SKEY 1
2342 _ACEOF
2343
2344                 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2345 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2346                 { echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6; }
2348                 AUTH_REG="$AUTH_REG S/Key"
2349                 ;;
2350 esac
2351 fi
2352
2353
2354
2355 # Check whether --with-opie was given.
2356 if test "${with_opie+set}" = set; then
2357   withval=$with_opie; case $with_opie in
2358     no)         with_opie=""
2359                 ;;
2360     *)          cat >>confdefs.h <<\_ACEOF
2361 #define HAVE_OPIE 1
2362 _ACEOF
2363
2364                 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2365 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2366                 { echo "$as_me:$LINENO: result: yes" >&5
2367 echo "${ECHO_T}yes" >&6; }
2368                 AUTH_REG="$AUTH_REG NRL_OPIE"
2369                 ;;
2370 esac
2371 fi
2372
2373
2374
2375 # Check whether --with-long-otp-prompt was given.
2376 if test "${with_long_otp_prompt+set}" = set; then
2377   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2378     yes)        cat >>confdefs.h <<\_ACEOF
2379 #define LONG_OTP_PROMPT 1
2380 _ACEOF
2381
2382                 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2383 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2384                 { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2386                 long_otp_prompt=on
2387                 ;;
2388     no)         long_otp_prompt=off
2389                 ;;
2390     *)          { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2391 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2392    { (exit 1); exit 1; }; }
2393                 ;;
2394 esac
2395 fi
2396
2397
2398
2399 # Check whether --with-SecurID was given.
2400 if test "${with_SecurID+set}" = set; then
2401   withval=$with_SecurID; case $with_SecurID in
2402     no)         with_SecurID="";;
2403     *)          cat >>confdefs.h <<\_ACEOF
2404 #define HAVE_SECURID 1
2405 _ACEOF
2406
2407                 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2408 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2409                 { echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6; }
2411                 AUTH_EXCL="$AUTH_EXCL SecurID"
2412                 ;;
2413 esac
2414 fi
2415
2416
2417
2418 # Check whether --with-fwtk was given.
2419 if test "${with_fwtk+set}" = set; then
2420   withval=$with_fwtk; case $with_fwtk in
2421     no)         with_fwtk="";;
2422     *)          cat >>confdefs.h <<\_ACEOF
2423 #define HAVE_FWTK 1
2424 _ACEOF
2425
2426                 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2427 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2428                 { echo "$as_me:$LINENO: result: yes" >&5
2429 echo "${ECHO_T}yes" >&6; }
2430                 AUTH_EXCL="$AUTH_EXCL FWTK"
2431                 ;;
2432 esac
2433 fi
2434
2435
2436
2437 # Check whether --with-kerb4 was given.
2438 if test "${with_kerb4+set}" = set; then
2439   withval=$with_kerb4; case $with_kerb4 in
2440     no)         with_kerb4="";;
2441     *)          { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2442 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2443                 { echo "$as_me:$LINENO: result: yes" >&5
2444 echo "${ECHO_T}yes" >&6; }
2445                 AUTH_REG="$AUTH_REG kerb4"
2446                 ;;
2447 esac
2448 fi
2449
2450
2451
2452 # Check whether --with-kerb5 was given.
2453 if test "${with_kerb5+set}" = set; then
2454   withval=$with_kerb5; case $with_kerb5 in
2455     no)         with_kerb5="";;
2456     *)          { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2457 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2458                 { echo "$as_me:$LINENO: result: yes" >&5
2459 echo "${ECHO_T}yes" >&6; }
2460                 AUTH_REG="$AUTH_REG kerb5"
2461                 ;;
2462 esac
2463 fi
2464
2465
2466
2467 # Check whether --with-aixauth was given.
2468 if test "${with_aixauth+set}" = set; then
2469   withval=$with_aixauth; case $with_aixauth in
2470     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2471     no)         ;;
2472     *)          { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2473 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2474    { (exit 1); exit 1; }; }
2475                 ;;
2476 esac
2477 fi
2478
2479
2480
2481 # Check whether --with-pam was given.
2482 if test "${with_pam+set}" = set; then
2483   withval=$with_pam; case $with_pam in
2484     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
2485     no)         ;;
2486     *)          { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2487 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2488    { (exit 1); exit 1; }; }
2489                 ;;
2490 esac
2491 fi
2492
2493
2494
2495 # Check whether --with-AFS was given.
2496 if test "${with_AFS+set}" = set; then
2497   withval=$with_AFS; case $with_AFS in
2498     yes)        cat >>confdefs.h <<\_ACEOF
2499 #define HAVE_AFS 1
2500 _ACEOF
2501
2502                 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2503 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2504                 { echo "$as_me:$LINENO: result: yes" >&5
2505 echo "${ECHO_T}yes" >&6; }
2506                 AUTH_REG="$AUTH_REG AFS"
2507                 ;;
2508     no)         ;;
2509     *)          { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2510 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2511    { (exit 1); exit 1; }; }
2512                 ;;
2513 esac
2514 fi
2515
2516
2517
2518 # Check whether --with-DCE was given.
2519 if test "${with_DCE+set}" = set; then
2520   withval=$with_DCE; case $with_DCE in
2521     yes)        cat >>confdefs.h <<\_ACEOF
2522 #define HAVE_DCE 1
2523 _ACEOF
2524
2525                 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2526 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2527                 { echo "$as_me:$LINENO: result: yes" >&5
2528 echo "${ECHO_T}yes" >&6; }
2529                 AUTH_REG="$AUTH_REG DCE"
2530                 ;;
2531     no)         ;;
2532     *)          { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2533 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2534    { (exit 1); exit 1; }; }
2535                 ;;
2536 esac
2537 fi
2538
2539
2540
2541 # Check whether --with-logincap was given.
2542 if test "${with_logincap+set}" = set; then
2543   withval=$with_logincap; case $with_logincap in
2544     yes|no)     ;;
2545     *)          { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2546 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2547    { (exit 1); exit 1; }; }
2548                 ;;
2549 esac
2550 fi
2551
2552
2553
2554 # Check whether --with-bsdauth was given.
2555 if test "${with_bsdauth+set}" = set; then
2556   withval=$with_bsdauth; case $with_bsdauth in
2557     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2558     no)         ;;
2559     *)          { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2560 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2561    { (exit 1); exit 1; }; }
2562                 ;;
2563 esac
2564 fi
2565
2566
2567
2568 # Check whether --with-project was given.
2569 if test "${with_project+set}" = set; then
2570   withval=$with_project; case $with_project in
2571     yes|no)     ;;
2572     no) ;;
2573     *)          { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2574 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2575    { (exit 1); exit 1; }; }
2576                 ;;
2577 esac
2578 fi
2579
2580
2581 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2582 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2583
2584 # Check whether --with-lecture was given.
2585 if test "${with_lecture+set}" = set; then
2586   withval=$with_lecture; case $with_lecture in
2587     yes|short|always)   lecture=once
2588                 ;;
2589     no|none|never)      lecture=never
2590                 ;;
2591     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2592 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2593    { (exit 1); exit 1; }; }
2594                 ;;
2595 esac
2596 fi
2597
2598 if test "$lecture" = "once"; then
2599     { echo "$as_me:$LINENO: result: yes" >&5
2600 echo "${ECHO_T}yes" >&6; }
2601 else
2602     cat >>confdefs.h <<\_ACEOF
2603 #define NO_LECTURE 1
2604 _ACEOF
2605
2606     { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2608 fi
2609
2610 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2611 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2612
2613 # Check whether --with-logging was given.
2614 if test "${with_logging+set}" = set; then
2615   withval=$with_logging; case $with_logging in
2616     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2617 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2618    { (exit 1); exit 1; }; }
2619                 ;;
2620     no)         { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2621 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2622    { (exit 1); exit 1; }; }
2623                 ;;
2624     syslog)     cat >>confdefs.h <<\_ACEOF
2625 #define LOGGING SLOG_SYSLOG
2626 _ACEOF
2627
2628                 { echo "$as_me:$LINENO: result: syslog" >&5
2629 echo "${ECHO_T}syslog" >&6; }
2630                 ;;
2631     file)       cat >>confdefs.h <<\_ACEOF
2632 #define LOGGING SLOG_FILE
2633 _ACEOF
2634
2635                 { echo "$as_me:$LINENO: result: file" >&5
2636 echo "${ECHO_T}file" >&6; }
2637                 ;;
2638     both)       cat >>confdefs.h <<\_ACEOF
2639 #define LOGGING SLOG_BOTH
2640 _ACEOF
2641
2642                 { echo "$as_me:$LINENO: result: both" >&5
2643 echo "${ECHO_T}both" >&6; }
2644                 ;;
2645     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2646 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2647    { (exit 1); exit 1; }; }
2648                 ;;
2649 esac
2650 else
2651   cat >>confdefs.h <<\_ACEOF
2652 #define LOGGING SLOG_SYSLOG
2653 _ACEOF
2654  { echo "$as_me:$LINENO: result: syslog" >&5
2655 echo "${ECHO_T}syslog" >&6; }
2656 fi
2657
2658
2659 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2660 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2661
2662 # Check whether --with-logfac was given.
2663 if test "${with_logfac+set}" = set; then
2664   withval=$with_logfac; case $with_logfac in
2665     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2666 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2667    { (exit 1); exit 1; }; }
2668                 ;;
2669     no)         { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2670 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2671    { (exit 1); exit 1; }; }
2672                 ;;
2673     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
2674                 ;;
2675     *)          { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2676 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2677    { (exit 1); exit 1; }; }
2678                 ;;
2679 esac
2680 fi
2681
2682
2683 cat >>confdefs.h <<_ACEOF
2684 #define LOGFAC "$logfac"
2685 _ACEOF
2686
2687 { echo "$as_me:$LINENO: result: $logfac" >&5
2688 echo "${ECHO_T}$logfac" >&6; }
2689
2690 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2691 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2692
2693 # Check whether --with-goodpri was given.
2694 if test "${with_goodpri+set}" = set; then
2695   withval=$with_goodpri; case $with_goodpri in
2696     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2697 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2698    { (exit 1); exit 1; }; }
2699                 ;;
2700     no)         { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2701 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2702    { (exit 1); exit 1; }; }
2703                 ;;
2704     alert|crit|debug|emerg|err|info|notice|warning)
2705                 goodpri=$with_goodpri
2706                 ;;
2707     *)          { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2708 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2709    { (exit 1); exit 1; }; }
2710                 ;;
2711 esac
2712 fi
2713
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define PRI_SUCCESS "$goodpri"
2717 _ACEOF
2718
2719 { echo "$as_me:$LINENO: result: $goodpri" >&5
2720 echo "${ECHO_T}$goodpri" >&6; }
2721
2722 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2723 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2724
2725 # Check whether --with-badpri was given.
2726 if test "${with_badpri+set}" = set; then
2727   withval=$with_badpri; case $with_badpri in
2728     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2729 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2730    { (exit 1); exit 1; }; }
2731                 ;;
2732     no)         { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2733 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2734    { (exit 1); exit 1; }; }
2735                 ;;
2736     alert|crit|debug|emerg|err|info|notice|warning)
2737                 badpri=$with_badpri
2738                 ;;
2739     *)          { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2740 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2741    { (exit 1); exit 1; }; }
2742                 ;;
2743 esac
2744 fi
2745
2746
2747 cat >>confdefs.h <<_ACEOF
2748 #define PRI_FAILURE "$badpri"
2749 _ACEOF
2750
2751 { echo "$as_me:$LINENO: result: $badpri" >&5
2752 echo "${ECHO_T}$badpri" >&6; }
2753
2754
2755 # Check whether --with-logpath was given.
2756 if test "${with_logpath+set}" = set; then
2757   withval=$with_logpath; case $with_logpath in
2758     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2759 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2760    { (exit 1); exit 1; }; }
2761                 ;;
2762     no)         { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2763 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2764    { (exit 1); exit 1; }; }
2765                 ;;
2766 esac
2767 fi
2768
2769
2770 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2771 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2772
2773 # Check whether --with-loglen was given.
2774 if test "${with_loglen+set}" = set; then
2775   withval=$with_loglen; case $with_loglen in
2776     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2777 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2778    { (exit 1); exit 1; }; }
2779                 ;;
2780     no)         { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2781 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2782    { (exit 1); exit 1; }; }
2783                 ;;
2784     [0-9]*)     loglen=$with_loglen
2785                 ;;
2786     *)          { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2787 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2788    { (exit 1); exit 1; }; }
2789                 ;;
2790 esac
2791 fi
2792
2793
2794 cat >>confdefs.h <<_ACEOF
2795 #define MAXLOGFILELEN $loglen
2796 _ACEOF
2797
2798 { echo "$as_me:$LINENO: result: $loglen" >&5
2799 echo "${ECHO_T}$loglen" >&6; }
2800
2801 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2802 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2803
2804 # Check whether --with-ignore-dot was given.
2805 if test "${with_ignore_dot+set}" = set; then
2806   withval=$with_ignore_dot; case $with_ignore_dot in
2807     yes)        ignore_dot=on
2808                 ;;
2809     no)         ignore_dot=off
2810                 ;;
2811     *)          { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2812 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2813    { (exit 1); exit 1; }; }
2814                 ;;
2815 esac
2816 fi
2817
2818 if test "$ignore_dot" = "on"; then
2819     cat >>confdefs.h <<\_ACEOF
2820 #define IGNORE_DOT_PATH 1
2821 _ACEOF
2822
2823     { echo "$as_me:$LINENO: result: yes" >&5
2824 echo "${ECHO_T}yes" >&6; }
2825 else
2826     { echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6; }
2828 fi
2829
2830 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2831 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2832
2833 # Check whether --with-mail-if-no-user was given.
2834 if test "${with_mail_if_no_user+set}" = set; then
2835   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2836     yes)        mail_no_user=on
2837                 ;;
2838     no)         mail_no_user=off
2839                 ;;
2840     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2841 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2842    { (exit 1); exit 1; }; }
2843                 ;;
2844 esac
2845 fi
2846
2847 if test "$mail_no_user" = "on"; then
2848     cat >>confdefs.h <<\_ACEOF
2849 #define SEND_MAIL_WHEN_NO_USER 1
2850 _ACEOF
2851
2852     { echo "$as_me:$LINENO: result: yes" >&5
2853 echo "${ECHO_T}yes" >&6; }
2854 else
2855     { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2857 fi
2858
2859 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2860 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2861
2862 # Check whether --with-mail-if-no-host was given.
2863 if test "${with_mail_if_no_host+set}" = set; then
2864   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2865     yes)        mail_no_host=on
2866                 ;;
2867     no)         mail_no_host=off
2868                 ;;
2869     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2870 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2871    { (exit 1); exit 1; }; }
2872                 ;;
2873 esac
2874 fi
2875
2876 if test "$mail_no_host" = "on"; then
2877     cat >>confdefs.h <<\_ACEOF
2878 #define SEND_MAIL_WHEN_NO_HOST 1
2879 _ACEOF
2880
2881     { echo "$as_me:$LINENO: result: yes" >&5
2882 echo "${ECHO_T}yes" >&6; }
2883 else
2884     { echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6; }
2886 fi
2887
2888 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2889 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2890
2891 # Check whether --with-mail-if-noperms was given.
2892 if test "${with_mail_if_noperms+set}" = set; then
2893   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2894     yes)        mail_noperms=on
2895                 ;;
2896     no)         mail_noperms=off
2897                 ;;
2898     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2899 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2900    { (exit 1); exit 1; }; }
2901                 ;;
2902 esac
2903 fi
2904
2905 if test "$mail_noperms" = "on"; then
2906     cat >>confdefs.h <<\_ACEOF
2907 #define SEND_MAIL_WHEN_NOT_OK 1
2908 _ACEOF
2909
2910     { echo "$as_me:$LINENO: result: yes" >&5
2911 echo "${ECHO_T}yes" >&6; }
2912 else
2913     { echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6; }
2915 fi
2916
2917 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2918 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
2919
2920 # Check whether --with-mailto was given.
2921 if test "${with_mailto+set}" = set; then
2922   withval=$with_mailto; case $with_mailto in
2923     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2924 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2925    { (exit 1); exit 1; }; }
2926                 ;;
2927     no)         { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2928 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2929    { (exit 1); exit 1; }; }
2930                 ;;
2931     *)          mailto=$with_mailto
2932                 ;;
2933 esac
2934 fi
2935
2936
2937 cat >>confdefs.h <<_ACEOF
2938 #define MAILTO "$mailto"
2939 _ACEOF
2940
2941 { echo "$as_me:$LINENO: result: $mailto" >&5
2942 echo "${ECHO_T}$mailto" >&6; }
2943
2944
2945 # Check whether --with-mailsubject was given.
2946 if test "${with_mailsubject+set}" = set; then
2947   withval=$with_mailsubject; case $with_mailsubject in
2948     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2949 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2950    { (exit 1); exit 1; }; }
2951                 ;;
2952     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2953 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2954                 ;;
2955     *)          mailsub="$with_mailsubject"
2956                 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
2957 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
2958                 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
2959 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
2960                 ;;
2961 esac
2962 fi
2963
2964
2965 cat >>confdefs.h <<_ACEOF
2966 #define MAILSUBJECT "$mailsub"
2967 _ACEOF
2968
2969
2970 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
2971 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
2972
2973 # Check whether --with-passprompt was given.
2974 if test "${with_passprompt+set}" = set; then
2975   withval=$with_passprompt; case $with_passprompt in
2976     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
2977 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2978    { (exit 1); exit 1; }; }
2979                 ;;
2980     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2981 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
2982                 ;;
2983     *)          passprompt="$with_passprompt"
2984 esac
2985 fi
2986
2987 { echo "$as_me:$LINENO: result: $passprompt" >&5
2988 echo "${ECHO_T}$passprompt" >&6; }
2989
2990 cat >>confdefs.h <<_ACEOF
2991 #define PASSPROMPT "$passprompt"
2992 _ACEOF
2993
2994
2995 { echo "$as_me:$LINENO: checking for bad password message" >&5
2996 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
2997
2998 # Check whether --with-badpass-message was given.
2999 if test "${with_badpass_message+set}" = set; then
3000   withval=$with_badpass_message; case $with_badpass_message in
3001     yes)        { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3002 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3003    { (exit 1); exit 1; }; }
3004                 ;;
3005     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3006 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3007                 ;;
3008     *)          badpass_message="$with_badpass_message"
3009                 ;;
3010 esac
3011 fi
3012
3013
3014 cat >>confdefs.h <<_ACEOF
3015 #define INCORRECT_PASSWORD "$badpass_message"
3016 _ACEOF
3017
3018 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3019 echo "${ECHO_T}$badpass_message" >&6; }
3020
3021 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3022 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3023
3024 # Check whether --with-fqdn was given.
3025 if test "${with_fqdn+set}" = set; then
3026   withval=$with_fqdn; case $with_fqdn in
3027     yes)        fqdn=on
3028                 ;;
3029     no)         fqdn=off
3030                 ;;
3031     *)          { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3032 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3033    { (exit 1); exit 1; }; }
3034                 ;;
3035 esac
3036 fi
3037
3038 if test "$fqdn" = "on"; then
3039     cat >>confdefs.h <<\_ACEOF
3040 #define FQDN 1
3041 _ACEOF
3042
3043     { echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6; }
3045 else
3046     { echo "$as_me:$LINENO: result: no" >&5
3047 echo "${ECHO_T}no" >&6; }
3048 fi
3049
3050
3051 # Check whether --with-timedir was given.
3052 if test "${with_timedir+set}" = set; then
3053   withval=$with_timedir; case $with_timedir in
3054     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3055 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3056    { (exit 1); exit 1; }; }
3057                 ;;
3058     no)         { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3059 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3060    { (exit 1); exit 1; }; }
3061                 ;;
3062 esac
3063 fi
3064
3065
3066
3067 # Check whether --with-sendmail was given.
3068 if test "${with_sendmail+set}" = set; then
3069   withval=$with_sendmail; case $with_sendmail in
3070     yes)        with_sendmail=""
3071                 ;;
3072     no)         ;;
3073     *)          cat >>confdefs.h <<EOF
3074 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3075 EOF
3076
3077                 ;;
3078 esac
3079 fi
3080
3081
3082
3083 # Check whether --with-sudoers-mode was given.
3084 if test "${with_sudoers_mode+set}" = set; then
3085   withval=$with_sudoers_mode; case $with_sudoers_mode in
3086     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3087 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3088    { (exit 1); exit 1; }; }
3089                 ;;
3090     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3091 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3092    { (exit 1); exit 1; }; }
3093                 ;;
3094     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
3095                 ;;
3096     0*)         SUDOERS_MODE=$with_sudoers_mode
3097                 ;;
3098     *)          { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3099 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3100    { (exit 1); exit 1; }; }
3101                 ;;
3102 esac
3103 fi
3104
3105
3106
3107 # Check whether --with-sudoers-uid was given.
3108 if test "${with_sudoers_uid+set}" = set; then
3109   withval=$with_sudoers_uid; case $with_sudoers_uid in
3110     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3111 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3112    { (exit 1); exit 1; }; }
3113                 ;;
3114     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3115 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3116    { (exit 1); exit 1; }; }
3117                 ;;
3118     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
3119                 ;;
3120     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3121 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3122    { (exit 1); exit 1; }; }
3123                 ;;
3124 esac
3125 fi
3126
3127
3128
3129 # Check whether --with-sudoers-gid was given.
3130 if test "${with_sudoers_gid+set}" = set; then
3131   withval=$with_sudoers_gid; case $with_sudoers_gid in
3132     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3133 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3134    { (exit 1); exit 1; }; }
3135                 ;;
3136     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3137 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3138    { (exit 1); exit 1; }; }
3139                 ;;
3140     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
3141                 ;;
3142     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3143 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3144    { (exit 1); exit 1; }; }
3145                 ;;
3146 esac
3147 fi
3148
3149
3150 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3151 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3152
3153 # Check whether --with-umask was given.
3154 if test "${with_umask+set}" = set; then
3155   withval=$with_umask; case $with_umask in
3156     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3157 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3158    { (exit 1); exit 1; }; }
3159                 ;;
3160     no)         sudo_umask=0777
3161                 ;;
3162     [0-9]*)     sudo_umask=$with_umask
3163                 ;;
3164     *)          { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3165 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3166    { (exit 1); exit 1; }; }
3167                 ;;
3168 esac
3169 fi
3170
3171
3172 cat >>confdefs.h <<_ACEOF
3173 #define SUDO_UMASK $sudo_umask
3174 _ACEOF
3175
3176 if test "$sudo_umask" = "0777"; then
3177     { echo "$as_me:$LINENO: result: user" >&5
3178 echo "${ECHO_T}user" >&6; }
3179 else
3180     { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3181 echo "${ECHO_T}$sudo_umask" >&6; }
3182 fi
3183
3184 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3185 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3186
3187 # Check whether --with-runas-default was given.
3188 if test "${with_runas_default+set}" = set; then
3189   withval=$with_runas_default; case $with_runas_default in
3190     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3191 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3192    { (exit 1); exit 1; }; }
3193                 ;;
3194     no)         { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3195 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3196    { (exit 1); exit 1; }; }
3197                 ;;
3198     *)          runas_default="$with_runas_default"
3199                 ;;
3200 esac
3201 fi
3202
3203
3204 cat >>confdefs.h <<_ACEOF
3205 #define RUNAS_DEFAULT "$runas_default"
3206 _ACEOF
3207
3208 { echo "$as_me:$LINENO: result: $runas_default" >&5
3209 echo "${ECHO_T}$runas_default" >&6; }
3210
3211
3212 # Check whether --with-exempt was given.
3213 if test "${with_exempt+set}" = set; then
3214   withval=$with_exempt; case $with_exempt in
3215     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3216 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3217    { (exit 1); exit 1; }; }
3218                 ;;
3219     no)         { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3220 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3221    { (exit 1); exit 1; }; }
3222                 ;;
3223     *)
3224 cat >>confdefs.h <<_ACEOF
3225 #define EXEMPTGROUP "$with_exempt"
3226 _ACEOF
3227
3228                 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3229 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3230                 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3231 echo "${ECHO_T}$with_exempt" >&6; }
3232                 ;;
3233 esac
3234 fi
3235
3236
3237 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3238 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3239
3240 # Check whether --with-editor was given.
3241 if test "${with_editor+set}" = set; then
3242   withval=$with_editor; case $with_editor in
3243     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3244 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3245    { (exit 1); exit 1; }; }
3246                 ;;
3247     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3248 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3249    { (exit 1); exit 1; }; }
3250                 ;;
3251     *)
3252 cat >>confdefs.h <<_ACEOF
3253 #define EDITOR "$with_editor"
3254 _ACEOF
3255
3256                 { echo "$as_me:$LINENO: result: $with_editor" >&5
3257 echo "${ECHO_T}$with_editor" >&6; }
3258                 ;;
3259 esac
3260 else
3261   cat >>confdefs.h <<\_ACEOF
3262 #define EDITOR _PATH_VI
3263 _ACEOF
3264  { echo "$as_me:$LINENO: result: vi" >&5
3265 echo "${ECHO_T}vi" >&6; }
3266 fi
3267
3268
3269 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3270 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3271
3272 # Check whether --with-env-editor was given.
3273 if test "${with_env_editor+set}" = set; then
3274   withval=$with_env_editor; case $with_env_editor in
3275     yes)        env_editor=on
3276                 ;;
3277     no)         env_editor=off
3278                 ;;
3279     *)          { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3280 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3281    { (exit 1); exit 1; }; }
3282                 ;;
3283 esac
3284 fi
3285
3286 if test "$env_editor" = "on"; then
3287     cat >>confdefs.h <<\_ACEOF
3288 #define ENV_EDITOR 1
3289 _ACEOF
3290
3291     { echo "$as_me:$LINENO: result: yes" >&5
3292 echo "${ECHO_T}yes" >&6; }
3293 else
3294     { echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6; }
3296 fi
3297
3298 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3299 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3300
3301 # Check whether --with-passwd-tries was given.
3302 if test "${with_passwd_tries+set}" = set; then
3303   withval=$with_passwd_tries; case $with_passwd_tries in
3304     yes)        ;;
3305     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3306 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3307    { (exit 1); exit 1; }; }
3308                 ;;
3309     [1-9]*)     passwd_tries=$with_passwd_tries
3310                 ;;
3311     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3312 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3313    { (exit 1); exit 1; }; }
3314                 ;;
3315 esac
3316 fi
3317
3318
3319 cat >>confdefs.h <<_ACEOF
3320 #define TRIES_FOR_PASSWORD $passwd_tries
3321 _ACEOF
3322
3323 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3324 echo "${ECHO_T}$passwd_tries" >&6; }
3325
3326 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3327 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3328
3329 # Check whether --with-timeout was given.
3330 if test "${with_timeout+set}" = set; then
3331   withval=$with_timeout; case $with_timeout in
3332     yes)        ;;
3333     no)         timeout=0
3334                 ;;
3335     [0-9]*)     timeout=$with_timeout
3336                 ;;
3337     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3338 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3339    { (exit 1); exit 1; }; }
3340                 ;;
3341 esac
3342 fi
3343
3344
3345 cat >>confdefs.h <<_ACEOF
3346 #define TIMEOUT $timeout
3347 _ACEOF
3348
3349 { echo "$as_me:$LINENO: result: $timeout" >&5
3350 echo "${ECHO_T}$timeout" >&6; }
3351
3352 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3353 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3354
3355 # Check whether --with-password-timeout was given.
3356 if test "${with_password_timeout+set}" = set; then
3357   withval=$with_password_timeout; case $with_password_timeout in
3358     yes)        ;;
3359     no)         password_timeout=0
3360                 ;;
3361     [0-9]*)     password_timeout=$with_password_timeout
3362                 ;;
3363     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3364 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3365    { (exit 1); exit 1; }; }
3366                 ;;
3367 esac
3368 fi
3369
3370
3371 cat >>confdefs.h <<_ACEOF
3372 #define PASSWORD_TIMEOUT $password_timeout
3373 _ACEOF
3374
3375 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3376 echo "${ECHO_T}$password_timeout" >&6; }
3377
3378 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3379 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3380
3381 # Check whether --with-tty-tickets was given.
3382 if test "${with_tty_tickets+set}" = set; then
3383   withval=$with_tty_tickets; case $with_tty_tickets in
3384     yes)        tty_tickets=on
3385                 ;;
3386     no)         tty_tickets=off
3387                 ;;
3388     *)          { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3389 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3390    { (exit 1); exit 1; }; }
3391                 ;;
3392 esac
3393 fi
3394
3395 if test "$tty_tickets" = "on"; then
3396     cat >>confdefs.h <<\_ACEOF
3397 #define USE_TTY_TICKETS 1
3398 _ACEOF
3399
3400     { echo "$as_me:$LINENO: result: yes" >&5
3401 echo "${ECHO_T}yes" >&6; }
3402 else
3403     { echo "$as_me:$LINENO: result: no" >&5
3404 echo "${ECHO_T}no" >&6; }
3405 fi
3406
3407 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3408 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3409
3410 # Check whether --with-insults was given.
3411 if test "${with_insults+set}" = set; then
3412   withval=$with_insults; case $with_insults in
3413     yes)        insults=on
3414                 with_classic_insults=yes
3415                 with_csops_insults=yes
3416                 ;;
3417     no)         insults=off
3418                 ;;
3419     *)          { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3420 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3421    { (exit 1); exit 1; }; }
3422                 ;;
3423 esac
3424 fi
3425
3426 if test "$insults" = "on"; then
3427     cat >>confdefs.h <<\_ACEOF
3428 #define USE_INSULTS 1
3429 _ACEOF
3430
3431     { echo "$as_me:$LINENO: result: yes" >&5
3432 echo "${ECHO_T}yes" >&6; }
3433 else
3434     { echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6; }
3436 fi
3437
3438
3439 # Check whether --with-all-insults was given.
3440 if test "${with_all_insults+set}" = set; then
3441   withval=$with_all_insults; case $with_all_insults in
3442     yes)        with_classic_insults=yes
3443                 with_csops_insults=yes
3444                 with_hal_insults=yes
3445                 with_goons_insults=yes
3446                 ;;
3447     no)         ;;
3448     *)          { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3449 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3450    { (exit 1); exit 1; }; }
3451                 ;;
3452 esac
3453 fi
3454
3455
3456
3457 # Check whether --with-classic-insults was given.
3458 if test "${with_classic_insults+set}" = set; then
3459   withval=$with_classic_insults; case $with_classic_insults in
3460     yes)        cat >>confdefs.h <<\_ACEOF
3461 #define CLASSIC_INSULTS 1
3462 _ACEOF
3463
3464                 ;;
3465     no)         ;;
3466     *)          { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3467 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3468    { (exit 1); exit 1; }; }
3469                 ;;
3470 esac
3471 fi
3472
3473
3474
3475 # Check whether --with-csops-insults was given.
3476 if test "${with_csops_insults+set}" = set; then
3477   withval=$with_csops_insults; case $with_csops_insults in
3478     yes)        cat >>confdefs.h <<\_ACEOF
3479 #define CSOPS_INSULTS 1
3480 _ACEOF
3481
3482                 ;;
3483     no)         ;;
3484     *)          { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3485 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3486    { (exit 1); exit 1; }; }
3487                 ;;
3488 esac
3489 fi
3490
3491
3492
3493 # Check whether --with-hal-insults was given.
3494 if test "${with_hal_insults+set}" = set; then
3495   withval=$with_hal_insults; case $with_hal_insults in
3496     yes)        cat >>confdefs.h <<\_ACEOF
3497 #define HAL_INSULTS 1
3498 _ACEOF
3499
3500                 ;;
3501     no)         ;;
3502     *)          { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3503 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3504    { (exit 1); exit 1; }; }
3505                 ;;
3506 esac
3507 fi
3508
3509
3510
3511 # Check whether --with-goons-insults was given.
3512 if test "${with_goons_insults+set}" = set; then
3513   withval=$with_goons_insults; case $with_goons_insults in
3514     yes)        cat >>confdefs.h <<\_ACEOF
3515 #define GOONS_INSULTS 1
3516 _ACEOF
3517
3518                 ;;
3519     no)         ;;
3520     *)          { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3521 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3522    { (exit 1); exit 1; }; }
3523                 ;;
3524 esac
3525 fi
3526
3527
3528
3529 # Check whether --with-ldap was given.
3530 if test "${with_ldap+set}" = set; then
3531   withval=$with_ldap; case $with_ldap in
3532     no)         with_ldap="";;
3533     *)          cat >>confdefs.h <<\_ACEOF
3534 #define HAVE_LDAP 1
3535 _ACEOF
3536
3537                 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3538 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3539                 { echo "$as_me:$LINENO: result: yes" >&5
3540 echo "${ECHO_T}yes" >&6; }
3541                 ;;
3542 esac
3543 fi
3544
3545
3546 # Check whether --with-ldap-conf-file was given.
3547 if test "${with_ldap_conf_file+set}" = set; then
3548   withval=$with_ldap_conf_file;
3549 cat >>confdefs.h <<_ACEOF
3550 #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3551 _ACEOF
3552
3553 fi
3554
3555
3556 # Check whether --with-ldap-secret-file was given.
3557 if test "${with_ldap_secret_file+set}" = set; then
3558   withval=$with_ldap_secret_file;
3559 cat >>confdefs.h <<_ACEOF
3560 #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
3561 _ACEOF
3562
3563 fi
3564
3565
3566
3567 # Check whether --with-pc-insults was given.
3568 if test "${with_pc_insults+set}" = set; then
3569   withval=$with_pc_insults; case $with_pc_insults in
3570     yes)        cat >>confdefs.h <<\_ACEOF
3571 #define PC_INSULTS 1
3572 _ACEOF
3573
3574                 ;;
3575     no)         ;;
3576     *)          { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3577 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3578    { (exit 1); exit 1; }; }
3579                 ;;
3580 esac
3581 fi
3582
3583
3584 if test "$insults" = "on"; then
3585     { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3586 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3587     i=""
3588     test "$with_goons_insults" = "yes" && i="goons ${i}"
3589     test "$with_hal_insults" = "yes" && i="hal ${i}"
3590     test "$with_csops_insults" = "yes" && i="csops ${i}"
3591     test "$with_classic_insults" = "yes" && i="classic ${i}"
3592     { echo "$as_me:$LINENO: result: $i" >&5
3593 echo "${ECHO_T}$i" >&6; }
3594 fi
3595
3596 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3597 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3598
3599 # Check whether --with-secure-path was given.
3600 if test "${with_secure_path+set}" = set; then
3601   withval=$with_secure_path; case $with_secure_path in
3602     yes)        cat >>confdefs.h <<_ACEOF
3603 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3604 _ACEOF
3605
3606                 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3607 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3608                 ;;
3609     no)         { echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6; }
3611                 ;;
3612     *)          cat >>confdefs.h <<_ACEOF
3613 #define SECURE_PATH "$with_secure_path"
3614 _ACEOF
3615
3616                 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3617 echo "${ECHO_T}$with_secure_path" >&6; }
3618                 ;;
3619 esac
3620 else
3621   { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3623 fi
3624
3625
3626 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3627 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3628
3629 # Check whether --with-interfaces was given.
3630 if test "${with_interfaces+set}" = set; then
3631   withval=$with_interfaces; case $with_interfaces in
3632     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3633 echo "${ECHO_T}yes" >&6; }
3634                 ;;
3635     no)         cat >>confdefs.h <<\_ACEOF
3636 #define STUB_LOAD_INTERFACES 1
3637 _ACEOF
3638
3639                 { echo "$as_me:$LINENO: result: no" >&5
3640 echo "${ECHO_T}no" >&6; }
3641                 ;;
3642     *)          { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3643 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3644    { (exit 1); exit 1; }; }
3645                 ;;
3646 esac
3647 else
3648   { echo "$as_me:$LINENO: result: yes" >&5
3649 echo "${ECHO_T}yes" >&6; }
3650 fi
3651
3652
3653 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3654 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3655
3656 # Check whether --with-stow was given.
3657 if test "${with_stow+set}" = set; then
3658   withval=$with_stow; case $with_stow in
3659     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3660 echo "${ECHO_T}yes" >&6; }
3661                 cat >>confdefs.h <<\_ACEOF
3662 #define USE_STOW 1
3663 _ACEOF
3664
3665                 ;;
3666     no)         { echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6; }
3668                 ;;
3669     *)          { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3670 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3671    { (exit 1); exit 1; }; }
3672                 ;;
3673 esac
3674 else
3675   { echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6; }
3677 fi
3678
3679
3680
3681 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3682 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3683 # Check whether --enable-authentication was given.
3684 if test "${enable_authentication+set}" = set; then
3685   enableval=$enable_authentication;  case "$enableval" in
3686     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3687 echo "${ECHO_T}yes" >&6; }
3688                 ;;
3689     no)         { echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6; }
3691                 cat >>confdefs.h <<\_ACEOF
3692 #define NO_AUTHENTICATION 1
3693 _ACEOF
3694
3695                 ;;
3696     *)          { echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6; }
3698                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3699 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3700                 ;;
3701   esac
3702
3703 else
3704   { echo "$as_me:$LINENO: result: yes" >&5
3705 echo "${ECHO_T}yes" >&6; }
3706 fi
3707
3708
3709 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3710 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3711 # Check whether --enable-root-mailer was given.
3712 if test "${enable_root_mailer+set}" = set; then
3713   enableval=$enable_root_mailer;  case "$enableval" in
3714     yes)        { echo "$as_me:$LINENO: result: no" >&5
3715 echo "${ECHO_T}no" >&6; }
3716                 ;;
3717     no)         { echo "$as_me:$LINENO: result: yes" >&5
3718 echo "${ECHO_T}yes" >&6; }
3719                 cat >>confdefs.h <<\_ACEOF
3720 #define NO_ROOT_MAILER 1
3721 _ACEOF
3722
3723                 ;;
3724     *)          { echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6; }
3726                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3727 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3728                 ;;
3729   esac
3730
3731 else
3732   { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3734 fi
3735
3736
3737 # Check whether --enable-setreuid was given.
3738 if test "${enable_setreuid+set}" = set; then
3739   enableval=$enable_setreuid;  case "$enableval" in
3740     no)         SKIP_SETREUID=yes
3741                 ;;
3742     *)          ;;
3743   esac
3744
3745 fi
3746
3747
3748 # Check whether --enable-setresuid was given.
3749 if test "${enable_setresuid+set}" = set; then
3750   enableval=$enable_setresuid;  case "$enableval" in
3751     no)         SKIP_SETRESUID=yes
3752                 ;;
3753     *)          ;;
3754   esac
3755
3756 fi
3757
3758
3759 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3760 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3761 # Check whether --enable-shadow was given.
3762 if test "${enable_shadow+set}" = set; then
3763   enableval=$enable_shadow;  case "$enableval" in
3764     yes)        { echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6; }
3766                 ;;
3767     no)         { echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6; }
3769                 CHECKSHADOW="false"
3770                 ;;
3771     *)          { echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6; }
3773                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3774 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3775                 ;;
3776   esac
3777
3778 else
3779   { echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6; }
3781 fi
3782
3783
3784 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3785 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3786 # Check whether --enable-root-sudo was given.
3787 if test "${enable_root_sudo+set}" = set; then
3788   enableval=$enable_root_sudo;  case "$enableval" in
3789     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3790 echo "${ECHO_T}yes" >&6; }
3791                 ;;
3792     no)         cat >>confdefs.h <<\_ACEOF
3793 #define NO_ROOT_SUDO 1
3794 _ACEOF
3795
3796                 { echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6; }
3798                 root_sudo=off
3799                 ;;
3800     *)          { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3801 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3802    { (exit 1); exit 1; }; }
3803                 ;;
3804   esac
3805
3806 else
3807   { echo "$as_me:$LINENO: result: yes" >&5
3808 echo "${ECHO_T}yes" >&6; }
3809 fi
3810
3811
3812 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3813 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3814 # Check whether --enable-log-host was given.
3815 if test "${enable_log_host+set}" = set; then
3816   enableval=$enable_log_host;  case "$enableval" in
3817     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3818 echo "${ECHO_T}yes" >&6; }
3819                 cat >>confdefs.h <<\_ACEOF
3820 #define HOST_IN_LOG 1
3821 _ACEOF
3822
3823                 ;;
3824     no)         { echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6; }
3826                 ;;
3827     *)          { echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6; }
3829                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3830 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3831                 ;;
3832   esac
3833
3834 else
3835   { echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6; }
3837 fi
3838
3839
3840 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3841 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
3842 # Check whether --enable-noargs-shell was given.
3843 if test "${enable_noargs_shell+set}" = set; then
3844   enableval=$enable_noargs_shell;  case "$enableval" in
3845     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3846 echo "${ECHO_T}yes" >&6; }
3847                 cat >>confdefs.h <<\_ACEOF
3848 #define SHELL_IF_NO_ARGS 1
3849 _ACEOF
3850
3851                 ;;
3852     no)         { echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6; }
3854                 ;;
3855     *)          { echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6; }
3857                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3858 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3859                 ;;
3860   esac
3861
3862 else
3863   { echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6; }
3865 fi
3866
3867
3868 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3869 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
3870 # Check whether --enable-shell-sets-home was given.
3871 if test "${enable_shell_sets_home+set}" = set; then
3872   enableval=$enable_shell_sets_home;  case "$enableval" in
3873     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3874 echo "${ECHO_T}yes" >&6; }
3875                 cat >>confdefs.h <<\_ACEOF
3876 #define SHELL_SETS_HOME 1
3877 _ACEOF
3878
3879                 ;;
3880     no)         { echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6; }
3882                 ;;
3883     *)          { echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6; }
3885                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3886 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3887                 ;;
3888   esac
3889
3890 else
3891   { echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6; }
3893 fi
3894
3895
3896 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3897 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
3898 # Check whether --enable-path_info was given.
3899 if test "${enable_path_info+set}" = set; then
3900   enableval=$enable_path_info;  case "$enableval" in
3901     yes)        { echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6; }
3903                 ;;
3904     no)         { echo "$as_me:$LINENO: result: yes" >&5
3905 echo "${ECHO_T}yes" >&6; }
3906                 cat >>confdefs.h <<\_ACEOF
3907 #define DONT_LEAK_PATH_INFO 1
3908 _ACEOF
3909
3910                 path_info=off
3911                 ;;
3912     *)          { echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6; }
3914                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3915 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
3916                 ;;
3917   esac
3918
3919 else
3920   { echo "$as_me:$LINENO: result: no" >&5
3921 echo "${ECHO_T}no" >&6; }
3922 fi
3923
3924
3925 # Extract the first word of "egrep", so it can be a program name with args.
3926 set dummy egrep; ac_word=$2
3927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3929 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   if test -n "$EGREPPROG"; then
3933   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938   IFS=$as_save_IFS
3939   test -z "$as_dir" && as_dir=.
3940   for ac_exec_ext in '' $ac_executable_extensions; do
3941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942     ac_cv_prog_EGREPPROG="egrep"
3943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944     break 2
3945   fi
3946 done
3947 done
3948 IFS=$as_save_IFS
3949
3950 fi
3951 fi
3952 EGREPPROG=$ac_cv_prog_EGREPPROG
3953 if test -n "$EGREPPROG"; then
3954   { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
3955 echo "${ECHO_T}$EGREPPROG" >&6; }
3956 else
3957   { echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6; }
3959 fi
3960
3961
3962 if test -z "$EGREPPROG"; then
3963     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
3964 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
3965    { (exit 1); exit 1; }; }
3966 fi
3967
3968 if test "$with_devel" != "yes"; then
3969     ac_cv_prog_cc_g=no
3970 fi
3971
3972 ac_ext=c
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 if test -n "$ac_tool_prefix"; then
3978   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3979 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3982 if test "${ac_cv_prog_CC+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   if test -n "$CC"; then
3986   ac_cv_prog_CC="$CC" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 CC=$ac_cv_prog_CC
4006 if test -n "$CC"; then
4007   { echo "$as_me:$LINENO: result: $CC" >&5
4008 echo "${ECHO_T}$CC" >&6; }
4009 else
4010   { echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6; }
4012 fi
4013
4014
4015 fi
4016 if test -z "$ac_cv_prog_CC"; then
4017   ac_ct_CC=$CC
4018   # Extract the first word of "gcc", so it can be a program name with args.
4019 set dummy gcc; ac_word=$2
4020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if test -n "$ac_ct_CC"; then
4026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033   for ac_exec_ext in '' $ac_executable_extensions; do
4034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035     ac_cv_prog_ac_ct_CC="gcc"
4036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040 done
4041 IFS=$as_save_IFS
4042
4043 fi
4044 fi
4045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046 if test -n "$ac_ct_CC"; then
4047   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4048 echo "${ECHO_T}$ac_ct_CC" >&6; }
4049 else
4050   { echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6; }
4052 fi
4053
4054   if test "x$ac_ct_CC" = x; then
4055     CC=""
4056   else
4057     case $cross_compiling:$ac_tool_warned in
4058 yes:)
4059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4060 whose name does not start with the host triplet.  If you think this
4061 configuration is useful to you, please write to autoconf@gnu.org." >&5
4062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4063 whose name does not start with the host triplet.  If you think this
4064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4065 ac_tool_warned=yes ;;
4066 esac
4067     CC=$ac_ct_CC
4068   fi
4069 else
4070   CC="$ac_cv_prog_CC"
4071 fi
4072
4073 if test -z "$CC"; then
4074           if test -n "$ac_tool_prefix"; then
4075     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}cc; ac_word=$2
4077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4079 if test "${ac_cv_prog_CC+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   if test -n "$CC"; then
4083   ac_cv_prog_CC="$CC" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090   for ac_exec_ext in '' $ac_executable_extensions; do
4091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092     ac_cv_prog_CC="${ac_tool_prefix}cc"
4093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094     break 2
4095   fi
4096 done
4097 done
4098 IFS=$as_save_IFS
4099
4100 fi
4101 fi
4102 CC=$ac_cv_prog_CC
4103 if test -n "$CC"; then
4104   { echo "$as_me:$LINENO: result: $CC" >&5
4105 echo "${ECHO_T}$CC" >&6; }
4106 else
4107   { echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6; }
4109 fi
4110
4111
4112   fi
4113 fi
4114 if test -z "$CC"; then
4115   # Extract the first word of "cc", so it can be a program name with args.
4116 set dummy cc; ac_word=$2
4117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4119 if test "${ac_cv_prog_CC+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   if test -n "$CC"; then
4123   ac_cv_prog_CC="$CC" # Let the user override the test.
4124 else
4125   ac_prog_rejected=no
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_exec_ext in '' $ac_executable_extensions; do
4132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4134        ac_prog_rejected=yes
4135        continue
4136      fi
4137     ac_cv_prog_CC="cc"
4138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139     break 2
4140   fi
4141 done
4142 done
4143 IFS=$as_save_IFS
4144
4145 if test $ac_prog_rejected = yes; then
4146   # We found a bogon in the path, so make sure we never use it.
4147   set dummy $ac_cv_prog_CC
4148   shift
4149   if test $# != 0; then
4150     # We chose a different compiler from the bogus one.
4151     # However, it has the same basename, so the bogon will be chosen
4152     # first if we set CC to just the basename; use the full file name.
4153     shift
4154     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4155   fi
4156 fi
4157 fi
4158 fi
4159 CC=$ac_cv_prog_CC
4160 if test -n "$CC"; then
4161   { echo "$as_me:$LINENO: result: $CC" >&5
4162 echo "${ECHO_T}$CC" >&6; }
4163 else
4164   { echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6; }
4166 fi
4167
4168
4169 fi
4170 if test -z "$CC"; then
4171   if test -n "$ac_tool_prefix"; then
4172   for ac_prog in cl.exe
4173   do
4174     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4178 if test "${ac_cv_prog_CC+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   if test -n "$CC"; then
4182   ac_cv_prog_CC="$CC" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189   for ac_exec_ext in '' $ac_executable_extensions; do
4190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 CC=$ac_cv_prog_CC
4202 if test -n "$CC"; then
4203   { echo "$as_me:$LINENO: result: $CC" >&5
4204 echo "${ECHO_T}$CC" >&6; }
4205 else
4206   { echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6; }
4208 fi
4209
4210
4211     test -n "$CC" && break
4212   done
4213 fi
4214 if test -z "$CC"; then
4215   ac_ct_CC=$CC
4216   for ac_prog in cl.exe
4217 do
4218   # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   if test -n "$ac_ct_CC"; then
4226   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for ac_exec_ext in '' $ac_executable_extensions; do
4234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235     ac_cv_prog_ac_ct_CC="$ac_prog"
4236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240 done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4246 if test -n "$ac_ct_CC"; then
4247   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4248 echo "${ECHO_T}$ac_ct_CC" >&6; }
4249 else
4250   { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4252 fi
4253
4254
4255   test -n "$ac_ct_CC" && break
4256 done
4257
4258   if test "x$ac_ct_CC" = x; then
4259     CC=""
4260   else
4261     case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4264 whose name does not start with the host triplet.  If you think this
4265 configuration is useful to you, please write to autoconf@gnu.org." >&5
4266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4267 whose name does not start with the host triplet.  If you think this
4268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4269 ac_tool_warned=yes ;;
4270 esac
4271     CC=$ac_ct_CC
4272   fi
4273 fi
4274
4275 fi
4276
4277
4278 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4279 See \`config.log' for more details." >&5
4280 echo "$as_me: error: no acceptable C compiler found in \$PATH
4281 See \`config.log' for more details." >&2;}
4282    { (exit 1); exit 1; }; }
4283
4284 # Provide some information about the compiler.
4285 echo "$as_me:$LINENO: checking for C compiler version" >&5
4286 ac_compiler=`set X $ac_compile; echo $2`
4287 { (ac_try="$ac_compiler --version >&5"
4288 case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293   (eval "$ac_compiler --version >&5") 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }
4297 { (ac_try="$ac_compiler -v >&5"
4298 case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303   (eval "$ac_compiler -v >&5") 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }
4307 { (ac_try="$ac_compiler -V >&5"
4308 case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_compiler -V >&5") 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }
4317
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324
4325 int
4326 main ()
4327 {
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 ac_clean_files_save=$ac_clean_files
4334 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4335 # Try to create an executable without -o first, disregard a.out.
4336 # It will help us diagnose broken compilers, and finding out an intuition
4337 # of exeext.
4338 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4339 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4340 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4341 #
4342 # List of possible output files, starting from the most likely.
4343 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4344 # only as a last resort.  b.out is created by i960 compilers.
4345 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4346 #
4347 # The IRIX 6 linker writes into existing files which may not be
4348 # executable, retaining their permissions.  Remove them first so a
4349 # subsequent execution test works.
4350 ac_rmfiles=
4351 for ac_file in $ac_files
4352 do
4353   case $ac_file in
4354     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4355     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4356   esac
4357 done
4358 rm -f $ac_rmfiles
4359
4360 if { (ac_try="$ac_link_default"
4361 case "(($ac_try" in
4362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363   *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366   (eval "$ac_link_default") 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); }; then
4370   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4372 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4373 # so that the user can short-circuit this test for compilers unknown to
4374 # Autoconf.
4375 for ac_file in $ac_files ''
4376 do
4377   test -f "$ac_file" || continue
4378   case $ac_file in
4379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4380         ;;
4381     [ab].out )
4382         # We found the default executable, but exeext='' is most
4383         # certainly right.
4384         break;;
4385     *.* )
4386         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4387         then :; else
4388            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4389         fi
4390         # We set ac_cv_exeext here because the later test for it is not
4391         # safe: cross compilers may not add the suffix if given an `-o'
4392         # argument, so we may need to know it at that point already.
4393         # Even if this section looks crufty: it has the advantage of
4394         # actually working.
4395         break;;
4396     * )
4397         break;;
4398   esac
4399 done
4400 test "$ac_cv_exeext" = no && ac_cv_exeext=
4401
4402 else
4403   ac_file=''
4404 fi
4405
4406 { echo "$as_me:$LINENO: result: $ac_file" >&5
4407 echo "${ECHO_T}$ac_file" >&6; }
4408 if test -z "$ac_file"; then
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4413 See \`config.log' for more details." >&5
4414 echo "$as_me: error: C compiler cannot create executables
4415 See \`config.log' for more details." >&2;}
4416    { (exit 77); exit 77; }; }
4417 fi
4418
4419 ac_exeext=$ac_cv_exeext
4420
4421 # Check that the compiler produces executables we can run.  If not, either
4422 # the compiler is broken, or we cross compile.
4423 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4424 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4425 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4426 # If not cross compiling, check that we can run a simple program.
4427 if test "$cross_compiling" != yes; then
4428   if { ac_try='./$ac_file'
4429   { (case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434   (eval "$ac_try") 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; }; then
4438     cross_compiling=no
4439   else
4440     if test "$cross_compiling" = maybe; then
4441         cross_compiling=yes
4442     else
4443         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4444 If you meant to cross compile, use \`--host'.
4445 See \`config.log' for more details." >&5
4446 echo "$as_me: error: cannot run C compiled programs.
4447 If you meant to cross compile, use \`--host'.
4448 See \`config.log' for more details." >&2;}
4449    { (exit 1); exit 1; }; }
4450     fi
4451   fi
4452 fi
4453 { echo "$as_me:$LINENO: result: yes" >&5
4454 echo "${ECHO_T}yes" >&6; }
4455
4456 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4457 ac_clean_files=$ac_clean_files_save
4458 # Check that the compiler produces executables we can run.  If not, either
4459 # the compiler is broken, or we cross compile.
4460 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4461 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4462 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4463 echo "${ECHO_T}$cross_compiling" >&6; }
4464
4465 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4466 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4467 if { (ac_try="$ac_link"
4468 case "(($ac_try" in
4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470   *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473   (eval "$ac_link") 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); }; then
4477   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4478 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4479 # work properly (i.e., refer to `conftest.exe'), while it won't with
4480 # `rm'.
4481 for ac_file in conftest.exe conftest conftest.*; do
4482   test -f "$ac_file" || continue
4483   case $ac_file in
4484     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4485     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4486           break;;
4487     * ) break;;
4488   esac
4489 done
4490 else
4491   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4492 See \`config.log' for more details." >&5
4493 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4494 See \`config.log' for more details." >&2;}
4495    { (exit 1); exit 1; }; }
4496 fi
4497
4498 rm -f conftest$ac_cv_exeext
4499 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4500 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4501
4502 rm -f conftest.$ac_ext
4503 EXEEXT=$ac_cv_exeext
4504 ac_exeext=$EXEEXT
4505 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4506 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4507 if test "${ac_cv_objext+set}" = set; then
4508   echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510   cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h.  */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h.  */
4516
4517 int
4518 main ()
4519 {
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.o conftest.obj
4526 if { (ac_try="$ac_compile"
4527 case "(($ac_try" in
4528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529   *) ac_try_echo=$ac_try;;
4530 esac
4531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532   (eval "$ac_compile") 2>&5
4533   ac_status=$?
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); }; then
4536   for ac_file in conftest.o conftest.obj conftest.*; do
4537   test -f "$ac_file" || continue;
4538   case $ac_file in
4539     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4540     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4541        break;;
4542   esac
4543 done
4544 else
4545   echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4549 See \`config.log' for more details." >&5
4550 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4551 See \`config.log' for more details." >&2;}
4552    { (exit 1); exit 1; }; }
4553 fi
4554
4555 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4556 fi
4557 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4558 echo "${ECHO_T}$ac_cv_objext" >&6; }
4559 OBJEXT=$ac_cv_objext
4560 ac_objext=$OBJEXT
4561 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4562 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4563 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4564   echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566   cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h.  */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h.  */
4572
4573 int
4574 main ()
4575 {
4576 #ifndef __GNUC__
4577        choke me
4578 #endif
4579
4580   ;
4581   return 0;
4582 }
4583 _ACEOF
4584 rm -f conftest.$ac_objext
4585 if { (ac_try="$ac_compile"
4586 case "(($ac_try" in
4587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588   *) ac_try_echo=$ac_try;;
4589 esac
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591   (eval "$ac_compile") 2>conftest.er1
4592   ac_status=$?
4593   grep -v '^ *+' conftest.er1 >conftest.err
4594   rm -f conftest.er1
4595   cat conftest.err >&5
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); } && {
4598          test -z "$ac_c_werror_flag" ||
4599          test ! -s conftest.err
4600        } && test -s conftest.$ac_objext; then
4601   ac_compiler_gnu=yes
4602 else
4603   echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606         ac_compiler_gnu=no
4607 fi
4608
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4611
4612 fi
4613 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4614 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4615 GCC=`test $ac_compiler_gnu = yes && echo yes`
4616 ac_test_CFLAGS=${CFLAGS+set}
4617 ac_save_CFLAGS=$CFLAGS
4618 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4619 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_cc_g+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   ac_save_c_werror_flag=$ac_c_werror_flag
4624    ac_c_werror_flag=yes
4625    ac_cv_prog_cc_g=no
4626    CFLAGS="-g"
4627    cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633
4634 int
4635 main ()
4636 {
4637
4638   ;
4639   return 0;
4640 }
4641 _ACEOF
4642 rm -f conftest.$ac_objext
4643 if { (ac_try="$ac_compile"
4644 case "(($ac_try" in
4645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646   *) ac_try_echo=$ac_try;;
4647 esac
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649   (eval "$ac_compile") 2>conftest.er1
4650   ac_status=$?
4651   grep -v '^ *+' conftest.er1 >conftest.err
4652   rm -f conftest.er1
4653   cat conftest.err >&5
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } && {
4656          test -z "$ac_c_werror_flag" ||
4657          test ! -s conftest.err
4658        } && test -s conftest.$ac_objext; then
4659   ac_cv_prog_cc_g=yes
4660 else
4661   echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664         CFLAGS=""
4665       cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h.  */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h.  */
4671
4672 int
4673 main ()
4674 {
4675
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
4680 rm -f conftest.$ac_objext
4681 if { (ac_try="$ac_compile"
4682 case "(($ac_try" in
4683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684   *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687   (eval "$ac_compile") 2>conftest.er1
4688   ac_status=$?
4689   grep -v '^ *+' conftest.er1 >conftest.err
4690   rm -f conftest.er1
4691   cat conftest.err >&5
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); } && {
4694          test -z "$ac_c_werror_flag" ||
4695          test ! -s conftest.err
4696        } && test -s conftest.$ac_objext; then
4697   :
4698 else
4699   echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702         ac_c_werror_flag=$ac_save_c_werror_flag
4703          CFLAGS="-g"
4704          cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710
4711 int
4712 main ()
4713 {
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (ac_try="$ac_compile"
4721 case "(($ac_try" in
4722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723   *) ac_try_echo=$ac_try;;
4724 esac
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726   (eval "$ac_compile") 2>conftest.er1
4727   ac_status=$?
4728   grep -v '^ *+' conftest.er1 >conftest.err
4729   rm -f conftest.er1
4730   cat conftest.err >&5
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); } && {
4733          test -z "$ac_c_werror_flag" ||
4734          test ! -s conftest.err
4735        } && test -s conftest.$ac_objext; then
4736   ac_cv_prog_cc_g=yes
4737 else
4738   echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741
4742 fi
4743
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 fi
4746
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 fi
4749
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751    ac_c_werror_flag=$ac_save_c_werror_flag
4752 fi
4753 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4754 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4755 if test "$ac_test_CFLAGS" = set; then
4756   CFLAGS=$ac_save_CFLAGS
4757 elif test $ac_cv_prog_cc_g = yes; then
4758   if test "$GCC" = yes; then
4759     CFLAGS="-g -O2"
4760   else
4761     CFLAGS="-g"
4762   fi
4763 else
4764   if test "$GCC" = yes; then
4765     CFLAGS="-O2"
4766   else
4767     CFLAGS=
4768   fi
4769 fi
4770 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4771 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_cc_c89+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   ac_cv_prog_cc_c89=no
4776 ac_save_CC=$CC
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h.  */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h.  */
4783 #include <stdarg.h>
4784 #include <stdio.h>
4785 #include <sys/types.h>
4786 #include <sys/stat.h>
4787 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4788 struct buf { int x; };
4789 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4790 static char *e (p, i)
4791      char **p;
4792      int i;
4793 {
4794   return p[i];
4795 }
4796 static char *f (char * (*g) (char **, int), char **p, ...)
4797 {
4798   char *s;
4799   va_list v;
4800   va_start (v,p);
4801   s = g (p, va_arg (v,int));
4802   va_end (v);
4803   return s;
4804 }
4805
4806 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4807    function prototypes and stuff, but not '\xHH' hex character constants.
4808    These don't provoke an error unfortunately, instead are silently treated
4809    as 'x'.  The following induces an error, until -std is added to get
4810    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4811    array size at least.  It's necessary to write '\x00'==0 to get something
4812    that's true only with -std.  */
4813 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4814
4815 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4816    inside strings and character constants.  */
4817 #define FOO(x) 'x'
4818 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4819
4820 int test (int i, double x);
4821 struct s1 {int (*f) (int a);};
4822 struct s2 {int (*f) (double a);};
4823 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4824 int argc;
4825 char **argv;
4826 int
4827 main ()
4828 {
4829 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4830   ;
4831   return 0;
4832 }
4833 _ACEOF
4834 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4835         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4836 do
4837   CC="$ac_save_CC $ac_arg"
4838   rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4840 case "(($ac_try" in
4841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842   *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845   (eval "$ac_compile") 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } && {
4852          test -z "$ac_c_werror_flag" ||
4853          test ! -s conftest.err
4854        } && test -s conftest.$ac_objext; then
4855   ac_cv_prog_cc_c89=$ac_arg
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860
4861 fi
4862
4863 rm -f core conftest.err conftest.$ac_objext
4864   test "x$ac_cv_prog_cc_c89" != "xno" && break
4865 done
4866 rm -f conftest.$ac_ext
4867 CC=$ac_save_CC
4868
4869 fi
4870 # AC_CACHE_VAL
4871 case "x$ac_cv_prog_cc_c89" in
4872   x)
4873     { echo "$as_me:$LINENO: result: none needed" >&5
4874 echo "${ECHO_T}none needed" >&6; } ;;
4875   xno)
4876     { echo "$as_me:$LINENO: result: unsupported" >&5
4877 echo "${ECHO_T}unsupported" >&6; } ;;
4878   *)
4879     CC="$CC $ac_cv_prog_cc_c89"
4880     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4881 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4882 esac
4883
4884
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890
4891
4892 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4893 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4894 if test "${ac_cv_search_strerror+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   ac_func_search_save_LIBS=$LIBS
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904
4905 /* Override any GCC internal prototype to avoid an error.
4906    Use char because int might match the return type of a GCC
4907    builtin and then its argument prototype would still apply.  */
4908 #ifdef __cplusplus
4909 extern "C"
4910 #endif
4911 char strerror ();
4912 int
4913 main ()
4914 {
4915 return strerror ();
4916   ;
4917   return 0;
4918 }
4919 _ACEOF
4920 for ac_lib in '' cposix; do
4921   if test -z "$ac_lib"; then
4922     ac_res="none required"
4923   else
4924     ac_res=-l$ac_lib
4925     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4926   fi
4927   rm -f conftest.$ac_objext conftest$ac_exeext
4928 if { (ac_try="$ac_link"
4929 case "(($ac_try" in
4930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931   *) ac_try_echo=$ac_try;;
4932 esac
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934   (eval "$ac_link") 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } && {
4941          test -z "$ac_c_werror_flag" ||
4942          test ! -s conftest.err
4943        } && test -s conftest$ac_exeext &&
4944        $as_test_x conftest$ac_exeext; then
4945   ac_cv_search_strerror=$ac_res
4946 else
4947   echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950
4951 fi
4952
4953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4954       conftest$ac_exeext
4955   if test "${ac_cv_search_strerror+set}" = set; then
4956   break
4957 fi
4958 done
4959 if test "${ac_cv_search_strerror+set}" = set; then
4960   :
4961 else
4962   ac_cv_search_strerror=no
4963 fi
4964 rm conftest.$ac_ext
4965 LIBS=$ac_func_search_save_LIBS
4966 fi
4967 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4968 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4969 ac_res=$ac_cv_search_strerror
4970 if test "$ac_res" != no; then
4971   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4972
4973 fi
4974
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4981 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4982 # On Suns, sometimes $CPP names a directory.
4983 if test -n "$CPP" && test -d "$CPP"; then
4984   CPP=
4985 fi
4986 if test -z "$CPP"; then
4987   if test "${ac_cv_prog_CPP+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990       # Double quotes because CPP needs to be expanded
4991     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4992     do
4993       ac_preproc_ok=false
4994 for ac_c_preproc_warn_flag in '' yes
4995 do
4996   # Use a header file that comes with gcc, so configuring glibc
4997   # with a fresh cross-compiler works.
4998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4999   # <limits.h> exists even on freestanding compilers.
5000   # On the NeXT, cc -E runs the code through the compiler's parser,
5001   # not just through cpp. "Syntax error" is here to catch this case.
5002   cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h.  */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h.  */
5008 #ifdef __STDC__
5009 # include <limits.h>
5010 #else
5011 # include <assert.h>
5012 #endif
5013                      Syntax error
5014 _ACEOF
5015 if { (ac_try="$ac_cpp conftest.$ac_ext"
5016 case "(($ac_try" in
5017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018   *) ac_try_echo=$ac_try;;
5019 esac
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5022   ac_status=$?
5023   grep -v '^ *+' conftest.er1 >conftest.err
5024   rm -f conftest.er1
5025   cat conftest.err >&5
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); } >/dev/null && {
5028          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5029          test ! -s conftest.err
5030        }; then
5031   :
5032 else
5033   echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5035
5036   # Broken: fails on valid input.
5037 continue
5038 fi
5039
5040 rm -f conftest.err conftest.$ac_ext
5041
5042   # OK, works on sane cases.  Now check whether nonexistent headers
5043   # can be detected and how.
5044   cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h.  */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h.  */
5050 #include <ac_nonexistent.h>
5051 _ACEOF
5052 if { (ac_try="$ac_cpp conftest.$ac_ext"
5053 case "(($ac_try" in
5054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055   *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5059   ac_status=$?
5060   grep -v '^ *+' conftest.er1 >conftest.err
5061   rm -f conftest.er1
5062   cat conftest.err >&5
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } >/dev/null && {
5065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5066          test ! -s conftest.err
5067        }; then
5068   # Broken: success on invalid input.
5069 continue
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074   # Passes both tests.
5075 ac_preproc_ok=:
5076 break
5077 fi
5078
5079 rm -f conftest.err conftest.$ac_ext
5080
5081 done
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.$ac_ext
5084 if $ac_preproc_ok; then
5085   break
5086 fi
5087
5088     done
5089     ac_cv_prog_CPP=$CPP
5090
5091 fi
5092   CPP=$ac_cv_prog_CPP
5093 else
5094   ac_cv_prog_CPP=$CPP
5095 fi
5096 { echo "$as_me:$LINENO: result: $CPP" >&5
5097 echo "${ECHO_T}$CPP" >&6; }
5098 ac_preproc_ok=false
5099 for ac_c_preproc_warn_flag in '' yes
5100 do
5101   # Use a header file that comes with gcc, so configuring glibc
5102   # with a fresh cross-compiler works.
5103   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5104   # <limits.h> exists even on freestanding compilers.
5105   # On the NeXT, cc -E runs the code through the compiler's parser,
5106   # not just through cpp. "Syntax error" is here to catch this case.
5107   cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 #ifdef __STDC__
5114 # include <limits.h>
5115 #else
5116 # include <assert.h>
5117 #endif
5118                      Syntax error
5119 _ACEOF
5120 if { (ac_try="$ac_cpp conftest.$ac_ext"
5121 case "(($ac_try" in
5122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123   *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5127   ac_status=$?
5128   grep -v '^ *+' conftest.er1 >conftest.err
5129   rm -f conftest.er1
5130   cat conftest.err >&5
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); } >/dev/null && {
5133          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5134          test ! -s conftest.err
5135        }; then
5136   :
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141   # Broken: fails on valid input.
5142 continue
5143 fi
5144
5145 rm -f conftest.err conftest.$ac_ext
5146
5147   # OK, works on sane cases.  Now check whether nonexistent headers
5148   # can be detected and how.
5149   cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 #include <ac_nonexistent.h>
5156 _ACEOF
5157 if { (ac_try="$ac_cpp conftest.$ac_ext"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } >/dev/null && {
5170          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5171          test ! -s conftest.err
5172        }; then
5173   # Broken: success on invalid input.
5174 continue
5175 else
5176   echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179   # Passes both tests.
5180 ac_preproc_ok=:
5181 break
5182 fi
5183
5184 rm -f conftest.err conftest.$ac_ext
5185
5186 done
5187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188 rm -f conftest.err conftest.$ac_ext
5189 if $ac_preproc_ok; then
5190   :
5191 else
5192   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5193 See \`config.log' for more details." >&5
5194 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5195 See \`config.log' for more details." >&2;}
5196    { (exit 1); exit 1; }; }
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
5205
5206 ac_aux_dir=
5207 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5208   if test -f "$ac_dir/install-sh"; then
5209     ac_aux_dir=$ac_dir
5210     ac_install_sh="$ac_aux_dir/install-sh -c"
5211     break
5212   elif test -f "$ac_dir/install.sh"; then
5213     ac_aux_dir=$ac_dir
5214     ac_install_sh="$ac_aux_dir/install.sh -c"
5215     break
5216   elif test -f "$ac_dir/shtool"; then
5217     ac_aux_dir=$ac_dir
5218     ac_install_sh="$ac_aux_dir/shtool install -c"
5219     break
5220   fi
5221 done
5222 if test -z "$ac_aux_dir"; then
5223   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5224 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5225    { (exit 1); exit 1; }; }
5226 fi
5227
5228 # These three variables are undocumented and unsupported,
5229 # and are intended to be withdrawn in a future Autoconf release.
5230 # They can cause serious problems if a builder's source tree is in a directory
5231 # whose full name contains unusual characters.
5232 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5233 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5234 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5235
5236
5237 # Make sure we can run config.sub.
5238 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5239   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5240 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5241    { (exit 1); exit 1; }; }
5242
5243 { echo "$as_me:$LINENO: checking build system type" >&5
5244 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5245 if test "${ac_cv_build+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   ac_build_alias=$build_alias
5249 test "x$ac_build_alias" = x &&
5250   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5251 test "x$ac_build_alias" = x &&
5252   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5253 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5254    { (exit 1); exit 1; }; }
5255 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5256   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5257 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5258    { (exit 1); exit 1; }; }
5259
5260 fi
5261 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5262 echo "${ECHO_T}$ac_cv_build" >&6; }
5263 case $ac_cv_build in
5264 *-*-*) ;;
5265 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5266 echo "$as_me: error: invalid value of canonical build" >&2;}
5267    { (exit 1); exit 1; }; };;
5268 esac
5269 build=$ac_cv_build
5270 ac_save_IFS=$IFS; IFS='-'
5271 set x $ac_cv_build
5272 shift
5273 build_cpu=$1
5274 build_vendor=$2
5275 shift; shift
5276 # Remember, the first character of IFS is used to create $*,
5277 # except with old shells:
5278 build_os=$*
5279 IFS=$ac_save_IFS
5280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5281
5282
5283 { echo "$as_me:$LINENO: checking host system type" >&5
5284 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5285 if test "${ac_cv_host+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288   if test "x$host_alias" = x; then
5289   ac_cv_host=$ac_cv_build
5290 else
5291   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5292     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5293 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5294    { (exit 1); exit 1; }; }
5295 fi
5296
5297 fi
5298 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5299 echo "${ECHO_T}$ac_cv_host" >&6; }
5300 case $ac_cv_host in
5301 *-*-*) ;;
5302 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5303 echo "$as_me: error: invalid value of canonical host" >&2;}
5304    { (exit 1); exit 1; }; };;
5305 esac
5306 host=$ac_cv_host
5307 ac_save_IFS=$IFS; IFS='-'
5308 set x $ac_cv_host
5309 shift
5310 host_cpu=$1
5311 host_vendor=$2
5312 shift; shift
5313 # Remember, the first character of IFS is used to create $*,
5314 # except with old shells:
5315 host_os=$*
5316 IFS=$ac_save_IFS
5317 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5318
5319
5320 { echo "$as_me:$LINENO: checking target system type" >&5
5321 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
5322 if test "${ac_cv_target+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   if test "x$target_alias" = x; then
5326   ac_cv_target=$ac_cv_host
5327 else
5328   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5329     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
5330 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
5331    { (exit 1); exit 1; }; }
5332 fi
5333
5334 fi
5335 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5336 echo "${ECHO_T}$ac_cv_target" >&6; }
5337 case $ac_cv_target in
5338 *-*-*) ;;
5339 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
5340 echo "$as_me: error: invalid value of canonical target" >&2;}
5341    { (exit 1); exit 1; }; };;
5342 esac
5343 target=$ac_cv_target
5344 ac_save_IFS=$IFS; IFS='-'
5345 set x $ac_cv_target
5346 shift
5347 target_cpu=$1
5348 target_vendor=$2
5349 shift; shift
5350 # Remember, the first character of IFS is used to create $*,
5351 # except with old shells:
5352 target_os=$*
5353 IFS=$ac_save_IFS
5354 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5355
5356
5357 # The aliases save the names the user supplied, while $host etc.
5358 # will get canonicalized.
5359 test -n "$target_alias" &&
5360   test "$program_prefix$program_suffix$program_transform_name" = \
5361     NONENONEs,x,x, &&
5362   program_prefix=${target_alias}-
5363 # Check whether --enable-static was given.
5364 if test "${enable_static+set}" = set; then
5365   enableval=$enable_static; p=${PACKAGE-default}
5366     case $enableval in
5367     yes) enable_static=yes ;;
5368     no) enable_static=no ;;
5369     *)
5370      enable_static=no
5371       # Look at the argument we got.  We use all the common list separators.
5372       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5373       for pkg in $enableval; do
5374         IFS="$lt_save_ifs"
5375         if test "X$pkg" = "X$p"; then
5376           enable_static=yes
5377         fi
5378       done
5379       IFS="$lt_save_ifs"
5380       ;;
5381     esac
5382 else
5383   enable_static=no
5384 fi
5385
5386
5387
5388 # Check whether --enable-shared was given.
5389 if test "${enable_shared+set}" = set; then
5390   enableval=$enable_shared; p=${PACKAGE-default}
5391     case $enableval in
5392     yes) enable_shared=yes ;;
5393     no) enable_shared=no ;;
5394     *)
5395       enable_shared=no
5396       # Look at the argument we got.  We use all the common list separators.
5397       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5398       for pkg in $enableval; do
5399         IFS="$lt_save_ifs"
5400         if test "X$pkg" = "X$p"; then
5401           enable_shared=yes
5402         fi
5403       done
5404       IFS="$lt_save_ifs"
5405       ;;
5406     esac
5407 else
5408   enable_shared=yes
5409 fi
5410
5411
5412 # Check whether --enable-fast-install was given.
5413 if test "${enable_fast_install+set}" = set; then
5414   enableval=$enable_fast_install; p=${PACKAGE-default}
5415     case $enableval in
5416     yes) enable_fast_install=yes ;;
5417     no) enable_fast_install=no ;;
5418     *)
5419       enable_fast_install=no
5420       # Look at the argument we got.  We use all the common list separators.
5421       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5422       for pkg in $enableval; do
5423         IFS="$lt_save_ifs"
5424         if test "X$pkg" = "X$p"; then
5425           enable_fast_install=yes
5426         fi
5427       done
5428       IFS="$lt_save_ifs"
5429       ;;
5430     esac
5431 else
5432   enable_fast_install=yes
5433 fi
5434
5435
5436 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5437 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5438 if test "${lt_cv_path_SED+set}" = set; then
5439   echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441   # Loop through the user's path and test for sed and gsed.
5442 # Then use that list of sed's as ones to test for truncation.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448   for lt_ac_prog in sed gsed; do
5449     for ac_exec_ext in '' $ac_executable_extensions; do
5450       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5451         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5452       fi
5453     done
5454   done
5455 done
5456 IFS=$as_save_IFS
5457 lt_ac_max=0
5458 lt_ac_count=0
5459 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5460 # along with /bin/sed that truncates output.
5461 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5462   test ! -f $lt_ac_sed && continue
5463   cat /dev/null > conftest.in
5464   lt_ac_count=0
5465   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5466   # Check for GNU sed and select it if it is found.
5467   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5468     lt_cv_path_SED=$lt_ac_sed
5469     break
5470   fi
5471   while true; do
5472     cat conftest.in conftest.in >conftest.tmp
5473     mv conftest.tmp conftest.in
5474     cp conftest.in conftest.nl
5475     echo >>conftest.nl
5476     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5477     cmp -s conftest.out conftest.nl || break
5478     # 10000 chars as input seems more than enough
5479     test $lt_ac_count -gt 10 && break
5480     lt_ac_count=`expr $lt_ac_count + 1`
5481     if test $lt_ac_count -gt $lt_ac_max; then
5482       lt_ac_max=$lt_ac_count
5483       lt_cv_path_SED=$lt_ac_sed
5484     fi
5485   done
5486 done
5487
5488 fi
5489
5490 SED=$lt_cv_path_SED
5491
5492 { echo "$as_me:$LINENO: result: $SED" >&5
5493 echo "${ECHO_T}$SED" >&6; }
5494
5495 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5496 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5497 if test "${ac_cv_path_GREP+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   # Extract the first word of "grep ggrep" to use in msg output
5501 if test -z "$GREP"; then
5502 set dummy grep ggrep; ac_prog_name=$2
5503 if test "${ac_cv_path_GREP+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506   ac_path_GREP_found=false
5507 # Loop through the user's path and test for each of PROGNAME-LIST
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5510 do
5511   IFS=$as_save_IFS
5512   test -z "$as_dir" && as_dir=.
5513   for ac_prog in grep ggrep; do
5514   for ac_exec_ext in '' $ac_executable_extensions; do
5515     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5516     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5517     # Check for GNU ac_path_GREP and select it if it is found.
5518   # Check for GNU $ac_path_GREP
5519 case `"$ac_path_GREP" --version 2>&1` in
5520 *GNU*)
5521   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5522 *)
5523   ac_count=0
5524   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5525   while :
5526   do
5527     cat "conftest.in" "conftest.in" >"conftest.tmp"
5528     mv "conftest.tmp" "conftest.in"
5529     cp "conftest.in" "conftest.nl"
5530     echo 'GREP' >> "conftest.nl"
5531     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5532     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5533     ac_count=`expr $ac_count + 1`
5534     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5535       # Best one so far, save it but keep looking for a better one
5536       ac_cv_path_GREP="$ac_path_GREP"
5537       ac_path_GREP_max=$ac_count
5538     fi
5539     # 10*(2^10) chars as input seems more than enough
5540     test $ac_count -gt 10 && break
5541   done
5542   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5543 esac
5544
5545
5546     $ac_path_GREP_found && break 3
5547   done
5548 done
5549
5550 done
5551 IFS=$as_save_IFS
5552
5553
5554 fi
5555
5556 GREP="$ac_cv_path_GREP"
5557 if test -z "$GREP"; then
5558   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5559 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5560    { (exit 1); exit 1; }; }
5561 fi
5562
5563 else
5564   ac_cv_path_GREP=$GREP
5565 fi
5566
5567
5568 fi
5569 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5570 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5571  GREP="$ac_cv_path_GREP"
5572
5573
5574 { echo "$as_me:$LINENO: checking for egrep" >&5
5575 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5576 if test "${ac_cv_path_EGREP+set}" = set; then
5577   echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5580    then ac_cv_path_EGREP="$GREP -E"
5581    else
5582      # Extract the first word of "egrep" to use in msg output
5583 if test -z "$EGREP"; then
5584 set dummy egrep; ac_prog_name=$2
5585 if test "${ac_cv_path_EGREP+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   ac_path_EGREP_found=false
5589 # Loop through the user's path and test for each of PROGNAME-LIST
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5592 do
5593   IFS=$as_save_IFS
5594   test -z "$as_dir" && as_dir=.
5595   for ac_prog in egrep; do
5596   for ac_exec_ext in '' $ac_executable_extensions; do
5597     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5598     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5599     # Check for GNU ac_path_EGREP and select it if it is found.
5600   # Check for GNU $ac_path_EGREP
5601 case `"$ac_path_EGREP" --version 2>&1` in
5602 *GNU*)
5603   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5604 *)
5605   ac_count=0
5606   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5607   while :
5608   do
5609     cat "conftest.in" "conftest.in" >"conftest.tmp"
5610     mv "conftest.tmp" "conftest.in"
5611     cp "conftest.in" "conftest.nl"
5612     echo 'EGREP' >> "conftest.nl"
5613     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5614     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5615     ac_count=`expr $ac_count + 1`
5616     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5617       # Best one so far, save it but keep looking for a better one
5618       ac_cv_path_EGREP="$ac_path_EGREP"
5619       ac_path_EGREP_max=$ac_count
5620     fi
5621     # 10*(2^10) chars as input seems more than enough
5622     test $ac_count -gt 10 && break
5623   done
5624   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5625 esac
5626
5627
5628     $ac_path_EGREP_found && break 3
5629   done
5630 done
5631
5632 done
5633 IFS=$as_save_IFS
5634
5635
5636 fi
5637
5638 EGREP="$ac_cv_path_EGREP"
5639 if test -z "$EGREP"; then
5640   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5641 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5642    { (exit 1); exit 1; }; }
5643 fi
5644
5645 else
5646   ac_cv_path_EGREP=$EGREP
5647 fi
5648
5649
5650    fi
5651 fi
5652 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5653 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5654  EGREP="$ac_cv_path_EGREP"
5655
5656
5657
5658 # Check whether --with-gnu-ld was given.
5659 if test "${with_gnu_ld+set}" = set; then
5660   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5661 else
5662   with_gnu_ld=no
5663 fi
5664
5665 ac_prog=ld
5666 if test "$GCC" = yes; then
5667   # Check if gcc -print-prog-name=ld gives a path.
5668   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5669 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5670   case $host in
5671   *-*-mingw*)
5672     # gcc leaves a trailing carriage return which upsets mingw
5673     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5674   *)
5675     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5676   esac
5677   case $ac_prog in
5678     # Accept absolute paths.
5679     [\\/]* | ?:[\\/]*)
5680       re_direlt='/[^/][^/]*/\.\./'
5681       # Canonicalize the pathname of ld
5682       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5683       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5684         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5685       done
5686       test -z "$LD" && LD="$ac_prog"
5687       ;;
5688   "")
5689     # If it fails, then pretend we aren't using GCC.
5690     ac_prog=ld
5691     ;;
5692   *)
5693     # If it is relative, then search for the first ld in PATH.
5694     with_gnu_ld=unknown
5695     ;;
5696   esac
5697 elif test "$with_gnu_ld" = yes; then
5698   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5699 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5700 else
5701   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5702 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5703 fi
5704 if test "${lt_cv_path_LD+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   if test -z "$LD"; then
5708   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709   for ac_dir in $PATH; do
5710     IFS="$lt_save_ifs"
5711     test -z "$ac_dir" && ac_dir=.
5712     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5713       lt_cv_path_LD="$ac_dir/$ac_prog"
5714       # Check to see if the program is GNU ld.  I'd rather use --version,
5715       # but apparently some variants of GNU ld only accept -v.
5716       # Break only if it was the GNU/non-GNU ld that we prefer.
5717       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5718       *GNU* | *'with BFD'*)
5719         test "$with_gnu_ld" != no && break
5720         ;;
5721       *)
5722         test "$with_gnu_ld" != yes && break
5723         ;;
5724       esac
5725     fi
5726   done
5727   IFS="$lt_save_ifs"
5728 else
5729   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5730 fi
5731 fi
5732
5733 LD="$lt_cv_path_LD"
5734 if test -n "$LD"; then
5735   { echo "$as_me:$LINENO: result: $LD" >&5
5736 echo "${ECHO_T}$LD" >&6; }
5737 else
5738   { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5740 fi
5741 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5742 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5743    { (exit 1); exit 1; }; }
5744 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5745 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5746 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5750 case `$LD -v 2>&1 </dev/null` in
5751 *GNU* | *'with BFD'*)
5752   lt_cv_prog_gnu_ld=yes
5753   ;;
5754 *)
5755   lt_cv_prog_gnu_ld=no
5756   ;;
5757 esac
5758 fi
5759 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5760 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5761 with_gnu_ld=$lt_cv_prog_gnu_ld
5762
5763
5764 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5765 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5766 if test "${lt_cv_ld_reload_flag+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   lt_cv_ld_reload_flag='-r'
5770 fi
5771 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5772 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5773 reload_flag=$lt_cv_ld_reload_flag
5774 case $reload_flag in
5775 "" | " "*) ;;
5776 *) reload_flag=" $reload_flag" ;;
5777 esac
5778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5779 case $host_os in
5780   darwin*)
5781     if test "$GCC" = yes; then
5782       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5783     else
5784       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5785     fi
5786     ;;
5787 esac
5788
5789 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5790 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5791 if test "${lt_cv_path_NM+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   if test -n "$NM"; then
5795   # Let the user override the test.
5796   lt_cv_path_NM="$NM"
5797 else
5798   lt_nm_to_check="${ac_tool_prefix}nm"
5799   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5800     lt_nm_to_check="$lt_nm_to_check nm"
5801   fi
5802   for lt_tmp_nm in $lt_nm_to_check; do
5803     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5804     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5805       IFS="$lt_save_ifs"
5806       test -z "$ac_dir" && ac_dir=.
5807       tmp_nm="$ac_dir/$lt_tmp_nm"
5808       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5809         # Check to see if the nm accepts a BSD-compat flag.
5810         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5811         #   nm: unknown option "B" ignored
5812         # Tru64's nm complains that /dev/null is an invalid object file
5813         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5814         */dev/null* | *'Invalid file or object type'*)
5815           lt_cv_path_NM="$tmp_nm -B"
5816           break
5817           ;;
5818         *)
5819           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5820           */dev/null*)
5821             lt_cv_path_NM="$tmp_nm -p"
5822             break
5823             ;;
5824           *)
5825             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5826             continue # so that we can try to find one that supports BSD flags
5827             ;;
5828           esac
5829           ;;
5830         esac
5831       fi
5832     done
5833     IFS="$lt_save_ifs"
5834   done
5835   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5836 fi
5837 fi
5838 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5839 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5840 NM="$lt_cv_path_NM"
5841
5842 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5843 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5844 LN_S=$as_ln_s
5845 if test "$LN_S" = "ln -s"; then
5846   { echo "$as_me:$LINENO: result: yes" >&5
5847 echo "${ECHO_T}yes" >&6; }
5848 else
5849   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5850 echo "${ECHO_T}no, using $LN_S" >&6; }
5851 fi
5852
5853 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5854 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5855 if test "${lt_cv_deplibs_check_method+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858   lt_cv_file_magic_cmd='$MAGIC_CMD'
5859 lt_cv_file_magic_test_file=
5860 lt_cv_deplibs_check_method='unknown'
5861 # Need to set the preceding variable on all platforms that support
5862 # interlibrary dependencies.
5863 # 'none' -- dependencies not supported.
5864 # `unknown' -- same as none, but documents that we really don't know.
5865 # 'pass_all' -- all dependencies passed with no checks.
5866 # 'test_compile' -- check by making test program.
5867 # 'file_magic [[regex]]' -- check by looking for files in library path
5868 # which responds to the $file_magic_cmd with a given extended regex.
5869 # If you have `file' or equivalent on your system and you're not sure
5870 # whether `pass_all' will *always* work, you probably want this one.
5871
5872 case $host_os in
5873 aix4* | aix5*)
5874   lt_cv_deplibs_check_method=pass_all
5875   ;;
5876
5877 beos*)
5878   lt_cv_deplibs_check_method=pass_all
5879   ;;
5880
5881 bsdi[45]*)
5882   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5883   lt_cv_file_magic_cmd='/usr/bin/file -L'
5884   lt_cv_file_magic_test_file=/shlib/libc.so
5885   ;;
5886
5887 cygwin*)
5888   # func_win32_libid is a shell function defined in ltmain.sh
5889   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5890   lt_cv_file_magic_cmd='func_win32_libid'
5891   ;;
5892
5893 mingw* | pw32*)
5894   # Base MSYS/MinGW do not provide the 'file' command needed by
5895   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5896   # unless we find 'file', for example because we are cross-compiling.
5897   if ( file / ) >/dev/null 2>&1; then
5898     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5899     lt_cv_file_magic_cmd='func_win32_libid'
5900   else
5901     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5902     lt_cv_file_magic_cmd='$OBJDUMP -f'
5903   fi
5904   ;;
5905
5906 darwin* | rhapsody*)
5907   lt_cv_deplibs_check_method=pass_all
5908   ;;
5909
5910 freebsd* | dragonfly*)
5911   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5912     case $host_cpu in
5913     i*86 )
5914       # Not sure whether the presence of OpenBSD here was a mistake.
5915       # Let's accept both of them until this is cleared up.
5916       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5917       lt_cv_file_magic_cmd=/usr/bin/file
5918       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5919       ;;
5920     esac
5921   else
5922     lt_cv_deplibs_check_method=pass_all
5923   fi
5924   ;;
5925
5926 gnu*)
5927   lt_cv_deplibs_check_method=pass_all
5928   ;;
5929
5930 hpux10.20* | hpux11*)
5931   lt_cv_file_magic_cmd=/usr/bin/file
5932   case $host_cpu in
5933   ia64*)
5934     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5935     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5936     ;;
5937   hppa*64*)
5938     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]'
5939     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5940     ;;
5941   *)
5942     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5943     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5944     ;;
5945   esac
5946   ;;
5947
5948 interix[3-9]*)
5949   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5950   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5951   ;;
5952
5953 irix5* | irix6* | nonstopux*)
5954   case $LD in
5955   *-32|*"-32 ") libmagic=32-bit;;
5956   *-n32|*"-n32 ") libmagic=N32;;
5957   *-64|*"-64 ") libmagic=64-bit;;
5958   *) libmagic=never-match;;
5959   esac
5960   lt_cv_deplibs_check_method=pass_all
5961   ;;
5962
5963 # This must be Linux ELF.
5964 linux* | k*bsd*-gnu)
5965   lt_cv_deplibs_check_method=pass_all
5966   ;;
5967
5968 netbsd*)
5969   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5970     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5971   else
5972     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5973   fi
5974   ;;
5975
5976 newos6*)
5977   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5978   lt_cv_file_magic_cmd=/usr/bin/file
5979   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5980   ;;
5981
5982 nto-qnx*)
5983   lt_cv_deplibs_check_method=unknown
5984   ;;
5985
5986 openbsd*)
5987   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5988     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5989   else
5990     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5991   fi
5992   ;;
5993
5994 osf3* | osf4* | osf5*)
5995   lt_cv_deplibs_check_method=pass_all
5996   ;;
5997
5998 rdos*)
5999   lt_cv_deplibs_check_method=pass_all
6000   ;;
6001
6002 solaris*)
6003   lt_cv_deplibs_check_method=pass_all
6004   ;;
6005
6006 sysv4 | sysv4.3*)
6007   case $host_vendor in
6008   motorola)
6009     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]'
6010     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6011     ;;
6012   ncr)
6013     lt_cv_deplibs_check_method=pass_all
6014     ;;
6015   sequent)
6016     lt_cv_file_magic_cmd='/bin/file'
6017     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6018     ;;
6019   sni)
6020     lt_cv_file_magic_cmd='/bin/file'
6021     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6022     lt_cv_file_magic_test_file=/lib/libc.so
6023     ;;
6024   siemens)
6025     lt_cv_deplibs_check_method=pass_all
6026     ;;
6027   pc)
6028     lt_cv_deplibs_check_method=pass_all
6029     ;;
6030   esac
6031   ;;
6032
6033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6034   lt_cv_deplibs_check_method=pass_all
6035   ;;
6036 esac
6037
6038 fi
6039 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6040 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6041 file_magic_cmd=$lt_cv_file_magic_cmd
6042 deplibs_check_method=$lt_cv_deplibs_check_method
6043 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6044
6045
6046
6047
6048 # If no C compiler was specified, use CC.
6049 LTCC=${LTCC-"$CC"}
6050
6051 # If no C compiler flags were specified, use CFLAGS.
6052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6053
6054 # Allow CC to be a program name with arguments.
6055 compiler=$CC
6056
6057 # Check whether --enable-libtool-lock was given.
6058 if test "${enable_libtool_lock+set}" = set; then
6059   enableval=$enable_libtool_lock;
6060 fi
6061
6062 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6063
6064 # Some flags need to be propagated to the compiler or linker for good
6065 # libtool support.
6066 case $host in
6067 ia64-*-hpux*)
6068   # Find out which ABI we are using.
6069   echo 'int i;' > conftest.$ac_ext
6070   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071   (eval $ac_compile) 2>&5
6072   ac_status=$?
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); }; then
6075     case `/usr/bin/file conftest.$ac_objext` in
6076     *ELF-32*)
6077       HPUX_IA64_MODE="32"
6078       ;;
6079     *ELF-64*)
6080       HPUX_IA64_MODE="64"
6081       ;;
6082     esac
6083   fi
6084   rm -rf conftest*
6085   ;;
6086 *-*-irix6*)
6087   # Find out which ABI we are using.
6088   echo '#line 6088 "configure"' > conftest.$ac_ext
6089   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090   (eval $ac_compile) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; then
6094    if test "$lt_cv_prog_gnu_ld" = yes; then
6095     case `/usr/bin/file conftest.$ac_objext` in
6096     *32-bit*)
6097       LD="${LD-ld} -melf32bsmip"
6098       ;;
6099     *N32*)
6100       LD="${LD-ld} -melf32bmipn32"
6101       ;;
6102     *64-bit*)
6103       LD="${LD-ld} -melf64bmip"
6104       ;;
6105     esac
6106    else
6107     case `/usr/bin/file conftest.$ac_objext` in
6108     *32-bit*)
6109       LD="${LD-ld} -32"
6110       ;;
6111     *N32*)
6112       LD="${LD-ld} -n32"
6113       ;;
6114     *64-bit*)
6115       LD="${LD-ld} -64"
6116       ;;
6117     esac
6118    fi
6119   fi
6120   rm -rf conftest*
6121   ;;
6122
6123 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6124 s390*-*linux*|sparc*-*linux*)
6125   # Find out which ABI we are using.
6126   echo 'int i;' > conftest.$ac_ext
6127   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6128   (eval $ac_compile) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); }; then
6132     case `/usr/bin/file conftest.o` in
6133     *32-bit*)
6134       case $host in
6135         x86_64-*kfreebsd*-gnu)
6136           LD="${LD-ld} -m elf_i386_fbsd"
6137           ;;
6138         x86_64-*linux*)
6139           LD="${LD-ld} -m elf_i386"
6140           ;;
6141         ppc64-*linux*|powerpc64-*linux*)
6142           LD="${LD-ld} -m elf32ppclinux"
6143           ;;
6144         s390x-*linux*)
6145           LD="${LD-ld} -m elf_s390"
6146           ;;
6147         sparc64-*linux*)
6148           LD="${LD-ld} -m elf32_sparc"
6149           ;;
6150       esac
6151       ;;
6152     *64-bit*)
6153       case $host in
6154         x86_64-*kfreebsd*-gnu)
6155           LD="${LD-ld} -m elf_x86_64_fbsd"
6156           ;;
6157         x86_64-*linux*)
6158           LD="${LD-ld} -m elf_x86_64"
6159           ;;
6160         ppc*-*linux*|powerpc*-*linux*)
6161           LD="${LD-ld} -m elf64ppc"
6162           ;;
6163         s390*-*linux*)
6164           LD="${LD-ld} -m elf64_s390"
6165           ;;
6166         sparc*-*linux*)
6167           LD="${LD-ld} -m elf64_sparc"
6168           ;;
6169       esac
6170       ;;
6171     esac
6172   fi
6173   rm -rf conftest*
6174   ;;
6175
6176 *-*-sco3.2v5*)
6177   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6178   SAVE_CFLAGS="$CFLAGS"
6179   CFLAGS="$CFLAGS -belf"
6180   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6181 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6182 if test "${lt_cv_cc_needs_belf+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   ac_ext=c
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190
6191      cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h.  */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h.  */
6197
6198 int
6199 main ()
6200 {
6201
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (ac_try="$ac_link"
6208 case "(($ac_try" in
6209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210   *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213   (eval "$ac_link") 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } && {
6220          test -z "$ac_c_werror_flag" ||
6221          test ! -s conftest.err
6222        } && test -s conftest$ac_exeext &&
6223        $as_test_x conftest$ac_exeext; then
6224   lt_cv_cc_needs_belf=yes
6225 else
6226   echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229         lt_cv_cc_needs_belf=no
6230 fi
6231
6232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6233       conftest$ac_exeext conftest.$ac_ext
6234      ac_ext=c
6235 ac_cpp='$CPP $CPPFLAGS'
6236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239
6240 fi
6241 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6242 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6243   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6244     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6245     CFLAGS="$SAVE_CFLAGS"
6246   fi
6247   ;;
6248 sparc*-*solaris*)
6249   # Find out which ABI we are using.
6250   echo 'int i;' > conftest.$ac_ext
6251   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252   (eval $ac_compile) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); }; then
6256     case `/usr/bin/file conftest.o` in
6257     *64-bit*)
6258       case $lt_cv_prog_gnu_ld in
6259       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6260       *)    LD="${LD-ld} -64" ;;
6261       esac
6262       ;;
6263     esac
6264   fi
6265   rm -rf conftest*
6266   ;;
6267
6268
6269 esac
6270
6271 need_locks="$enable_libtool_lock"
6272
6273
6274
6275 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6276 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6277 if test "${ac_cv_header_stdc+set}" = set; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280   cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h.  */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h.  */
6286 #include <stdlib.h>
6287 #include <stdarg.h>
6288 #include <string.h>
6289 #include <float.h>
6290
6291 int
6292 main ()
6293 {
6294
6295   ;
6296   return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (ac_try="$ac_compile"
6301 case "(($ac_try" in
6302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303   *) ac_try_echo=$ac_try;;
6304 esac
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306   (eval "$ac_compile") 2>conftest.er1
6307   ac_status=$?
6308   grep -v '^ *+' conftest.er1 >conftest.err
6309   rm -f conftest.er1
6310   cat conftest.err >&5
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); } && {
6313          test -z "$ac_c_werror_flag" ||
6314          test ! -s conftest.err
6315        } && test -s conftest.$ac_objext; then
6316   ac_cv_header_stdc=yes
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321         ac_cv_header_stdc=no
6322 fi
6323
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325
6326 if test $ac_cv_header_stdc = yes; then
6327   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6328   cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334 #include <string.h>
6335
6336 _ACEOF
6337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6338   $EGREP "memchr" >/dev/null 2>&1; then
6339   :
6340 else
6341   ac_cv_header_stdc=no
6342 fi
6343 rm -f conftest*
6344
6345 fi
6346
6347 if test $ac_cv_header_stdc = yes; then
6348   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6349   cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h.  */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h.  */
6355 #include <stdlib.h>
6356
6357 _ACEOF
6358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6359   $EGREP "free" >/dev/null 2>&1; then
6360   :
6361 else
6362   ac_cv_header_stdc=no
6363 fi
6364 rm -f conftest*
6365
6366 fi
6367
6368 if test $ac_cv_header_stdc = yes; then
6369   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6370   if test "$cross_compiling" = yes; then
6371   :
6372 else
6373   cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h.  */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h.  */
6379 #include <ctype.h>
6380 #include <stdlib.h>
6381 #if ((' ' & 0x0FF) == 0x020)
6382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6384 #else
6385 # define ISLOWER(c) \
6386                    (('a' <= (c) && (c) <= 'i') \
6387                      || ('j' <= (c) && (c) <= 'r') \
6388                      || ('s' <= (c) && (c) <= 'z'))
6389 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6390 #endif
6391
6392 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6393 int
6394 main ()
6395 {
6396   int i;
6397   for (i = 0; i < 256; i++)
6398     if (XOR (islower (i), ISLOWER (i))
6399         || toupper (i) != TOUPPER (i))
6400       return 2;
6401   return 0;
6402 }
6403 _ACEOF
6404 rm -f conftest$ac_exeext
6405 if { (ac_try="$ac_link"
6406 case "(($ac_try" in
6407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408   *) ac_try_echo=$ac_try;;
6409 esac
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411   (eval "$ac_link") 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6415   { (case "(($ac_try" in
6416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417   *) ac_try_echo=$ac_try;;
6418 esac
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420   (eval "$ac_try") 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; }; then
6424   :
6425 else
6426   echo "$as_me: program exited with status $ac_status" >&5
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6429
6430 ( exit $ac_status )
6431 ac_cv_header_stdc=no
6432 fi
6433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6434 fi
6435
6436
6437 fi
6438 fi
6439 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6440 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6441 if test $ac_cv_header_stdc = yes; then
6442
6443 cat >>confdefs.h <<\_ACEOF
6444 #define STDC_HEADERS 1
6445 _ACEOF
6446
6447 fi
6448
6449 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6460                   inttypes.h stdint.h unistd.h
6461 do
6462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6466   echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468   cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474 $ac_includes_default
6475
6476 #include <$ac_header>
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6480 case "(($ac_try" in
6481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482   *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485   (eval "$ac_compile") 2>conftest.er1
6486   ac_status=$?
6487   grep -v '^ *+' conftest.er1 >conftest.err
6488   rm -f conftest.er1
6489   cat conftest.err >&5
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } && {
6492          test -z "$ac_c_werror_flag" ||
6493          test ! -s conftest.err
6494        } && test -s conftest.$ac_objext; then
6495   eval "$as_ac_Header=yes"
6496 else
6497   echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500         eval "$as_ac_Header=no"
6501 fi
6502
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 fi
6505 ac_res=`eval echo '${'$as_ac_Header'}'`
6506                { echo "$as_me:$LINENO: result: $ac_res" >&5
6507 echo "${ECHO_T}$ac_res" >&6; }
6508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6509   cat >>confdefs.h <<_ACEOF
6510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 _ACEOF
6512
6513 fi
6514
6515 done
6516
6517
6518
6519 for ac_header in dlfcn.h
6520 do
6521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6523   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 fi
6528 ac_res=`eval echo '${'$as_ac_Header'}'`
6529                { echo "$as_me:$LINENO: result: $ac_res" >&5
6530 echo "${ECHO_T}$ac_res" >&6; }
6531 else
6532   # Is the header compilable?
6533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h.  */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h.  */
6541 $ac_includes_default
6542 #include <$ac_header>
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6546 case "(($ac_try" in
6547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548   *) ac_try_echo=$ac_try;;
6549 esac
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551   (eval "$ac_compile") 2>conftest.er1
6552   ac_status=$?
6553   grep -v '^ *+' conftest.er1 >conftest.err
6554   rm -f conftest.er1
6555   cat conftest.err >&5
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); } && {
6558          test -z "$ac_c_werror_flag" ||
6559          test ! -s conftest.err
6560        } && test -s conftest.$ac_objext; then
6561   ac_header_compiler=yes
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566         ac_header_compiler=no
6567 fi
6568
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6571 echo "${ECHO_T}$ac_header_compiler" >&6; }
6572
6573 # Is the header present?
6574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h.  */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h.  */
6582 #include <$ac_header>
6583 _ACEOF
6584 if { (ac_try="$ac_cpp conftest.$ac_ext"
6585 case "(($ac_try" in
6586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587   *) ac_try_echo=$ac_try;;
6588 esac
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6591   ac_status=$?
6592   grep -v '^ *+' conftest.er1 >conftest.err
6593   rm -f conftest.er1
6594   cat conftest.err >&5
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } >/dev/null && {
6597          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6598          test ! -s conftest.err
6599        }; then
6600   ac_header_preproc=yes
6601 else
6602   echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605   ac_header_preproc=no
6606 fi
6607
6608 rm -f conftest.err conftest.$ac_ext
6609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6610 echo "${ECHO_T}$ac_header_preproc" >&6; }
6611
6612 # So?  What about this header?
6613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6614   yes:no: )
6615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6619     ac_header_preproc=yes
6620     ;;
6621   no:yes:* )
6622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6634
6635     ;;
6636 esac
6637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642   eval "$as_ac_Header=\$ac_header_preproc"
6643 fi
6644 ac_res=`eval echo '${'$as_ac_Header'}'`
6645                { echo "$as_me:$LINENO: result: $ac_res" >&5
6646 echo "${ECHO_T}$ac_res" >&6; }
6647
6648 fi
6649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6650   cat >>confdefs.h <<_ACEOF
6651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6652 _ACEOF
6653
6654 fi
6655
6656 done
6657
6658
6659 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6660
6661 # find the maximum length of command line arguments
6662 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6663 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6664 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667     i=0
6668   teststring="ABCD"
6669
6670   case $build_os in
6671   msdosdjgpp*)
6672     # On DJGPP, this test can blow up pretty badly due to problems in libc
6673     # (any single argument exceeding 2000 bytes causes a buffer overrun
6674     # during glob expansion).  Even if it were fixed, the result of this
6675     # check would be larger than it should be.
6676     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6677     ;;
6678
6679   gnu*)
6680     # Under GNU Hurd, this test is not required because there is
6681     # no limit to the length of command line arguments.
6682     # Libtool will interpret -1 as no limit whatsoever
6683     lt_cv_sys_max_cmd_len=-1;
6684     ;;
6685
6686   cygwin* | mingw*)
6687     # On Win9x/ME, this test blows up -- it succeeds, but takes
6688     # about 5 minutes as the teststring grows exponentially.
6689     # Worse, since 9x/ME are not pre-emptively multitasking,
6690     # you end up with a "frozen" computer, even though with patience
6691     # the test eventually succeeds (with a max line length of 256k).
6692     # Instead, let's just punt: use the minimum linelength reported by
6693     # all of the supported platforms: 8192 (on NT/2K/XP).
6694     lt_cv_sys_max_cmd_len=8192;
6695     ;;
6696
6697   amigaos*)
6698     # On AmigaOS with pdksh, this test takes hours, literally.
6699     # So we just punt and use a minimum line length of 8192.
6700     lt_cv_sys_max_cmd_len=8192;
6701     ;;
6702
6703   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6704     # This has been around since 386BSD, at least.  Likely further.
6705     if test -x /sbin/sysctl; then
6706       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6707     elif test -x /usr/sbin/sysctl; then
6708       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6709     else
6710       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6711     fi
6712     # And add a safety zone
6713     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6714     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6715     ;;
6716
6717   interix*)
6718     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6719     lt_cv_sys_max_cmd_len=196608
6720     ;;
6721
6722   osf*)
6723     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6724     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6725     # nice to cause kernel panics so lets avoid the loop below.
6726     # First set a reasonable default.
6727     lt_cv_sys_max_cmd_len=16384
6728     #
6729     if test -x /sbin/sysconfig; then
6730       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6731         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6732       esac
6733     fi
6734     ;;
6735   sco3.2v5*)
6736     lt_cv_sys_max_cmd_len=102400
6737     ;;
6738   sysv5* | sco5v6* | sysv4.2uw2*)
6739     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6740     if test -n "$kargmax"; then
6741       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6742     else
6743       lt_cv_sys_max_cmd_len=32768
6744     fi
6745     ;;
6746   *)
6747     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6748     if test -n "$lt_cv_sys_max_cmd_len"; then
6749       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6750       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6751     else
6752       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6753       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6754                = "XX$teststring") >/dev/null 2>&1 &&
6755               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6756               lt_cv_sys_max_cmd_len=$new_result &&
6757               test $i != 17 # 1/2 MB should be enough
6758       do
6759         i=`expr $i + 1`
6760         teststring=$teststring$teststring
6761       done
6762       teststring=
6763       # Add a significant safety factor because C++ compilers can tack on massive
6764       # amounts of additional arguments before passing them to the linker.
6765       # It appears as though 1/2 is a usable value.
6766       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6767     fi
6768     ;;
6769   esac
6770
6771 fi
6772
6773 if test -n $lt_cv_sys_max_cmd_len ; then
6774   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6775 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6776 else
6777   { echo "$as_me:$LINENO: result: none" >&5
6778 echo "${ECHO_T}none" >&6; }
6779 fi
6780
6781
6782
6783
6784
6785 # Check for command to grab the raw symbol name followed by C symbol from nm.
6786 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6787 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6788 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791
6792 # These are sane defaults that work on at least a few old systems.
6793 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6794
6795 # Character class describing NM global symbol codes.
6796 symcode='[BCDEGRST]'
6797
6798 # Regexp to match symbols that can be accessed directly from C.
6799 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6800
6801 # Transform an extracted symbol line into a proper C declaration
6802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6803
6804 # Transform an extracted symbol line into symbol name and symbol address
6805 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'"
6806
6807 # Define system-specific variables.
6808 case $host_os in
6809 aix*)
6810   symcode='[BCDT]'
6811   ;;
6812 cygwin* | mingw* | pw32*)
6813   symcode='[ABCDGISTW]'
6814   ;;
6815 hpux*) # Its linker distinguishes data from code symbols
6816   if test "$host_cpu" = ia64; then
6817     symcode='[ABCDEGRST]'
6818   fi
6819   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6820   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'"
6821   ;;
6822 linux* | k*bsd*-gnu)
6823   if test "$host_cpu" = ia64; then
6824     symcode='[ABCDGIRSTW]'
6825     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6826     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'"
6827   fi
6828   ;;
6829 irix* | nonstopux*)
6830   symcode='[BCDEGRST]'
6831   ;;
6832 osf*)
6833   symcode='[BCDEGQRST]'
6834   ;;
6835 solaris*)
6836   symcode='[BDRT]'
6837   ;;
6838 sco3.2v5*)
6839   symcode='[DT]'
6840   ;;
6841 sysv4.2uw2*)
6842   symcode='[DT]'
6843   ;;
6844 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6845   symcode='[ABDT]'
6846   ;;
6847 sysv4)
6848   symcode='[DFNSTU]'
6849   ;;
6850 esac
6851
6852 # Handle CRLF in mingw tool chain
6853 opt_cr=
6854 case $build_os in
6855 mingw*)
6856   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6857   ;;
6858 esac
6859
6860 # If we're using GNU nm, then use its standard symbol codes.
6861 case `$NM -V 2>&1` in
6862 *GNU* | *'with BFD'*)
6863   symcode='[ABCDGIRSTW]' ;;
6864 esac
6865
6866 # Try without a prefix undercore, then with it.
6867 for ac_symprfx in "" "_"; do
6868
6869   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6870   symxfrm="\\1 $ac_symprfx\\2 \\2"
6871
6872   # Write the raw and C identifiers.
6873   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6874
6875   # Check to see that the pipe works correctly.
6876   pipe_works=no
6877
6878   rm -f conftest*
6879   cat > conftest.$ac_ext <<EOF
6880 #ifdef __cplusplus
6881 extern "C" {
6882 #endif
6883 char nm_test_var;
6884 void nm_test_func(){}
6885 #ifdef __cplusplus
6886 }
6887 #endif
6888 int main(){nm_test_var='a';nm_test_func();return(0);}
6889 EOF
6890
6891   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892   (eval $ac_compile) 2>&5
6893   ac_status=$?
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); }; then
6896     # Now try to grab the symbols.
6897     nlist=conftest.nm
6898     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6899   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); } && test -s "$nlist"; then
6903       # Try sorting and uniquifying the output.
6904       if sort "$nlist" | uniq > "$nlist"T; then
6905         mv -f "$nlist"T "$nlist"
6906       else
6907         rm -f "$nlist"T
6908       fi
6909
6910       # Make sure that we snagged all the symbols we need.
6911       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6912         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6913           cat <<EOF > conftest.$ac_ext
6914 #ifdef __cplusplus
6915 extern "C" {
6916 #endif
6917
6918 EOF
6919           # Now generate the symbol file.
6920           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6921
6922           cat <<EOF >> conftest.$ac_ext
6923 #if defined (__STDC__) && __STDC__
6924 # define lt_ptr_t void *
6925 #else
6926 # define lt_ptr_t char *
6927 # define const
6928 #endif
6929
6930 /* The mapping between symbol names and symbols. */
6931 const struct {
6932   const char *name;
6933   lt_ptr_t address;
6934 }
6935 lt_preloaded_symbols[] =
6936 {
6937 EOF
6938           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6939           cat <<\EOF >> conftest.$ac_ext
6940   {0, (lt_ptr_t) 0}
6941 };
6942
6943 #ifdef __cplusplus
6944 }
6945 #endif
6946 EOF
6947           # Now try linking the two files.
6948           mv conftest.$ac_objext conftstm.$ac_objext
6949           lt_save_LIBS="$LIBS"
6950           lt_save_CFLAGS="$CFLAGS"
6951           LIBS="conftstm.$ac_objext"
6952           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6953           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6954   (eval $ac_link) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6958             pipe_works=yes
6959           fi
6960           LIBS="$lt_save_LIBS"
6961           CFLAGS="$lt_save_CFLAGS"
6962         else
6963           echo "cannot find nm_test_func in $nlist" >&5
6964         fi
6965       else
6966         echo "cannot find nm_test_var in $nlist" >&5
6967       fi
6968     else
6969       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6970     fi
6971   else
6972     echo "$progname: failed program was:" >&5
6973     cat conftest.$ac_ext >&5
6974   fi
6975   rm -f conftest* conftst*
6976
6977   # Do not use the global_symbol_pipe unless it works.
6978   if test "$pipe_works" = yes; then
6979     break
6980   else
6981     lt_cv_sys_global_symbol_pipe=
6982   fi
6983 done
6984
6985 fi
6986
6987 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6988   lt_cv_sys_global_symbol_to_cdecl=
6989 fi
6990 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6991   { echo "$as_me:$LINENO: result: failed" >&5
6992 echo "${ECHO_T}failed" >&6; }
6993 else
6994   { echo "$as_me:$LINENO: result: ok" >&5
6995 echo "${ECHO_T}ok" >&6; }
6996 fi
6997
6998 { echo "$as_me:$LINENO: checking for objdir" >&5
6999 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7000 if test "${lt_cv_objdir+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   rm -f .libs 2>/dev/null
7004 mkdir .libs 2>/dev/null
7005 if test -d .libs; then
7006   lt_cv_objdir=.libs
7007 else
7008   # MS-DOS does not allow filenames that begin with a dot.
7009   lt_cv_objdir=_libs
7010 fi
7011 rmdir .libs 2>/dev/null
7012 fi
7013 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7014 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7015 objdir=$lt_cv_objdir
7016
7017
7018
7019
7020
7021 case $host_os in
7022 aix3*)
7023   # AIX sometimes has problems with the GCC collect2 program.  For some
7024   # reason, if we set the COLLECT_NAMES environment variable, the problems
7025   # vanish in a puff of smoke.
7026   if test "X${COLLECT_NAMES+set}" != Xset; then
7027     COLLECT_NAMES=
7028     export COLLECT_NAMES
7029   fi
7030   ;;
7031 esac
7032
7033 # Sed substitution that helps us do robust quoting.  It backslashifies
7034 # metacharacters that are still active within double-quoted strings.
7035 Xsed='sed -e 1s/^X//'
7036 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7037
7038 # Same as above, but do not quote variable references.
7039 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7040
7041 # Sed substitution to delay expansion of an escaped shell variable in a
7042 # double_quote_subst'ed string.
7043 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7044
7045 # Sed substitution to avoid accidental globbing in evaled expressions
7046 no_glob_subst='s/\*/\\\*/g'
7047
7048 # Constants:
7049 rm="rm -f"
7050
7051 # Global variables:
7052 default_ofile=libtool
7053 can_build_shared=yes
7054
7055 # All known linkers require a `.a' archive for static linking (except MSVC,
7056 # which needs '.lib').
7057 libext=a
7058 ltmain="$ac_aux_dir/ltmain.sh"
7059 ofile="$default_ofile"
7060 with_gnu_ld="$lt_cv_prog_gnu_ld"
7061
7062 if test -n "$ac_tool_prefix"; then
7063   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}ar; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_AR+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   if test -n "$AR"; then
7071   ac_cv_prog_AR="$AR" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078   for ac_exec_ext in '' $ac_executable_extensions; do
7079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080     ac_cv_prog_AR="${ac_tool_prefix}ar"
7081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 AR=$ac_cv_prog_AR
7091 if test -n "$AR"; then
7092   { echo "$as_me:$LINENO: result: $AR" >&5
7093 echo "${ECHO_T}$AR" >&6; }
7094 else
7095   { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_AR"; then
7102   ac_ct_AR=$AR
7103   # Extract the first word of "ar", so it can be a program name with args.
7104 set dummy ar; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   if test -n "$ac_ct_AR"; then
7111   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118   for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_prog_ac_ct_AR="ar"
7121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7131 if test -n "$ac_ct_AR"; then
7132   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7133 echo "${ECHO_T}$ac_ct_AR" >&6; }
7134 else
7135   { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139   if test "x$ac_ct_AR" = x; then
7140     AR="false"
7141   else
7142     case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7145 whose name does not start with the host triplet.  If you think this
7146 configuration is useful to you, please write to autoconf@gnu.org." >&5
7147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet.  If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152     AR=$ac_ct_AR
7153   fi
7154 else
7155   AR="$ac_cv_prog_AR"
7156 fi
7157
7158 if test -n "$ac_tool_prefix"; then
7159   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_prog_RANLIB+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   if test -n "$RANLIB"; then
7167   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174   for ac_exec_ext in '' $ac_executable_extensions; do
7175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 RANLIB=$ac_cv_prog_RANLIB
7187 if test -n "$RANLIB"; then
7188   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7189 echo "${ECHO_T}$RANLIB" >&6; }
7190 else
7191   { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7193 fi
7194
7195
7196 fi
7197 if test -z "$ac_cv_prog_RANLIB"; then
7198   ac_ct_RANLIB=$RANLIB
7199   # Extract the first word of "ranlib", so it can be a program name with args.
7200 set dummy ranlib; ac_word=$2
7201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   if test -n "$ac_ct_RANLIB"; then
7207   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214   for ac_exec_ext in '' $ac_executable_extensions; do
7215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216     ac_cv_prog_ac_ct_RANLIB="ranlib"
7217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221 done
7222 IFS=$as_save_IFS
7223
7224 fi
7225 fi
7226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7227 if test -n "$ac_ct_RANLIB"; then
7228   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7229 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7230 else
7231   { echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6; }
7233 fi
7234
7235   if test "x$ac_ct_RANLIB" = x; then
7236     RANLIB=":"
7237   else
7238     case $cross_compiling:$ac_tool_warned in
7239 yes:)
7240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7241 whose name does not start with the host triplet.  If you think this
7242 configuration is useful to you, please write to autoconf@gnu.org." >&5
7243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7244 whose name does not start with the host triplet.  If you think this
7245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7246 ac_tool_warned=yes ;;
7247 esac
7248     RANLIB=$ac_ct_RANLIB
7249   fi
7250 else
7251   RANLIB="$ac_cv_prog_RANLIB"
7252 fi
7253
7254 if test -n "$ac_tool_prefix"; then
7255   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}strip; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_prog_STRIP+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262   if test -n "$STRIP"; then
7263   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270   for ac_exec_ext in '' $ac_executable_extensions; do
7271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277 done
7278 IFS=$as_save_IFS
7279
7280 fi
7281 fi
7282 STRIP=$ac_cv_prog_STRIP
7283 if test -n "$STRIP"; then
7284   { echo "$as_me:$LINENO: result: $STRIP" >&5
7285 echo "${ECHO_T}$STRIP" >&6; }
7286 else
7287   { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7289 fi
7290
7291
7292 fi
7293 if test -z "$ac_cv_prog_STRIP"; then
7294   ac_ct_STRIP=$STRIP
7295   # Extract the first word of "strip", so it can be a program name with args.
7296 set dummy strip; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   if test -n "$ac_ct_STRIP"; then
7303   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308   IFS=$as_save_IFS
7309   test -z "$as_dir" && as_dir=.
7310   for ac_exec_ext in '' $ac_executable_extensions; do
7311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7312     ac_cv_prog_ac_ct_STRIP="strip"
7313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314     break 2
7315   fi
7316 done
7317 done
7318 IFS=$as_save_IFS
7319
7320 fi
7321 fi
7322 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7323 if test -n "$ac_ct_STRIP"; then
7324   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7325 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7326 else
7327   { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7329 fi
7330
7331   if test "x$ac_ct_STRIP" = x; then
7332     STRIP=":"
7333   else
7334     case $cross_compiling:$ac_tool_warned in
7335 yes:)
7336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7337 whose name does not start with the host triplet.  If you think this
7338 configuration is useful to you, please write to autoconf@gnu.org." >&5
7339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7340 whose name does not start with the host triplet.  If you think this
7341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7342 ac_tool_warned=yes ;;
7343 esac
7344     STRIP=$ac_ct_STRIP
7345   fi
7346 else
7347   STRIP="$ac_cv_prog_STRIP"
7348 fi
7349
7350
7351 old_CC="$CC"
7352 old_CFLAGS="$CFLAGS"
7353
7354 # Set sane defaults for various variables
7355 test -z "$AR" && AR=ar
7356 test -z "$AR_FLAGS" && AR_FLAGS=cru
7357 test -z "$AS" && AS=as
7358 test -z "$CC" && CC=cc
7359 test -z "$LTCC" && LTCC=$CC
7360 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7361 test -z "$DLLTOOL" && DLLTOOL=dlltool
7362 test -z "$LD" && LD=ld
7363 test -z "$LN_S" && LN_S="ln -s"
7364 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7365 test -z "$NM" && NM=nm
7366 test -z "$SED" && SED=sed
7367 test -z "$OBJDUMP" && OBJDUMP=objdump
7368 test -z "$RANLIB" && RANLIB=:
7369 test -z "$STRIP" && STRIP=:
7370 test -z "$ac_objext" && ac_objext=o
7371
7372 # Determine commands to create old-style static archives.
7373 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7374 old_postinstall_cmds='chmod 644 $oldlib'
7375 old_postuninstall_cmds=
7376
7377 if test -n "$RANLIB"; then
7378   case $host_os in
7379   openbsd*)
7380     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7381     ;;
7382   *)
7383     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7384     ;;
7385   esac
7386   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7387 fi
7388
7389 for cc_temp in $compiler""; do
7390   case $cc_temp in
7391     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7392     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7393     \-*) ;;
7394     *) break;;
7395   esac
7396 done
7397 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7398
7399
7400 # Only perform the check for file, if the check method requires it
7401 case $deplibs_check_method in
7402 file_magic*)
7403   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7404     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7405 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7406 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   case $MAGIC_CMD in
7410 [\\/*] |  ?:[\\/]*)
7411   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7412   ;;
7413 *)
7414   lt_save_MAGIC_CMD="$MAGIC_CMD"
7415   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7416   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7417   for ac_dir in $ac_dummy; do
7418     IFS="$lt_save_ifs"
7419     test -z "$ac_dir" && ac_dir=.
7420     if test -f $ac_dir/${ac_tool_prefix}file; then
7421       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7422       if test -n "$file_magic_test_file"; then
7423         case $deplibs_check_method in
7424         "file_magic "*)
7425           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7426           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7427           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7428             $EGREP "$file_magic_regex" > /dev/null; then
7429             :
7430           else
7431             cat <<EOF 1>&2
7432
7433 *** Warning: the command libtool uses to detect shared libraries,
7434 *** $file_magic_cmd, produces output that libtool cannot recognize.
7435 *** The result is that libtool may fail to recognize shared libraries
7436 *** as such.  This will affect the creation of libtool libraries that
7437 *** depend on shared libraries, but programs linked with such libtool
7438 *** libraries will work regardless of this problem.  Nevertheless, you
7439 *** may want to report the problem to your system manager and/or to
7440 *** bug-libtool@gnu.org
7441
7442 EOF
7443           fi ;;
7444         esac
7445       fi
7446       break
7447     fi
7448   done
7449   IFS="$lt_save_ifs"
7450   MAGIC_CMD="$lt_save_MAGIC_CMD"
7451   ;;
7452 esac
7453 fi
7454
7455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7456 if test -n "$MAGIC_CMD"; then
7457   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7458 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7459 else
7460   { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7462 fi
7463
7464 if test -z "$lt_cv_path_MAGIC_CMD"; then
7465   if test -n "$ac_tool_prefix"; then
7466     { echo "$as_me:$LINENO: checking for file" >&5
7467 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7468 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7469   echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471   case $MAGIC_CMD in
7472 [\\/*] |  ?:[\\/]*)
7473   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7474   ;;
7475 *)
7476   lt_save_MAGIC_CMD="$MAGIC_CMD"
7477   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7478   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7479   for ac_dir in $ac_dummy; do
7480     IFS="$lt_save_ifs"
7481     test -z "$ac_dir" && ac_dir=.
7482     if test -f $ac_dir/file; then
7483       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7484       if test -n "$file_magic_test_file"; then
7485         case $deplibs_check_method in
7486         "file_magic "*)
7487           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7488           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7490             $EGREP "$file_magic_regex" > /dev/null; then
7491             :
7492           else
7493             cat <<EOF 1>&2
7494
7495 *** Warning: the command libtool uses to detect shared libraries,
7496 *** $file_magic_cmd, produces output that libtool cannot recognize.
7497 *** The result is that libtool may fail to recognize shared libraries
7498 *** as such.  This will affect the creation of libtool libraries that
7499 *** depend on shared libraries, but programs linked with such libtool
7500 *** libraries will work regardless of this problem.  Nevertheless, you
7501 *** may want to report the problem to your system manager and/or to
7502 *** bug-libtool@gnu.org
7503
7504 EOF
7505           fi ;;
7506         esac
7507       fi
7508       break
7509     fi
7510   done
7511   IFS="$lt_save_ifs"
7512   MAGIC_CMD="$lt_save_MAGIC_CMD"
7513   ;;
7514 esac
7515 fi
7516
7517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7518 if test -n "$MAGIC_CMD"; then
7519   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7520 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7521 else
7522   { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7524 fi
7525
7526   else
7527     MAGIC_CMD=:
7528   fi
7529 fi
7530
7531   fi
7532   ;;
7533 esac
7534
7535 enable_dlopen=no
7536 enable_win32_dll=no
7537
7538 # Check whether --enable-libtool-lock was given.
7539 if test "${enable_libtool_lock+set}" = set; then
7540   enableval=$enable_libtool_lock;
7541 fi
7542
7543 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7544
7545
7546 # Check whether --with-pic was given.
7547 if test "${with_pic+set}" = set; then
7548   withval=$with_pic; pic_mode="$withval"
7549 else
7550   pic_mode=default
7551 fi
7552
7553 test -z "$pic_mode" && pic_mode=default
7554
7555 # Use C for the default configuration in the libtool script
7556 tagname=
7557 lt_save_CC="$CC"
7558 ac_ext=c
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7563
7564
7565 # Source file extension for C test sources.
7566 ac_ext=c
7567
7568 # Object file extension for compiled C test sources.
7569 objext=o
7570 objext=$objext
7571
7572 # Code to be used in simple compile tests
7573 lt_simple_compile_test_code="int some_variable = 0;"
7574
7575 # Code to be used in simple link tests
7576 lt_simple_link_test_code='int main(){return(0);}'
7577
7578
7579 # If no C compiler was specified, use CC.
7580 LTCC=${LTCC-"$CC"}
7581
7582 # If no C compiler flags were specified, use CFLAGS.
7583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7584
7585 # Allow CC to be a program name with arguments.
7586 compiler=$CC
7587
7588
7589 # save warnings/boilerplate of simple test code
7590 ac_outfile=conftest.$ac_objext
7591 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7592 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7593 _lt_compiler_boilerplate=`cat conftest.err`
7594 $rm conftest*
7595
7596 ac_outfile=conftest.$ac_objext
7597 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7598 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7599 _lt_linker_boilerplate=`cat conftest.err`
7600 $rm conftest*
7601
7602
7603 ## CAVEAT EMPTOR:
7604 ## There is no encapsulation within the following macros, do not change
7605 ## the running order or otherwise move them around unless you know exactly
7606 ## what you are doing...
7607
7608 lt_prog_compiler_no_builtin_flag=
7609
7610 if test "$GCC" = yes; then
7611   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7612
7613
7614 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7615 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7616 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619   lt_cv_prog_compiler_rtti_exceptions=no
7620   ac_outfile=conftest.$ac_objext
7621    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7622    lt_compiler_flag="-fno-rtti -fno-exceptions"
7623    # Insert the option either (1) after the last *FLAGS variable, or
7624    # (2) before a word containing "conftest.", or (3) at the end.
7625    # Note that $ac_compile itself does not contain backslashes and begins
7626    # with a dollar sign (not a hyphen), so the echo should work correctly.
7627    # The option is referenced via a variable to avoid confusing sed.
7628    lt_compile=`echo "$ac_compile" | $SED \
7629    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631    -e 's:$: $lt_compiler_flag:'`
7632    (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
7633    (eval "$lt_compile" 2>conftest.err)
7634    ac_status=$?
7635    cat conftest.err >&5
7636    echo "$as_me:7636: \$? = $ac_status" >&5
7637    if (exit $ac_status) && test -s "$ac_outfile"; then
7638      # The compiler can only warn and ignore the option if not recognized
7639      # So say no if there are warnings other than the usual output.
7640      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7641      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7642      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7643        lt_cv_prog_compiler_rtti_exceptions=yes
7644      fi
7645    fi
7646    $rm conftest*
7647
7648 fi
7649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7650 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7651
7652 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7653     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7654 else
7655     :
7656 fi
7657
7658 fi
7659
7660 lt_prog_compiler_wl=
7661 lt_prog_compiler_pic=
7662 lt_prog_compiler_static=
7663
7664 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7666
7667   if test "$GCC" = yes; then
7668     lt_prog_compiler_wl='-Wl,'
7669     lt_prog_compiler_static='-static'
7670
7671     case $host_os in
7672       aix*)
7673       # All AIX code is PIC.
7674       if test "$host_cpu" = ia64; then
7675         # AIX 5 now supports IA64 processor
7676         lt_prog_compiler_static='-Bstatic'
7677       fi
7678       ;;
7679
7680     amigaos*)
7681       # FIXME: we need at least 68020 code to build shared libraries, but
7682       # adding the `-m68020' flag to GCC prevents building anything better,
7683       # like `-m68040'.
7684       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7685       ;;
7686
7687     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7688       # PIC is the default for these OSes.
7689       ;;
7690
7691     mingw* | cygwin* | pw32* | os2*)
7692       # This hack is so that the source file can tell whether it is being
7693       # built for inclusion in a dll (and should export symbols for example).
7694       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7695       # (--disable-auto-import) libraries
7696       lt_prog_compiler_pic='-DDLL_EXPORT'
7697       ;;
7698
7699     darwin* | rhapsody*)
7700       # PIC is the default on this platform
7701       # Common symbols not allowed in MH_DYLIB files
7702       lt_prog_compiler_pic='-fno-common'
7703       ;;
7704
7705     interix[3-9]*)
7706       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7707       # Instead, we relocate shared libraries at runtime.
7708       ;;
7709
7710     msdosdjgpp*)
7711       # Just because we use GCC doesn't mean we suddenly get shared libraries
7712       # on systems that don't support them.
7713       lt_prog_compiler_can_build_shared=no
7714       enable_shared=no
7715       ;;
7716
7717     sysv4*MP*)
7718       if test -d /usr/nec; then
7719         lt_prog_compiler_pic=-Kconform_pic
7720       fi
7721       ;;
7722
7723     hpux*)
7724       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7725       # not for PA HP-UX.
7726       case $host_cpu in
7727       hppa*64*|ia64*)
7728         # +Z the default
7729         ;;
7730       *)
7731         lt_prog_compiler_pic='-fPIC'
7732         ;;
7733       esac
7734       ;;
7735
7736     *)
7737       lt_prog_compiler_pic='-fPIC'
7738       ;;
7739     esac
7740   else
7741     # PORTME Check for flag to pass linker flags through the system compiler.
7742     case $host_os in
7743     aix*)
7744       lt_prog_compiler_wl='-Wl,'
7745       if test "$host_cpu" = ia64; then
7746         # AIX 5 now supports IA64 processor
7747         lt_prog_compiler_static='-Bstatic'
7748       else
7749         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7750       fi
7751       ;;
7752       darwin*)
7753         # PIC is the default on this platform
7754         # Common symbols not allowed in MH_DYLIB files
7755        case $cc_basename in
7756          xlc*)
7757          lt_prog_compiler_pic='-qnocommon'
7758          lt_prog_compiler_wl='-Wl,'
7759          ;;
7760        esac
7761        ;;
7762
7763     mingw* | cygwin* | pw32* | os2*)
7764       # This hack is so that the source file can tell whether it is being
7765       # built for inclusion in a dll (and should export symbols for example).
7766       lt_prog_compiler_pic='-DDLL_EXPORT'
7767       ;;
7768
7769     hpux9* | hpux10* | hpux11*)
7770       lt_prog_compiler_wl='-Wl,'
7771       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7772       # not for PA HP-UX.
7773       case $host_cpu in
7774       hppa*64*|ia64*)
7775         # +Z the default
7776         ;;
7777       *)
7778         lt_prog_compiler_pic='+Z'
7779         ;;
7780       esac
7781       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7782       lt_prog_compiler_static='${wl}-a ${wl}archive'
7783       ;;
7784
7785     irix5* | irix6* | nonstopux*)
7786       lt_prog_compiler_wl='-Wl,'
7787       # PIC (with -KPIC) is the default.
7788       lt_prog_compiler_static='-non_shared'
7789       ;;
7790
7791     newsos6)
7792       lt_prog_compiler_pic='-KPIC'
7793       lt_prog_compiler_static='-Bstatic'
7794       ;;
7795
7796     linux* | k*bsd*-gnu)
7797       case $cc_basename in
7798       icc* | ecc*)
7799         lt_prog_compiler_wl='-Wl,'
7800         lt_prog_compiler_pic='-KPIC'
7801         lt_prog_compiler_static='-static'
7802         ;;
7803       pgcc* | pgf77* | pgf90* | pgf95*)
7804         # Portland Group compilers (*not* the Pentium gcc compiler,
7805         # which looks to be a dead project)
7806         lt_prog_compiler_wl='-Wl,'
7807         lt_prog_compiler_pic='-fpic'
7808         lt_prog_compiler_static='-Bstatic'
7809         ;;
7810       ccc*)
7811         lt_prog_compiler_wl='-Wl,'
7812         # All Alpha code is PIC.
7813         lt_prog_compiler_static='-non_shared'
7814         ;;
7815       *)
7816         case `$CC -V 2>&1 | sed 5q` in
7817         *Sun\ C*)
7818           # Sun C 5.9
7819           lt_prog_compiler_pic='-KPIC'
7820           lt_prog_compiler_static='-Bstatic'
7821           lt_prog_compiler_wl='-Wl,'
7822           ;;
7823         *Sun\ F*)
7824           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7825           lt_prog_compiler_pic='-KPIC'
7826           lt_prog_compiler_static='-Bstatic'
7827           lt_prog_compiler_wl=''
7828           ;;
7829         esac
7830         ;;
7831       esac
7832       ;;
7833
7834     osf3* | osf4* | osf5*)
7835       lt_prog_compiler_wl='-Wl,'
7836       # All OSF/1 code is PIC.
7837       lt_prog_compiler_static='-non_shared'
7838       ;;
7839
7840     rdos*)
7841       lt_prog_compiler_static='-non_shared'
7842       ;;
7843
7844     solaris*)
7845       lt_prog_compiler_pic='-KPIC'
7846       lt_prog_compiler_static='-Bstatic'
7847       case $cc_basename in
7848       f77* | f90* | f95*)
7849         lt_prog_compiler_wl='-Qoption ld ';;
7850       *)
7851         lt_prog_compiler_wl='-Wl,';;
7852       esac
7853       ;;
7854
7855     sunos4*)
7856       lt_prog_compiler_wl='-Qoption ld '
7857       lt_prog_compiler_pic='-PIC'
7858       lt_prog_compiler_static='-Bstatic'
7859       ;;
7860
7861     sysv4 | sysv4.2uw2* | sysv4.3*)
7862       lt_prog_compiler_wl='-Wl,'
7863       lt_prog_compiler_pic='-KPIC'
7864       lt_prog_compiler_static='-Bstatic'
7865       ;;
7866
7867     sysv4*MP*)
7868       if test -d /usr/nec ;then
7869         lt_prog_compiler_pic='-Kconform_pic'
7870         lt_prog_compiler_static='-Bstatic'
7871       fi
7872       ;;
7873
7874     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7875       lt_prog_compiler_wl='-Wl,'
7876       lt_prog_compiler_pic='-KPIC'
7877       lt_prog_compiler_static='-Bstatic'
7878       ;;
7879
7880     unicos*)
7881       lt_prog_compiler_wl='-Wl,'
7882       lt_prog_compiler_can_build_shared=no
7883       ;;
7884
7885     uts4*)
7886       lt_prog_compiler_pic='-pic'
7887       lt_prog_compiler_static='-Bstatic'
7888       ;;
7889
7890     *)
7891       lt_prog_compiler_can_build_shared=no
7892       ;;
7893     esac
7894   fi
7895
7896 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7897 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7898
7899 #
7900 # Check to make sure the PIC flag actually works.
7901 #
7902 if test -n "$lt_prog_compiler_pic"; then
7903
7904 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7905 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7906 if test "${lt_prog_compiler_pic_works+set}" = set; then
7907   echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909   lt_prog_compiler_pic_works=no
7910   ac_outfile=conftest.$ac_objext
7911    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7913    # Insert the option either (1) after the last *FLAGS variable, or
7914    # (2) before a word containing "conftest.", or (3) at the end.
7915    # Note that $ac_compile itself does not contain backslashes and begins
7916    # with a dollar sign (not a hyphen), so the echo should work correctly.
7917    # The option is referenced via a variable to avoid confusing sed.
7918    lt_compile=`echo "$ac_compile" | $SED \
7919    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921    -e 's:$: $lt_compiler_flag:'`
7922    (eval echo "\"\$as_me:7922: $lt_compile\"" >&5)
7923    (eval "$lt_compile" 2>conftest.err)
7924    ac_status=$?
7925    cat conftest.err >&5
7926    echo "$as_me:7926: \$? = $ac_status" >&5
7927    if (exit $ac_status) && test -s "$ac_outfile"; then
7928      # The compiler can only warn and ignore the option if not recognized
7929      # So say no if there are warnings other than the usual output.
7930      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7931      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933        lt_prog_compiler_pic_works=yes
7934      fi
7935    fi
7936    $rm conftest*
7937
7938 fi
7939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7940 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7941
7942 if test x"$lt_prog_compiler_pic_works" = xyes; then
7943     case $lt_prog_compiler_pic in
7944      "" | " "*) ;;
7945      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7946      esac
7947 else
7948     lt_prog_compiler_pic=
7949      lt_prog_compiler_can_build_shared=no
7950 fi
7951
7952 fi
7953 case $host_os in
7954   # For platforms which do not support PIC, -DPIC is meaningless:
7955   *djgpp*)
7956     lt_prog_compiler_pic=
7957     ;;
7958   *)
7959     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7960     ;;
7961 esac
7962
7963 #
7964 # Check to make sure the static flag actually works.
7965 #
7966 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7967 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7968 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7969 if test "${lt_prog_compiler_static_works+set}" = set; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972   lt_prog_compiler_static_works=no
7973    save_LDFLAGS="$LDFLAGS"
7974    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7975    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7976    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7977      # The linker can only warn and ignore the option if not recognized
7978      # So say no if there are warnings
7979      if test -s conftest.err; then
7980        # Append any errors to the config.log.
7981        cat conftest.err 1>&5
7982        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7983        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7984        if diff conftest.exp conftest.er2 >/dev/null; then
7985          lt_prog_compiler_static_works=yes
7986        fi
7987      else
7988        lt_prog_compiler_static_works=yes
7989      fi
7990    fi
7991    $rm conftest*
7992    LDFLAGS="$save_LDFLAGS"
7993
7994 fi
7995 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7996 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7997
7998 if test x"$lt_prog_compiler_static_works" = xyes; then
7999     :
8000 else
8001     lt_prog_compiler_static=
8002 fi
8003
8004
8005 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8006 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8007 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8008   echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010   lt_cv_prog_compiler_c_o=no
8011    $rm -r conftest 2>/dev/null
8012    mkdir conftest
8013    cd conftest
8014    mkdir out
8015    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8016
8017    lt_compiler_flag="-o out/conftest2.$ac_objext"
8018    # Insert the option either (1) after the last *FLAGS variable, or
8019    # (2) before a word containing "conftest.", or (3) at the end.
8020    # Note that $ac_compile itself does not contain backslashes and begins
8021    # with a dollar sign (not a hyphen), so the echo should work correctly.
8022    lt_compile=`echo "$ac_compile" | $SED \
8023    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8024    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8025    -e 's:$: $lt_compiler_flag:'`
8026    (eval echo "\"\$as_me:8026: $lt_compile\"" >&5)
8027    (eval "$lt_compile" 2>out/conftest.err)
8028    ac_status=$?
8029    cat out/conftest.err >&5
8030    echo "$as_me:8030: \$? = $ac_status" >&5
8031    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8032    then
8033      # The compiler can only warn and ignore the option if not recognized
8034      # So say no if there are warnings
8035      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8036      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8037      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8038        lt_cv_prog_compiler_c_o=yes
8039      fi
8040    fi
8041    chmod u+w . 2>&5
8042    $rm conftest*
8043    # SGI C++ compiler will create directory out/ii_files/ for
8044    # template instantiation
8045    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8046    $rm out/* && rmdir out
8047    cd ..
8048    rmdir conftest
8049    $rm conftest*
8050
8051 fi
8052 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8053 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8054
8055
8056 hard_links="nottested"
8057 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8058   # do not overwrite the value of need_locks provided by the user
8059   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8060 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8061   hard_links=yes
8062   $rm conftest*
8063   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8064   touch conftest.a
8065   ln conftest.a conftest.b 2>&5 || hard_links=no
8066   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8067   { echo "$as_me:$LINENO: result: $hard_links" >&5
8068 echo "${ECHO_T}$hard_links" >&6; }
8069   if test "$hard_links" = no; then
8070     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8071 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8072     need_locks=warn
8073   fi
8074 else
8075   need_locks=no
8076 fi
8077
8078 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8079 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8080
8081   runpath_var=
8082   allow_undefined_flag=
8083   enable_shared_with_static_runtimes=no
8084   archive_cmds=
8085   archive_expsym_cmds=
8086   old_archive_From_new_cmds=
8087   old_archive_from_expsyms_cmds=
8088   export_dynamic_flag_spec=
8089   whole_archive_flag_spec=
8090   thread_safe_flag_spec=
8091   hardcode_libdir_flag_spec=
8092   hardcode_libdir_flag_spec_ld=
8093   hardcode_libdir_separator=
8094   hardcode_direct=no
8095   hardcode_minus_L=no
8096   hardcode_shlibpath_var=unsupported
8097   link_all_deplibs=unknown
8098   hardcode_automatic=no
8099   module_cmds=
8100   module_expsym_cmds=
8101   always_export_symbols=no
8102   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8103   # include_expsyms should be a list of space-separated symbols to be *always*
8104   # included in the symbol list
8105   include_expsyms=
8106   # exclude_expsyms can be an extended regexp of symbols to exclude
8107   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8108   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8109   # as well as any symbol that contains `d'.
8110   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8111   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8112   # platforms (ab)use it in PIC code, but their linkers get confused if
8113   # the symbol is explicitly referenced.  Since portable code cannot
8114   # rely on this symbol name, it's probably fine to never include it in
8115   # preloaded symbol tables.
8116   extract_expsyms_cmds=
8117   # Just being paranoid about ensuring that cc_basename is set.
8118   for cc_temp in $compiler""; do
8119   case $cc_temp in
8120     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8121     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8122     \-*) ;;
8123     *) break;;
8124   esac
8125 done
8126 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8127
8128   case $host_os in
8129   cygwin* | mingw* | pw32*)
8130     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8131     # When not using gcc, we currently assume that we are using
8132     # Microsoft Visual C++.
8133     if test "$GCC" != yes; then
8134       with_gnu_ld=no
8135     fi
8136     ;;
8137   interix*)
8138     # we just hope/assume this is gcc and not c89 (= MSVC++)
8139     with_gnu_ld=yes
8140     ;;
8141   openbsd*)
8142     with_gnu_ld=no
8143     ;;
8144   esac
8145
8146   ld_shlibs=yes
8147   if test "$with_gnu_ld" = yes; then
8148     # If archive_cmds runs LD, not CC, wlarc should be empty
8149     wlarc='${wl}'
8150
8151     # Set some defaults for GNU ld with shared library support. These
8152     # are reset later if shared libraries are not supported. Putting them
8153     # here allows them to be overridden if necessary.
8154     runpath_var=LD_RUN_PATH
8155     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8156     export_dynamic_flag_spec='${wl}--export-dynamic'
8157     # ancient GNU ld didn't support --whole-archive et. al.
8158     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8159         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8160       else
8161         whole_archive_flag_spec=
8162     fi
8163     supports_anon_versioning=no
8164     case `$LD -v 2>/dev/null` in
8165       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8166       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8167       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8168       *\ 2.11.*) ;; # other 2.11 versions
8169       *) supports_anon_versioning=yes ;;
8170     esac
8171
8172     # See if GNU ld supports shared libraries.
8173     case $host_os in
8174     aix3* | aix4* | aix5*)
8175       # On AIX/PPC, the GNU linker is very broken
8176       if test "$host_cpu" != ia64; then
8177         ld_shlibs=no
8178         cat <<EOF 1>&2
8179
8180 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8181 *** to be unable to reliably create shared libraries on AIX.
8182 *** Therefore, libtool is disabling shared libraries support.  If you
8183 *** really care for shared libraries, you may want to modify your PATH
8184 *** so that a non-GNU linker is found, and then restart.
8185
8186 EOF
8187       fi
8188       ;;
8189
8190     amigaos*)
8191       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)'
8192       hardcode_libdir_flag_spec='-L$libdir'
8193       hardcode_minus_L=yes
8194
8195       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8196       # that the semantics of dynamic libraries on AmigaOS, at least up
8197       # to version 4, is to share data among multiple programs linked
8198       # with the same dynamic library.  Since this doesn't match the
8199       # behavior of shared libraries on other platforms, we can't use
8200       # them.
8201       ld_shlibs=no
8202       ;;
8203
8204     beos*)
8205       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206         allow_undefined_flag=unsupported
8207         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8208         # support --undefined.  This deserves some investigation.  FIXME
8209         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210       else
8211         ld_shlibs=no
8212       fi
8213       ;;
8214
8215     cygwin* | mingw* | pw32*)
8216       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8217       # as there is no search path for DLLs.
8218       hardcode_libdir_flag_spec='-L$libdir'
8219       allow_undefined_flag=unsupported
8220       always_export_symbols=no
8221       enable_shared_with_static_runtimes=yes
8222       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8223
8224       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8225         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8226         # If the export-symbols file already is a .def file (1st line
8227         # is EXPORTS), use it as is; otherwise, prepend...
8228         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8229           cp $export_symbols $output_objdir/$soname.def;
8230         else
8231           echo EXPORTS > $output_objdir/$soname.def;
8232           cat $export_symbols >> $output_objdir/$soname.def;
8233         fi~
8234         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8235       else
8236         ld_shlibs=no
8237       fi
8238       ;;
8239
8240     interix[3-9]*)
8241       hardcode_direct=no
8242       hardcode_shlibpath_var=no
8243       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8244       export_dynamic_flag_spec='${wl}-E'
8245       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8246       # Instead, shared libraries are loaded at an image base (0x10000000 by
8247       # default) and relocated if they conflict, which is a slow very memory
8248       # consuming and fragmenting process.  To avoid this, we pick a random,
8249       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8250       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8251       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8252       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'
8253       ;;
8254
8255     gnu* | linux* | k*bsd*-gnu)
8256       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8257         tmp_addflag=
8258         case $cc_basename,$host_cpu in
8259         pgcc*)                          # Portland Group C compiler
8260           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'
8261           tmp_addflag=' $pic_flag'
8262           ;;
8263         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8264           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'
8265           tmp_addflag=' $pic_flag -Mnomain' ;;
8266         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8267           tmp_addflag=' -i_dynamic' ;;
8268         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8269           tmp_addflag=' -i_dynamic -nofor_main' ;;
8270         ifc* | ifort*)                  # Intel Fortran compiler
8271           tmp_addflag=' -nofor_main' ;;
8272         esac
8273         case `$CC -V 2>&1 | sed 5q` in
8274         *Sun\ C*)                       # Sun C 5.9
8275           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'
8276           tmp_sharedflag='-G' ;;
8277         *Sun\ F*)                       # Sun Fortran 8.3
8278           tmp_sharedflag='-G' ;;
8279         *)
8280           tmp_sharedflag='-shared' ;;
8281         esac
8282         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283
8284         if test $supports_anon_versioning = yes; then
8285           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8286   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8287   $echo "local: *; };" >> $output_objdir/$libname.ver~
8288           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8289         fi
8290       else
8291         ld_shlibs=no
8292       fi
8293       ;;
8294
8295     netbsd*)
8296       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8297         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8298         wlarc=
8299       else
8300         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8302       fi
8303       ;;
8304
8305     solaris*)
8306       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8307         ld_shlibs=no
8308         cat <<EOF 1>&2
8309
8310 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8311 *** create shared libraries on Solaris systems.  Therefore, libtool
8312 *** is disabling shared libraries support.  We urge you to upgrade GNU
8313 *** binutils to release 2.9.1 or newer.  Another option is to modify
8314 *** your PATH or compiler configuration so that the native linker is
8315 *** used, and then restart.
8316
8317 EOF
8318       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8319         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8321       else
8322         ld_shlibs=no
8323       fi
8324       ;;
8325
8326     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8327       case `$LD -v 2>&1` in
8328         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8329         ld_shlibs=no
8330         cat <<_LT_EOF 1>&2
8331
8332 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8333 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8334 *** is disabling shared libraries support.  We urge you to upgrade GNU
8335 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8336 *** your PATH or compiler configuration so that the native linker is
8337 *** used, and then restart.
8338
8339 _LT_EOF
8340         ;;
8341         *)
8342           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8343             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8344             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8345             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8346           else
8347             ld_shlibs=no
8348           fi
8349         ;;
8350       esac
8351       ;;
8352
8353     sunos4*)
8354       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8355       wlarc=
8356       hardcode_direct=yes
8357       hardcode_shlibpath_var=no
8358       ;;
8359
8360     *)
8361       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8362         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8364       else
8365         ld_shlibs=no
8366       fi
8367       ;;
8368     esac
8369
8370     if test "$ld_shlibs" = no; then
8371       runpath_var=
8372       hardcode_libdir_flag_spec=
8373       export_dynamic_flag_spec=
8374       whole_archive_flag_spec=
8375     fi
8376   else
8377     # PORTME fill in a description of your system's linker (not GNU ld)
8378     case $host_os in
8379     aix3*)
8380       allow_undefined_flag=unsupported
8381       always_export_symbols=yes
8382       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'
8383       # Note: this linker hardcodes the directories in LIBPATH if there
8384       # are no directories specified by -L.
8385       hardcode_minus_L=yes
8386       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8387         # Neither direct hardcoding nor static linking is supported with a
8388         # broken collect2.
8389         hardcode_direct=unsupported
8390       fi
8391       ;;
8392
8393     aix4* | aix5*)
8394       if test "$host_cpu" = ia64; then
8395         # On IA64, the linker does run time linking by default, so we don't
8396         # have to do anything special.
8397         aix_use_runtimelinking=no
8398         exp_sym_flag='-Bexport'
8399         no_entry_flag=""
8400       else
8401         # If we're using GNU nm, then we don't want the "-C" option.
8402         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8403         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8404           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'
8405         else
8406           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'
8407         fi
8408         aix_use_runtimelinking=no
8409
8410         # Test if we are trying to use run time linking or normal
8411         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8412         # need to do runtime linking.
8413         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8414           for ld_flag in $LDFLAGS; do
8415           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8416             aix_use_runtimelinking=yes
8417             break
8418           fi
8419           done
8420           ;;
8421         esac
8422
8423         exp_sym_flag='-bexport'
8424         no_entry_flag='-bnoentry'
8425       fi
8426
8427       # When large executables or shared objects are built, AIX ld can
8428       # have problems creating the table of contents.  If linking a library
8429       # or program results in "error TOC overflow" add -mminimal-toc to
8430       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8431       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8432
8433       archive_cmds=''
8434       hardcode_direct=yes
8435       hardcode_libdir_separator=':'
8436       link_all_deplibs=yes
8437
8438       if test "$GCC" = yes; then
8439         case $host_os in aix4.[012]|aix4.[012].*)
8440         # We only want to do this on AIX 4.2 and lower, the check
8441         # below for broken collect2 doesn't work under 4.3+
8442           collect2name=`${CC} -print-prog-name=collect2`
8443           if test -f "$collect2name" && \
8444            strings "$collect2name" | grep resolve_lib_name >/dev/null
8445           then
8446           # We have reworked collect2
8447           :
8448           else
8449           # We have old collect2
8450           hardcode_direct=unsupported
8451           # It fails to find uninstalled libraries when the uninstalled
8452           # path is not listed in the libpath.  Setting hardcode_minus_L
8453           # to unsupported forces relinking
8454           hardcode_minus_L=yes
8455           hardcode_libdir_flag_spec='-L$libdir'
8456           hardcode_libdir_separator=
8457           fi
8458           ;;
8459         esac
8460         shared_flag='-shared'
8461         if test "$aix_use_runtimelinking" = yes; then
8462           shared_flag="$shared_flag "'${wl}-G'
8463         fi
8464       else
8465         # not using gcc
8466         if test "$host_cpu" = ia64; then
8467         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8468         # chokes on -Wl,-G. The following line is correct:
8469           shared_flag='-G'
8470         else
8471           if test "$aix_use_runtimelinking" = yes; then
8472             shared_flag='${wl}-G'
8473           else
8474             shared_flag='${wl}-bM:SRE'
8475           fi
8476         fi
8477       fi
8478
8479       # It seems that -bexpall does not export symbols beginning with
8480       # underscore (_), so it is better to generate a list of symbols to export.
8481       always_export_symbols=yes
8482       if test "$aix_use_runtimelinking" = yes; then
8483         # Warning - without using the other runtime loading flags (-brtl),
8484         # -berok will link without error, but may produce a broken library.
8485         allow_undefined_flag='-berok'
8486        # Determine the default libpath from the value encoded in an empty executable.
8487        cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493
8494 int
8495 main ()
8496 {
8497
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext conftest$ac_exeext
8503 if { (ac_try="$ac_link"
8504 case "(($ac_try" in
8505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506   *) ac_try_echo=$ac_try;;
8507 esac
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509   (eval "$ac_link") 2>conftest.er1
8510   ac_status=$?
8511   grep -v '^ *+' conftest.er1 >conftest.err
8512   rm -f conftest.er1
8513   cat conftest.err >&5
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } && {
8516          test -z "$ac_c_werror_flag" ||
8517          test ! -s conftest.err
8518        } && test -s conftest$ac_exeext &&
8519        $as_test_x conftest$ac_exeext; then
8520
8521 lt_aix_libpath_sed='
8522     /Import File Strings/,/^$/ {
8523         /^0/ {
8524             s/^0  *\(.*\)$/\1/
8525             p
8526         }
8527     }'
8528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8529 # Check for a 64-bit object if we didn't find anything.
8530 if test -z "$aix_libpath"; then
8531   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8532 fi
8533 else
8534   echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537
8538 fi
8539
8540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8541       conftest$ac_exeext conftest.$ac_ext
8542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8543
8544        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8545         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"
8546        else
8547         if test "$host_cpu" = ia64; then
8548           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8549           allow_undefined_flag="-z nodefs"
8550           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"
8551         else
8552          # Determine the default libpath from the value encoded in an empty executable.
8553          cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559
8560 int
8561 main ()
8562 {
8563
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8570 case "(($ac_try" in
8571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572   *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575   (eval "$ac_link") 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } && {
8582          test -z "$ac_c_werror_flag" ||
8583          test ! -s conftest.err
8584        } && test -s conftest$ac_exeext &&
8585        $as_test_x conftest$ac_exeext; then
8586
8587 lt_aix_libpath_sed='
8588     /Import File Strings/,/^$/ {
8589         /^0/ {
8590             s/^0  *\(.*\)$/\1/
8591             p
8592         }
8593     }'
8594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8595 # Check for a 64-bit object if we didn't find anything.
8596 if test -z "$aix_libpath"; then
8597   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8598 fi
8599 else
8600   echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603
8604 fi
8605
8606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8607       conftest$ac_exeext conftest.$ac_ext
8608 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8609
8610          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8611           # Warning - without using the other run time loading flags,
8612           # -berok will link without error, but may produce a broken library.
8613           no_undefined_flag=' ${wl}-bernotok'
8614           allow_undefined_flag=' ${wl}-berok'
8615           # Exported symbols can be pulled into shared objects from archives
8616           whole_archive_flag_spec='$convenience'
8617           archive_cmds_need_lc=yes
8618           # This is similar to how AIX traditionally builds its shared libraries.
8619           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'
8620         fi
8621       fi
8622       ;;
8623
8624     amigaos*)
8625       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)'
8626       hardcode_libdir_flag_spec='-L$libdir'
8627       hardcode_minus_L=yes
8628       # see comment about different semantics on the GNU ld section
8629       ld_shlibs=no
8630       ;;
8631
8632     bsdi[45]*)
8633       export_dynamic_flag_spec=-rdynamic
8634       ;;
8635
8636     cygwin* | mingw* | pw32*)
8637       # When not using gcc, we currently assume that we are using
8638       # Microsoft Visual C++.
8639       # hardcode_libdir_flag_spec is actually meaningless, as there is
8640       # no search path for DLLs.
8641       hardcode_libdir_flag_spec=' '
8642       allow_undefined_flag=unsupported
8643       # Tell ltmain to make .lib files, not .a files.
8644       libext=lib
8645       # Tell ltmain to make .dll files, not .so files.
8646       shrext_cmds=".dll"
8647       # FIXME: Setting linknames here is a bad hack.
8648       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8649       # The linker will automatically build a .lib file if we build a DLL.
8650       old_archive_From_new_cmds='true'
8651       # FIXME: Should let the user specify the lib program.
8652       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8653       fix_srcfile_path='`cygpath -w "$srcfile"`'
8654       enable_shared_with_static_runtimes=yes
8655       ;;
8656
8657     darwin* | rhapsody*)
8658       case $host_os in
8659         rhapsody* | darwin1.[012])
8660          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8661          ;;
8662        *) # Darwin 1.3 on
8663          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8664            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8665          else
8666            case ${MACOSX_DEPLOYMENT_TARGET} in
8667              10.[012])
8668                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8669                ;;
8670              10.*)
8671                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8672                ;;
8673            esac
8674          fi
8675          ;;
8676       esac
8677       archive_cmds_need_lc=no
8678       hardcode_direct=no
8679       hardcode_automatic=yes
8680       hardcode_shlibpath_var=unsupported
8681       whole_archive_flag_spec=''
8682       link_all_deplibs=yes
8683     if test "$GCC" = yes ; then
8684         output_verbose_link_cmd='echo'
8685         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8686       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8687       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8688       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8689       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}'
8690     else
8691       case $cc_basename in
8692         xlc*)
8693          output_verbose_link_cmd='echo'
8694          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8695          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8696           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8697          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}'
8698           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}'
8699           ;;
8700        *)
8701          ld_shlibs=no
8702           ;;
8703       esac
8704     fi
8705       ;;
8706
8707     dgux*)
8708       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709       hardcode_libdir_flag_spec='-L$libdir'
8710       hardcode_shlibpath_var=no
8711       ;;
8712
8713     freebsd1*)
8714       ld_shlibs=no
8715       ;;
8716
8717     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8718     # support.  Future versions do this automatically, but an explicit c++rt0.o
8719     # does not break anything, and helps significantly (at the cost of a little
8720     # extra space).
8721     freebsd2.2*)
8722       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8723       hardcode_libdir_flag_spec='-R$libdir'
8724       hardcode_direct=yes
8725       hardcode_shlibpath_var=no
8726       ;;
8727
8728     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8729     freebsd2*)
8730       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8731       hardcode_direct=yes
8732       hardcode_minus_L=yes
8733       hardcode_shlibpath_var=no
8734       ;;
8735
8736     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8737     freebsd* | dragonfly*)
8738       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8739       hardcode_libdir_flag_spec='-R$libdir'
8740       hardcode_direct=yes
8741       hardcode_shlibpath_var=no
8742       ;;
8743
8744     hpux9*)
8745       if test "$GCC" = yes; then
8746         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'
8747       else
8748         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'
8749       fi
8750       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8751       hardcode_libdir_separator=:
8752       hardcode_direct=yes
8753
8754       # hardcode_minus_L: Not really in the search PATH,
8755       # but as the default location of the library.
8756       hardcode_minus_L=yes
8757       export_dynamic_flag_spec='${wl}-E'
8758       ;;
8759
8760     hpux10*)
8761       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8762         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8763       else
8764         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8765       fi
8766       if test "$with_gnu_ld" = no; then
8767         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8768         hardcode_libdir_separator=:
8769
8770         hardcode_direct=yes
8771         export_dynamic_flag_spec='${wl}-E'
8772
8773         # hardcode_minus_L: Not really in the search PATH,
8774         # but as the default location of the library.
8775         hardcode_minus_L=yes
8776       fi
8777       ;;
8778
8779     hpux11*)
8780       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8781         case $host_cpu in
8782         hppa*64*)
8783           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8784           ;;
8785         ia64*)
8786           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8787           ;;
8788         *)
8789           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8790           ;;
8791         esac
8792       else
8793         case $host_cpu in
8794         hppa*64*)
8795           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8796           ;;
8797         ia64*)
8798           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8799           ;;
8800         *)
8801           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8802           ;;
8803         esac
8804       fi
8805       if test "$with_gnu_ld" = no; then
8806         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807         hardcode_libdir_separator=:
8808
8809         case $host_cpu in
8810         hppa*64*|ia64*)
8811           hardcode_libdir_flag_spec_ld='+b $libdir'
8812           hardcode_direct=no
8813           hardcode_shlibpath_var=no
8814           ;;
8815         *)
8816           hardcode_direct=yes
8817           export_dynamic_flag_spec='${wl}-E'
8818
8819           # hardcode_minus_L: Not really in the search PATH,
8820           # but as the default location of the library.
8821           hardcode_minus_L=yes
8822           ;;
8823         esac
8824       fi
8825       ;;
8826
8827     irix5* | irix6* | nonstopux*)
8828       if test "$GCC" = yes; then
8829         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'
8830       else
8831         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'
8832         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8833       fi
8834       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835       hardcode_libdir_separator=:
8836       link_all_deplibs=yes
8837       ;;
8838
8839     netbsd*)
8840       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8841         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8842       else
8843         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8844       fi
8845       hardcode_libdir_flag_spec='-R$libdir'
8846       hardcode_direct=yes
8847       hardcode_shlibpath_var=no
8848       ;;
8849
8850     newsos6)
8851       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8852       hardcode_direct=yes
8853       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854       hardcode_libdir_separator=:
8855       hardcode_shlibpath_var=no
8856       ;;
8857
8858     openbsd*)
8859       if test -f /usr/libexec/ld.so; then
8860         hardcode_direct=yes
8861         hardcode_shlibpath_var=no
8862         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8863           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8864           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8865           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866           export_dynamic_flag_spec='${wl}-E'
8867         else
8868           case $host_os in
8869            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8870              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8871              hardcode_libdir_flag_spec='-R$libdir'
8872              ;;
8873            *)
8874              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8875              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8876              ;;
8877           esac
8878         fi
8879       else
8880         ld_shlibs=no
8881       fi
8882       ;;
8883
8884     os2*)
8885       hardcode_libdir_flag_spec='-L$libdir'
8886       hardcode_minus_L=yes
8887       allow_undefined_flag=unsupported
8888       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'
8889       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8890       ;;
8891
8892     osf3*)
8893       if test "$GCC" = yes; then
8894         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8895         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'
8896       else
8897         allow_undefined_flag=' -expect_unresolved \*'
8898         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'
8899       fi
8900       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8901       hardcode_libdir_separator=:
8902       ;;
8903
8904     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8905       if test "$GCC" = yes; then
8906         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8907         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'
8908         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8909       else
8910         allow_undefined_flag=' -expect_unresolved \*'
8911         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'
8912         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8913         $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'
8914
8915         # Both c and cxx compiler support -rpath directly
8916         hardcode_libdir_flag_spec='-rpath $libdir'
8917       fi
8918       hardcode_libdir_separator=:
8919       ;;
8920
8921     solaris*)
8922       no_undefined_flag=' -z text'
8923       if test "$GCC" = yes; then
8924         wlarc='${wl}'
8925         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8926         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8927           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8928       else
8929         wlarc=''
8930         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8932         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8933       fi
8934       hardcode_libdir_flag_spec='-R$libdir'
8935       hardcode_shlibpath_var=no
8936       case $host_os in
8937       solaris2.[0-5] | solaris2.[0-5].*) ;;
8938       *)
8939         # The compiler driver will combine and reorder linker options,
8940         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8941         # but is careful enough not to reorder.
8942         # Supported since Solaris 2.6 (maybe 2.5.1?)
8943         if test "$GCC" = yes; then
8944           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8945         else
8946           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8947         fi
8948         ;;
8949       esac
8950       link_all_deplibs=yes
8951       ;;
8952
8953     sunos4*)
8954       if test "x$host_vendor" = xsequent; then
8955         # Use $CC to link under sequent, because it throws in some extra .o
8956         # files that make .init and .fini sections work.
8957         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8958       else
8959         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8960       fi
8961       hardcode_libdir_flag_spec='-L$libdir'
8962       hardcode_direct=yes
8963       hardcode_minus_L=yes
8964       hardcode_shlibpath_var=no
8965       ;;
8966
8967     sysv4)
8968       case $host_vendor in
8969         sni)
8970           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971           hardcode_direct=yes # is this really true???
8972         ;;
8973         siemens)
8974           ## LD is ld it makes a PLAMLIB
8975           ## CC just makes a GrossModule.
8976           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8977           reload_cmds='$CC -r -o $output$reload_objs'
8978           hardcode_direct=no
8979         ;;
8980         motorola)
8981           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8983         ;;
8984       esac
8985       runpath_var='LD_RUN_PATH'
8986       hardcode_shlibpath_var=no
8987       ;;
8988
8989     sysv4.3*)
8990       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991       hardcode_shlibpath_var=no
8992       export_dynamic_flag_spec='-Bexport'
8993       ;;
8994
8995     sysv4*MP*)
8996       if test -d /usr/nec; then
8997         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998         hardcode_shlibpath_var=no
8999         runpath_var=LD_RUN_PATH
9000         hardcode_runpath_var=yes
9001         ld_shlibs=yes
9002       fi
9003       ;;
9004
9005     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9006       no_undefined_flag='${wl}-z,text'
9007       archive_cmds_need_lc=no
9008       hardcode_shlibpath_var=no
9009       runpath_var='LD_RUN_PATH'
9010
9011       if test "$GCC" = yes; then
9012         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9014       else
9015         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9016         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9017       fi
9018       ;;
9019
9020     sysv5* | sco3.2v5* | sco5v6*)
9021       # Note: We can NOT use -z defs as we might desire, because we do not
9022       # link with -lc, and that would cause any symbols used from libc to
9023       # always be unresolved, which means just about no library would
9024       # ever link correctly.  If we're not using GNU ld we use -z text
9025       # though, which does catch some bad symbols but isn't as heavy-handed
9026       # as -z defs.
9027       no_undefined_flag='${wl}-z,text'
9028       allow_undefined_flag='${wl}-z,nodefs'
9029       archive_cmds_need_lc=no
9030       hardcode_shlibpath_var=no
9031       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9032       hardcode_libdir_separator=':'
9033       link_all_deplibs=yes
9034       export_dynamic_flag_spec='${wl}-Bexport'
9035       runpath_var='LD_RUN_PATH'
9036
9037       if test "$GCC" = yes; then
9038         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9040       else
9041         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9042         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9043       fi
9044       ;;
9045
9046     uts4*)
9047       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048       hardcode_libdir_flag_spec='-L$libdir'
9049       hardcode_shlibpath_var=no
9050       ;;
9051
9052     *)
9053       ld_shlibs=no
9054       ;;
9055     esac
9056   fi
9057
9058 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9059 echo "${ECHO_T}$ld_shlibs" >&6; }
9060 test "$ld_shlibs" = no && can_build_shared=no
9061
9062 #
9063 # Do we need to explicitly link libc?
9064 #
9065 case "x$archive_cmds_need_lc" in
9066 x|xyes)
9067   # Assume -lc should be added
9068   archive_cmds_need_lc=yes
9069
9070   if test "$enable_shared" = yes && test "$GCC" = yes; then
9071     case $archive_cmds in
9072     *'~'*)
9073       # FIXME: we may have to deal with multi-command sequences.
9074       ;;
9075     '$CC '*)
9076       # Test whether the compiler implicitly links with -lc since on some
9077       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9078       # to ld, don't add -lc before -lgcc.
9079       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9080 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9081       $rm conftest*
9082       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9083
9084       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9085   (eval $ac_compile) 2>&5
9086   ac_status=$?
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } 2>conftest.err; then
9089         soname=conftest
9090         lib=conftest
9091         libobjs=conftest.$ac_objext
9092         deplibs=
9093         wl=$lt_prog_compiler_wl
9094         pic_flag=$lt_prog_compiler_pic
9095         compiler_flags=-v
9096         linker_flags=-v
9097         verstring=
9098         output_objdir=.
9099         libname=conftest
9100         lt_save_allow_undefined_flag=$allow_undefined_flag
9101         allow_undefined_flag=
9102         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9103   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9104   ac_status=$?
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); }
9107         then
9108           archive_cmds_need_lc=no
9109         else
9110           archive_cmds_need_lc=yes
9111         fi
9112         allow_undefined_flag=$lt_save_allow_undefined_flag
9113       else
9114         cat conftest.err 1>&5
9115       fi
9116       $rm conftest*
9117       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9118 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9119       ;;
9120     esac
9121   fi
9122   ;;
9123 esac
9124
9125 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9126 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9127 library_names_spec=
9128 libname_spec='lib$name'
9129 soname_spec=
9130 shrext_cmds=".so"
9131 postinstall_cmds=
9132 postuninstall_cmds=
9133 finish_cmds=
9134 finish_eval=
9135 shlibpath_var=
9136 shlibpath_overrides_runpath=unknown
9137 version_type=none
9138 dynamic_linker="$host_os ld.so"
9139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9140
9141 if test "$GCC" = yes; then
9142   case $host_os in
9143     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9144     *) lt_awk_arg="/^libraries:/" ;;
9145   esac
9146   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9147   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9148     # if the path contains ";" then we assume it to be the separator
9149     # otherwise default to the standard path separator (i.e. ":") - it is
9150     # assumed that no part of a normal pathname contains ";" but that should
9151     # okay in the real world where ";" in dirpaths is itself problematic.
9152     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9153   else
9154     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9155   fi
9156   # Ok, now we have the path, separated by spaces, we can step through it
9157   # and add multilib dir if necessary.
9158   lt_tmp_lt_search_path_spec=
9159   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9160   for lt_sys_path in $lt_search_path_spec; do
9161     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9162       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9163     else
9164       test -d "$lt_sys_path" && \
9165         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9166     fi
9167   done
9168   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9169 BEGIN {RS=" "; FS="/|\n";} {
9170   lt_foo="";
9171   lt_count=0;
9172   for (lt_i = NF; lt_i > 0; lt_i--) {
9173     if ($lt_i != "" && $lt_i != ".") {
9174       if ($lt_i == "..") {
9175         lt_count++;
9176       } else {
9177         if (lt_count == 0) {
9178           lt_foo="/" $lt_i lt_foo;
9179         } else {
9180           lt_count--;
9181         }
9182       }
9183     }
9184   }
9185   if (lt_foo != "") { lt_freq[lt_foo]++; }
9186   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9187 }'`
9188   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9189 else
9190   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9191 fi
9192 need_lib_prefix=no
9193 hardcode_into_libs=no
9194
9195 # when you set need_version to no, make sure it does not cause -set_version
9196 # flags to be left without arguments
9197 need_version=no
9198
9199 case $host_os in
9200 aix3*)
9201   version_type=linux
9202   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9203   shlibpath_var=LIBPATH
9204
9205   # AIX 3 has no versioning support, so we append a major version to the name.
9206   soname_spec='${libname}${release}${shared_ext}$major'
9207   ;;
9208
9209 aix4* | aix5*)
9210   version_type=linux
9211   need_lib_prefix=no
9212   need_version=no
9213   hardcode_into_libs=yes
9214   if test "$host_cpu" = ia64; then
9215     # AIX 5 supports IA64
9216     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9217     shlibpath_var=LD_LIBRARY_PATH
9218   else
9219     # With GCC up to 2.95.x, collect2 would create an import file
9220     # for dependence libraries.  The import file would start with
9221     # the line `#! .'.  This would cause the generated library to
9222     # depend on `.', always an invalid library.  This was fixed in
9223     # development snapshots of GCC prior to 3.0.
9224     case $host_os in
9225       aix4 | aix4.[01] | aix4.[01].*)
9226       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9227            echo ' yes '
9228            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9229         :
9230       else
9231         can_build_shared=no
9232       fi
9233       ;;
9234     esac
9235     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9236     # soname into executable. Probably we can add versioning support to
9237     # collect2, so additional links can be useful in future.
9238     if test "$aix_use_runtimelinking" = yes; then
9239       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9240       # instead of lib<name>.a to let people know that these are not
9241       # typical AIX shared libraries.
9242       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243     else
9244       # We preserve .a as extension for shared libraries through AIX4.2
9245       # and later when we are not doing run time linking.
9246       library_names_spec='${libname}${release}.a $libname.a'
9247       soname_spec='${libname}${release}${shared_ext}$major'
9248     fi
9249     shlibpath_var=LIBPATH
9250   fi
9251   ;;
9252
9253 amigaos*)
9254   library_names_spec='$libname.ixlibrary $libname.a'
9255   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9256   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'
9257   ;;
9258
9259 beos*)
9260   library_names_spec='${libname}${shared_ext}'
9261   dynamic_linker="$host_os ld.so"
9262   shlibpath_var=LIBRARY_PATH
9263   ;;
9264
9265 bsdi[45]*)
9266   version_type=linux
9267   need_version=no
9268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269   soname_spec='${libname}${release}${shared_ext}$major'
9270   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9271   shlibpath_var=LD_LIBRARY_PATH
9272   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9273   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9274   # the default ld.so.conf also contains /usr/contrib/lib and
9275   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9276   # libtool to hard-code these into programs
9277   ;;
9278
9279 cygwin* | mingw* | pw32*)
9280   version_type=windows
9281   shrext_cmds=".dll"
9282   need_version=no
9283   need_lib_prefix=no
9284
9285   case $GCC,$host_os in
9286   yes,cygwin* | yes,mingw* | yes,pw32*)
9287     library_names_spec='$libname.dll.a'
9288     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9289     postinstall_cmds='base_file=`basename \${file}`~
9290       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9291       dldir=$destdir/`dirname \$dlpath`~
9292       test -d \$dldir || mkdir -p \$dldir~
9293       $install_prog $dir/$dlname \$dldir/$dlname~
9294       chmod a+x \$dldir/$dlname'
9295     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9296       dlpath=$dir/\$dldll~
9297        $rm \$dlpath'
9298     shlibpath_overrides_runpath=yes
9299
9300     case $host_os in
9301     cygwin*)
9302       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9303       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9304       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9305       ;;
9306     mingw*)
9307       # MinGW DLLs use traditional 'lib' prefix
9308       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9309       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9310       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9311         # It is most probably a Windows format PATH printed by
9312         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9313         # path with ; separators, and with drive letters. We can handle the
9314         # drive letters (cygwin fileutils understands them), so leave them,
9315         # especially as we might pass files found there to a mingw objdump,
9316         # which wouldn't understand a cygwinified path. Ahh.
9317         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9318       else
9319         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9320       fi
9321       ;;
9322     pw32*)
9323       # pw32 DLLs use 'pw' prefix rather than 'lib'
9324       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9325       ;;
9326     esac
9327     ;;
9328
9329   *)
9330     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9331     ;;
9332   esac
9333   dynamic_linker='Win32 ld.exe'
9334   # FIXME: first we should search . and the directory the executable is in
9335   shlibpath_var=PATH
9336   ;;
9337
9338 darwin* | rhapsody*)
9339   dynamic_linker="$host_os dyld"
9340   version_type=darwin
9341   need_lib_prefix=no
9342   need_version=no
9343   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9344   soname_spec='${libname}${release}${major}$shared_ext'
9345   shlibpath_overrides_runpath=yes
9346   shlibpath_var=DYLD_LIBRARY_PATH
9347   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9348
9349   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9350   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9351   ;;
9352
9353 dgux*)
9354   version_type=linux
9355   need_lib_prefix=no
9356   need_version=no
9357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9358   soname_spec='${libname}${release}${shared_ext}$major'
9359   shlibpath_var=LD_LIBRARY_PATH
9360   ;;
9361
9362 freebsd1*)
9363   dynamic_linker=no
9364   ;;
9365
9366 freebsd* | dragonfly*)
9367   # DragonFly does not have aout.  When/if they implement a new
9368   # versioning mechanism, adjust this.
9369   if test -x /usr/bin/objformat; then
9370     objformat=`/usr/bin/objformat`
9371   else
9372     case $host_os in
9373     freebsd[123]*) objformat=aout ;;
9374     *) objformat=elf ;;
9375     esac
9376   fi
9377   version_type=freebsd-$objformat
9378   case $version_type in
9379     freebsd-elf*)
9380       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9381       need_version=no
9382       need_lib_prefix=no
9383       ;;
9384     freebsd-*)
9385       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9386       need_version=no
9387       ;;
9388   esac
9389   shlibpath_var=LD_LIBRARY_PATH
9390   case $host_os in
9391   freebsd2*)
9392     shlibpath_overrides_runpath=yes
9393     ;;
9394   freebsd3.[01]* | freebsdelf3.[01]*)
9395     shlibpath_overrides_runpath=yes
9396     hardcode_into_libs=yes
9397     ;;
9398   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9399   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9400     shlibpath_overrides_runpath=no
9401     hardcode_into_libs=yes
9402     ;;
9403   *) # from 4.6 on, and DragonFly
9404     shlibpath_overrides_runpath=yes
9405     hardcode_into_libs=yes
9406     ;;
9407   esac
9408   ;;
9409
9410 gnu*)
9411   version_type=linux
9412   need_lib_prefix=no
9413   need_version=no
9414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9415   soname_spec='${libname}${release}${shared_ext}$major'
9416   shlibpath_var=LD_LIBRARY_PATH
9417   hardcode_into_libs=yes
9418   ;;
9419
9420 hpux9* | hpux10* | hpux11*)
9421   # Give a soname corresponding to the major version so that dld.sl refuses to
9422   # link against other versions.
9423   version_type=sunos
9424   need_lib_prefix=no
9425   need_version=no
9426   case $host_cpu in
9427   ia64*)
9428     shrext_cmds='.so'
9429     hardcode_into_libs=yes
9430     dynamic_linker="$host_os dld.so"
9431     shlibpath_var=LD_LIBRARY_PATH
9432     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434     soname_spec='${libname}${release}${shared_ext}$major'
9435     if test "X$HPUX_IA64_MODE" = X32; then
9436       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9437     else
9438       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9439     fi
9440     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9441     ;;
9442    hppa*64*)
9443      shrext_cmds='.sl'
9444      hardcode_into_libs=yes
9445      dynamic_linker="$host_os dld.sl"
9446      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9447      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449      soname_spec='${libname}${release}${shared_ext}$major'
9450      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9451      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9452      ;;
9453    *)
9454     shrext_cmds='.sl'
9455     dynamic_linker="$host_os dld.sl"
9456     shlibpath_var=SHLIB_PATH
9457     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459     soname_spec='${libname}${release}${shared_ext}$major'
9460     ;;
9461   esac
9462   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9463   postinstall_cmds='chmod 555 $lib'
9464   ;;
9465
9466 interix[3-9]*)
9467   version_type=linux
9468   need_lib_prefix=no
9469   need_version=no
9470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471   soname_spec='${libname}${release}${shared_ext}$major'
9472   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9473   shlibpath_var=LD_LIBRARY_PATH
9474   shlibpath_overrides_runpath=no
9475   hardcode_into_libs=yes
9476   ;;
9477
9478 irix5* | irix6* | nonstopux*)
9479   case $host_os in
9480     nonstopux*) version_type=nonstopux ;;
9481     *)
9482         if test "$lt_cv_prog_gnu_ld" = yes; then
9483                 version_type=linux
9484         else
9485                 version_type=irix
9486         fi ;;
9487   esac
9488   need_lib_prefix=no
9489   need_version=no
9490   soname_spec='${libname}${release}${shared_ext}$major'
9491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9492   case $host_os in
9493   irix5* | nonstopux*)
9494     libsuff= shlibsuff=
9495     ;;
9496   *)
9497     case $LD in # libtool.m4 will add one of these switches to LD
9498     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9499       libsuff= shlibsuff= libmagic=32-bit;;
9500     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9501       libsuff=32 shlibsuff=N32 libmagic=N32;;
9502     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9503       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9504     *) libsuff= shlibsuff= libmagic=never-match;;
9505     esac
9506     ;;
9507   esac
9508   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9509   shlibpath_overrides_runpath=no
9510   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9511   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9512   hardcode_into_libs=yes
9513   ;;
9514
9515 # No shared lib support for Linux oldld, aout, or coff.
9516 linux*oldld* | linux*aout* | linux*coff*)
9517   dynamic_linker=no
9518   ;;
9519
9520 # This must be Linux ELF.
9521 linux* | k*bsd*-gnu)
9522   version_type=linux
9523   need_lib_prefix=no
9524   need_version=no
9525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526   soname_spec='${libname}${release}${shared_ext}$major'
9527   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   shlibpath_overrides_runpath=no
9530   # This implies no fast_install, which is unacceptable.
9531   # Some rework will be needed to allow for fast_install
9532   # before this can be enabled.
9533   hardcode_into_libs=yes
9534
9535   # Append ld.so.conf contents to the search path
9536   if test -f /etc/ld.so.conf; then
9537     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' ' '`
9538     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9539   fi
9540
9541   # We used to test for /lib/ld.so.1 and disable shared libraries on
9542   # powerpc, because MkLinux only supported shared libraries with the
9543   # GNU dynamic linker.  Since this was broken with cross compilers,
9544   # most powerpc-linux boxes support dynamic linking these days and
9545   # people can always --disable-shared, the test was removed, and we
9546   # assume the GNU/Linux dynamic linker is in use.
9547   dynamic_linker='GNU/Linux ld.so'
9548   ;;
9549
9550 netbsd*)
9551   version_type=sunos
9552   need_lib_prefix=no
9553   need_version=no
9554   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9556     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9557     dynamic_linker='NetBSD (a.out) ld.so'
9558   else
9559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9560     soname_spec='${libname}${release}${shared_ext}$major'
9561     dynamic_linker='NetBSD ld.elf_so'
9562   fi
9563   shlibpath_var=LD_LIBRARY_PATH
9564   shlibpath_overrides_runpath=yes
9565   hardcode_into_libs=yes
9566   ;;
9567
9568 newsos6)
9569   version_type=linux
9570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571   shlibpath_var=LD_LIBRARY_PATH
9572   shlibpath_overrides_runpath=yes
9573   ;;
9574
9575 nto-qnx*)
9576   version_type=linux
9577   need_lib_prefix=no
9578   need_version=no
9579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580   soname_spec='${libname}${release}${shared_ext}$major'
9581   shlibpath_var=LD_LIBRARY_PATH
9582   shlibpath_overrides_runpath=yes
9583   ;;
9584
9585 openbsd*)
9586   version_type=sunos
9587   sys_lib_dlsearch_path_spec="/usr/lib"
9588   need_lib_prefix=no
9589   need_version=no
9590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9591   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9592   shlibpath_var=LD_LIBRARY_PATH
9593   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9594     case $host_os in
9595       openbsd2.[89] | openbsd2.[89].*)
9596         shlibpath_overrides_runpath=no
9597         ;;
9598       *)
9599         shlibpath_overrides_runpath=yes
9600         ;;
9601       esac
9602   else
9603     shlibpath_overrides_runpath=yes
9604   fi
9605   ;;
9606
9607 os2*)
9608   libname_spec='$name'
9609   shrext_cmds=".dll"
9610   need_lib_prefix=no
9611   library_names_spec='$libname${shared_ext} $libname.a'
9612   dynamic_linker='OS/2 ld.exe'
9613   shlibpath_var=LIBPATH
9614   ;;
9615
9616 osf3* | osf4* | osf5*)
9617   version_type=osf
9618   need_lib_prefix=no
9619   need_version=no
9620   soname_spec='${libname}${release}${shared_ext}$major'
9621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622   shlibpath_var=LD_LIBRARY_PATH
9623   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9624   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9625   ;;
9626
9627 rdos*)
9628   dynamic_linker=no
9629   ;;
9630
9631 solaris*)
9632   version_type=linux
9633   need_lib_prefix=no
9634   need_version=no
9635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636   soname_spec='${libname}${release}${shared_ext}$major'
9637   shlibpath_var=LD_LIBRARY_PATH
9638   shlibpath_overrides_runpath=yes
9639   hardcode_into_libs=yes
9640   # ldd complains unless libraries are executable
9641   postinstall_cmds='chmod +x $lib'
9642   ;;
9643
9644 sunos4*)
9645   version_type=sunos
9646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9647   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9648   shlibpath_var=LD_LIBRARY_PATH
9649   shlibpath_overrides_runpath=yes
9650   if test "$with_gnu_ld" = yes; then
9651     need_lib_prefix=no
9652   fi
9653   need_version=no
9654   ;;
9655
9656 sysv4 | sysv4.3*)
9657   version_type=linux
9658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659   soname_spec='${libname}${release}${shared_ext}$major'
9660   shlibpath_var=LD_LIBRARY_PATH
9661   case $host_vendor in
9662     sni)
9663       shlibpath_overrides_runpath=no
9664       need_lib_prefix=no
9665       export_dynamic_flag_spec='${wl}-Blargedynsym'
9666       runpath_var=LD_RUN_PATH
9667       ;;
9668     siemens)
9669       need_lib_prefix=no
9670       ;;
9671     motorola)
9672       need_lib_prefix=no
9673       need_version=no
9674       shlibpath_overrides_runpath=no
9675       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9676       ;;
9677   esac
9678   ;;
9679
9680 sysv4*MP*)
9681   if test -d /usr/nec ;then
9682     version_type=linux
9683     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9684     soname_spec='$libname${shared_ext}.$major'
9685     shlibpath_var=LD_LIBRARY_PATH
9686   fi
9687   ;;
9688
9689 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9690   version_type=freebsd-elf
9691   need_lib_prefix=no
9692   need_version=no
9693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9694   soname_spec='${libname}${release}${shared_ext}$major'
9695   shlibpath_var=LD_LIBRARY_PATH
9696   hardcode_into_libs=yes
9697   if test "$with_gnu_ld" = yes; then
9698     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9699     shlibpath_overrides_runpath=no
9700   else
9701     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9702     shlibpath_overrides_runpath=yes
9703     case $host_os in
9704       sco3.2v5*)
9705         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9706         ;;
9707     esac
9708   fi
9709   sys_lib_dlsearch_path_spec='/usr/lib'
9710   ;;
9711
9712 uts4*)
9713   version_type=linux
9714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715   soname_spec='${libname}${release}${shared_ext}$major'
9716   shlibpath_var=LD_LIBRARY_PATH
9717   ;;
9718
9719 *)
9720   dynamic_linker=no
9721   ;;
9722 esac
9723 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9724 echo "${ECHO_T}$dynamic_linker" >&6; }
9725 test "$dynamic_linker" = no && can_build_shared=no
9726
9727 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9728 if test "$GCC" = yes; then
9729   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9730 fi
9731
9732 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9733 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9734 hardcode_action=
9735 if test -n "$hardcode_libdir_flag_spec" || \
9736    test -n "$runpath_var" || \
9737    test "X$hardcode_automatic" = "Xyes" ; then
9738
9739   # We can hardcode non-existent directories.
9740   if test "$hardcode_direct" != no &&
9741      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9742      # have to relink, otherwise we might link with an installed library
9743      # when we should be linking with a yet-to-be-installed one
9744      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9745      test "$hardcode_minus_L" != no; then
9746     # Linking always hardcodes the temporary library directory.
9747     hardcode_action=relink
9748   else
9749     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9750     hardcode_action=immediate
9751   fi
9752 else
9753   # We cannot hardcode anything, or else we can only hardcode existing
9754   # directories.
9755   hardcode_action=unsupported
9756 fi
9757 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9758 echo "${ECHO_T}$hardcode_action" >&6; }
9759
9760 if test "$hardcode_action" = relink; then
9761   # Fast installation is not supported
9762   enable_fast_install=no
9763 elif test "$shlibpath_overrides_runpath" = yes ||
9764      test "$enable_shared" = no; then
9765   # Fast installation is not necessary
9766   enable_fast_install=needless
9767 fi
9768
9769 striplib=
9770 old_striplib=
9771 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9772 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9773 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9774   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9775   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9776   { echo "$as_me:$LINENO: result: yes" >&5
9777 echo "${ECHO_T}yes" >&6; }
9778 else
9779 # FIXME - insert some real tests, host_os isn't really good enough
9780   case $host_os in
9781    darwin*)
9782        if test -n "$STRIP" ; then
9783          striplib="$STRIP -x"
9784          old_striplib="$STRIP -S"
9785          { echo "$as_me:$LINENO: result: yes" >&5
9786 echo "${ECHO_T}yes" >&6; }
9787        else
9788   { echo "$as_me:$LINENO: result: no" >&5
9789 echo "${ECHO_T}no" >&6; }
9790 fi
9791        ;;
9792    *)
9793   { echo "$as_me:$LINENO: result: no" >&5
9794 echo "${ECHO_T}no" >&6; }
9795     ;;
9796   esac
9797 fi
9798
9799 if test "x$enable_dlopen" != xyes; then
9800   enable_dlopen=unknown
9801   enable_dlopen_self=unknown
9802   enable_dlopen_self_static=unknown
9803 else
9804   lt_cv_dlopen=no
9805   lt_cv_dlopen_libs=
9806
9807   case $host_os in
9808   beos*)
9809     lt_cv_dlopen="load_add_on"
9810     lt_cv_dlopen_libs=
9811     lt_cv_dlopen_self=yes
9812     ;;
9813
9814   mingw* | pw32*)
9815     lt_cv_dlopen="LoadLibrary"
9816     lt_cv_dlopen_libs=
9817    ;;
9818
9819   cygwin*)
9820     lt_cv_dlopen="dlopen"
9821     lt_cv_dlopen_libs=
9822    ;;
9823
9824   darwin*)
9825   # if libdl is installed we need to link against it
9826     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9827 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9828 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   ac_check_lib_save_LIBS=$LIBS
9832 LIBS="-ldl  $LIBS"
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h.  */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h.  */
9839
9840 /* Override any GCC internal prototype to avoid an error.
9841    Use char because int might match the return type of a GCC
9842    builtin and then its argument prototype would still apply.  */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 char dlopen ();
9847 int
9848 main ()
9849 {
9850 return dlopen ();
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9857 case "(($ac_try" in
9858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859   *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862   (eval "$ac_link") 2>conftest.er1
9863   ac_status=$?
9864   grep -v '^ *+' conftest.er1 >conftest.err
9865   rm -f conftest.er1
9866   cat conftest.err >&5
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); } && {
9869          test -z "$ac_c_werror_flag" ||
9870          test ! -s conftest.err
9871        } && test -s conftest$ac_exeext &&
9872        $as_test_x conftest$ac_exeext; then
9873   ac_cv_lib_dl_dlopen=yes
9874 else
9875   echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9877
9878         ac_cv_lib_dl_dlopen=no
9879 fi
9880
9881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9882       conftest$ac_exeext conftest.$ac_ext
9883 LIBS=$ac_check_lib_save_LIBS
9884 fi
9885 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9886 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9887 if test $ac_cv_lib_dl_dlopen = yes; then
9888   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9889 else
9890
9891     lt_cv_dlopen="dyld"
9892     lt_cv_dlopen_libs=
9893     lt_cv_dlopen_self=yes
9894
9895 fi
9896
9897    ;;
9898
9899   *)
9900     { echo "$as_me:$LINENO: checking for shl_load" >&5
9901 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9902 if test "${ac_cv_func_shl_load+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9913 #define shl_load innocuous_shl_load
9914
9915 /* System header to define __stub macros and hopefully few prototypes,
9916     which can conflict with char shl_load (); below.
9917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918     <limits.h> exists even on freestanding compilers.  */
9919
9920 #ifdef __STDC__
9921 # include <limits.h>
9922 #else
9923 # include <assert.h>
9924 #endif
9925
9926 #undef shl_load
9927
9928 /* Override any GCC internal prototype to avoid an error.
9929    Use char because int might match the return type of a GCC
9930    builtin and then its argument prototype would still apply.  */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 char shl_load ();
9935 /* The GNU C library defines this for functions which it implements
9936     to always fail with ENOSYS.  Some functions are actually named
9937     something starting with __ and the normal name is an alias.  */
9938 #if defined __stub_shl_load || defined __stub___shl_load
9939 choke me
9940 #endif
9941
9942 int
9943 main ()
9944 {
9945 return shl_load ();
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9952 case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_link") 2>conftest.er1
9958   ac_status=$?
9959   grep -v '^ *+' conftest.er1 >conftest.err
9960   rm -f conftest.er1
9961   cat conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } && {
9964          test -z "$ac_c_werror_flag" ||
9965          test ! -s conftest.err
9966        } && test -s conftest$ac_exeext &&
9967        $as_test_x conftest$ac_exeext; then
9968   ac_cv_func_shl_load=yes
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973         ac_cv_func_shl_load=no
9974 fi
9975
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977       conftest$ac_exeext conftest.$ac_ext
9978 fi
9979 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9981 if test $ac_cv_func_shl_load = yes; then
9982   lt_cv_dlopen="shl_load"
9983 else
9984   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9986 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987   echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989   ac_check_lib_save_LIBS=$LIBS
9990 LIBS="-ldld  $LIBS"
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h.  */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h.  */
9997
9998 /* Override any GCC internal prototype to avoid an error.
9999    Use char because int might match the return type of a GCC
10000    builtin and then its argument prototype would still apply.  */
10001 #ifdef __cplusplus
10002 extern "C"
10003 #endif
10004 char shl_load ();
10005 int
10006 main ()
10007 {
10008 return shl_load ();
10009   ;
10010   return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (ac_try="$ac_link"
10015 case "(($ac_try" in
10016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017   *) ac_try_echo=$ac_try;;
10018 esac
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020   (eval "$ac_link") 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } && {
10027          test -z "$ac_c_werror_flag" ||
10028          test ! -s conftest.err
10029        } && test -s conftest$ac_exeext &&
10030        $as_test_x conftest$ac_exeext; then
10031   ac_cv_lib_dld_shl_load=yes
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036         ac_cv_lib_dld_shl_load=no
10037 fi
10038
10039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10040       conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_lib_save_LIBS
10042 fi
10043 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10044 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10045 if test $ac_cv_lib_dld_shl_load = yes; then
10046   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10047 else
10048   { echo "$as_me:$LINENO: checking for dlopen" >&5
10049 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10050 if test "${ac_cv_func_dlopen+set}" = set; then
10051   echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053   cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10061 #define dlopen innocuous_dlopen
10062
10063 /* System header to define __stub macros and hopefully few prototypes,
10064     which can conflict with char dlopen (); below.
10065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10066     <limits.h> exists even on freestanding compilers.  */
10067
10068 #ifdef __STDC__
10069 # include <limits.h>
10070 #else
10071 # include <assert.h>
10072 #endif
10073
10074 #undef dlopen
10075
10076 /* Override any GCC internal prototype to avoid an error.
10077    Use char because int might match the return type of a GCC
10078    builtin and then its argument prototype would still apply.  */
10079 #ifdef __cplusplus
10080 extern "C"
10081 #endif
10082 char dlopen ();
10083 /* The GNU C library defines this for functions which it implements
10084     to always fail with ENOSYS.  Some functions are actually named
10085     something starting with __ and the normal name is an alias.  */
10086 #if defined __stub_dlopen || defined __stub___dlopen
10087 choke me
10088 #endif
10089
10090 int
10091 main ()
10092 {
10093 return dlopen ();
10094   ;
10095   return 0;
10096 }
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_link") 2>conftest.er1
10106   ac_status=$?
10107   grep -v '^ *+' conftest.er1 >conftest.err
10108   rm -f conftest.er1
10109   cat conftest.err >&5
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); } && {
10112          test -z "$ac_c_werror_flag" ||
10113          test ! -s conftest.err
10114        } && test -s conftest$ac_exeext &&
10115        $as_test_x conftest$ac_exeext; then
10116   ac_cv_func_dlopen=yes
10117 else
10118   echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10120
10121         ac_cv_func_dlopen=no
10122 fi
10123
10124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10125       conftest$ac_exeext conftest.$ac_ext
10126 fi
10127 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10128 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10129 if test $ac_cv_func_dlopen = yes; then
10130   lt_cv_dlopen="dlopen"
10131 else
10132   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10133 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10134 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10135   echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137   ac_check_lib_save_LIBS=$LIBS
10138 LIBS="-ldl  $LIBS"
10139 cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h.  */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h.  */
10145
10146 /* Override any GCC internal prototype to avoid an error.
10147    Use char because int might match the return type of a GCC
10148    builtin and then its argument prototype would still apply.  */
10149 #ifdef __cplusplus
10150 extern "C"
10151 #endif
10152 char dlopen ();
10153 int
10154 main ()
10155 {
10156 return dlopen ();
10157   ;
10158   return 0;
10159 }
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165   *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168   (eval "$ac_link") 2>conftest.er1
10169   ac_status=$?
10170   grep -v '^ *+' conftest.er1 >conftest.err
10171   rm -f conftest.er1
10172   cat conftest.err >&5
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } && {
10175          test -z "$ac_c_werror_flag" ||
10176          test ! -s conftest.err
10177        } && test -s conftest$ac_exeext &&
10178        $as_test_x conftest$ac_exeext; then
10179   ac_cv_lib_dl_dlopen=yes
10180 else
10181   echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184         ac_cv_lib_dl_dlopen=no
10185 fi
10186
10187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188       conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10190 fi
10191 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10192 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10193 if test $ac_cv_lib_dl_dlopen = yes; then
10194   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10195 else
10196   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10197 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10198 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10199   echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201   ac_check_lib_save_LIBS=$LIBS
10202 LIBS="-lsvld  $LIBS"
10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h.  */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h.  */
10209
10210 /* Override any GCC internal prototype to avoid an error.
10211    Use char because int might match the return type of a GCC
10212    builtin and then its argument prototype would still apply.  */
10213 #ifdef __cplusplus
10214 extern "C"
10215 #endif
10216 char dlopen ();
10217 int
10218 main ()
10219 {
10220 return dlopen ();
10221   ;
10222   return 0;
10223 }
10224 _ACEOF
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (ac_try="$ac_link"
10227 case "(($ac_try" in
10228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229   *) ac_try_echo=$ac_try;;
10230 esac
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232   (eval "$ac_link") 2>conftest.er1
10233   ac_status=$?
10234   grep -v '^ *+' conftest.er1 >conftest.err
10235   rm -f conftest.er1
10236   cat conftest.err >&5
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); } && {
10239          test -z "$ac_c_werror_flag" ||
10240          test ! -s conftest.err
10241        } && test -s conftest$ac_exeext &&
10242        $as_test_x conftest$ac_exeext; then
10243   ac_cv_lib_svld_dlopen=yes
10244 else
10245   echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248         ac_cv_lib_svld_dlopen=no
10249 fi
10250
10251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10252       conftest$ac_exeext conftest.$ac_ext
10253 LIBS=$ac_check_lib_save_LIBS
10254 fi
10255 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10256 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10257 if test $ac_cv_lib_svld_dlopen = yes; then
10258   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10259 else
10260   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10261 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10262 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10263   echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265   ac_check_lib_save_LIBS=$LIBS
10266 LIBS="-ldld  $LIBS"
10267 cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h.  */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h.  */
10273
10274 /* Override any GCC internal prototype to avoid an error.
10275    Use char because int might match the return type of a GCC
10276    builtin and then its argument prototype would still apply.  */
10277 #ifdef __cplusplus
10278 extern "C"
10279 #endif
10280 char dld_link ();
10281 int
10282 main ()
10283 {
10284 return dld_link ();
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (ac_try="$ac_link"
10291 case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_link") 2>conftest.er1
10297   ac_status=$?
10298   grep -v '^ *+' conftest.er1 >conftest.err
10299   rm -f conftest.er1
10300   cat conftest.err >&5
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); } && {
10303          test -z "$ac_c_werror_flag" ||
10304          test ! -s conftest.err
10305        } && test -s conftest$ac_exeext &&
10306        $as_test_x conftest$ac_exeext; then
10307   ac_cv_lib_dld_dld_link=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312         ac_cv_lib_dld_dld_link=no
10313 fi
10314
10315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10316       conftest$ac_exeext conftest.$ac_ext
10317 LIBS=$ac_check_lib_save_LIBS
10318 fi
10319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10320 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10321 if test $ac_cv_lib_dld_dld_link = yes; then
10322   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10323 fi
10324
10325
10326 fi
10327
10328
10329 fi
10330
10331
10332 fi
10333
10334
10335 fi
10336
10337
10338 fi
10339
10340     ;;
10341   esac
10342
10343   if test "x$lt_cv_dlopen" != xno; then
10344     enable_dlopen=yes
10345   else
10346     enable_dlopen=no
10347   fi
10348
10349   case $lt_cv_dlopen in
10350   dlopen)
10351     save_CPPFLAGS="$CPPFLAGS"
10352     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10353
10354     save_LDFLAGS="$LDFLAGS"
10355     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10356
10357     save_LIBS="$LIBS"
10358     LIBS="$lt_cv_dlopen_libs $LIBS"
10359
10360     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10361 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10362 if test "${lt_cv_dlopen_self+set}" = set; then
10363   echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365           if test "$cross_compiling" = yes; then :
10366   lt_cv_dlopen_self=cross
10367 else
10368   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10369   lt_status=$lt_dlunknown
10370   cat > conftest.$ac_ext <<EOF
10371 #line 10371 "configure"
10372 #include "confdefs.h"
10373
10374 #if HAVE_DLFCN_H
10375 #include <dlfcn.h>
10376 #endif
10377
10378 #include <stdio.h>
10379
10380 #ifdef RTLD_GLOBAL
10381 #  define LT_DLGLOBAL           RTLD_GLOBAL
10382 #else
10383 #  ifdef DL_GLOBAL
10384 #    define LT_DLGLOBAL         DL_GLOBAL
10385 #  else
10386 #    define LT_DLGLOBAL         0
10387 #  endif
10388 #endif
10389
10390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10391    find out it does not work in some platform. */
10392 #ifndef LT_DLLAZY_OR_NOW
10393 #  ifdef RTLD_LAZY
10394 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10395 #  else
10396 #    ifdef DL_LAZY
10397 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10398 #    else
10399 #      ifdef RTLD_NOW
10400 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10401 #      else
10402 #        ifdef DL_NOW
10403 #          define LT_DLLAZY_OR_NOW      DL_NOW
10404 #        else
10405 #          define LT_DLLAZY_OR_NOW      0
10406 #        endif
10407 #      endif
10408 #    endif
10409 #  endif
10410 #endif
10411
10412 #ifdef __cplusplus
10413 extern "C" void exit (int);
10414 #endif
10415
10416 void fnord() { int i=42;}
10417 int main ()
10418 {
10419   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10420   int status = $lt_dlunknown;
10421
10422   if (self)
10423     {
10424       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10425       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10426       /* dlclose (self); */
10427     }
10428   else
10429     puts (dlerror ());
10430
10431     exit (status);
10432 }
10433 EOF
10434   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10435   (eval $ac_link) 2>&5
10436   ac_status=$?
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10439     (./conftest; exit; ) >&5 2>/dev/null
10440     lt_status=$?
10441     case x$lt_status in
10442       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10443       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10444       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10445     esac
10446   else :
10447     # compilation failed
10448     lt_cv_dlopen_self=no
10449   fi
10450 fi
10451 rm -fr conftest*
10452
10453
10454 fi
10455 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10456 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10457
10458     if test "x$lt_cv_dlopen_self" = xyes; then
10459       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10460       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10461 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10462 if test "${lt_cv_dlopen_self_static+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465           if test "$cross_compiling" = yes; then :
10466   lt_cv_dlopen_self_static=cross
10467 else
10468   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10469   lt_status=$lt_dlunknown
10470   cat > conftest.$ac_ext <<EOF
10471 #line 10471 "configure"
10472 #include "confdefs.h"
10473
10474 #if HAVE_DLFCN_H
10475 #include <dlfcn.h>
10476 #endif
10477
10478 #include <stdio.h>
10479
10480 #ifdef RTLD_GLOBAL
10481 #  define LT_DLGLOBAL           RTLD_GLOBAL
10482 #else
10483 #  ifdef DL_GLOBAL
10484 #    define LT_DLGLOBAL         DL_GLOBAL
10485 #  else
10486 #    define LT_DLGLOBAL         0
10487 #  endif
10488 #endif
10489
10490 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10491    find out it does not work in some platform. */
10492 #ifndef LT_DLLAZY_OR_NOW
10493 #  ifdef RTLD_LAZY
10494 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10495 #  else
10496 #    ifdef DL_LAZY
10497 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10498 #    else
10499 #      ifdef RTLD_NOW
10500 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10501 #      else
10502 #        ifdef DL_NOW
10503 #          define LT_DLLAZY_OR_NOW      DL_NOW
10504 #        else
10505 #          define LT_DLLAZY_OR_NOW      0
10506 #        endif
10507 #      endif
10508 #    endif
10509 #  endif
10510 #endif
10511
10512 #ifdef __cplusplus
10513 extern "C" void exit (int);
10514 #endif
10515
10516 void fnord() { int i=42;}
10517 int main ()
10518 {
10519   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10520   int status = $lt_dlunknown;
10521
10522   if (self)
10523     {
10524       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10525       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10526       /* dlclose (self); */
10527     }
10528   else
10529     puts (dlerror ());
10530
10531     exit (status);
10532 }
10533 EOF
10534   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535   (eval $ac_link) 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10539     (./conftest; exit; ) >&5 2>/dev/null
10540     lt_status=$?
10541     case x$lt_status in
10542       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10543       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10544       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10545     esac
10546   else :
10547     # compilation failed
10548     lt_cv_dlopen_self_static=no
10549   fi
10550 fi
10551 rm -fr conftest*
10552
10553
10554 fi
10555 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10556 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10557     fi
10558
10559     CPPFLAGS="$save_CPPFLAGS"
10560     LDFLAGS="$save_LDFLAGS"
10561     LIBS="$save_LIBS"
10562     ;;
10563   esac
10564
10565   case $lt_cv_dlopen_self in
10566   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10567   *) enable_dlopen_self=unknown ;;
10568   esac
10569
10570   case $lt_cv_dlopen_self_static in
10571   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10572   *) enable_dlopen_self_static=unknown ;;
10573   esac
10574 fi
10575
10576
10577 # Report which library types will actually be built
10578 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10579 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10580 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10581 echo "${ECHO_T}$can_build_shared" >&6; }
10582
10583 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10584 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10585 test "$can_build_shared" = "no" && enable_shared=no
10586
10587 # On AIX, shared libraries and static libraries use the same namespace, and
10588 # are all built from PIC.
10589 case $host_os in
10590 aix3*)
10591   test "$enable_shared" = yes && enable_static=no
10592   if test -n "$RANLIB"; then
10593     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10594     postinstall_cmds='$RANLIB $lib'
10595   fi
10596   ;;
10597
10598 aix4* | aix5*)
10599   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10600     test "$enable_shared" = yes && enable_static=no
10601   fi
10602     ;;
10603 esac
10604 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10605 echo "${ECHO_T}$enable_shared" >&6; }
10606
10607 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10608 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10609 # Make sure either enable_shared or enable_static is yes.
10610 test "$enable_shared" = yes || enable_static=yes
10611 { echo "$as_me:$LINENO: result: $enable_static" >&5
10612 echo "${ECHO_T}$enable_static" >&6; }
10613
10614 # The else clause should only fire when bootstrapping the
10615 # libtool distribution, otherwise you forgot to ship ltmain.sh
10616 # with your package, and you will get complaints that there are
10617 # no rules to generate ltmain.sh.
10618 if test -f "$ltmain"; then
10619   # See if we are running on zsh, and set the options which allow our commands through
10620   # without removal of \ escapes.
10621   if test -n "${ZSH_VERSION+set}" ; then
10622     setopt NO_GLOB_SUBST
10623   fi
10624   # Now quote all the things that may contain metacharacters while being
10625   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10626   # variables and quote the copies for generation of the libtool script.
10627   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10628     SED SHELL STRIP \
10629     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10630     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10631     deplibs_check_method reload_flag reload_cmds need_locks \
10632     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10633     lt_cv_sys_global_symbol_to_c_name_address \
10634     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10635     old_postinstall_cmds old_postuninstall_cmds \
10636     compiler \
10637     CC \
10638     LD \
10639     lt_prog_compiler_wl \
10640     lt_prog_compiler_pic \
10641     lt_prog_compiler_static \
10642     lt_prog_compiler_no_builtin_flag \
10643     export_dynamic_flag_spec \
10644     thread_safe_flag_spec \
10645     whole_archive_flag_spec \
10646     enable_shared_with_static_runtimes \
10647     old_archive_cmds \
10648     old_archive_from_new_cmds \
10649     predep_objects \
10650     postdep_objects \
10651     predeps \
10652     postdeps \
10653     compiler_lib_search_path \
10654     archive_cmds \
10655     archive_expsym_cmds \
10656     postinstall_cmds \
10657     postuninstall_cmds \
10658     old_archive_from_expsyms_cmds \
10659     allow_undefined_flag \
10660     no_undefined_flag \
10661     export_symbols_cmds \
10662     hardcode_libdir_flag_spec \
10663     hardcode_libdir_flag_spec_ld \
10664     hardcode_libdir_separator \
10665     hardcode_automatic \
10666     module_cmds \
10667     module_expsym_cmds \
10668     lt_cv_prog_compiler_c_o \
10669     fix_srcfile_path \
10670     exclude_expsyms \
10671     include_expsyms; do
10672
10673     case $var in
10674     old_archive_cmds | \
10675     old_archive_from_new_cmds | \
10676     archive_cmds | \
10677     archive_expsym_cmds | \
10678     module_cmds | \
10679     module_expsym_cmds | \
10680     old_archive_from_expsyms_cmds | \
10681     export_symbols_cmds | \
10682     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10683     postinstall_cmds | postuninstall_cmds | \
10684     old_postinstall_cmds | old_postuninstall_cmds | \
10685     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10686       # Double-quote double-evaled strings.
10687       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10688       ;;
10689     *)
10690       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10691       ;;
10692     esac
10693   done
10694
10695   case $lt_echo in
10696   *'\$0 --fallback-echo"')
10697     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10698     ;;
10699   esac
10700
10701 cfgfile="${ofile}T"
10702   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10703   $rm -f "$cfgfile"
10704   { echo "$as_me:$LINENO: creating $ofile" >&5
10705 echo "$as_me: creating $ofile" >&6;}
10706
10707   cat <<__EOF__ >> "$cfgfile"
10708 #! $SHELL
10709
10710 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10711 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10712 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10713 #
10714 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10715 # Free Software Foundation, Inc.
10716 #
10717 # This file is part of GNU Libtool:
10718 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10719 #
10720 # This program is free software; you can redistribute it and/or modify
10721 # it under the terms of the GNU General Public License as published by
10722 # the Free Software Foundation; either version 2 of the License, or
10723 # (at your option) any later version.
10724 #
10725 # This program is distributed in the hope that it will be useful, but
10726 # WITHOUT ANY WARRANTY; without even the implied warranty of
10727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10728 # General Public License for more details.
10729 #
10730 # You should have received a copy of the GNU General Public License
10731 # along with this program; if not, write to the Free Software
10732 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10733 #
10734 # As a special exception to the GNU General Public License, if you
10735 # distribute this file as part of a program that contains a
10736 # configuration script generated by Autoconf, you may include it under
10737 # the same distribution terms that you use for the rest of that program.
10738
10739 # A sed program that does not truncate output.
10740 SED=$lt_SED
10741
10742 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10743 Xsed="$SED -e 1s/^X//"
10744
10745 # The HP-UX ksh and POSIX shell print the target directory to stdout
10746 # if CDPATH is set.
10747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10748
10749 # The names of the tagged configurations supported by this script.
10750 available_tags=
10751
10752 # ### BEGIN LIBTOOL CONFIG
10753
10754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10755
10756 # Shell to use when invoking shell scripts.
10757 SHELL=$lt_SHELL
10758
10759 # Whether or not to build shared libraries.
10760 build_libtool_libs=$enable_shared
10761
10762 # Whether or not to build static libraries.
10763 build_old_libs=$enable_static
10764
10765 # Whether or not to add -lc for building shared libraries.
10766 build_libtool_need_lc=$archive_cmds_need_lc
10767
10768 # Whether or not to disallow shared libs when runtime libs are static
10769 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10770
10771 # Whether or not to optimize for fast installation.
10772 fast_install=$enable_fast_install
10773
10774 # The host system.
10775 host_alias=$host_alias
10776 host=$host
10777 host_os=$host_os
10778
10779 # The build system.
10780 build_alias=$build_alias
10781 build=$build
10782 build_os=$build_os
10783
10784 # An echo program that does not interpret backslashes.
10785 echo=$lt_echo
10786
10787 # The archiver.
10788 AR=$lt_AR
10789 AR_FLAGS=$lt_AR_FLAGS
10790
10791 # A C compiler.
10792 LTCC=$lt_LTCC
10793
10794 # LTCC compiler flags.
10795 LTCFLAGS=$lt_LTCFLAGS
10796
10797 # A language-specific compiler.
10798 CC=$lt_compiler
10799
10800 # Is the compiler the GNU C compiler?
10801 with_gcc=$GCC
10802
10803 # An ERE matcher.
10804 EGREP=$lt_EGREP
10805
10806 # The linker used to build libraries.
10807 LD=$lt_LD
10808
10809 # Whether we need hard or soft links.
10810 LN_S=$lt_LN_S
10811
10812 # A BSD-compatible nm program.
10813 NM=$lt_NM
10814
10815 # A symbol stripping program
10816 STRIP=$lt_STRIP
10817
10818 # Used to examine libraries when file_magic_cmd begins "file"
10819 MAGIC_CMD=$MAGIC_CMD
10820
10821 # Used on cygwin: DLL creation program.
10822 DLLTOOL="$DLLTOOL"
10823
10824 # Used on cygwin: object dumper.
10825 OBJDUMP="$OBJDUMP"
10826
10827 # Used on cygwin: assembler.
10828 AS="$AS"
10829
10830 # The name of the directory that contains temporary libtool files.
10831 objdir=$objdir
10832
10833 # How to create reloadable object files.
10834 reload_flag=$lt_reload_flag
10835 reload_cmds=$lt_reload_cmds
10836
10837 # How to pass a linker flag through the compiler.
10838 wl=$lt_lt_prog_compiler_wl
10839
10840 # Object file suffix (normally "o").
10841 objext="$ac_objext"
10842
10843 # Old archive suffix (normally "a").
10844 libext="$libext"
10845
10846 # Shared library suffix (normally ".so").
10847 shrext_cmds='$shrext_cmds'
10848
10849 # Executable file suffix (normally "").
10850 exeext="$exeext"
10851
10852 # Additional compiler flags for building library objects.
10853 pic_flag=$lt_lt_prog_compiler_pic
10854 pic_mode=$pic_mode
10855
10856 # What is the maximum length of a command?
10857 max_cmd_len=$lt_cv_sys_max_cmd_len
10858
10859 # Does compiler simultaneously support -c and -o options?
10860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10861
10862 # Must we lock files when doing compilation?
10863 need_locks=$lt_need_locks
10864
10865 # Do we need the lib prefix for modules?
10866 need_lib_prefix=$need_lib_prefix
10867
10868 # Do we need a version for libraries?
10869 need_version=$need_version
10870
10871 # Whether dlopen is supported.
10872 dlopen_support=$enable_dlopen
10873
10874 # Whether dlopen of programs is supported.
10875 dlopen_self=$enable_dlopen_self
10876
10877 # Whether dlopen of statically linked programs is supported.
10878 dlopen_self_static=$enable_dlopen_self_static
10879
10880 # Compiler flag to prevent dynamic linking.
10881 link_static_flag=$lt_lt_prog_compiler_static
10882
10883 # Compiler flag to turn off builtin functions.
10884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10885
10886 # Compiler flag to allow reflexive dlopens.
10887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10888
10889 # Compiler flag to generate shared objects directly from archives.
10890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10891
10892 # Compiler flag to generate thread-safe objects.
10893 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10894
10895 # Library versioning type.
10896 version_type=$version_type
10897
10898 # Format of library name prefix.
10899 libname_spec=$lt_libname_spec
10900
10901 # List of archive names.  First name is the real one, the rest are links.
10902 # The last name is the one that the linker finds with -lNAME.
10903 library_names_spec=$lt_library_names_spec
10904
10905 # The coded name of the library, if different from the real name.
10906 soname_spec=$lt_soname_spec
10907
10908 # Commands used to build and install an old-style archive.
10909 RANLIB=$lt_RANLIB
10910 old_archive_cmds=$lt_old_archive_cmds
10911 old_postinstall_cmds=$lt_old_postinstall_cmds
10912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10913
10914 # Create an old-style archive from a shared archive.
10915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10916
10917 # Create a temporary old-style archive to link instead of a shared archive.
10918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10919
10920 # Commands used to build and install a shared archive.
10921 archive_cmds=$lt_archive_cmds
10922 archive_expsym_cmds=$lt_archive_expsym_cmds
10923 postinstall_cmds=$lt_postinstall_cmds
10924 postuninstall_cmds=$lt_postuninstall_cmds
10925
10926 # Commands used to build a loadable module (assumed same as above if empty)
10927 module_cmds=$lt_module_cmds
10928 module_expsym_cmds=$lt_module_expsym_cmds
10929
10930 # Commands to strip libraries.
10931 old_striplib=$lt_old_striplib
10932 striplib=$lt_striplib
10933
10934 # Dependencies to place before the objects being linked to create a
10935 # shared library.
10936 predep_objects=$lt_predep_objects
10937
10938 # Dependencies to place after the objects being linked to create a
10939 # shared library.
10940 postdep_objects=$lt_postdep_objects
10941
10942 # Dependencies to place before the objects being linked to create a
10943 # shared library.
10944 predeps=$lt_predeps
10945
10946 # Dependencies to place after the objects being linked to create a
10947 # shared library.
10948 postdeps=$lt_postdeps
10949
10950 # The library search path used internally by the compiler when linking
10951 # a shared library.
10952 compiler_lib_search_path=$lt_compiler_lib_search_path
10953
10954 # Method to check whether dependent libraries are shared objects.
10955 deplibs_check_method=$lt_deplibs_check_method
10956
10957 # Command to use when deplibs_check_method == file_magic.
10958 file_magic_cmd=$lt_file_magic_cmd
10959
10960 # Flag that allows shared libraries with undefined symbols to be built.
10961 allow_undefined_flag=$lt_allow_undefined_flag
10962
10963 # Flag that forces no undefined symbols.
10964 no_undefined_flag=$lt_no_undefined_flag
10965
10966 # Commands used to finish a libtool library installation in a directory.
10967 finish_cmds=$lt_finish_cmds
10968
10969 # Same as above, but a single script fragment to be evaled but not shown.
10970 finish_eval=$lt_finish_eval
10971
10972 # Take the output of nm and produce a listing of raw symbols and C names.
10973 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10974
10975 # Transform the output of nm in a proper C declaration
10976 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10977
10978 # Transform the output of nm in a C name address pair
10979 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10980
10981 # This is the shared library runtime path variable.
10982 runpath_var=$runpath_var
10983
10984 # This is the shared library path variable.
10985 shlibpath_var=$shlibpath_var
10986
10987 # Is shlibpath searched before the hard-coded library search path?
10988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10989
10990 # How to hardcode a shared library path into an executable.
10991 hardcode_action=$hardcode_action
10992
10993 # Whether we should hardcode library paths into libraries.
10994 hardcode_into_libs=$hardcode_into_libs
10995
10996 # Flag to hardcode \$libdir into a binary during linking.
10997 # This must work even if \$libdir does not exist.
10998 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10999
11000 # If ld is used when linking, flag to hardcode \$libdir into
11001 # a binary during linking. This must work even if \$libdir does
11002 # not exist.
11003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11004
11005 # Whether we need a single -rpath flag with a separated argument.
11006 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11007
11008 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11009 # resulting binary.
11010 hardcode_direct=$hardcode_direct
11011
11012 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11013 # resulting binary.
11014 hardcode_minus_L=$hardcode_minus_L
11015
11016 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11017 # the resulting binary.
11018 hardcode_shlibpath_var=$hardcode_shlibpath_var
11019
11020 # Set to yes if building a shared library automatically hardcodes DIR into the library
11021 # and all subsequent libraries and executables linked against it.
11022 hardcode_automatic=$hardcode_automatic
11023
11024 # Variables whose values should be saved in libtool wrapper scripts and
11025 # restored at relink time.
11026 variables_saved_for_relink="$variables_saved_for_relink"
11027
11028 # Whether libtool must link a program against all its dependency libraries.
11029 link_all_deplibs=$link_all_deplibs
11030
11031 # Compile-time system search path for libraries
11032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11033
11034 # Run-time system search path for libraries
11035 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11036
11037 # Fix the shell variable \$srcfile for the compiler.
11038 fix_srcfile_path=$lt_fix_srcfile_path
11039
11040 # Set to yes if exported symbols are required.
11041 always_export_symbols=$always_export_symbols
11042
11043 # The commands to list exported symbols.
11044 export_symbols_cmds=$lt_export_symbols_cmds
11045
11046 # The commands to extract the exported symbol list from a shared archive.
11047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11048
11049 # Symbols that should not be listed in the preloaded symbols.
11050 exclude_expsyms=$lt_exclude_expsyms
11051
11052 # Symbols that must always be exported.
11053 include_expsyms=$lt_include_expsyms
11054
11055 # ### END LIBTOOL CONFIG
11056
11057 __EOF__
11058
11059
11060   case $host_os in
11061   aix3*)
11062     cat <<\EOF >> "$cfgfile"
11063
11064 # AIX sometimes has problems with the GCC collect2 program.  For some
11065 # reason, if we set the COLLECT_NAMES environment variable, the problems
11066 # vanish in a puff of smoke.
11067 if test "X${COLLECT_NAMES+set}" != Xset; then
11068   COLLECT_NAMES=
11069   export COLLECT_NAMES
11070 fi
11071 EOF
11072     ;;
11073   esac
11074
11075   # We use sed instead of cat because bash on DJGPP gets confused if
11076   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11077   # text mode, it properly converts lines to CR/LF.  This bash problem
11078   # is reportedly fixed, but why not run on old versions too?
11079   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11080
11081   mv -f "$cfgfile" "$ofile" || \
11082     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11083   chmod +x "$ofile"
11084
11085 else
11086   # If there is no Makefile yet, we rely on a make rule to execute
11087   # `config.status --recheck' to rerun these tests and create the
11088   # libtool script then.
11089   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11090   if test -f "$ltmain_in"; then
11091     test -f Makefile && make "$ltmain"
11092   fi
11093 fi
11094
11095
11096 ac_ext=c
11097 ac_cpp='$CPP $CPPFLAGS'
11098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11101
11102 CC="$lt_save_CC"
11103
11104
11105
11106 # This can be used to rebuild libtool when needed
11107 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11108
11109 # Always use our own libtool.
11110 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11111
11112 # Prevent multiple expansion
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123 if test "$enable_shared" = "no"; then
11124     with_noexec=no
11125 else
11126     eval _shrext="$shrext_cmds"
11127 fi
11128 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11129 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11130
11131 # Check whether --with-noexec was given.
11132 if test "${with_noexec+set}" = set; then
11133   withval=$with_noexec; case $with_noexec in
11134     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
11135                 ;;
11136     no)         ;;
11137     *)          ;;
11138 esac
11139 else
11140   with_noexec="$libexecdir/sudo_noexec$_shrext"
11141 fi
11142
11143 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11144 echo "${ECHO_T}$with_noexec" >&6; }
11145 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11146
11147 if test "$with_devel" = "yes" -a -n "$GCC"; then
11148     CFLAGS="${CFLAGS} -Wall"
11149 fi
11150
11151 # Extract the first word of "uname", so it can be a program name with args.
11152 set dummy uname; ac_word=$2
11153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11155 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158   if test -n "$UNAMEPROG"; then
11159   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11160 else
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11163 do
11164   IFS=$as_save_IFS
11165   test -z "$as_dir" && as_dir=.
11166   for ac_exec_ext in '' $ac_executable_extensions; do
11167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11168     ac_cv_prog_UNAMEPROG="uname"
11169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11170     break 2
11171   fi
11172 done
11173 done
11174 IFS=$as_save_IFS
11175
11176 fi
11177 fi
11178 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11179 if test -n "$UNAMEPROG"; then
11180   { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11181 echo "${ECHO_T}$UNAMEPROG" >&6; }
11182 else
11183   { echo "$as_me:$LINENO: result: no" >&5
11184 echo "${ECHO_T}no" >&6; }
11185 fi
11186
11187
11188 # Extract the first word of "tr", so it can be a program name with args.
11189 set dummy tr; ac_word=$2
11190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11192 if test "${ac_cv_prog_TRPROG+set}" = set; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   if test -n "$TRPROG"; then
11196   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11197 else
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11200 do
11201   IFS=$as_save_IFS
11202   test -z "$as_dir" && as_dir=.
11203   for ac_exec_ext in '' $ac_executable_extensions; do
11204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11205     ac_cv_prog_TRPROG="tr"
11206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11207     break 2
11208   fi
11209 done
11210 done
11211 IFS=$as_save_IFS
11212
11213 fi
11214 fi
11215 TRPROG=$ac_cv_prog_TRPROG
11216 if test -n "$TRPROG"; then
11217   { echo "$as_me:$LINENO: result: $TRPROG" >&5
11218 echo "${ECHO_T}$TRPROG" >&6; }
11219 else
11220   { echo "$as_me:$LINENO: result: no" >&5
11221 echo "${ECHO_T}no" >&6; }
11222 fi
11223
11224
11225 # Extract the first word of "nroff", so it can be a program name with args.
11226 set dummy nroff; ac_word=$2
11227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11229 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11230   echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232   if test -n "$NROFFPROG"; then
11233   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11234 else
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11237 do
11238   IFS=$as_save_IFS
11239   test -z "$as_dir" && as_dir=.
11240   for ac_exec_ext in '' $ac_executable_extensions; do
11241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11242     ac_cv_prog_NROFFPROG="nroff"
11243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11244     break 2
11245   fi
11246 done
11247 done
11248 IFS=$as_save_IFS
11249
11250 fi
11251 fi
11252 NROFFPROG=$ac_cv_prog_NROFFPROG
11253 if test -n "$NROFFPROG"; then
11254   { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11255 echo "${ECHO_T}$NROFFPROG" >&6; }
11256 else
11257   { echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6; }
11259 fi
11260
11261
11262 if test -z "$NROFFPROG"; then
11263     MANTYPE="cat"
11264     mansrcdir='$(srcdir)'
11265 fi
11266
11267 if test -n "$sudo_cv_prev_host"; then
11268     if test "$sudo_cv_prev_host" != "$host"; then
11269         { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11270 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11271    { (exit 1); exit 1; }; }
11272     else
11273         { echo "$as_me:$LINENO: checking previous host type" >&5
11274 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11275         if test "${sudo_cv_prev_host+set}" = set; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278   sudo_cv_prev_host="$host"
11279 fi
11280
11281         { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11282 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11283     fi
11284 else
11285     # this will produce no output since there is no cached value
11286     if test "${sudo_cv_prev_host+set}" = set; then
11287   echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289   sudo_cv_prev_host="$host"
11290 fi
11291
11292 fi
11293
11294 if test -n "$host_os"; then
11295     OS=`echo $host_os | sed 's/[0-9].*//'`
11296     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11297     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11298 else
11299     OS="unknown"
11300     OSREV=0
11301     OSMAJOR=0
11302 fi
11303
11304 case "$host" in
11305     *-*-sunos4*)
11306                 # getcwd(3) opens a pipe to getpwd(1)!?!
11307                 BROKEN_GETCWD=1
11308
11309                 # system headers lack prototypes but gcc helps...
11310                 if test -n "$GCC"; then
11311                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11312                 fi
11313
11314                 shadow_funcs="getpwanam issecure"
11315                 ;;
11316     *-*-solaris2*)
11317                 # To get the crypt(3) prototype (so we pass -Wall)
11318                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11319                 # AFS support needs -lucb
11320                 if test "$with_AFS" = "yes"; then
11321                     AFS_LIBS="-lc -lucb"
11322                 fi
11323                 : ${mansectsu='1m'}
11324                 : ${mansectform='4'}
11325                 : ${with_rpath='yes'}
11326                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11327                 ;;
11328     *-*-aix*)
11329                 # To get all prototypes (so we pass -Wall)
11330                 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11331                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11332                 if test X"$with_blibpath" != X"no"; then
11333                     { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11334 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11335                     O_LDFLAGS="$LDFLAGS"
11336                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11337                     cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h.  */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h.  */
11343
11344 int
11345 main ()
11346 {
11347
11348   ;
11349   return 0;
11350 }
11351 _ACEOF
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (ac_try="$ac_link"
11354 case "(($ac_try" in
11355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356   *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359   (eval "$ac_link") 2>conftest.er1
11360   ac_status=$?
11361   grep -v '^ *+' conftest.er1 >conftest.err
11362   rm -f conftest.er1
11363   cat conftest.err >&5
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); } && {
11366          test -z "$ac_c_werror_flag" ||
11367          test ! -s conftest.err
11368        } && test -s conftest$ac_exeext &&
11369        $as_test_x conftest$ac_exeext; then
11370
11371                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11372                             blibpath="$with_blibpath"
11373                         elif test -n "$GCC"; then
11374                             blibpath="/usr/lib:/lib:/usr/local/lib"
11375                         else
11376                             blibpath="/usr/lib:/lib"
11377                         fi
11378                         { echo "$as_me:$LINENO: result: yes" >&5
11379 echo "${ECHO_T}yes" >&6; }
11380
11381 else
11382   echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11384
11385         { echo "$as_me:$LINENO: result: no" >&5
11386 echo "${ECHO_T}no" >&6; }
11387 fi
11388
11389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11390       conftest$ac_exeext conftest.$ac_ext
11391                 fi
11392                 LDFLAGS="$O_LDFLAGS"
11393
11394                 # Use authenticate(3) as the default authentication method
11395                 if test X"$with_aixauth" = X""; then
11396
11397 for ac_func in authenticate
11398 do
11399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405   cat >conftest.$ac_ext <<_ACEOF
11406 /* confdefs.h.  */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h.  */
11411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11413 #define $ac_func innocuous_$ac_func
11414
11415 /* System header to define __stub macros and hopefully few prototypes,
11416     which can conflict with char $ac_func (); below.
11417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11418     <limits.h> exists even on freestanding compilers.  */
11419
11420 #ifdef __STDC__
11421 # include <limits.h>
11422 #else
11423 # include <assert.h>
11424 #endif
11425
11426 #undef $ac_func
11427
11428 /* Override any GCC internal prototype to avoid an error.
11429    Use char because int might match the return type of a GCC
11430    builtin and then its argument prototype would still apply.  */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char $ac_func ();
11435 /* The GNU C library defines this for functions which it implements
11436     to always fail with ENOSYS.  Some functions are actually named
11437     something starting with __ and the normal name is an alias.  */
11438 #if defined __stub_$ac_func || defined __stub___$ac_func
11439 choke me
11440 #endif
11441
11442 int
11443 main ()
11444 {
11445 return $ac_func ();
11446   ;
11447   return 0;
11448 }
11449 _ACEOF
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (ac_try="$ac_link"
11452 case "(($ac_try" in
11453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454   *) ac_try_echo=$ac_try;;
11455 esac
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457   (eval "$ac_link") 2>conftest.er1
11458   ac_status=$?
11459   grep -v '^ *+' conftest.er1 >conftest.err
11460   rm -f conftest.er1
11461   cat conftest.err >&5
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); } && {
11464          test -z "$ac_c_werror_flag" ||
11465          test ! -s conftest.err
11466        } && test -s conftest$ac_exeext &&
11467        $as_test_x conftest$ac_exeext; then
11468   eval "$as_ac_var=yes"
11469 else
11470   echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473         eval "$as_ac_var=no"
11474 fi
11475
11476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11477       conftest$ac_exeext conftest.$ac_ext
11478 fi
11479 ac_res=`eval echo '${'$as_ac_var'}'`
11480                { echo "$as_me:$LINENO: result: $ac_res" >&5
11481 echo "${ECHO_T}$ac_res" >&6; }
11482 if test `eval echo '${'$as_ac_var'}'` = yes; then
11483   cat >>confdefs.h <<_ACEOF
11484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11485 _ACEOF
11486  AUTH_EXCL_DEF="AIX_AUTH"
11487 fi
11488 done
11489
11490                 fi
11491                 ;;
11492     *-*-hiuxmpp*)
11493                 : ${mansectsu='1m'}
11494                 : ${mansectform='4'}
11495                 ;;
11496     *-*-hpux*)
11497                 # AFS support needs -lBSD
11498                 if test "$with_AFS" = "yes"; then
11499                     AFS_LIBS="-lc -lBSD"
11500                 fi
11501                 : ${mansectsu='1m'}
11502                 : ${mansectform='4'}
11503
11504                 case "$host" in
11505                         *-*-hpux1-8.*)
11506                             cat >>confdefs.h <<\_ACEOF
11507 #define BROKEN_SYSLOG 1
11508 _ACEOF
11509
11510
11511                             # Not sure if setuid binaries are safe in < 9.x
11512                             if test -n "$GCC"; then
11513                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
11514                             else
11515                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
11516                             fi
11517                         ;;
11518                         *-*-hpux9.*)
11519                             cat >>confdefs.h <<\_ACEOF
11520 #define BROKEN_SYSLOG 1
11521 _ACEOF
11522
11523
11524                             shadow_funcs="getspwuid"
11525
11526                             # DCE support (requires ANSI C compiler)
11527                             if test "$with_DCE" = "yes"; then
11528                                 # order of libs in 9.X is important. -lc_r must be last
11529                                 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
11530                                 LIBS="${LIBS} -ldce -lM -lc_r"
11531                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
11532                             fi
11533                         ;;
11534                         *-*-hpux10.*)
11535                             shadow_funcs="getprpwnam iscomsec"
11536                             shadow_libs="-lsec"
11537                         ;;
11538                         *)
11539                             shadow_funcs="getspnam iscomsec"
11540                             shadow_libs="-lsec"
11541                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11542                         ;;
11543                 esac
11544                 ;;
11545     *-dec-osf*)
11546                 # ignore envariables wrt dynamic lib path
11547                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
11548
11549                 : ${CHECKSIA='true'}
11550                 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
11551 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
11552                 # Check whether --enable-sia was given.
11553 if test "${enable_sia+set}" = set; then
11554   enableval=$enable_sia;  case "$enableval" in
11555                     yes)        { echo "$as_me:$LINENO: result: no" >&5
11556 echo "${ECHO_T}no" >&6; }
11557                                 CHECKSIA=true
11558                                 ;;
11559                     no)         { echo "$as_me:$LINENO: result: yes" >&5
11560 echo "${ECHO_T}yes" >&6; }
11561                                 CHECKSIA=false
11562                                 ;;
11563                     *)          { echo "$as_me:$LINENO: result: no" >&5
11564 echo "${ECHO_T}no" >&6; }
11565                                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
11566 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
11567                                 ;;
11568                   esac
11569
11570 else
11571   { echo "$as_me:$LINENO: result: no" >&5
11572 echo "${ECHO_T}no" >&6; }
11573 fi
11574
11575
11576                 shadow_funcs="getprpwnam dispcrypt"
11577                 # OSF/1 4.x and higher need -ldb too
11578                 if test $OSMAJOR -lt 4; then
11579                     shadow_libs="-lsecurity -laud -lm"
11580                 else
11581                     shadow_libs="-lsecurity -ldb -laud -lm"
11582                 fi
11583
11584                 # use SIA by default, if we have it
11585                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
11586
11587                 #
11588                 # Some versions of Digital Unix ship with a broken
11589                 # copy of prot.h, which we need for shadow passwords.
11590                 # XXX - make should remove this as part of distclean
11591                 #
11592                 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
11593 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
11594                 cat >conftest.$ac_ext <<_ACEOF
11595 /* confdefs.h.  */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h.  */
11600
11601 #include <sys/types.h>
11602 #include <sys/security.h>
11603 #include <prot.h>
11604
11605 int
11606 main ()
11607 {
11608 exit(0);
11609   ;
11610   return 0;
11611 }
11612 _ACEOF
11613 rm -f conftest.$ac_objext
11614 if { (ac_try="$ac_compile"
11615 case "(($ac_try" in
11616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617   *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620   (eval "$ac_compile") 2>conftest.er1
11621   ac_status=$?
11622   grep -v '^ *+' conftest.er1 >conftest.err
11623   rm -f conftest.er1
11624   cat conftest.err >&5
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } && {
11627          test -z "$ac_c_werror_flag" ||
11628          test ! -s conftest.err
11629        } && test -s conftest.$ac_objext; then
11630   { echo "$as_me:$LINENO: result: no" >&5
11631 echo "${ECHO_T}no" >&6; }
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636         { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
11637 echo "${ECHO_T}yes, fixing locally" >&6; }
11638                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
11639
11640 fi
11641
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643                 : ${mansectsu='8'}
11644                 : ${mansectform='4'}
11645                 ;;
11646     *-*-irix*)
11647                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
11648                 if test -z "$NROFFPROG"; then
11649                     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)'
11650                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11651                         if test -d /usr/share/catman/local; then
11652                             mandir="/usr/share/catman/local"
11653                         else
11654                             mandir="/usr/catman/local"
11655                         fi
11656                     fi
11657                 else
11658                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11659                         if test -d "/usr/share/man/local"; then
11660                             mandir="/usr/share/man/local"
11661                         else
11662                             mandir="/usr/man/local"
11663                         fi
11664                     fi
11665                 fi
11666                 # IRIX <= 4 needs -lsun
11667                 if test "$OSMAJOR" -le 4; then
11668                     { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
11669 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
11670 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
11671   echo $ECHO_N "(cached) $ECHO_C" >&6
11672 else
11673   ac_check_lib_save_LIBS=$LIBS
11674 LIBS="-lsun  $LIBS"
11675 cat >conftest.$ac_ext <<_ACEOF
11676 /* confdefs.h.  */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h.  */
11681
11682 /* Override any GCC internal prototype to avoid an error.
11683    Use char because int might match the return type of a GCC
11684    builtin and then its argument prototype would still apply.  */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char getpwnam ();
11689 int
11690 main ()
11691 {
11692 return getpwnam ();
11693   ;
11694   return 0;
11695 }
11696 _ACEOF
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (ac_try="$ac_link"
11699 case "(($ac_try" in
11700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701   *) ac_try_echo=$ac_try;;
11702 esac
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704   (eval "$ac_link") 2>conftest.er1
11705   ac_status=$?
11706   grep -v '^ *+' conftest.er1 >conftest.err
11707   rm -f conftest.er1
11708   cat conftest.err >&5
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); } && {
11711          test -z "$ac_c_werror_flag" ||
11712          test ! -s conftest.err
11713        } && test -s conftest$ac_exeext &&
11714        $as_test_x conftest$ac_exeext; then
11715   ac_cv_lib_sun_getpwnam=yes
11716 else
11717   echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720         ac_cv_lib_sun_getpwnam=no
11721 fi
11722
11723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11724       conftest$ac_exeext conftest.$ac_ext
11725 LIBS=$ac_check_lib_save_LIBS
11726 fi
11727 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
11728 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
11729 if test $ac_cv_lib_sun_getpwnam = yes; then
11730   LIBS="${LIBS} -lsun"
11731 fi
11732
11733                 fi
11734                 : ${mansectsu='1m'}
11735                 : ${mansectform='4'}
11736                 ;;
11737     *-*-linux*)
11738                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
11739                 # Some Linux versions need to link with -lshadow
11740                 shadow_funcs="getspnam"
11741                 shadow_libs_optional="-lshadow"
11742                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11743                 ;;
11744     *-convex-bsd*)
11745                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
11746                 if test -z "$GCC"; then
11747                     CFLAGS="${CFLAGS} -D__STDC__"
11748                 fi
11749
11750                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
11751                 shadow_funcs="getprpwnam"
11752                 shadow_libs="-lprot"
11753                 ;;
11754     *-*-ultrix*)
11755                 OS="ultrix"
11756                 shadow_funcs="getauthuid"
11757                 shadow_libs="-lauth"
11758                 ;;
11759     *-*-riscos*)
11760                 LIBS="${LIBS} -lsun -lbsd"
11761                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
11762                 OSDEFS="${OSDEFS} -D_MIPS"
11763                 : ${mansectsu='1m'}
11764                 : ${mansectform='4'}
11765                 ;;
11766     *-*-isc*)
11767                 OSDEFS="${OSDEFS} -D_ISC"
11768                 LIB_CRYPT=1
11769                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
11770                 LIBS="${LIBS} -lcrypt"
11771
11772                 shadow_funcs="getspnam"
11773                 shadow_libs="-lsec"
11774
11775                 : ${mansectsu='1m'}
11776                 : ${mansectform='4'}
11777                 ;;
11778     *-*-sco*|*-sco-*)
11779                 shadow_funcs="getprpwnam"
11780                 shadow_libs="-lprot -lx"
11781                 : ${mansectsu='1m'}
11782                 : ${mansectform='4'}
11783                 ;;
11784     m88k-motorola-sysv*)
11785                 # motorolla's cc (a variant of gcc) does -O but not -O2
11786                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
11787                 : ${mansectsu='1m'}
11788                 : ${mansectform='4'}
11789                 ;;
11790     *-sequent-sysv*)
11791                 shadow_funcs="getspnam"
11792                 shadow_libs="-lsec"
11793                 : ${mansectsu='1m'}
11794                 : ${mansectform='4'}
11795                 : ${with_rpath='yes'}
11796                 ;;
11797     *-ncr-sysv4*|*-ncr-sysvr4*)
11798                 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
11799 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
11800 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   ac_check_lib_save_LIBS=$LIBS
11804 LIBS="-lc89  $LIBS"
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h.  */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h.  */
11811
11812 /* Override any GCC internal prototype to avoid an error.
11813    Use char because int might match the return type of a GCC
11814    builtin and then its argument prototype would still apply.  */
11815 #ifdef __cplusplus
11816 extern "C"
11817 #endif
11818 char strcasecmp ();
11819 int
11820 main ()
11821 {
11822 return strcasecmp ();
11823   ;
11824   return 0;
11825 }
11826 _ACEOF
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (ac_try="$ac_link"
11829 case "(($ac_try" in
11830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831   *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834   (eval "$ac_link") 2>conftest.er1
11835   ac_status=$?
11836   grep -v '^ *+' conftest.er1 >conftest.err
11837   rm -f conftest.er1
11838   cat conftest.err >&5
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); } && {
11841          test -z "$ac_c_werror_flag" ||
11842          test ! -s conftest.err
11843        } && test -s conftest$ac_exeext &&
11844        $as_test_x conftest$ac_exeext; then
11845   ac_cv_lib_c89_strcasecmp=yes
11846 else
11847   echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11849
11850         ac_cv_lib_c89_strcasecmp=no
11851 fi
11852
11853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11854       conftest$ac_exeext conftest.$ac_ext
11855 LIBS=$ac_check_lib_save_LIBS
11856 fi
11857 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
11858 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
11859 if test $ac_cv_lib_c89_strcasecmp = yes; then
11860   cat >>confdefs.h <<\_ACEOF
11861 #define HAVE_STRCASECMP 1
11862 _ACEOF
11863  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
11864 fi
11865
11866                 : ${mansectsu='1m'}
11867                 : ${mansectform='4'}
11868                 : ${with_rpath='yes'}
11869                 ;;
11870     *-ccur-sysv4*|*-ccur-sysvr4*)
11871                 LIBS="${LIBS} -lgen"
11872                 SUDO_LIBS="${SUDO_LIBS} -lgen"
11873                 : ${mansectsu='1m'}
11874                 : ${mansectform='4'}
11875                 : ${with_rpath='yes'}
11876                 ;;
11877     *-*-bsdi*)
11878                 SKIP_SETREUID=yes
11879                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
11880                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
11881                     case "$OSMAJOR" in
11882                         2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
11883 echo "$as_me: using shlicc as CC" >&6;}
11884                                 ac_cv_prog_CC=shlicc
11885                                 CC="$ac_cv_prog_CC"
11886                                 ;;
11887                     esac
11888                 fi
11889                 # Check for newer BSD auth API (just check for >= 3.0?)
11890                 if test -z "$with_bsdauth"; then
11891
11892 for ac_func in auth_challenge
11893 do
11894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11898   echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900   cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h.  */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h.  */
11906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11908 #define $ac_func innocuous_$ac_func
11909
11910 /* System header to define __stub macros and hopefully few prototypes,
11911     which can conflict with char $ac_func (); below.
11912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913     <limits.h> exists even on freestanding compilers.  */
11914
11915 #ifdef __STDC__
11916 # include <limits.h>
11917 #else
11918 # include <assert.h>
11919 #endif
11920
11921 #undef $ac_func
11922
11923 /* Override any GCC internal prototype to avoid an error.
11924    Use char because int might match the return type of a GCC
11925    builtin and then its argument prototype would still apply.  */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char $ac_func ();
11930 /* The GNU C library defines this for functions which it implements
11931     to always fail with ENOSYS.  Some functions are actually named
11932     something starting with __ and the normal name is an alias.  */
11933 #if defined __stub_$ac_func || defined __stub___$ac_func
11934 choke me
11935 #endif
11936
11937 int
11938 main ()
11939 {
11940 return $ac_func ();
11941   ;
11942   return 0;
11943 }
11944 _ACEOF
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (ac_try="$ac_link"
11947 case "(($ac_try" in
11948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949   *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952   (eval "$ac_link") 2>conftest.er1
11953   ac_status=$?
11954   grep -v '^ *+' conftest.er1 >conftest.err
11955   rm -f conftest.er1
11956   cat conftest.err >&5
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); } && {
11959          test -z "$ac_c_werror_flag" ||
11960          test ! -s conftest.err
11961        } && test -s conftest$ac_exeext &&
11962        $as_test_x conftest$ac_exeext; then
11963   eval "$as_ac_var=yes"
11964 else
11965   echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968         eval "$as_ac_var=no"
11969 fi
11970
11971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11972       conftest$ac_exeext conftest.$ac_ext
11973 fi
11974 ac_res=`eval echo '${'$as_ac_var'}'`
11975                { echo "$as_me:$LINENO: result: $ac_res" >&5
11976 echo "${ECHO_T}$ac_res" >&6; }
11977 if test `eval echo '${'$as_ac_var'}'` = yes; then
11978   cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11980 _ACEOF
11981  AUTH_EXCL_DEF="BSD_AUTH"
11982 fi
11983 done
11984
11985                 fi
11986                 ;;
11987     *-*-freebsd*)
11988                 # FreeBSD has a real setreuid(2) starting with 2.1 and
11989                 # backported to 2.0.5.  We just take 2.1 and above...
11990                 case "$OSREV" in
11991                 0.*|1.*|2.0*)
11992                     SKIP_SETREUID=yes
11993                     ;;
11994                 esac
11995                 if test "$with_skey" = "yes"; then
11996                      SUDO_LIBS="${SUDO_LIBS} -lmd"
11997                 fi
11998                 CHECKSHADOW="false"
11999                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12000                 : ${with_logincap='maybe'}
12001                 ;;
12002     *-*-*openbsd*)
12003                 # OpenBSD has a real setreuid(2) starting with 3.3 but
12004                 # we will use setreuid(2) instead.
12005                 SKIP_SETREUID=yes
12006                 CHECKSHADOW="false"
12007                 # OpenBSD >= 3.0 supports BSD auth
12008                 if test -z "$with_bsdauth"; then
12009                     case "$OSREV" in
12010                     0-2.*)
12011                         ;;
12012                     *)
12013                         AUTH_EXCL_DEF="BSD_AUTH"
12014                         ;;
12015                     esac
12016                 fi
12017                 : ${with_logincap='maybe'}
12018                 ;;
12019     *-*-*netbsd*)
12020                 # NetBSD has a real setreuid(2) starting with 1.3.2
12021                 case "$OSREV" in
12022                 0.9*|1.012*|1.3|1.3.1)
12023                     SKIP_SETREUID=yes
12024                     ;;
12025                 esac
12026                 CHECKSHADOW="false"
12027                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12028                 : ${with_logincap='maybe'}
12029                 ;;
12030     *-*-dragonfly*)
12031                 if test "$with_skey" = "yes"; then
12032                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12033                 fi
12034                 CHECKSHADOW="false"
12035                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12036                 : ${with_logincap='yes'}
12037                 ;;
12038     *-*-*bsd*)
12039                 CHECKSHADOW="false"
12040                 ;;
12041     *-*-darwin*)
12042                 SKIP_SETREUID=yes
12043                 CHECKSHADOW="false"
12044                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12045                 : ${with_logincap='yes'}
12046                 ;;
12047     *-*-nextstep*)
12048                 # lockf() on is broken on the NeXT -- use flock instead
12049                 ac_cv_func_lockf=no
12050                 ac_cv_func_flock=yes
12051                 ;;
12052     *-*-*sysv4*)
12053                 : ${mansectsu='1m'}
12054                 : ${mansectform='4'}
12055                 : ${with_rpath='yes'}
12056                 ;;
12057     *-*-sysv*)
12058                 : ${mansectsu='1m'}
12059                 : ${mansectform='4'}
12060                 ;;
12061     *-gnu*)
12062                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12063                 ;;
12064 esac
12065
12066 AUTH_REG=${AUTH_REG# }
12067 AUTH_EXCL=${AUTH_EXCL# }
12068 if test -n "$AUTH_EXCL"; then
12069     set -- $AUTH_EXCL
12070     if test $# != 1; then
12071         { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12072 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12073    { (exit 1); exit 1; }; }
12074     fi
12075     if test -n "$AUTH_REG"; then
12076         { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12077 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12078    { (exit 1); exit 1; }; }
12079     fi
12080 fi
12081 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12082     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12083 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12084    { (exit 1); exit 1; }; }
12085 fi
12086
12087 : ${mansectsu='8'}
12088 : ${mansectform='5'}
12089
12090 if test -n "$with_libpath"; then
12091     for i in ${with_libpath}; do
12092
12093     if test X"$with_rpath" = X"yes"; then
12094         LDFLAGS="${LDFLAGS} -L$i -R$i"
12095     else
12096         LDFLAGS="${LDFLAGS} -L$i"
12097     fi
12098     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12099         blibpath_add="${blibpath_add}:$i"
12100     fi
12101
12102     done
12103 fi
12104 if test -n "$with_libraries"; then
12105     for i in ${with_libraries}; do
12106         case $i in
12107             -l*)        ;;
12108             *.a)        ;;
12109             *.o)        ;;
12110             *)  i="-l${i}";;
12111         esac
12112         LIBS="${LIBS} ${i}"
12113     done
12114 fi
12115
12116 if test $ac_cv_c_compiler_gnu = yes; then
12117     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12118 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12119 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122     ac_pattern="Autoconf.*'x'"
12123   cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h.  */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h.  */
12129 #include <sgtty.h>
12130 Autoconf TIOCGETP
12131 _ACEOF
12132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12133   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12134   ac_cv_prog_gcc_traditional=yes
12135 else
12136   ac_cv_prog_gcc_traditional=no
12137 fi
12138 rm -f conftest*
12139
12140
12141   if test $ac_cv_prog_gcc_traditional = no; then
12142     cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h.  */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h.  */
12148 #include <termio.h>
12149 Autoconf TCGETA
12150 _ACEOF
12151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12152   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12153   ac_cv_prog_gcc_traditional=yes
12154 fi
12155 rm -f conftest*
12156
12157   fi
12158 fi
12159 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12160 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12161   if test $ac_cv_prog_gcc_traditional = yes; then
12162     CC="$CC -traditional"
12163   fi
12164 fi
12165
12166 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12167 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12168 if test "${ac_cv_c_const+set}" = set; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h.  */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h.  */
12177
12178 int
12179 main ()
12180 {
12181 /* FIXME: Include the comments suggested by Paul. */
12182 #ifndef __cplusplus
12183   /* Ultrix mips cc rejects this.  */
12184   typedef int charset[2];
12185   const charset cs;
12186   /* SunOS 4.1.1 cc rejects this.  */
12187   char const *const *pcpcc;
12188   char **ppc;
12189   /* NEC SVR4.0.2 mips cc rejects this.  */
12190   struct point {int x, y;};
12191   static struct point const zero = {0,0};
12192   /* AIX XL C 1.02.0.0 rejects this.
12193      It does not let you subtract one const X* pointer from another in
12194      an arm of an if-expression whose if-part is not a constant
12195      expression */
12196   const char *g = "string";
12197   pcpcc = &g + (g ? g-g : 0);
12198   /* HPUX 7.0 cc rejects these. */
12199   ++pcpcc;
12200   ppc = (char**) pcpcc;
12201   pcpcc = (char const *const *) ppc;
12202   { /* SCO 3.2v4 cc rejects this.  */
12203     char *t;
12204     char const *s = 0 ? (char *) 0 : (char const *) 0;
12205
12206     *t++ = 0;
12207     if (s) return 0;
12208   }
12209   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12210     int x[] = {25, 17};
12211     const int *foo = &x[0];
12212     ++foo;
12213   }
12214   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12215     typedef const int *iptr;
12216     iptr p = 0;
12217     ++p;
12218   }
12219   { /* AIX XL C 1.02.0.0 rejects this saying
12220        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12221     struct s { int j; const int *ap[3]; };
12222     struct s *b; b->j = 5;
12223   }
12224   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12225     const int foo = 10;
12226     if (!foo) return 0;
12227   }
12228   return !cs[0] && !zero.x;
12229 #endif
12230
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 rm -f conftest.$ac_objext
12236 if { (ac_try="$ac_compile"
12237 case "(($ac_try" in
12238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239   *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242   (eval "$ac_compile") 2>conftest.er1
12243   ac_status=$?
12244   grep -v '^ *+' conftest.er1 >conftest.err
12245   rm -f conftest.er1
12246   cat conftest.err >&5
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); } && {
12249          test -z "$ac_c_werror_flag" ||
12250          test ! -s conftest.err
12251        } && test -s conftest.$ac_objext; then
12252   ac_cv_c_const=yes
12253 else
12254   echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12256
12257         ac_cv_c_const=no
12258 fi
12259
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 fi
12262 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12263 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12264 if test $ac_cv_c_const = no; then
12265
12266 cat >>confdefs.h <<\_ACEOF
12267 #define const
12268 _ACEOF
12269
12270 fi
12271
12272 { echo "$as_me:$LINENO: checking for working volatile" >&5
12273 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12274 if test "${ac_cv_c_volatile+set}" = set; then
12275   echo $ECHO_N "(cached) $ECHO_C" >&6
12276 else
12277   cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h.  */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h.  */
12283
12284 int
12285 main ()
12286 {
12287
12288 volatile int x;
12289 int * volatile y = (int *) 0;
12290 return !x && !y;
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 rm -f conftest.$ac_objext
12296 if { (ac_try="$ac_compile"
12297 case "(($ac_try" in
12298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299   *) ac_try_echo=$ac_try;;
12300 esac
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302   (eval "$ac_compile") 2>conftest.er1
12303   ac_status=$?
12304   grep -v '^ *+' conftest.er1 >conftest.err
12305   rm -f conftest.er1
12306   cat conftest.err >&5
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); } && {
12309          test -z "$ac_c_werror_flag" ||
12310          test ! -s conftest.err
12311        } && test -s conftest.$ac_objext; then
12312   ac_cv_c_volatile=yes
12313 else
12314   echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317         ac_cv_c_volatile=no
12318 fi
12319
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 fi
12322 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12323 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12324 if test $ac_cv_c_volatile = no; then
12325
12326 cat >>confdefs.h <<\_ACEOF
12327 #define volatile
12328 _ACEOF
12329
12330 fi
12331
12332 for ac_prog in 'bison -y' byacc
12333 do
12334   # Extract the first word of "$ac_prog", so it can be a program name with args.
12335 set dummy $ac_prog; ac_word=$2
12336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12338 if test "${ac_cv_prog_YACC+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   if test -n "$YACC"; then
12342   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12343 else
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12346 do
12347   IFS=$as_save_IFS
12348   test -z "$as_dir" && as_dir=.
12349   for ac_exec_ext in '' $ac_executable_extensions; do
12350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12351     ac_cv_prog_YACC="$ac_prog"
12352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12353     break 2
12354   fi
12355 done
12356 done
12357 IFS=$as_save_IFS
12358
12359 fi
12360 fi
12361 YACC=$ac_cv_prog_YACC
12362 if test -n "$YACC"; then
12363   { echo "$as_me:$LINENO: result: $YACC" >&5
12364 echo "${ECHO_T}$YACC" >&6; }
12365 else
12366   { echo "$as_me:$LINENO: result: no" >&5
12367 echo "${ECHO_T}no" >&6; }
12368 fi
12369
12370
12371   test -n "$YACC" && break
12372 done
12373 test -n "$YACC" || YACC="yacc"
12374
12375 { echo "$as_me:$LINENO: checking for mv" >&5
12376 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
12377 if test -f "/usr/bin/mv"; then
12378     { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
12379 echo "${ECHO_T}/usr/bin/mv" >&6; }
12380     cat >>confdefs.h <<\EOF
12381 #define _PATH_MV "/usr/bin/mv"
12382 EOF
12383
12384 elif test -f "/bin/mv"; then
12385     { echo "$as_me:$LINENO: result: /bin/mv" >&5
12386 echo "${ECHO_T}/bin/mv" >&6; }
12387     cat >>confdefs.h <<\EOF
12388 #define _PATH_MV "/bin/mv"
12389 EOF
12390
12391 elif test -f "/usr/ucb/mv"; then
12392     { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
12393 echo "${ECHO_T}/usr/ucb/mv" >&6; }
12394     cat >>confdefs.h <<\EOF
12395 #define _PATH_MV "/usr/ucb/mv"
12396 EOF
12397
12398 elif test -f "/usr/sbin/mv"; then
12399     { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
12400 echo "${ECHO_T}/usr/sbin/mv" >&6; }
12401     cat >>confdefs.h <<\EOF
12402 #define _PATH_MV "/usr/sbin/mv"
12403 EOF
12404
12405 else
12406     { echo "$as_me:$LINENO: result: not found" >&5
12407 echo "${ECHO_T}not found" >&6; }
12408 fi
12409
12410 { echo "$as_me:$LINENO: checking for bourne shell" >&5
12411 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
12412 if test -f "/bin/sh"; then
12413     { echo "$as_me:$LINENO: result: /bin/sh" >&5
12414 echo "${ECHO_T}/bin/sh" >&6; }
12415     cat >>confdefs.h <<\EOF
12416 #define _PATH_BSHELL "/bin/sh"
12417 EOF
12418
12419 elif test -f "/usr/bin/sh"; then
12420     { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
12421 echo "${ECHO_T}/usr/bin/sh" >&6; }
12422     cat >>confdefs.h <<\EOF
12423 #define _PATH_BSHELL "/usr/bin/sh"
12424 EOF
12425
12426 elif test -f "/sbin/sh"; then
12427     { echo "$as_me:$LINENO: result: /sbin/sh" >&5
12428 echo "${ECHO_T}/sbin/sh" >&6; }
12429     cat >>confdefs.h <<\EOF
12430 #define _PATH_BSHELL "/sbin/sh"
12431 EOF
12432
12433 elif test -f "/usr/sbin/sh"; then
12434     { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
12435 echo "${ECHO_T}/usr/sbin/sh" >&6; }
12436     cat >>confdefs.h <<\EOF
12437 #define _PATH_BSHELL "/usr/sbin/sh"
12438 EOF
12439
12440 elif test -f "/bin/ksh"; then
12441     { echo "$as_me:$LINENO: result: /bin/ksh" >&5
12442 echo "${ECHO_T}/bin/ksh" >&6; }
12443     cat >>confdefs.h <<\EOF
12444 #define _PATH_BSHELL "/bin/ksh"
12445 EOF
12446
12447 elif test -f "/usr/bin/ksh"; then
12448     { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
12449 echo "${ECHO_T}/usr/bin/ksh" >&6; }
12450     cat >>confdefs.h <<\EOF
12451 #define _PATH_BSHELL "/usr/bin/ksh"
12452 EOF
12453
12454 elif test -f "/bin/bash"; then
12455     { echo "$as_me:$LINENO: result: /bin/bash" >&5
12456 echo "${ECHO_T}/bin/bash" >&6; }
12457     cat >>confdefs.h <<\EOF
12458 #define _PATH_BSHELL "/bin/bash"
12459 EOF
12460
12461 elif test -f "/usr/bin/bash"; then
12462     { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
12463 echo "${ECHO_T}/usr/bin/bash" >&6; }
12464     cat >>confdefs.h <<\EOF
12465 #define _PATH_BSHELL "/usr/bin/bash"
12466 EOF
12467
12468 else
12469     { echo "$as_me:$LINENO: result: not found" >&5
12470 echo "${ECHO_T}not found" >&6; }
12471 fi
12472
12473 if test -z "$with_sendmail"; then
12474     { echo "$as_me:$LINENO: checking for sendmail" >&5
12475 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
12476 if test -f "/usr/sbin/sendmail"; then
12477     { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
12478 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
12479     cat >>confdefs.h <<\EOF
12480 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
12481 EOF
12482
12483 elif test -f "/usr/lib/sendmail"; then
12484     { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
12485 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
12486     cat >>confdefs.h <<\EOF
12487 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
12488 EOF
12489
12490 elif test -f "/usr/etc/sendmail"; then
12491     { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
12492 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
12493     cat >>confdefs.h <<\EOF
12494 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
12495 EOF
12496
12497 elif test -f "/usr/ucblib/sendmail"; then
12498     { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
12499 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
12500     cat >>confdefs.h <<\EOF
12501 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
12502 EOF
12503
12504 elif test -f "/usr/local/lib/sendmail"; then
12505     { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
12506 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
12507     cat >>confdefs.h <<\EOF
12508 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
12509 EOF
12510
12511 elif test -f "/usr/local/bin/sendmail"; then
12512     { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
12513 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
12514     cat >>confdefs.h <<\EOF
12515 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
12516 EOF
12517
12518 else
12519     { echo "$as_me:$LINENO: result: not found" >&5
12520 echo "${ECHO_T}not found" >&6; }
12521 fi
12522
12523 fi
12524 if test -z "$with_editor"; then
12525     { echo "$as_me:$LINENO: checking for vi" >&5
12526 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
12527 if test -f "/usr/bin/vi"; then
12528     { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
12529 echo "${ECHO_T}/usr/bin/vi" >&6; }
12530     cat >>confdefs.h <<\EOF
12531 #define _PATH_VI "/usr/bin/vi"
12532 EOF
12533
12534 elif test -f "/usr/ucb/vi"; then
12535     { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
12536 echo "${ECHO_T}/usr/ucb/vi" >&6; }
12537     cat >>confdefs.h <<\EOF
12538 #define _PATH_VI "/usr/ucb/vi"
12539 EOF
12540
12541 elif test -f "/usr/bsd/vi"; then
12542     { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
12543 echo "${ECHO_T}/usr/bsd/vi" >&6; }
12544     cat >>confdefs.h <<\EOF
12545 #define _PATH_VI "/usr/bsd/vi"
12546 EOF
12547
12548 elif test -f "/bin/vi"; then
12549     { echo "$as_me:$LINENO: result: /bin/vi" >&5
12550 echo "${ECHO_T}/bin/vi" >&6; }
12551     cat >>confdefs.h <<\EOF
12552 #define _PATH_VI "/bin/vi"
12553 EOF
12554
12555 elif test -f "/usr/local/bin/vi"; then
12556     { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
12557 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
12558     cat >>confdefs.h <<\EOF
12559 #define _PATH_VI "/usr/local/bin/vi"
12560 EOF
12561
12562 else
12563     { echo "$as_me:$LINENO: result: not found" >&5
12564 echo "${ECHO_T}not found" >&6; }
12565 fi
12566
12567 fi
12568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12570 if test "${ac_cv_header_stdc+set}" = set; then
12571   echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573   cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h.  */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h.  */
12579 #include <stdlib.h>
12580 #include <stdarg.h>
12581 #include <string.h>
12582 #include <float.h>
12583
12584 int
12585 main ()
12586 {
12587
12588   ;
12589   return 0;
12590 }
12591 _ACEOF
12592 rm -f conftest.$ac_objext
12593 if { (ac_try="$ac_compile"
12594 case "(($ac_try" in
12595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596   *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599   (eval "$ac_compile") 2>conftest.er1
12600   ac_status=$?
12601   grep -v '^ *+' conftest.er1 >conftest.err
12602   rm -f conftest.er1
12603   cat conftest.err >&5
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); } && {
12606          test -z "$ac_c_werror_flag" ||
12607          test ! -s conftest.err
12608        } && test -s conftest.$ac_objext; then
12609   ac_cv_header_stdc=yes
12610 else
12611   echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614         ac_cv_header_stdc=no
12615 fi
12616
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618
12619 if test $ac_cv_header_stdc = yes; then
12620   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12621   cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h.  */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h.  */
12627 #include <string.h>
12628
12629 _ACEOF
12630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12631   $EGREP "memchr" >/dev/null 2>&1; then
12632   :
12633 else
12634   ac_cv_header_stdc=no
12635 fi
12636 rm -f conftest*
12637
12638 fi
12639
12640 if test $ac_cv_header_stdc = yes; then
12641   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12642   cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h.  */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h.  */
12648 #include <stdlib.h>
12649
12650 _ACEOF
12651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12652   $EGREP "free" >/dev/null 2>&1; then
12653   :
12654 else
12655   ac_cv_header_stdc=no
12656 fi
12657 rm -f conftest*
12658
12659 fi
12660
12661 if test $ac_cv_header_stdc = yes; then
12662   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12663   if test "$cross_compiling" = yes; then
12664   :
12665 else
12666   cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h.  */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h.  */
12672 #include <ctype.h>
12673 #include <stdlib.h>
12674 #if ((' ' & 0x0FF) == 0x020)
12675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12677 #else
12678 # define ISLOWER(c) \
12679                    (('a' <= (c) && (c) <= 'i') \
12680                      || ('j' <= (c) && (c) <= 'r') \
12681                      || ('s' <= (c) && (c) <= 'z'))
12682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12683 #endif
12684
12685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12686 int
12687 main ()
12688 {
12689   int i;
12690   for (i = 0; i < 256; i++)
12691     if (XOR (islower (i), ISLOWER (i))
12692         || toupper (i) != TOUPPER (i))
12693       return 2;
12694   return 0;
12695 }
12696 _ACEOF
12697 rm -f conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704   (eval "$ac_link") 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12708   { (case "(($ac_try" in
12709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710   *) ac_try_echo=$ac_try;;
12711 esac
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713   (eval "$ac_try") 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); }; }; then
12717   :
12718 else
12719   echo "$as_me: program exited with status $ac_status" >&5
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ( exit $ac_status )
12724 ac_cv_header_stdc=no
12725 fi
12726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12727 fi
12728
12729
12730 fi
12731 fi
12732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
12734 if test $ac_cv_header_stdc = yes; then
12735
12736 cat >>confdefs.h <<\_ACEOF
12737 #define STDC_HEADERS 1
12738 _ACEOF
12739
12740 fi
12741
12742
12743
12744
12745
12746
12747 ac_header_dirent=no
12748 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12749   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12750 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
12751 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
12752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12753   echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755   cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h.  */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h.  */
12761 #include <sys/types.h>
12762 #include <$ac_hdr>
12763
12764 int
12765 main ()
12766 {
12767 if ((DIR *) 0)
12768 return 0;
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 rm -f conftest.$ac_objext
12774 if { (ac_try="$ac_compile"
12775 case "(($ac_try" in
12776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777   *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780   (eval "$ac_compile") 2>conftest.er1
12781   ac_status=$?
12782   grep -v '^ *+' conftest.er1 >conftest.err
12783   rm -f conftest.er1
12784   cat conftest.err >&5
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); } && {
12787          test -z "$ac_c_werror_flag" ||
12788          test ! -s conftest.err
12789        } && test -s conftest.$ac_objext; then
12790   eval "$as_ac_Header=yes"
12791 else
12792   echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12794
12795         eval "$as_ac_Header=no"
12796 fi
12797
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799 fi
12800 ac_res=`eval echo '${'$as_ac_Header'}'`
12801                { echo "$as_me:$LINENO: result: $ac_res" >&5
12802 echo "${ECHO_T}$ac_res" >&6; }
12803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12804   cat >>confdefs.h <<_ACEOF
12805 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12806 _ACEOF
12807
12808 ac_header_dirent=$ac_hdr; break
12809 fi
12810
12811 done
12812 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12813 if test $ac_header_dirent = dirent.h; then
12814   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12815 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12816 if test "${ac_cv_search_opendir+set}" = set; then
12817   echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819   ac_func_search_save_LIBS=$LIBS
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826
12827 /* Override any GCC internal prototype to avoid an error.
12828    Use char because int might match the return type of a GCC
12829    builtin and then its argument prototype would still apply.  */
12830 #ifdef __cplusplus
12831 extern "C"
12832 #endif
12833 char opendir ();
12834 int
12835 main ()
12836 {
12837 return opendir ();
12838   ;
12839   return 0;
12840 }
12841 _ACEOF
12842 for ac_lib in '' dir; do
12843   if test -z "$ac_lib"; then
12844     ac_res="none required"
12845   else
12846     ac_res=-l$ac_lib
12847     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12848   fi
12849   rm -f conftest.$ac_objext conftest$ac_exeext
12850 if { (ac_try="$ac_link"
12851 case "(($ac_try" in
12852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853   *) ac_try_echo=$ac_try;;
12854 esac
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856   (eval "$ac_link") 2>conftest.er1
12857   ac_status=$?
12858   grep -v '^ *+' conftest.er1 >conftest.err
12859   rm -f conftest.er1
12860   cat conftest.err >&5
12861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862   (exit $ac_status); } && {
12863          test -z "$ac_c_werror_flag" ||
12864          test ! -s conftest.err
12865        } && test -s conftest$ac_exeext &&
12866        $as_test_x conftest$ac_exeext; then
12867   ac_cv_search_opendir=$ac_res
12868 else
12869   echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872
12873 fi
12874
12875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12876       conftest$ac_exeext
12877   if test "${ac_cv_search_opendir+set}" = set; then
12878   break
12879 fi
12880 done
12881 if test "${ac_cv_search_opendir+set}" = set; then
12882   :
12883 else
12884   ac_cv_search_opendir=no
12885 fi
12886 rm conftest.$ac_ext
12887 LIBS=$ac_func_search_save_LIBS
12888 fi
12889 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12890 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12891 ac_res=$ac_cv_search_opendir
12892 if test "$ac_res" != no; then
12893   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12894
12895 fi
12896
12897 else
12898   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12899 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12900 if test "${ac_cv_search_opendir+set}" = set; then
12901   echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903   ac_func_search_save_LIBS=$LIBS
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h.  */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h.  */
12910
12911 /* Override any GCC internal prototype to avoid an error.
12912    Use char because int might match the return type of a GCC
12913    builtin and then its argument prototype would still apply.  */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 char opendir ();
12918 int
12919 main ()
12920 {
12921 return opendir ();
12922   ;
12923   return 0;
12924 }
12925 _ACEOF
12926 for ac_lib in '' x; do
12927   if test -z "$ac_lib"; then
12928     ac_res="none required"
12929   else
12930     ac_res=-l$ac_lib
12931     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12932   fi
12933   rm -f conftest.$ac_objext conftest$ac_exeext
12934 if { (ac_try="$ac_link"
12935 case "(($ac_try" in
12936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937   *) ac_try_echo=$ac_try;;
12938 esac
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940   (eval "$ac_link") 2>conftest.er1
12941   ac_status=$?
12942   grep -v '^ *+' conftest.er1 >conftest.err
12943   rm -f conftest.er1
12944   cat conftest.err >&5
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); } && {
12947          test -z "$ac_c_werror_flag" ||
12948          test ! -s conftest.err
12949        } && test -s conftest$ac_exeext &&
12950        $as_test_x conftest$ac_exeext; then
12951   ac_cv_search_opendir=$ac_res
12952 else
12953   echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956
12957 fi
12958
12959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12960       conftest$ac_exeext
12961   if test "${ac_cv_search_opendir+set}" = set; then
12962   break
12963 fi
12964 done
12965 if test "${ac_cv_search_opendir+set}" = set; then
12966   :
12967 else
12968   ac_cv_search_opendir=no
12969 fi
12970 rm conftest.$ac_ext
12971 LIBS=$ac_func_search_save_LIBS
12972 fi
12973 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12974 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12975 ac_res=$ac_cv_search_opendir
12976 if test "$ac_res" != no; then
12977   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12978
12979 fi
12980
12981 fi
12982
12983 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12984 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
12985 if test "${ac_cv_header_time+set}" = set; then
12986   echo $ECHO_N "(cached) $ECHO_C" >&6
12987 else
12988   cat >conftest.$ac_ext <<_ACEOF
12989 /* confdefs.h.  */
12990 _ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h.  */
12994 #include <sys/types.h>
12995 #include <sys/time.h>
12996 #include <time.h>
12997
12998 int
12999 main ()
13000 {
13001 if ((struct tm *) 0)
13002 return 0;
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 rm -f conftest.$ac_objext
13008 if { (ac_try="$ac_compile"
13009 case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014   (eval "$ac_compile") 2>conftest.er1
13015   ac_status=$?
13016   grep -v '^ *+' conftest.er1 >conftest.err
13017   rm -f conftest.er1
13018   cat conftest.err >&5
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); } && {
13021          test -z "$ac_c_werror_flag" ||
13022          test ! -s conftest.err
13023        } && test -s conftest.$ac_objext; then
13024   ac_cv_header_time=yes
13025 else
13026   echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13028
13029         ac_cv_header_time=no
13030 fi
13031
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13033 fi
13034 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13035 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13036 if test $ac_cv_header_time = yes; then
13037
13038 cat >>confdefs.h <<\_ACEOF
13039 #define TIME_WITH_SYS_TIME 1
13040 _ACEOF
13041
13042 fi
13043
13044
13045
13046
13047
13048
13049
13050
13051 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13052 do
13053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13055   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13058   echo $ECHO_N "(cached) $ECHO_C" >&6
13059 fi
13060 ac_res=`eval echo '${'$as_ac_Header'}'`
13061                { echo "$as_me:$LINENO: result: $ac_res" >&5
13062 echo "${ECHO_T}$ac_res" >&6; }
13063 else
13064   # Is the header compilable?
13065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13067 cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h.  */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h.  */
13073 $ac_includes_default
13074 #include <$ac_header>
13075 _ACEOF
13076 rm -f conftest.$ac_objext
13077 if { (ac_try="$ac_compile"
13078 case "(($ac_try" in
13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080   *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083   (eval "$ac_compile") 2>conftest.er1
13084   ac_status=$?
13085   grep -v '^ *+' conftest.er1 >conftest.err
13086   rm -f conftest.er1
13087   cat conftest.err >&5
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } && {
13090          test -z "$ac_c_werror_flag" ||
13091          test ! -s conftest.err
13092        } && test -s conftest.$ac_objext; then
13093   ac_header_compiler=yes
13094 else
13095   echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13097
13098         ac_header_compiler=no
13099 fi
13100
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13103 echo "${ECHO_T}$ac_header_compiler" >&6; }
13104
13105 # Is the header present?
13106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h.  */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h.  */
13114 #include <$ac_header>
13115 _ACEOF
13116 if { (ac_try="$ac_cpp conftest.$ac_ext"
13117 case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } >/dev/null && {
13129          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13130          test ! -s conftest.err
13131        }; then
13132   ac_header_preproc=yes
13133 else
13134   echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13136
13137   ac_header_preproc=no
13138 fi
13139
13140 rm -f conftest.err conftest.$ac_ext
13141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13142 echo "${ECHO_T}$ac_header_preproc" >&6; }
13143
13144 # So?  What about this header?
13145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13146   yes:no: )
13147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13151     ac_header_preproc=yes
13152     ;;
13153   no:yes:* )
13154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13166
13167     ;;
13168 esac
13169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13172   echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174   eval "$as_ac_Header=\$ac_header_preproc"
13175 fi
13176 ac_res=`eval echo '${'$as_ac_Header'}'`
13177                { echo "$as_me:$LINENO: result: $ac_res" >&5
13178 echo "${ECHO_T}$ac_res" >&6; }
13179
13180 fi
13181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13182   cat >>confdefs.h <<_ACEOF
13183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13184 _ACEOF
13185
13186 fi
13187
13188 done
13189
13190
13191 for ac_header in err.h
13192 do
13193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 fi
13200 ac_res=`eval echo '${'$as_ac_Header'}'`
13201                { echo "$as_me:$LINENO: result: $ac_res" >&5
13202 echo "${ECHO_T}$ac_res" >&6; }
13203 else
13204   # Is the header compilable?
13205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h.  */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h.  */
13213 $ac_includes_default
13214 #include <$ac_header>
13215 _ACEOF
13216 rm -f conftest.$ac_objext
13217 if { (ac_try="$ac_compile"
13218 case "(($ac_try" in
13219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220   *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223   (eval "$ac_compile") 2>conftest.er1
13224   ac_status=$?
13225   grep -v '^ *+' conftest.er1 >conftest.err
13226   rm -f conftest.er1
13227   cat conftest.err >&5
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } && {
13230          test -z "$ac_c_werror_flag" ||
13231          test ! -s conftest.err
13232        } && test -s conftest.$ac_objext; then
13233   ac_header_compiler=yes
13234 else
13235   echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13237
13238         ac_header_compiler=no
13239 fi
13240
13241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13243 echo "${ECHO_T}$ac_header_compiler" >&6; }
13244
13245 # Is the header present?
13246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13248 cat >conftest.$ac_ext <<_ACEOF
13249 /* confdefs.h.  */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h.  */
13254 #include <$ac_header>
13255 _ACEOF
13256 if { (ac_try="$ac_cpp conftest.$ac_ext"
13257 case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13263   ac_status=$?
13264   grep -v '^ *+' conftest.er1 >conftest.err
13265   rm -f conftest.er1
13266   cat conftest.err >&5
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } >/dev/null && {
13269          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13270          test ! -s conftest.err
13271        }; then
13272   ac_header_preproc=yes
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277   ac_header_preproc=no
13278 fi
13279
13280 rm -f conftest.err conftest.$ac_ext
13281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13282 echo "${ECHO_T}$ac_header_preproc" >&6; }
13283
13284 # So?  What about this header?
13285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13286   yes:no: )
13287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13291     ac_header_preproc=yes
13292     ;;
13293   no:yes:* )
13294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13306
13307     ;;
13308 esac
13309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13312   echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314   eval "$as_ac_Header=\$ac_header_preproc"
13315 fi
13316 ac_res=`eval echo '${'$as_ac_Header'}'`
13317                { echo "$as_me:$LINENO: result: $ac_res" >&5
13318 echo "${ECHO_T}$ac_res" >&6; }
13319
13320 fi
13321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13322   cat >>confdefs.h <<_ACEOF
13323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13324 _ACEOF
13325
13326 else
13327   case " $LIBOBJS " in
13328   *" err.$ac_objext "* ) ;;
13329   *) LIBOBJS="$LIBOBJS err.$ac_objext"
13330  ;;
13331 esac
13332
13333 fi
13334
13335 done
13336
13337 if test "$OS" != "ultrix"; then
13338     { echo "$as_me:$LINENO: checking POSIX termios" >&5
13339 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13340 if test "${ac_cv_sys_posix_termios+set}" = set; then
13341   echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343   cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349 #include <sys/types.h>
13350 #include <unistd.h>
13351 #include <termios.h>
13352
13353 int
13354 main ()
13355 {
13356 /* SunOS 4.0.3 has termios.h but not the library calls.  */
13357    tcgetattr(0, 0);
13358   ;
13359   return 0;
13360 }
13361 _ACEOF
13362 rm -f conftest.$ac_objext conftest$ac_exeext
13363 if { (ac_try="$ac_link"
13364 case "(($ac_try" in
13365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366   *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369   (eval "$ac_link") 2>conftest.er1
13370   ac_status=$?
13371   grep -v '^ *+' conftest.er1 >conftest.err
13372   rm -f conftest.er1
13373   cat conftest.err >&5
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } && {
13376          test -z "$ac_c_werror_flag" ||
13377          test ! -s conftest.err
13378        } && test -s conftest$ac_exeext &&
13379        $as_test_x conftest$ac_exeext; then
13380   ac_cv_sys_posix_termios=yes
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385         ac_cv_sys_posix_termios=no
13386 fi
13387
13388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13389       conftest$ac_exeext conftest.$ac_ext
13390 fi
13391 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13392 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13393
13394     if test "$ac_cv_sys_posix_termios" = "yes"; then
13395         cat >>confdefs.h <<\_ACEOF
13396 #define HAVE_TERMIOS_H 1
13397 _ACEOF
13398
13399     else
13400
13401 for ac_header in termio.h
13402 do
13403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13405   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 fi
13410 ac_res=`eval echo '${'$as_ac_Header'}'`
13411                { echo "$as_me:$LINENO: result: $ac_res" >&5
13412 echo "${ECHO_T}$ac_res" >&6; }
13413 else
13414   # Is the header compilable?
13415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 $ac_includes_default
13424 #include <$ac_header>
13425 _ACEOF
13426 rm -f conftest.$ac_objext
13427 if { (ac_try="$ac_compile"
13428 case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_compile") 2>conftest.er1
13434   ac_status=$?
13435   grep -v '^ *+' conftest.er1 >conftest.err
13436   rm -f conftest.er1
13437   cat conftest.err >&5
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); } && {
13440          test -z "$ac_c_werror_flag" ||
13441          test ! -s conftest.err
13442        } && test -s conftest.$ac_objext; then
13443   ac_header_compiler=yes
13444 else
13445   echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448         ac_header_compiler=no
13449 fi
13450
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453 echo "${ECHO_T}$ac_header_compiler" >&6; }
13454
13455 # Is the header present?
13456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h.  */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h.  */
13464 #include <$ac_header>
13465 _ACEOF
13466 if { (ac_try="$ac_cpp conftest.$ac_ext"
13467 case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13473   ac_status=$?
13474   grep -v '^ *+' conftest.er1 >conftest.err
13475   rm -f conftest.er1
13476   cat conftest.err >&5
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } >/dev/null && {
13479          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13480          test ! -s conftest.err
13481        }; then
13482   ac_header_preproc=yes
13483 else
13484   echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13486
13487   ac_header_preproc=no
13488 fi
13489
13490 rm -f conftest.err conftest.$ac_ext
13491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13492 echo "${ECHO_T}$ac_header_preproc" >&6; }
13493
13494 # So?  What about this header?
13495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13496   yes:no: )
13497     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13501     ac_header_preproc=yes
13502     ;;
13503   no:yes:* )
13504     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13506     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13507 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13508     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13510     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13511 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13514     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13516
13517     ;;
13518 esac
13519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13522   echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524   eval "$as_ac_Header=\$ac_header_preproc"
13525 fi
13526 ac_res=`eval echo '${'$as_ac_Header'}'`
13527                { echo "$as_me:$LINENO: result: $ac_res" >&5
13528 echo "${ECHO_T}$ac_res" >&6; }
13529
13530 fi
13531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13532   cat >>confdefs.h <<_ACEOF
13533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13534 _ACEOF
13535
13536 fi
13537
13538 done
13539
13540     fi
13541 fi
13542 if test ${with_logincap-'no'} != "no"; then
13543
13544 for ac_header in login_cap.h
13545 do
13546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13548   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13551   echo $ECHO_N "(cached) $ECHO_C" >&6
13552 fi
13553 ac_res=`eval echo '${'$as_ac_Header'}'`
13554                { echo "$as_me:$LINENO: result: $ac_res" >&5
13555 echo "${ECHO_T}$ac_res" >&6; }
13556 else
13557   # Is the header compilable?
13558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h.  */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h.  */
13566 $ac_includes_default
13567 #include <$ac_header>
13568 _ACEOF
13569 rm -f conftest.$ac_objext
13570 if { (ac_try="$ac_compile"
13571 case "(($ac_try" in
13572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573   *) ac_try_echo=$ac_try;;
13574 esac
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576   (eval "$ac_compile") 2>conftest.er1
13577   ac_status=$?
13578   grep -v '^ *+' conftest.er1 >conftest.err
13579   rm -f conftest.er1
13580   cat conftest.err >&5
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); } && {
13583          test -z "$ac_c_werror_flag" ||
13584          test ! -s conftest.err
13585        } && test -s conftest.$ac_objext; then
13586   ac_header_compiler=yes
13587 else
13588   echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591         ac_header_compiler=no
13592 fi
13593
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13596 echo "${ECHO_T}$ac_header_compiler" >&6; }
13597
13598 # Is the header present?
13599 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607 #include <$ac_header>
13608 _ACEOF
13609 if { (ac_try="$ac_cpp conftest.$ac_ext"
13610 case "(($ac_try" in
13611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612   *) ac_try_echo=$ac_try;;
13613 esac
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13616   ac_status=$?
13617   grep -v '^ *+' conftest.er1 >conftest.err
13618   rm -f conftest.er1
13619   cat conftest.err >&5
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); } >/dev/null && {
13622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13623          test ! -s conftest.err
13624        }; then
13625   ac_header_preproc=yes
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630   ac_header_preproc=no
13631 fi
13632
13633 rm -f conftest.err conftest.$ac_ext
13634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635 echo "${ECHO_T}$ac_header_preproc" >&6; }
13636
13637 # So?  What about this header?
13638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13639   yes:no: )
13640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13644     ac_header_preproc=yes
13645     ;;
13646   no:yes:* )
13647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13659
13660     ;;
13661 esac
13662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667   eval "$as_ac_Header=\$ac_header_preproc"
13668 fi
13669 ac_res=`eval echo '${'$as_ac_Header'}'`
13670                { echo "$as_me:$LINENO: result: $ac_res" >&5
13671 echo "${ECHO_T}$ac_res" >&6; }
13672
13673 fi
13674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13675   cat >>confdefs.h <<_ACEOF
13676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13677 _ACEOF
13678
13679         case "$OS" in
13680             freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
13681             ;;
13682         esac
13683
13684 fi
13685
13686 done
13687
13688 fi
13689 if test ${with_project-'no'} != "no"; then
13690     if test "${ac_cv_header_project_h+set}" = set; then
13691   { echo "$as_me:$LINENO: checking for project.h" >&5
13692 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13693 if test "${ac_cv_header_project_h+set}" = set; then
13694   echo $ECHO_N "(cached) $ECHO_C" >&6
13695 fi
13696 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13697 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13698 else
13699   # Is the header compilable?
13700 { echo "$as_me:$LINENO: checking project.h usability" >&5
13701 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
13702 cat >conftest.$ac_ext <<_ACEOF
13703 /* confdefs.h.  */
13704 _ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h.  */
13708 $ac_includes_default
13709 #include <project.h>
13710 _ACEOF
13711 rm -f conftest.$ac_objext
13712 if { (ac_try="$ac_compile"
13713 case "(($ac_try" in
13714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715   *) ac_try_echo=$ac_try;;
13716 esac
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718   (eval "$ac_compile") 2>conftest.er1
13719   ac_status=$?
13720   grep -v '^ *+' conftest.er1 >conftest.err
13721   rm -f conftest.er1
13722   cat conftest.err >&5
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } && {
13725          test -z "$ac_c_werror_flag" ||
13726          test ! -s conftest.err
13727        } && test -s conftest.$ac_objext; then
13728   ac_header_compiler=yes
13729 else
13730   echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13732
13733         ac_header_compiler=no
13734 fi
13735
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13738 echo "${ECHO_T}$ac_header_compiler" >&6; }
13739
13740 # Is the header present?
13741 { echo "$as_me:$LINENO: checking project.h presence" >&5
13742 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h.  */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h.  */
13749 #include <project.h>
13750 _ACEOF
13751 if { (ac_try="$ac_cpp conftest.$ac_ext"
13752 case "(($ac_try" in
13753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754   *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13758   ac_status=$?
13759   grep -v '^ *+' conftest.er1 >conftest.err
13760   rm -f conftest.er1
13761   cat conftest.err >&5
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); } >/dev/null && {
13764          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13765          test ! -s conftest.err
13766        }; then
13767   ac_header_preproc=yes
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772   ac_header_preproc=no
13773 fi
13774
13775 rm -f conftest.err conftest.$ac_ext
13776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13777 echo "${ECHO_T}$ac_header_preproc" >&6; }
13778
13779 # So?  What about this header?
13780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13781   yes:no: )
13782     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
13783 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13784     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
13785 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
13786     ac_header_preproc=yes
13787     ;;
13788   no:yes:* )
13789     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
13790 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
13791     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
13792 echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
13793     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
13794 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
13795     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
13796 echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13797     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
13798 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
13799     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
13800 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
13801
13802     ;;
13803 esac
13804 { echo "$as_me:$LINENO: checking for project.h" >&5
13805 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13806 if test "${ac_cv_header_project_h+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809   ac_cv_header_project_h=$ac_header_preproc
13810 fi
13811 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13812 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13813
13814 fi
13815 if test $ac_cv_header_project_h = yes; then
13816   cat >>confdefs.h <<\_ACEOF
13817 #define HAVE_PROJECT_H 1
13818 _ACEOF
13819
13820         SUDO_LIBS="${SUDO_LIBS} -lproject"
13821 else
13822   -
13823 fi
13824
13825
13826 fi
13827 { echo "$as_me:$LINENO: checking for mode_t" >&5
13828 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
13829 if test "${ac_cv_type_mode_t+set}" = set; then
13830   echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832   cat >conftest.$ac_ext <<_ACEOF
13833 /* confdefs.h.  */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h.  */
13838 $ac_includes_default
13839 typedef mode_t ac__type_new_;
13840 int
13841 main ()
13842 {
13843 if ((ac__type_new_ *) 0)
13844   return 0;
13845 if (sizeof (ac__type_new_))
13846   return 0;
13847   ;
13848   return 0;
13849 }
13850 _ACEOF
13851 rm -f conftest.$ac_objext
13852 if { (ac_try="$ac_compile"
13853 case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_compile") 2>conftest.er1
13859   ac_status=$?
13860   grep -v '^ *+' conftest.er1 >conftest.err
13861   rm -f conftest.er1
13862   cat conftest.err >&5
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); } && {
13865          test -z "$ac_c_werror_flag" ||
13866          test ! -s conftest.err
13867        } && test -s conftest.$ac_objext; then
13868   ac_cv_type_mode_t=yes
13869 else
13870   echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13872
13873         ac_cv_type_mode_t=no
13874 fi
13875
13876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13877 fi
13878 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13879 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
13880 if test $ac_cv_type_mode_t = yes; then
13881   :
13882 else
13883
13884 cat >>confdefs.h <<_ACEOF
13885 #define mode_t int
13886 _ACEOF
13887
13888 fi
13889
13890 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13891 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
13892 if test "${ac_cv_type_uid_t+set}" = set; then
13893   echo $ECHO_N "(cached) $ECHO_C" >&6
13894 else
13895   cat >conftest.$ac_ext <<_ACEOF
13896 /* confdefs.h.  */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h.  */
13901 #include <sys/types.h>
13902
13903 _ACEOF
13904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13905   $EGREP "uid_t" >/dev/null 2>&1; then
13906   ac_cv_type_uid_t=yes
13907 else
13908   ac_cv_type_uid_t=no
13909 fi
13910 rm -f conftest*
13911
13912 fi
13913 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13914 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
13915 if test $ac_cv_type_uid_t = no; then
13916
13917 cat >>confdefs.h <<\_ACEOF
13918 #define uid_t int
13919 _ACEOF
13920
13921
13922 cat >>confdefs.h <<\_ACEOF
13923 #define gid_t int
13924 _ACEOF
13925
13926 fi
13927
13928 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
13929 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
13930 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
13931   echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933   cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h.  */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h.  */
13939 #include <sys/types.h>
13940 #include <signal.h>
13941
13942 typedef sig_atomic_t ac__type_new_;
13943 int
13944 main ()
13945 {
13946 if ((ac__type_new_ *) 0)
13947   return 0;
13948 if (sizeof (ac__type_new_))
13949   return 0;
13950   ;
13951   return 0;
13952 }
13953 _ACEOF
13954 rm -f conftest.$ac_objext
13955 if { (ac_try="$ac_compile"
13956 case "(($ac_try" in
13957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958   *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961   (eval "$ac_compile") 2>conftest.er1
13962   ac_status=$?
13963   grep -v '^ *+' conftest.er1 >conftest.err
13964   rm -f conftest.er1
13965   cat conftest.err >&5
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); } && {
13968          test -z "$ac_c_werror_flag" ||
13969          test ! -s conftest.err
13970        } && test -s conftest.$ac_objext; then
13971   ac_cv_type_sig_atomic_t=yes
13972 else
13973   echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976         ac_cv_type_sig_atomic_t=no
13977 fi
13978
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980 fi
13981 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
13982 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
13983 if test $ac_cv_type_sig_atomic_t = yes; then
13984
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_SIG_ATOMIC_T 1
13987 _ACEOF
13988
13989
13990 else
13991   cat >>confdefs.h <<\_ACEOF
13992 #define sig_atomic_t int
13993 _ACEOF
13994
13995 fi
13996
13997 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
13998 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
13999 if test "${ac_cv_type_sigaction_t+set}" = set; then
14000   echo $ECHO_N "(cached) $ECHO_C" >&6
14001 else
14002   cat >conftest.$ac_ext <<_ACEOF
14003 /* confdefs.h.  */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h.  */
14008 #include <sys/types.h>
14009 #include <signal.h>
14010
14011 typedef sigaction_t ac__type_new_;
14012 int
14013 main ()
14014 {
14015 if ((ac__type_new_ *) 0)
14016   return 0;
14017 if (sizeof (ac__type_new_))
14018   return 0;
14019   ;
14020   return 0;
14021 }
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (ac_try="$ac_compile"
14025 case "(($ac_try" in
14026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027   *) ac_try_echo=$ac_try;;
14028 esac
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030   (eval "$ac_compile") 2>conftest.er1
14031   ac_status=$?
14032   grep -v '^ *+' conftest.er1 >conftest.err
14033   rm -f conftest.er1
14034   cat conftest.err >&5
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); } && {
14037          test -z "$ac_c_werror_flag" ||
14038          test ! -s conftest.err
14039        } && test -s conftest.$ac_objext; then
14040   ac_cv_type_sigaction_t=yes
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045         ac_cv_type_sigaction_t=no
14046 fi
14047
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 fi
14050 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14051 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14052 if test $ac_cv_type_sigaction_t = yes; then
14053
14054 cat >>confdefs.h <<_ACEOF
14055 #define HAVE_SIGACTION_T 1
14056 _ACEOF
14057
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_SIGACTION_T 1
14060 _ACEOF
14061
14062 fi
14063
14064 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14065 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14066 if test "${ac_cv_type_struct_timespec+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069   cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h.  */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h.  */
14075 #include <sys/types.h>
14076 #if TIME_WITH_SYS_TIME
14077 # include <sys/time.h>
14078 #endif
14079 #include <time.h>
14080
14081 typedef struct timespec ac__type_new_;
14082 int
14083 main ()
14084 {
14085 if ((ac__type_new_ *) 0)
14086   return 0;
14087 if (sizeof (ac__type_new_))
14088   return 0;
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 rm -f conftest.$ac_objext
14094 if { (ac_try="$ac_compile"
14095 case "(($ac_try" in
14096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097   *) ac_try_echo=$ac_try;;
14098 esac
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100   (eval "$ac_compile") 2>conftest.er1
14101   ac_status=$?
14102   grep -v '^ *+' conftest.er1 >conftest.err
14103   rm -f conftest.er1
14104   cat conftest.err >&5
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); } && {
14107          test -z "$ac_c_werror_flag" ||
14108          test ! -s conftest.err
14109        } && test -s conftest.$ac_objext; then
14110   ac_cv_type_struct_timespec=yes
14111 else
14112   echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14114
14115         ac_cv_type_struct_timespec=no
14116 fi
14117
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119 fi
14120 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14121 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14122 if test $ac_cv_type_struct_timespec = yes; then
14123   cat >>confdefs.h <<\_ACEOF
14124 #define HAVE_TIMESPEC 1
14125 _ACEOF
14126
14127 fi
14128
14129 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14130 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14131 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134   cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h.  */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h.  */
14140 #include <sys/types.h>
14141 #include <netinet/in.h>
14142
14143 typedef struct in6_addr ac__type_new_;
14144 int
14145 main ()
14146 {
14147 if ((ac__type_new_ *) 0)
14148   return 0;
14149 if (sizeof (ac__type_new_))
14150   return 0;
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext
14156 if { (ac_try="$ac_compile"
14157 case "(($ac_try" in
14158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159   *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162   (eval "$ac_compile") 2>conftest.er1
14163   ac_status=$?
14164   grep -v '^ *+' conftest.er1 >conftest.err
14165   rm -f conftest.er1
14166   cat conftest.err >&5
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); } && {
14169          test -z "$ac_c_werror_flag" ||
14170          test ! -s conftest.err
14171        } && test -s conftest.$ac_objext; then
14172   ac_cv_type_struct_in6_addr=yes
14173 else
14174   echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14176
14177         ac_cv_type_struct_in6_addr=no
14178 fi
14179
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181 fi
14182 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14183 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14184 if test $ac_cv_type_struct_in6_addr = yes; then
14185
14186 cat >>confdefs.h <<_ACEOF
14187 #define HAVE_STRUCT_IN6_ADDR 1
14188 _ACEOF
14189
14190 cat >>confdefs.h <<\_ACEOF
14191 #define HAVE_IN6_ADDR 1
14192 _ACEOF
14193
14194 fi
14195
14196 { echo "$as_me:$LINENO: checking for size_t" >&5
14197 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14198 if test "${sudo_cv_type_size_t+set}" = set; then
14199   echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201   cat >conftest.$ac_ext <<_ACEOF
14202 /* confdefs.h.  */
14203 _ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h.  */
14207 #include <sys/types.h>
14208 #include <stdio.h>
14209 #if STDC_HEADERS
14210 #include <stdlib.h>
14211 #endif
14212 #if HAVE_UNISTD_H
14213 #include <unistd.h>
14214 #endif
14215 _ACEOF
14216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14217   $EGREP "size_t" >/dev/null 2>&1; then
14218   sudo_cv_type_size_t=yes
14219 else
14220   sudo_cv_type_size_t=no
14221 fi
14222 rm -f conftest*
14223
14224 fi
14225 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14226 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14227 if test $sudo_cv_type_size_t = no; then
14228
14229 cat >>confdefs.h <<\_ACEOF
14230 #define size_t int
14231 _ACEOF
14232
14233 fi
14234
14235 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14236 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14237 if test "${sudo_cv_type_ssize_t+set}" = set; then
14238   echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240   cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h.  */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h.  */
14246 #include <sys/types.h>
14247 #include <stdio.h>
14248 #if STDC_HEADERS
14249 #include <stdlib.h>
14250 #endif
14251 #if HAVE_UNISTD_H
14252 #include <unistd.h>
14253 #endif
14254 _ACEOF
14255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14256   $EGREP "ssize_t" >/dev/null 2>&1; then
14257   sudo_cv_type_ssize_t=yes
14258 else
14259   sudo_cv_type_ssize_t=no
14260 fi
14261 rm -f conftest*
14262
14263 fi
14264 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14265 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14266 if test $sudo_cv_type_ssize_t = no; then
14267
14268 cat >>confdefs.h <<\_ACEOF
14269 #define ssize_t int
14270 _ACEOF
14271
14272 fi
14273
14274 { echo "$as_me:$LINENO: checking for dev_t" >&5
14275 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
14276 if test "${sudo_cv_type_dev_t+set}" = set; then
14277   echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279   cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h.  */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h.  */
14285 #include <sys/types.h>
14286 #include <stdio.h>
14287 #if STDC_HEADERS
14288 #include <stdlib.h>
14289 #endif
14290 #if HAVE_UNISTD_H
14291 #include <unistd.h>
14292 #endif
14293 _ACEOF
14294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14295   $EGREP "dev_t" >/dev/null 2>&1; then
14296   sudo_cv_type_dev_t=yes
14297 else
14298   sudo_cv_type_dev_t=no
14299 fi
14300 rm -f conftest*
14301
14302 fi
14303 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
14304 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
14305 if test $sudo_cv_type_dev_t = no; then
14306
14307 cat >>confdefs.h <<\_ACEOF
14308 #define dev_t int
14309 _ACEOF
14310
14311 fi
14312
14313 { echo "$as_me:$LINENO: checking for ino_t" >&5
14314 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
14315 if test "${sudo_cv_type_ino_t+set}" = set; then
14316   echo $ECHO_N "(cached) $ECHO_C" >&6
14317 else
14318   cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h.  */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h.  */
14324 #include <sys/types.h>
14325 #include <stdio.h>
14326 #if STDC_HEADERS
14327 #include <stdlib.h>
14328 #endif
14329 #if HAVE_UNISTD_H
14330 #include <unistd.h>
14331 #endif
14332 _ACEOF
14333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14334   $EGREP "ino_t" >/dev/null 2>&1; then
14335   sudo_cv_type_ino_t=yes
14336 else
14337   sudo_cv_type_ino_t=no
14338 fi
14339 rm -f conftest*
14340
14341 fi
14342 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
14343 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
14344 if test $sudo_cv_type_ino_t = no; then
14345
14346 cat >>confdefs.h <<\_ACEOF
14347 #define ino_t unsigned int
14348 _ACEOF
14349
14350 fi
14351
14352 { echo "$as_me:$LINENO: checking for full void implementation" >&5
14353 echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6; }
14354 cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h.  */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h.  */
14360
14361 int
14362 main ()
14363 {
14364 void *foo;
14365 foo = (void *)0; (void *)"test";
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext
14371 if { (ac_try="$ac_compile"
14372 case "(($ac_try" in
14373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374   *) ac_try_echo=$ac_try;;
14375 esac
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377   (eval "$ac_compile") 2>conftest.er1
14378   ac_status=$?
14379   grep -v '^ *+' conftest.er1 >conftest.err
14380   rm -f conftest.er1
14381   cat conftest.err >&5
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); } && {
14384          test -z "$ac_c_werror_flag" ||
14385          test ! -s conftest.err
14386        } && test -s conftest.$ac_objext; then
14387
14388 cat >>confdefs.h <<\_ACEOF
14389 #define VOID void
14390 _ACEOF
14391
14392 { echo "$as_me:$LINENO: result: yes" >&5
14393 echo "${ECHO_T}yes" >&6; }
14394 else
14395   echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14397
14398         cat >>confdefs.h <<\_ACEOF
14399 #define VOID char
14400 _ACEOF
14401
14402 { echo "$as_me:$LINENO: result: no" >&5
14403 echo "${ECHO_T}no" >&6; }
14404 fi
14405
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407
14408 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
14409 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
14410 if test "${sudo_cv_uid_t_len+set}" = set; then
14411   echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413   rm -f conftestdata
14414 if test "$cross_compiling" = yes; then
14415   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14416 See \`config.log' for more details." >&5
14417 echo "$as_me: error: cannot run test program while cross compiling
14418 See \`config.log' for more details." >&2;}
14419    { (exit 1); exit 1; }; }
14420 else
14421   cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h.  */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h.  */
14427 #include <stdio.h>
14428 #include <pwd.h>
14429 #include <limits.h>
14430 #include <sys/types.h>
14431 #include <sys/param.h>
14432 main() {
14433   FILE *f;
14434   char b[1024];
14435   uid_t u = (uid_t) -1;
14436
14437   if ((f = fopen("conftestdata", "w")) == NULL)
14438     exit(1);
14439
14440   (void) sprintf(b, "%lu", (unsigned long) u);
14441   (void) fprintf(f, "%d\n", strlen(b));
14442   (void) fclose(f);
14443   exit(0);
14444 }
14445 _ACEOF
14446 rm -f conftest$ac_exeext
14447 if { (ac_try="$ac_link"
14448 case "(($ac_try" in
14449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450   *) ac_try_echo=$ac_try;;
14451 esac
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453   (eval "$ac_link") 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14457   { (case "(($ac_try" in
14458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459   *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462   (eval "$ac_try") 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; }; then
14466   sudo_cv_uid_t_len=`cat conftestdata`
14467 else
14468   echo "$as_me: program exited with status $ac_status" >&5
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472 ( exit $ac_status )
14473 sudo_cv_uid_t_len=10
14474 fi
14475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14476 fi
14477
14478
14479
14480 fi
14481
14482 rm -f conftestdata
14483 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
14484 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
14485
14486 cat >>confdefs.h <<_ACEOF
14487 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14488 _ACEOF
14489
14490
14491 { echo "$as_me:$LINENO: checking for long long" >&5
14492 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14493 if test "${ac_cv_type_long_long+set}" = set; then
14494   echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496   cat >conftest.$ac_ext <<_ACEOF
14497 /* confdefs.h.  */
14498 _ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h.  */
14502 $ac_includes_default
14503 typedef long long ac__type_new_;
14504 int
14505 main ()
14506 {
14507 if ((ac__type_new_ *) 0)
14508   return 0;
14509 if (sizeof (ac__type_new_))
14510   return 0;
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (ac_try="$ac_compile"
14517 case "(($ac_try" in
14518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519   *) ac_try_echo=$ac_try;;
14520 esac
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522   (eval "$ac_compile") 2>conftest.er1
14523   ac_status=$?
14524   grep -v '^ *+' conftest.er1 >conftest.err
14525   rm -f conftest.er1
14526   cat conftest.err >&5
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } && {
14529          test -z "$ac_c_werror_flag" ||
14530          test ! -s conftest.err
14531        } && test -s conftest.$ac_objext; then
14532   ac_cv_type_long_long=yes
14533 else
14534   echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14536
14537         ac_cv_type_long_long=no
14538 fi
14539
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 fi
14542 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14543 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
14544 if test $ac_cv_type_long_long = yes; then
14545
14546 cat >>confdefs.h <<_ACEOF
14547 #define HAVE_LONG_LONG 1
14548 _ACEOF
14549
14550
14551 cat >>confdefs.h <<\_ACEOF
14552 #define HAVE_LONG_LONG 1
14553 _ACEOF
14554
14555 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
14556 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
14557 if test "${sudo_cv_type_long_is_quad+set}" = set; then
14558   echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560   if test "$cross_compiling" = yes; then
14561   sudo_cv_type_long_is_quad=no
14562 else
14563   cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h.  */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h.  */
14569
14570 main() {
14571 if (sizeof(long long) == sizeof(long)) exit(0);
14572 else exit(1);
14573 }
14574 _ACEOF
14575 rm -f conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579   *) ac_try_echo=$ac_try;;
14580 esac
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582   (eval "$ac_link") 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14586   { (case "(($ac_try" in
14587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588   *) ac_try_echo=$ac_try;;
14589 esac
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591   (eval "$ac_try") 2>&5
14592   ac_status=$?
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); }; }; then
14595   sudo_cv_type_long_is_quad=yes
14596 else
14597   echo "$as_me: program exited with status $ac_status" >&5
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 ( exit $ac_status )
14602 sudo_cv_type_long_is_quad=no
14603 fi
14604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14605 fi
14606
14607
14608 rm -f core core.* *.core
14609 fi
14610 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
14611 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
14612 if test $sudo_cv_type_long_is_quad = yes; then
14613
14614 cat >>confdefs.h <<\_ACEOF
14615 #define LONG_IS_QUAD 1
14616 _ACEOF
14617
14618 fi
14619
14620 fi
14621
14622 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
14623 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
14624 if test "${sudo_cv_sock_sa_len+set}" = set; then
14625   echo $ECHO_N "(cached) $ECHO_C" >&6
14626 else
14627   if test "$cross_compiling" = yes; then
14628   sudo_cv_sock_sa_len=no
14629 else
14630   cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h.  */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h.  */
14636 #include <sys/types.h>
14637 #include <sys/socket.h>
14638 main() {
14639 struct sockaddr s;
14640 s.sa_len = 0;
14641 exit(0);
14642 }
14643 _ACEOF
14644 rm -f conftest$ac_exeext
14645 if { (ac_try="$ac_link"
14646 case "(($ac_try" in
14647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648   *) ac_try_echo=$ac_try;;
14649 esac
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651   (eval "$ac_link") 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14655   { (case "(($ac_try" in
14656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657   *) ac_try_echo=$ac_try;;
14658 esac
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660   (eval "$ac_try") 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; }; then
14664   sudo_cv_sock_sa_len=yes
14665 else
14666   echo "$as_me: program exited with status $ac_status" >&5
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14669
14670 ( exit $ac_status )
14671 sudo_cv_sock_sa_len=no
14672 fi
14673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14674 fi
14675
14676
14677 rm -f core core.* *.core
14678 fi
14679 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
14680 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
14681 if test $sudo_cv_sock_sa_len = yes; then
14682
14683 cat >>confdefs.h <<\_ACEOF
14684 #define HAVE_SA_LEN 1
14685 _ACEOF
14686
14687 fi
14688
14689 case "$DEFS" in
14690     *"RETSIGTYPE"*)     ;;
14691     *)                  { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14692 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
14693 if test "${ac_cv_type_signal+set}" = set; then
14694   echo $ECHO_N "(cached) $ECHO_C" >&6
14695 else
14696   cat >conftest.$ac_ext <<_ACEOF
14697 /* confdefs.h.  */
14698 _ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h.  */
14702 #include <sys/types.h>
14703 #include <signal.h>
14704
14705 int
14706 main ()
14707 {
14708 return *(signal (0, 0)) (0) == 1;
14709   ;
14710   return 0;
14711 }
14712 _ACEOF
14713 rm -f conftest.$ac_objext
14714 if { (ac_try="$ac_compile"
14715 case "(($ac_try" in
14716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717   *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720   (eval "$ac_compile") 2>conftest.er1
14721   ac_status=$?
14722   grep -v '^ *+' conftest.er1 >conftest.err
14723   rm -f conftest.er1
14724   cat conftest.err >&5
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); } && {
14727          test -z "$ac_c_werror_flag" ||
14728          test ! -s conftest.err
14729        } && test -s conftest.$ac_objext; then
14730   ac_cv_type_signal=int
14731 else
14732   echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14734
14735         ac_cv_type_signal=void
14736 fi
14737
14738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739 fi
14740 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14741 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14742
14743 cat >>confdefs.h <<_ACEOF
14744 #define RETSIGTYPE $ac_cv_type_signal
14745 _ACEOF
14746
14747 ;;
14748 esac
14749 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
14750 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
14751 if test "${ac_cv_type_getgroups+set}" = set; then
14752   echo $ECHO_N "(cached) $ECHO_C" >&6
14753 else
14754   if test "$cross_compiling" = yes; then
14755   ac_cv_type_getgroups=cross
14756 else
14757   cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h.  */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h.  */
14763 /* Thanks to Mike Rendell for this test.  */
14764 $ac_includes_default
14765 #define NGID 256
14766 #undef MAX
14767 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14768
14769 int
14770 main ()
14771 {
14772   gid_t gidset[NGID];
14773   int i, n;
14774   union { gid_t gval; long int lval; }  val;
14775
14776   val.lval = -1;
14777   for (i = 0; i < NGID; i++)
14778     gidset[i] = val.gval;
14779   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14780                  gidset);
14781   /* Exit non-zero if getgroups seems to require an array of ints.  This
14782      happens when gid_t is short int but getgroups modifies an array
14783      of ints.  */
14784   return n > 0 && gidset[n] != val.gval;
14785 }
14786 _ACEOF
14787 rm -f conftest$ac_exeext
14788 if { (ac_try="$ac_link"
14789 case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_link") 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14798   { (case "(($ac_try" in
14799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800   *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803   (eval "$ac_try") 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; }; then
14807   ac_cv_type_getgroups=gid_t
14808 else
14809   echo "$as_me: program exited with status $ac_status" >&5
14810 echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14812
14813 ( exit $ac_status )
14814 ac_cv_type_getgroups=int
14815 fi
14816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14817 fi
14818
14819
14820 if test $ac_cv_type_getgroups = cross; then
14821         cat >conftest.$ac_ext <<_ACEOF
14822 /* confdefs.h.  */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h.  */
14827 #include <unistd.h>
14828
14829 _ACEOF
14830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14831   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
14832   ac_cv_type_getgroups=gid_t
14833 else
14834   ac_cv_type_getgroups=int
14835 fi
14836 rm -f conftest*
14837
14838 fi
14839 fi
14840 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
14841 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
14842
14843 cat >>confdefs.h <<_ACEOF
14844 #define GETGROUPS_T $ac_cv_type_getgroups
14845 _ACEOF
14846
14847
14848 { echo "$as_me:$LINENO: checking for size_t" >&5
14849 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14850 if test "${ac_cv_type_size_t+set}" = set; then
14851   echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853   cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h.  */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h.  */
14859 $ac_includes_default
14860 typedef size_t ac__type_new_;
14861 int
14862 main ()
14863 {
14864 if ((ac__type_new_ *) 0)
14865   return 0;
14866 if (sizeof (ac__type_new_))
14867   return 0;
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext
14873 if { (ac_try="$ac_compile"
14874 case "(($ac_try" in
14875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876   *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879   (eval "$ac_compile") 2>conftest.er1
14880   ac_status=$?
14881   grep -v '^ *+' conftest.er1 >conftest.err
14882   rm -f conftest.er1
14883   cat conftest.err >&5
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); } && {
14886          test -z "$ac_c_werror_flag" ||
14887          test ! -s conftest.err
14888        } && test -s conftest.$ac_objext; then
14889   ac_cv_type_size_t=yes
14890 else
14891   echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894         ac_cv_type_size_t=no
14895 fi
14896
14897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898 fi
14899 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14900 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14901 if test $ac_cv_type_size_t = yes; then
14902   :
14903 else
14904
14905 cat >>confdefs.h <<_ACEOF
14906 #define size_t unsigned int
14907 _ACEOF
14908
14909 fi
14910
14911 { echo "$as_me:$LINENO: checking for getgroups" >&5
14912 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
14913 if test "${ac_cv_func_getgroups+set}" = set; then
14914   echo $ECHO_N "(cached) $ECHO_C" >&6
14915 else
14916   cat >conftest.$ac_ext <<_ACEOF
14917 /* confdefs.h.  */
14918 _ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h.  */
14922 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
14923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14924 #define getgroups innocuous_getgroups
14925
14926 /* System header to define __stub macros and hopefully few prototypes,
14927     which can conflict with char getgroups (); below.
14928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14929     <limits.h> exists even on freestanding compilers.  */
14930
14931 #ifdef __STDC__
14932 # include <limits.h>
14933 #else
14934 # include <assert.h>
14935 #endif
14936
14937 #undef getgroups
14938
14939 /* Override any GCC internal prototype to avoid an error.
14940    Use char because int might match the return type of a GCC
14941    builtin and then its argument prototype would still apply.  */
14942 #ifdef __cplusplus
14943 extern "C"
14944 #endif
14945 char getgroups ();
14946 /* The GNU C library defines this for functions which it implements
14947     to always fail with ENOSYS.  Some functions are actually named
14948     something starting with __ and the normal name is an alias.  */
14949 #if defined __stub_getgroups || defined __stub___getgroups
14950 choke me
14951 #endif
14952
14953 int
14954 main ()
14955 {
14956 return getgroups ();
14957   ;
14958   return 0;
14959 }
14960 _ACEOF
14961 rm -f conftest.$ac_objext conftest$ac_exeext
14962 if { (ac_try="$ac_link"
14963 case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_link") 2>conftest.er1
14969   ac_status=$?
14970   grep -v '^ *+' conftest.er1 >conftest.err
14971   rm -f conftest.er1
14972   cat conftest.err >&5
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } && {
14975          test -z "$ac_c_werror_flag" ||
14976          test ! -s conftest.err
14977        } && test -s conftest$ac_exeext &&
14978        $as_test_x conftest$ac_exeext; then
14979   ac_cv_func_getgroups=yes
14980 else
14981   echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984         ac_cv_func_getgroups=no
14985 fi
14986
14987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14988       conftest$ac_exeext conftest.$ac_ext
14989 fi
14990 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
14991 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
14992
14993
14994 # If we don't yet have getgroups, see if it's in -lbsd.
14995 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
14996 ac_save_LIBS=$LIBS
14997 if test $ac_cv_func_getgroups = no; then
14998   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
14999 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15000 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15001   echo $ECHO_N "(cached) $ECHO_C" >&6
15002 else
15003   ac_check_lib_save_LIBS=$LIBS
15004 LIBS="-lbsd  $LIBS"
15005 cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h.  */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h.  */
15011
15012 /* Override any GCC internal prototype to avoid an error.
15013    Use char because int might match the return type of a GCC
15014    builtin and then its argument prototype would still apply.  */
15015 #ifdef __cplusplus
15016 extern "C"
15017 #endif
15018 char getgroups ();
15019 int
15020 main ()
15021 {
15022 return getgroups ();
15023   ;
15024   return 0;
15025 }
15026 _ACEOF
15027 rm -f conftest.$ac_objext conftest$ac_exeext
15028 if { (ac_try="$ac_link"
15029 case "(($ac_try" in
15030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031   *) ac_try_echo=$ac_try;;
15032 esac
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034   (eval "$ac_link") 2>conftest.er1
15035   ac_status=$?
15036   grep -v '^ *+' conftest.er1 >conftest.err
15037   rm -f conftest.er1
15038   cat conftest.err >&5
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); } && {
15041          test -z "$ac_c_werror_flag" ||
15042          test ! -s conftest.err
15043        } && test -s conftest$ac_exeext &&
15044        $as_test_x conftest$ac_exeext; then
15045   ac_cv_lib_bsd_getgroups=yes
15046 else
15047   echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15049
15050         ac_cv_lib_bsd_getgroups=no
15051 fi
15052
15053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15054       conftest$ac_exeext conftest.$ac_ext
15055 LIBS=$ac_check_lib_save_LIBS
15056 fi
15057 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15058 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15059 if test $ac_cv_lib_bsd_getgroups = yes; then
15060   GETGROUPS_LIB=-lbsd
15061 fi
15062
15063 fi
15064
15065 # Run the program to test the functionality of the system-supplied
15066 # getgroups function only if there is such a function.
15067 if test $ac_cv_func_getgroups = yes; then
15068   { echo "$as_me:$LINENO: checking for working getgroups" >&5
15069 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15070 if test "${ac_cv_func_getgroups_works+set}" = set; then
15071   echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073   if test "$cross_compiling" = yes; then
15074   ac_cv_func_getgroups_works=no
15075 else
15076   cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h.  */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h.  */
15082 $ac_includes_default
15083 int
15084 main ()
15085 {
15086 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
15087        return getgroups (0, 0) == -1;
15088   ;
15089   return 0;
15090 }
15091 _ACEOF
15092 rm -f conftest$ac_exeext
15093 if { (ac_try="$ac_link"
15094 case "(($ac_try" in
15095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096   *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099   (eval "$ac_link") 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15103   { (case "(($ac_try" in
15104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105   *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108   (eval "$ac_try") 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   ac_cv_func_getgroups_works=yes
15113 else
15114   echo "$as_me: program exited with status $ac_status" >&5
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15117
15118 ( exit $ac_status )
15119 ac_cv_func_getgroups_works=no
15120 fi
15121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15122 fi
15123
15124
15125
15126 fi
15127 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15128 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15129   if test $ac_cv_func_getgroups_works = yes; then
15130
15131 cat >>confdefs.h <<\_ACEOF
15132 #define HAVE_GETGROUPS 1
15133 _ACEOF
15134
15135   fi
15136 fi
15137 LIBS=$ac_save_LIBS
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15155                strftime setrlimit initgroups getgroups fstat gettimeofday \
15156                setlocale getaddrinfo
15157 do
15158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15162   echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164   cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h.  */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h.  */
15170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15172 #define $ac_func innocuous_$ac_func
15173
15174 /* System header to define __stub macros and hopefully few prototypes,
15175     which can conflict with char $ac_func (); below.
15176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15177     <limits.h> exists even on freestanding compilers.  */
15178
15179 #ifdef __STDC__
15180 # include <limits.h>
15181 #else
15182 # include <assert.h>
15183 #endif
15184
15185 #undef $ac_func
15186
15187 /* Override any GCC internal prototype to avoid an error.
15188    Use char because int might match the return type of a GCC
15189    builtin and then its argument prototype would still apply.  */
15190 #ifdef __cplusplus
15191 extern "C"
15192 #endif
15193 char $ac_func ();
15194 /* The GNU C library defines this for functions which it implements
15195     to always fail with ENOSYS.  Some functions are actually named
15196     something starting with __ and the normal name is an alias.  */
15197 #if defined __stub_$ac_func || defined __stub___$ac_func
15198 choke me
15199 #endif
15200
15201 int
15202 main ()
15203 {
15204 return $ac_func ();
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (ac_try="$ac_link"
15211 case "(($ac_try" in
15212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213   *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216   (eval "$ac_link") 2>conftest.er1
15217   ac_status=$?
15218   grep -v '^ *+' conftest.er1 >conftest.err
15219   rm -f conftest.er1
15220   cat conftest.err >&5
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); } && {
15223          test -z "$ac_c_werror_flag" ||
15224          test ! -s conftest.err
15225        } && test -s conftest$ac_exeext &&
15226        $as_test_x conftest$ac_exeext; then
15227   eval "$as_ac_var=yes"
15228 else
15229   echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15231
15232         eval "$as_ac_var=no"
15233 fi
15234
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236       conftest$ac_exeext conftest.$ac_ext
15237 fi
15238 ac_res=`eval echo '${'$as_ac_var'}'`
15239                { echo "$as_me:$LINENO: result: $ac_res" >&5
15240 echo "${ECHO_T}$ac_res" >&6; }
15241 if test `eval echo '${'$as_ac_var'}'` = yes; then
15242   cat >>confdefs.h <<_ACEOF
15243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15244 _ACEOF
15245
15246 fi
15247 done
15248
15249 if test -z "$SKIP_SETRESUID"; then
15250
15251 for ac_func in setresuid
15252 do
15253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15257   echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259   cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h.  */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h.  */
15265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15267 #define $ac_func innocuous_$ac_func
15268
15269 /* System header to define __stub macros and hopefully few prototypes,
15270     which can conflict with char $ac_func (); below.
15271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15272     <limits.h> exists even on freestanding compilers.  */
15273
15274 #ifdef __STDC__
15275 # include <limits.h>
15276 #else
15277 # include <assert.h>
15278 #endif
15279
15280 #undef $ac_func
15281
15282 /* Override any GCC internal prototype to avoid an error.
15283    Use char because int might match the return type of a GCC
15284    builtin and then its argument prototype would still apply.  */
15285 #ifdef __cplusplus
15286 extern "C"
15287 #endif
15288 char $ac_func ();
15289 /* The GNU C library defines this for functions which it implements
15290     to always fail with ENOSYS.  Some functions are actually named
15291     something starting with __ and the normal name is an alias.  */
15292 #if defined __stub_$ac_func || defined __stub___$ac_func
15293 choke me
15294 #endif
15295
15296 int
15297 main ()
15298 {
15299 return $ac_func ();
15300   ;
15301   return 0;
15302 }
15303 _ACEOF
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (ac_try="$ac_link"
15306 case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311   (eval "$ac_link") 2>conftest.er1
15312   ac_status=$?
15313   grep -v '^ *+' conftest.er1 >conftest.err
15314   rm -f conftest.er1
15315   cat conftest.err >&5
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } && {
15318          test -z "$ac_c_werror_flag" ||
15319          test ! -s conftest.err
15320        } && test -s conftest$ac_exeext &&
15321        $as_test_x conftest$ac_exeext; then
15322   eval "$as_ac_var=yes"
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327         eval "$as_ac_var=no"
15328 fi
15329
15330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15331       conftest$ac_exeext conftest.$ac_ext
15332 fi
15333 ac_res=`eval echo '${'$as_ac_var'}'`
15334                { echo "$as_me:$LINENO: result: $ac_res" >&5
15335 echo "${ECHO_T}$ac_res" >&6; }
15336 if test `eval echo '${'$as_ac_var'}'` = yes; then
15337   cat >>confdefs.h <<_ACEOF
15338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15339 _ACEOF
15340  SKIP_SETREUID=yes
15341 fi
15342 done
15343
15344 fi
15345 if test -z "$SKIP_SETREUID"; then
15346
15347 for ac_func in setreuid
15348 do
15349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15353   echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355   cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h.  */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h.  */
15361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15363 #define $ac_func innocuous_$ac_func
15364
15365 /* System header to define __stub macros and hopefully few prototypes,
15366     which can conflict with char $ac_func (); below.
15367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15368     <limits.h> exists even on freestanding compilers.  */
15369
15370 #ifdef __STDC__
15371 # include <limits.h>
15372 #else
15373 # include <assert.h>
15374 #endif
15375
15376 #undef $ac_func
15377
15378 /* Override any GCC internal prototype to avoid an error.
15379    Use char because int might match the return type of a GCC
15380    builtin and then its argument prototype would still apply.  */
15381 #ifdef __cplusplus
15382 extern "C"
15383 #endif
15384 char $ac_func ();
15385 /* The GNU C library defines this for functions which it implements
15386     to always fail with ENOSYS.  Some functions are actually named
15387     something starting with __ and the normal name is an alias.  */
15388 #if defined __stub_$ac_func || defined __stub___$ac_func
15389 choke me
15390 #endif
15391
15392 int
15393 main ()
15394 {
15395 return $ac_func ();
15396   ;
15397   return 0;
15398 }
15399 _ACEOF
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404   *) ac_try_echo=$ac_try;;
15405 esac
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407   (eval "$ac_link") 2>conftest.er1
15408   ac_status=$?
15409   grep -v '^ *+' conftest.er1 >conftest.err
15410   rm -f conftest.er1
15411   cat conftest.err >&5
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } && {
15414          test -z "$ac_c_werror_flag" ||
15415          test ! -s conftest.err
15416        } && test -s conftest$ac_exeext &&
15417        $as_test_x conftest$ac_exeext; then
15418   eval "$as_ac_var=yes"
15419 else
15420   echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15422
15423         eval "$as_ac_var=no"
15424 fi
15425
15426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15427       conftest$ac_exeext conftest.$ac_ext
15428 fi
15429 ac_res=`eval echo '${'$as_ac_var'}'`
15430                { echo "$as_me:$LINENO: result: $ac_res" >&5
15431 echo "${ECHO_T}$ac_res" >&6; }
15432 if test `eval echo '${'$as_ac_var'}'` = yes; then
15433   cat >>confdefs.h <<_ACEOF
15434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15435 _ACEOF
15436  SKIP_SETEUID=yes
15437 fi
15438 done
15439
15440 fi
15441 if test -z "$SKIP_SETEUID"; then
15442
15443 for ac_func in seteuid
15444 do
15445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15449   echo $ECHO_N "(cached) $ECHO_C" >&6
15450 else
15451   cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h.  */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h.  */
15457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15459 #define $ac_func innocuous_$ac_func
15460
15461 /* System header to define __stub macros and hopefully few prototypes,
15462     which can conflict with char $ac_func (); below.
15463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15464     <limits.h> exists even on freestanding compilers.  */
15465
15466 #ifdef __STDC__
15467 # include <limits.h>
15468 #else
15469 # include <assert.h>
15470 #endif
15471
15472 #undef $ac_func
15473
15474 /* Override any GCC internal prototype to avoid an error.
15475    Use char because int might match the return type of a GCC
15476    builtin and then its argument prototype would still apply.  */
15477 #ifdef __cplusplus
15478 extern "C"
15479 #endif
15480 char $ac_func ();
15481 /* The GNU C library defines this for functions which it implements
15482     to always fail with ENOSYS.  Some functions are actually named
15483     something starting with __ and the normal name is an alias.  */
15484 #if defined __stub_$ac_func || defined __stub___$ac_func
15485 choke me
15486 #endif
15487
15488 int
15489 main ()
15490 {
15491 return $ac_func ();
15492   ;
15493   return 0;
15494 }
15495 _ACEOF
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (ac_try="$ac_link"
15498 case "(($ac_try" in
15499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500   *) ac_try_echo=$ac_try;;
15501 esac
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503   (eval "$ac_link") 2>conftest.er1
15504   ac_status=$?
15505   grep -v '^ *+' conftest.er1 >conftest.err
15506   rm -f conftest.er1
15507   cat conftest.err >&5
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); } && {
15510          test -z "$ac_c_werror_flag" ||
15511          test ! -s conftest.err
15512        } && test -s conftest$ac_exeext &&
15513        $as_test_x conftest$ac_exeext; then
15514   eval "$as_ac_var=yes"
15515 else
15516   echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15518
15519         eval "$as_ac_var=no"
15520 fi
15521
15522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15523       conftest$ac_exeext conftest.$ac_ext
15524 fi
15525 ac_res=`eval echo '${'$as_ac_var'}'`
15526                { echo "$as_me:$LINENO: result: $ac_res" >&5
15527 echo "${ECHO_T}$ac_res" >&6; }
15528 if test `eval echo '${'$as_ac_var'}'` = yes; then
15529   cat >>confdefs.h <<_ACEOF
15530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15531 _ACEOF
15532
15533 fi
15534 done
15535
15536 fi
15537 if test X"$with_interfaces" != X"no"; then
15538
15539 for ac_func in getifaddrs
15540 do
15541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15545   echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547   cat >conftest.$ac_ext <<_ACEOF
15548 /* confdefs.h.  */
15549 _ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h.  */
15553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15555 #define $ac_func innocuous_$ac_func
15556
15557 /* System header to define __stub macros and hopefully few prototypes,
15558     which can conflict with char $ac_func (); below.
15559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15560     <limits.h> exists even on freestanding compilers.  */
15561
15562 #ifdef __STDC__
15563 # include <limits.h>
15564 #else
15565 # include <assert.h>
15566 #endif
15567
15568 #undef $ac_func
15569
15570 /* Override any GCC internal prototype to avoid an error.
15571    Use char because int might match the return type of a GCC
15572    builtin and then its argument prototype would still apply.  */
15573 #ifdef __cplusplus
15574 extern "C"
15575 #endif
15576 char $ac_func ();
15577 /* The GNU C library defines this for functions which it implements
15578     to always fail with ENOSYS.  Some functions are actually named
15579     something starting with __ and the normal name is an alias.  */
15580 #if defined __stub_$ac_func || defined __stub___$ac_func
15581 choke me
15582 #endif
15583
15584 int
15585 main ()
15586 {
15587 return $ac_func ();
15588   ;
15589   return 0;
15590 }
15591 _ACEOF
15592 rm -f conftest.$ac_objext conftest$ac_exeext
15593 if { (ac_try="$ac_link"
15594 case "(($ac_try" in
15595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596   *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599   (eval "$ac_link") 2>conftest.er1
15600   ac_status=$?
15601   grep -v '^ *+' conftest.er1 >conftest.err
15602   rm -f conftest.er1
15603   cat conftest.err >&5
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } && {
15606          test -z "$ac_c_werror_flag" ||
15607          test ! -s conftest.err
15608        } && test -s conftest$ac_exeext &&
15609        $as_test_x conftest$ac_exeext; then
15610   eval "$as_ac_var=yes"
15611 else
15612   echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615         eval "$as_ac_var=no"
15616 fi
15617
15618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15619       conftest$ac_exeext conftest.$ac_ext
15620 fi
15621 ac_res=`eval echo '${'$as_ac_var'}'`
15622                { echo "$as_me:$LINENO: result: $ac_res" >&5
15623 echo "${ECHO_T}$ac_res" >&6; }
15624 if test `eval echo '${'$as_ac_var'}'` = yes; then
15625   cat >>confdefs.h <<_ACEOF
15626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15627 _ACEOF
15628
15629 for ac_func in freeifaddrs
15630 do
15631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15635   echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637   cat >conftest.$ac_ext <<_ACEOF
15638 /* confdefs.h.  */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h.  */
15643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15645 #define $ac_func innocuous_$ac_func
15646
15647 /* System header to define __stub macros and hopefully few prototypes,
15648     which can conflict with char $ac_func (); below.
15649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15650     <limits.h> exists even on freestanding compilers.  */
15651
15652 #ifdef __STDC__
15653 # include <limits.h>
15654 #else
15655 # include <assert.h>
15656 #endif
15657
15658 #undef $ac_func
15659
15660 /* Override any GCC internal prototype to avoid an error.
15661    Use char because int might match the return type of a GCC
15662    builtin and then its argument prototype would still apply.  */
15663 #ifdef __cplusplus
15664 extern "C"
15665 #endif
15666 char $ac_func ();
15667 /* The GNU C library defines this for functions which it implements
15668     to always fail with ENOSYS.  Some functions are actually named
15669     something starting with __ and the normal name is an alias.  */
15670 #if defined __stub_$ac_func || defined __stub___$ac_func
15671 choke me
15672 #endif
15673
15674 int
15675 main ()
15676 {
15677 return $ac_func ();
15678   ;
15679   return 0;
15680 }
15681 _ACEOF
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686   *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689   (eval "$ac_link") 2>conftest.er1
15690   ac_status=$?
15691   grep -v '^ *+' conftest.er1 >conftest.err
15692   rm -f conftest.er1
15693   cat conftest.err >&5
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); } && {
15696          test -z "$ac_c_werror_flag" ||
15697          test ! -s conftest.err
15698        } && test -s conftest$ac_exeext &&
15699        $as_test_x conftest$ac_exeext; then
15700   eval "$as_ac_var=yes"
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705         eval "$as_ac_var=no"
15706 fi
15707
15708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15709       conftest$ac_exeext conftest.$ac_ext
15710 fi
15711 ac_res=`eval echo '${'$as_ac_var'}'`
15712                { echo "$as_me:$LINENO: result: $ac_res" >&5
15713 echo "${ECHO_T}$ac_res" >&6; }
15714 if test `eval echo '${'$as_ac_var'}'` = yes; then
15715   cat >>confdefs.h <<_ACEOF
15716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15717 _ACEOF
15718
15719 fi
15720 done
15721
15722 fi
15723 done
15724
15725 fi
15726 if test -z "$BROKEN_GETCWD"; then
15727
15728 for ac_func in getcwd
15729 do
15730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15734   echo $ECHO_N "(cached) $ECHO_C" >&6
15735 else
15736   cat >conftest.$ac_ext <<_ACEOF
15737 /* confdefs.h.  */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h.  */
15742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15744 #define $ac_func innocuous_$ac_func
15745
15746 /* System header to define __stub macros and hopefully few prototypes,
15747     which can conflict with char $ac_func (); below.
15748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15749     <limits.h> exists even on freestanding compilers.  */
15750
15751 #ifdef __STDC__
15752 # include <limits.h>
15753 #else
15754 # include <assert.h>
15755 #endif
15756
15757 #undef $ac_func
15758
15759 /* Override any GCC internal prototype to avoid an error.
15760    Use char because int might match the return type of a GCC
15761    builtin and then its argument prototype would still apply.  */
15762 #ifdef __cplusplus
15763 extern "C"
15764 #endif
15765 char $ac_func ();
15766 /* The GNU C library defines this for functions which it implements
15767     to always fail with ENOSYS.  Some functions are actually named
15768     something starting with __ and the normal name is an alias.  */
15769 #if defined __stub_$ac_func || defined __stub___$ac_func
15770 choke me
15771 #endif
15772
15773 int
15774 main ()
15775 {
15776 return $ac_func ();
15777   ;
15778   return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785   *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788   (eval "$ac_link") 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } && {
15795          test -z "$ac_c_werror_flag" ||
15796          test ! -s conftest.err
15797        } && test -s conftest$ac_exeext &&
15798        $as_test_x conftest$ac_exeext; then
15799   eval "$as_ac_var=yes"
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804         eval "$as_ac_var=no"
15805 fi
15806
15807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15808       conftest$ac_exeext conftest.$ac_ext
15809 fi
15810 ac_res=`eval echo '${'$as_ac_var'}'`
15811                { echo "$as_me:$LINENO: result: $ac_res" >&5
15812 echo "${ECHO_T}$ac_res" >&6; }
15813 if test `eval echo '${'$as_ac_var'}'` = yes; then
15814   cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15816 _ACEOF
15817
15818 else
15819   case " $LIBOBJS " in
15820   *" $ac_func.$ac_objext "* ) ;;
15821   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15822  ;;
15823 esac
15824
15825 fi
15826 done
15827
15828
15829 fi
15830
15831 for ac_func in glob
15832 do
15833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15837   echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839   cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h.  */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h.  */
15845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15847 #define $ac_func innocuous_$ac_func
15848
15849 /* System header to define __stub macros and hopefully few prototypes,
15850     which can conflict with char $ac_func (); below.
15851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15852     <limits.h> exists even on freestanding compilers.  */
15853
15854 #ifdef __STDC__
15855 # include <limits.h>
15856 #else
15857 # include <assert.h>
15858 #endif
15859
15860 #undef $ac_func
15861
15862 /* Override any GCC internal prototype to avoid an error.
15863    Use char because int might match the return type of a GCC
15864    builtin and then its argument prototype would still apply.  */
15865 #ifdef __cplusplus
15866 extern "C"
15867 #endif
15868 char $ac_func ();
15869 /* The GNU C library defines this for functions which it implements
15870     to always fail with ENOSYS.  Some functions are actually named
15871     something starting with __ and the normal name is an alias.  */
15872 #if defined __stub_$ac_func || defined __stub___$ac_func
15873 choke me
15874 #endif
15875
15876 int
15877 main ()
15878 {
15879 return $ac_func ();
15880   ;
15881   return 0;
15882 }
15883 _ACEOF
15884 rm -f conftest.$ac_objext conftest$ac_exeext
15885 if { (ac_try="$ac_link"
15886 case "(($ac_try" in
15887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888   *) ac_try_echo=$ac_try;;
15889 esac
15890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891   (eval "$ac_link") 2>conftest.er1
15892   ac_status=$?
15893   grep -v '^ *+' conftest.er1 >conftest.err
15894   rm -f conftest.er1
15895   cat conftest.err >&5
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); } && {
15898          test -z "$ac_c_werror_flag" ||
15899          test ! -s conftest.err
15900        } && test -s conftest$ac_exeext &&
15901        $as_test_x conftest$ac_exeext; then
15902   eval "$as_ac_var=yes"
15903 else
15904   echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907         eval "$as_ac_var=no"
15908 fi
15909
15910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15911       conftest$ac_exeext conftest.$ac_ext
15912 fi
15913 ac_res=`eval echo '${'$as_ac_var'}'`
15914                { echo "$as_me:$LINENO: result: $ac_res" >&5
15915 echo "${ECHO_T}$ac_res" >&6; }
15916 if test `eval echo '${'$as_ac_var'}'` = yes; then
15917   cat >>confdefs.h <<_ACEOF
15918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15919 _ACEOF
15920  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15921 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
15922 cat >conftest.$ac_ext <<_ACEOF
15923 /* confdefs.h.  */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h.  */
15928 #include <glob.h>
15929 int
15930 main ()
15931 {
15932 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15933   ;
15934   return 0;
15935 }
15936 _ACEOF
15937 rm -f conftest.$ac_objext
15938 if { (ac_try="$ac_compile"
15939 case "(($ac_try" in
15940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941   *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944   (eval "$ac_compile") 2>conftest.er1
15945   ac_status=$?
15946   grep -v '^ *+' conftest.er1 >conftest.err
15947   rm -f conftest.er1
15948   cat conftest.err >&5
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } && {
15951          test -z "$ac_c_werror_flag" ||
15952          test ! -s conftest.err
15953        } && test -s conftest.$ac_objext; then
15954   cat >>confdefs.h <<\_ACEOF
15955 #define HAVE_EXTENDED_GLOB 1
15956 _ACEOF
15957
15958     { echo "$as_me:$LINENO: result: yes" >&5
15959 echo "${ECHO_T}yes" >&6; }
15960 else
15961   echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15963
15964         case " $LIBOBJS " in
15965   *" glob.$ac_objext "* ) ;;
15966   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15967  ;;
15968 esac
15969
15970     { echo "$as_me:$LINENO: result: no" >&5
15971 echo "${ECHO_T}no" >&6; }
15972 fi
15973
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 else
15976   case " $LIBOBJS " in
15977   *" glob.$ac_objext "* ) ;;
15978   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15979  ;;
15980 esac
15981
15982 fi
15983 done
15984
15985
15986
15987 for ac_func in lockf flock
15988 do
15989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15993   echo $ECHO_N "(cached) $ECHO_C" >&6
15994 else
15995   cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16003 #define $ac_func innocuous_$ac_func
16004
16005 /* System header to define __stub macros and hopefully few prototypes,
16006     which can conflict with char $ac_func (); below.
16007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16008     <limits.h> exists even on freestanding compilers.  */
16009
16010 #ifdef __STDC__
16011 # include <limits.h>
16012 #else
16013 # include <assert.h>
16014 #endif
16015
16016 #undef $ac_func
16017
16018 /* Override any GCC internal prototype to avoid an error.
16019    Use char because int might match the return type of a GCC
16020    builtin and then its argument prototype would still apply.  */
16021 #ifdef __cplusplus
16022 extern "C"
16023 #endif
16024 char $ac_func ();
16025 /* The GNU C library defines this for functions which it implements
16026     to always fail with ENOSYS.  Some functions are actually named
16027     something starting with __ and the normal name is an alias.  */
16028 #if defined __stub_$ac_func || defined __stub___$ac_func
16029 choke me
16030 #endif
16031
16032 int
16033 main ()
16034 {
16035 return $ac_func ();
16036   ;
16037   return 0;
16038 }
16039 _ACEOF
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (ac_try="$ac_link"
16042 case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_link") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } && {
16054          test -z "$ac_c_werror_flag" ||
16055          test ! -s conftest.err
16056        } && test -s conftest$ac_exeext &&
16057        $as_test_x conftest$ac_exeext; then
16058   eval "$as_ac_var=yes"
16059 else
16060   echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16062
16063         eval "$as_ac_var=no"
16064 fi
16065
16066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16067       conftest$ac_exeext conftest.$ac_ext
16068 fi
16069 ac_res=`eval echo '${'$as_ac_var'}'`
16070                { echo "$as_me:$LINENO: result: $ac_res" >&5
16071 echo "${ECHO_T}$ac_res" >&6; }
16072 if test `eval echo '${'$as_ac_var'}'` = yes; then
16073   cat >>confdefs.h <<_ACEOF
16074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16075 _ACEOF
16076  break
16077 fi
16078 done
16079
16080
16081
16082 for ac_func in waitpid wait3
16083 do
16084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16088   echo $ECHO_N "(cached) $ECHO_C" >&6
16089 else
16090   cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h.  */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h.  */
16096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16098 #define $ac_func innocuous_$ac_func
16099
16100 /* System header to define __stub macros and hopefully few prototypes,
16101     which can conflict with char $ac_func (); below.
16102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16103     <limits.h> exists even on freestanding compilers.  */
16104
16105 #ifdef __STDC__
16106 # include <limits.h>
16107 #else
16108 # include <assert.h>
16109 #endif
16110
16111 #undef $ac_func
16112
16113 /* Override any GCC internal prototype to avoid an error.
16114    Use char because int might match the return type of a GCC
16115    builtin and then its argument prototype would still apply.  */
16116 #ifdef __cplusplus
16117 extern "C"
16118 #endif
16119 char $ac_func ();
16120 /* The GNU C library defines this for functions which it implements
16121     to always fail with ENOSYS.  Some functions are actually named
16122     something starting with __ and the normal name is an alias.  */
16123 #if defined __stub_$ac_func || defined __stub___$ac_func
16124 choke me
16125 #endif
16126
16127 int
16128 main ()
16129 {
16130 return $ac_func ();
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (ac_try="$ac_link"
16137 case "(($ac_try" in
16138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139   *) ac_try_echo=$ac_try;;
16140 esac
16141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142   (eval "$ac_link") 2>conftest.er1
16143   ac_status=$?
16144   grep -v '^ *+' conftest.er1 >conftest.err
16145   rm -f conftest.er1
16146   cat conftest.err >&5
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } && {
16149          test -z "$ac_c_werror_flag" ||
16150          test ! -s conftest.err
16151        } && test -s conftest$ac_exeext &&
16152        $as_test_x conftest$ac_exeext; then
16153   eval "$as_ac_var=yes"
16154 else
16155   echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16157
16158         eval "$as_ac_var=no"
16159 fi
16160
16161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16162       conftest$ac_exeext conftest.$ac_ext
16163 fi
16164 ac_res=`eval echo '${'$as_ac_var'}'`
16165                { echo "$as_me:$LINENO: result: $ac_res" >&5
16166 echo "${ECHO_T}$ac_res" >&6; }
16167 if test `eval echo '${'$as_ac_var'}'` = yes; then
16168   cat >>confdefs.h <<_ACEOF
16169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16170 _ACEOF
16171  break
16172 fi
16173 done
16174
16175
16176
16177 for ac_func in innetgr _innetgr
16178 do
16179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185   cat >conftest.$ac_ext <<_ACEOF
16186 /* confdefs.h.  */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h.  */
16191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16193 #define $ac_func innocuous_$ac_func
16194
16195 /* System header to define __stub macros and hopefully few prototypes,
16196     which can conflict with char $ac_func (); below.
16197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16198     <limits.h> exists even on freestanding compilers.  */
16199
16200 #ifdef __STDC__
16201 # include <limits.h>
16202 #else
16203 # include <assert.h>
16204 #endif
16205
16206 #undef $ac_func
16207
16208 /* Override any GCC internal prototype to avoid an error.
16209    Use char because int might match the return type of a GCC
16210    builtin and then its argument prototype would still apply.  */
16211 #ifdef __cplusplus
16212 extern "C"
16213 #endif
16214 char $ac_func ();
16215 /* The GNU C library defines this for functions which it implements
16216     to always fail with ENOSYS.  Some functions are actually named
16217     something starting with __ and the normal name is an alias.  */
16218 #if defined __stub_$ac_func || defined __stub___$ac_func
16219 choke me
16220 #endif
16221
16222 int
16223 main ()
16224 {
16225 return $ac_func ();
16226   ;
16227   return 0;
16228 }
16229 _ACEOF
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (ac_try="$ac_link"
16232 case "(($ac_try" in
16233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234   *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237   (eval "$ac_link") 2>conftest.er1
16238   ac_status=$?
16239   grep -v '^ *+' conftest.er1 >conftest.err
16240   rm -f conftest.er1
16241   cat conftest.err >&5
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } && {
16244          test -z "$ac_c_werror_flag" ||
16245          test ! -s conftest.err
16246        } && test -s conftest$ac_exeext &&
16247        $as_test_x conftest$ac_exeext; then
16248   eval "$as_ac_var=yes"
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253         eval "$as_ac_var=no"
16254 fi
16255
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257       conftest$ac_exeext conftest.$ac_ext
16258 fi
16259 ac_res=`eval echo '${'$as_ac_var'}'`
16260                { echo "$as_me:$LINENO: result: $ac_res" >&5
16261 echo "${ECHO_T}$ac_res" >&6; }
16262 if test `eval echo '${'$as_ac_var'}'` = yes; then
16263   cat >>confdefs.h <<_ACEOF
16264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16265 _ACEOF
16266
16267 for ac_func in getdomainname
16268 do
16269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16273   echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275   cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h.  */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h.  */
16281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16283 #define $ac_func innocuous_$ac_func
16284
16285 /* System header to define __stub macros and hopefully few prototypes,
16286     which can conflict with char $ac_func (); below.
16287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16288     <limits.h> exists even on freestanding compilers.  */
16289
16290 #ifdef __STDC__
16291 # include <limits.h>
16292 #else
16293 # include <assert.h>
16294 #endif
16295
16296 #undef $ac_func
16297
16298 /* Override any GCC internal prototype to avoid an error.
16299    Use char because int might match the return type of a GCC
16300    builtin and then its argument prototype would still apply.  */
16301 #ifdef __cplusplus
16302 extern "C"
16303 #endif
16304 char $ac_func ();
16305 /* The GNU C library defines this for functions which it implements
16306     to always fail with ENOSYS.  Some functions are actually named
16307     something starting with __ and the normal name is an alias.  */
16308 #if defined __stub_$ac_func || defined __stub___$ac_func
16309 choke me
16310 #endif
16311
16312 int
16313 main ()
16314 {
16315 return $ac_func ();
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (ac_try="$ac_link"
16322 case "(($ac_try" in
16323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324   *) ac_try_echo=$ac_try;;
16325 esac
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327   (eval "$ac_link") 2>conftest.er1
16328   ac_status=$?
16329   grep -v '^ *+' conftest.er1 >conftest.err
16330   rm -f conftest.er1
16331   cat conftest.err >&5
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); } && {
16334          test -z "$ac_c_werror_flag" ||
16335          test ! -s conftest.err
16336        } && test -s conftest$ac_exeext &&
16337        $as_test_x conftest$ac_exeext; then
16338   eval "$as_ac_var=yes"
16339 else
16340   echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343         eval "$as_ac_var=no"
16344 fi
16345
16346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16347       conftest$ac_exeext conftest.$ac_ext
16348 fi
16349 ac_res=`eval echo '${'$as_ac_var'}'`
16350                { echo "$as_me:$LINENO: result: $ac_res" >&5
16351 echo "${ECHO_T}$ac_res" >&6; }
16352 if test `eval echo '${'$as_ac_var'}'` = yes; then
16353   cat >>confdefs.h <<_ACEOF
16354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16355 _ACEOF
16356
16357 fi
16358 done
16359  break
16360 fi
16361 done
16362
16363
16364 for ac_func in lsearch
16365 do
16366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16370   echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372   cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16380 #define $ac_func innocuous_$ac_func
16381
16382 /* System header to define __stub macros and hopefully few prototypes,
16383     which can conflict with char $ac_func (); below.
16384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16385     <limits.h> exists even on freestanding compilers.  */
16386
16387 #ifdef __STDC__
16388 # include <limits.h>
16389 #else
16390 # include <assert.h>
16391 #endif
16392
16393 #undef $ac_func
16394
16395 /* Override any GCC internal prototype to avoid an error.
16396    Use char because int might match the return type of a GCC
16397    builtin and then its argument prototype would still apply.  */
16398 #ifdef __cplusplus
16399 extern "C"
16400 #endif
16401 char $ac_func ();
16402 /* The GNU C library defines this for functions which it implements
16403     to always fail with ENOSYS.  Some functions are actually named
16404     something starting with __ and the normal name is an alias.  */
16405 #if defined __stub_$ac_func || defined __stub___$ac_func
16406 choke me
16407 #endif
16408
16409 int
16410 main ()
16411 {
16412 return $ac_func ();
16413   ;
16414   return 0;
16415 }
16416 _ACEOF
16417 rm -f conftest.$ac_objext conftest$ac_exeext
16418 if { (ac_try="$ac_link"
16419 case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424   (eval "$ac_link") 2>conftest.er1
16425   ac_status=$?
16426   grep -v '^ *+' conftest.er1 >conftest.err
16427   rm -f conftest.er1
16428   cat conftest.err >&5
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); } && {
16431          test -z "$ac_c_werror_flag" ||
16432          test ! -s conftest.err
16433        } && test -s conftest$ac_exeext &&
16434        $as_test_x conftest$ac_exeext; then
16435   eval "$as_ac_var=yes"
16436 else
16437   echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16439
16440         eval "$as_ac_var=no"
16441 fi
16442
16443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16444       conftest$ac_exeext conftest.$ac_ext
16445 fi
16446 ac_res=`eval echo '${'$as_ac_var'}'`
16447                { echo "$as_me:$LINENO: result: $ac_res" >&5
16448 echo "${ECHO_T}$ac_res" >&6; }
16449 if test `eval echo '${'$as_ac_var'}'` = yes; then
16450   cat >>confdefs.h <<_ACEOF
16451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16452 _ACEOF
16453
16454 else
16455   { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
16456 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
16457 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
16458   echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460   ac_check_lib_save_LIBS=$LIBS
16461 LIBS="-lcompat  $LIBS"
16462 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h.  */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h.  */
16468
16469 /* Override any GCC internal prototype to avoid an error.
16470    Use char because int might match the return type of a GCC
16471    builtin and then its argument prototype would still apply.  */
16472 #ifdef __cplusplus
16473 extern "C"
16474 #endif
16475 char lsearch ();
16476 int
16477 main ()
16478 {
16479 return lsearch ();
16480   ;
16481   return 0;
16482 }
16483 _ACEOF
16484 rm -f conftest.$ac_objext conftest$ac_exeext
16485 if { (ac_try="$ac_link"
16486 case "(($ac_try" in
16487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488   *) ac_try_echo=$ac_try;;
16489 esac
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491   (eval "$ac_link") 2>conftest.er1
16492   ac_status=$?
16493   grep -v '^ *+' conftest.er1 >conftest.err
16494   rm -f conftest.er1
16495   cat conftest.err >&5
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); } && {
16498          test -z "$ac_c_werror_flag" ||
16499          test ! -s conftest.err
16500        } && test -s conftest$ac_exeext &&
16501        $as_test_x conftest$ac_exeext; then
16502   ac_cv_lib_compat_lsearch=yes
16503 else
16504   echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507         ac_cv_lib_compat_lsearch=no
16508 fi
16509
16510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16511       conftest$ac_exeext conftest.$ac_ext
16512 LIBS=$ac_check_lib_save_LIBS
16513 fi
16514 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
16515 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
16516 if test $ac_cv_lib_compat_lsearch = yes; then
16517   { echo "$as_me:$LINENO: checking for search.h" >&5
16518 echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
16519 if test "${ac_cv_header_search_h+set}" = set; then
16520   echo $ECHO_N "(cached) $ECHO_C" >&6
16521 else
16522   cat >conftest.$ac_ext <<_ACEOF
16523 /* confdefs.h.  */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h.  */
16528 #include <search.h>
16529 _ACEOF
16530 if { (ac_try="$ac_cpp conftest.$ac_ext"
16531 case "(($ac_try" in
16532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533   *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16537   ac_status=$?
16538   grep -v '^ *+' conftest.er1 >conftest.err
16539   rm -f conftest.er1
16540   cat conftest.err >&5
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); } >/dev/null && {
16543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16544          test ! -s conftest.err
16545        }; then
16546   ac_cv_header_search_h=yes
16547 else
16548   echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16550
16551   ac_cv_header_search_h=no
16552 fi
16553
16554 rm -f conftest.err conftest.$ac_ext
16555 fi
16556 { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
16557 echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
16558 if test $ac_cv_header_search_h = yes; then
16559   cat >>confdefs.h <<\_ACEOF
16560 #define HAVE_LSEARCH 1
16561 _ACEOF
16562  LIBS="${LIBS} -lcompat"
16563 else
16564   case " $LIBOBJS " in
16565   *" lsearch.$ac_objext "* ) ;;
16566   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16567  ;;
16568 esac
16569
16570 fi
16571
16572
16573 else
16574   case " $LIBOBJS " in
16575   *" lsearch.$ac_objext "* ) ;;
16576   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16577  ;;
16578 esac
16579
16580 fi
16581
16582 fi
16583 done
16584
16585
16586 for ac_func in utimes
16587 do
16588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16592   echo $ECHO_N "(cached) $ECHO_C" >&6
16593 else
16594   cat >conftest.$ac_ext <<_ACEOF
16595 /* confdefs.h.  */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h.  */
16600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16602 #define $ac_func innocuous_$ac_func
16603
16604 /* System header to define __stub macros and hopefully few prototypes,
16605     which can conflict with char $ac_func (); below.
16606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16607     <limits.h> exists even on freestanding compilers.  */
16608
16609 #ifdef __STDC__
16610 # include <limits.h>
16611 #else
16612 # include <assert.h>
16613 #endif
16614
16615 #undef $ac_func
16616
16617 /* Override any GCC internal prototype to avoid an error.
16618    Use char because int might match the return type of a GCC
16619    builtin and then its argument prototype would still apply.  */
16620 #ifdef __cplusplus
16621 extern "C"
16622 #endif
16623 char $ac_func ();
16624 /* The GNU C library defines this for functions which it implements
16625     to always fail with ENOSYS.  Some functions are actually named
16626     something starting with __ and the normal name is an alias.  */
16627 #if defined __stub_$ac_func || defined __stub___$ac_func
16628 choke me
16629 #endif
16630
16631 int
16632 main ()
16633 {
16634 return $ac_func ();
16635   ;
16636   return 0;
16637 }
16638 _ACEOF
16639 rm -f conftest.$ac_objext conftest$ac_exeext
16640 if { (ac_try="$ac_link"
16641 case "(($ac_try" in
16642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643   *) ac_try_echo=$ac_try;;
16644 esac
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646   (eval "$ac_link") 2>conftest.er1
16647   ac_status=$?
16648   grep -v '^ *+' conftest.er1 >conftest.err
16649   rm -f conftest.er1
16650   cat conftest.err >&5
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); } && {
16653          test -z "$ac_c_werror_flag" ||
16654          test ! -s conftest.err
16655        } && test -s conftest$ac_exeext &&
16656        $as_test_x conftest$ac_exeext; then
16657   eval "$as_ac_var=yes"
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16661
16662         eval "$as_ac_var=no"
16663 fi
16664
16665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16666       conftest$ac_exeext conftest.$ac_ext
16667 fi
16668 ac_res=`eval echo '${'$as_ac_var'}'`
16669                { echo "$as_me:$LINENO: result: $ac_res" >&5
16670 echo "${ECHO_T}$ac_res" >&6; }
16671 if test `eval echo '${'$as_ac_var'}'` = yes; then
16672   cat >>confdefs.h <<_ACEOF
16673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16674 _ACEOF
16675
16676
16677 for ac_func in futimes futimesat
16678 do
16679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685   cat >conftest.$ac_ext <<_ACEOF
16686 /* confdefs.h.  */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h.  */
16691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16693 #define $ac_func innocuous_$ac_func
16694
16695 /* System header to define __stub macros and hopefully few prototypes,
16696     which can conflict with char $ac_func (); below.
16697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16698     <limits.h> exists even on freestanding compilers.  */
16699
16700 #ifdef __STDC__
16701 # include <limits.h>
16702 #else
16703 # include <assert.h>
16704 #endif
16705
16706 #undef $ac_func
16707
16708 /* Override any GCC internal prototype to avoid an error.
16709    Use char because int might match the return type of a GCC
16710    builtin and then its argument prototype would still apply.  */
16711 #ifdef __cplusplus
16712 extern "C"
16713 #endif
16714 char $ac_func ();
16715 /* The GNU C library defines this for functions which it implements
16716     to always fail with ENOSYS.  Some functions are actually named
16717     something starting with __ and the normal name is an alias.  */
16718 #if defined __stub_$ac_func || defined __stub___$ac_func
16719 choke me
16720 #endif
16721
16722 int
16723 main ()
16724 {
16725 return $ac_func ();
16726   ;
16727   return 0;
16728 }
16729 _ACEOF
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (ac_try="$ac_link"
16732 case "(($ac_try" in
16733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734   *) ac_try_echo=$ac_try;;
16735 esac
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737   (eval "$ac_link") 2>conftest.er1
16738   ac_status=$?
16739   grep -v '^ *+' conftest.er1 >conftest.err
16740   rm -f conftest.er1
16741   cat conftest.err >&5
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); } && {
16744          test -z "$ac_c_werror_flag" ||
16745          test ! -s conftest.err
16746        } && test -s conftest$ac_exeext &&
16747        $as_test_x conftest$ac_exeext; then
16748   eval "$as_ac_var=yes"
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753         eval "$as_ac_var=no"
16754 fi
16755
16756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16757       conftest$ac_exeext conftest.$ac_ext
16758 fi
16759 ac_res=`eval echo '${'$as_ac_var'}'`
16760                { echo "$as_me:$LINENO: result: $ac_res" >&5
16761 echo "${ECHO_T}$ac_res" >&6; }
16762 if test `eval echo '${'$as_ac_var'}'` = yes; then
16763   cat >>confdefs.h <<_ACEOF
16764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16765 _ACEOF
16766  break
16767 fi
16768 done
16769
16770 else
16771
16772 for ac_func in futime
16773 do
16774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16778   echo $ECHO_N "(cached) $ECHO_C" >&6
16779 else
16780   cat >conftest.$ac_ext <<_ACEOF
16781 /* confdefs.h.  */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h.  */
16786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16788 #define $ac_func innocuous_$ac_func
16789
16790 /* System header to define __stub macros and hopefully few prototypes,
16791     which can conflict with char $ac_func (); below.
16792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16793     <limits.h> exists even on freestanding compilers.  */
16794
16795 #ifdef __STDC__
16796 # include <limits.h>
16797 #else
16798 # include <assert.h>
16799 #endif
16800
16801 #undef $ac_func
16802
16803 /* Override any GCC internal prototype to avoid an error.
16804    Use char because int might match the return type of a GCC
16805    builtin and then its argument prototype would still apply.  */
16806 #ifdef __cplusplus
16807 extern "C"
16808 #endif
16809 char $ac_func ();
16810 /* The GNU C library defines this for functions which it implements
16811     to always fail with ENOSYS.  Some functions are actually named
16812     something starting with __ and the normal name is an alias.  */
16813 #if defined __stub_$ac_func || defined __stub___$ac_func
16814 choke me
16815 #endif
16816
16817 int
16818 main ()
16819 {
16820 return $ac_func ();
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (ac_try="$ac_link"
16827 case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832   (eval "$ac_link") 2>conftest.er1
16833   ac_status=$?
16834   grep -v '^ *+' conftest.er1 >conftest.err
16835   rm -f conftest.er1
16836   cat conftest.err >&5
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); } && {
16839          test -z "$ac_c_werror_flag" ||
16840          test ! -s conftest.err
16841        } && test -s conftest$ac_exeext &&
16842        $as_test_x conftest$ac_exeext; then
16843   eval "$as_ac_var=yes"
16844 else
16845   echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848         eval "$as_ac_var=no"
16849 fi
16850
16851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16852       conftest$ac_exeext conftest.$ac_ext
16853 fi
16854 ac_res=`eval echo '${'$as_ac_var'}'`
16855                { echo "$as_me:$LINENO: result: $ac_res" >&5
16856 echo "${ECHO_T}$ac_res" >&6; }
16857 if test `eval echo '${'$as_ac_var'}'` = yes; then
16858   cat >>confdefs.h <<_ACEOF
16859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16860 _ACEOF
16861
16862 fi
16863 done
16864  case " $LIBOBJS " in
16865   *" utimes.$ac_objext "* ) ;;
16866   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
16867  ;;
16868 esac
16869
16870 fi
16871 done
16872
16873 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
16874 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
16875 if test "${sudo_cv_func_fnmatch+set}" = set; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878   rm -f conftestdata; > conftestdata
16879 if test "$cross_compiling" = yes; then
16880   sudo_cv_func_fnmatch=no
16881 else
16882   cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h.  */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h.  */
16888 #include <fnmatch.h>
16889 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
16890 _ACEOF
16891 rm -f conftest$ac_exeext
16892 if { (ac_try="$ac_link"
16893 case "(($ac_try" in
16894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895   *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898   (eval "$ac_link") 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16902   { (case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_try") 2>&5
16908   ac_status=$?
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); }; }; then
16911   sudo_cv_func_fnmatch=yes
16912 else
16913   echo "$as_me: program exited with status $ac_status" >&5
16914 echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16916
16917 ( exit $ac_status )
16918 sudo_cv_func_fnmatch=no
16919 fi
16920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16921 fi
16922
16923
16924 rm -f core core.* *.core
16925 fi
16926
16927 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
16928 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
16929 if test $sudo_cv_func_fnmatch = yes; then
16930   cat >>confdefs.h <<\_ACEOF
16931 #define HAVE_FNMATCH 1
16932 _ACEOF
16933
16934 else
16935   case " $LIBOBJS " in
16936   *" fnmatch.$ac_objext "* ) ;;
16937   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
16938  ;;
16939 esac
16940
16941 fi
16942
16943 { echo "$as_me:$LINENO: checking for isblank" >&5
16944 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
16945 if test "${sudo_cv_func_isblank+set}" = set; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h.  */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h.  */
16954 #include <ctype.h>
16955 int
16956 main ()
16957 {
16958 return (isblank('a'));
16959   ;
16960   return 0;
16961 }
16962 _ACEOF
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (ac_try="$ac_link"
16965 case "(($ac_try" in
16966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967   *) ac_try_echo=$ac_try;;
16968 esac
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970   (eval "$ac_link") 2>conftest.er1
16971   ac_status=$?
16972   grep -v '^ *+' conftest.er1 >conftest.err
16973   rm -f conftest.er1
16974   cat conftest.err >&5
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); } && {
16977          test -z "$ac_c_werror_flag" ||
16978          test ! -s conftest.err
16979        } && test -s conftest$ac_exeext &&
16980        $as_test_x conftest$ac_exeext; then
16981   sudo_cv_func_isblank=yes
16982 else
16983   echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16985
16986         sudo_cv_func_isblank=no
16987 fi
16988
16989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16990       conftest$ac_exeext conftest.$ac_ext
16991 fi
16992 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
16993 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
16994
16995   if test "$sudo_cv_func_isblank" = "yes"; then
16996
16997 cat >>confdefs.h <<\_ACEOF
16998 #define HAVE_ISBLANK 1
16999 _ACEOF
17000
17001   fi
17002
17003
17004
17005
17006
17007
17008
17009 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17010 do
17011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17015   echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17017   cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h.  */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h.  */
17023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17025 #define $ac_func innocuous_$ac_func
17026
17027 /* System header to define __stub macros and hopefully few prototypes,
17028     which can conflict with char $ac_func (); below.
17029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17030     <limits.h> exists even on freestanding compilers.  */
17031
17032 #ifdef __STDC__
17033 # include <limits.h>
17034 #else
17035 # include <assert.h>
17036 #endif
17037
17038 #undef $ac_func
17039
17040 /* Override any GCC internal prototype to avoid an error.
17041    Use char because int might match the return type of a GCC
17042    builtin and then its argument prototype would still apply.  */
17043 #ifdef __cplusplus
17044 extern "C"
17045 #endif
17046 char $ac_func ();
17047 /* The GNU C library defines this for functions which it implements
17048     to always fail with ENOSYS.  Some functions are actually named
17049     something starting with __ and the normal name is an alias.  */
17050 #if defined __stub_$ac_func || defined __stub___$ac_func
17051 choke me
17052 #endif
17053
17054 int
17055 main ()
17056 {
17057 return $ac_func ();
17058   ;
17059   return 0;
17060 }
17061 _ACEOF
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066   *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069   (eval "$ac_link") 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } && {
17076          test -z "$ac_c_werror_flag" ||
17077          test ! -s conftest.err
17078        } && test -s conftest$ac_exeext &&
17079        $as_test_x conftest$ac_exeext; then
17080   eval "$as_ac_var=yes"
17081 else
17082   echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17084
17085         eval "$as_ac_var=no"
17086 fi
17087
17088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17089       conftest$ac_exeext conftest.$ac_ext
17090 fi
17091 ac_res=`eval echo '${'$as_ac_var'}'`
17092                { echo "$as_me:$LINENO: result: $ac_res" >&5
17093 echo "${ECHO_T}$ac_res" >&6; }
17094 if test `eval echo '${'$as_ac_var'}'` = yes; then
17095   cat >>confdefs.h <<_ACEOF
17096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17097 _ACEOF
17098
17099 else
17100   case " $LIBOBJS " in
17101   *" $ac_func.$ac_objext "* ) ;;
17102   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17103  ;;
17104 esac
17105
17106 fi
17107 done
17108
17109
17110
17111 for ac_func in closefrom
17112 do
17113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17117   echo $ECHO_N "(cached) $ECHO_C" >&6
17118 else
17119   cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17127 #define $ac_func innocuous_$ac_func
17128
17129 /* System header to define __stub macros and hopefully few prototypes,
17130     which can conflict with char $ac_func (); below.
17131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17132     <limits.h> exists even on freestanding compilers.  */
17133
17134 #ifdef __STDC__
17135 # include <limits.h>
17136 #else
17137 # include <assert.h>
17138 #endif
17139
17140 #undef $ac_func
17141
17142 /* Override any GCC internal prototype to avoid an error.
17143    Use char because int might match the return type of a GCC
17144    builtin and then its argument prototype would still apply.  */
17145 #ifdef __cplusplus
17146 extern "C"
17147 #endif
17148 char $ac_func ();
17149 /* The GNU C library defines this for functions which it implements
17150     to always fail with ENOSYS.  Some functions are actually named
17151     something starting with __ and the normal name is an alias.  */
17152 #if defined __stub_$ac_func || defined __stub___$ac_func
17153 choke me
17154 #endif
17155
17156 int
17157 main ()
17158 {
17159 return $ac_func ();
17160   ;
17161   return 0;
17162 }
17163 _ACEOF
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (ac_try="$ac_link"
17166 case "(($ac_try" in
17167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168   *) ac_try_echo=$ac_try;;
17169 esac
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171   (eval "$ac_link") 2>conftest.er1
17172   ac_status=$?
17173   grep -v '^ *+' conftest.er1 >conftest.err
17174   rm -f conftest.er1
17175   cat conftest.err >&5
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); } && {
17178          test -z "$ac_c_werror_flag" ||
17179          test ! -s conftest.err
17180        } && test -s conftest$ac_exeext &&
17181        $as_test_x conftest$ac_exeext; then
17182   eval "$as_ac_var=yes"
17183 else
17184   echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17186
17187         eval "$as_ac_var=no"
17188 fi
17189
17190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17191       conftest$ac_exeext conftest.$ac_ext
17192 fi
17193 ac_res=`eval echo '${'$as_ac_var'}'`
17194                { echo "$as_me:$LINENO: result: $ac_res" >&5
17195 echo "${ECHO_T}$ac_res" >&6; }
17196 if test `eval echo '${'$as_ac_var'}'` = yes; then
17197   cat >>confdefs.h <<_ACEOF
17198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17199 _ACEOF
17200
17201 else
17202   case " $LIBOBJS " in
17203   *" closefrom.$ac_objext "* ) ;;
17204   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17205  ;;
17206 esac
17207
17208     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17209 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17210 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17211   echo $ECHO_N "(cached) $ECHO_C" >&6
17212 else
17213   cat >conftest.$ac_ext <<_ACEOF
17214 /* confdefs.h.  */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h.  */
17219  #include <limits.h>
17220           #include <fcntl.h>
17221
17222 int
17223 main ()
17224 {
17225 #ifndef F_CLOSEM
17226   (void) F_CLOSEM;
17227 #endif
17228
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (ac_try="$ac_compile"
17235 case "(($ac_try" in
17236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237   *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240   (eval "$ac_compile") 2>conftest.er1
17241   ac_status=$?
17242   grep -v '^ *+' conftest.er1 >conftest.err
17243   rm -f conftest.er1
17244   cat conftest.err >&5
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); } && {
17247          test -z "$ac_c_werror_flag" ||
17248          test ! -s conftest.err
17249        } && test -s conftest.$ac_objext; then
17250   ac_cv_have_decl_F_CLOSEM=yes
17251 else
17252   echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255         ac_cv_have_decl_F_CLOSEM=no
17256 fi
17257
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259 fi
17260 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17261 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17262 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17263   cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_FCNTL_CLOSEM 1
17265 _ACEOF
17266
17267 fi
17268
17269
17270 fi
17271 done
17272
17273
17274 for ac_func in mkstemp
17275 do
17276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17280   echo $ECHO_N "(cached) $ECHO_C" >&6
17281 else
17282   cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h.  */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h.  */
17288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17290 #define $ac_func innocuous_$ac_func
17291
17292 /* System header to define __stub macros and hopefully few prototypes,
17293     which can conflict with char $ac_func (); below.
17294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17295     <limits.h> exists even on freestanding compilers.  */
17296
17297 #ifdef __STDC__
17298 # include <limits.h>
17299 #else
17300 # include <assert.h>
17301 #endif
17302
17303 #undef $ac_func
17304
17305 /* Override any GCC internal prototype to avoid an error.
17306    Use char because int might match the return type of a GCC
17307    builtin and then its argument prototype would still apply.  */
17308 #ifdef __cplusplus
17309 extern "C"
17310 #endif
17311 char $ac_func ();
17312 /* The GNU C library defines this for functions which it implements
17313     to always fail with ENOSYS.  Some functions are actually named
17314     something starting with __ and the normal name is an alias.  */
17315 #if defined __stub_$ac_func || defined __stub___$ac_func
17316 choke me
17317 #endif
17318
17319 int
17320 main ()
17321 {
17322 return $ac_func ();
17323   ;
17324   return 0;
17325 }
17326 _ACEOF
17327 rm -f conftest.$ac_objext conftest$ac_exeext
17328 if { (ac_try="$ac_link"
17329 case "(($ac_try" in
17330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331   *) ac_try_echo=$ac_try;;
17332 esac
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334   (eval "$ac_link") 2>conftest.er1
17335   ac_status=$?
17336   grep -v '^ *+' conftest.er1 >conftest.err
17337   rm -f conftest.er1
17338   cat conftest.err >&5
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); } && {
17341          test -z "$ac_c_werror_flag" ||
17342          test ! -s conftest.err
17343        } && test -s conftest$ac_exeext &&
17344        $as_test_x conftest$ac_exeext; then
17345   eval "$as_ac_var=yes"
17346 else
17347   echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17349
17350         eval "$as_ac_var=no"
17351 fi
17352
17353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17354       conftest$ac_exeext conftest.$ac_ext
17355 fi
17356 ac_res=`eval echo '${'$as_ac_var'}'`
17357                { echo "$as_me:$LINENO: result: $ac_res" >&5
17358 echo "${ECHO_T}$ac_res" >&6; }
17359 if test `eval echo '${'$as_ac_var'}'` = yes; then
17360   cat >>confdefs.h <<_ACEOF
17361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17362 _ACEOF
17363
17364 else
17365   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
17366
17367
17368 for ac_func in random lrand48
17369 do
17370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17374   echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376   cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h.  */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h.  */
17382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17384 #define $ac_func innocuous_$ac_func
17385
17386 /* System header to define __stub macros and hopefully few prototypes,
17387     which can conflict with char $ac_func (); below.
17388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17389     <limits.h> exists even on freestanding compilers.  */
17390
17391 #ifdef __STDC__
17392 # include <limits.h>
17393 #else
17394 # include <assert.h>
17395 #endif
17396
17397 #undef $ac_func
17398
17399 /* Override any GCC internal prototype to avoid an error.
17400    Use char because int might match the return type of a GCC
17401    builtin and then its argument prototype would still apply.  */
17402 #ifdef __cplusplus
17403 extern "C"
17404 #endif
17405 char $ac_func ();
17406 /* The GNU C library defines this for functions which it implements
17407     to always fail with ENOSYS.  Some functions are actually named
17408     something starting with __ and the normal name is an alias.  */
17409 #if defined __stub_$ac_func || defined __stub___$ac_func
17410 choke me
17411 #endif
17412
17413 int
17414 main ()
17415 {
17416 return $ac_func ();
17417   ;
17418   return 0;
17419 }
17420 _ACEOF
17421 rm -f conftest.$ac_objext conftest$ac_exeext
17422 if { (ac_try="$ac_link"
17423 case "(($ac_try" in
17424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425   *) ac_try_echo=$ac_try;;
17426 esac
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428   (eval "$ac_link") 2>conftest.er1
17429   ac_status=$?
17430   grep -v '^ *+' conftest.er1 >conftest.err
17431   rm -f conftest.er1
17432   cat conftest.err >&5
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); } && {
17435          test -z "$ac_c_werror_flag" ||
17436          test ! -s conftest.err
17437        } && test -s conftest$ac_exeext &&
17438        $as_test_x conftest$ac_exeext; then
17439   eval "$as_ac_var=yes"
17440 else
17441   echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17443
17444         eval "$as_ac_var=no"
17445 fi
17446
17447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17448       conftest$ac_exeext conftest.$ac_ext
17449 fi
17450 ac_res=`eval echo '${'$as_ac_var'}'`
17451                { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17453 if test `eval echo '${'$as_ac_var'}'` = yes; then
17454   cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17456 _ACEOF
17457  break
17458 fi
17459 done
17460
17461
17462 fi
17463 done
17464
17465
17466
17467
17468
17469 for ac_func in snprintf vsnprintf asprintf vasprintf
17470 do
17471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17475   echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477   cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17485 #define $ac_func innocuous_$ac_func
17486
17487 /* System header to define __stub macros and hopefully few prototypes,
17488     which can conflict with char $ac_func (); below.
17489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490     <limits.h> exists even on freestanding compilers.  */
17491
17492 #ifdef __STDC__
17493 # include <limits.h>
17494 #else
17495 # include <assert.h>
17496 #endif
17497
17498 #undef $ac_func
17499
17500 /* Override any GCC internal prototype to avoid an error.
17501    Use char because int might match the return type of a GCC
17502    builtin and then its argument prototype would still apply.  */
17503 #ifdef __cplusplus
17504 extern "C"
17505 #endif
17506 char $ac_func ();
17507 /* The GNU C library defines this for functions which it implements
17508     to always fail with ENOSYS.  Some functions are actually named
17509     something starting with __ and the normal name is an alias.  */
17510 #if defined __stub_$ac_func || defined __stub___$ac_func
17511 choke me
17512 #endif
17513
17514 int
17515 main ()
17516 {
17517 return $ac_func ();
17518   ;
17519   return 0;
17520 }
17521 _ACEOF
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526   *) ac_try_echo=$ac_try;;
17527 esac
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529   (eval "$ac_link") 2>conftest.er1
17530   ac_status=$?
17531   grep -v '^ *+' conftest.er1 >conftest.err
17532   rm -f conftest.er1
17533   cat conftest.err >&5
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); } && {
17536          test -z "$ac_c_werror_flag" ||
17537          test ! -s conftest.err
17538        } && test -s conftest$ac_exeext &&
17539        $as_test_x conftest$ac_exeext; then
17540   eval "$as_ac_var=yes"
17541 else
17542   echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17544
17545         eval "$as_ac_var=no"
17546 fi
17547
17548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17549       conftest$ac_exeext conftest.$ac_ext
17550 fi
17551 ac_res=`eval echo '${'$as_ac_var'}'`
17552                { echo "$as_me:$LINENO: result: $ac_res" >&5
17553 echo "${ECHO_T}$ac_res" >&6; }
17554 if test `eval echo '${'$as_ac_var'}'` = yes; then
17555   cat >>confdefs.h <<_ACEOF
17556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17557 _ACEOF
17558
17559 else
17560   NEED_SNPRINTF=1
17561 fi
17562 done
17563
17564 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17565     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17566 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17567 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17568   echo $ECHO_N "(cached) $ECHO_C" >&6
17569 else
17570   cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h.  */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h.  */
17576 $ac_includes_default
17577 int
17578 main ()
17579 {
17580 static struct stat ac_aggr;
17581 if (ac_aggr.st_mtim)
17582 return 0;
17583   ;
17584   return 0;
17585 }
17586 _ACEOF
17587 rm -f conftest.$ac_objext
17588 if { (ac_try="$ac_compile"
17589 case "(($ac_try" in
17590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591   *) ac_try_echo=$ac_try;;
17592 esac
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594   (eval "$ac_compile") 2>conftest.er1
17595   ac_status=$?
17596   grep -v '^ *+' conftest.er1 >conftest.err
17597   rm -f conftest.er1
17598   cat conftest.err >&5
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); } && {
17601          test -z "$ac_c_werror_flag" ||
17602          test ! -s conftest.err
17603        } && test -s conftest.$ac_objext; then
17604   ac_cv_member_struct_stat_st_mtim=yes
17605 else
17606   echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609         cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h.  */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h.  */
17615 $ac_includes_default
17616 int
17617 main ()
17618 {
17619 static struct stat ac_aggr;
17620 if (sizeof ac_aggr.st_mtim)
17621 return 0;
17622   ;
17623   return 0;
17624 }
17625 _ACEOF
17626 rm -f conftest.$ac_objext
17627 if { (ac_try="$ac_compile"
17628 case "(($ac_try" in
17629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630   *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633   (eval "$ac_compile") 2>conftest.er1
17634   ac_status=$?
17635   grep -v '^ *+' conftest.er1 >conftest.err
17636   rm -f conftest.er1
17637   cat conftest.err >&5
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); } && {
17640          test -z "$ac_c_werror_flag" ||
17641          test ! -s conftest.err
17642        } && test -s conftest.$ac_objext; then
17643   ac_cv_member_struct_stat_st_mtim=yes
17644 else
17645   echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17647
17648         ac_cv_member_struct_stat_st_mtim=no
17649 fi
17650
17651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17652 fi
17653
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655 fi
17656 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
17657 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
17658 if test $ac_cv_member_struct_stat_st_mtim = yes; then
17659   cat >>confdefs.h <<\_ACEOF
17660 #define HAVE_ST_MTIM 1
17661 _ACEOF
17662
17663 else
17664   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
17665 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
17666 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
17667   echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669   cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675 $ac_includes_default
17676 int
17677 main ()
17678 {
17679 static struct stat ac_aggr;
17680 if (ac_aggr.st_mtimespec)
17681 return 0;
17682   ;
17683   return 0;
17684 }
17685 _ACEOF
17686 rm -f conftest.$ac_objext
17687 if { (ac_try="$ac_compile"
17688 case "(($ac_try" in
17689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690   *) ac_try_echo=$ac_try;;
17691 esac
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693   (eval "$ac_compile") 2>conftest.er1
17694   ac_status=$?
17695   grep -v '^ *+' conftest.er1 >conftest.err
17696   rm -f conftest.er1
17697   cat conftest.err >&5
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); } && {
17700          test -z "$ac_c_werror_flag" ||
17701          test ! -s conftest.err
17702        } && test -s conftest.$ac_objext; then
17703   ac_cv_member_struct_stat_st_mtimespec=yes
17704 else
17705   echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708         cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h.  */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h.  */
17714 $ac_includes_default
17715 int
17716 main ()
17717 {
17718 static struct stat ac_aggr;
17719 if (sizeof ac_aggr.st_mtimespec)
17720 return 0;
17721   ;
17722   return 0;
17723 }
17724 _ACEOF
17725 rm -f conftest.$ac_objext
17726 if { (ac_try="$ac_compile"
17727 case "(($ac_try" in
17728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729   *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732   (eval "$ac_compile") 2>conftest.er1
17733   ac_status=$?
17734   grep -v '^ *+' conftest.er1 >conftest.err
17735   rm -f conftest.er1
17736   cat conftest.err >&5
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); } && {
17739          test -z "$ac_c_werror_flag" ||
17740          test ! -s conftest.err
17741        } && test -s conftest.$ac_objext; then
17742   ac_cv_member_struct_stat_st_mtimespec=yes
17743 else
17744   echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17746
17747         ac_cv_member_struct_stat_st_mtimespec=no
17748 fi
17749
17750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17751 fi
17752
17753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17754 fi
17755 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
17756 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
17757 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
17758   cat >>confdefs.h <<\_ACEOF
17759 #define HAVE_ST_MTIMESPEC 1
17760 _ACEOF
17761
17762 fi
17763
17764 fi
17765
17766     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
17767 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
17768     cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h.  */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h.  */
17774 #include <sys/types.h>
17775 #include <sys/time.h>
17776 int
17777 main ()
17778 {
17779 struct timespec ts1, ts2;
17780 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
17781 #ifndef timespecsub
17782 #error missing timespecsub
17783 #endif
17784 timespecsub(&ts1, &ts2);
17785   ;
17786   return 0;
17787 }
17788 _ACEOF
17789 rm -f conftest.$ac_objext
17790 if { (ac_try="$ac_compile"
17791 case "(($ac_try" in
17792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793   *) ac_try_echo=$ac_try;;
17794 esac
17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796   (eval "$ac_compile") 2>conftest.er1
17797   ac_status=$?
17798   grep -v '^ *+' conftest.er1 >conftest.err
17799   rm -f conftest.er1
17800   cat conftest.err >&5
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); } && {
17803          test -z "$ac_c_werror_flag" ||
17804          test ! -s conftest.err
17805        } && test -s conftest.$ac_objext; then
17806   cat >>confdefs.h <<\_ACEOF
17807 #define HAVE_TIMESPECSUB2 1
17808 _ACEOF
17809
17810     { echo "$as_me:$LINENO: result: yes" >&5
17811 echo "${ECHO_T}yes" >&6; }
17812 else
17813   echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17815
17816         { echo "$as_me:$LINENO: result: no" >&5
17817 echo "${ECHO_T}no" >&6; }
17818 fi
17819
17820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821 fi
17822 cat >conftest.$ac_ext <<_ACEOF
17823 /* confdefs.h.  */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h.  */
17828 #include <sys/types.h>
17829 #include <$ac_header_dirent>
17830 int
17831 main ()
17832 {
17833 DIR d; (void)dirfd(&d);
17834   ;
17835   return 0;
17836 }
17837 _ACEOF
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (ac_try="$ac_link"
17840 case "(($ac_try" in
17841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842   *) ac_try_echo=$ac_try;;
17843 esac
17844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17845   (eval "$ac_link") 2>conftest.er1
17846   ac_status=$?
17847   grep -v '^ *+' conftest.er1 >conftest.err
17848   rm -f conftest.er1
17849   cat conftest.err >&5
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); } && {
17852          test -z "$ac_c_werror_flag" ||
17853          test ! -s conftest.err
17854        } && test -s conftest$ac_exeext &&
17855        $as_test_x conftest$ac_exeext; then
17856   cat >>confdefs.h <<\_ACEOF
17857 #define HAVE_DIRFD 1
17858 _ACEOF
17859
17860 else
17861   echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17863
17864         cat >conftest.$ac_ext <<_ACEOF
17865 /* confdefs.h.  */
17866 _ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h.  */
17870 #include <sys/types.h>
17871 #include <$ac_header_dirent>
17872 int
17873 main ()
17874 {
17875 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884   *) ac_try_echo=$ac_try;;
17885 esac
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887   (eval "$ac_link") 2>conftest.er1
17888   ac_status=$?
17889   grep -v '^ *+' conftest.er1 >conftest.err
17890   rm -f conftest.er1
17891   cat conftest.err >&5
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); } && {
17894          test -z "$ac_c_werror_flag" ||
17895          test ! -s conftest.err
17896        } && test -s conftest$ac_exeext &&
17897        $as_test_x conftest$ac_exeext; then
17898   cat >>confdefs.h <<\_ACEOF
17899 #define HAVE_DD_FD 1
17900 _ACEOF
17901
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906
17907 fi
17908
17909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17910       conftest$ac_exeext conftest.$ac_ext
17911 fi
17912
17913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17914       conftest$ac_exeext conftest.$ac_ext
17915 if test -n "$NEED_SNPRINTF"; then
17916     case " $LIBOBJS " in
17917   *" snprintf.$ac_objext "* ) ;;
17918   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17919  ;;
17920 esac
17921
17922 fi
17923 { echo "$as_me:$LINENO: checking for socket" >&5
17924 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17925 if test "${ac_cv_func_socket+set}" = set; then
17926   echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928   cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h.  */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h.  */
17934 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17936 #define socket innocuous_socket
17937
17938 /* System header to define __stub macros and hopefully few prototypes,
17939     which can conflict with char socket (); below.
17940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17941     <limits.h> exists even on freestanding compilers.  */
17942
17943 #ifdef __STDC__
17944 # include <limits.h>
17945 #else
17946 # include <assert.h>
17947 #endif
17948
17949 #undef socket
17950
17951 /* Override any GCC internal prototype to avoid an error.
17952    Use char because int might match the return type of a GCC
17953    builtin and then its argument prototype would still apply.  */
17954 #ifdef __cplusplus
17955 extern "C"
17956 #endif
17957 char socket ();
17958 /* The GNU C library defines this for functions which it implements
17959     to always fail with ENOSYS.  Some functions are actually named
17960     something starting with __ and the normal name is an alias.  */
17961 #if defined __stub_socket || defined __stub___socket
17962 choke me
17963 #endif
17964
17965 int
17966 main ()
17967 {
17968 return socket ();
17969   ;
17970   return 0;
17971 }
17972 _ACEOF
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (ac_try="$ac_link"
17975 case "(($ac_try" in
17976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977   *) ac_try_echo=$ac_try;;
17978 esac
17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980   (eval "$ac_link") 2>conftest.er1
17981   ac_status=$?
17982   grep -v '^ *+' conftest.er1 >conftest.err
17983   rm -f conftest.er1
17984   cat conftest.err >&5
17985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986   (exit $ac_status); } && {
17987          test -z "$ac_c_werror_flag" ||
17988          test ! -s conftest.err
17989        } && test -s conftest$ac_exeext &&
17990        $as_test_x conftest$ac_exeext; then
17991   ac_cv_func_socket=yes
17992 else
17993   echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17995
17996         ac_cv_func_socket=no
17997 fi
17998
17999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18000       conftest$ac_exeext conftest.$ac_ext
18001 fi
18002 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18003 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18004 if test $ac_cv_func_socket = yes; then
18005   :
18006 else
18007   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18008 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18009 if test "${ac_cv_lib_socket_socket+set}" = set; then
18010   echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012   ac_check_lib_save_LIBS=$LIBS
18013 LIBS="-lsocket  $LIBS"
18014 cat >conftest.$ac_ext <<_ACEOF
18015 /* confdefs.h.  */
18016 _ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h.  */
18020
18021 /* Override any GCC internal prototype to avoid an error.
18022    Use char because int might match the return type of a GCC
18023    builtin and then its argument prototype would still apply.  */
18024 #ifdef __cplusplus
18025 extern "C"
18026 #endif
18027 char socket ();
18028 int
18029 main ()
18030 {
18031 return socket ();
18032   ;
18033   return 0;
18034 }
18035 _ACEOF
18036 rm -f conftest.$ac_objext conftest$ac_exeext
18037 if { (ac_try="$ac_link"
18038 case "(($ac_try" in
18039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040   *) ac_try_echo=$ac_try;;
18041 esac
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043   (eval "$ac_link") 2>conftest.er1
18044   ac_status=$?
18045   grep -v '^ *+' conftest.er1 >conftest.err
18046   rm -f conftest.er1
18047   cat conftest.err >&5
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); } && {
18050          test -z "$ac_c_werror_flag" ||
18051          test ! -s conftest.err
18052        } && test -s conftest$ac_exeext &&
18053        $as_test_x conftest$ac_exeext; then
18054   ac_cv_lib_socket_socket=yes
18055 else
18056   echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059         ac_cv_lib_socket_socket=no
18060 fi
18061
18062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18063       conftest$ac_exeext conftest.$ac_ext
18064 LIBS=$ac_check_lib_save_LIBS
18065 fi
18066 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18067 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18068 if test $ac_cv_lib_socket_socket = yes; then
18069   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18070 else
18071   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18072 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18073 if test "${ac_cv_lib_inet_socket+set}" = set; then
18074   echo $ECHO_N "(cached) $ECHO_C" >&6
18075 else
18076   ac_check_lib_save_LIBS=$LIBS
18077 LIBS="-linet  $LIBS"
18078 cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h.  */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h.  */
18084
18085 /* Override any GCC internal prototype to avoid an error.
18086    Use char because int might match the return type of a GCC
18087    builtin and then its argument prototype would still apply.  */
18088 #ifdef __cplusplus
18089 extern "C"
18090 #endif
18091 char socket ();
18092 int
18093 main ()
18094 {
18095 return socket ();
18096   ;
18097   return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (ac_try="$ac_link"
18102 case "(($ac_try" in
18103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104   *) ac_try_echo=$ac_try;;
18105 esac
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107   (eval "$ac_link") 2>conftest.er1
18108   ac_status=$?
18109   grep -v '^ *+' conftest.er1 >conftest.err
18110   rm -f conftest.er1
18111   cat conftest.err >&5
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); } && {
18114          test -z "$ac_c_werror_flag" ||
18115          test ! -s conftest.err
18116        } && test -s conftest$ac_exeext &&
18117        $as_test_x conftest$ac_exeext; then
18118   ac_cv_lib_inet_socket=yes
18119 else
18120   echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18122
18123         ac_cv_lib_inet_socket=no
18124 fi
18125
18126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18127       conftest$ac_exeext conftest.$ac_ext
18128 LIBS=$ac_check_lib_save_LIBS
18129 fi
18130 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18131 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18132 if test $ac_cv_lib_inet_socket = yes; then
18133   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18134 else
18135   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18136 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18137 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18138 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18139 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18140   echo $ECHO_N "(cached) $ECHO_C" >&6
18141 else
18142   ac_check_lib_save_LIBS=$LIBS
18143 LIBS="-lsocket -lnsl $LIBS"
18144 cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h.  */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h.  */
18150
18151 /* Override any GCC internal prototype to avoid an error.
18152    Use char because int might match the return type of a GCC
18153    builtin and then its argument prototype would still apply.  */
18154 #ifdef __cplusplus
18155 extern "C"
18156 #endif
18157 char socket ();
18158 int
18159 main ()
18160 {
18161 return socket ();
18162   ;
18163   return 0;
18164 }
18165 _ACEOF
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (ac_try="$ac_link"
18168 case "(($ac_try" in
18169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170   *) ac_try_echo=$ac_try;;
18171 esac
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173   (eval "$ac_link") 2>conftest.er1
18174   ac_status=$?
18175   grep -v '^ *+' conftest.er1 >conftest.err
18176   rm -f conftest.er1
18177   cat conftest.err >&5
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); } && {
18180          test -z "$ac_c_werror_flag" ||
18181          test ! -s conftest.err
18182        } && test -s conftest$ac_exeext &&
18183        $as_test_x conftest$ac_exeext; then
18184   ac_cv_lib_socket_socket_lnsl=yes
18185 else
18186   echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18188
18189         ac_cv_lib_socket_socket_lnsl=no
18190 fi
18191
18192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18193       conftest$ac_exeext conftest.$ac_ext
18194 LIBS=$ac_check_lib_save_LIBS
18195 fi
18196 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18197 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18198 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18199   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18200 fi
18201
18202 fi
18203
18204 fi
18205
18206 fi
18207
18208 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18209 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18210 if test "${ac_cv_func_inet_addr+set}" = set; then
18211   echo $ECHO_N "(cached) $ECHO_C" >&6
18212 else
18213   cat >conftest.$ac_ext <<_ACEOF
18214 /* confdefs.h.  */
18215 _ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h.  */
18219 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18221 #define inet_addr innocuous_inet_addr
18222
18223 /* System header to define __stub macros and hopefully few prototypes,
18224     which can conflict with char inet_addr (); below.
18225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18226     <limits.h> exists even on freestanding compilers.  */
18227
18228 #ifdef __STDC__
18229 # include <limits.h>
18230 #else
18231 # include <assert.h>
18232 #endif
18233
18234 #undef inet_addr
18235
18236 /* Override any GCC internal prototype to avoid an error.
18237    Use char because int might match the return type of a GCC
18238    builtin and then its argument prototype would still apply.  */
18239 #ifdef __cplusplus
18240 extern "C"
18241 #endif
18242 char inet_addr ();
18243 /* The GNU C library defines this for functions which it implements
18244     to always fail with ENOSYS.  Some functions are actually named
18245     something starting with __ and the normal name is an alias.  */
18246 #if defined __stub_inet_addr || defined __stub___inet_addr
18247 choke me
18248 #endif
18249
18250 int
18251 main ()
18252 {
18253 return inet_addr ();
18254   ;
18255   return 0;
18256 }
18257 _ACEOF
18258 rm -f conftest.$ac_objext conftest$ac_exeext
18259 if { (ac_try="$ac_link"
18260 case "(($ac_try" in
18261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262   *) ac_try_echo=$ac_try;;
18263 esac
18264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18265   (eval "$ac_link") 2>conftest.er1
18266   ac_status=$?
18267   grep -v '^ *+' conftest.er1 >conftest.err
18268   rm -f conftest.er1
18269   cat conftest.err >&5
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); } && {
18272          test -z "$ac_c_werror_flag" ||
18273          test ! -s conftest.err
18274        } && test -s conftest$ac_exeext &&
18275        $as_test_x conftest$ac_exeext; then
18276   ac_cv_func_inet_addr=yes
18277 else
18278   echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281         ac_cv_func_inet_addr=no
18282 fi
18283
18284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18285       conftest$ac_exeext conftest.$ac_ext
18286 fi
18287 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18288 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18289 if test $ac_cv_func_inet_addr = yes; then
18290   :
18291 else
18292   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18293 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18294 if test "${ac_cv_func___inet_addr+set}" = set; then
18295   echo $ECHO_N "(cached) $ECHO_C" >&6
18296 else
18297   cat >conftest.$ac_ext <<_ACEOF
18298 /* confdefs.h.  */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h.  */
18303 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18305 #define __inet_addr innocuous___inet_addr
18306
18307 /* System header to define __stub macros and hopefully few prototypes,
18308     which can conflict with char __inet_addr (); below.
18309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18310     <limits.h> exists even on freestanding compilers.  */
18311
18312 #ifdef __STDC__
18313 # include <limits.h>
18314 #else
18315 # include <assert.h>
18316 #endif
18317
18318 #undef __inet_addr
18319
18320 /* Override any GCC internal prototype to avoid an error.
18321    Use char because int might match the return type of a GCC
18322    builtin and then its argument prototype would still apply.  */
18323 #ifdef __cplusplus
18324 extern "C"
18325 #endif
18326 char __inet_addr ();
18327 /* The GNU C library defines this for functions which it implements
18328     to always fail with ENOSYS.  Some functions are actually named
18329     something starting with __ and the normal name is an alias.  */
18330 #if defined __stub___inet_addr || defined __stub_____inet_addr
18331 choke me
18332 #endif
18333
18334 int
18335 main ()
18336 {
18337 return __inet_addr ();
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
18344 case "(($ac_try" in
18345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346   *) ac_try_echo=$ac_try;;
18347 esac
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349   (eval "$ac_link") 2>conftest.er1
18350   ac_status=$?
18351   grep -v '^ *+' conftest.er1 >conftest.err
18352   rm -f conftest.er1
18353   cat conftest.err >&5
18354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355   (exit $ac_status); } && {
18356          test -z "$ac_c_werror_flag" ||
18357          test ! -s conftest.err
18358        } && test -s conftest$ac_exeext &&
18359        $as_test_x conftest$ac_exeext; then
18360   ac_cv_func___inet_addr=yes
18361 else
18362   echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18364
18365         ac_cv_func___inet_addr=no
18366 fi
18367
18368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18369       conftest$ac_exeext conftest.$ac_ext
18370 fi
18371 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18372 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18373 if test $ac_cv_func___inet_addr = yes; then
18374   :
18375 else
18376   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18377 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18378 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
18379   echo $ECHO_N "(cached) $ECHO_C" >&6
18380 else
18381   ac_check_lib_save_LIBS=$LIBS
18382 LIBS="-lnsl  $LIBS"
18383 cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h.  */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h.  */
18389
18390 /* Override any GCC internal prototype to avoid an error.
18391    Use char because int might match the return type of a GCC
18392    builtin and then its argument prototype would still apply.  */
18393 #ifdef __cplusplus
18394 extern "C"
18395 #endif
18396 char inet_addr ();
18397 int
18398 main ()
18399 {
18400 return inet_addr ();
18401   ;
18402   return 0;
18403 }
18404 _ACEOF
18405 rm -f conftest.$ac_objext conftest$ac_exeext
18406 if { (ac_try="$ac_link"
18407 case "(($ac_try" in
18408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409   *) ac_try_echo=$ac_try;;
18410 esac
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412   (eval "$ac_link") 2>conftest.er1
18413   ac_status=$?
18414   grep -v '^ *+' conftest.er1 >conftest.err
18415   rm -f conftest.er1
18416   cat conftest.err >&5
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); } && {
18419          test -z "$ac_c_werror_flag" ||
18420          test ! -s conftest.err
18421        } && test -s conftest$ac_exeext &&
18422        $as_test_x conftest$ac_exeext; then
18423   ac_cv_lib_nsl_inet_addr=yes
18424 else
18425   echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18427
18428         ac_cv_lib_nsl_inet_addr=no
18429 fi
18430
18431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18432       conftest$ac_exeext conftest.$ac_ext
18433 LIBS=$ac_check_lib_save_LIBS
18434 fi
18435 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18436 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18437 if test $ac_cv_lib_nsl_inet_addr = yes; then
18438   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18439 else
18440   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18441 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18442 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18443   echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445   ac_check_lib_save_LIBS=$LIBS
18446 LIBS="-linet  $LIBS"
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h.  */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h.  */
18453
18454 /* Override any GCC internal prototype to avoid an error.
18455    Use char because int might match the return type of a GCC
18456    builtin and then its argument prototype would still apply.  */
18457 #ifdef __cplusplus
18458 extern "C"
18459 #endif
18460 char inet_addr ();
18461 int
18462 main ()
18463 {
18464 return inet_addr ();
18465   ;
18466   return 0;
18467 }
18468 _ACEOF
18469 rm -f conftest.$ac_objext conftest$ac_exeext
18470 if { (ac_try="$ac_link"
18471 case "(($ac_try" in
18472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473   *) ac_try_echo=$ac_try;;
18474 esac
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476   (eval "$ac_link") 2>conftest.er1
18477   ac_status=$?
18478   grep -v '^ *+' conftest.er1 >conftest.err
18479   rm -f conftest.er1
18480   cat conftest.err >&5
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); } && {
18483          test -z "$ac_c_werror_flag" ||
18484          test ! -s conftest.err
18485        } && test -s conftest$ac_exeext &&
18486        $as_test_x conftest$ac_exeext; then
18487   ac_cv_lib_inet_inet_addr=yes
18488 else
18489   echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18491
18492         ac_cv_lib_inet_inet_addr=no
18493 fi
18494
18495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18496       conftest$ac_exeext conftest.$ac_ext
18497 LIBS=$ac_check_lib_save_LIBS
18498 fi
18499 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
18500 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18501 if test $ac_cv_lib_inet_inet_addr = yes; then
18502   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18503 else
18504   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18505 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18506 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18507 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18508 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
18509   echo $ECHO_N "(cached) $ECHO_C" >&6
18510 else
18511   ac_check_lib_save_LIBS=$LIBS
18512 LIBS="-lsocket -lnsl $LIBS"
18513 cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h.  */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h.  */
18519
18520 /* Override any GCC internal prototype to avoid an error.
18521    Use char because int might match the return type of a GCC
18522    builtin and then its argument prototype would still apply.  */
18523 #ifdef __cplusplus
18524 extern "C"
18525 #endif
18526 char inet_addr ();
18527 int
18528 main ()
18529 {
18530 return inet_addr ();
18531   ;
18532   return 0;
18533 }
18534 _ACEOF
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539   *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542   (eval "$ac_link") 2>conftest.er1
18543   ac_status=$?
18544   grep -v '^ *+' conftest.er1 >conftest.err
18545   rm -f conftest.er1
18546   cat conftest.err >&5
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); } && {
18549          test -z "$ac_c_werror_flag" ||
18550          test ! -s conftest.err
18551        } && test -s conftest$ac_exeext &&
18552        $as_test_x conftest$ac_exeext; then
18553   ac_cv_lib_socket_inet_addr_lnsl=yes
18554 else
18555   echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18557
18558         ac_cv_lib_socket_inet_addr_lnsl=no
18559 fi
18560
18561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18562       conftest$ac_exeext conftest.$ac_ext
18563 LIBS=$ac_check_lib_save_LIBS
18564 fi
18565 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
18566 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
18567 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
18568   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18569 fi
18570
18571 fi
18572
18573 fi
18574
18575 fi
18576
18577 fi
18578
18579 { echo "$as_me:$LINENO: checking for syslog" >&5
18580 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18581 if test "${ac_cv_func_syslog+set}" = set; then
18582   echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584   cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h.  */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h.  */
18590 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18592 #define syslog innocuous_syslog
18593
18594 /* System header to define __stub macros and hopefully few prototypes,
18595     which can conflict with char syslog (); below.
18596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18597     <limits.h> exists even on freestanding compilers.  */
18598
18599 #ifdef __STDC__
18600 # include <limits.h>
18601 #else
18602 # include <assert.h>
18603 #endif
18604
18605 #undef syslog
18606
18607 /* Override any GCC internal prototype to avoid an error.
18608    Use char because int might match the return type of a GCC
18609    builtin and then its argument prototype would still apply.  */
18610 #ifdef __cplusplus
18611 extern "C"
18612 #endif
18613 char syslog ();
18614 /* The GNU C library defines this for functions which it implements
18615     to always fail with ENOSYS.  Some functions are actually named
18616     something starting with __ and the normal name is an alias.  */
18617 #if defined __stub_syslog || defined __stub___syslog
18618 choke me
18619 #endif
18620
18621 int
18622 main ()
18623 {
18624 return syslog ();
18625   ;
18626   return 0;
18627 }
18628 _ACEOF
18629 rm -f conftest.$ac_objext conftest$ac_exeext
18630 if { (ac_try="$ac_link"
18631 case "(($ac_try" in
18632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633   *) ac_try_echo=$ac_try;;
18634 esac
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636   (eval "$ac_link") 2>conftest.er1
18637   ac_status=$?
18638   grep -v '^ *+' conftest.er1 >conftest.err
18639   rm -f conftest.er1
18640   cat conftest.err >&5
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); } && {
18643          test -z "$ac_c_werror_flag" ||
18644          test ! -s conftest.err
18645        } && test -s conftest$ac_exeext &&
18646        $as_test_x conftest$ac_exeext; then
18647   ac_cv_func_syslog=yes
18648 else
18649   echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18651
18652         ac_cv_func_syslog=no
18653 fi
18654
18655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18656       conftest$ac_exeext conftest.$ac_ext
18657 fi
18658 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18659 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18660 if test $ac_cv_func_syslog = yes; then
18661   :
18662 else
18663   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
18664 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
18665 if test "${ac_cv_lib_socket_syslog+set}" = set; then
18666   echo $ECHO_N "(cached) $ECHO_C" >&6
18667 else
18668   ac_check_lib_save_LIBS=$LIBS
18669 LIBS="-lsocket  $LIBS"
18670 cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676
18677 /* Override any GCC internal prototype to avoid an error.
18678    Use char because int might match the return type of a GCC
18679    builtin and then its argument prototype would still apply.  */
18680 #ifdef __cplusplus
18681 extern "C"
18682 #endif
18683 char syslog ();
18684 int
18685 main ()
18686 {
18687 return syslog ();
18688   ;
18689   return 0;
18690 }
18691 _ACEOF
18692 rm -f conftest.$ac_objext conftest$ac_exeext
18693 if { (ac_try="$ac_link"
18694 case "(($ac_try" in
18695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696   *) ac_try_echo=$ac_try;;
18697 esac
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699   (eval "$ac_link") 2>conftest.er1
18700   ac_status=$?
18701   grep -v '^ *+' conftest.er1 >conftest.err
18702   rm -f conftest.er1
18703   cat conftest.err >&5
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); } && {
18706          test -z "$ac_c_werror_flag" ||
18707          test ! -s conftest.err
18708        } && test -s conftest$ac_exeext &&
18709        $as_test_x conftest$ac_exeext; then
18710   ac_cv_lib_socket_syslog=yes
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715         ac_cv_lib_socket_syslog=no
18716 fi
18717
18718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18719       conftest$ac_exeext conftest.$ac_ext
18720 LIBS=$ac_check_lib_save_LIBS
18721 fi
18722 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
18723 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
18724 if test $ac_cv_lib_socket_syslog = yes; then
18725   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18726 else
18727   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
18728 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
18729 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
18730   echo $ECHO_N "(cached) $ECHO_C" >&6
18731 else
18732   ac_check_lib_save_LIBS=$LIBS
18733 LIBS="-lnsl  $LIBS"
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h.  */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h.  */
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 syslog ();
18748 int
18749 main ()
18750 {
18751 return syslog ();
18752   ;
18753   return 0;
18754 }
18755 _ACEOF
18756 rm -f conftest.$ac_objext conftest$ac_exeext
18757 if { (ac_try="$ac_link"
18758 case "(($ac_try" in
18759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760   *) ac_try_echo=$ac_try;;
18761 esac
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763   (eval "$ac_link") 2>conftest.er1
18764   ac_status=$?
18765   grep -v '^ *+' conftest.er1 >conftest.err
18766   rm -f conftest.er1
18767   cat conftest.err >&5
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); } && {
18770          test -z "$ac_c_werror_flag" ||
18771          test ! -s conftest.err
18772        } && test -s conftest$ac_exeext &&
18773        $as_test_x conftest$ac_exeext; then
18774   ac_cv_lib_nsl_syslog=yes
18775 else
18776   echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18778
18779         ac_cv_lib_nsl_syslog=no
18780 fi
18781
18782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18783       conftest$ac_exeext conftest.$ac_ext
18784 LIBS=$ac_check_lib_save_LIBS
18785 fi
18786 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
18787 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
18788 if test $ac_cv_lib_nsl_syslog = yes; then
18789   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18790 else
18791   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
18792 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
18793 if test "${ac_cv_lib_inet_syslog+set}" = set; then
18794   echo $ECHO_N "(cached) $ECHO_C" >&6
18795 else
18796   ac_check_lib_save_LIBS=$LIBS
18797 LIBS="-linet  $LIBS"
18798 cat >conftest.$ac_ext <<_ACEOF
18799 /* confdefs.h.  */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h.  */
18804
18805 /* Override any GCC internal prototype to avoid an error.
18806    Use char because int might match the return type of a GCC
18807    builtin and then its argument prototype would still apply.  */
18808 #ifdef __cplusplus
18809 extern "C"
18810 #endif
18811 char syslog ();
18812 int
18813 main ()
18814 {
18815 return syslog ();
18816   ;
18817   return 0;
18818 }
18819 _ACEOF
18820 rm -f conftest.$ac_objext conftest$ac_exeext
18821 if { (ac_try="$ac_link"
18822 case "(($ac_try" in
18823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824   *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827   (eval "$ac_link") 2>conftest.er1
18828   ac_status=$?
18829   grep -v '^ *+' conftest.er1 >conftest.err
18830   rm -f conftest.er1
18831   cat conftest.err >&5
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); } && {
18834          test -z "$ac_c_werror_flag" ||
18835          test ! -s conftest.err
18836        } && test -s conftest$ac_exeext &&
18837        $as_test_x conftest$ac_exeext; then
18838   ac_cv_lib_inet_syslog=yes
18839 else
18840   echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18842
18843         ac_cv_lib_inet_syslog=no
18844 fi
18845
18846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18847       conftest$ac_exeext conftest.$ac_ext
18848 LIBS=$ac_check_lib_save_LIBS
18849 fi
18850 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
18851 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
18852 if test $ac_cv_lib_inet_syslog = yes; then
18853   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18854 fi
18855
18856 fi
18857
18858 fi
18859
18860 fi
18861
18862 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
18863     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18864 # for constant arguments.  Useless!
18865 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
18866 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
18867 if test "${ac_cv_working_alloca_h+set}" = set; then
18868   echo $ECHO_N "(cached) $ECHO_C" >&6
18869 else
18870   cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h.  */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h.  */
18876 #include <alloca.h>
18877 int
18878 main ()
18879 {
18880 char *p = (char *) alloca (2 * sizeof (int));
18881                           if (p) return 0;
18882   ;
18883   return 0;
18884 }
18885 _ACEOF
18886 rm -f conftest.$ac_objext conftest$ac_exeext
18887 if { (ac_try="$ac_link"
18888 case "(($ac_try" in
18889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890   *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893   (eval "$ac_link") 2>conftest.er1
18894   ac_status=$?
18895   grep -v '^ *+' conftest.er1 >conftest.err
18896   rm -f conftest.er1
18897   cat conftest.err >&5
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); } && {
18900          test -z "$ac_c_werror_flag" ||
18901          test ! -s conftest.err
18902        } && test -s conftest$ac_exeext &&
18903        $as_test_x conftest$ac_exeext; then
18904   ac_cv_working_alloca_h=yes
18905 else
18906   echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18908
18909         ac_cv_working_alloca_h=no
18910 fi
18911
18912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18913       conftest$ac_exeext conftest.$ac_ext
18914 fi
18915 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18916 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
18917 if test $ac_cv_working_alloca_h = yes; then
18918
18919 cat >>confdefs.h <<\_ACEOF
18920 #define HAVE_ALLOCA_H 1
18921 _ACEOF
18922
18923 fi
18924
18925 { echo "$as_me:$LINENO: checking for alloca" >&5
18926 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
18927 if test "${ac_cv_func_alloca_works+set}" = set; then
18928   echo $ECHO_N "(cached) $ECHO_C" >&6
18929 else
18930   cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h.  */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h.  */
18936 #ifdef __GNUC__
18937 # define alloca __builtin_alloca
18938 #else
18939 # ifdef _MSC_VER
18940 #  include <malloc.h>
18941 #  define alloca _alloca
18942 # else
18943 #  ifdef HAVE_ALLOCA_H
18944 #   include <alloca.h>
18945 #  else
18946 #   ifdef _AIX
18947  #pragma alloca
18948 #   else
18949 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18950 char *alloca ();
18951 #    endif
18952 #   endif
18953 #  endif
18954 # endif
18955 #endif
18956
18957 int
18958 main ()
18959 {
18960 char *p = (char *) alloca (1);
18961                                     if (p) return 0;
18962   ;
18963   return 0;
18964 }
18965 _ACEOF
18966 rm -f conftest.$ac_objext conftest$ac_exeext
18967 if { (ac_try="$ac_link"
18968 case "(($ac_try" in
18969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970   *) ac_try_echo=$ac_try;;
18971 esac
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973   (eval "$ac_link") 2>conftest.er1
18974   ac_status=$?
18975   grep -v '^ *+' conftest.er1 >conftest.err
18976   rm -f conftest.er1
18977   cat conftest.err >&5
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); } && {
18980          test -z "$ac_c_werror_flag" ||
18981          test ! -s conftest.err
18982        } && test -s conftest$ac_exeext &&
18983        $as_test_x conftest$ac_exeext; then
18984   ac_cv_func_alloca_works=yes
18985 else
18986   echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989         ac_cv_func_alloca_works=no
18990 fi
18991
18992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18993       conftest$ac_exeext conftest.$ac_ext
18994 fi
18995 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18996 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
18997
18998 if test $ac_cv_func_alloca_works = yes; then
18999
19000 cat >>confdefs.h <<\_ACEOF
19001 #define HAVE_ALLOCA 1
19002 _ACEOF
19003
19004 else
19005   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19006 # that cause trouble.  Some versions do not even contain alloca or
19007 # contain a buggy version.  If you still want to use their alloca,
19008 # use ar to extract alloca.o from them instead of compiling alloca.c.
19009
19010 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19011
19012 cat >>confdefs.h <<\_ACEOF
19013 #define C_ALLOCA 1
19014 _ACEOF
19015
19016
19017 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19018 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19019 if test "${ac_cv_os_cray+set}" = set; then
19020   echo $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022   cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h.  */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h.  */
19028 #if defined CRAY && ! defined CRAY2
19029 webecray
19030 #else
19031 wenotbecray
19032 #endif
19033
19034 _ACEOF
19035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19036   $EGREP "webecray" >/dev/null 2>&1; then
19037   ac_cv_os_cray=yes
19038 else
19039   ac_cv_os_cray=no
19040 fi
19041 rm -f conftest*
19042
19043 fi
19044 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19045 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19046 if test $ac_cv_os_cray = yes; then
19047   for ac_func in _getb67 GETB67 getb67; do
19048     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19052   echo $ECHO_N "(cached) $ECHO_C" >&6
19053 else
19054   cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h.  */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h.  */
19060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19062 #define $ac_func innocuous_$ac_func
19063
19064 /* System header to define __stub macros and hopefully few prototypes,
19065     which can conflict with char $ac_func (); below.
19066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19067     <limits.h> exists even on freestanding compilers.  */
19068
19069 #ifdef __STDC__
19070 # include <limits.h>
19071 #else
19072 # include <assert.h>
19073 #endif
19074
19075 #undef $ac_func
19076
19077 /* Override any GCC internal prototype to avoid an error.
19078    Use char because int might match the return type of a GCC
19079    builtin and then its argument prototype would still apply.  */
19080 #ifdef __cplusplus
19081 extern "C"
19082 #endif
19083 char $ac_func ();
19084 /* The GNU C library defines this for functions which it implements
19085     to always fail with ENOSYS.  Some functions are actually named
19086     something starting with __ and the normal name is an alias.  */
19087 #if defined __stub_$ac_func || defined __stub___$ac_func
19088 choke me
19089 #endif
19090
19091 int
19092 main ()
19093 {
19094 return $ac_func ();
19095   ;
19096   return 0;
19097 }
19098 _ACEOF
19099 rm -f conftest.$ac_objext conftest$ac_exeext
19100 if { (ac_try="$ac_link"
19101 case "(($ac_try" in
19102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103   *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106   (eval "$ac_link") 2>conftest.er1
19107   ac_status=$?
19108   grep -v '^ *+' conftest.er1 >conftest.err
19109   rm -f conftest.er1
19110   cat conftest.err >&5
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); } && {
19113          test -z "$ac_c_werror_flag" ||
19114          test ! -s conftest.err
19115        } && test -s conftest$ac_exeext &&
19116        $as_test_x conftest$ac_exeext; then
19117   eval "$as_ac_var=yes"
19118 else
19119   echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19121
19122         eval "$as_ac_var=no"
19123 fi
19124
19125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19126       conftest$ac_exeext conftest.$ac_ext
19127 fi
19128 ac_res=`eval echo '${'$as_ac_var'}'`
19129                { echo "$as_me:$LINENO: result: $ac_res" >&5
19130 echo "${ECHO_T}$ac_res" >&6; }
19131 if test `eval echo '${'$as_ac_var'}'` = yes; then
19132
19133 cat >>confdefs.h <<_ACEOF
19134 #define CRAY_STACKSEG_END $ac_func
19135 _ACEOF
19136
19137     break
19138 fi
19139
19140   done
19141 fi
19142
19143 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19144 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19145 if test "${ac_cv_c_stack_direction+set}" = set; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   if test "$cross_compiling" = yes; then
19149   ac_cv_c_stack_direction=0
19150 else
19151   cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h.  */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h.  */
19157 $ac_includes_default
19158 int
19159 find_stack_direction ()
19160 {
19161   static char *addr = 0;
19162   auto char dummy;
19163   if (addr == 0)
19164     {
19165       addr = &dummy;
19166       return find_stack_direction ();
19167     }
19168   else
19169     return (&dummy > addr) ? 1 : -1;
19170 }
19171
19172 int
19173 main ()
19174 {
19175   return find_stack_direction () < 0;
19176 }
19177 _ACEOF
19178 rm -f conftest$ac_exeext
19179 if { (ac_try="$ac_link"
19180 case "(($ac_try" in
19181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182   *) ac_try_echo=$ac_try;;
19183 esac
19184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185   (eval "$ac_link") 2>&5
19186   ac_status=$?
19187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19189   { (case "(($ac_try" in
19190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191   *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194   (eval "$ac_try") 2>&5
19195   ac_status=$?
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); }; }; then
19198   ac_cv_c_stack_direction=1
19199 else
19200   echo "$as_me: program exited with status $ac_status" >&5
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 ( exit $ac_status )
19205 ac_cv_c_stack_direction=-1
19206 fi
19207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19208 fi
19209
19210
19211 fi
19212 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19213 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19214
19215 cat >>confdefs.h <<_ACEOF
19216 #define STACK_DIRECTION $ac_cv_c_stack_direction
19217 _ACEOF
19218
19219
19220 fi
19221
19222 fi
19223
19224 for ac_func in getprogname
19225 do
19226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19227 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19230   echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232   cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h.  */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h.  */
19238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19240 #define $ac_func innocuous_$ac_func
19241
19242 /* System header to define __stub macros and hopefully few prototypes,
19243     which can conflict with char $ac_func (); below.
19244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19245     <limits.h> exists even on freestanding compilers.  */
19246
19247 #ifdef __STDC__
19248 # include <limits.h>
19249 #else
19250 # include <assert.h>
19251 #endif
19252
19253 #undef $ac_func
19254
19255 /* Override any GCC internal prototype to avoid an error.
19256    Use char because int might match the return type of a GCC
19257    builtin and then its argument prototype would still apply.  */
19258 #ifdef __cplusplus
19259 extern "C"
19260 #endif
19261 char $ac_func ();
19262 /* The GNU C library defines this for functions which it implements
19263     to always fail with ENOSYS.  Some functions are actually named
19264     something starting with __ and the normal name is an alias.  */
19265 #if defined __stub_$ac_func || defined __stub___$ac_func
19266 choke me
19267 #endif
19268
19269 int
19270 main ()
19271 {
19272 return $ac_func ();
19273   ;
19274   return 0;
19275 }
19276 _ACEOF
19277 rm -f conftest.$ac_objext conftest$ac_exeext
19278 if { (ac_try="$ac_link"
19279 case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284   (eval "$ac_link") 2>conftest.er1
19285   ac_status=$?
19286   grep -v '^ *+' conftest.er1 >conftest.err
19287   rm -f conftest.er1
19288   cat conftest.err >&5
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } && {
19291          test -z "$ac_c_werror_flag" ||
19292          test ! -s conftest.err
19293        } && test -s conftest$ac_exeext &&
19294        $as_test_x conftest$ac_exeext; then
19295   eval "$as_ac_var=yes"
19296 else
19297   echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19299
19300         eval "$as_ac_var=no"
19301 fi
19302
19303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19304       conftest$ac_exeext conftest.$ac_ext
19305 fi
19306 ac_res=`eval echo '${'$as_ac_var'}'`
19307                { echo "$as_me:$LINENO: result: $ac_res" >&5
19308 echo "${ECHO_T}$ac_res" >&6; }
19309 if test `eval echo '${'$as_ac_var'}'` = yes; then
19310   cat >>confdefs.h <<_ACEOF
19311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19312 _ACEOF
19313
19314 else
19315
19316     { echo "$as_me:$LINENO: checking for __progname" >&5
19317 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19318     if test "${sudo_cv___progname+set}" = set; then
19319   echo $ECHO_N "(cached) $ECHO_C" >&6
19320 else
19321
19322     cat >conftest.$ac_ext <<_ACEOF
19323 /* confdefs.h.  */
19324 _ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h.  */
19328
19329 int
19330 main ()
19331 {
19332 extern char *__progname; (void)puts(__progname);
19333   ;
19334   return 0;
19335 }
19336 _ACEOF
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (ac_try="$ac_link"
19339 case "(($ac_try" in
19340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341   *) ac_try_echo=$ac_try;;
19342 esac
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344   (eval "$ac_link") 2>conftest.er1
19345   ac_status=$?
19346   grep -v '^ *+' conftest.er1 >conftest.err
19347   rm -f conftest.er1
19348   cat conftest.err >&5
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); } && {
19351          test -z "$ac_c_werror_flag" ||
19352          test ! -s conftest.err
19353        } && test -s conftest$ac_exeext &&
19354        $as_test_x conftest$ac_exeext; then
19355   sudo_cv___progname=yes
19356 else
19357   echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19359
19360         sudo_cv___progname=no
19361 fi
19362
19363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19364       conftest$ac_exeext conftest.$ac_ext
19365 fi
19366
19367     if test "$sudo_cv___progname" = "yes"; then
19368         cat >>confdefs.h <<\_ACEOF
19369 #define HAVE___PROGNAME 1
19370 _ACEOF
19371
19372     else
19373         case " $LIBOBJS " in
19374   *" getprogname.$ac_objext "* ) ;;
19375   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19376  ;;
19377 esac
19378
19379     fi
19380     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19381 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19382
19383 fi
19384 done
19385
19386
19387
19388 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19389     for auth in $AUTH_EXCL_DEF; do
19390         case $auth in
19391             AIX_AUTH)   with_aixauth=maybe;;
19392             BSD_AUTH)   with_bsdauth=maybe;;
19393             PAM)        with_pam=maybe;;
19394             SIA)        CHECKSIA=true;;
19395         esac
19396     done
19397 fi
19398
19399 if test ${with_pam-"no"} != "no"; then
19400                 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19401 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19402 if test "${ac_cv_lib_dl_main+set}" = set; then
19403   echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405   ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-ldl  $LIBS"
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h.  */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h.  */
19413
19414
19415 int
19416 main ()
19417 {
19418 return main ();
19419   ;
19420   return 0;
19421 }
19422 _ACEOF
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427   *) ac_try_echo=$ac_try;;
19428 esac
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430   (eval "$ac_link") 2>conftest.er1
19431   ac_status=$?
19432   grep -v '^ *+' conftest.er1 >conftest.err
19433   rm -f conftest.er1
19434   cat conftest.err >&5
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); } && {
19437          test -z "$ac_c_werror_flag" ||
19438          test ! -s conftest.err
19439        } && test -s conftest$ac_exeext &&
19440        $as_test_x conftest$ac_exeext; then
19441   ac_cv_lib_dl_main=yes
19442 else
19443   echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19445
19446         ac_cv_lib_dl_main=no
19447 fi
19448
19449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19450       conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19452 fi
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19454 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19455 if test $ac_cv_lib_dl_main = yes; then
19456   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19457 else
19458   SUDO_LIBS="${SUDO_LIBS} -lpam"
19459 fi
19460
19461     ac_cv_lib_dl=ac_cv_lib_dl_main
19462
19463
19464
19465 for ac_header in security/pam_appl.h pam/pam_appl.h
19466 do
19467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19469   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19472   echo $ECHO_N "(cached) $ECHO_C" >&6
19473 fi
19474 ac_res=`eval echo '${'$as_ac_Header'}'`
19475                { echo "$as_me:$LINENO: result: $ac_res" >&5
19476 echo "${ECHO_T}$ac_res" >&6; }
19477 else
19478   # Is the header compilable?
19479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h.  */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h.  */
19487 $ac_includes_default
19488 #include <$ac_header>
19489 _ACEOF
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494   *) ac_try_echo=$ac_try;;
19495 esac
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497   (eval "$ac_compile") 2>conftest.er1
19498   ac_status=$?
19499   grep -v '^ *+' conftest.er1 >conftest.err
19500   rm -f conftest.er1
19501   cat conftest.err >&5
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } && {
19504          test -z "$ac_c_werror_flag" ||
19505          test ! -s conftest.err
19506        } && test -s conftest.$ac_objext; then
19507   ac_header_compiler=yes
19508 else
19509   echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19511
19512         ac_header_compiler=no
19513 fi
19514
19515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19517 echo "${ECHO_T}$ac_header_compiler" >&6; }
19518
19519 # Is the header present?
19520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19522 cat >conftest.$ac_ext <<_ACEOF
19523 /* confdefs.h.  */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h.  */
19528 #include <$ac_header>
19529 _ACEOF
19530 if { (ac_try="$ac_cpp conftest.$ac_ext"
19531 case "(($ac_try" in
19532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533   *) ac_try_echo=$ac_try;;
19534 esac
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19537   ac_status=$?
19538   grep -v '^ *+' conftest.er1 >conftest.err
19539   rm -f conftest.er1
19540   cat conftest.err >&5
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); } >/dev/null && {
19543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19544          test ! -s conftest.err
19545        }; then
19546   ac_header_preproc=yes
19547 else
19548   echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551   ac_header_preproc=no
19552 fi
19553
19554 rm -f conftest.err conftest.$ac_ext
19555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19556 echo "${ECHO_T}$ac_header_preproc" >&6; }
19557
19558 # So?  What about this header?
19559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19560   yes:no: )
19561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19565     ac_header_preproc=yes
19566     ;;
19567   no:yes:* )
19568     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19570     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19571 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19572     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19574     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19575 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19578     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19580
19581     ;;
19582 esac
19583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19586   echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588   eval "$as_ac_Header=\$ac_header_preproc"
19589 fi
19590 ac_res=`eval echo '${'$as_ac_Header'}'`
19591                { echo "$as_me:$LINENO: result: $ac_res" >&5
19592 echo "${ECHO_T}$ac_res" >&6; }
19593
19594 fi
19595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19596   cat >>confdefs.h <<_ACEOF
19597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19598 _ACEOF
19599  with_pam=yes; break
19600 fi
19601
19602 done
19603
19604     if test "$with_pam" = "yes"; then
19605         cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_PAM 1
19607 _ACEOF
19608
19609         AUTH_OBJS="$AUTH_OBJS pam.o";
19610         AUTH_EXCL=PAM
19611         { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
19612 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
19613         # Check whether --enable-pam_session was given.
19614 if test "${enable_pam_session+set}" = set; then
19615   enableval=$enable_pam_session;  case "$enableval" in
19616                 yes)    { echo "$as_me:$LINENO: result: yes" >&5
19617 echo "${ECHO_T}yes" >&6; }
19618                         ;;
19619                 no)             { echo "$as_me:$LINENO: result: no" >&5
19620 echo "${ECHO_T}no" >&6; }
19621                             cat >>confdefs.h <<\_ACEOF
19622 #define NO_PAM_SESSION 1
19623 _ACEOF
19624
19625                             ;;
19626                 *)              { echo "$as_me:$LINENO: result: no" >&5
19627 echo "${ECHO_T}no" >&6; }
19628                             { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
19629 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
19630                             ;;
19631             esac
19632 else
19633   { echo "$as_me:$LINENO: result: yes" >&5
19634 echo "${ECHO_T}yes" >&6; }
19635 fi
19636
19637         case $host in
19638             *-*-linux*|*-*-solaris*)
19639
19640 for ac_func in dgettext
19641 do
19642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19646   echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648   cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h.  */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h.  */
19654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19656 #define $ac_func innocuous_$ac_func
19657
19658 /* System header to define __stub macros and hopefully few prototypes,
19659     which can conflict with char $ac_func (); below.
19660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19661     <limits.h> exists even on freestanding compilers.  */
19662
19663 #ifdef __STDC__
19664 # include <limits.h>
19665 #else
19666 # include <assert.h>
19667 #endif
19668
19669 #undef $ac_func
19670
19671 /* Override any GCC internal prototype to avoid an error.
19672    Use char because int might match the return type of a GCC
19673    builtin and then its argument prototype would still apply.  */
19674 #ifdef __cplusplus
19675 extern "C"
19676 #endif
19677 char $ac_func ();
19678 /* The GNU C library defines this for functions which it implements
19679     to always fail with ENOSYS.  Some functions are actually named
19680     something starting with __ and the normal name is an alias.  */
19681 #if defined __stub_$ac_func || defined __stub___$ac_func
19682 choke me
19683 #endif
19684
19685 int
19686 main ()
19687 {
19688 return $ac_func ();
19689   ;
19690   return 0;
19691 }
19692 _ACEOF
19693 rm -f conftest.$ac_objext conftest$ac_exeext
19694 if { (ac_try="$ac_link"
19695 case "(($ac_try" in
19696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697   *) ac_try_echo=$ac_try;;
19698 esac
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700   (eval "$ac_link") 2>conftest.er1
19701   ac_status=$?
19702   grep -v '^ *+' conftest.er1 >conftest.err
19703   rm -f conftest.er1
19704   cat conftest.err >&5
19705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706   (exit $ac_status); } && {
19707          test -z "$ac_c_werror_flag" ||
19708          test ! -s conftest.err
19709        } && test -s conftest$ac_exeext &&
19710        $as_test_x conftest$ac_exeext; then
19711   eval "$as_ac_var=yes"
19712 else
19713   echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716         eval "$as_ac_var=no"
19717 fi
19718
19719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19720       conftest$ac_exeext conftest.$ac_ext
19721 fi
19722 ac_res=`eval echo '${'$as_ac_var'}'`
19723                { echo "$as_me:$LINENO: result: $ac_res" >&5
19724 echo "${ECHO_T}$ac_res" >&6; }
19725 if test `eval echo '${'$as_ac_var'}'` = yes; then
19726   cat >>confdefs.h <<_ACEOF
19727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19728 _ACEOF
19729
19730 else
19731   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19732 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
19733 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19734   echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736   ac_check_lib_save_LIBS=$LIBS
19737 LIBS="-lintl  $LIBS"
19738 cat >conftest.$ac_ext <<_ACEOF
19739 /* confdefs.h.  */
19740 _ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h.  */
19744
19745 /* Override any GCC internal prototype to avoid an error.
19746    Use char because int might match the return type of a GCC
19747    builtin and then its argument prototype would still apply.  */
19748 #ifdef __cplusplus
19749 extern "C"
19750 #endif
19751 char dgettext ();
19752 int
19753 main ()
19754 {
19755 return dgettext ();
19756   ;
19757   return 0;
19758 }
19759 _ACEOF
19760 rm -f conftest.$ac_objext conftest$ac_exeext
19761 if { (ac_try="$ac_link"
19762 case "(($ac_try" in
19763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764   *) ac_try_echo=$ac_try;;
19765 esac
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767   (eval "$ac_link") 2>conftest.er1
19768   ac_status=$?
19769   grep -v '^ *+' conftest.er1 >conftest.err
19770   rm -f conftest.er1
19771   cat conftest.err >&5
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); } && {
19774          test -z "$ac_c_werror_flag" ||
19775          test ! -s conftest.err
19776        } && test -s conftest$ac_exeext &&
19777        $as_test_x conftest$ac_exeext; then
19778   ac_cv_lib_intl_dgettext=yes
19779 else
19780   echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19782
19783         ac_cv_lib_intl_dgettext=no
19784 fi
19785
19786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19787       conftest$ac_exeext conftest.$ac_ext
19788 LIBS=$ac_check_lib_save_LIBS
19789 fi
19790 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19791 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
19792 if test $ac_cv_lib_intl_dgettext = yes; then
19793   LIBS="${LIBS} -lintl"
19794                         cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_DGETTEXT 1
19796 _ACEOF
19797
19798 fi
19799
19800 fi
19801 done
19802
19803                     ;;
19804         esac
19805     fi
19806 fi
19807
19808 if test ${with_aixauth-'no'} != "no"; then
19809     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
19810         { echo "$as_me:$LINENO: using AIX general authentication" >&5
19811 echo "$as_me: using AIX general authentication" >&6;}
19812         cat >>confdefs.h <<\_ACEOF
19813 #define HAVE_AIXAUTH 1
19814 _ACEOF
19815
19816         AUTH_OBJS="$AUTH_OBJS aix_auth.o";
19817         SUDO_LIBS="${SUDO_LIBS} -ls"
19818         AUTH_EXCL=AIX_AUTH
19819     fi
19820 fi
19821
19822 if test ${with_bsdauth-'no'} != "no"; then
19823     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19824   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19825 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19826 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 fi
19829 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19830 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19831 else
19832   # Is the header compilable?
19833 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
19834 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841 $ac_includes_default
19842 #include <bsd_auth.h>
19843 _ACEOF
19844 rm -f conftest.$ac_objext
19845 if { (ac_try="$ac_compile"
19846 case "(($ac_try" in
19847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848   *) ac_try_echo=$ac_try;;
19849 esac
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851   (eval "$ac_compile") 2>conftest.er1
19852   ac_status=$?
19853   grep -v '^ *+' conftest.er1 >conftest.err
19854   rm -f conftest.er1
19855   cat conftest.err >&5
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); } && {
19858          test -z "$ac_c_werror_flag" ||
19859          test ! -s conftest.err
19860        } && test -s conftest.$ac_objext; then
19861   ac_header_compiler=yes
19862 else
19863   echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19865
19866         ac_header_compiler=no
19867 fi
19868
19869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19871 echo "${ECHO_T}$ac_header_compiler" >&6; }
19872
19873 # Is the header present?
19874 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
19875 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
19876 cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h.  */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h.  */
19882 #include <bsd_auth.h>
19883 _ACEOF
19884 if { (ac_try="$ac_cpp conftest.$ac_ext"
19885 case "(($ac_try" in
19886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887   *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19891   ac_status=$?
19892   grep -v '^ *+' conftest.er1 >conftest.err
19893   rm -f conftest.er1
19894   cat conftest.err >&5
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); } >/dev/null && {
19897          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19898          test ! -s conftest.err
19899        }; then
19900   ac_header_preproc=yes
19901 else
19902   echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905   ac_header_preproc=no
19906 fi
19907
19908 rm -f conftest.err conftest.$ac_ext
19909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19910 echo "${ECHO_T}$ac_header_preproc" >&6; }
19911
19912 # So?  What about this header?
19913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19914   yes:no: )
19915     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
19916 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19917     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
19918 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
19919     ac_header_preproc=yes
19920     ;;
19921   no:yes:* )
19922     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
19923 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
19924     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
19925 echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
19926     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
19927 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
19928     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
19929 echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19930     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
19931 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
19932     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
19933 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
19934
19935     ;;
19936 esac
19937 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19938 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19939 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942   ac_cv_header_bsd_auth_h=$ac_header_preproc
19943 fi
19944 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19945 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19946
19947 fi
19948 if test $ac_cv_header_bsd_auth_h = yes; then
19949   cat >>confdefs.h <<\_ACEOF
19950 #define HAVE_BSD_AUTH_H 1
19951 _ACEOF
19952
19953         AUTH_OBJS="$AUTH_OBJS bsdauth.o"
19954         BSDAUTH_USAGE='[-a auth_type] '
19955         AUTH_EXCL=BSD_AUTH
19956 else
19957   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
19958 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
19959    { (exit 1); exit 1; }; }
19960 fi
19961
19962
19963 fi
19964
19965 if test ${CHECKSIA-'false'} = "true"; then
19966
19967 for ac_func in sia_ses_init
19968 do
19969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19973   echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975   cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19983 #define $ac_func innocuous_$ac_func
19984
19985 /* System header to define __stub macros and hopefully few prototypes,
19986     which can conflict with char $ac_func (); below.
19987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19988     <limits.h> exists even on freestanding compilers.  */
19989
19990 #ifdef __STDC__
19991 # include <limits.h>
19992 #else
19993 # include <assert.h>
19994 #endif
19995
19996 #undef $ac_func
19997
19998 /* Override any GCC internal prototype to avoid an error.
19999    Use char because int might match the return type of a GCC
20000    builtin and then its argument prototype would still apply.  */
20001 #ifdef __cplusplus
20002 extern "C"
20003 #endif
20004 char $ac_func ();
20005 /* The GNU C library defines this for functions which it implements
20006     to always fail with ENOSYS.  Some functions are actually named
20007     something starting with __ and the normal name is an alias.  */
20008 #if defined __stub_$ac_func || defined __stub___$ac_func
20009 choke me
20010 #endif
20011
20012 int
20013 main ()
20014 {
20015 return $ac_func ();
20016   ;
20017   return 0;
20018 }
20019 _ACEOF
20020 rm -f conftest.$ac_objext conftest$ac_exeext
20021 if { (ac_try="$ac_link"
20022 case "(($ac_try" in
20023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024   *) ac_try_echo=$ac_try;;
20025 esac
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027   (eval "$ac_link") 2>conftest.er1
20028   ac_status=$?
20029   grep -v '^ *+' conftest.er1 >conftest.err
20030   rm -f conftest.er1
20031   cat conftest.err >&5
20032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033   (exit $ac_status); } && {
20034          test -z "$ac_c_werror_flag" ||
20035          test ! -s conftest.err
20036        } && test -s conftest$ac_exeext &&
20037        $as_test_x conftest$ac_exeext; then
20038   eval "$as_ac_var=yes"
20039 else
20040   echo "$as_me: failed program was:" >&5
20041 sed 's/^/| /' conftest.$ac_ext >&5
20042
20043         eval "$as_ac_var=no"
20044 fi
20045
20046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20047       conftest$ac_exeext conftest.$ac_ext
20048 fi
20049 ac_res=`eval echo '${'$as_ac_var'}'`
20050                { echo "$as_me:$LINENO: result: $ac_res" >&5
20051 echo "${ECHO_T}$ac_res" >&6; }
20052 if test `eval echo '${'$as_ac_var'}'` = yes; then
20053   cat >>confdefs.h <<_ACEOF
20054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20055 _ACEOF
20056  found=true
20057 else
20058   found=false
20059 fi
20060 done
20061
20062     if test "$found" = "true"; then
20063         AUTH_EXCL=SIA
20064         AUTH_OBJS="$AUTH_OBJS sia.o"
20065     fi
20066 fi
20067
20068 if test ${with_fwtk-'no'} != "no"; then
20069     if test "$with_fwtk" != "yes"; then
20070
20071     if test X"$with_rpath" = X"yes"; then
20072         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20073     else
20074         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20075     fi
20076     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20077         blibpath_add="${blibpath_add}:${with_fwtk}"
20078     fi
20079
20080         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20081         with_fwtk=yes
20082     fi
20083     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20084     AUTH_OBJS="$AUTH_OBJS fwtk.o"
20085 fi
20086
20087 if test ${with_SecurID-'no'} != "no"; then
20088     if test "$with_SecurID" != "yes"; then
20089         :
20090     elif test -d /usr/ace/examples; then
20091         with_SecurID=/usr/ace/examples
20092     else
20093         with_SecurID=/usr/ace
20094     fi
20095     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20096     _LDFLAGS="${LDFLAGS}"
20097
20098     if test X"$with_rpath" = X"yes"; then
20099         LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20100     else
20101         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20102     fi
20103     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20104         blibpath_add="${blibpath_add}:${with_SecurID}"
20105     fi
20106
20107     #
20108     # Determine whether to use the new or old SecurID API
20109     #
20110     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20111 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20112 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20113   echo $ECHO_N "(cached) $ECHO_C" >&6
20114 else
20115   ac_check_lib_save_LIBS=$LIBS
20116 LIBS="-laceclnt
20117             -lpthread
20118
20119      $LIBS"
20120 cat >conftest.$ac_ext <<_ACEOF
20121 /* confdefs.h.  */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h.  */
20126
20127 /* Override any GCC internal prototype to avoid an error.
20128    Use char because int might match the return type of a GCC
20129    builtin and then its argument prototype would still apply.  */
20130 #ifdef __cplusplus
20131 extern "C"
20132 #endif
20133 char SD_Init ();
20134 int
20135 main ()
20136 {
20137 return SD_Init ();
20138   ;
20139   return 0;
20140 }
20141 _ACEOF
20142 rm -f conftest.$ac_objext conftest$ac_exeext
20143 if { (ac_try="$ac_link"
20144 case "(($ac_try" in
20145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146   *) ac_try_echo=$ac_try;;
20147 esac
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149   (eval "$ac_link") 2>conftest.er1
20150   ac_status=$?
20151   grep -v '^ *+' conftest.er1 >conftest.err
20152   rm -f conftest.er1
20153   cat conftest.err >&5
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); } && {
20156          test -z "$ac_c_werror_flag" ||
20157          test ! -s conftest.err
20158        } && test -s conftest$ac_exeext &&
20159        $as_test_x conftest$ac_exeext; then
20160   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20161 else
20162   echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165         ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20166 fi
20167
20168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20169       conftest$ac_exeext conftest.$ac_ext
20170 LIBS=$ac_check_lib_save_LIBS
20171 fi
20172 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20173 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20174 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20175
20176             AUTH_OBJS="$AUTH_OBJS securid5.o";
20177             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20178
20179
20180
20181     if test X"$with_rpath" = X"yes"; then
20182         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20183     else
20184         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20185     fi
20186     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20187         blibpath_add="${blibpath_add}:${with_SecurID}"
20188     fi
20189
20190
20191 else
20192
20193             AUTH_OBJS="$AUTH_OBJS securid.o";
20194             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20195
20196 fi
20197
20198     LDFLAGS="${_LDFLAGS}"
20199 fi
20200
20201
20202 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20203     for auth in $AUTH_DEF; do
20204         case $auth in
20205             passwd)     : ${with_passwd='maybe'};;
20206         esac
20207     done
20208 fi
20209
20210 if test ${with_kerb4-'no'} != "no"; then
20211     cat >>confdefs.h <<\_ACEOF
20212 #define HAVE_KERB4 1
20213 _ACEOF
20214
20215                 O_LDFLAGS="$LDFLAGS"
20216     if test "$with_kerb4" = "yes"; then
20217         found=no
20218         O_CPPFLAGS="$CPPFLAGS"
20219         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20220             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20221             cat >conftest.$ac_ext <<_ACEOF
20222 #include <krb.h>
20223 _ACEOF
20224 if { (ac_try="$ac_cpp conftest.$ac_ext"
20225 case "(($ac_try" in
20226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227   *) ac_try_echo=$ac_try;;
20228 esac
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20231   ac_status=$?
20232   grep -v '^ *+' conftest.er1 >conftest.err
20233   rm -f conftest.er1
20234   cat conftest.err >&5
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); } >/dev/null && {
20237          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20238          test ! -s conftest.err
20239        }; then
20240   found=yes; break
20241 else
20242   echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245
20246 fi
20247
20248 rm -f conftest.err conftest.$ac_ext
20249         done
20250         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20251     else
20252
20253     if test X"$with_rpath" = X"yes"; then
20254         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20255     else
20256         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20257     fi
20258     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20259         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20260     fi
20261
20262
20263     if test X"$with_rpath" = X"yes"; then
20264         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20265     else
20266         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20267     fi
20268     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20269         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20270     fi
20271
20272         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20273         if test "${ac_cv_header_krb_h+set}" = set; then
20274   { echo "$as_me:$LINENO: checking for krb.h" >&5
20275 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20276 if test "${ac_cv_header_krb_h+set}" = set; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 fi
20279 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20280 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20281 else
20282   # Is the header compilable?
20283 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20284 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20285 cat >conftest.$ac_ext <<_ACEOF
20286 /* confdefs.h.  */
20287 _ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h.  */
20291 $ac_includes_default
20292 #include <krb.h>
20293 _ACEOF
20294 rm -f conftest.$ac_objext
20295 if { (ac_try="$ac_compile"
20296 case "(($ac_try" in
20297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298   *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301   (eval "$ac_compile") 2>conftest.er1
20302   ac_status=$?
20303   grep -v '^ *+' conftest.er1 >conftest.err
20304   rm -f conftest.er1
20305   cat conftest.err >&5
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } && {
20308          test -z "$ac_c_werror_flag" ||
20309          test ! -s conftest.err
20310        } && test -s conftest.$ac_objext; then
20311   ac_header_compiler=yes
20312 else
20313   echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316         ac_header_compiler=no
20317 fi
20318
20319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20321 echo "${ECHO_T}$ac_header_compiler" >&6; }
20322
20323 # Is the header present?
20324 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20325 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20326 cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h.  */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h.  */
20332 #include <krb.h>
20333 _ACEOF
20334 if { (ac_try="$ac_cpp conftest.$ac_ext"
20335 case "(($ac_try" in
20336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337   *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20341   ac_status=$?
20342   grep -v '^ *+' conftest.er1 >conftest.err
20343   rm -f conftest.er1
20344   cat conftest.err >&5
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } >/dev/null && {
20347          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20348          test ! -s conftest.err
20349        }; then
20350   ac_header_preproc=yes
20351 else
20352   echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355   ac_header_preproc=no
20356 fi
20357
20358 rm -f conftest.err conftest.$ac_ext
20359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20360 echo "${ECHO_T}$ac_header_preproc" >&6; }
20361
20362 # So?  What about this header?
20363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20364   yes:no: )
20365     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20366 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20367     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20368 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20369     ac_header_preproc=yes
20370     ;;
20371   no:yes:* )
20372     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20373 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20374     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
20375 echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
20376     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20377 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20378     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
20379 echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20380     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20381 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20382     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20383 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20384
20385     ;;
20386 esac
20387 { echo "$as_me:$LINENO: checking for krb.h" >&5
20388 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20389 if test "${ac_cv_header_krb_h+set}" = set; then
20390   echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392   ac_cv_header_krb_h=$ac_header_preproc
20393 fi
20394 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20395 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20396
20397 fi
20398 if test $ac_cv_header_krb_h = yes; then
20399   found=yes
20400 else
20401   found=no
20402 fi
20403
20404
20405     fi
20406     if test X"$found" = X"no"; then
20407         { 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
20408 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;}
20409     fi
20410
20411                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20412 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20413 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20414   echo $ECHO_N "(cached) $ECHO_C" >&6
20415 else
20416   ac_check_lib_save_LIBS=$LIBS
20417 LIBS="-ldes  $LIBS"
20418 cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h.  */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h.  */
20424
20425 /* Override any GCC internal prototype to avoid an error.
20426    Use char because int might match the return type of a GCC
20427    builtin and then its argument prototype would still apply.  */
20428 #ifdef __cplusplus
20429 extern "C"
20430 #endif
20431 char des_cbc_encrypt ();
20432 int
20433 main ()
20434 {
20435 return des_cbc_encrypt ();
20436   ;
20437   return 0;
20438 }
20439 _ACEOF
20440 rm -f conftest.$ac_objext conftest$ac_exeext
20441 if { (ac_try="$ac_link"
20442 case "(($ac_try" in
20443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444   *) ac_try_echo=$ac_try;;
20445 esac
20446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447   (eval "$ac_link") 2>conftest.er1
20448   ac_status=$?
20449   grep -v '^ *+' conftest.er1 >conftest.err
20450   rm -f conftest.er1
20451   cat conftest.err >&5
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); } && {
20454          test -z "$ac_c_werror_flag" ||
20455          test ! -s conftest.err
20456        } && test -s conftest$ac_exeext &&
20457        $as_test_x conftest$ac_exeext; then
20458   ac_cv_lib_des_des_cbc_encrypt=yes
20459 else
20460   echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20462
20463         ac_cv_lib_des_des_cbc_encrypt=no
20464 fi
20465
20466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20467       conftest$ac_exeext conftest.$ac_ext
20468 LIBS=$ac_check_lib_save_LIBS
20469 fi
20470 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20471 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20472 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20473   K4LIBS="-ldes"
20474 else
20475
20476         { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20477 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20478 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20479   echo $ECHO_N "(cached) $ECHO_C" >&6
20480 else
20481   ac_check_lib_save_LIBS=$LIBS
20482 LIBS="-ldes425  $LIBS"
20483 cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h.  */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h.  */
20489
20490 /* Override any GCC internal prototype to avoid an error.
20491    Use char because int might match the return type of a GCC
20492    builtin and then its argument prototype would still apply.  */
20493 #ifdef __cplusplus
20494 extern "C"
20495 #endif
20496 char des_cbc_encrypt ();
20497 int
20498 main ()
20499 {
20500 return des_cbc_encrypt ();
20501   ;
20502   return 0;
20503 }
20504 _ACEOF
20505 rm -f conftest.$ac_objext conftest$ac_exeext
20506 if { (ac_try="$ac_link"
20507 case "(($ac_try" in
20508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509   *) ac_try_echo=$ac_try;;
20510 esac
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512   (eval "$ac_link") 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } && {
20519          test -z "$ac_c_werror_flag" ||
20520          test ! -s conftest.err
20521        } && test -s conftest$ac_exeext &&
20522        $as_test_x conftest$ac_exeext; then
20523   ac_cv_lib_des425_des_cbc_encrypt=yes
20524 else
20525   echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528         ac_cv_lib_des425_des_cbc_encrypt=no
20529 fi
20530
20531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20532       conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20534 fi
20535 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20536 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20537 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20538   K4LIBS="-ldes425"
20539 else
20540   K4LIBS=""
20541 fi
20542
20543
20544 fi
20545
20546                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20547 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20548     cat >conftest.$ac_ext <<_ACEOF
20549 /* confdefs.h.  */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h.  */
20554 #include <krb.h>
20555 int
20556 main ()
20557 {
20558 const char *tmp = krb4_version;
20559   ;
20560   return 0;
20561 }
20562 _ACEOF
20563 rm -f conftest.$ac_objext
20564 if { (ac_try="$ac_compile"
20565 case "(($ac_try" in
20566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567   *) ac_try_echo=$ac_try;;
20568 esac
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570   (eval "$ac_compile") 2>conftest.er1
20571   ac_status=$?
20572   grep -v '^ *+' conftest.er1 >conftest.err
20573   rm -f conftest.er1
20574   cat conftest.err >&5
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); } && {
20577          test -z "$ac_c_werror_flag" ||
20578          test ! -s conftest.err
20579        } && test -s conftest.$ac_objext; then
20580
20581             { echo "$as_me:$LINENO: result: yes" >&5
20582 echo "${ECHO_T}yes" >&6; }
20583             K4LIBS="${K4LIBS} -lcom_err"
20584             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20585 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20586 if test "${ac_cv_lib_roken_main+set}" = set; then
20587   echo $ECHO_N "(cached) $ECHO_C" >&6
20588 else
20589   ac_check_lib_save_LIBS=$LIBS
20590 LIBS="-lroken  $LIBS"
20591 cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h.  */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h.  */
20597
20598
20599 int
20600 main ()
20601 {
20602 return main ();
20603   ;
20604   return 0;
20605 }
20606 _ACEOF
20607 rm -f conftest.$ac_objext conftest$ac_exeext
20608 if { (ac_try="$ac_link"
20609 case "(($ac_try" in
20610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611   *) ac_try_echo=$ac_try;;
20612 esac
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614   (eval "$ac_link") 2>conftest.er1
20615   ac_status=$?
20616   grep -v '^ *+' conftest.er1 >conftest.err
20617   rm -f conftest.er1
20618   cat conftest.err >&5
20619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620   (exit $ac_status); } && {
20621          test -z "$ac_c_werror_flag" ||
20622          test ! -s conftest.err
20623        } && test -s conftest$ac_exeext &&
20624        $as_test_x conftest$ac_exeext; then
20625   ac_cv_lib_roken_main=yes
20626 else
20627   echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20629
20630         ac_cv_lib_roken_main=no
20631 fi
20632
20633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20634       conftest$ac_exeext conftest.$ac_ext
20635 LIBS=$ac_check_lib_save_LIBS
20636 fi
20637 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
20638 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
20639 if test $ac_cv_lib_roken_main = yes; then
20640   K4LIBS="${K4LIBS} -lroken"
20641 fi
20642
20643
20644 else
20645   echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648
20649             { echo "$as_me:$LINENO: result: no" >&5
20650 echo "${ECHO_T}no" >&6; }
20651
20652
20653 fi
20654
20655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20656                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
20657 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
20658 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
20659 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20660   echo $ECHO_N "(cached) $ECHO_C" >&6
20661 else
20662   ac_check_lib_save_LIBS=$LIBS
20663 LIBS="-lkrb $K4LIBS $LIBS"
20664 cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670
20671
20672 int
20673 main ()
20674 {
20675 return main ();
20676   ;
20677   return 0;
20678 }
20679 _ACEOF
20680 rm -f conftest.$ac_objext conftest$ac_exeext
20681 if { (ac_try="$ac_link"
20682 case "(($ac_try" in
20683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684   *) ac_try_echo=$ac_try;;
20685 esac
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687   (eval "$ac_link") 2>conftest.er1
20688   ac_status=$?
20689   grep -v '^ *+' conftest.er1 >conftest.err
20690   rm -f conftest.er1
20691   cat conftest.err >&5
20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); } && {
20694          test -z "$ac_c_werror_flag" ||
20695          test ! -s conftest.err
20696        } && test -s conftest$ac_exeext &&
20697        $as_test_x conftest$ac_exeext; then
20698   eval "$as_ac_Lib=yes"
20699 else
20700   echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20702
20703         eval "$as_ac_Lib=no"
20704 fi
20705
20706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20707       conftest$ac_exeext conftest.$ac_ext
20708 LIBS=$ac_check_lib_save_LIBS
20709 fi
20710 ac_res=`eval echo '${'$as_ac_Lib'}'`
20711                { echo "$as_me:$LINENO: result: $ac_res" >&5
20712 echo "${ECHO_T}$ac_res" >&6; }
20713 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20714   K4LIBS="-lkrb $K4LIBS"
20715 else
20716
20717         as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
20718 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
20719 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
20720 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20721   echo $ECHO_N "(cached) $ECHO_C" >&6
20722 else
20723   ac_check_lib_save_LIBS=$LIBS
20724 LIBS="-lkrb4 $K4LIBS $LIBS"
20725 cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h.  */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h.  */
20731
20732
20733 int
20734 main ()
20735 {
20736 return main ();
20737   ;
20738   return 0;
20739 }
20740 _ACEOF
20741 rm -f conftest.$ac_objext conftest$ac_exeext
20742 if { (ac_try="$ac_link"
20743 case "(($ac_try" in
20744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745   *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748   (eval "$ac_link") 2>conftest.er1
20749   ac_status=$?
20750   grep -v '^ *+' conftest.er1 >conftest.err
20751   rm -f conftest.er1
20752   cat conftest.err >&5
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); } && {
20755          test -z "$ac_c_werror_flag" ||
20756          test ! -s conftest.err
20757        } && test -s conftest$ac_exeext &&
20758        $as_test_x conftest$ac_exeext; then
20759   eval "$as_ac_Lib=yes"
20760 else
20761   echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20763
20764         eval "$as_ac_Lib=no"
20765 fi
20766
20767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20768       conftest$ac_exeext conftest.$ac_ext
20769 LIBS=$ac_check_lib_save_LIBS
20770 fi
20771 ac_res=`eval echo '${'$as_ac_Lib'}'`
20772                { echo "$as_me:$LINENO: result: $ac_res" >&5
20773 echo "${ECHO_T}$ac_res" >&6; }
20774 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20775   K4LIBS="-lkrb4 $K4LIBS"
20776 else
20777   K4LIBS="-lkrb $K4LIBS"
20778             { 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
20779 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;}
20780
20781 fi
20782
20783
20784 fi
20785
20786     LDFLAGS="$O_LDFLAGS"
20787     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
20788     AUTH_OBJS="$AUTH_OBJS kerb4.o"
20789 fi
20790
20791 if test ${with_kerb5-'no'} != "no"; then
20792     # Extract the first word of "krb5-config", so it can be a program name with args.
20793 set dummy krb5-config; ac_word=$2
20794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20796 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
20797   echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799   if test -n "$KRB5CONFIG"; then
20800   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
20801 else
20802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20803 for as_dir in $PATH
20804 do
20805   IFS=$as_save_IFS
20806   test -z "$as_dir" && as_dir=.
20807   for ac_exec_ext in '' $ac_executable_extensions; do
20808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20809     ac_cv_prog_KRB5CONFIG="yes"
20810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20811     break 2
20812   fi
20813 done
20814 done
20815 IFS=$as_save_IFS
20816
20817   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
20818 fi
20819 fi
20820 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
20821 if test -n "$KRB5CONFIG"; then
20822   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
20823 echo "${ECHO_T}$KRB5CONFIG" >&6; }
20824 else
20825   { echo "$as_me:$LINENO: result: no" >&5
20826 echo "${ECHO_T}no" >&6; }
20827 fi
20828
20829
20830     if test -n "$KRB5CONFIG"; then
20831         cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_KERB5 1
20833 _ACEOF
20834
20835         AUTH_OBJS="$AUTH_OBJS kerb5.o"
20836         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
20837         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
20838                                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20839 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20840         cat >conftest.$ac_ext <<_ACEOF
20841 /* confdefs.h.  */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h.  */
20846 #include <krb5.h>
20847 int
20848 main ()
20849 {
20850 const char *tmp = heimdal_version;
20851   ;
20852   return 0;
20853 }
20854 _ACEOF
20855 rm -f conftest.$ac_objext
20856 if { (ac_try="$ac_compile"
20857 case "(($ac_try" in
20858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859   *) ac_try_echo=$ac_try;;
20860 esac
20861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862   (eval "$ac_compile") 2>conftest.er1
20863   ac_status=$?
20864   grep -v '^ *+' conftest.er1 >conftest.err
20865   rm -f conftest.er1
20866   cat conftest.err >&5
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); } && {
20869          test -z "$ac_c_werror_flag" ||
20870          test ! -s conftest.err
20871        } && test -s conftest.$ac_objext; then
20872
20873                 { echo "$as_me:$LINENO: result: yes" >&5
20874 echo "${ECHO_T}yes" >&6; }
20875                 cat >>confdefs.h <<\_ACEOF
20876 #define HAVE_HEIMDAL 1
20877 _ACEOF
20878
20879
20880 else
20881   echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20883
20884
20885                 { echo "$as_me:$LINENO: result: no" >&5
20886 echo "${ECHO_T}no" >&6; }
20887
20888
20889 fi
20890
20891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20892     fi
20893 fi
20894 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
20895     cat >>confdefs.h <<\_ACEOF
20896 #define HAVE_KERB5 1
20897 _ACEOF
20898
20899                 if test "$with_kerb5" = "yes"; then
20900         found=no
20901         O_CPPFLAGS="$CPPFLAGS"
20902         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
20903             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20904             cat >conftest.$ac_ext <<_ACEOF
20905 #include <krb5.h>
20906 _ACEOF
20907 if { (ac_try="$ac_cpp conftest.$ac_ext"
20908 case "(($ac_try" in
20909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910   *) ac_try_echo=$ac_try;;
20911 esac
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20914   ac_status=$?
20915   grep -v '^ *+' conftest.er1 >conftest.err
20916   rm -f conftest.er1
20917   cat conftest.err >&5
20918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919   (exit $ac_status); } >/dev/null && {
20920          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20921          test ! -s conftest.err
20922        }; then
20923   found=yes; break
20924 else
20925   echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928
20929 fi
20930
20931 rm -f conftest.err conftest.$ac_ext
20932         done
20933         if test X"$found" = X"no"; then
20934             CPPFLAGS="$O_CPPFLAGS"
20935             { 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
20936 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;}
20937         fi
20938     else
20939
20940     if test X"$with_rpath" = X"yes"; then
20941         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
20942     else
20943         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
20944     fi
20945     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20946         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
20947     fi
20948
20949         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
20950     fi
20951
20952                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20953 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20954     cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h.  */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h.  */
20960 #include <krb5.h>
20961 int
20962 main ()
20963 {
20964 const char *tmp = heimdal_version;
20965   ;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest.$ac_objext
20970 if { (ac_try="$ac_compile"
20971 case "(($ac_try" in
20972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973   *) ac_try_echo=$ac_try;;
20974 esac
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976   (eval "$ac_compile") 2>conftest.er1
20977   ac_status=$?
20978   grep -v '^ *+' conftest.er1 >conftest.err
20979   rm -f conftest.er1
20980   cat conftest.err >&5
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); } && {
20983          test -z "$ac_c_werror_flag" ||
20984          test ! -s conftest.err
20985        } && test -s conftest.$ac_objext; then
20986
20987             { echo "$as_me:$LINENO: result: yes" >&5
20988 echo "${ECHO_T}yes" >&6; }
20989             cat >>confdefs.h <<\_ACEOF
20990 #define HAVE_HEIMDAL 1
20991 _ACEOF
20992
20993             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
20994             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20995 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20996 if test "${ac_cv_lib_roken_main+set}" = set; then
20997   echo $ECHO_N "(cached) $ECHO_C" >&6
20998 else
20999   ac_check_lib_save_LIBS=$LIBS
21000 LIBS="-lroken  $LIBS"
21001 cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007
21008
21009 int
21010 main ()
21011 {
21012 return main ();
21013   ;
21014   return 0;
21015 }
21016 _ACEOF
21017 rm -f conftest.$ac_objext conftest$ac_exeext
21018 if { (ac_try="$ac_link"
21019 case "(($ac_try" in
21020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021   *) ac_try_echo=$ac_try;;
21022 esac
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024   (eval "$ac_link") 2>conftest.er1
21025   ac_status=$?
21026   grep -v '^ *+' conftest.er1 >conftest.err
21027   rm -f conftest.er1
21028   cat conftest.err >&5
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); } && {
21031          test -z "$ac_c_werror_flag" ||
21032          test ! -s conftest.err
21033        } && test -s conftest$ac_exeext &&
21034        $as_test_x conftest$ac_exeext; then
21035   ac_cv_lib_roken_main=yes
21036 else
21037   echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040         ac_cv_lib_roken_main=no
21041 fi
21042
21043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21044       conftest$ac_exeext conftest.$ac_ext
21045 LIBS=$ac_check_lib_save_LIBS
21046 fi
21047 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21048 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21049 if test $ac_cv_lib_roken_main = yes; then
21050   SUDO_LIBS="${SUDO_LIBS} -lroken"
21051 fi
21052
21053
21054 else
21055   echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21057
21058
21059             { echo "$as_me:$LINENO: result: no" >&5
21060 echo "${ECHO_T}no" >&6; }
21061             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21062
21063
21064 fi
21065
21066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21067     AUTH_OBJS="$AUTH_OBJS kerb5.o"
21068     _LIBS="$LIBS"
21069     LIBS="${LIBS} ${SUDO_LIBS}"
21070
21071
21072 for ac_func in krb5_verify_user krb5_init_secure_context
21073 do
21074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21078   echo $ECHO_N "(cached) $ECHO_C" >&6
21079 else
21080   cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h.  */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h.  */
21086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21088 #define $ac_func innocuous_$ac_func
21089
21090 /* System header to define __stub macros and hopefully few prototypes,
21091     which can conflict with char $ac_func (); below.
21092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21093     <limits.h> exists even on freestanding compilers.  */
21094
21095 #ifdef __STDC__
21096 # include <limits.h>
21097 #else
21098 # include <assert.h>
21099 #endif
21100
21101 #undef $ac_func
21102
21103 /* Override any GCC internal prototype to avoid an error.
21104    Use char because int might match the return type of a GCC
21105    builtin and then its argument prototype would still apply.  */
21106 #ifdef __cplusplus
21107 extern "C"
21108 #endif
21109 char $ac_func ();
21110 /* The GNU C library defines this for functions which it implements
21111     to always fail with ENOSYS.  Some functions are actually named
21112     something starting with __ and the normal name is an alias.  */
21113 #if defined __stub_$ac_func || defined __stub___$ac_func
21114 choke me
21115 #endif
21116
21117 int
21118 main ()
21119 {
21120 return $ac_func ();
21121   ;
21122   return 0;
21123 }
21124 _ACEOF
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129   *) ac_try_echo=$ac_try;;
21130 esac
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132   (eval "$ac_link") 2>conftest.er1
21133   ac_status=$?
21134   grep -v '^ *+' conftest.er1 >conftest.err
21135   rm -f conftest.er1
21136   cat conftest.err >&5
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); } && {
21139          test -z "$ac_c_werror_flag" ||
21140          test ! -s conftest.err
21141        } && test -s conftest$ac_exeext &&
21142        $as_test_x conftest$ac_exeext; then
21143   eval "$as_ac_var=yes"
21144 else
21145   echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148         eval "$as_ac_var=no"
21149 fi
21150
21151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21152       conftest$ac_exeext conftest.$ac_ext
21153 fi
21154 ac_res=`eval echo '${'$as_ac_var'}'`
21155                { echo "$as_me:$LINENO: result: $ac_res" >&5
21156 echo "${ECHO_T}$ac_res" >&6; }
21157 if test `eval echo '${'$as_ac_var'}'` = yes; then
21158   cat >>confdefs.h <<_ACEOF
21159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21160 _ACEOF
21161
21162 fi
21163 done
21164
21165     LIBS="$_LIBS"
21166 fi
21167
21168 if test ${with_AFS-'no'} = "yes"; then
21169
21170     # looks like the "standard" place for AFS libs is /usr/afsws/lib
21171     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21172     for i in $AFSLIBDIRS; do
21173         if test -d ${i}; then
21174
21175     if test X"$with_rpath" = X"yes"; then
21176         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21177     else
21178         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21179     fi
21180     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21181         blibpath_add="${blibpath_add}:$i"
21182     fi
21183
21184             FOUND_AFSLIBDIR=true
21185         fi
21186     done
21187     if test -z "$FOUND_AFSLIBDIR"; then
21188         { 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
21189 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;}
21190     fi
21191
21192     # Order is important here.  Note that we build AFS_LIBS from right to left
21193     # since AFS_LIBS may be initialized with BSD compat libs that must go last
21194     AFS_LIBS="-laudit ${AFS_LIBS}"
21195     for i in $AFSLIBDIRS; do
21196         if test -f ${i}/util.a; then
21197             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21198             FOUND_UTIL_A=true
21199             break;
21200         fi
21201     done
21202     if test -z "$FOUND_UTIL_A"; then
21203         AFS_LIBS="-lutil ${AFS_LIBS}"
21204     fi
21205     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21206
21207     # AFS includes may live in /usr/include on some machines...
21208     for i in /usr/afsws/include; do
21209         if test -d ${i}; then
21210             CPPFLAGS="${CPPFLAGS} -I${i}"
21211             FOUND_AFSINCDIR=true
21212         fi
21213     done
21214
21215     if test -z "$FOUND_AFSLIBDIR"; then
21216         { 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
21217 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;}
21218     fi
21219
21220     AUTH_OBJS="$AUTH_OBJS afs.o"
21221 fi
21222
21223 if test ${with_DCE-'no'} = "yes"; then
21224     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21225     SUDO_LIBS="${SUDO_LIBS} -ldce"
21226     AUTH_OBJS="$AUTH_OBJS dce.o"
21227 fi
21228
21229 if test ${with_skey-'no'} = "yes"; then
21230     O_LDFLAGS="$LDFLAGS"
21231     if test "$with_skey" != "yes"; then
21232         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21233
21234     if test X"$with_rpath" = X"yes"; then
21235         LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21236     else
21237         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21238     fi
21239     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21240         blibpath_add="${blibpath_add}:${with_skey}/lib"
21241     fi
21242
21243
21244     if test X"$with_rpath" = X"yes"; then
21245         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21246     else
21247         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21248     fi
21249     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21250         blibpath_add="${blibpath_add}:${with_skey}/lib"
21251     fi
21252
21253         cat >conftest.$ac_ext <<_ACEOF
21254 #include <skey.h>
21255 _ACEOF
21256 if { (ac_try="$ac_cpp conftest.$ac_ext"
21257 case "(($ac_try" in
21258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259   *) ac_try_echo=$ac_try;;
21260 esac
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21263   ac_status=$?
21264   grep -v '^ *+' conftest.er1 >conftest.err
21265   rm -f conftest.er1
21266   cat conftest.err >&5
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } >/dev/null && {
21269          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21270          test ! -s conftest.err
21271        }; then
21272   found=yes
21273 else
21274   echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21276
21277   found=no
21278 fi
21279
21280 rm -f conftest.err conftest.$ac_ext
21281     else
21282         found=no
21283         O_CPPFLAGS="$CPPFLAGS"
21284         for dir in "" "/usr/local" "/usr/contrib"; do
21285             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21286             cat >conftest.$ac_ext <<_ACEOF
21287 #include <skey.h>
21288 _ACEOF
21289 if { (ac_try="$ac_cpp conftest.$ac_ext"
21290 case "(($ac_try" in
21291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292   *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21296   ac_status=$?
21297   grep -v '^ *+' conftest.er1 >conftest.err
21298   rm -f conftest.er1
21299   cat conftest.err >&5
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); } >/dev/null && {
21302          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21303          test ! -s conftest.err
21304        }; then
21305   found=yes; break
21306 else
21307   echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310
21311 fi
21312
21313 rm -f conftest.err conftest.$ac_ext
21314         done
21315         if test "$found" = "no" -o -z "$dir"; then
21316             CPPFLAGS="$O_CPPFLAGS"
21317         else
21318
21319     if test X"$with_rpath" = X"yes"; then
21320         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21321     else
21322         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21323     fi
21324     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21325         blibpath_add="${blibpath_add}:${dir}/lib"
21326     fi
21327
21328
21329     if test X"$with_rpath" = X"yes"; then
21330         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21331     else
21332         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21333     fi
21334     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21335         blibpath_add="${blibpath_add}:${dir}/lib"
21336     fi
21337
21338         fi
21339     fi
21340     if test "$found" = "no"; then
21341         { 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
21342 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;}
21343     fi
21344     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21345 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21346 if test "${ac_cv_lib_skey_main+set}" = set; then
21347   echo $ECHO_N "(cached) $ECHO_C" >&6
21348 else
21349   ac_check_lib_save_LIBS=$LIBS
21350 LIBS="-lskey  $LIBS"
21351 cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h.  */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h.  */
21357
21358
21359 int
21360 main ()
21361 {
21362 return main ();
21363   ;
21364   return 0;
21365 }
21366 _ACEOF
21367 rm -f conftest.$ac_objext conftest$ac_exeext
21368 if { (ac_try="$ac_link"
21369 case "(($ac_try" in
21370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371   *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374   (eval "$ac_link") 2>conftest.er1
21375   ac_status=$?
21376   grep -v '^ *+' conftest.er1 >conftest.err
21377   rm -f conftest.er1
21378   cat conftest.err >&5
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); } && {
21381          test -z "$ac_c_werror_flag" ||
21382          test ! -s conftest.err
21383        } && test -s conftest$ac_exeext &&
21384        $as_test_x conftest$ac_exeext; then
21385   ac_cv_lib_skey_main=yes
21386 else
21387   echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21389
21390         ac_cv_lib_skey_main=no
21391 fi
21392
21393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21394       conftest$ac_exeext conftest.$ac_ext
21395 LIBS=$ac_check_lib_save_LIBS
21396 fi
21397 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21398 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21399 if test $ac_cv_lib_skey_main = yes; then
21400   found=yes
21401 else
21402   { 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
21403 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;}
21404 fi
21405
21406     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21407 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21408 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21409   echo $ECHO_N "(cached) $ECHO_C" >&6
21410 else
21411   ac_check_lib_save_LIBS=$LIBS
21412 LIBS="-lskey  $LIBS"
21413 cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h.  */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h.  */
21419
21420 /* Override any GCC internal prototype to avoid an error.
21421    Use char because int might match the return type of a GCC
21422    builtin and then its argument prototype would still apply.  */
21423 #ifdef __cplusplus
21424 extern "C"
21425 #endif
21426 char skeyaccess ();
21427 int
21428 main ()
21429 {
21430 return skeyaccess ();
21431   ;
21432   return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest.$ac_objext conftest$ac_exeext
21436 if { (ac_try="$ac_link"
21437 case "(($ac_try" in
21438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439   *) ac_try_echo=$ac_try;;
21440 esac
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442   (eval "$ac_link") 2>conftest.er1
21443   ac_status=$?
21444   grep -v '^ *+' conftest.er1 >conftest.err
21445   rm -f conftest.er1
21446   cat conftest.err >&5
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); } && {
21449          test -z "$ac_c_werror_flag" ||
21450          test ! -s conftest.err
21451        } && test -s conftest$ac_exeext &&
21452        $as_test_x conftest$ac_exeext; then
21453   ac_cv_lib_skey_skeyaccess=yes
21454 else
21455   echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458         ac_cv_lib_skey_skeyaccess=no
21459 fi
21460
21461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21462       conftest$ac_exeext conftest.$ac_ext
21463 LIBS=$ac_check_lib_save_LIBS
21464 fi
21465 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21466 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21467 if test $ac_cv_lib_skey_skeyaccess = yes; then
21468   cat >>confdefs.h <<\_ACEOF
21469 #define HAVE_SKEYACCESS 1
21470 _ACEOF
21471
21472 fi
21473
21474     LDFLAGS="$O_LDFLAGS"
21475     SUDO_LIBS="${SUDO_LIBS} -lskey"
21476     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21477 fi
21478
21479 if test ${with_opie-'no'} = "yes"; then
21480     O_LDFLAGS="$LDFLAGS"
21481     if test "$with_opie" != "yes"; then
21482         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
21483
21484     if test X"$with_rpath" = X"yes"; then
21485         LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21486     else
21487         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
21488     fi
21489     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21490         blibpath_add="${blibpath_add}:${with_opie}/lib"
21491     fi
21492
21493
21494     if test X"$with_rpath" = X"yes"; then
21495         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21496     else
21497         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
21498     fi
21499     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21500         blibpath_add="${blibpath_add}:${with_opie}/lib"
21501     fi
21502
21503         cat >conftest.$ac_ext <<_ACEOF
21504 #include <opie.h>
21505 _ACEOF
21506 if { (ac_try="$ac_cpp conftest.$ac_ext"
21507 case "(($ac_try" in
21508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509   *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21513   ac_status=$?
21514   grep -v '^ *+' conftest.er1 >conftest.err
21515   rm -f conftest.er1
21516   cat conftest.err >&5
21517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518   (exit $ac_status); } >/dev/null && {
21519          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21520          test ! -s conftest.err
21521        }; then
21522   found=yes
21523 else
21524   echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21526
21527   found=no
21528 fi
21529
21530 rm -f conftest.err conftest.$ac_ext
21531     else
21532         found=no
21533         O_CPPFLAGS="$CPPFLAGS"
21534         for dir in "" "/usr/local" "/usr/contrib"; do
21535             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21536             cat >conftest.$ac_ext <<_ACEOF
21537 #include <opie.h>
21538 _ACEOF
21539 if { (ac_try="$ac_cpp conftest.$ac_ext"
21540 case "(($ac_try" in
21541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542   *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21546   ac_status=$?
21547   grep -v '^ *+' conftest.er1 >conftest.err
21548   rm -f conftest.er1
21549   cat conftest.err >&5
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); } >/dev/null && {
21552          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21553          test ! -s conftest.err
21554        }; then
21555   found=yes; break
21556 else
21557   echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560
21561 fi
21562
21563 rm -f conftest.err conftest.$ac_ext
21564         done
21565         if test "$found" = "no" -o -z "$dir"; then
21566             CPPFLAGS="$O_CPPFLAGS"
21567         else
21568
21569     if test X"$with_rpath" = X"yes"; then
21570         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21571     else
21572         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21573     fi
21574     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21575         blibpath_add="${blibpath_add}:${dir}/lib"
21576     fi
21577
21578
21579     if test X"$with_rpath" = X"yes"; then
21580         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21581     else
21582         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21583     fi
21584     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21585         blibpath_add="${blibpath_add}:${dir}/lib"
21586     fi
21587
21588         fi
21589     fi
21590     if test "$found" = "no"; then
21591         { 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
21592 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;}
21593     fi
21594     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
21595 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
21596 if test "${ac_cv_lib_opie_main+set}" = set; then
21597   echo $ECHO_N "(cached) $ECHO_C" >&6
21598 else
21599   ac_check_lib_save_LIBS=$LIBS
21600 LIBS="-lopie  $LIBS"
21601 cat >conftest.$ac_ext <<_ACEOF
21602 /* confdefs.h.  */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h.  */
21607
21608
21609 int
21610 main ()
21611 {
21612 return main ();
21613   ;
21614   return 0;
21615 }
21616 _ACEOF
21617 rm -f conftest.$ac_objext conftest$ac_exeext
21618 if { (ac_try="$ac_link"
21619 case "(($ac_try" in
21620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621   *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624   (eval "$ac_link") 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } && {
21631          test -z "$ac_c_werror_flag" ||
21632          test ! -s conftest.err
21633        } && test -s conftest$ac_exeext &&
21634        $as_test_x conftest$ac_exeext; then
21635   ac_cv_lib_opie_main=yes
21636 else
21637   echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21639
21640         ac_cv_lib_opie_main=no
21641 fi
21642
21643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21644       conftest$ac_exeext conftest.$ac_ext
21645 LIBS=$ac_check_lib_save_LIBS
21646 fi
21647 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
21648 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
21649 if test $ac_cv_lib_opie_main = yes; then
21650   found=yes
21651 else
21652   { 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
21653 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;}
21654 fi
21655
21656     LDFLAGS="$O_LDFLAGS"
21657     SUDO_LIBS="${SUDO_LIBS} -lopie"
21658     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21659 fi
21660
21661 if test ${with_passwd-'no'} != "no"; then
21662                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
21663         { echo "$as_me:$LINENO: checking for library containing crypt" >&5
21664 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
21665 if test "${ac_cv_search_crypt+set}" = set; then
21666   echo $ECHO_N "(cached) $ECHO_C" >&6
21667 else
21668   ac_func_search_save_LIBS=$LIBS
21669 cat >conftest.$ac_ext <<_ACEOF
21670 /* confdefs.h.  */
21671 _ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h.  */
21675
21676 /* Override any GCC internal prototype to avoid an error.
21677    Use char because int might match the return type of a GCC
21678    builtin and then its argument prototype would still apply.  */
21679 #ifdef __cplusplus
21680 extern "C"
21681 #endif
21682 char crypt ();
21683 int
21684 main ()
21685 {
21686 return crypt ();
21687   ;
21688   return 0;
21689 }
21690 _ACEOF
21691 for ac_lib in '' crypt crypt_d ufc; do
21692   if test -z "$ac_lib"; then
21693     ac_res="none required"
21694   else
21695     ac_res=-l$ac_lib
21696     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21697   fi
21698   rm -f conftest.$ac_objext conftest$ac_exeext
21699 if { (ac_try="$ac_link"
21700 case "(($ac_try" in
21701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702   *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705   (eval "$ac_link") 2>conftest.er1
21706   ac_status=$?
21707   grep -v '^ *+' conftest.er1 >conftest.err
21708   rm -f conftest.er1
21709   cat conftest.err >&5
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); } && {
21712          test -z "$ac_c_werror_flag" ||
21713          test ! -s conftest.err
21714        } && test -s conftest$ac_exeext &&
21715        $as_test_x conftest$ac_exeext; then
21716   ac_cv_search_crypt=$ac_res
21717 else
21718   echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721
21722 fi
21723
21724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21725       conftest$ac_exeext
21726   if test "${ac_cv_search_crypt+set}" = set; then
21727   break
21728 fi
21729 done
21730 if test "${ac_cv_search_crypt+set}" = set; then
21731   :
21732 else
21733   ac_cv_search_crypt=no
21734 fi
21735 rm conftest.$ac_ext
21736 LIBS=$ac_func_search_save_LIBS
21737 fi
21738 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
21739 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
21740 ac_res=$ac_cv_search_crypt
21741 if test "$ac_res" != no; then
21742   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21743   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
21744 fi
21745
21746     fi
21747
21748     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
21749         _LIBS="$LIBS"
21750         LIBS="$LIBS $shadow_libs"
21751         found=no
21752
21753 for ac_func in $shadow_funcs
21754 do
21755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21759   echo $ECHO_N "(cached) $ECHO_C" >&6
21760 else
21761   cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21769 #define $ac_func innocuous_$ac_func
21770
21771 /* System header to define __stub macros and hopefully few prototypes,
21772     which can conflict with char $ac_func (); below.
21773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21774     <limits.h> exists even on freestanding compilers.  */
21775
21776 #ifdef __STDC__
21777 # include <limits.h>
21778 #else
21779 # include <assert.h>
21780 #endif
21781
21782 #undef $ac_func
21783
21784 /* Override any GCC internal prototype to avoid an error.
21785    Use char because int might match the return type of a GCC
21786    builtin and then its argument prototype would still apply.  */
21787 #ifdef __cplusplus
21788 extern "C"
21789 #endif
21790 char $ac_func ();
21791 /* The GNU C library defines this for functions which it implements
21792     to always fail with ENOSYS.  Some functions are actually named
21793     something starting with __ and the normal name is an alias.  */
21794 #if defined __stub_$ac_func || defined __stub___$ac_func
21795 choke me
21796 #endif
21797
21798 int
21799 main ()
21800 {
21801 return $ac_func ();
21802   ;
21803   return 0;
21804 }
21805 _ACEOF
21806 rm -f conftest.$ac_objext conftest$ac_exeext
21807 if { (ac_try="$ac_link"
21808 case "(($ac_try" in
21809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810   *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813   (eval "$ac_link") 2>conftest.er1
21814   ac_status=$?
21815   grep -v '^ *+' conftest.er1 >conftest.err
21816   rm -f conftest.er1
21817   cat conftest.err >&5
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); } && {
21820          test -z "$ac_c_werror_flag" ||
21821          test ! -s conftest.err
21822        } && test -s conftest$ac_exeext &&
21823        $as_test_x conftest$ac_exeext; then
21824   eval "$as_ac_var=yes"
21825 else
21826   echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21828
21829         eval "$as_ac_var=no"
21830 fi
21831
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833       conftest$ac_exeext conftest.$ac_ext
21834 fi
21835 ac_res=`eval echo '${'$as_ac_var'}'`
21836                { echo "$as_me:$LINENO: result: $ac_res" >&5
21837 echo "${ECHO_T}$ac_res" >&6; }
21838 if test `eval echo '${'$as_ac_var'}'` = yes; then
21839   cat >>confdefs.h <<_ACEOF
21840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21841 _ACEOF
21842  found=yes
21843 fi
21844 done
21845
21846         if test "$found" = "yes"; then
21847             SUDO_LIBS="$SUDO_LIBS $shadow_libs"
21848         elif test -n "$shadow_libs_optional"; then
21849             LIBS="$LIBS $shadow_libs_optional"
21850
21851 for ac_func in $shadow_funcs
21852 do
21853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21857   echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859   cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h.  */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h.  */
21865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21867 #define $ac_func innocuous_$ac_func
21868
21869 /* System header to define __stub macros and hopefully few prototypes,
21870     which can conflict with char $ac_func (); below.
21871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21872     <limits.h> exists even on freestanding compilers.  */
21873
21874 #ifdef __STDC__
21875 # include <limits.h>
21876 #else
21877 # include <assert.h>
21878 #endif
21879
21880 #undef $ac_func
21881
21882 /* Override any GCC internal prototype to avoid an error.
21883    Use char because int might match the return type of a GCC
21884    builtin and then its argument prototype would still apply.  */
21885 #ifdef __cplusplus
21886 extern "C"
21887 #endif
21888 char $ac_func ();
21889 /* The GNU C library defines this for functions which it implements
21890     to always fail with ENOSYS.  Some functions are actually named
21891     something starting with __ and the normal name is an alias.  */
21892 #if defined __stub_$ac_func || defined __stub___$ac_func
21893 choke me
21894 #endif
21895
21896 int
21897 main ()
21898 {
21899 return $ac_func ();
21900   ;
21901   return 0;
21902 }
21903 _ACEOF
21904 rm -f conftest.$ac_objext conftest$ac_exeext
21905 if { (ac_try="$ac_link"
21906 case "(($ac_try" in
21907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908   *) ac_try_echo=$ac_try;;
21909 esac
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911   (eval "$ac_link") 2>conftest.er1
21912   ac_status=$?
21913   grep -v '^ *+' conftest.er1 >conftest.err
21914   rm -f conftest.er1
21915   cat conftest.err >&5
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); } && {
21918          test -z "$ac_c_werror_flag" ||
21919          test ! -s conftest.err
21920        } && test -s conftest$ac_exeext &&
21921        $as_test_x conftest$ac_exeext; then
21922   eval "$as_ac_var=yes"
21923 else
21924   echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21926
21927         eval "$as_ac_var=no"
21928 fi
21929
21930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21931       conftest$ac_exeext conftest.$ac_ext
21932 fi
21933 ac_res=`eval echo '${'$as_ac_var'}'`
21934                { echo "$as_me:$LINENO: result: $ac_res" >&5
21935 echo "${ECHO_T}$ac_res" >&6; }
21936 if test `eval echo '${'$as_ac_var'}'` = yes; then
21937   cat >>confdefs.h <<_ACEOF
21938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21939 _ACEOF
21940  found=yes
21941 fi
21942 done
21943
21944             if test "$found" = "yes"; then
21945                 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
21946             fi
21947         fi
21948         if test "$found" = "yes"; then
21949             case "$shadow_funcs" in
21950                 *getprpwnam*) SECUREWARE=1;;
21951             esac
21952             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
21953         else
21954             LIBS="$_LIBS"
21955         fi
21956         CHECKSHADOW=false
21957     fi
21958     if test "$CHECKSHADOW" = "true"; then
21959         { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
21960 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
21961 if test "${ac_cv_search_getspnam+set}" = set; then
21962   echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21964   ac_func_search_save_LIBS=$LIBS
21965 cat >conftest.$ac_ext <<_ACEOF
21966 /* confdefs.h.  */
21967 _ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h.  */
21971
21972 /* Override any GCC internal prototype to avoid an error.
21973    Use char because int might match the return type of a GCC
21974    builtin and then its argument prototype would still apply.  */
21975 #ifdef __cplusplus
21976 extern "C"
21977 #endif
21978 char getspnam ();
21979 int
21980 main ()
21981 {
21982 return getspnam ();
21983   ;
21984   return 0;
21985 }
21986 _ACEOF
21987 for ac_lib in '' gen; do
21988   if test -z "$ac_lib"; then
21989     ac_res="none required"
21990   else
21991     ac_res=-l$ac_lib
21992     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21993   fi
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_search_getspnam=$ac_res
22013 else
22014   echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22016
22017
22018 fi
22019
22020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22021       conftest$ac_exeext
22022   if test "${ac_cv_search_getspnam+set}" = set; then
22023   break
22024 fi
22025 done
22026 if test "${ac_cv_search_getspnam+set}" = set; then
22027   :
22028 else
22029   ac_cv_search_getspnam=no
22030 fi
22031 rm conftest.$ac_ext
22032 LIBS=$ac_func_search_save_LIBS
22033 fi
22034 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22035 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22036 ac_res=$ac_cv_search_getspnam
22037 if test "$ac_res" != no; then
22038   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22039   cat >>confdefs.h <<\_ACEOF
22040 #define HAVE_GETSPNAM 1
22041 _ACEOF
22042  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22043 fi
22044
22045     fi
22046     if test "$CHECKSHADOW" = "true"; then
22047         { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22048 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22049 if test "${ac_cv_search_getprpwnam+set}" = set; then
22050   echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052   ac_func_search_save_LIBS=$LIBS
22053 cat >conftest.$ac_ext <<_ACEOF
22054 /* confdefs.h.  */
22055 _ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h.  */
22059
22060 /* Override any GCC internal prototype to avoid an error.
22061    Use char because int might match the return type of a GCC
22062    builtin and then its argument prototype would still apply.  */
22063 #ifdef __cplusplus
22064 extern "C"
22065 #endif
22066 char getprpwnam ();
22067 int
22068 main ()
22069 {
22070 return getprpwnam ();
22071   ;
22072   return 0;
22073 }
22074 _ACEOF
22075 for ac_lib in '' sec security prot; do
22076   if test -z "$ac_lib"; then
22077     ac_res="none required"
22078   else
22079     ac_res=-l$ac_lib
22080     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22081   fi
22082   rm -f conftest.$ac_objext conftest$ac_exeext
22083 if { (ac_try="$ac_link"
22084 case "(($ac_try" in
22085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086   *) ac_try_echo=$ac_try;;
22087 esac
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089   (eval "$ac_link") 2>conftest.er1
22090   ac_status=$?
22091   grep -v '^ *+' conftest.er1 >conftest.err
22092   rm -f conftest.er1
22093   cat conftest.err >&5
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); } && {
22096          test -z "$ac_c_werror_flag" ||
22097          test ! -s conftest.err
22098        } && test -s conftest$ac_exeext &&
22099        $as_test_x conftest$ac_exeext; then
22100   ac_cv_search_getprpwnam=$ac_res
22101 else
22102   echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22104
22105
22106 fi
22107
22108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22109       conftest$ac_exeext
22110   if test "${ac_cv_search_getprpwnam+set}" = set; then
22111   break
22112 fi
22113 done
22114 if test "${ac_cv_search_getprpwnam+set}" = set; then
22115   :
22116 else
22117   ac_cv_search_getprpwnam=no
22118 fi
22119 rm conftest.$ac_ext
22120 LIBS=$ac_func_search_save_LIBS
22121 fi
22122 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22123 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22124 ac_res=$ac_cv_search_getprpwnam
22125 if test "$ac_res" != no; then
22126   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22127   cat >>confdefs.h <<\_ACEOF
22128 #define HAVE_GETPRPWNAM 1
22129 _ACEOF
22130  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22131 fi
22132
22133     fi
22134     if test -n "$SECUREWARE"; then
22135
22136
22137
22138 for ac_func in bigcrypt set_auth_parameters initprivs
22139 do
22140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22144   echo $ECHO_N "(cached) $ECHO_C" >&6
22145 else
22146   cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h.  */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h.  */
22152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22154 #define $ac_func innocuous_$ac_func
22155
22156 /* System header to define __stub macros and hopefully few prototypes,
22157     which can conflict with char $ac_func (); below.
22158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22159     <limits.h> exists even on freestanding compilers.  */
22160
22161 #ifdef __STDC__
22162 # include <limits.h>
22163 #else
22164 # include <assert.h>
22165 #endif
22166
22167 #undef $ac_func
22168
22169 /* Override any GCC internal prototype to avoid an error.
22170    Use char because int might match the return type of a GCC
22171    builtin and then its argument prototype would still apply.  */
22172 #ifdef __cplusplus
22173 extern "C"
22174 #endif
22175 char $ac_func ();
22176 /* The GNU C library defines this for functions which it implements
22177     to always fail with ENOSYS.  Some functions are actually named
22178     something starting with __ and the normal name is an alias.  */
22179 #if defined __stub_$ac_func || defined __stub___$ac_func
22180 choke me
22181 #endif
22182
22183 int
22184 main ()
22185 {
22186 return $ac_func ();
22187   ;
22188   return 0;
22189 }
22190 _ACEOF
22191 rm -f conftest.$ac_objext conftest$ac_exeext
22192 if { (ac_try="$ac_link"
22193 case "(($ac_try" in
22194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195   *) ac_try_echo=$ac_try;;
22196 esac
22197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22198   (eval "$ac_link") 2>conftest.er1
22199   ac_status=$?
22200   grep -v '^ *+' conftest.er1 >conftest.err
22201   rm -f conftest.er1
22202   cat conftest.err >&5
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); } && {
22205          test -z "$ac_c_werror_flag" ||
22206          test ! -s conftest.err
22207        } && test -s conftest$ac_exeext &&
22208        $as_test_x conftest$ac_exeext; then
22209   eval "$as_ac_var=yes"
22210 else
22211   echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22213
22214         eval "$as_ac_var=no"
22215 fi
22216
22217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22218       conftest$ac_exeext conftest.$ac_ext
22219 fi
22220 ac_res=`eval echo '${'$as_ac_var'}'`
22221                { echo "$as_me:$LINENO: result: $ac_res" >&5
22222 echo "${ECHO_T}$ac_res" >&6; }
22223 if test `eval echo '${'$as_ac_var'}'` = yes; then
22224   cat >>confdefs.h <<_ACEOF
22225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22226 _ACEOF
22227
22228 fi
22229 done
22230
22231         AUTH_OBJS="$AUTH_OBJS secureware.o"
22232     fi
22233 fi
22234
22235 if test ${with_ldap-'no'} != "no"; then
22236     _LDFLAGS="$LDFLAGS"
22237     if test "$with_ldap" != "yes"; then
22238
22239     if test X"$with_rpath" = X"yes"; then
22240         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22241     else
22242         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22243     fi
22244     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22245         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22246     fi
22247
22248
22249     if test X"$with_rpath" = X"yes"; then
22250         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22251     else
22252         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22253     fi
22254     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22255         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22256     fi
22257
22258         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22259         with_ldap=yes
22260     fi
22261     SUDO_OBJS="${SUDO_OBJS} ldap.o"
22262
22263     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22264 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22265     LDAP_LIBS=""
22266     _LIBS="$LIBS"
22267     found=no
22268     for l in -lldap -llber '-lssl -lcrypto'; do
22269         LIBS="${LIBS} $l"
22270         LDAP_LIBS="${LDAP_LIBS} $l"
22271         cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h.  */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h.  */
22277 #include <sys/types.h>
22278         #include <lber.h>
22279         #include <ldap.h>
22280 int
22281 main ()
22282 {
22283 (void)ldap_init(0, 0)
22284   ;
22285   return 0;
22286 }
22287 _ACEOF
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292   *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295   (eval "$ac_link") 2>conftest.er1
22296   ac_status=$?
22297   grep -v '^ *+' conftest.er1 >conftest.err
22298   rm -f conftest.er1
22299   cat conftest.err >&5
22300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); } && {
22302          test -z "$ac_c_werror_flag" ||
22303          test ! -s conftest.err
22304        } && test -s conftest$ac_exeext &&
22305        $as_test_x conftest$ac_exeext; then
22306   found=yes; break
22307 else
22308   echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22310
22311
22312 fi
22313
22314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22315       conftest$ac_exeext conftest.$ac_ext
22316     done
22317         if test "$found" = "no"; then
22318         LDAP_LIBS=" -lldap"
22319         { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22320 echo "${ECHO_T}not found, using -lldap" >&6; }
22321     else
22322         { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22323 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22324     fi
22325         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22326 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22327     cat >conftest.$ac_ext <<_ACEOF
22328 /* confdefs.h.  */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h.  */
22333 #include <sys/types.h>
22334     #include <ldap.h>
22335 int
22336 main ()
22337 {
22338 (void)ldap_init(0, 0)
22339   ;
22340   return 0;
22341 }
22342 _ACEOF
22343 rm -f conftest.$ac_objext conftest$ac_exeext
22344 if { (ac_try="$ac_link"
22345 case "(($ac_try" in
22346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347   *) ac_try_echo=$ac_try;;
22348 esac
22349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22350   (eval "$ac_link") 2>conftest.er1
22351   ac_status=$?
22352   grep -v '^ *+' conftest.er1 >conftest.err
22353   rm -f conftest.er1
22354   cat conftest.err >&5
22355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356   (exit $ac_status); } && {
22357          test -z "$ac_c_werror_flag" ||
22358          test ! -s conftest.err
22359        } && test -s conftest$ac_exeext &&
22360        $as_test_x conftest$ac_exeext; then
22361   { echo "$as_me:$LINENO: result: no" >&5
22362 echo "${ECHO_T}no" >&6; }
22363 else
22364   echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22366
22367
22368     { echo "$as_me:$LINENO: result: yes" >&5
22369 echo "${ECHO_T}yes" >&6; }
22370     cat >>confdefs.h <<\_ACEOF
22371 #define HAVE_LBER_H 1
22372 _ACEOF
22373
22374 fi
22375
22376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22377       conftest$ac_exeext conftest.$ac_ext
22378
22379
22380
22381 for ac_func in ldap_initialize ldap_start_tls_s
22382 do
22383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22387   echo $ECHO_N "(cached) $ECHO_C" >&6
22388 else
22389   cat >conftest.$ac_ext <<_ACEOF
22390 /* confdefs.h.  */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h.  */
22395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22397 #define $ac_func innocuous_$ac_func
22398
22399 /* System header to define __stub macros and hopefully few prototypes,
22400     which can conflict with char $ac_func (); below.
22401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22402     <limits.h> exists even on freestanding compilers.  */
22403
22404 #ifdef __STDC__
22405 # include <limits.h>
22406 #else
22407 # include <assert.h>
22408 #endif
22409
22410 #undef $ac_func
22411
22412 /* Override any GCC internal prototype to avoid an error.
22413    Use char because int might match the return type of a GCC
22414    builtin and then its argument prototype would still apply.  */
22415 #ifdef __cplusplus
22416 extern "C"
22417 #endif
22418 char $ac_func ();
22419 /* The GNU C library defines this for functions which it implements
22420     to always fail with ENOSYS.  Some functions are actually named
22421     something starting with __ and the normal name is an alias.  */
22422 #if defined __stub_$ac_func || defined __stub___$ac_func
22423 choke me
22424 #endif
22425
22426 int
22427 main ()
22428 {
22429 return $ac_func ();
22430   ;
22431   return 0;
22432 }
22433 _ACEOF
22434 rm -f conftest.$ac_objext conftest$ac_exeext
22435 if { (ac_try="$ac_link"
22436 case "(($ac_try" in
22437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438   *) ac_try_echo=$ac_try;;
22439 esac
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441   (eval "$ac_link") 2>conftest.er1
22442   ac_status=$?
22443   grep -v '^ *+' conftest.er1 >conftest.err
22444   rm -f conftest.er1
22445   cat conftest.err >&5
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); } && {
22448          test -z "$ac_c_werror_flag" ||
22449          test ! -s conftest.err
22450        } && test -s conftest$ac_exeext &&
22451        $as_test_x conftest$ac_exeext; then
22452   eval "$as_ac_var=yes"
22453 else
22454   echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22456
22457         eval "$as_ac_var=no"
22458 fi
22459
22460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22461       conftest$ac_exeext conftest.$ac_ext
22462 fi
22463 ac_res=`eval echo '${'$as_ac_var'}'`
22464                { echo "$as_me:$LINENO: result: $ac_res" >&5
22465 echo "${ECHO_T}$ac_res" >&6; }
22466 if test `eval echo '${'$as_ac_var'}'` = yes; then
22467   cat >>confdefs.h <<_ACEOF
22468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22469 _ACEOF
22470
22471 fi
22472 done
22473
22474
22475     SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
22476     LIBS="$_LIBS"
22477     LDFLAGS="$_LDFLAGS"
22478     # XXX - OpenLDAP has deprecated ldap_get_values()
22479     CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
22480 fi
22481
22482 if test -n "$blibpath"; then
22483     if test -n "$blibpath_add"; then
22484         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
22485     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
22486         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
22487     fi
22488 fi
22489
22490 { echo "$as_me:$LINENO: checking for log file location" >&5
22491 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
22492 if test -n "$with_logpath"; then
22493     { echo "$as_me:$LINENO: result: $with_logpath" >&5
22494 echo "${ECHO_T}$with_logpath" >&6; }
22495     cat >>confdefs.h <<EOF
22496 #define _PATH_SUDO_LOGFILE "$with_logpath"
22497 EOF
22498
22499 elif test -d "/var/log"; then
22500     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
22501 echo "${ECHO_T}/var/log/sudo.log" >&6; }
22502     cat >>confdefs.h <<\EOF
22503 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
22504 EOF
22505
22506 elif test -d "/var/adm"; then
22507     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
22508 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
22509     cat >>confdefs.h <<\EOF
22510 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
22511 EOF
22512
22513 elif test -d "/usr/adm"; then
22514     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
22515 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
22516     cat >>confdefs.h <<\EOF
22517 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
22518 EOF
22519
22520 else
22521     { echo "$as_me:$LINENO: result: unknown" >&5
22522 echo "${ECHO_T}unknown" >&6; }
22523 fi
22524
22525 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
22526 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
22527 if test -n "$with_timedir"; then
22528     { echo "$as_me:$LINENO: result: $with_timedir" >&5
22529 echo "${ECHO_T}$with_timedir" >&6; }
22530     cat >>confdefs.h <<EOF
22531 #define _PATH_SUDO_TIMEDIR "$with_timedir"
22532 EOF
22533
22534     timedir="$with_timedir"
22535 elif test -d "/var/run"; then
22536     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
22537 echo "${ECHO_T}/var/run/sudo" >&6; }
22538     cat >>confdefs.h <<\EOF
22539 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
22540 EOF
22541
22542     timedir="/var/run/sudo"
22543 elif test -d "/var/adm"; then
22544     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
22545 echo "${ECHO_T}/var/adm/sudo" >&6; }
22546     cat >>confdefs.h <<\EOF
22547 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
22548 EOF
22549
22550     timedir="/var/adm/sudo"
22551 else
22552     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
22553 echo "${ECHO_T}/usr/adm/sudo" >&6; }
22554     cat >>confdefs.h <<\EOF
22555 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
22556 EOF
22557
22558     timedir="/usr/adm/sudo"
22559 fi
22560
22561
22562 case "$with_passwd" in
22563 yes|maybe)
22564     AUTH_OBJS="$AUTH_OBJS passwd.o"
22565     ;;
22566 *)
22567     cat >>confdefs.h <<\_ACEOF
22568 #define WITHOUT_PASSWD 1
22569 _ACEOF
22570
22571     if test -z "$AUTH_OBJS"; then
22572         { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
22573 echo "$as_me: error: no authentication methods defined." >&2;}
22574    { (exit 1); exit 1; }; }
22575     fi
22576     ;;
22577 esac
22578 AUTH_OBJS=${AUTH_OBJS# }
22579 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
22580 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
22581 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
22582
22583 if test -n "$LIBS"; then
22584     L="$LIBS"
22585     LIBS=
22586     for l in ${L}; do
22587         dupe=0
22588         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
22589             test $l = $sl && dupe=1
22590         done
22591         test $dupe = 0 && LIBS="${LIBS} $l"
22592     done
22593 fi
22594
22595 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
22596
22597 if test "$with_noexec" != "no"; then
22598     PROGS="${PROGS} sudo_noexec.la"
22599     INSTALL_NOEXEC="install-noexec"
22600
22601     oexec_prefix="$exec_prefix"
22602     if test "$exec_prefix" = '$(prefix)'; then
22603         if test "$prefix" = "NONE"; then
22604             exec_prefix="$ac_default_prefix"
22605         else
22606             exec_prefix="$prefix"
22607         fi
22608     fi
22609     eval noexec_file="$with_noexec"
22610
22611 cat >>confdefs.h <<_ACEOF
22612 #define _PATH_SUDO_NOEXEC "$noexec_file"
22613 _ACEOF
22614
22615     exec_prefix="$oexec_prefix"
22616 fi
22617
22618 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
22619
22620 cat >confcache <<\_ACEOF
22621 # This file is a shell script that caches the results of configure
22622 # tests run on this system so they can be shared between configure
22623 # scripts and configure runs, see configure's option --config-cache.
22624 # It is not useful on other systems.  If it contains results you don't
22625 # want to keep, you may remove or edit it.
22626 #
22627 # config.status only pays attention to the cache file if you give it
22628 # the --recheck option to rerun configure.
22629 #
22630 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22631 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22632 # following values.
22633
22634 _ACEOF
22635
22636 # The following way of writing the cache mishandles newlines in values,
22637 # but we know of no workaround that is simple, portable, and efficient.
22638 # So, we kill variables containing newlines.
22639 # Ultrix sh set writes to stderr and can't be redirected directly,
22640 # and sets the high bit in the cache file unless we assign to the vars.
22641 (
22642   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22643     eval ac_val=\$$ac_var
22644     case $ac_val in #(
22645     *${as_nl}*)
22646       case $ac_var in #(
22647       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22648 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22649       esac
22650       case $ac_var in #(
22651       _ | IFS | as_nl) ;; #(
22652       *) $as_unset $ac_var ;;
22653       esac ;;
22654     esac
22655   done
22656
22657   (set) 2>&1 |
22658     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22659     *${as_nl}ac_space=\ *)
22660       # `set' does not quote correctly, so add quotes (double-quote
22661       # substitution turns \\\\ into \\, and sed turns \\ into \).
22662       sed -n \
22663         "s/'/'\\\\''/g;
22664           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22665       ;; #(
22666     *)
22667       # `set' quotes correctly as required by POSIX, so do not add quotes.
22668       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22669       ;;
22670     esac |
22671     sort
22672 ) |
22673   sed '
22674      /^ac_cv_env_/b end
22675      t clear
22676      :clear
22677      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22678      t end
22679      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22680      :end' >>confcache
22681 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22682   if test -w "$cache_file"; then
22683     test "x$cache_file" != "x/dev/null" &&
22684       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22685 echo "$as_me: updating cache $cache_file" >&6;}
22686     cat confcache >$cache_file
22687   else
22688     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22689 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22690   fi
22691 fi
22692 rm -f confcache
22693
22694 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22695 # Let make expand exec_prefix.
22696 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22697
22698 DEFS=-DHAVE_CONFIG_H
22699
22700 ac_libobjs=
22701 ac_ltlibobjs=
22702 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22703   # 1. Remove the extension, and $U if already installed.
22704   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22705   ac_i=`echo "$ac_i" | sed "$ac_script"`
22706   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22707   #    will be set to the directory where LIBOBJS objects are built.
22708   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22709   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22710 done
22711 LIBOBJS=$ac_libobjs
22712
22713 LTLIBOBJS=$ac_ltlibobjs
22714
22715
22716
22717 : ${CONFIG_STATUS=./config.status}
22718 ac_clean_files_save=$ac_clean_files
22719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22720 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22721 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22722 cat >$CONFIG_STATUS <<_ACEOF
22723 #! $SHELL
22724 # Generated by $as_me.
22725 # Run this file to recreate the current configuration.
22726 # Compiler output produced by configure, useful for debugging
22727 # configure, is in config.log if it exists.
22728
22729 debug=false
22730 ac_cs_recheck=false
22731 ac_cs_silent=false
22732 SHELL=\${CONFIG_SHELL-$SHELL}
22733 _ACEOF
22734
22735 cat >>$CONFIG_STATUS <<\_ACEOF
22736 ## --------------------- ##
22737 ## M4sh Initialization.  ##
22738 ## --------------------- ##
22739
22740 # Be more Bourne compatible
22741 DUALCASE=1; export DUALCASE # for MKS sh
22742 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22743   emulate sh
22744   NULLCMD=:
22745   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22746   # is contrary to our usage.  Disable this feature.
22747   alias -g '${1+"$@"}'='"$@"'
22748   setopt NO_GLOB_SUBST
22749 else
22750   case `(set -o) 2>/dev/null` in
22751   *posix*) set -o posix ;;
22752 esac
22753
22754 fi
22755
22756
22757
22758
22759 # PATH needs CR
22760 # Avoid depending upon Character Ranges.
22761 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22762 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22763 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22764 as_cr_digits='0123456789'
22765 as_cr_alnum=$as_cr_Letters$as_cr_digits
22766
22767 # The user is always right.
22768 if test "${PATH_SEPARATOR+set}" != set; then
22769   echo "#! /bin/sh" >conf$$.sh
22770   echo  "exit 0"   >>conf$$.sh
22771   chmod +x conf$$.sh
22772   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22773     PATH_SEPARATOR=';'
22774   else
22775     PATH_SEPARATOR=:
22776   fi
22777   rm -f conf$$.sh
22778 fi
22779
22780 # Support unset when possible.
22781 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22782   as_unset=unset
22783 else
22784   as_unset=false
22785 fi
22786
22787
22788 # IFS
22789 # We need space, tab and new line, in precisely that order.  Quoting is
22790 # there to prevent editors from complaining about space-tab.
22791 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22792 # splitting by setting IFS to empty value.)
22793 as_nl='
22794 '
22795 IFS=" ""        $as_nl"
22796
22797 # Find who we are.  Look in the path if we contain no directory separator.
22798 case $0 in
22799   *[\\/]* ) as_myself=$0 ;;
22800   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22801 for as_dir in $PATH
22802 do
22803   IFS=$as_save_IFS
22804   test -z "$as_dir" && as_dir=.
22805   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22806 done
22807 IFS=$as_save_IFS
22808
22809      ;;
22810 esac
22811 # We did not find ourselves, most probably we were run as `sh COMMAND'
22812 # in which case we are not to be found in the path.
22813 if test "x$as_myself" = x; then
22814   as_myself=$0
22815 fi
22816 if test ! -f "$as_myself"; then
22817   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22818   { (exit 1); exit 1; }
22819 fi
22820
22821 # Work around bugs in pre-3.0 UWIN ksh.
22822 for as_var in ENV MAIL MAILPATH
22823 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22824 done
22825 PS1='$ '
22826 PS2='> '
22827 PS4='+ '
22828
22829 # NLS nuisances.
22830 for as_var in \
22831   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22832   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22833   LC_TELEPHONE LC_TIME
22834 do
22835   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22836     eval $as_var=C; export $as_var
22837   else
22838     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22839   fi
22840 done
22841
22842 # Required to use basename.
22843 if expr a : '\(a\)' >/dev/null 2>&1 &&
22844    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22845   as_expr=expr
22846 else
22847   as_expr=false
22848 fi
22849
22850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22851   as_basename=basename
22852 else
22853   as_basename=false
22854 fi
22855
22856
22857 # Name of the executable.
22858 as_me=`$as_basename -- "$0" ||
22859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22860          X"$0" : 'X\(//\)$' \| \
22861          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22862 echo X/"$0" |
22863     sed '/^.*\/\([^/][^/]*\)\/*$/{
22864             s//\1/
22865             q
22866           }
22867           /^X\/\(\/\/\)$/{
22868             s//\1/
22869             q
22870           }
22871           /^X\/\(\/\).*/{
22872             s//\1/
22873             q
22874           }
22875           s/.*/./; q'`
22876
22877 # CDPATH.
22878 $as_unset CDPATH
22879
22880
22881
22882   as_lineno_1=$LINENO
22883   as_lineno_2=$LINENO
22884   test "x$as_lineno_1" != "x$as_lineno_2" &&
22885   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22886
22887   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22888   # uniformly replaced by the line number.  The first 'sed' inserts a
22889   # line-number line after each line using $LINENO; the second 'sed'
22890   # does the real work.  The second script uses 'N' to pair each
22891   # line-number line with the line containing $LINENO, and appends
22892   # trailing '-' during substitution so that $LINENO is not a special
22893   # case at line end.
22894   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22895   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22896   # E. McMahon (1931-1989) for sed's syntax.  :-)
22897   sed -n '
22898     p
22899     /[$]LINENO/=
22900   ' <$as_myself |
22901     sed '
22902       s/[$]LINENO.*/&-/
22903       t lineno
22904       b
22905       :lineno
22906       N
22907       :loop
22908       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22909       t loop
22910       s/-\n.*//
22911     ' >$as_me.lineno &&
22912   chmod +x "$as_me.lineno" ||
22913     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22914    { (exit 1); exit 1; }; }
22915
22916   # Don't try to exec as it changes $[0], causing all sort of problems
22917   # (the dirname of $[0] is not the place where we might find the
22918   # original and so on.  Autoconf is especially sensitive to this).
22919   . "./$as_me.lineno"
22920   # Exit status is that of the last command.
22921   exit
22922 }
22923
22924
22925 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22926   as_dirname=dirname
22927 else
22928   as_dirname=false
22929 fi
22930
22931 ECHO_C= ECHO_N= ECHO_T=
22932 case `echo -n x` in
22933 -n*)
22934   case `echo 'x\c'` in
22935   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22936   *)   ECHO_C='\c';;
22937   esac;;
22938 *)
22939   ECHO_N='-n';;
22940 esac
22941
22942 if expr a : '\(a\)' >/dev/null 2>&1 &&
22943    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22944   as_expr=expr
22945 else
22946   as_expr=false
22947 fi
22948
22949 rm -f conf$$ conf$$.exe conf$$.file
22950 if test -d conf$$.dir; then
22951   rm -f conf$$.dir/conf$$.file
22952 else
22953   rm -f conf$$.dir
22954   mkdir conf$$.dir
22955 fi
22956 echo >conf$$.file
22957 if ln -s conf$$.file conf$$ 2>/dev/null; then
22958   as_ln_s='ln -s'
22959   # ... but there are two gotchas:
22960   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22961   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22962   # In both cases, we have to default to `cp -p'.
22963   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22964     as_ln_s='cp -p'
22965 elif ln conf$$.file conf$$ 2>/dev/null; then
22966   as_ln_s=ln
22967 else
22968   as_ln_s='cp -p'
22969 fi
22970 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22971 rmdir conf$$.dir 2>/dev/null
22972
22973 if mkdir -p . 2>/dev/null; then
22974   as_mkdir_p=:
22975 else
22976   test -d ./-p && rmdir ./-p
22977   as_mkdir_p=false
22978 fi
22979
22980 if test -x / >/dev/null 2>&1; then
22981   as_test_x='test -x'
22982 else
22983   if ls -dL / >/dev/null 2>&1; then
22984     as_ls_L_option=L
22985   else
22986     as_ls_L_option=
22987   fi
22988   as_test_x='
22989     eval sh -c '\''
22990       if test -d "$1"; then
22991         test -d "$1/.";
22992       else
22993         case $1 in
22994         -*)set "./$1";;
22995         esac;
22996         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22997         ???[sx]*):;;*)false;;esac;fi
22998     '\'' sh
22999   '
23000 fi
23001 as_executable_p=$as_test_x
23002
23003 # Sed expression to map a string onto a valid CPP name.
23004 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23005
23006 # Sed expression to map a string onto a valid variable name.
23007 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23008
23009
23010 exec 6>&1
23011
23012 # Save the log message, to keep $[0] and so on meaningful, and to
23013 # report actual input values of CONFIG_FILES etc. instead of their
23014 # values after options handling.
23015 ac_log="
23016 This file was extended by sudo $as_me 1.6.9, which was
23017 generated by GNU Autoconf 2.61.  Invocation command line was
23018
23019   CONFIG_FILES    = $CONFIG_FILES
23020   CONFIG_HEADERS  = $CONFIG_HEADERS
23021   CONFIG_LINKS    = $CONFIG_LINKS
23022   CONFIG_COMMANDS = $CONFIG_COMMANDS
23023   $ $0 $@
23024
23025 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23026 "
23027
23028 _ACEOF
23029
23030 cat >>$CONFIG_STATUS <<_ACEOF
23031 # Files that config.status was made for.
23032 config_files="$ac_config_files"
23033 config_headers="$ac_config_headers"
23034
23035 _ACEOF
23036
23037 cat >>$CONFIG_STATUS <<\_ACEOF
23038 ac_cs_usage="\
23039 \`$as_me' instantiates files from templates according to the
23040 current configuration.
23041
23042 Usage: $0 [OPTIONS] [FILE]...
23043
23044   -h, --help       print this help, then exit
23045   -V, --version    print version number and configuration settings, then exit
23046   -q, --quiet      do not print progress messages
23047   -d, --debug      don't remove temporary files
23048       --recheck    update $as_me by reconfiguring in the same conditions
23049   --file=FILE[:TEMPLATE]
23050                    instantiate the configuration file FILE
23051   --header=FILE[:TEMPLATE]
23052                    instantiate the configuration header FILE
23053
23054 Configuration files:
23055 $config_files
23056
23057 Configuration headers:
23058 $config_headers
23059
23060 Report bugs to <bug-autoconf@gnu.org>."
23061
23062 _ACEOF
23063 cat >>$CONFIG_STATUS <<_ACEOF
23064 ac_cs_version="\\
23065 sudo config.status 1.6.9
23066 configured by $0, generated by GNU Autoconf 2.61,
23067   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23068
23069 Copyright (C) 2006 Free Software Foundation, Inc.
23070 This config.status script is free software; the Free Software Foundation
23071 gives unlimited permission to copy, distribute and modify it."
23072
23073 ac_pwd='$ac_pwd'
23074 srcdir='$srcdir'
23075 _ACEOF
23076
23077 cat >>$CONFIG_STATUS <<\_ACEOF
23078 # If no file are specified by the user, then we need to provide default
23079 # value.  By we need to know if files were specified by the user.
23080 ac_need_defaults=:
23081 while test $# != 0
23082 do
23083   case $1 in
23084   --*=*)
23085     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23086     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23087     ac_shift=:
23088     ;;
23089   *)
23090     ac_option=$1
23091     ac_optarg=$2
23092     ac_shift=shift
23093     ;;
23094   esac
23095
23096   case $ac_option in
23097   # Handling of the options.
23098   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23099     ac_cs_recheck=: ;;
23100   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23101     echo "$ac_cs_version"; exit ;;
23102   --debug | --debu | --deb | --de | --d | -d )
23103     debug=: ;;
23104   --file | --fil | --fi | --f )
23105     $ac_shift
23106     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23107     ac_need_defaults=false;;
23108   --header | --heade | --head | --hea )
23109     $ac_shift
23110     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23111     ac_need_defaults=false;;
23112   --he | --h)
23113     # Conflict between --help and --header
23114     { echo "$as_me: error: ambiguous option: $1
23115 Try \`$0 --help' for more information." >&2
23116    { (exit 1); exit 1; }; };;
23117   --help | --hel | -h )
23118     echo "$ac_cs_usage"; exit ;;
23119   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23120   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23121     ac_cs_silent=: ;;
23122
23123   # This is an error.
23124   -*) { echo "$as_me: error: unrecognized option: $1
23125 Try \`$0 --help' for more information." >&2
23126    { (exit 1); exit 1; }; } ;;
23127
23128   *) ac_config_targets="$ac_config_targets $1"
23129      ac_need_defaults=false ;;
23130
23131   esac
23132   shift
23133 done
23134
23135 ac_configure_extra_args=
23136
23137 if $ac_cs_silent; then
23138   exec 6>/dev/null
23139   ac_configure_extra_args="$ac_configure_extra_args --silent"
23140 fi
23141
23142 _ACEOF
23143 cat >>$CONFIG_STATUS <<_ACEOF
23144 if \$ac_cs_recheck; then
23145   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23146   CONFIG_SHELL=$SHELL
23147   export CONFIG_SHELL
23148   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23149 fi
23150
23151 _ACEOF
23152 cat >>$CONFIG_STATUS <<\_ACEOF
23153 exec 5>>config.log
23154 {
23155   echo
23156   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23157 ## Running $as_me. ##
23158 _ASBOX
23159   echo "$ac_log"
23160 } >&5
23161
23162 _ACEOF
23163 cat >>$CONFIG_STATUS <<_ACEOF
23164 _ACEOF
23165
23166 cat >>$CONFIG_STATUS <<\_ACEOF
23167
23168 # Handling of arguments.
23169 for ac_config_target in $ac_config_targets
23170 do
23171   case $ac_config_target in
23172     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23173     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
23174     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23175     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
23176     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
23177     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
23178
23179   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23180 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23181    { (exit 1); exit 1; }; };;
23182   esac
23183 done
23184
23185
23186 # If the user did not use the arguments to specify the items to instantiate,
23187 # then the envvar interface is used.  Set only those that are not.
23188 # We use the long form for the default assignment because of an extremely
23189 # bizarre bug on SunOS 4.1.3.
23190 if $ac_need_defaults; then
23191   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23192   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23193 fi
23194
23195 # Have a temporary directory for convenience.  Make it in the build tree
23196 # simply because there is no reason against having it here, and in addition,
23197 # creating and moving files from /tmp can sometimes cause problems.
23198 # Hook for its removal unless debugging.
23199 # Note that there is a small window in which the directory will not be cleaned:
23200 # after its creation but before its name has been assigned to `$tmp'.
23201 $debug ||
23202 {
23203   tmp=
23204   trap 'exit_status=$?
23205   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23206 ' 0
23207   trap '{ (exit 1); exit 1; }' 1 2 13 15
23208 }
23209 # Create a (secure) tmp directory for tmp files.
23210
23211 {
23212   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23213   test -n "$tmp" && test -d "$tmp"
23214 }  ||
23215 {
23216   tmp=./conf$$-$RANDOM
23217   (umask 077 && mkdir "$tmp")
23218 } ||
23219 {
23220    echo "$me: cannot create a temporary directory in ." >&2
23221    { (exit 1); exit 1; }
23222 }
23223
23224 #
23225 # Set up the sed scripts for CONFIG_FILES section.
23226 #
23227
23228 # No need to generate the scripts if there are no CONFIG_FILES.
23229 # This happens for instance when ./config.status config.h
23230 if test -n "$CONFIG_FILES"; then
23231
23232 _ACEOF
23233
23234
23235
23236 ac_delim='%!_!# '
23237 for ac_last_try in false false false false false :; do
23238   cat >conf$$subs.sed <<_ACEOF
23239 SHELL!$SHELL$ac_delim
23240 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23241 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23242 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23243 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23244 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23245 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23246 exec_prefix!$exec_prefix$ac_delim
23247 prefix!$prefix$ac_delim
23248 program_transform_name!$program_transform_name$ac_delim
23249 bindir!$bindir$ac_delim
23250 sbindir!$sbindir$ac_delim
23251 libexecdir!$libexecdir$ac_delim
23252 datarootdir!$datarootdir$ac_delim
23253 datadir!$datadir$ac_delim
23254 sysconfdir!$sysconfdir$ac_delim
23255 sharedstatedir!$sharedstatedir$ac_delim
23256 localstatedir!$localstatedir$ac_delim
23257 includedir!$includedir$ac_delim
23258 oldincludedir!$oldincludedir$ac_delim
23259 docdir!$docdir$ac_delim
23260 infodir!$infodir$ac_delim
23261 htmldir!$htmldir$ac_delim
23262 dvidir!$dvidir$ac_delim
23263 pdfdir!$pdfdir$ac_delim
23264 psdir!$psdir$ac_delim
23265 libdir!$libdir$ac_delim
23266 localedir!$localedir$ac_delim
23267 mandir!$mandir$ac_delim
23268 DEFS!$DEFS$ac_delim
23269 ECHO_C!$ECHO_C$ac_delim
23270 ECHO_N!$ECHO_N$ac_delim
23271 ECHO_T!$ECHO_T$ac_delim
23272 LIBS!$LIBS$ac_delim
23273 build_alias!$build_alias$ac_delim
23274 host_alias!$host_alias$ac_delim
23275 target_alias!$target_alias$ac_delim
23276 LIBTOOL!$LIBTOOL$ac_delim
23277 CFLAGS!$CFLAGS$ac_delim
23278 PROGS!$PROGS$ac_delim
23279 CPPFLAGS!$CPPFLAGS$ac_delim
23280 LDFLAGS!$LDFLAGS$ac_delim
23281 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
23282 SUDO_OBJS!$SUDO_OBJS$ac_delim
23283 SUDO_LIBS!$SUDO_LIBS$ac_delim
23284 NET_LIBS!$NET_LIBS$ac_delim
23285 AFS_LIBS!$AFS_LIBS$ac_delim
23286 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
23287 OSDEFS!$OSDEFS$ac_delim
23288 AUTH_OBJS!$AUTH_OBJS$ac_delim
23289 MANTYPE!$MANTYPE$ac_delim
23290 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
23291 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
23292 SUDOERS_UID!$SUDOERS_UID$ac_delim
23293 SUDOERS_GID!$SUDOERS_GID$ac_delim
23294 DEV!$DEV$ac_delim
23295 mansectsu!$mansectsu$ac_delim
23296 mansectform!$mansectform$ac_delim
23297 mansrcdir!$mansrcdir$ac_delim
23298 NOEXECDIR!$NOEXECDIR$ac_delim
23299 noexec_file!$noexec_file$ac_delim
23300 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
23301 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
23302 timedir!$timedir$ac_delim
23303 timeout!$timeout$ac_delim
23304 password_timeout!$password_timeout$ac_delim
23305 sudo_umask!$sudo_umask$ac_delim
23306 passprompt!$passprompt$ac_delim
23307 long_otp_prompt!$long_otp_prompt$ac_delim
23308 lecture!$lecture$ac_delim
23309 logfac!$logfac$ac_delim
23310 goodpri!$goodpri$ac_delim
23311 badpri!$badpri$ac_delim
23312 loglen!$loglen$ac_delim
23313 ignore_dot!$ignore_dot$ac_delim
23314 mail_no_user!$mail_no_user$ac_delim
23315 mail_no_host!$mail_no_host$ac_delim
23316 mail_no_perms!$mail_no_perms$ac_delim
23317 mailto!$mailto$ac_delim
23318 mailsub!$mailsub$ac_delim
23319 badpass_message!$badpass_message$ac_delim
23320 fqdn!$fqdn$ac_delim
23321 runas_default!$runas_default$ac_delim
23322 env_editor!$env_editor$ac_delim
23323 passwd_tries!$passwd_tries$ac_delim
23324 tty_tickets!$tty_tickets$ac_delim
23325 insults!$insults$ac_delim
23326 root_sudo!$root_sudo$ac_delim
23327 path_info!$path_info$ac_delim
23328 EGREPPROG!$EGREPPROG$ac_delim
23329 CC!$CC$ac_delim
23330 ac_ct_CC!$ac_ct_CC$ac_delim
23331 EXEEXT!$EXEEXT$ac_delim
23332 OBJEXT!$OBJEXT$ac_delim
23333 CPP!$CPP$ac_delim
23334 build!$build$ac_delim
23335 build_cpu!$build_cpu$ac_delim
23336 _ACEOF
23337
23338   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23339     break
23340   elif $ac_last_try; then
23341     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23342 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23343    { (exit 1); exit 1; }; }
23344   else
23345     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23346   fi
23347 done
23348
23349 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23350 if test -n "$ac_eof"; then
23351   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23352   ac_eof=`expr $ac_eof + 1`
23353 fi
23354
23355 cat >>$CONFIG_STATUS <<_ACEOF
23356 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23358 _ACEOF
23359 sed '
23360 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23361 s/^/s,@/; s/!/@,|#_!!_#|/
23362 :n
23363 t n
23364 s/'"$ac_delim"'$/,g/; t
23365 s/$/\\/; p
23366 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23367 ' >>$CONFIG_STATUS <conf$$subs.sed
23368 rm -f conf$$subs.sed
23369 cat >>$CONFIG_STATUS <<_ACEOF
23370 CEOF$ac_eof
23371 _ACEOF
23372
23373
23374 ac_delim='%!_!# '
23375 for ac_last_try in false false false false false :; do
23376   cat >conf$$subs.sed <<_ACEOF
23377 build_vendor!$build_vendor$ac_delim
23378 build_os!$build_os$ac_delim
23379 host!$host$ac_delim
23380 host_cpu!$host_cpu$ac_delim
23381 host_vendor!$host_vendor$ac_delim
23382 host_os!$host_os$ac_delim
23383 target!$target$ac_delim
23384 target_cpu!$target_cpu$ac_delim
23385 target_vendor!$target_vendor$ac_delim
23386 target_os!$target_os$ac_delim
23387 SED!$SED$ac_delim
23388 GREP!$GREP$ac_delim
23389 EGREP!$EGREP$ac_delim
23390 LN_S!$LN_S$ac_delim
23391 ECHO!$ECHO$ac_delim
23392 AR!$AR$ac_delim
23393 RANLIB!$RANLIB$ac_delim
23394 STRIP!$STRIP$ac_delim
23395 UNAMEPROG!$UNAMEPROG$ac_delim
23396 TRPROG!$TRPROG$ac_delim
23397 NROFFPROG!$NROFFPROG$ac_delim
23398 YACC!$YACC$ac_delim
23399 YFLAGS!$YFLAGS$ac_delim
23400 LIBOBJS!$LIBOBJS$ac_delim
23401 ALLOCA!$ALLOCA$ac_delim
23402 KRB5CONFIG!$KRB5CONFIG$ac_delim
23403 LTLIBOBJS!$LTLIBOBJS$ac_delim
23404 _ACEOF
23405
23406   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
23407     break
23408   elif $ac_last_try; then
23409     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23410 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23411    { (exit 1); exit 1; }; }
23412   else
23413     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23414   fi
23415 done
23416
23417 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23418 if test -n "$ac_eof"; then
23419   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23420   ac_eof=`expr $ac_eof + 1`
23421 fi
23422
23423 cat >>$CONFIG_STATUS <<_ACEOF
23424 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23426 _ACEOF
23427 sed '
23428 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23429 s/^/s,@/; s/!/@,|#_!!_#|/
23430 :n
23431 t n
23432 s/'"$ac_delim"'$/,g/; t
23433 s/$/\\/; p
23434 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23435 ' >>$CONFIG_STATUS <conf$$subs.sed
23436 rm -f conf$$subs.sed
23437 cat >>$CONFIG_STATUS <<_ACEOF
23438 :end
23439 s/|#_!!_#|//g
23440 CEOF$ac_eof
23441 _ACEOF
23442
23443
23444 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23445 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23446 # trailing colons and then remove the whole line if VPATH becomes empty
23447 # (actually we leave an empty line to preserve line numbers).
23448 if test "x$srcdir" = x.; then
23449   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23450 s/:*\$(srcdir):*/:/
23451 s/:*\${srcdir}:*/:/
23452 s/:*@srcdir@:*/:/
23453 s/^\([^=]*=[     ]*\):*/\1/
23454 s/:*$//
23455 s/^[^=]*=[       ]*$//
23456 }'
23457 fi
23458
23459 cat >>$CONFIG_STATUS <<\_ACEOF
23460 fi # test -n "$CONFIG_FILES"
23461
23462
23463 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
23464 do
23465   case $ac_tag in
23466   :[FHLC]) ac_mode=$ac_tag; continue;;
23467   esac
23468   case $ac_mode$ac_tag in
23469   :[FHL]*:*);;
23470   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23471 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23472    { (exit 1); exit 1; }; };;
23473   :[FH]-) ac_tag=-:-;;
23474   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23475   esac
23476   ac_save_IFS=$IFS
23477   IFS=:
23478   set x $ac_tag
23479   IFS=$ac_save_IFS
23480   shift
23481   ac_file=$1
23482   shift
23483
23484   case $ac_mode in
23485   :L) ac_source=$1;;
23486   :[FH])
23487     ac_file_inputs=
23488     for ac_f
23489     do
23490       case $ac_f in
23491       -) ac_f="$tmp/stdin";;
23492       *) # Look for the file first in the build tree, then in the source tree
23493          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23494          # because $ac_f cannot contain `:'.
23495          test -f "$ac_f" ||
23496            case $ac_f in
23497            [\\/$]*) false;;
23498            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23499            esac ||
23500            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23501 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23502    { (exit 1); exit 1; }; };;
23503       esac
23504       ac_file_inputs="$ac_file_inputs $ac_f"
23505     done
23506
23507     # Let's still pretend it is `configure' which instantiates (i.e., don't
23508     # use $as_me), people would be surprised to read:
23509     #    /* config.h.  Generated by config.status.  */
23510     configure_input="Generated from "`IFS=:
23511           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23512     if test x"$ac_file" != x-; then
23513       configure_input="$ac_file.  $configure_input"
23514       { echo "$as_me:$LINENO: creating $ac_file" >&5
23515 echo "$as_me: creating $ac_file" >&6;}
23516     fi
23517
23518     case $ac_tag in
23519     *:-:* | *:-) cat >"$tmp/stdin";;
23520     esac
23521     ;;
23522   esac
23523
23524   ac_dir=`$as_dirname -- "$ac_file" ||
23525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23526          X"$ac_file" : 'X\(//\)[^/]' \| \
23527          X"$ac_file" : 'X\(//\)$' \| \
23528          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23529 echo X"$ac_file" |
23530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23531             s//\1/
23532             q
23533           }
23534           /^X\(\/\/\)[^/].*/{
23535             s//\1/
23536             q
23537           }
23538           /^X\(\/\/\)$/{
23539             s//\1/
23540             q
23541           }
23542           /^X\(\/\).*/{
23543             s//\1/
23544             q
23545           }
23546           s/.*/./; q'`
23547   { as_dir="$ac_dir"
23548   case $as_dir in #(
23549   -*) as_dir=./$as_dir;;
23550   esac
23551   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23552     as_dirs=
23553     while :; do
23554       case $as_dir in #(
23555       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23556       *) as_qdir=$as_dir;;
23557       esac
23558       as_dirs="'$as_qdir' $as_dirs"
23559       as_dir=`$as_dirname -- "$as_dir" ||
23560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23561          X"$as_dir" : 'X\(//\)[^/]' \| \
23562          X"$as_dir" : 'X\(//\)$' \| \
23563          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23564 echo X"$as_dir" |
23565     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23566             s//\1/
23567             q
23568           }
23569           /^X\(\/\/\)[^/].*/{
23570             s//\1/
23571             q
23572           }
23573           /^X\(\/\/\)$/{
23574             s//\1/
23575             q
23576           }
23577           /^X\(\/\).*/{
23578             s//\1/
23579             q
23580           }
23581           s/.*/./; q'`
23582       test -d "$as_dir" && break
23583     done
23584     test -z "$as_dirs" || eval "mkdir $as_dirs"
23585   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23586 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23587    { (exit 1); exit 1; }; }; }
23588   ac_builddir=.
23589
23590 case "$ac_dir" in
23591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23592 *)
23593   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23594   # A ".." for each directory in $ac_dir_suffix.
23595   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23596   case $ac_top_builddir_sub in
23597   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23598   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23599   esac ;;
23600 esac
23601 ac_abs_top_builddir=$ac_pwd
23602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23603 # for backward compatibility:
23604 ac_top_builddir=$ac_top_build_prefix
23605
23606 case $srcdir in
23607   .)  # We are building in place.
23608     ac_srcdir=.
23609     ac_top_srcdir=$ac_top_builddir_sub
23610     ac_abs_top_srcdir=$ac_pwd ;;
23611   [\\/]* | ?:[\\/]* )  # Absolute name.
23612     ac_srcdir=$srcdir$ac_dir_suffix;
23613     ac_top_srcdir=$srcdir
23614     ac_abs_top_srcdir=$srcdir ;;
23615   *) # Relative name.
23616     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23617     ac_top_srcdir=$ac_top_build_prefix$srcdir
23618     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23619 esac
23620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23621
23622
23623   case $ac_mode in
23624   :F)
23625   #
23626   # CONFIG_FILE
23627   #
23628
23629 _ACEOF
23630
23631 cat >>$CONFIG_STATUS <<\_ACEOF
23632 # If the template does not know about datarootdir, expand it.
23633 # FIXME: This hack should be removed a few years after 2.60.
23634 ac_datarootdir_hack=; ac_datarootdir_seen=
23635
23636 case `sed -n '/datarootdir/ {
23637   p
23638   q
23639 }
23640 /@datadir@/p
23641 /@docdir@/p
23642 /@infodir@/p
23643 /@localedir@/p
23644 /@mandir@/p
23645 ' $ac_file_inputs` in
23646 *datarootdir*) ac_datarootdir_seen=yes;;
23647 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23648   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23649 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23650 _ACEOF
23651 cat >>$CONFIG_STATUS <<_ACEOF
23652   ac_datarootdir_hack='
23653   s&@datadir@&$datadir&g
23654   s&@docdir@&$docdir&g
23655   s&@infodir@&$infodir&g
23656   s&@localedir@&$localedir&g
23657   s&@mandir@&$mandir&g
23658     s&\\\${datarootdir}&$datarootdir&g' ;;
23659 esac
23660 _ACEOF
23661
23662 # Neutralize VPATH when `$srcdir' = `.'.
23663 # Shell code in configure.ac might set extrasub.
23664 # FIXME: do we really want to maintain this feature?
23665 cat >>$CONFIG_STATUS <<_ACEOF
23666   sed "$ac_vpsub
23667 $extrasub
23668 _ACEOF
23669 cat >>$CONFIG_STATUS <<\_ACEOF
23670 :t
23671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23672 s&@configure_input@&$configure_input&;t t
23673 s&@top_builddir@&$ac_top_builddir_sub&;t t
23674 s&@srcdir@&$ac_srcdir&;t t
23675 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23676 s&@top_srcdir@&$ac_top_srcdir&;t t
23677 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23678 s&@builddir@&$ac_builddir&;t t
23679 s&@abs_builddir@&$ac_abs_builddir&;t t
23680 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23681 $ac_datarootdir_hack
23682 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23683
23684 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23685   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23686   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23687   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23688 which seems to be undefined.  Please make sure it is defined." >&5
23689 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23690 which seems to be undefined.  Please make sure it is defined." >&2;}
23691
23692   rm -f "$tmp/stdin"
23693   case $ac_file in
23694   -) cat "$tmp/out"; rm -f "$tmp/out";;
23695   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23696   esac
23697  ;;
23698   :H)
23699   #
23700   # CONFIG_HEADER
23701   #
23702 _ACEOF
23703
23704 # Transform confdefs.h into a sed script `conftest.defines', that
23705 # substitutes the proper values into config.h.in to produce config.h.
23706 rm -f conftest.defines conftest.tail
23707 # First, append a space to every undef/define line, to ease matching.
23708 echo 's/$/ /' >conftest.defines
23709 # Then, protect against being on the right side of a sed subst, or in
23710 # an unquoted here document, in config.status.  If some macros were
23711 # called several times there might be several #defines for the same
23712 # symbol, which is useless.  But do not sort them, since the last
23713 # AC_DEFINE must be honored.
23714 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23715 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23716 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23717 # PARAMS is the parameter list in the macro definition--in most cases, it's
23718 # just an empty string.
23719 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23720 ac_dB='\\)[      (].*,\\1define\\2'
23721 ac_dC=' '
23722 ac_dD=' ,'
23723
23724 uniq confdefs.h |
23725   sed -n '
23726         t rset
23727         :rset
23728         s/^[     ]*#[    ]*define[       ][      ]*//
23729         t ok
23730         d
23731         :ok
23732         s/[\\&,]/\\&/g
23733         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23734         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23735   ' >>conftest.defines
23736
23737 # Remove the space that was appended to ease matching.
23738 # Then replace #undef with comments.  This is necessary, for
23739 # example, in the case of _POSIX_SOURCE, which is predefined and required
23740 # on some systems where configure will not decide to define it.
23741 # (The regexp can be short, since the line contains either #define or #undef.)
23742 echo 's/ $//
23743 s,^[     #]*u.*,/* & */,' >>conftest.defines
23744
23745 # Break up conftest.defines:
23746 ac_max_sed_lines=50
23747
23748 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23749 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23750 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23751 # et cetera.
23752 ac_in='$ac_file_inputs'
23753 ac_out='"$tmp/out1"'
23754 ac_nxt='"$tmp/out2"'
23755
23756 while :
23757 do
23758   # Write a here document:
23759     cat >>$CONFIG_STATUS <<_ACEOF
23760     # First, check the format of the line:
23761     cat >"\$tmp/defines.sed" <<\\CEOF
23762 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23763 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23764 b
23765 :def
23766 _ACEOF
23767   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23768   echo 'CEOF
23769     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23770   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23771   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23772   grep . conftest.tail >/dev/null || break
23773   rm -f conftest.defines
23774   mv conftest.tail conftest.defines
23775 done
23776 rm -f conftest.defines conftest.tail
23777
23778 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23779 cat >>$CONFIG_STATUS <<\_ACEOF
23780   if test x"$ac_file" != x-; then
23781     echo "/* $configure_input  */" >"$tmp/config.h"
23782     cat "$ac_result" >>"$tmp/config.h"
23783     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23784       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23785 echo "$as_me: $ac_file is unchanged" >&6;}
23786     else
23787       rm -f $ac_file
23788       mv "$tmp/config.h" $ac_file
23789     fi
23790   else
23791     echo "/* $configure_input  */"
23792     cat "$ac_result"
23793   fi
23794   rm -f "$tmp/out12"
23795 # Compute $ac_file's index in $config_headers.
23796 _am_stamp_count=1
23797 for _am_header in $config_headers :; do
23798   case $_am_header in
23799     $ac_file | $ac_file:* )
23800       break ;;
23801     * )
23802       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23803   esac
23804 done
23805 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23806 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23807          X$ac_file : 'X\(//\)[^/]' \| \
23808          X$ac_file : 'X\(//\)$' \| \
23809          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23810 echo X$ac_file |
23811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23812             s//\1/
23813             q
23814           }
23815           /^X\(\/\/\)[^/].*/{
23816             s//\1/
23817             q
23818           }
23819           /^X\(\/\/\)$/{
23820             s//\1/
23821             q
23822           }
23823           /^X\(\/\).*/{
23824             s//\1/
23825             q
23826           }
23827           s/.*/./; q'`/stamp-h$_am_stamp_count
23828  ;;
23829
23830
23831   esac
23832
23833 done # for ac_tag
23834
23835
23836 { (exit 0); exit 0; }
23837 _ACEOF
23838 chmod +x $CONFIG_STATUS
23839 ac_clean_files=$ac_clean_files_save
23840
23841
23842 # configure is writing to config.log, and then calls config.status.
23843 # config.status does its own redirection, appending to config.log.
23844 # Unfortunately, on DOS this fails, as config.log is still kept open
23845 # by configure, so config.status won't be able to write to it; its
23846 # output is simply discarded.  So we exec the FD to /dev/null,
23847 # effectively closing config.log, so it can be properly (re)opened and
23848 # appended to by config.status.  When coming back to configure, we
23849 # need to make the FD available again.
23850 if test "$no_create" != yes; then
23851   ac_cs_success=:
23852   ac_config_status_args=
23853   test "$silent" = yes &&
23854     ac_config_status_args="$ac_config_status_args --quiet"
23855   exec 5>/dev/null
23856   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23857   exec 5>>config.log
23858   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23859   # would make configure fail if this is the last instruction.
23860   $ac_cs_success || { (exit 1); exit 1; }
23861 fi
23862
23863
23864 if test "$with_pam" = "yes"; then
23865     case $host in
23866         *-*-linux*)
23867             { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
23868 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
23869             ;;
23870     esac
23871 fi
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014