Imported Upstream version 1.8.1p2
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for sudo 1.8.1p2.
4 #
5 # Report bugs to <http://www.sudo.ws/bugs/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185   if (eval "$as_required") 2>/dev/null; then :
186   as_have_required=yes
187 else
188   as_have_required=no
189 fi
190   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197   IFS=$as_save_IFS
198   test -z "$as_dir" && as_dir=.
199   as_found=:
200   case $as_dir in #(
201          /*)
202            for as_base in sh bash ksh sh5; do
203              # Try only shells that exist, to save several forks.
204              as_shell=$as_dir/$as_base
205              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   CONFIG_SHELL=$as_shell as_have_required=yes
208                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209   break 2
210 fi
211 fi
212            done;;
213        esac
214   as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218   CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223       if test "x$CONFIG_SHELL" != x; then :
224   # We cannot yet assume a decent shell, so we have to provide a
225         # neutralization value for shells without unset; and this also
226         # works around shells that cannot unset nonexistent variables.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: http://www.sudo.ws/bugs/ about your system, including
243 $0: any error possibly output before this message. Then
244 $0: install a modern shell, or manually run the script
245 $0: under such a shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error ERROR [LINENO LOG_FD]
371 # ---------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with status $?, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$?; test $as_status -eq 0 && as_status=1
378   if test "$3"; then
379     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381   fi
382   $as_echo "$as_me: error: $1" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542 test -n "$DJDIR" || exec 7<&0 </dev/null
543 exec 6>&1
544
545 # Name of the host.
546 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550 #
551 # Initializations.
552 #
553 ac_default_prefix=/usr/local
554 ac_clean_files=
555 ac_config_libobj_dir=.
556 LIBOBJS=
557 cross_compiling=no
558 subdirs=
559 MFLAGS=
560 MAKEFLAGS=
561
562 # Identity of this package.
563 PACKAGE_NAME='sudo'
564 PACKAGE_TARNAME='sudo'
565 PACKAGE_VERSION='1.8.1p2'
566 PACKAGE_STRING='sudo 1.8.1p2'
567 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
568 PACKAGE_URL=''
569
570 ac_config_libobj_dir=compat
571 # Factoring default headers for most tests.
572 ac_includes_default="\
573 #include <stdio.h>
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
576 #endif
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
579 #endif
580 #ifdef STDC_HEADERS
581 # include <stdlib.h>
582 # include <stddef.h>
583 #else
584 # ifdef HAVE_STDLIB_H
585 #  include <stdlib.h>
586 # endif
587 #endif
588 #ifdef HAVE_STRING_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #  include <memory.h>
591 # endif
592 # include <string.h>
593 #endif
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
596 #endif
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
599 #endif
600 #ifdef HAVE_STDINT_H
601 # include <stdint.h>
602 #endif
603 #ifdef HAVE_UNISTD_H
604 # include <unistd.h>
605 #endif"
606
607 ac_subst_vars='LTLIBOBJS
608 KRB5CONFIG
609 LIBOBJS
610 FLEX
611 YFLAGS
612 YACC
613 NROFFPROG
614 TRPROG
615 UNAMEPROG
616 OTOOL64
617 OTOOL
618 LIPO
619 NMEDIT
620 DSYMUTIL
621 AWK
622 STRIP
623 OBJDUMP
624 LN_S
625 NM
626 ac_ct_DUMPBIN
627 DUMPBIN
628 LD
629 FGREP
630 EGREP
631 GREP
632 SED
633 host_os
634 host_vendor
635 host_cpu
636 host
637 build_os
638 build_vendor
639 build_cpu
640 build
641 RANLIB
642 AR
643 CPP
644 OBJEXT
645 EXEEXT
646 ac_ct_CC
647 CC
648 editor
649 secure_path
650 netsvc_conf
651 nsswitch_conf
652 ldap_secret
653 ldap_conf
654 path_info
655 root_sudo
656 insults
657 tty_tickets
658 passwd_tries
659 env_reset
660 env_editor
661 runas_default
662 fqdn
663 badpass_message
664 mailsub
665 mailto
666 mail_no_perms
667 mail_no_host
668 mail_no_user
669 ignore_dot
670 loglen
671 badpri
672 goodpri
673 logfac
674 lecture
675 long_otp_prompt
676 passprompt
677 umask_override
678 sudo_umask
679 password_timeout
680 timeout
681 timedir
682 iolog_dir
683 LT_STATIC
684 LIBDL
685 CONFIGURE_ARGS
686 ac_config_libobj_dir
687 LIBTOOL_DEPS
688 ZLIB_SRC
689 ZLIB
690 LOGINCAP_USAGE
691 LDAP
692 SELINUX_USAGE
693 BSDAUTH_USAGE
694 DONT_LEAK_PATH_INFO
695 INSTALL_NOEXEC
696 noexec_file
697 SOEXT
698 PLUGINDIR
699 NOEXECDIR
700 NOEXECFILE
701 mansrcdir
702 mansectform
703 mansectsu
704 devdir
705 SEMAN
706 LCMAN
707 BAMAN
708 DEV
709 SUDOERS_GID
710 SUDOERS_UID
711 SUDOERS_MODE
712 MAN_POSTINSTALL
713 MANTYPE
714 AUTH_OBJS
715 OSDEFS
716 GETGROUPS_LIB
717 REPLAY_LIBS
718 AFS_LIBS
719 NET_LIBS
720 SUDOERS_LIBS
721 SUDO_LIBS
722 SUDO_OBJS
723 SUDOERS_OBJS
724 COMMON_OBJS
725 LTLDFLAGS
726 SUDOERS_LDFLAGS
727 LDFLAGS
728 CPPFLAGS
729 PROGS
730 CFLAGS
731 LIBTOOL
732 HAVE_BSM_AUDIT
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 with_otp_only
775 with_alertmail
776 with_devel
777 with_CC
778 with_rpath
779 with_blibpath
780 with_bsm_audit
781 with_linux_audit
782 with_incpath
783 with_libpath
784 with_libraries
785 with_efence
786 with_csops
787 with_passwd
788 with_skey
789 with_opie
790 with_long_otp_prompt
791 with_SecurID
792 with_fwtk
793 with_kerb4
794 with_kerb5
795 with_aixauth
796 with_pam
797 with_AFS
798 with_DCE
799 with_logincap
800 with_bsdauth
801 with_project
802 with_lecture
803 with_logging
804 with_logfac
805 with_goodpri
806 with_badpri
807 with_logpath
808 with_loglen
809 with_ignore_dot
810 with_mail_if_no_user
811 with_mail_if_no_host
812 with_mail_if_noperms
813 with_mailto
814 with_mailsubject
815 with_passprompt
816 with_badpass_message
817 with_fqdn
818 with_timedir
819 with_iologdir
820 with_sendmail
821 with_sudoers_mode
822 with_sudoers_uid
823 with_sudoers_gid
824 with_umask
825 with_umask_override
826 with_runas_default
827 with_exempt
828 with_editor
829 with_env_editor
830 with_passwd_tries
831 with_timeout
832 with_password_timeout
833 with_tty_tickets
834 with_insults
835 with_all_insults
836 with_classic_insults
837 with_csops_insults
838 with_hal_insults
839 with_goons_insults
840 with_nsswitch
841 with_ldap
842 with_ldap_conf_file
843 with_ldap_secret_file
844 with_pc_insults
845 with_secure_path
846 with_interfaces
847 with_stow
848 with_askpass
849 with_plugindir
850 enable_authentication
851 enable_root_mailer
852 enable_setreuid
853 enable_setresuid
854 enable_shadow
855 enable_root_sudo
856 enable_log_host
857 enable_noargs_shell
858 enable_shell_sets_home
859 enable_path_info
860 enable_env_debug
861 enable_zlib
862 enable_env_reset
863 enable_warnings
864 enable_admin_flag
865 with_selinux
866 enable_gss_krb5_ccache_name
867 enable_shared
868 enable_static
869 with_pic
870 enable_fast_install
871 with_gnu_ld
872 enable_libtool_lock
873 with_noexec
874 with_netsvc
875 enable_sia
876 enable_largefile
877 with_pam_login
878 enable_pam_session
879 '
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP
889 YACC
890 YFLAGS'
891
892
893 # Initialize some variables set by options.
894 ac_init_help=
895 ac_init_version=false
896 ac_unrecognized_opts=
897 ac_unrecognized_sep=
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
900 cache_file=/dev/null
901 exec_prefix=NONE
902 no_create=
903 no_recursion=
904 prefix=NONE
905 program_prefix=NONE
906 program_suffix=NONE
907 program_transform_name=s,x,x,
908 silent=
909 site=
910 srcdir=
911 verbose=
912 x_includes=NONE
913 x_libraries=NONE
914
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 includedir='${prefix}/include'
930 oldincludedir='/usr/include'
931 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932 infodir='${datarootdir}/info'
933 htmldir='${docdir}'
934 dvidir='${docdir}'
935 pdfdir='${docdir}'
936 psdir='${docdir}'
937 libdir='${exec_prefix}/lib'
938 localedir='${datarootdir}/locale'
939 mandir='${datarootdir}/man'
940
941 ac_prev=
942 ac_dashdash=
943 for ac_option
944 do
945   # If the previous option needs an argument, assign it.
946   if test -n "$ac_prev"; then
947     eval $ac_prev=\$ac_option
948     ac_prev=
949     continue
950   fi
951
952   case $ac_option in
953   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954   *)    ac_optarg=yes ;;
955   esac
956
957   # Accept the important Cygnus configure options, so we can diagnose typos.
958
959   case $ac_dashdash$ac_option in
960   --)
961     ac_dashdash=yes ;;
962
963   -bindir | --bindir | --bindi | --bind | --bin | --bi)
964     ac_prev=bindir ;;
965   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966     bindir=$ac_optarg ;;
967
968   -build | --build | --buil | --bui | --bu)
969     ac_prev=build_alias ;;
970   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971     build_alias=$ac_optarg ;;
972
973   -cache-file | --cache-file | --cache-fil | --cache-fi \
974   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975     ac_prev=cache_file ;;
976   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978     cache_file=$ac_optarg ;;
979
980   --config-cache | -C)
981     cache_file=config.cache ;;
982
983   -datadir | --datadir | --datadi | --datad)
984     ac_prev=datadir ;;
985   -datadir=* | --datadir=* | --datadi=* | --datad=*)
986     datadir=$ac_optarg ;;
987
988   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989   | --dataroo | --dataro | --datar)
990     ac_prev=datarootdir ;;
991   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993     datarootdir=$ac_optarg ;;
994
995   -disable-* | --disable-*)
996     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999       as_fn_error "invalid feature name: $ac_useropt"
1000     ac_useropt_orig=$ac_useropt
1001     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002     case $ac_user_opts in
1003       *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007          ac_unrecognized_sep=', ';;
1008     esac
1009     eval enable_$ac_useropt=no ;;
1010
1011   -docdir | --docdir | --docdi | --doc | --do)
1012     ac_prev=docdir ;;
1013   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014     docdir=$ac_optarg ;;
1015
1016   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017     ac_prev=dvidir ;;
1018   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019     dvidir=$ac_optarg ;;
1020
1021   -enable-* | --enable-*)
1022     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025       as_fn_error "invalid feature name: $ac_useropt"
1026     ac_useropt_orig=$ac_useropt
1027     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028     case $ac_user_opts in
1029       *"
1030 "enable_$ac_useropt"
1031 "*) ;;
1032       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033          ac_unrecognized_sep=', ';;
1034     esac
1035     eval enable_$ac_useropt=\$ac_optarg ;;
1036
1037   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039   | --exec | --exe | --ex)
1040     ac_prev=exec_prefix ;;
1041   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043   | --exec=* | --exe=* | --ex=*)
1044     exec_prefix=$ac_optarg ;;
1045
1046   -gas | --gas | --ga | --g)
1047     # Obsolete; use --with-gas.
1048     with_gas=yes ;;
1049
1050   -help | --help | --hel | --he | -h)
1051     ac_init_help=long ;;
1052   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053     ac_init_help=recursive ;;
1054   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055     ac_init_help=short ;;
1056
1057   -host | --host | --hos | --ho)
1058     ac_prev=host_alias ;;
1059   -host=* | --host=* | --hos=* | --ho=*)
1060     host_alias=$ac_optarg ;;
1061
1062   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063     ac_prev=htmldir ;;
1064   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065   | --ht=*)
1066     htmldir=$ac_optarg ;;
1067
1068   -includedir | --includedir | --includedi | --included | --include \
1069   | --includ | --inclu | --incl | --inc)
1070     ac_prev=includedir ;;
1071   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072   | --includ=* | --inclu=* | --incl=* | --inc=*)
1073     includedir=$ac_optarg ;;
1074
1075   -infodir | --infodir | --infodi | --infod | --info | --inf)
1076     ac_prev=infodir ;;
1077   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078     infodir=$ac_optarg ;;
1079
1080   -libdir | --libdir | --libdi | --libd)
1081     ac_prev=libdir ;;
1082   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083     libdir=$ac_optarg ;;
1084
1085   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086   | --libexe | --libex | --libe)
1087     ac_prev=libexecdir ;;
1088   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089   | --libexe=* | --libex=* | --libe=*)
1090     libexecdir=$ac_optarg ;;
1091
1092   -localedir | --localedir | --localedi | --localed | --locale)
1093     ac_prev=localedir ;;
1094   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095     localedir=$ac_optarg ;;
1096
1097   -localstatedir | --localstatedir | --localstatedi | --localstated \
1098   | --localstate | --localstat | --localsta | --localst | --locals)
1099     ac_prev=localstatedir ;;
1100   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102     localstatedir=$ac_optarg ;;
1103
1104   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105     ac_prev=mandir ;;
1106   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107     mandir=$ac_optarg ;;
1108
1109   -nfp | --nfp | --nf)
1110     # Obsolete; use --without-fp.
1111     with_fp=no ;;
1112
1113   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114   | --no-cr | --no-c | -n)
1115     no_create=yes ;;
1116
1117   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119     no_recursion=yes ;;
1120
1121   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123   | --oldin | --oldi | --old | --ol | --o)
1124     ac_prev=oldincludedir ;;
1125   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128     oldincludedir=$ac_optarg ;;
1129
1130   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131     ac_prev=prefix ;;
1132   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133     prefix=$ac_optarg ;;
1134
1135   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136   | --program-pre | --program-pr | --program-p)
1137     ac_prev=program_prefix ;;
1138   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140     program_prefix=$ac_optarg ;;
1141
1142   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143   | --program-suf | --program-su | --program-s)
1144     ac_prev=program_suffix ;;
1145   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147     program_suffix=$ac_optarg ;;
1148
1149   -program-transform-name | --program-transform-name \
1150   | --program-transform-nam | --program-transform-na \
1151   | --program-transform-n | --program-transform- \
1152   | --program-transform | --program-transfor \
1153   | --program-transfo | --program-transf \
1154   | --program-trans | --program-tran \
1155   | --progr-tra | --program-tr | --program-t)
1156     ac_prev=program_transform_name ;;
1157   -program-transform-name=* | --program-transform-name=* \
1158   | --program-transform-nam=* | --program-transform-na=* \
1159   | --program-transform-n=* | --program-transform-=* \
1160   | --program-transform=* | --program-transfor=* \
1161   | --program-transfo=* | --program-transf=* \
1162   | --program-trans=* | --program-tran=* \
1163   | --progr-tra=* | --program-tr=* | --program-t=*)
1164     program_transform_name=$ac_optarg ;;
1165
1166   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167     ac_prev=pdfdir ;;
1168   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169     pdfdir=$ac_optarg ;;
1170
1171   -psdir | --psdir | --psdi | --psd | --ps)
1172     ac_prev=psdir ;;
1173   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174     psdir=$ac_optarg ;;
1175
1176   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177   | -silent | --silent | --silen | --sile | --sil)
1178     silent=yes ;;
1179
1180   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181     ac_prev=sbindir ;;
1182   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183   | --sbi=* | --sb=*)
1184     sbindir=$ac_optarg ;;
1185
1186   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188   | --sharedst | --shareds | --shared | --share | --shar \
1189   | --sha | --sh)
1190     ac_prev=sharedstatedir ;;
1191   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194   | --sha=* | --sh=*)
1195     sharedstatedir=$ac_optarg ;;
1196
1197   -site | --site | --sit)
1198     ac_prev=site ;;
1199   -site=* | --site=* | --sit=*)
1200     site=$ac_optarg ;;
1201
1202   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203     ac_prev=srcdir ;;
1204   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205     srcdir=$ac_optarg ;;
1206
1207   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208   | --syscon | --sysco | --sysc | --sys | --sy)
1209     ac_prev=sysconfdir ;;
1210   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212     sysconfdir=$ac_optarg ;;
1213
1214   -target | --target | --targe | --targ | --tar | --ta | --t)
1215     ac_prev=target_alias ;;
1216   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217     target_alias=$ac_optarg ;;
1218
1219   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220     verbose=yes ;;
1221
1222   -version | --version | --versio | --versi | --vers | -V)
1223     ac_init_version=: ;;
1224
1225   -with-* | --with-*)
1226     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227     # Reject names that are not valid shell variable names.
1228     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229       as_fn_error "invalid package name: $ac_useropt"
1230     ac_useropt_orig=$ac_useropt
1231     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232     case $ac_user_opts in
1233       *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237          ac_unrecognized_sep=', ';;
1238     esac
1239     eval with_$ac_useropt=\$ac_optarg ;;
1240
1241   -without-* | --without-*)
1242     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243     # Reject names that are not valid shell variable names.
1244     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245       as_fn_error "invalid package name: $ac_useropt"
1246     ac_useropt_orig=$ac_useropt
1247     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248     case $ac_user_opts in
1249       *"
1250 "with_$ac_useropt"
1251 "*) ;;
1252       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253          ac_unrecognized_sep=', ';;
1254     esac
1255     eval with_$ac_useropt=no ;;
1256
1257   --x)
1258     # Obsolete; use --with-x.
1259     with_x=yes ;;
1260
1261   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262   | --x-incl | --x-inc | --x-in | --x-i)
1263     ac_prev=x_includes ;;
1264   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266     x_includes=$ac_optarg ;;
1267
1268   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270     ac_prev=x_libraries ;;
1271   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273     x_libraries=$ac_optarg ;;
1274
1275   -*) as_fn_error "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information."
1277     ;;
1278
1279   *=*)
1280     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281     # Reject names that are not valid shell variable names.
1282     case $ac_envvar in #(
1283       '' | [0-9]* | *[!_$as_cr_alnum]* )
1284       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1285     esac
1286     eval $ac_envvar=\$ac_optarg
1287     export $ac_envvar ;;
1288
1289   *)
1290     # FIXME: should be removed in autoconf 3.0.
1291     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1295     ;;
1296
1297   esac
1298 done
1299
1300 if test -n "$ac_prev"; then
1301   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302   as_fn_error "missing argument to $ac_option"
1303 fi
1304
1305 if test -n "$ac_unrecognized_opts"; then
1306   case $enable_option_checking in
1307     no) ;;
1308     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1309     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310   esac
1311 fi
1312
1313 # Check all directory arguments for consistency.
1314 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315                 datadir sysconfdir sharedstatedir localstatedir includedir \
1316                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317                 libdir localedir mandir
1318 do
1319   eval ac_val=\$$ac_var
1320   # Remove trailing slashes.
1321   case $ac_val in
1322     */ )
1323       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324       eval $ac_var=\$ac_val;;
1325   esac
1326   # Be sure to have absolute directory names.
1327   case $ac_val in
1328     [\\/$]* | ?:[\\/]* )  continue;;
1329     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330   esac
1331   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1332 done
1333
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1340
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343   if test "x$build_alias" = x; then
1344     cross_compiling=maybe
1345     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1346     If a cross compiler is detected then cross compile mode will be used." >&2
1347   elif test "x$build_alias" != "x$host_alias"; then
1348     cross_compiling=yes
1349   fi
1350 fi
1351
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355 test "$silent" = yes && exec 6>/dev/null
1356
1357
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361   as_fn_error "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363   as_fn_error "pwd does not report name of working directory"
1364
1365
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368   ac_srcdir_defaulted=yes
1369   # Try the directory containing this script, then the parent directory.
1370   ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372          X"$as_myself" : 'X\(//\)[^/]' \| \
1373          X"$as_myself" : 'X\(//\)$' \| \
1374          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\/\)[^/].*/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\/\)$/{
1385             s//\1/
1386             q
1387           }
1388           /^X\(\/\).*/{
1389             s//\1/
1390             q
1391           }
1392           s/.*/./; q'`
1393   srcdir=$ac_confdir
1394   if test ! -r "$srcdir/$ac_unique_file"; then
1395     srcdir=..
1396   fi
1397 else
1398   ac_srcdir_defaulted=no
1399 fi
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1403 fi
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1407         pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410   srcdir=.
1411 fi
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420   eval ac_env_${ac_var}_value=\$${ac_var}
1421   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429   # Omit some internal or obsolete options to make the list less imposing.
1430   # This message is too long to be a string in the A/UX 3.1 sh.
1431   cat <<_ACEOF
1432 \`configure' configures sudo 1.8.1p2 to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE.  See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442   -h, --help              display this help and exit
1443       --help=short        display options specific to this package
1444       --help=recursive    display the short help of all the included packages
1445   -V, --version           display version information and exit
1446   -q, --quiet, --silent   do not print \`checking...' messages
1447       --cache-file=FILE   cache test results in FILE [disabled]
1448   -C, --config-cache      alias for \`--cache-file=config.cache'
1449   -n, --no-create         do not create output files
1450       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453   --prefix=PREFIX         install architecture-independent files in PREFIX
1454                           [$ac_default_prefix]
1455   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1456                           [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466   --bindir=DIR            user executables [EPREFIX/bin]
1467   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1468   --libexecdir=DIR        program executables [EPREFIX/libexec]
1469   --sysconfdir=DIR        read-only single-machine data [/etc]
1470   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1471   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1472   --libdir=DIR            object code libraries [EPREFIX/lib]
1473   --includedir=DIR        C header files [PREFIX/include]
1474   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1475   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1476   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1477   --infodir=DIR           info documentation [DATAROOTDIR/info]
1478   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1479   --mandir=DIR            man documentation [DATAROOTDIR/man]
1480   --docdir=DIR            documentation root [DATAROOTDIR/doc/sudo]
1481   --htmldir=DIR           html documentation [DOCDIR]
1482   --dvidir=DIR            dvi documentation [DOCDIR]
1483   --pdfdir=DIR            pdf documentation [DOCDIR]
1484   --psdir=DIR             ps documentation [DOCDIR]
1485 _ACEOF
1486
1487   cat <<\_ACEOF
1488
1489 System types:
1490   --build=BUILD     configure for building on BUILD [guessed]
1491   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1492 _ACEOF
1493 fi
1494
1495 if test -n "$ac_init_help"; then
1496   case $ac_init_help in
1497      short | recursive ) echo "Configuration of sudo 1.8.1p2:";;
1498    esac
1499   cat <<\_ACEOF
1500
1501 Optional Features:
1502   --disable-option-checking  ignore unrecognized --enable/--with options
1503   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1504   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1505   --disable-authentication
1506                           Do not require authentication by default
1507   --disable-root-mailer   Don't run the mailer as root, run as the user
1508   --disable-setreuid      Don't try to use the setreuid() function
1509   --disable-setresuid     Don't try to use the setresuid() function
1510   --disable-shadow        Never use shadow passwords
1511   --disable-root-sudo     Don't allow root to run sudo
1512   --enable-log-host       Log the hostname in the log file
1513   --enable-noargs-shell   If sudo is given no arguments run a shell
1514   --enable-shell-sets-home
1515                           Set $HOME to target user in shell mode
1516   --disable-path-info     Print 'command not allowed' not 'command not found'
1517   --enable-env-debug      Whether to enable environment debugging.
1518   --enable-zlib[=PATH]    Whether to enable or disable zlib
1519   --enable-env-reset      Whether to enable environment resetting by default.
1520   --enable-warnings       Whether to enable compiler warnings
1521   --enable-admin-flag     Whether to create a Ubuntu-style admin flag file
1522   --enable-gss-krb5-ccache-name
1523                           Use GSS-API to set the Kerberos V cred cache name
1524   --enable-shared[=PKGS]  build shared libraries [default=yes]
1525   --enable-static[=PKGS]  build static libraries [default=yes]
1526   --enable-fast-install[=PKGS]
1527                           optimize for fast installation [default=yes]
1528   --disable-libtool-lock  avoid locking (might break parallel builds)
1529   --disable-sia           Disable SIA on Digital UNIX
1530   --disable-largefile     omit support for large files
1531   --disable-pam-session   Disable PAM session support
1532
1533 Optional Packages:
1534   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1535   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1536   --with-otp-only         deprecated
1537   --with-alertmail        deprecated
1538   --with-devel            add development options
1539   --with-CC               C compiler to use
1540   --with-rpath            pass -R flag in addition to -L for lib paths
1541   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1542   --with-bsm-audit        enable BSM audit support
1543   --with-linux-audit      enable Linux audit support
1544   --with-incpath          additional places to look for include files
1545   --with-libpath          additional places to look for libraries
1546   --with-libraries        additional libraries to link with
1547   --with-efence           link with -lefence for malloc() debugging
1548   --with-csops            add CSOps standard options
1549   --without-passwd        don't use passwd/shadow file for authentication
1550   --with-skey=DIR         enable S/Key support
1551   --with-opie=DIR         enable OPIE support
1552   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1553   --with-SecurID[=DIR]    enable SecurID support
1554   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1555   --with-kerb4[=DIR]      enable Kerberos IV support
1556   --with-kerb5[=DIR]      enable Kerberos V support
1557   --with-aixauth          enable AIX general authentication support
1558   --with-pam              enable PAM support
1559   --with-AFS              enable AFS support
1560   --with-DCE              enable DCE support
1561   --with-logincap         enable BSD login class support
1562   --with-bsdauth          enable BSD authentication support
1563   --with-project          enable Solaris project support
1564   --without-lecture       don't print lecture for first-time sudoer
1565   --with-logging          log via syslog, file, or both
1566   --with-logfac           syslog facility to log with (default is "auth")
1567   --with-goodpri          syslog priority for commands (def is "notice")
1568   --with-badpri           syslog priority for failures (def is "alert")
1569   --with-logpath          path to the sudo log file
1570   --with-loglen           maximum length of a log file line (default is 80)
1571   --with-ignore-dot       ignore '.' in the PATH
1572   --without-mail-if-no-user
1573                           do not send mail if user not in sudoers
1574   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1575   --with-mail-if-noperms  send mail if user not allowed to run command
1576   --with-mailto           who should get sudo mail (default is "root")
1577   --with-mailsubject      subject of sudo mail
1578   --with-passprompt       default password prompt
1579   --with-badpass-message  message the user sees when the password is wrong
1580   --with-fqdn             expect fully qualified hosts in sudoers
1581   --with-timedir          path to the sudo timestamp dir
1582   --with-iologdir=DIR     directory to store sudo I/O log files in
1583   --with-sendmail         set path to sendmail
1584   --without-sendmail      do not send mail at all
1585   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1586   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1587   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1588   --with-umask            umask with which the prog should run (default is
1589                           022)
1590   --without-umask         Preserves the umask of the user invoking sudo.
1591   --with-umask-override   Use the umask specified in sudoers even if it is
1592                           less restrictive than the user's.
1593   --with-runas-default    User to run commands as (default is "root")
1594   --with-exempt=group     no passwd needed for users in this group
1595   --with-editor=path      Default editor for visudo (defaults to vi)
1596   --with-env-editor       Use the environment variable EDITOR for visudo
1597   --with-passwd-tries     number of tries to enter password (default is 3)
1598   --with-timeout          minutes before sudo asks for passwd again (def is 5
1599                           minutes)
1600   --with-password-timeout passwd prompt timeout in minutes (default is 5
1601                           minutes)
1602   --with-tty-tickets      use a different ticket file for each tty
1603   --with-insults          insult the user for entering an incorrect password
1604   --with-all-insults      include all the sudo insult sets
1605   --with-classic-insults  include the insults from the "classic" sudo
1606   --with-csops-insults    include CSOps insults
1607   --with-hal-insults      include 2001-like insults
1608   --with-goons-insults    include the insults from the "Goon Show"
1609   --with-nsswitch[=PATH]  path to nsswitch.conf
1610   --with-ldap[=DIR]       enable LDAP support
1611   --with-ldap-conf-file   path to LDAP configuration file
1612   --with-ldap-secret-file path to LDAP secret password file
1613   --with-pc-insults       replace politically incorrect insults with less
1614                           offensive ones
1615   --with-secure-path      override the user's path with a built-in one
1616   --without-interfaces    don't try to read the ip addr of ether interfaces
1617   --with-stow             properly handle GNU stow packaging
1618   --with-askpass=PATH     Fully qualified pathname of askpass helper
1619   --with-plugindir        set directory to load plugins from
1620   --with-selinux          enable SELinux support
1621   --with-pic              try to use only PIC/non-PIC objects [default=use
1622                           both]
1623   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1624   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1625   --with-netsvc[=PATH]    path to netsvc.conf
1626   --with-pam-login        enable specific PAM session for sudo -i
1627
1628 Some influential environment variables:
1629   CC          C compiler command
1630   CFLAGS      C compiler flags
1631   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1632               nonstandard directory <lib dir>
1633   LIBS        libraries to pass to the linker, e.g. -l<library>
1634   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1635               you have headers in a nonstandard directory <include dir>
1636   CPP         C preprocessor
1637   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1638               the first program found out of: `bison -y', `byacc', `yacc'.
1639   YFLAGS      The list of arguments that will be passed by default to $YACC.
1640               This script will default YFLAGS to the empty string to avoid a
1641               default value of `-d' given by some make applications.
1642
1643 Use these variables to override the choices made by `configure' or to help
1644 it to find libraries and programs with nonstandard names/locations.
1645
1646 Report bugs to <http://www.sudo.ws/bugs/>.
1647 _ACEOF
1648 ac_status=$?
1649 fi
1650
1651 if test "$ac_init_help" = "recursive"; then
1652   # If there are subdirs, report their specific --help.
1653   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654     test -d "$ac_dir" ||
1655       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656       continue
1657     ac_builddir=.
1658
1659 case "$ac_dir" in
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *)
1662   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663   # A ".." for each directory in $ac_dir_suffix.
1664   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665   case $ac_top_builddir_sub in
1666   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668   esac ;;
1669 esac
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1674
1675 case $srcdir in
1676   .)  # We are building in place.
1677     ac_srcdir=.
1678     ac_top_srcdir=$ac_top_builddir_sub
1679     ac_abs_top_srcdir=$ac_pwd ;;
1680   [\\/]* | ?:[\\/]* )  # Absolute name.
1681     ac_srcdir=$srcdir$ac_dir_suffix;
1682     ac_top_srcdir=$srcdir
1683     ac_abs_top_srcdir=$srcdir ;;
1684   *) # Relative name.
1685     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686     ac_top_srcdir=$ac_top_build_prefix$srcdir
1687     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 esac
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690
1691     cd "$ac_dir" || { ac_status=$?; continue; }
1692     # Check for guested configure.
1693     if test -f "$ac_srcdir/configure.gnu"; then
1694       echo &&
1695       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696     elif test -f "$ac_srcdir/configure"; then
1697       echo &&
1698       $SHELL "$ac_srcdir/configure" --help=recursive
1699     else
1700       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701     fi || ac_status=$?
1702     cd "$ac_pwd" || { ac_status=$?; break; }
1703   done
1704 fi
1705
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1708   cat <<\_ACEOF
1709 sudo configure 1.8.1p2
1710 generated by GNU Autoconf 2.65
1711
1712 Copyright (C) 2009 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1715 _ACEOF
1716   exit
1717 fi
1718
1719 ## ------------------------ ##
1720 ## Autoconf initialization. ##
1721 ## ------------------------ ##
1722
1723 # ac_fn_c_try_compile LINENO
1724 # --------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_compile ()
1727 {
1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729   rm -f conftest.$ac_objext
1730   if { { ac_try="$ac_compile"
1731 case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_compile") 2>conftest.err
1738   ac_status=$?
1739   if test -s conftest.err; then
1740     grep -v '^ *+' conftest.err >conftest.er1
1741     cat conftest.er1 >&5
1742     mv -f conftest.er1 conftest.err
1743   fi
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; } && {
1746          test -z "$ac_c_werror_flag" ||
1747          test ! -s conftest.err
1748        } && test -s conftest.$ac_objext; then :
1749   ac_retval=0
1750 else
1751   $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754         ac_retval=1
1755 fi
1756   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757   as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_compile
1760
1761 # ac_fn_c_try_link LINENO
1762 # -----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_link ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   rm -f conftest.$ac_objext conftest$ac_exeext
1768   if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771   *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775   (eval "$ac_link") 2>conftest.err
1776   ac_status=$?
1777   if test -s conftest.err; then
1778     grep -v '^ *+' conftest.err >conftest.er1
1779     cat conftest.er1 >&5
1780     mv -f conftest.er1 conftest.err
1781   fi
1782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783   test $ac_status = 0; } && {
1784          test -z "$ac_c_werror_flag" ||
1785          test ! -s conftest.err
1786        } && test -s conftest$ac_exeext && {
1787          test "$cross_compiling" = yes ||
1788          $as_test_x conftest$ac_exeext
1789        }; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795         ac_retval=1
1796 fi
1797   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799   # interfere with the next link command; also delete a directory that is
1800   # left behind by Apple's compiler.  We do this before executing the actions.
1801   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803   as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_link
1806
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_cpp ()
1811 {
1812   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813   if { { ac_try="$ac_cpp conftest.$ac_ext"
1814 case "(($ac_try" in
1815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816   *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821   ac_status=$?
1822   if test -s conftest.err; then
1823     grep -v '^ *+' conftest.err >conftest.er1
1824     cat conftest.er1 >&5
1825     mv -f conftest.er1 conftest.err
1826   fi
1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828   test $ac_status = 0; } >/dev/null && {
1829          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830          test ! -s conftest.err
1831        }; then :
1832   ac_retval=0
1833 else
1834   $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837     ac_retval=1
1838 fi
1839   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840   as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_cpp
1843
1844 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists and can be compiled using the include files in
1847 # INCLUDES, setting the cache variable VAR accordingly.
1848 ac_fn_c_check_header_compile ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 $4
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862   eval "$3=yes"
1863 else
1864   eval "$3=no"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 fi
1868 eval ac_res=\$$3
1869                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872
1873 } # ac_fn_c_check_header_compile
1874
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1879 ac_fn_c_try_run ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885   *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889   (eval "$ac_link") 2>&5
1890   ac_status=$?
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893   { { case "(($ac_try" in
1894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895   *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899   (eval "$ac_try") 2>&5
1900   ac_status=$?
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; }; }; then :
1903   ac_retval=0
1904 else
1905   $as_echo "$as_me: program exited with status $ac_status" >&5
1906        $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909        ac_retval=$ac_status
1910 fi
1911   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913   as_fn_set_status $ac_retval
1914
1915 } # ac_fn_c_try_run
1916
1917 # ac_fn_c_check_func LINENO FUNC VAR
1918 # ----------------------------------
1919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1920 ac_fn_c_check_func ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1926   $as_echo_n "(cached) " >&6
1927 else
1928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1932 #define $2 innocuous_$2
1933
1934 /* System header to define __stub macros and hopefully few prototypes,
1935     which can conflict with char $2 (); below.
1936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937     <limits.h> exists even on freestanding compilers.  */
1938
1939 #ifdef __STDC__
1940 # include <limits.h>
1941 #else
1942 # include <assert.h>
1943 #endif
1944
1945 #undef $2
1946
1947 /* Override any GCC internal prototype to avoid an error.
1948    Use char because int might match the return type of a GCC
1949    builtin and then its argument prototype would still apply.  */
1950 #ifdef __cplusplus
1951 extern "C"
1952 #endif
1953 char $2 ();
1954 /* The GNU C library defines this for functions which it implements
1955     to always fail with ENOSYS.  Some functions are actually named
1956     something starting with __ and the normal name is an alias.  */
1957 #if defined __stub_$2 || defined __stub___$2
1958 choke me
1959 #endif
1960
1961 int
1962 main ()
1963 {
1964 return $2 ();
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_link "$LINENO"; then :
1970   eval "$3=yes"
1971 else
1972   eval "$3=no"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext \
1975     conftest$ac_exeext conftest.$ac_ext
1976 fi
1977 eval ac_res=\$$3
1978                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981
1982 } # ac_fn_c_check_func
1983
1984 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1987 # the include files in INCLUDES and setting the cache variable VAR
1988 # accordingly.
1989 ac_fn_c_check_header_mongrel ()
1990 {
1991   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996   $as_echo_n "(cached) " >&6
1997 fi
1998 eval ac_res=\$$3
1999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 else
2002   # Is the header compilable?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2004 $as_echo_n "checking $2 usability... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h.  */
2007 $4
2008 #include <$2>
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011   ac_header_compiler=yes
2012 else
2013   ac_header_compiler=no
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2017 $as_echo "$ac_header_compiler" >&6; }
2018
2019 # Is the header present?
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2021 $as_echo_n "checking $2 presence... " >&6; }
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h.  */
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_cpp "$LINENO"; then :
2027   ac_header_preproc=yes
2028 else
2029   ac_header_preproc=no
2030 fi
2031 rm -f conftest.err conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2033 $as_echo "$ac_header_preproc" >&6; }
2034
2035 # So?  What about this header?
2036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2037   yes:no: )
2038     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2039 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2040     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042     ;;
2043   no:yes:* )
2044     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2045 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2046     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2047 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2048     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2049 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2050     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2051 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2052     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054 ( cat <<\_ASBOX
2055 ## --------------------------------------- ##
2056 ## Report this to http://www.sudo.ws/bugs/ ##
2057 ## --------------------------------------- ##
2058 _ASBOX
2059      ) | sed "s/^/$as_me: WARNING:     /" >&2
2060     ;;
2061 esac
2062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065   $as_echo_n "(cached) " >&6
2066 else
2067   eval "$3=\$ac_header_compiler"
2068 fi
2069 eval ac_res=\$$3
2070                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 fi
2073   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074
2075 } # ac_fn_c_check_header_mongrel
2076
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2082 {
2083   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2087   $as_echo_n "(cached) " >&6
2088 else
2089   eval "$3=no"
2090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h.  */
2092 $4
2093 int
2094 main ()
2095 {
2096 if (sizeof ($2))
2097          return 0;
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h.  */
2105 $4
2106 int
2107 main ()
2108 {
2109 if (sizeof (($2)))
2110             return 0;
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116
2117 else
2118   eval "$3=yes"
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 fi
2124 eval ac_res=\$$3
2125                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128
2129 } # ac_fn_c_check_type
2130
2131 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2132 # --------------------------------------------
2133 # Tries to find the compile-time value of EXPR in a program that includes
2134 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2135 # computed
2136 ac_fn_c_compute_int ()
2137 {
2138   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139   if test "$cross_compiling" = yes; then
2140     # Depending upon the size, compute the lo and hi bounds.
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h.  */
2143 $4
2144 int
2145 main ()
2146 {
2147 static int test_array [1 - 2 * !(($2) >= 0)];
2148 test_array [0] = 0
2149
2150   ;
2151   return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155   ac_lo=0 ac_mid=0
2156   while :; do
2157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h.  */
2159 $4
2160 int
2161 main ()
2162 {
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 test_array [0] = 0
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171   ac_hi=$ac_mid; break
2172 else
2173   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2174                         if test $ac_lo -le $ac_mid; then
2175                           ac_lo= ac_hi=
2176                           break
2177                         fi
2178                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181   done
2182 else
2183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h.  */
2185 $4
2186 int
2187 main ()
2188 {
2189 static int test_array [1 - 2 * !(($2) < 0)];
2190 test_array [0] = 0
2191
2192   ;
2193   return 0;
2194 }
2195 _ACEOF
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197   ac_hi=-1 ac_mid=-1
2198   while :; do
2199     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h.  */
2201 $4
2202 int
2203 main ()
2204 {
2205 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2206 test_array [0] = 0
2207
2208   ;
2209   return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213   ac_lo=$ac_mid; break
2214 else
2215   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2216                         if test $ac_mid -le $ac_hi; then
2217                           ac_lo= ac_hi=
2218                           break
2219                         fi
2220                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2221 fi
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223   done
2224 else
2225   ac_lo= ac_hi=
2226 fi
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 fi
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 # Binary search between lo and hi bounds.
2231 while test "x$ac_lo" != "x$ac_hi"; do
2232   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h.  */
2235 $4
2236 int
2237 main ()
2238 {
2239 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2240 test_array [0] = 0
2241
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247   ac_hi=$ac_mid
2248 else
2249   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 done
2253 case $ac_lo in #((
2254 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2255 '') ac_retval=1 ;;
2256 esac
2257   else
2258     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h.  */
2260 $4
2261 static long int longval () { return $2; }
2262 static unsigned long int ulongval () { return $2; }
2263 #include <stdio.h>
2264 #include <stdlib.h>
2265 int
2266 main ()
2267 {
2268
2269   FILE *f = fopen ("conftest.val", "w");
2270   if (! f)
2271     return 1;
2272   if (($2) < 0)
2273     {
2274       long int i = longval ();
2275       if (i != ($2))
2276         return 1;
2277       fprintf (f, "%ld", i);
2278     }
2279   else
2280     {
2281       unsigned long int i = ulongval ();
2282       if (i != ($2))
2283         return 1;
2284       fprintf (f, "%lu", i);
2285     }
2286   /* Do not output a trailing newline, as this causes \r\n confusion
2287      on some platforms.  */
2288   return ferror (f) || fclose (f) != 0;
2289
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 if ac_fn_c_try_run "$LINENO"; then :
2295   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2296 else
2297   ac_retval=1
2298 fi
2299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2300   conftest.$ac_objext conftest.beam conftest.$ac_ext
2301 rm -f conftest.val
2302
2303   fi
2304   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305   as_fn_set_status $ac_retval
2306
2307 } # ac_fn_c_compute_int
2308
2309 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2310 # ----------------------------------------------------
2311 # Tries to find if the field MEMBER exists in type AGGR, after including
2312 # INCLUDES, setting cache variable VAR accordingly.
2313 ac_fn_c_check_member ()
2314 {
2315   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2317 $as_echo_n "checking for $2.$3... " >&6; }
2318 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2319   $as_echo_n "(cached) " >&6
2320 else
2321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h.  */
2323 $5
2324 int
2325 main ()
2326 {
2327 static $2 ac_aggr;
2328 if (ac_aggr.$3)
2329 return 0;
2330   ;
2331   return 0;
2332 }
2333 _ACEOF
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335   eval "$4=yes"
2336 else
2337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h.  */
2339 $5
2340 int
2341 main ()
2342 {
2343 static $2 ac_aggr;
2344 if (sizeof ac_aggr.$3)
2345 return 0;
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351   eval "$4=yes"
2352 else
2353   eval "$4=no"
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 fi
2359 eval ac_res=\$$4
2360                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2363
2364 } # ac_fn_c_check_member
2365
2366 # ac_fn_c_check_decl LINENO SYMBOL VAR
2367 # ------------------------------------
2368 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2369 ac_fn_c_check_decl ()
2370 {
2371   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2373 $as_echo_n "checking whether $2 is declared... " >&6; }
2374 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2375   $as_echo_n "(cached) " >&6
2376 else
2377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h.  */
2379 $4
2380 int
2381 main ()
2382 {
2383 #ifndef $2
2384   (void) $2;
2385 #endif
2386
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 if ac_fn_c_try_compile "$LINENO"; then :
2392   eval "$3=yes"
2393 else
2394   eval "$3=no"
2395 fi
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 fi
2398 eval ac_res=\$$3
2399                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402
2403 } # ac_fn_c_check_decl
2404 cat >config.log <<_ACEOF
2405 This file contains any messages produced by compilers while
2406 running configure, to aid debugging if configure makes a mistake.
2407
2408 It was created by sudo $as_me 1.8.1p2, which was
2409 generated by GNU Autoconf 2.65.  Invocation command line was
2410
2411   $ $0 $@
2412
2413 _ACEOF
2414 exec 5>>config.log
2415 {
2416 cat <<_ASUNAME
2417 ## --------- ##
2418 ## Platform. ##
2419 ## --------- ##
2420
2421 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2422 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2423 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2424 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2425 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2426
2427 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2428 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2429
2430 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2431 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2432 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2433 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2434 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2435 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2436 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2437
2438 _ASUNAME
2439
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445     $as_echo "PATH: $as_dir"
2446   done
2447 IFS=$as_save_IFS
2448
2449 } >&5
2450
2451 cat >&5 <<_ACEOF
2452
2453
2454 ## ----------- ##
2455 ## Core tests. ##
2456 ## ----------- ##
2457
2458 _ACEOF
2459
2460
2461 # Keep a trace of the command line.
2462 # Strip out --no-create and --no-recursion so they do not pile up.
2463 # Strip out --silent because we don't want to record it for future runs.
2464 # Also quote any args containing shell meta-characters.
2465 # Make two passes to allow for proper duplicate-argument suppression.
2466 ac_configure_args=
2467 ac_configure_args0=
2468 ac_configure_args1=
2469 ac_must_keep_next=false
2470 for ac_pass in 1 2
2471 do
2472   for ac_arg
2473   do
2474     case $ac_arg in
2475     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2476     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2477     | -silent | --silent | --silen | --sile | --sil)
2478       continue ;;
2479     *\'*)
2480       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2481     esac
2482     case $ac_pass in
2483     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2484     2)
2485       as_fn_append ac_configure_args1 " '$ac_arg'"
2486       if test $ac_must_keep_next = true; then
2487         ac_must_keep_next=false # Got value, back to normal.
2488       else
2489         case $ac_arg in
2490           *=* | --config-cache | -C | -disable-* | --disable-* \
2491           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2492           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2493           | -with-* | --with-* | -without-* | --without-* | --x)
2494             case "$ac_configure_args0 " in
2495               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2496             esac
2497             ;;
2498           -* ) ac_must_keep_next=true ;;
2499         esac
2500       fi
2501       as_fn_append ac_configure_args " '$ac_arg'"
2502       ;;
2503     esac
2504   done
2505 done
2506 { ac_configure_args0=; unset ac_configure_args0;}
2507 { ac_configure_args1=; unset ac_configure_args1;}
2508
2509 # When interrupted or exit'd, cleanup temporary files, and complete
2510 # config.log.  We remove comments because anyway the quotes in there
2511 # would cause problems or look ugly.
2512 # WARNING: Use '\'' to represent an apostrophe within the trap.
2513 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2514 trap 'exit_status=$?
2515   # Save into config.log some information that might help in debugging.
2516   {
2517     echo
2518
2519     cat <<\_ASBOX
2520 ## ---------------- ##
2521 ## Cache variables. ##
2522 ## ---------------- ##
2523 _ASBOX
2524     echo
2525     # The following way of writing the cache mishandles newlines in values,
2526 (
2527   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2528     eval ac_val=\$$ac_var
2529     case $ac_val in #(
2530     *${as_nl}*)
2531       case $ac_var in #(
2532       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2534       esac
2535       case $ac_var in #(
2536       _ | IFS | as_nl) ;; #(
2537       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2538       *) { eval $ac_var=; unset $ac_var;} ;;
2539       esac ;;
2540     esac
2541   done
2542   (set) 2>&1 |
2543     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2544     *${as_nl}ac_space=\ *)
2545       sed -n \
2546         "s/'\''/'\''\\\\'\'''\''/g;
2547           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2548       ;; #(
2549     *)
2550       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2551       ;;
2552     esac |
2553     sort
2554 )
2555     echo
2556
2557     cat <<\_ASBOX
2558 ## ----------------- ##
2559 ## Output variables. ##
2560 ## ----------------- ##
2561 _ASBOX
2562     echo
2563     for ac_var in $ac_subst_vars
2564     do
2565       eval ac_val=\$$ac_var
2566       case $ac_val in
2567       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2568       esac
2569       $as_echo "$ac_var='\''$ac_val'\''"
2570     done | sort
2571     echo
2572
2573     if test -n "$ac_subst_files"; then
2574       cat <<\_ASBOX
2575 ## ------------------- ##
2576 ## File substitutions. ##
2577 ## ------------------- ##
2578 _ASBOX
2579       echo
2580       for ac_var in $ac_subst_files
2581       do
2582         eval ac_val=\$$ac_var
2583         case $ac_val in
2584         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2585         esac
2586         $as_echo "$ac_var='\''$ac_val'\''"
2587       done | sort
2588       echo
2589     fi
2590
2591     if test -s confdefs.h; then
2592       cat <<\_ASBOX
2593 ## ----------- ##
2594 ## confdefs.h. ##
2595 ## ----------- ##
2596 _ASBOX
2597       echo
2598       cat confdefs.h
2599       echo
2600     fi
2601     test "$ac_signal" != 0 &&
2602       $as_echo "$as_me: caught signal $ac_signal"
2603     $as_echo "$as_me: exit $exit_status"
2604   } >&5
2605   rm -f core *.core core.conftest.* &&
2606     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2607     exit $exit_status
2608 ' 0
2609 for ac_signal in 1 2 13 15; do
2610   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2611 done
2612 ac_signal=0
2613
2614 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2615 rm -f -r conftest* confdefs.h
2616
2617 $as_echo "/* confdefs.h */" > confdefs.h
2618
2619 # Predefined preprocessor variables.
2620
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_NAME "$PACKAGE_NAME"
2623 _ACEOF
2624
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2627 _ACEOF
2628
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2631 _ACEOF
2632
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_STRING "$PACKAGE_STRING"
2635 _ACEOF
2636
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2639 _ACEOF
2640
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_URL "$PACKAGE_URL"
2643 _ACEOF
2644
2645
2646 # Let the site file select an alternate cache file if it wants to.
2647 # Prefer an explicitly selected file to automatically selected ones.
2648 ac_site_file1=NONE
2649 ac_site_file2=NONE
2650 if test -n "$CONFIG_SITE"; then
2651   ac_site_file1=$CONFIG_SITE
2652 elif test "x$prefix" != xNONE; then
2653   ac_site_file1=$prefix/share/config.site
2654   ac_site_file2=$prefix/etc/config.site
2655 else
2656   ac_site_file1=$ac_default_prefix/share/config.site
2657   ac_site_file2=$ac_default_prefix/etc/config.site
2658 fi
2659 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2660 do
2661   test "x$ac_site_file" = xNONE && continue
2662   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2663     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2664 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2665     sed 's/^/| /' "$ac_site_file" >&5
2666     . "$ac_site_file"
2667   fi
2668 done
2669
2670 if test -r "$cache_file"; then
2671   # Some versions of bash will fail to source /dev/null (special files
2672   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2673   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2674     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2675 $as_echo "$as_me: loading cache $cache_file" >&6;}
2676     case $cache_file in
2677       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2678       *)                      . "./$cache_file";;
2679     esac
2680   fi
2681 else
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2683 $as_echo "$as_me: creating cache $cache_file" >&6;}
2684   >$cache_file
2685 fi
2686
2687 # Check that the precious variables saved in the cache have kept the same
2688 # value.
2689 ac_cache_corrupted=false
2690 for ac_var in $ac_precious_vars; do
2691   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2692   eval ac_new_set=\$ac_env_${ac_var}_set
2693   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2694   eval ac_new_val=\$ac_env_${ac_var}_value
2695   case $ac_old_set,$ac_new_set in
2696     set,)
2697       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2698 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2699       ac_cache_corrupted=: ;;
2700     ,set)
2701       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2702 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2703       ac_cache_corrupted=: ;;
2704     ,);;
2705     *)
2706       if test "x$ac_old_val" != "x$ac_new_val"; then
2707         # differences in whitespace do not lead to failure.
2708         ac_old_val_w=`echo x $ac_old_val`
2709         ac_new_val_w=`echo x $ac_new_val`
2710         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2711           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2712 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2713           ac_cache_corrupted=:
2714         else
2715           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2716 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2717           eval $ac_var=\$ac_old_val
2718         fi
2719         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2720 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2721         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2722 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2723       fi;;
2724   esac
2725   # Pass precious variables to config.status.
2726   if test "$ac_new_set" = set; then
2727     case $ac_new_val in
2728     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2729     *) ac_arg=$ac_var=$ac_new_val ;;
2730     esac
2731     case " $ac_configure_args " in
2732       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2733       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2734     esac
2735   fi
2736 done
2737 if $ac_cache_corrupted; then
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2741 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2742   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2743 fi
2744 ## -------------------- ##
2745 ## Main body of script. ##
2746 ## -------------------- ##
2747
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754
2755 ac_config_headers="$ac_config_headers config.h pathnames.h"
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2758 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844 #
2845 # Begin initial values for man page substitution
2846 #
2847 iolog_dir=/var/log/sudo-io
2848 timedir=/var/adm/sudo
2849 timeout=5
2850 password_timeout=5
2851 sudo_umask=0022
2852 umask_override=off
2853 passprompt="Password:"
2854 long_otp_prompt=off
2855 lecture=once
2856 logfac=auth
2857 goodpri=notice
2858 badpri=alert
2859 loglen=80
2860 ignore_dot=off
2861 mail_no_user=on
2862 mail_no_host=off
2863 mail_no_perms=off
2864 mailto=root
2865 mailsub="*** SECURITY information for %h ***"
2866 badpass_message="Sorry, try again."
2867 fqdn=off
2868 runas_default=root
2869 env_editor=off
2870 env_reset=on
2871 editor=vi
2872 passwd_tries=3
2873 tty_tickets=on
2874 insults=off
2875 root_sudo=on
2876 path_info=on
2877 ldap_conf=/etc/ldap.conf
2878 ldap_secret=/etc/ldap.secret
2879 netsvc_conf=/etc/netsvc.conf
2880 noexec_file=/usr/local/libexec/sudo_noexec.so
2881 nsswitch_conf=/etc/nsswitch.conf
2882 secure_path="not set"
2883 #
2884 # End initial values for man page substitution
2885 #
2886 INSTALL_NOEXEC=
2887 devdir='$(srcdir)'
2888 PROGS="sudo"
2889 : ${MANTYPE='man'}
2890 : ${mansrcdir='.'}
2891 : ${SUDOERS_MODE='0440'}
2892 : ${SUDOERS_UID='0'}
2893 : ${SUDOERS_GID='0'}
2894 DEV="#"
2895 LDAP="#"
2896 BAMAN=0
2897 LCMAN=0
2898 SEMAN=0
2899 ZLIB=
2900 ZLIB_SRC=
2901 AUTH_OBJS=
2902 AUTH_REG=
2903 AUTH_EXCL=
2904 AUTH_EXCL_DEF=
2905 AUTH_DEF=passwd
2906
2907 CHECKSHADOW=true
2908 shadow_defs=
2909 shadow_funcs=
2910 shadow_libs=
2911 shadow_libs_optional=
2912 CONFIGURE_ARGS="$@"
2913
2914
2915
2916
2917
2918 # Check whether --with-otp-only was given.
2919 if test "${with_otp_only+set}" = set; then :
2920   withval=$with_otp_only; case $with_otp_only in
2921     yes)        with_passwd="no"
2922                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
2923 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2924                 ;;
2925 esac
2926 fi
2927
2928
2929
2930 # Check whether --with-alertmail was given.
2931 if test "${with_alertmail+set}" = set; then :
2932   withval=$with_alertmail; case $with_alertmail in
2933     *)          with_mailto="$with_alertmail"
2934                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
2935 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2936                 ;;
2937 esac
2938 fi
2939
2940
2941
2942
2943 # Check whether --with-devel was given.
2944 if test "${with_devel+set}" = set; then :
2945   withval=$with_devel; case $with_devel in
2946     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
2947 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2948                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2949                 DEV=""
2950                 devdir=.
2951                 ;;
2952     no)         ;;
2953     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2954 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2955                 ;;
2956 esac
2957 fi
2958
2959
2960
2961 # Check whether --with-CC was given.
2962 if test "${with_CC+set}" = set; then :
2963   withval=$with_CC; case $with_CC in
2964     yes)        as_fn_error "\"must give --with-CC an argument.\"" "$LINENO" 5
2965                 ;;
2966     no)         as_fn_error "\"illegal argument: --without-CC.\"" "$LINENO" 5
2967                 ;;
2968     *)          CC=$with_CC
2969                 ;;
2970 esac
2971 fi
2972
2973
2974
2975 # Check whether --with-rpath was given.
2976 if test "${with_rpath+set}" = set; then :
2977   withval=$with_rpath; case $with_rpath in
2978     yes|no)     ;;
2979     *)          as_fn_error "\"--with-rpath does not take an argument.\"" "$LINENO" 5
2980                 ;;
2981 esac
2982 fi
2983
2984
2985
2986 # Check whether --with-blibpath was given.
2987 if test "${with_blibpath+set}" = set; then :
2988   withval=$with_blibpath; case $with_blibpath in
2989     yes|no)     ;;
2990     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
2991 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2992                 ;;
2993 esac
2994 fi
2995
2996
2997
2998 # Check whether --with-bsm-audit was given.
2999 if test "${with_bsm_audit+set}" = set; then :
3000   withval=$with_bsm_audit; case $with_bsm_audit in
3001     yes)        $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3002
3003                 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3004                 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3005                 ;;
3006     no)         ;;
3007     *)          as_fn_error "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3008                 ;;
3009 esac
3010 fi
3011
3012
3013 ac_ext=c
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 if test -n "$ac_tool_prefix"; then
3019   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_CC+set}" = set; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   if test -n "$CC"; then
3027   ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032   IFS=$as_save_IFS
3033   test -z "$as_dir" && as_dir=.
3034     for ac_exec_ext in '' $ac_executable_extensions; do
3035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038     break 2
3039   fi
3040 done
3041   done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$ac_cv_prog_CC"; then
3058   ac_ct_CC=$CC
3059   # Extract the first word of "gcc", so it can be a program name with args.
3060 set dummy gcc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3064   $as_echo_n "(cached) " >&6
3065 else
3066   if test -n "$ac_ct_CC"; then
3067   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072   IFS=$as_save_IFS
3073   test -z "$as_dir" && as_dir=.
3074     for ac_exec_ext in '' $ac_executable_extensions; do
3075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076     ac_cv_prog_ac_ct_CC="gcc"
3077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078     break 2
3079   fi
3080 done
3081   done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087 if test -n "$ac_ct_CC"; then
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3089 $as_echo "$ac_ct_CC" >&6; }
3090 else
3091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095   if test "x$ac_ct_CC" = x; then
3096     CC=""
3097   else
3098     case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3103 esac
3104     CC=$ac_ct_CC
3105   fi
3106 else
3107   CC="$ac_cv_prog_CC"
3108 fi
3109
3110 if test -z "$CC"; then
3111           if test -n "$ac_tool_prefix"; then
3112     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}cc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_CC+set}" = set; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   if test -n "$CC"; then
3120   ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125   IFS=$as_save_IFS
3126   test -z "$as_dir" && as_dir=.
3127     for ac_exec_ext in '' $ac_executable_extensions; do
3128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129     ac_cv_prog_CC="${ac_tool_prefix}cc"
3130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131     break 2
3132   fi
3133 done
3134   done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149   fi
3150 fi
3151 if test -z "$CC"; then
3152   # Extract the first word of "cc", so it can be a program name with args.
3153 set dummy cc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_CC+set}" = set; then :
3157   $as_echo_n "(cached) " >&6
3158 else
3159   if test -n "$CC"; then
3160   ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162   ac_prog_rejected=no
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3165 do
3166   IFS=$as_save_IFS
3167   test -z "$as_dir" && as_dir=.
3168     for ac_exec_ext in '' $ac_executable_extensions; do
3169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3171        ac_prog_rejected=yes
3172        continue
3173      fi
3174     ac_cv_prog_CC="cc"
3175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176     break 2
3177   fi
3178 done
3179   done
3180 IFS=$as_save_IFS
3181
3182 if test $ac_prog_rejected = yes; then
3183   # We found a bogon in the path, so make sure we never use it.
3184   set dummy $ac_cv_prog_CC
3185   shift
3186   if test $# != 0; then
3187     # We chose a different compiler from the bogus one.
3188     # However, it has the same basename, so the bogon will be chosen
3189     # first if we set CC to just the basename; use the full file name.
3190     shift
3191     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3192   fi
3193 fi
3194 fi
3195 fi
3196 CC=$ac_cv_prog_CC
3197 if test -n "$CC"; then
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199 $as_echo "$CC" >&6; }
3200 else
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205
3206 fi
3207 if test -z "$CC"; then
3208   if test -n "$ac_tool_prefix"; then
3209   for ac_prog in cl.exe
3210   do
3211     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if test "${ac_cv_prog_CC+set}" = set; then :
3216   $as_echo_n "(cached) " >&6
3217 else
3218   if test -n "$CC"; then
3219   ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224   IFS=$as_save_IFS
3225   test -z "$as_dir" && as_dir=.
3226     for ac_exec_ext in '' $ac_executable_extensions; do
3227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230     break 2
3231   fi
3232 done
3233   done
3234 IFS=$as_save_IFS
3235
3236 fi
3237 fi
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248     test -n "$CC" && break
3249   done
3250 fi
3251 if test -z "$CC"; then
3252   ac_ct_CC=$CC
3253   for ac_prog in cl.exe
3254 do
3255   # Extract the first word of "$ac_prog", so it can be a program name with args.
3256 set dummy $ac_prog; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3260   $as_echo_n "(cached) " >&6
3261 else
3262   if test -n "$ac_ct_CC"; then
3263   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268   IFS=$as_save_IFS
3269   test -z "$as_dir" && as_dir=.
3270     for ac_exec_ext in '' $ac_executable_extensions; do
3271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272     ac_cv_prog_ac_ct_CC="$ac_prog"
3273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274     break 2
3275   fi
3276 done
3277   done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283 if test -n "$ac_ct_CC"; then
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3285 $as_echo "$ac_ct_CC" >&6; }
3286 else
3287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292   test -n "$ac_ct_CC" && break
3293 done
3294
3295   if test "x$ac_ct_CC" = x; then
3296     CC=""
3297   else
3298     case $cross_compiling:$ac_tool_warned in
3299 yes:)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302 ac_tool_warned=yes ;;
3303 esac
3304     CC=$ac_ct_CC
3305   fi
3306 fi
3307
3308 fi
3309
3310
3311 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error "no acceptable C compiler found in \$PATH
3314 See \`config.log' for more details." "$LINENO" 5; }
3315
3316 # Provide some information about the compiler.
3317 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3318 set X $ac_compile
3319 ac_compiler=$2
3320 for ac_option in --version -v -V -qversion; do
3321   { { ac_try="$ac_compiler $ac_option >&5"
3322 case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3329   ac_status=$?
3330   if test -s conftest.err; then
3331     sed '10a\
3332 ... rest of stderr output deleted ...
3333          10q' conftest.err >conftest.er1
3334     cat conftest.er1 >&5
3335   fi
3336   rm -f conftest.er1 conftest.err
3337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338   test $ac_status = 0; }
3339 done
3340
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h.  */
3343
3344 int
3345 main ()
3346 {
3347
3348   ;
3349   return 0;
3350 }
3351 _ACEOF
3352 ac_clean_files_save=$ac_clean_files
3353 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3354 # Try to create an executable without -o first, disregard a.out.
3355 # It will help us diagnose broken compilers, and finding out an intuition
3356 # of exeext.
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3358 $as_echo_n "checking whether the C compiler works... " >&6; }
3359 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3360
3361 # The possible output files:
3362 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3363
3364 ac_rmfiles=
3365 for ac_file in $ac_files
3366 do
3367   case $ac_file in
3368     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3369     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3370   esac
3371 done
3372 rm -f $ac_rmfiles
3373
3374 if { { ac_try="$ac_link_default"
3375 case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381   (eval "$ac_link_default") 2>&5
3382   ac_status=$?
3383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384   test $ac_status = 0; }; then :
3385   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3386 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3387 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3388 # so that the user can short-circuit this test for compilers unknown to
3389 # Autoconf.
3390 for ac_file in $ac_files ''
3391 do
3392   test -f "$ac_file" || continue
3393   case $ac_file in
3394     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3395         ;;
3396     [ab].out )
3397         # We found the default executable, but exeext='' is most
3398         # certainly right.
3399         break;;
3400     *.* )
3401         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3402         then :; else
3403            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404         fi
3405         # We set ac_cv_exeext here because the later test for it is not
3406         # safe: cross compilers may not add the suffix if given an `-o'
3407         # argument, so we may need to know it at that point already.
3408         # Even if this section looks crufty: it has the advantage of
3409         # actually working.
3410         break;;
3411     * )
3412         break;;
3413   esac
3414 done
3415 test "$ac_cv_exeext" = no && ac_cv_exeext=
3416
3417 else
3418   ac_file=''
3419 fi
3420 if test -z "$ac_file"; then :
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 $as_echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428 { as_fn_set_status 77
3429 as_fn_error "C compiler cannot create executables
3430 See \`config.log' for more details." "$LINENO" 5; }; }
3431 else
3432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433 $as_echo "yes" >&6; }
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3436 $as_echo_n "checking for C compiler default output file name... " >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3438 $as_echo "$ac_file" >&6; }
3439 ac_exeext=$ac_cv_exeext
3440
3441 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3442 ac_clean_files=$ac_clean_files_save
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3444 $as_echo_n "checking for suffix of executables... " >&6; }
3445 if { { ac_try="$ac_link"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452   (eval "$ac_link") 2>&5
3453   ac_status=$?
3454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455   test $ac_status = 0; }; then :
3456   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3457 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3458 # work properly (i.e., refer to `conftest.exe'), while it won't with
3459 # `rm'.
3460 for ac_file in conftest.exe conftest conftest.*; do
3461   test -f "$ac_file" || continue
3462   case $ac_file in
3463     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465           break;;
3466     * ) break;;
3467   esac
3468 done
3469 else
3470   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error "cannot compute suffix of executables: cannot compile and link
3473 See \`config.log' for more details." "$LINENO" 5; }
3474 fi
3475 rm -f conftest conftest$ac_cv_exeext
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3477 $as_echo "$ac_cv_exeext" >&6; }
3478
3479 rm -f conftest.$ac_ext
3480 EXEEXT=$ac_cv_exeext
3481 ac_exeext=$EXEEXT
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h.  */
3484 #include <stdio.h>
3485 int
3486 main ()
3487 {
3488 FILE *f = fopen ("conftest.out", "w");
3489  return ferror (f) || fclose (f) != 0;
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 ac_clean_files="$ac_clean_files conftest.out"
3496 # Check that the compiler produces executables we can run.  If not, either
3497 # the compiler is broken, or we cross compile.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3499 $as_echo_n "checking whether we are cross compiling... " >&6; }
3500 if test "$cross_compiling" != yes; then
3501   { { ac_try="$ac_link"
3502 case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508   (eval "$ac_link") 2>&5
3509   ac_status=$?
3510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511   test $ac_status = 0; }
3512   if { ac_try='./conftest$ac_cv_exeext'
3513   { { case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519   (eval "$ac_try") 2>&5
3520   ac_status=$?
3521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522   test $ac_status = 0; }; }; then
3523     cross_compiling=no
3524   else
3525     if test "$cross_compiling" = maybe; then
3526         cross_compiling=yes
3527     else
3528         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error "cannot run C compiled programs.
3531 If you meant to cross compile, use \`--host'.
3532 See \`config.log' for more details." "$LINENO" 5; }
3533     fi
3534   fi
3535 fi
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3537 $as_echo "$cross_compiling" >&6; }
3538
3539 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3540 ac_clean_files=$ac_clean_files_save
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3542 $as_echo_n "checking for suffix of object files... " >&6; }
3543 if test "${ac_cv_objext+set}" = set; then :
3544   $as_echo_n "(cached) " >&6
3545 else
3546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h.  */
3548
3549 int
3550 main ()
3551 {
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 rm -f conftest.o conftest.obj
3558 if { { ac_try="$ac_compile"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565   (eval "$ac_compile") 2>&5
3566   ac_status=$?
3567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568   test $ac_status = 0; }; then :
3569   for ac_file in conftest.o conftest.obj conftest.*; do
3570   test -f "$ac_file" || continue;
3571   case $ac_file in
3572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3573     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3574        break;;
3575   esac
3576 done
3577 else
3578   $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error "cannot compute suffix of object files: cannot compile
3584 See \`config.log' for more details." "$LINENO" 5; }
3585 fi
3586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3587 fi
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3589 $as_echo "$ac_cv_objext" >&6; }
3590 OBJEXT=$ac_cv_objext
3591 ac_objext=$OBJEXT
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3594 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3595   $as_echo_n "(cached) " >&6
3596 else
3597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h.  */
3599
3600 int
3601 main ()
3602 {
3603 #ifndef __GNUC__
3604        choke me
3605 #endif
3606
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 if ac_fn_c_try_compile "$LINENO"; then :
3612   ac_compiler_gnu=yes
3613 else
3614   ac_compiler_gnu=no
3615 fi
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3618
3619 fi
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3621 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3622 if test $ac_compiler_gnu = yes; then
3623   GCC=yes
3624 else
3625   GCC=
3626 fi
3627 ac_test_CFLAGS=${CFLAGS+set}
3628 ac_save_CFLAGS=$CFLAGS
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3630 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3631 if test "${ac_cv_prog_cc_g+set}" = set; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   ac_save_c_werror_flag=$ac_c_werror_flag
3635    ac_c_werror_flag=yes
3636    ac_cv_prog_cc_g=no
3637    CFLAGS="-g"
3638    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h.  */
3640
3641 int
3642 main ()
3643 {
3644
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 if ac_fn_c_try_compile "$LINENO"; then :
3650   ac_cv_prog_cc_g=yes
3651 else
3652   CFLAGS=""
3653       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h.  */
3655
3656 int
3657 main ()
3658 {
3659
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 if ac_fn_c_try_compile "$LINENO"; then :
3665
3666 else
3667   ac_c_werror_flag=$ac_save_c_werror_flag
3668          CFLAGS="-g"
3669          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h.  */
3671
3672 int
3673 main ()
3674 {
3675
3676   ;
3677   return 0;
3678 }
3679 _ACEOF
3680 if ac_fn_c_try_compile "$LINENO"; then :
3681   ac_cv_prog_cc_g=yes
3682 fi
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 fi
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 fi
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688    ac_c_werror_flag=$ac_save_c_werror_flag
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3691 $as_echo "$ac_cv_prog_cc_g" >&6; }
3692 if test "$ac_test_CFLAGS" = set; then
3693   CFLAGS=$ac_save_CFLAGS
3694 elif test $ac_cv_prog_cc_g = yes; then
3695   if test "$GCC" = yes; then
3696     CFLAGS="-g -O2"
3697   else
3698     CFLAGS="-g"
3699   fi
3700 else
3701   if test "$GCC" = yes; then
3702     CFLAGS="-O2"
3703   else
3704     CFLAGS=
3705   fi
3706 fi
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3708 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3709 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3710   $as_echo_n "(cached) " >&6
3711 else
3712   ac_cv_prog_cc_c89=no
3713 ac_save_CC=$CC
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h.  */
3716 #include <stdarg.h>
3717 #include <stdio.h>
3718 #include <sys/types.h>
3719 #include <sys/stat.h>
3720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3721 struct buf { int x; };
3722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723 static char *e (p, i)
3724      char **p;
3725      int i;
3726 {
3727   return p[i];
3728 }
3729 static char *f (char * (*g) (char **, int), char **p, ...)
3730 {
3731   char *s;
3732   va_list v;
3733   va_start (v,p);
3734   s = g (p, va_arg (v,int));
3735   va_end (v);
3736   return s;
3737 }
3738
3739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3740    function prototypes and stuff, but not '\xHH' hex character constants.
3741    These don't provoke an error unfortunately, instead are silently treated
3742    as 'x'.  The following induces an error, until -std is added to get
3743    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3744    array size at least.  It's necessary to write '\x00'==0 to get something
3745    that's true only with -std.  */
3746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3747
3748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749    inside strings and character constants.  */
3750 #define FOO(x) 'x'
3751 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3752
3753 int test (int i, double x);
3754 struct s1 {int (*f) (int a);};
3755 struct s2 {int (*f) (double a);};
3756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757 int argc;
3758 char **argv;
3759 int
3760 main ()
3761 {
3762 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3763   ;
3764   return 0;
3765 }
3766 _ACEOF
3767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3769 do
3770   CC="$ac_save_CC $ac_arg"
3771   if ac_fn_c_try_compile "$LINENO"; then :
3772   ac_cv_prog_cc_c89=$ac_arg
3773 fi
3774 rm -f core conftest.err conftest.$ac_objext
3775   test "x$ac_cv_prog_cc_c89" != "xno" && break
3776 done
3777 rm -f conftest.$ac_ext
3778 CC=$ac_save_CC
3779
3780 fi
3781 # AC_CACHE_VAL
3782 case "x$ac_cv_prog_cc_c89" in
3783   x)
3784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785 $as_echo "none needed" >&6; } ;;
3786   xno)
3787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788 $as_echo "unsupported" >&6; } ;;
3789   *)
3790     CC="$CC $ac_cv_prog_cc_c89"
3791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3793 esac
3794 if test "x$ac_cv_prog_cc_c89" != xno; then :
3795
3796 fi
3797
3798 ac_ext=c
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
3804
3805
3806 # Check whether --with-linux-audit was given.
3807 if test "${with_linux_audit+set}" = set; then :
3808   withval=$with_linux_audit; case $with_linux_audit in
3809     yes)        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h.  */
3811 #include <libaudit.h>
3812 int
3813 main ()
3814 {
3815 int i = AUDIT_USER_CMD; (void)i;
3816   ;
3817   return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821
3822                     $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3823
3824                     SUDO_LIBS="${SUDO_LIBS} -laudit"
3825                     SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3826                     SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3827
3828 else
3829
3830                     as_fn_error "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3831
3832 fi
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834                 ;;
3835     no)         ;;
3836     *)          as_fn_error "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3837                 ;;
3838 esac
3839 fi
3840
3841
3842
3843 # Check whether --with-incpath was given.
3844 if test "${with_incpath+set}" = set; then :
3845   withval=$with_incpath; case $with_incpath in
3846     yes)        as_fn_error "\"must give --with-incpath an argument.\"" "$LINENO" 5
3847                 ;;
3848     no)         as_fn_error "\"--without-incpath not supported.\"" "$LINENO" 5
3849                 ;;
3850     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3851 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3852                 for i in ${with_incpath}; do
3853                     CPPFLAGS="${CPPFLAGS} -I${i}"
3854                 done
3855                 ;;
3856 esac
3857 fi
3858
3859
3860
3861 # Check whether --with-libpath was given.
3862 if test "${with_libpath+set}" = set; then :
3863   withval=$with_libpath; case $with_libpath in
3864     yes)        as_fn_error "\"must give --with-libpath an argument.\"" "$LINENO" 5
3865                 ;;
3866     no)         as_fn_error "\"--without-libpath not supported.\"" "$LINENO" 5
3867                 ;;
3868     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3869 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3870                 ;;
3871 esac
3872 fi
3873
3874
3875
3876 # Check whether --with-libraries was given.
3877 if test "${with_libraries+set}" = set; then :
3878   withval=$with_libraries; case $with_libraries in
3879     yes)        as_fn_error "\"must give --with-libraries an argument.\"" "$LINENO" 5
3880                 ;;
3881     no)         as_fn_error "\"--without-libraries not supported.\"" "$LINENO" 5
3882                 ;;
3883     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3884 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3885                 ;;
3886 esac
3887 fi
3888
3889
3890
3891 # Check whether --with-efence was given.
3892 if test "${with_efence+set}" = set; then :
3893   withval=$with_efence; case $with_efence in
3894     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
3895 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
3896                 LIBS="${LIBS} -lefence"
3897                 if test -f /usr/local/lib/libefence.a; then
3898                     with_libpath="${with_libpath} /usr/local/lib"
3899                 fi
3900                 ;;
3901     no)         ;;
3902     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
3903 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
3904                 ;;
3905 esac
3906 fi
3907
3908
3909
3910 # Check whether --with-csops was given.
3911 if test "${with_csops+set}" = set; then :
3912   withval=$with_csops; case $with_csops in
3913     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
3914 $as_echo "$as_me: Adding CSOps standard options" >&6;}
3915                 CHECKSIA=false
3916                 with_ignore_dot=yes
3917                 insults=on
3918                 with_classic_insults=yes
3919                 with_csops_insults=yes
3920                 with_env_editor=yes
3921                 : ${mansectsu='8'}
3922                 : ${mansectform='5'}
3923                 ;;
3924     no)         ;;
3925     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
3926 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
3927                 ;;
3928 esac
3929 fi
3930
3931
3932
3933 # Check whether --with-passwd was given.
3934 if test "${with_passwd+set}" = set; then :
3935   withval=$with_passwd; case $with_passwd in
3936     yes|no)     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
3937 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
3938                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
3939 $as_echo "$with_passwd" >&6; }
3940                 AUTH_DEF=""
3941                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
3942                 ;;
3943     *)          as_fn_error "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
3944                 ;;
3945 esac
3946 fi
3947
3948
3949
3950 # Check whether --with-skey was given.
3951 if test "${with_skey+set}" = set; then :
3952   withval=$with_skey; case $with_skey in
3953     no)         ;;
3954     *)          $as_echo "#define HAVE_SKEY 1" >>confdefs.h
3955
3956                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
3957 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
3958                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3959 $as_echo "yes" >&6; }
3960                 AUTH_REG="$AUTH_REG S/Key"
3961                 ;;
3962 esac
3963 fi
3964
3965
3966
3967 # Check whether --with-opie was given.
3968 if test "${with_opie+set}" = set; then :
3969   withval=$with_opie; case $with_opie in
3970     no)         ;;
3971     *)          $as_echo "#define HAVE_OPIE 1" >>confdefs.h
3972
3973                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
3974 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
3975                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3976 $as_echo "yes" >&6; }
3977                 AUTH_REG="$AUTH_REG NRL_OPIE"
3978                 ;;
3979 esac
3980 fi
3981
3982
3983
3984 # Check whether --with-long-otp-prompt was given.
3985 if test "${with_long_otp_prompt+set}" = set; then :
3986   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
3987     yes)        $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
3988
3989                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
3990 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
3991                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992 $as_echo "yes" >&6; }
3993                 long_otp_prompt=on
3994                 ;;
3995     no)         long_otp_prompt=off
3996                 ;;
3997     *)          as_fn_error "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
3998                 ;;
3999 esac
4000 fi
4001
4002
4003
4004 # Check whether --with-SecurID was given.
4005 if test "${with_SecurID+set}" = set; then :
4006   withval=$with_SecurID; case $with_SecurID in
4007     no)         ;;
4008     *)          $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4009
4010                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4011 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4012                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4013 $as_echo "yes" >&6; }
4014                 AUTH_EXCL="$AUTH_EXCL SecurID"
4015                 ;;
4016 esac
4017 fi
4018
4019
4020
4021 # Check whether --with-fwtk was given.
4022 if test "${with_fwtk+set}" = set; then :
4023   withval=$with_fwtk; case $with_fwtk in
4024     no)         ;;
4025     *)          $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4026
4027                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4028 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4029                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4030 $as_echo "yes" >&6; }
4031                 AUTH_EXCL="$AUTH_EXCL FWTK"
4032                 ;;
4033 esac
4034 fi
4035
4036
4037
4038 # Check whether --with-kerb4 was given.
4039 if test "${with_kerb4+set}" = set; then :
4040   withval=$with_kerb4; case $with_kerb4 in
4041     no)         ;;
4042     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
4043 $as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
4044                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4045 $as_echo "yes" >&6; }
4046                 AUTH_REG="$AUTH_REG kerb4"
4047                 ;;
4048 esac
4049 fi
4050
4051
4052
4053 # Check whether --with-kerb5 was given.
4054 if test "${with_kerb5+set}" = set; then :
4055   withval=$with_kerb5; case $with_kerb5 in
4056     no)         ;;
4057     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4058 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4059                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4060 $as_echo "yes" >&6; }
4061                 AUTH_REG="$AUTH_REG kerb5"
4062                 ;;
4063 esac
4064 fi
4065
4066
4067
4068 # Check whether --with-aixauth was given.
4069 if test "${with_aixauth+set}" = set; then :
4070   withval=$with_aixauth; case $with_aixauth in
4071     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4072     no)         ;;
4073     *)          as_fn_error "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4074                 ;;
4075 esac
4076 fi
4077
4078
4079
4080 # Check whether --with-pam was given.
4081 if test "${with_pam+set}" = set; then :
4082   withval=$with_pam; case $with_pam in
4083     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
4084     no)         ;;
4085     *)          as_fn_error "\"--with-pam does not take an argument.\"" "$LINENO" 5
4086                 ;;
4087 esac
4088 fi
4089
4090
4091
4092 # Check whether --with-AFS was given.
4093 if test "${with_AFS+set}" = set; then :
4094   withval=$with_AFS; case $with_AFS in
4095     yes)        $as_echo "#define HAVE_AFS 1" >>confdefs.h
4096
4097                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4098 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4099                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4100 $as_echo "yes" >&6; }
4101                 AUTH_REG="$AUTH_REG AFS"
4102                 ;;
4103     no)         ;;
4104     *)          as_fn_error "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4105                 ;;
4106 esac
4107 fi
4108
4109
4110
4111 # Check whether --with-DCE was given.
4112 if test "${with_DCE+set}" = set; then :
4113   withval=$with_DCE; case $with_DCE in
4114     yes)        $as_echo "#define HAVE_DCE 1" >>confdefs.h
4115
4116                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4117 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4118                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119 $as_echo "yes" >&6; }
4120                 AUTH_REG="$AUTH_REG DCE"
4121                 ;;
4122     no)         ;;
4123     *)          as_fn_error "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4124                 ;;
4125 esac
4126 fi
4127
4128
4129
4130 # Check whether --with-logincap was given.
4131 if test "${with_logincap+set}" = set; then :
4132   withval=$with_logincap; case $with_logincap in
4133     yes|no)     ;;
4134     *)          as_fn_error "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4135                 ;;
4136 esac
4137 fi
4138
4139
4140
4141 # Check whether --with-bsdauth was given.
4142 if test "${with_bsdauth+set}" = set; then :
4143   withval=$with_bsdauth; case $with_bsdauth in
4144     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4145     no)         ;;
4146     *)          as_fn_error "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4147                 ;;
4148 esac
4149 fi
4150
4151
4152
4153 # Check whether --with-project was given.
4154 if test "${with_project+set}" = set; then :
4155   withval=$with_project; case $with_project in
4156     yes|no)     ;;
4157     no) ;;
4158     *)          as_fn_error "\"--with-project does not take an argument.\"" "$LINENO" 5
4159                 ;;
4160 esac
4161 fi
4162
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4165 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4166
4167 # Check whether --with-lecture was given.
4168 if test "${with_lecture+set}" = set; then :
4169   withval=$with_lecture; case $with_lecture in
4170     yes|short|always)   lecture=once
4171                 ;;
4172     no|none|never)      lecture=never
4173                 ;;
4174     *)          as_fn_error "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4175                 ;;
4176 esac
4177 fi
4178
4179 if test "$lecture" = "once"; then
4180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4181 $as_echo "yes" >&6; }
4182 else
4183     $as_echo "#define NO_LECTURE 1" >>confdefs.h
4184
4185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4187 fi
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4190 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4191
4192 # Check whether --with-logging was given.
4193 if test "${with_logging+set}" = set; then :
4194   withval=$with_logging; case $with_logging in
4195     yes)        as_fn_error "\"must give --with-logging an argument.\"" "$LINENO" 5
4196                 ;;
4197     no)         as_fn_error "\"--without-logging not supported.\"" "$LINENO" 5
4198                 ;;
4199     syslog)     $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4200
4201                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4202 $as_echo "syslog" >&6; }
4203                 ;;
4204     file)       $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4205
4206                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4207 $as_echo "file" >&6; }
4208                 ;;
4209     both)       $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4210
4211                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4212 $as_echo "both" >&6; }
4213                 ;;
4214     *)          as_fn_error "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4215                 ;;
4216 esac
4217 else
4218   $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4220 $as_echo "syslog" >&6; }
4221 fi
4222
4223
4224
4225 # Check whether --with-logfac was given.
4226 if test "${with_logfac+set}" = set; then :
4227   withval=$with_logfac; case $with_logfac in
4228     yes)        as_fn_error "\"must give --with-logfac an argument.\"" "$LINENO" 5
4229                 ;;
4230     no)         as_fn_error "\"--without-logfac not supported.\"" "$LINENO" 5
4231                 ;;
4232     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
4233                 ;;
4234     *)          as_fn_error "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4235                 ;;
4236 esac
4237 fi
4238
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4241 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4242
4243 # Check whether --with-goodpri was given.
4244 if test "${with_goodpri+set}" = set; then :
4245   withval=$with_goodpri; case $with_goodpri in
4246     yes)        as_fn_error "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4247                 ;;
4248     no)         as_fn_error "\"--without-goodpri not supported.\"" "$LINENO" 5
4249                 ;;
4250     alert|crit|debug|emerg|err|info|notice|warning)
4251                 goodpri=$with_goodpri
4252                 ;;
4253     *)          as_fn_error "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4254                 ;;
4255 esac
4256 fi
4257
4258
4259 cat >>confdefs.h <<_ACEOF
4260 #define PRI_SUCCESS "$goodpri"
4261 _ACEOF
4262
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4264 $as_echo "$goodpri" >&6; }
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4267 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4268
4269 # Check whether --with-badpri was given.
4270 if test "${with_badpri+set}" = set; then :
4271   withval=$with_badpri; case $with_badpri in
4272     yes)        as_fn_error "\"must give --with-badpri an argument.\"" "$LINENO" 5
4273                 ;;
4274     no)         as_fn_error "\"--without-badpri not supported.\"" "$LINENO" 5
4275                 ;;
4276     alert|crit|debug|emerg|err|info|notice|warning)
4277                 badpri=$with_badpri
4278                 ;;
4279     *)          as_fn_error "$with_badpri is not a supported syslog priority." "$LINENO" 5
4280                 ;;
4281 esac
4282 fi
4283
4284
4285 cat >>confdefs.h <<_ACEOF
4286 #define PRI_FAILURE "$badpri"
4287 _ACEOF
4288
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4290 $as_echo "$badpri" >&6; }
4291
4292
4293 # Check whether --with-logpath was given.
4294 if test "${with_logpath+set}" = set; then :
4295   withval=$with_logpath; case $with_logpath in
4296     yes)        as_fn_error "\"must give --with-logpath an argument.\"" "$LINENO" 5
4297                 ;;
4298     no)         as_fn_error "\"--without-logpath not supported.\"" "$LINENO" 5
4299                 ;;
4300 esac
4301 fi
4302
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4305 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4306
4307 # Check whether --with-loglen was given.
4308 if test "${with_loglen+set}" = set; then :
4309   withval=$with_loglen; case $with_loglen in
4310     yes)        as_fn_error "\"must give --with-loglen an argument.\"" "$LINENO" 5
4311                 ;;
4312     no)         as_fn_error "\"--without-loglen not supported.\"" "$LINENO" 5
4313                 ;;
4314     [0-9]*)     loglen=$with_loglen
4315                 ;;
4316     *)          as_fn_error "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4317                 ;;
4318 esac
4319 fi
4320
4321
4322 cat >>confdefs.h <<_ACEOF
4323 #define MAXLOGFILELEN $loglen
4324 _ACEOF
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4327 $as_echo "$loglen" >&6; }
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4330 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4331
4332 # Check whether --with-ignore-dot was given.
4333 if test "${with_ignore_dot+set}" = set; then :
4334   withval=$with_ignore_dot; case $with_ignore_dot in
4335     yes)        ignore_dot=on
4336                 ;;
4337     no)         ignore_dot=off
4338                 ;;
4339     *)          as_fn_error "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4340                 ;;
4341 esac
4342 fi
4343
4344 if test "$ignore_dot" = "on"; then
4345     $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4346
4347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4348 $as_echo "yes" >&6; }
4349 else
4350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4352 fi
4353
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4355 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4356
4357 # Check whether --with-mail-if-no-user was given.
4358 if test "${with_mail_if_no_user+set}" = set; then :
4359   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4360     yes)        mail_no_user=on
4361                 ;;
4362     no)         mail_no_user=off
4363                 ;;
4364     *)          as_fn_error "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4365                 ;;
4366 esac
4367 fi
4368
4369 if test "$mail_no_user" = "on"; then
4370     $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4371
4372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4373 $as_echo "yes" >&6; }
4374 else
4375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4377 fi
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4380 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4381
4382 # Check whether --with-mail-if-no-host was given.
4383 if test "${with_mail_if_no_host+set}" = set; then :
4384   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4385     yes)        mail_no_host=on
4386                 ;;
4387     no)         mail_no_host=off
4388                 ;;
4389     *)          as_fn_error "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4390                 ;;
4391 esac
4392 fi
4393
4394 if test "$mail_no_host" = "on"; then
4395     $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4396
4397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4398 $as_echo "yes" >&6; }
4399 else
4400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4402 fi
4403
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4405 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4406
4407 # Check whether --with-mail-if-noperms was given.
4408 if test "${with_mail_if_noperms+set}" = set; then :
4409   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4410     yes)        mail_noperms=on
4411                 ;;
4412     no)         mail_noperms=off
4413                 ;;
4414     *)          as_fn_error "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4415                 ;;
4416 esac
4417 fi
4418
4419 if test "$mail_noperms" = "on"; then
4420     $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4421
4422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4423 $as_echo "yes" >&6; }
4424 else
4425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4430 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4431
4432 # Check whether --with-mailto was given.
4433 if test "${with_mailto+set}" = set; then :
4434   withval=$with_mailto; case $with_mailto in
4435     yes)        as_fn_error "\"must give --with-mailto an argument.\"" "$LINENO" 5
4436                 ;;
4437     no)         as_fn_error "\"--without-mailto not supported.\"" "$LINENO" 5
4438                 ;;
4439     *)          mailto=$with_mailto
4440                 ;;
4441 esac
4442 fi
4443
4444
4445 cat >>confdefs.h <<_ACEOF
4446 #define MAILTO "$mailto"
4447 _ACEOF
4448
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4450 $as_echo "$mailto" >&6; }
4451
4452
4453 # Check whether --with-mailsubject was given.
4454 if test "${with_mailsubject+set}" = set; then :
4455   withval=$with_mailsubject; case $with_mailsubject in
4456     yes)        as_fn_error "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4457                 ;;
4458     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4459 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4460                 ;;
4461     *)          mailsub="$with_mailsubject"
4462                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4463 $as_echo_n "checking sudo mail subject... " >&6; }
4464                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4465 $as_echo "Using alert mail subject: $mailsub" >&6; }
4466                 ;;
4467 esac
4468 fi
4469
4470
4471 cat >>confdefs.h <<_ACEOF
4472 #define MAILSUBJECT "$mailsub"
4473 _ACEOF
4474
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4477 $as_echo_n "checking for bad password prompt... " >&6; }
4478
4479 # Check whether --with-passprompt was given.
4480 if test "${with_passprompt+set}" = set; then :
4481   withval=$with_passprompt; case $with_passprompt in
4482     yes)        as_fn_error "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4483                 ;;
4484     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4485 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4486                 ;;
4487     *)          passprompt="$with_passprompt"
4488 esac
4489 fi
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4492 $as_echo "$passprompt" >&6; }
4493
4494 cat >>confdefs.h <<_ACEOF
4495 #define PASSPROMPT "$passprompt"
4496 _ACEOF
4497
4498
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4500 $as_echo_n "checking for bad password message... " >&6; }
4501
4502 # Check whether --with-badpass-message was given.
4503 if test "${with_badpass_message+set}" = set; then :
4504   withval=$with_badpass_message; case $with_badpass_message in
4505     yes)        as_fn_error "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4506                 ;;
4507     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4508 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4509                 ;;
4510     *)          badpass_message="$with_badpass_message"
4511                 ;;
4512 esac
4513 fi
4514
4515
4516 cat >>confdefs.h <<_ACEOF
4517 #define INCORRECT_PASSWORD "$badpass_message"
4518 _ACEOF
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4521 $as_echo "$badpass_message" >&6; }
4522
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4524 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4525
4526 # Check whether --with-fqdn was given.
4527 if test "${with_fqdn+set}" = set; then :
4528   withval=$with_fqdn; case $with_fqdn in
4529     yes)        fqdn=on
4530                 ;;
4531     no)         fqdn=off
4532                 ;;
4533     *)          as_fn_error "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4534                 ;;
4535 esac
4536 fi
4537
4538 if test "$fqdn" = "on"; then
4539     $as_echo "#define FQDN 1" >>confdefs.h
4540
4541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542 $as_echo "yes" >&6; }
4543 else
4544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4546 fi
4547
4548
4549 # Check whether --with-timedir was given.
4550 if test "${with_timedir+set}" = set; then :
4551   withval=$with_timedir; case $with_timedir in
4552     yes)        as_fn_error "\"must give --with-timedir an argument.\"" "$LINENO" 5
4553                 ;;
4554     no)         as_fn_error "\"--without-timedir not supported.\"" "$LINENO" 5
4555                 ;;
4556 esac
4557 fi
4558
4559
4560
4561 # Check whether --with-iologdir was given.
4562 if test "${with_iologdir+set}" = set; then :
4563   withval=$with_iologdir; case $with_iologdir in
4564     yes)    ;;
4565     no)     as_fn_error "\"--without-iologdir not supported.\"" "$LINENO" 5
4566             ;;
4567 esac
4568 fi
4569
4570
4571
4572 # Check whether --with-sendmail was given.
4573 if test "${with_sendmail+set}" = set; then :
4574   withval=$with_sendmail; case $with_sendmail in
4575     yes)        with_sendmail=""
4576                 ;;
4577     no)         ;;
4578     *)          cat >>confdefs.h <<EOF
4579 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4580 EOF
4581
4582                 ;;
4583 esac
4584 fi
4585
4586
4587
4588 # Check whether --with-sudoers-mode was given.
4589 if test "${with_sudoers_mode+set}" = set; then :
4590   withval=$with_sudoers_mode; case $with_sudoers_mode in
4591     yes)        as_fn_error "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4592                 ;;
4593     no)         as_fn_error "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4594                 ;;
4595     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
4596                 ;;
4597     0*)         SUDOERS_MODE=$with_sudoers_mode
4598                 ;;
4599     *)          as_fn_error "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4600                 ;;
4601 esac
4602 fi
4603
4604
4605
4606 # Check whether --with-sudoers-uid was given.
4607 if test "${with_sudoers_uid+set}" = set; then :
4608   withval=$with_sudoers_uid; case $with_sudoers_uid in
4609     yes)        as_fn_error "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4610                 ;;
4611     no)         as_fn_error "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4612                 ;;
4613     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
4614                 ;;
4615     *)          as_fn_error "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4616                 ;;
4617 esac
4618 fi
4619
4620
4621
4622 # Check whether --with-sudoers-gid was given.
4623 if test "${with_sudoers_gid+set}" = set; then :
4624   withval=$with_sudoers_gid; case $with_sudoers_gid in
4625     yes)        as_fn_error "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4626                 ;;
4627     no)         as_fn_error "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4628                 ;;
4629     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
4630                 ;;
4631     *)          as_fn_error "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4632                 ;;
4633 esac
4634 fi
4635
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4638 $as_echo_n "checking for umask programs should be run with... " >&6; }
4639
4640 # Check whether --with-umask was given.
4641 if test "${with_umask+set}" = set; then :
4642   withval=$with_umask; case $with_umask in
4643     yes)        as_fn_error "\"must give --with-umask an argument.\"" "$LINENO" 5
4644                 ;;
4645     no)         sudo_umask=0777
4646                 ;;
4647     [0-9]*)     sudo_umask=$with_umask
4648                 ;;
4649     *)          as_fn_error "\"you must enter a numeric mask.\"" "$LINENO" 5
4650                 ;;
4651 esac
4652 fi
4653
4654
4655 cat >>confdefs.h <<_ACEOF
4656 #define SUDO_UMASK $sudo_umask
4657 _ACEOF
4658
4659 if test "$sudo_umask" = "0777"; then
4660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4661 $as_echo "user" >&6; }
4662 else
4663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4664 $as_echo "$sudo_umask" >&6; }
4665 fi
4666
4667
4668 # Check whether --with-umask-override was given.
4669 if test "${with_umask_override+set}" = set; then :
4670   withval=$with_umask_override; case $with_umask_override in
4671     yes)        $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4672
4673                 umask_override=on
4674                 ;;
4675     no)         umask_override=off
4676                 ;;
4677     *)          as_fn_error "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4678                 ;;
4679 esac
4680 fi
4681
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4684 $as_echo_n "checking for default user to run commands as... " >&6; }
4685
4686 # Check whether --with-runas-default was given.
4687 if test "${with_runas_default+set}" = set; then :
4688   withval=$with_runas_default; case $with_runas_default in
4689     yes)        as_fn_error "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4690                 ;;
4691     no)         as_fn_error "\"--without-runas-default not supported.\"" "$LINENO" 5
4692                 ;;
4693     *)          runas_default="$with_runas_default"
4694                 ;;
4695 esac
4696 fi
4697
4698
4699 cat >>confdefs.h <<_ACEOF
4700 #define RUNAS_DEFAULT "$runas_default"
4701 _ACEOF
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4704 $as_echo "$runas_default" >&6; }
4705
4706
4707 # Check whether --with-exempt was given.
4708 if test "${with_exempt+set}" = set; then :
4709   withval=$with_exempt; case $with_exempt in
4710     yes)        as_fn_error "\"must give --with-exempt an argument.\"" "$LINENO" 5
4711                 ;;
4712     no)         as_fn_error "\"--without-exempt not supported.\"" "$LINENO" 5
4713                 ;;
4714     *)
4715 cat >>confdefs.h <<_ACEOF
4716 #define EXEMPTGROUP "$with_exempt"
4717 _ACEOF
4718
4719                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4720 $as_echo_n "checking for group to be exempt from password... " >&6; }
4721                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4722 $as_echo "$with_exempt" >&6; }
4723                 ;;
4724 esac
4725 fi
4726
4727
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4729 $as_echo_n "checking for editor that visudo should use... " >&6; }
4730
4731 # Check whether --with-editor was given.
4732 if test "${with_editor+set}" = set; then :
4733   withval=$with_editor; case $with_editor in
4734     yes)        as_fn_error "\"must give --with-editor an argument.\"" "$LINENO" 5
4735                 ;;
4736     no)         as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4737                 ;;
4738     *)
4739 cat >>confdefs.h <<_ACEOF
4740 #define EDITOR "$with_editor"
4741 _ACEOF
4742
4743                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4744 $as_echo "$with_editor" >&6; }
4745                 editor="$with_editor"
4746                 ;;
4747 esac
4748 else
4749   $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4751 $as_echo "vi" >&6; }
4752 fi
4753
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4756 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4757
4758 # Check whether --with-env-editor was given.
4759 if test "${with_env_editor+set}" = set; then :
4760   withval=$with_env_editor; case $with_env_editor in
4761     yes)        env_editor=on
4762                 ;;
4763     no)         env_editor=off
4764                 ;;
4765     *)          as_fn_error "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4766                 ;;
4767 esac
4768 fi
4769
4770 if test "$env_editor" = "on"; then
4771     $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4772
4773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4774 $as_echo "yes" >&6; }
4775 else
4776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4778 fi
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4781 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4782
4783 # Check whether --with-passwd-tries was given.
4784 if test "${with_passwd_tries+set}" = set; then :
4785   withval=$with_passwd_tries; case $with_passwd_tries in
4786     yes)        ;;
4787     no)         as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4788                 ;;
4789     [1-9]*)     passwd_tries=$with_passwd_tries
4790                 ;;
4791     *)          as_fn_error "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4792                 ;;
4793 esac
4794 fi
4795
4796
4797 cat >>confdefs.h <<_ACEOF
4798 #define TRIES_FOR_PASSWORD $passwd_tries
4799 _ACEOF
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4802 $as_echo "$passwd_tries" >&6; }
4803
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4805 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4806
4807 # Check whether --with-timeout was given.
4808 if test "${with_timeout+set}" = set; then :
4809   withval=$with_timeout; case $with_timeout in
4810     yes)        ;;
4811     no)         timeout=0
4812                 ;;
4813     [0-9]*)     timeout=$with_timeout
4814                 ;;
4815     *)          as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4816                 ;;
4817 esac
4818 fi
4819
4820
4821 cat >>confdefs.h <<_ACEOF
4822 #define TIMEOUT $timeout
4823 _ACEOF
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4826 $as_echo "$timeout" >&6; }
4827
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4829 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4830
4831 # Check whether --with-password-timeout was given.
4832 if test "${with_password_timeout+set}" = set; then :
4833   withval=$with_password_timeout; case $with_password_timeout in
4834     yes)        ;;
4835     no)         password_timeout=0
4836                 ;;
4837     [0-9]*)     password_timeout=$with_password_timeout
4838                 ;;
4839     *)          as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4840                 ;;
4841 esac
4842 fi
4843
4844
4845 cat >>confdefs.h <<_ACEOF
4846 #define PASSWORD_TIMEOUT $password_timeout
4847 _ACEOF
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4850 $as_echo "$password_timeout" >&6; }
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4853 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4854
4855 # Check whether --with-tty-tickets was given.
4856 if test "${with_tty_tickets+set}" = set; then :
4857   withval=$with_tty_tickets; case $with_tty_tickets in
4858     yes)        tty_tickets=on
4859                 ;;
4860     no)         tty_tickets=off
4861                 ;;
4862     *)          as_fn_error "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4863                 ;;
4864 esac
4865 fi
4866
4867 if test "$tty_tickets" = "off"; then
4868     $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4869
4870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4872 else
4873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4874 $as_echo "yes" >&6; }
4875 fi
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4878 $as_echo_n "checking whether to include insults... " >&6; }
4879
4880 # Check whether --with-insults was given.
4881 if test "${with_insults+set}" = set; then :
4882   withval=$with_insults; case $with_insults in
4883     yes)        insults=on
4884                 with_classic_insults=yes
4885                 with_csops_insults=yes
4886                 ;;
4887     disabled)   insults=off
4888                 with_classic_insults=yes
4889                 with_csops_insults=yes
4890                 ;;
4891     no)         insults=off
4892                 ;;
4893     *)          as_fn_error "\"--with-insults does not take an argument.\"" "$LINENO" 5
4894                 ;;
4895 esac
4896 fi
4897
4898 if test "$insults" = "on"; then
4899     $as_echo "#define USE_INSULTS 1" >>confdefs.h
4900
4901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4902 $as_echo "yes" >&6; }
4903 else
4904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4906 fi
4907
4908
4909 # Check whether --with-all-insults was given.
4910 if test "${with_all_insults+set}" = set; then :
4911   withval=$with_all_insults; case $with_all_insults in
4912     yes)        with_classic_insults=yes
4913                 with_csops_insults=yes
4914                 with_hal_insults=yes
4915                 with_goons_insults=yes
4916                 ;;
4917     no)         ;;
4918     *)          as_fn_error "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
4919                 ;;
4920 esac
4921 fi
4922
4923
4924
4925 # Check whether --with-classic-insults was given.
4926 if test "${with_classic_insults+set}" = set; then :
4927   withval=$with_classic_insults; case $with_classic_insults in
4928     yes)        $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
4929
4930                 ;;
4931     no)         ;;
4932     *)          as_fn_error "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
4933                 ;;
4934 esac
4935 fi
4936
4937
4938
4939 # Check whether --with-csops-insults was given.
4940 if test "${with_csops_insults+set}" = set; then :
4941   withval=$with_csops_insults; case $with_csops_insults in
4942     yes)        $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
4943
4944                 ;;
4945     no)         ;;
4946     *)          as_fn_error "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
4947                 ;;
4948 esac
4949 fi
4950
4951
4952
4953 # Check whether --with-hal-insults was given.
4954 if test "${with_hal_insults+set}" = set; then :
4955   withval=$with_hal_insults; case $with_hal_insults in
4956     yes)        $as_echo "#define HAL_INSULTS 1" >>confdefs.h
4957
4958                 ;;
4959     no)         ;;
4960     *)          as_fn_error "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
4961                 ;;
4962 esac
4963 fi
4964
4965
4966
4967 # Check whether --with-goons-insults was given.
4968 if test "${with_goons_insults+set}" = set; then :
4969   withval=$with_goons_insults; case $with_goons_insults in
4970     yes)        $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
4971
4972                 ;;
4973     no)         ;;
4974     *)          as_fn_error "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
4975                 ;;
4976 esac
4977 fi
4978
4979
4980
4981 # Check whether --with-nsswitch was given.
4982 if test "${with_nsswitch+set}" = set; then :
4983   withval=$with_nsswitch; case $with_nsswitch in
4984     no)         ;;
4985     yes)        with_nsswitch="/etc/nsswitch.conf"
4986                 ;;
4987     *)          ;;
4988 esac
4989 fi
4990
4991
4992
4993 # Check whether --with-ldap was given.
4994 if test "${with_ldap+set}" = set; then :
4995   withval=$with_ldap; case $with_ldap in
4996     no)         ;;
4997     *)          $as_echo "#define HAVE_LDAP 1" >>confdefs.h
4998
4999                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5000 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5001                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5002 $as_echo "yes" >&6; }
5003                 ;;
5004 esac
5005 fi
5006
5007
5008
5009 # Check whether --with-ldap-conf-file was given.
5010 if test "${with_ldap_conf_file+set}" = set; then :
5011   withval=$with_ldap_conf_file;
5012 fi
5013
5014 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5015 cat >>confdefs.h <<EOF
5016 #define _PATH_LDAP_CONF "$ldap_conf"
5017 EOF
5018
5019
5020
5021 # Check whether --with-ldap-secret-file was given.
5022 if test "${with_ldap_secret_file+set}" = set; then :
5023   withval=$with_ldap_secret_file;
5024 fi
5025
5026 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5027 cat >>confdefs.h <<EOF
5028 #define _PATH_LDAP_SECRET "$ldap_secret"
5029 EOF
5030
5031
5032
5033 # Check whether --with-pc-insults was given.
5034 if test "${with_pc_insults+set}" = set; then :
5035   withval=$with_pc_insults; case $with_pc_insults in
5036     yes)        $as_echo "#define PC_INSULTS 1" >>confdefs.h
5037
5038                 ;;
5039     no)         ;;
5040     *)          as_fn_error "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5041                 ;;
5042 esac
5043 fi
5044
5045
5046 if test "$insults" = "on"; then
5047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5048 $as_echo_n "checking which insult sets to include... " >&6; }
5049     i=""
5050     test "$with_goons_insults" = "yes" && i="goons ${i}"
5051     test "$with_hal_insults" = "yes" && i="hal ${i}"
5052     test "$with_csops_insults" = "yes" && i="csops ${i}"
5053     test "$with_classic_insults" = "yes" && i="classic ${i}"
5054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5055 $as_echo "$i" >&6; }
5056 fi
5057
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5059 $as_echo_n "checking whether to override the user's path... " >&6; }
5060
5061 # Check whether --with-secure-path was given.
5062 if test "${with_secure_path+set}" = set; then :
5063   withval=$with_secure_path; case $with_secure_path in
5064     yes)        with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5065                 cat >>confdefs.h <<_ACEOF
5066 #define SECURE_PATH "$with_secure_path"
5067 _ACEOF
5068
5069                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5070 $as_echo "$with_secure_path" >&6; }
5071                 secure_path="set to $with_secure_path"
5072                 ;;
5073     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075                 ;;
5076     *)          cat >>confdefs.h <<_ACEOF
5077 #define SECURE_PATH "$with_secure_path"
5078 _ACEOF
5079
5080                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5081 $as_echo "$with_secure_path" >&6; }
5082                 secure_path="set to F<$with_secure_path>"
5083                 ;;
5084 esac
5085 else
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 fi
5089
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5092 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5093
5094 # Check whether --with-interfaces was given.
5095 if test "${with_interfaces+set}" = set; then :
5096   withval=$with_interfaces; case $with_interfaces in
5097     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098 $as_echo "yes" >&6; }
5099                 ;;
5100     no)         $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5101
5102                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104                 ;;
5105     *)          as_fn_error "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5106                 ;;
5107 esac
5108 else
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5110 $as_echo "yes" >&6; }
5111 fi
5112
5113
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5115 $as_echo_n "checking whether stow should be used... " >&6; }
5116
5117 # Check whether --with-stow was given.
5118 if test "${with_stow+set}" = set; then :
5119   withval=$with_stow; case $with_stow in
5120     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5121 $as_echo "yes" >&6; }
5122                 $as_echo "#define USE_STOW 1" >>confdefs.h
5123
5124                 ;;
5125     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127                 ;;
5128     *)          as_fn_error "\"--with-stow does not take an argument.\"" "$LINENO" 5
5129                 ;;
5130 esac
5131 else
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5134 fi
5135
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5138 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5139
5140 # Check whether --with-askpass was given.
5141 if test "${with_askpass+set}" = set; then :
5142   withval=$with_askpass; case $with_askpass in
5143     yes)        as_fn_error "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5144                 ;;
5145     no)         ;;
5146     *)          cat >>confdefs.h <<EOF
5147 #define _PATH_SUDO_ASKPASS "$with_askpass"
5148 EOF
5149
5150                 ;;
5151 esac
5152 else
5153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5155 fi
5156
5157
5158
5159 # Check whether --with-plugindir was given.
5160 if test "${with_plugindir+set}" = set; then :
5161   withval=$with_plugindir; case $with_plugindir in
5162     no)         as_fn_error "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5163                 ;;
5164     *)          ;;
5165 esac
5166 else
5167   with_plugindir="$libexecdir"
5168 fi
5169
5170
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5173 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5174 # Check whether --enable-authentication was given.
5175 if test "${enable_authentication+set}" = set; then :
5176   enableval=$enable_authentication;  case "$enableval" in
5177     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5178 $as_echo "yes" >&6; }
5179                 ;;
5180     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182                 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5183
5184                 ;;
5185     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5188 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5189                 ;;
5190   esac
5191
5192 else
5193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5194 $as_echo "yes" >&6; }
5195 fi
5196
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5199 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5200 # Check whether --enable-root-mailer was given.
5201 if test "${enable_root_mailer+set}" = set; then :
5202   enableval=$enable_root_mailer;  case "$enableval" in
5203     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5205                 ;;
5206     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207 $as_echo "yes" >&6; }
5208                 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5209
5210                 ;;
5211     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5214 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5215                 ;;
5216   esac
5217
5218 else
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223
5224 # Check whether --enable-setreuid was given.
5225 if test "${enable_setreuid+set}" = set; then :
5226   enableval=$enable_setreuid;  case "$enableval" in
5227     no)         SKIP_SETREUID=yes
5228                 ;;
5229     *)          ;;
5230   esac
5231
5232 fi
5233
5234
5235 # Check whether --enable-setresuid was given.
5236 if test "${enable_setresuid+set}" = set; then :
5237   enableval=$enable_setresuid;  case "$enableval" in
5238     no)         SKIP_SETRESUID=yes
5239                 ;;
5240     *)          ;;
5241   esac
5242
5243 fi
5244
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5247 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5248 # Check whether --enable-shadow was given.
5249 if test "${enable_shadow+set}" = set; then :
5250   enableval=$enable_shadow;  case "$enableval" in
5251     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253                 ;;
5254     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5255 $as_echo "yes" >&6; }
5256                 CHECKSHADOW="false"
5257                 ;;
5258     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5260                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5261 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5262                 ;;
5263   esac
5264
5265 else
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5272 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5273 # Check whether --enable-root-sudo was given.
5274 if test "${enable_root_sudo+set}" = set; then :
5275   enableval=$enable_root_sudo;  case "$enableval" in
5276     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5277 $as_echo "yes" >&6; }
5278                 ;;
5279     no)         $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5280
5281                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283                 root_sudo=off
5284                 ;;
5285     *)          as_fn_error "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5286                 ;;
5287   esac
5288
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291 $as_echo "yes" >&6; }
5292 fi
5293
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5296 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5297 # Check whether --enable-log-host was given.
5298 if test "${enable_log_host+set}" = set; then :
5299   enableval=$enable_log_host;  case "$enableval" in
5300     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5301 $as_echo "yes" >&6; }
5302                 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5303
5304                 ;;
5305     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5307                 ;;
5308     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5310                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5311 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5312                 ;;
5313   esac
5314
5315 else
5316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5318 fi
5319
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5322 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5323 # Check whether --enable-noargs-shell was given.
5324 if test "${enable_noargs_shell+set}" = set; then :
5325   enableval=$enable_noargs_shell;  case "$enableval" in
5326     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5327 $as_echo "yes" >&6; }
5328                 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5329
5330                 ;;
5331     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5333                 ;;
5334     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5337 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5338                 ;;
5339   esac
5340
5341 else
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344 fi
5345
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5348 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5349 # Check whether --enable-shell-sets-home was given.
5350 if test "${enable_shell_sets_home+set}" = set; then :
5351   enableval=$enable_shell_sets_home;  case "$enableval" in
5352     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353 $as_echo "yes" >&6; }
5354                 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5355
5356                 ;;
5357     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359                 ;;
5360     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5363 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5364                 ;;
5365   esac
5366
5367 else
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370 fi
5371
5372
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5374 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5375 # Check whether --enable-path_info was given.
5376 if test "${enable_path_info+set}" = set; then :
5377   enableval=$enable_path_info;  case "$enableval" in
5378     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380                 ;;
5381     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5382 $as_echo "yes" >&6; }
5383                 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5384
5385                 path_info=off
5386                 ;;
5387     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5390 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5391                 ;;
5392   esac
5393
5394 else
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5401 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5402 # Check whether --enable-env_debug was given.
5403 if test "${enable_env_debug+set}" = set; then :
5404   enableval=$enable_env_debug;  case "$enableval" in
5405     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5406 $as_echo "yes" >&6; }
5407                 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5408
5409                 ;;
5410     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412                 ;;
5413     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5416 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5417                 ;;
5418   esac
5419
5420 else
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425
5426 # Check whether --enable-zlib was given.
5427 if test "${enable_zlib+set}" = set; then :
5428   enableval=$enable_zlib;
5429 fi
5430
5431
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5433 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5434 # Check whether --enable-env_reset was given.
5435 if test "${enable_env_reset+set}" = set; then :
5436   enableval=$enable_env_reset;  case "$enableval" in
5437     yes)        env_reset=on
5438                 ;;
5439     no)         env_reset=off
5440                 ;;
5441     *)          env_reset=on
5442                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5443 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5444                 ;;
5445   esac
5446
5447 fi
5448
5449 if test "$env_reset" = "on"; then
5450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5451 $as_echo "yes" >&6; }
5452     $as_echo "#define ENV_RESET TRUE" >>confdefs.h
5453
5454 else
5455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457     $as_echo "#define ENV_RESET FALSE" >>confdefs.h
5458
5459 fi
5460
5461 # Check whether --enable-warnings was given.
5462 if test "${enable_warnings+set}" = set; then :
5463   enableval=$enable_warnings;  case "$enableval" in
5464     yes)    if test X"$with_devel" != X"yes" -a -n "$GCC"; then
5465                 CFLAGS="${CFLAGS} -Wall"
5466             fi
5467             ;;
5468     no)     ;;
5469     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5470 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5471             ;;
5472   esac
5473
5474 fi
5475
5476
5477 # Check whether --enable-admin-flag was given.
5478 if test "${enable_admin_flag+set}" = set; then :
5479   enableval=$enable_admin_flag;  case "$enableval" in
5480     yes)    $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5481
5482             ;;
5483     no)     ;;
5484     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5485 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5486             ;;
5487   esac
5488
5489 fi
5490
5491
5492
5493 # Check whether --with-selinux was given.
5494 if test "${with_selinux+set}" = set; then :
5495   withval=$with_selinux; case $with_selinux in
5496     yes)        SELINUX_USAGE="[-r role] [-t type] "
5497                 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5498
5499                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5500                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5501                 PROGS="${PROGS} sesh"
5502                 SEMAN=1
5503                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5504 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5505 if test "${ac_cv_lib_selinux_setkeycreatecon+set}" = set; then :
5506   $as_echo_n "(cached) " >&6
5507 else
5508   ac_check_lib_save_LIBS=$LIBS
5509 LIBS="-lselinux  $LIBS"
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h.  */
5512
5513 /* Override any GCC internal prototype to avoid an error.
5514    Use char because int might match the return type of a GCC
5515    builtin and then its argument prototype would still apply.  */
5516 #ifdef __cplusplus
5517 extern "C"
5518 #endif
5519 char setkeycreatecon ();
5520 int
5521 main ()
5522 {
5523 return setkeycreatecon ();
5524   ;
5525   return 0;
5526 }
5527 _ACEOF
5528 if ac_fn_c_try_link "$LINENO"; then :
5529   ac_cv_lib_selinux_setkeycreatecon=yes
5530 else
5531   ac_cv_lib_selinux_setkeycreatecon=no
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext \
5534     conftest$ac_exeext conftest.$ac_ext
5535 LIBS=$ac_check_lib_save_LIBS
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5538 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5539 if test "x$ac_cv_lib_selinux_setkeycreatecon" = x""yes; then :
5540   $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5541
5542 fi
5543
5544                 ;;
5545     no)         ;;
5546     *)          as_fn_error "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5547                 ;;
5548 esac
5549 fi
5550
5551
5552 # Check whether --enable-gss_krb5_ccache_name was given.
5553 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5554   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5555 else
5556   check_gss_krb5_ccache_name=no
5557 fi
5558
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5561 $as_echo_n "checking for library containing strerror... " >&6; }
5562 if test "${ac_cv_search_strerror+set}" = set; then :
5563   $as_echo_n "(cached) " >&6
5564 else
5565   ac_func_search_save_LIBS=$LIBS
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h.  */
5568
5569 /* Override any GCC internal prototype to avoid an error.
5570    Use char because int might match the return type of a GCC
5571    builtin and then its argument prototype would still apply.  */
5572 #ifdef __cplusplus
5573 extern "C"
5574 #endif
5575 char strerror ();
5576 int
5577 main ()
5578 {
5579 return strerror ();
5580   ;
5581   return 0;
5582 }
5583 _ACEOF
5584 for ac_lib in '' cposix; do
5585   if test -z "$ac_lib"; then
5586     ac_res="none required"
5587   else
5588     ac_res=-l$ac_lib
5589     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5590   fi
5591   if ac_fn_c_try_link "$LINENO"; then :
5592   ac_cv_search_strerror=$ac_res
5593 fi
5594 rm -f core conftest.err conftest.$ac_objext \
5595     conftest$ac_exeext
5596   if test "${ac_cv_search_strerror+set}" = set; then :
5597   break
5598 fi
5599 done
5600 if test "${ac_cv_search_strerror+set}" = set; then :
5601
5602 else
5603   ac_cv_search_strerror=no
5604 fi
5605 rm conftest.$ac_ext
5606 LIBS=$ac_func_search_save_LIBS
5607 fi
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5609 $as_echo "$ac_cv_search_strerror" >&6; }
5610 ac_res=$ac_cv_search_strerror
5611 if test "$ac_res" != no; then :
5612   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5613
5614 fi
5615
5616 ac_ext=c
5617 ac_cpp='$CPP $CPPFLAGS'
5618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5622 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5623 # On Suns, sometimes $CPP names a directory.
5624 if test -n "$CPP" && test -d "$CPP"; then
5625   CPP=
5626 fi
5627 if test -z "$CPP"; then
5628   if test "${ac_cv_prog_CPP+set}" = set; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631       # Double quotes because CPP needs to be expanded
5632     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5633     do
5634       ac_preproc_ok=false
5635 for ac_c_preproc_warn_flag in '' yes
5636 do
5637   # Use a header file that comes with gcc, so configuring glibc
5638   # with a fresh cross-compiler works.
5639   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5640   # <limits.h> exists even on freestanding compilers.
5641   # On the NeXT, cc -E runs the code through the compiler's parser,
5642   # not just through cpp. "Syntax error" is here to catch this case.
5643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h.  */
5645 #ifdef __STDC__
5646 # include <limits.h>
5647 #else
5648 # include <assert.h>
5649 #endif
5650                      Syntax error
5651 _ACEOF
5652 if ac_fn_c_try_cpp "$LINENO"; then :
5653
5654 else
5655   # Broken: fails on valid input.
5656 continue
5657 fi
5658 rm -f conftest.err conftest.$ac_ext
5659
5660   # OK, works on sane cases.  Now check whether nonexistent headers
5661   # can be detected and how.
5662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h.  */
5664 #include <ac_nonexistent.h>
5665 _ACEOF
5666 if ac_fn_c_try_cpp "$LINENO"; then :
5667   # Broken: success on invalid input.
5668 continue
5669 else
5670   # Passes both tests.
5671 ac_preproc_ok=:
5672 break
5673 fi
5674 rm -f conftest.err conftest.$ac_ext
5675
5676 done
5677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5678 rm -f conftest.err conftest.$ac_ext
5679 if $ac_preproc_ok; then :
5680   break
5681 fi
5682
5683     done
5684     ac_cv_prog_CPP=$CPP
5685
5686 fi
5687   CPP=$ac_cv_prog_CPP
5688 else
5689   ac_cv_prog_CPP=$CPP
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5692 $as_echo "$CPP" >&6; }
5693 ac_preproc_ok=false
5694 for ac_c_preproc_warn_flag in '' yes
5695 do
5696   # Use a header file that comes with gcc, so configuring glibc
5697   # with a fresh cross-compiler works.
5698   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5699   # <limits.h> exists even on freestanding compilers.
5700   # On the NeXT, cc -E runs the code through the compiler's parser,
5701   # not just through cpp. "Syntax error" is here to catch this case.
5702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h.  */
5704 #ifdef __STDC__
5705 # include <limits.h>
5706 #else
5707 # include <assert.h>
5708 #endif
5709                      Syntax error
5710 _ACEOF
5711 if ac_fn_c_try_cpp "$LINENO"; then :
5712
5713 else
5714   # Broken: fails on valid input.
5715 continue
5716 fi
5717 rm -f conftest.err conftest.$ac_ext
5718
5719   # OK, works on sane cases.  Now check whether nonexistent headers
5720   # can be detected and how.
5721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h.  */
5723 #include <ac_nonexistent.h>
5724 _ACEOF
5725 if ac_fn_c_try_cpp "$LINENO"; then :
5726   # Broken: success on invalid input.
5727 continue
5728 else
5729   # Passes both tests.
5730 ac_preproc_ok=:
5731 break
5732 fi
5733 rm -f conftest.err conftest.$ac_ext
5734
5735 done
5736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5737 rm -f conftest.err conftest.$ac_ext
5738 if $ac_preproc_ok; then :
5739
5740 else
5741   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5743 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5744 See \`config.log' for more details." "$LINENO" 5; }
5745 fi
5746
5747 ac_ext=c
5748 ac_cpp='$CPP $CPPFLAGS'
5749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5752
5753 if test -n "$ac_tool_prefix"; then
5754   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}ar; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if test "${ac_cv_prog_AR+set}" = set; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   if test -n "$AR"; then
5762   ac_cv_prog_AR="$AR" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769     for ac_exec_ext in '' $ac_executable_extensions; do
5770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771     ac_cv_prog_AR="${ac_tool_prefix}ar"
5772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776   done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 AR=$ac_cv_prog_AR
5782 if test -n "$AR"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5784 $as_echo "$AR" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791 fi
5792 if test -z "$ac_cv_prog_AR"; then
5793   ac_ct_AR=$AR
5794   # Extract the first word of "ar", so it can be a program name with args.
5795 set dummy ar; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801   if test -n "$ac_ct_AR"; then
5802   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809     for ac_exec_ext in '' $ac_executable_extensions; do
5810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811     ac_cv_prog_ac_ct_AR="ar"
5812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816   done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5822 if test -n "$ac_ct_AR"; then
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5824 $as_echo "$ac_ct_AR" >&6; }
5825 else
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829
5830   if test "x$ac_ct_AR" = x; then
5831     AR="false"
5832   else
5833     case $cross_compiling:$ac_tool_warned in
5834 yes:)
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837 ac_tool_warned=yes ;;
5838 esac
5839     AR=$ac_ct_AR
5840   fi
5841 else
5842   AR="$ac_cv_prog_AR"
5843 fi
5844
5845 if test -n "$ac_tool_prefix"; then
5846   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5851   $as_echo_n "(cached) " >&6
5852 else
5853   if test -n "$RANLIB"; then
5854   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861     for ac_exec_ext in '' $ac_executable_extensions; do
5862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868   done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 RANLIB=$ac_cv_prog_RANLIB
5874 if test -n "$RANLIB"; then
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5876 $as_echo "$RANLIB" >&6; }
5877 else
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 fi
5881
5882
5883 fi
5884 if test -z "$ac_cv_prog_RANLIB"; then
5885   ac_ct_RANLIB=$RANLIB
5886   # Extract the first word of "ranlib", so it can be a program name with args.
5887 set dummy ranlib; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5891   $as_echo_n "(cached) " >&6
5892 else
5893   if test -n "$ac_ct_RANLIB"; then
5894   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901     for ac_exec_ext in '' $ac_executable_extensions; do
5902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903     ac_cv_prog_ac_ct_RANLIB="ranlib"
5904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908   done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5914 if test -n "$ac_ct_RANLIB"; then
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5916 $as_echo "$ac_ct_RANLIB" >&6; }
5917 else
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922   if test "x$ac_ct_RANLIB" = x; then
5923     RANLIB=":"
5924   else
5925     case $cross_compiling:$ac_tool_warned in
5926 yes:)
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929 ac_tool_warned=yes ;;
5930 esac
5931     RANLIB=$ac_ct_RANLIB
5932   fi
5933 else
5934   RANLIB="$ac_cv_prog_RANLIB"
5935 fi
5936
5937 if test X"$AR" = X"false"; then
5938     as_fn_error "the \"ar\" utility is required to build sudo" "$LINENO" 5
5939 fi
5940
5941 if test "x$ac_cv_prog_cc_c89" = "xno"; then
5942     as_fn_error "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
5943 fi
5944
5945 ac_aux_dir=
5946 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5947   for ac_t in install-sh install.sh shtool; do
5948     if test -f "$ac_dir/$ac_t"; then
5949       ac_aux_dir=$ac_dir
5950       ac_install_sh="$ac_aux_dir/$ac_t -c"
5951       break 2
5952     fi
5953   done
5954 done
5955 if test -z "$ac_aux_dir"; then
5956   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5957 fi
5958
5959 # These three variables are undocumented and unsupported,
5960 # and are intended to be withdrawn in a future Autoconf release.
5961 # They can cause serious problems if a builder's source tree is in a directory
5962 # whose full name contains unusual characters.
5963 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5964 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5965 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5966
5967
5968 # Make sure we can run config.sub.
5969 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5970   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5971
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5973 $as_echo_n "checking build system type... " >&6; }
5974 if test "${ac_cv_build+set}" = set; then :
5975   $as_echo_n "(cached) " >&6
5976 else
5977   ac_build_alias=$build_alias
5978 test "x$ac_build_alias" = x &&
5979   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5980 test "x$ac_build_alias" = x &&
5981   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5982 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5983   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5984
5985 fi
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5987 $as_echo "$ac_cv_build" >&6; }
5988 case $ac_cv_build in
5989 *-*-*) ;;
5990 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5991 esac
5992 build=$ac_cv_build
5993 ac_save_IFS=$IFS; IFS='-'
5994 set x $ac_cv_build
5995 shift
5996 build_cpu=$1
5997 build_vendor=$2
5998 shift; shift
5999 # Remember, the first character of IFS is used to create $*,
6000 # except with old shells:
6001 build_os=$*
6002 IFS=$ac_save_IFS
6003 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6004
6005
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6007 $as_echo_n "checking host system type... " >&6; }
6008 if test "${ac_cv_host+set}" = set; then :
6009   $as_echo_n "(cached) " >&6
6010 else
6011   if test "x$host_alias" = x; then
6012   ac_cv_host=$ac_cv_build
6013 else
6014   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6015     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6016 fi
6017
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6020 $as_echo "$ac_cv_host" >&6; }
6021 case $ac_cv_host in
6022 *-*-*) ;;
6023 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6024 esac
6025 host=$ac_cv_host
6026 ac_save_IFS=$IFS; IFS='-'
6027 set x $ac_cv_host
6028 shift
6029 host_cpu=$1
6030 host_vendor=$2
6031 shift; shift
6032 # Remember, the first character of IFS is used to create $*,
6033 # except with old shells:
6034 host_os=$*
6035 IFS=$ac_save_IFS
6036 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6037
6038
6039
6040
6041 case `pwd` in
6042   *\ * | *\     *)
6043     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6044 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6045 esac
6046
6047
6048
6049 macro_version='2.2.10'
6050 macro_revision='1.3175'
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 ltmain="$ac_aux_dir/ltmain.sh"
6065
6066 # Backslashify metacharacters that are still active within
6067 # double-quoted strings.
6068 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6069
6070 # Same as above, but do not quote variable references.
6071 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6072
6073 # Sed substitution to delay expansion of an escaped shell variable in a
6074 # double_quote_subst'ed string.
6075 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6076
6077 # Sed substitution to delay expansion of an escaped single quote.
6078 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6079
6080 # Sed substitution to avoid accidental globbing in evaled expressions
6081 no_glob_subst='s/\*/\\\*/g'
6082
6083 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6084 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6085 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6086
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6088 $as_echo_n "checking how to print strings... " >&6; }
6089 # Test print first, because it will be a builtin if present.
6090 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6091    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6092   ECHO='print -r --'
6093 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6094   ECHO='printf %s\n'
6095 else
6096   # Use this function as a fallback that always works.
6097   func_fallback_echo ()
6098   {
6099     eval 'cat <<_LTECHO_EOF
6100 $1
6101 _LTECHO_EOF'
6102   }
6103   ECHO='func_fallback_echo'
6104 fi
6105
6106 # func_echo_all arg...
6107 # Invoke $ECHO with all args, space-separated.
6108 func_echo_all ()
6109 {
6110     $ECHO ""
6111 }
6112
6113 case "$ECHO" in
6114   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6115 $as_echo "printf" >&6; } ;;
6116   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6117 $as_echo "print -r" >&6; } ;;
6118   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6119 $as_echo "cat" >&6; } ;;
6120 esac
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6136 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6137 if test "${ac_cv_path_SED+set}" = set; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6141      for ac_i in 1 2 3 4 5 6 7; do
6142        ac_script="$ac_script$as_nl$ac_script"
6143      done
6144      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6145      { ac_script=; unset ac_script;}
6146      if test -z "$SED"; then
6147   ac_path_SED_found=false
6148   # Loop through the user's path and test for each of PROGNAME-LIST
6149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152   IFS=$as_save_IFS
6153   test -z "$as_dir" && as_dir=.
6154     for ac_prog in sed gsed; do
6155     for ac_exec_ext in '' $ac_executable_extensions; do
6156       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6157       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6158 # Check for GNU ac_path_SED and select it if it is found.
6159   # Check for GNU $ac_path_SED
6160 case `"$ac_path_SED" --version 2>&1` in
6161 *GNU*)
6162   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6163 *)
6164   ac_count=0
6165   $as_echo_n 0123456789 >"conftest.in"
6166   while :
6167   do
6168     cat "conftest.in" "conftest.in" >"conftest.tmp"
6169     mv "conftest.tmp" "conftest.in"
6170     cp "conftest.in" "conftest.nl"
6171     $as_echo '' >> "conftest.nl"
6172     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6173     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6174     as_fn_arith $ac_count + 1 && ac_count=$as_val
6175     if test $ac_count -gt ${ac_path_SED_max-0}; then
6176       # Best one so far, save it but keep looking for a better one
6177       ac_cv_path_SED="$ac_path_SED"
6178       ac_path_SED_max=$ac_count
6179     fi
6180     # 10*(2^10) chars as input seems more than enough
6181     test $ac_count -gt 10 && break
6182   done
6183   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6184 esac
6185
6186       $ac_path_SED_found && break 3
6187     done
6188   done
6189   done
6190 IFS=$as_save_IFS
6191   if test -z "$ac_cv_path_SED"; then
6192     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6193   fi
6194 else
6195   ac_cv_path_SED=$SED
6196 fi
6197
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6200 $as_echo "$ac_cv_path_SED" >&6; }
6201  SED="$ac_cv_path_SED"
6202   rm -f conftest.sed
6203
6204 test -z "$SED" && SED=sed
6205 Xsed="$SED -e 1s/^X//"
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6219 if test "${ac_cv_path_GREP+set}" = set; then :
6220   $as_echo_n "(cached) " >&6
6221 else
6222   if test -z "$GREP"; then
6223   ac_path_GREP_found=false
6224   # Loop through the user's path and test for each of PROGNAME-LIST
6225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6227 do
6228   IFS=$as_save_IFS
6229   test -z "$as_dir" && as_dir=.
6230     for ac_prog in grep ggrep; do
6231     for ac_exec_ext in '' $ac_executable_extensions; do
6232       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6233       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6234 # Check for GNU ac_path_GREP and select it if it is found.
6235   # Check for GNU $ac_path_GREP
6236 case `"$ac_path_GREP" --version 2>&1` in
6237 *GNU*)
6238   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6239 *)
6240   ac_count=0
6241   $as_echo_n 0123456789 >"conftest.in"
6242   while :
6243   do
6244     cat "conftest.in" "conftest.in" >"conftest.tmp"
6245     mv "conftest.tmp" "conftest.in"
6246     cp "conftest.in" "conftest.nl"
6247     $as_echo 'GREP' >> "conftest.nl"
6248     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6249     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6250     as_fn_arith $ac_count + 1 && ac_count=$as_val
6251     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6252       # Best one so far, save it but keep looking for a better one
6253       ac_cv_path_GREP="$ac_path_GREP"
6254       ac_path_GREP_max=$ac_count
6255     fi
6256     # 10*(2^10) chars as input seems more than enough
6257     test $ac_count -gt 10 && break
6258   done
6259   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6260 esac
6261
6262       $ac_path_GREP_found && break 3
6263     done
6264   done
6265   done
6266 IFS=$as_save_IFS
6267   if test -z "$ac_cv_path_GREP"; then
6268     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6269   fi
6270 else
6271   ac_cv_path_GREP=$GREP
6272 fi
6273
6274 fi
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6276 $as_echo "$ac_cv_path_GREP" >&6; }
6277  GREP="$ac_cv_path_GREP"
6278
6279
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6281 $as_echo_n "checking for egrep... " >&6; }
6282 if test "${ac_cv_path_EGREP+set}" = set; then :
6283   $as_echo_n "(cached) " >&6
6284 else
6285   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6286    then ac_cv_path_EGREP="$GREP -E"
6287    else
6288      if test -z "$EGREP"; then
6289   ac_path_EGREP_found=false
6290   # Loop through the user's path and test for each of PROGNAME-LIST
6291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6293 do
6294   IFS=$as_save_IFS
6295   test -z "$as_dir" && as_dir=.
6296     for ac_prog in egrep; do
6297     for ac_exec_ext in '' $ac_executable_extensions; do
6298       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6299       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6300 # Check for GNU ac_path_EGREP and select it if it is found.
6301   # Check for GNU $ac_path_EGREP
6302 case `"$ac_path_EGREP" --version 2>&1` in
6303 *GNU*)
6304   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6305 *)
6306   ac_count=0
6307   $as_echo_n 0123456789 >"conftest.in"
6308   while :
6309   do
6310     cat "conftest.in" "conftest.in" >"conftest.tmp"
6311     mv "conftest.tmp" "conftest.in"
6312     cp "conftest.in" "conftest.nl"
6313     $as_echo 'EGREP' >> "conftest.nl"
6314     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6315     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6316     as_fn_arith $ac_count + 1 && ac_count=$as_val
6317     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6318       # Best one so far, save it but keep looking for a better one
6319       ac_cv_path_EGREP="$ac_path_EGREP"
6320       ac_path_EGREP_max=$ac_count
6321     fi
6322     # 10*(2^10) chars as input seems more than enough
6323     test $ac_count -gt 10 && break
6324   done
6325   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6326 esac
6327
6328       $ac_path_EGREP_found && break 3
6329     done
6330   done
6331   done
6332 IFS=$as_save_IFS
6333   if test -z "$ac_cv_path_EGREP"; then
6334     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6335   fi
6336 else
6337   ac_cv_path_EGREP=$EGREP
6338 fi
6339
6340    fi
6341 fi
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6343 $as_echo "$ac_cv_path_EGREP" >&6; }
6344  EGREP="$ac_cv_path_EGREP"
6345
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6348 $as_echo_n "checking for fgrep... " >&6; }
6349 if test "${ac_cv_path_FGREP+set}" = set; then :
6350   $as_echo_n "(cached) " >&6
6351 else
6352   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6353    then ac_cv_path_FGREP="$GREP -F"
6354    else
6355      if test -z "$FGREP"; then
6356   ac_path_FGREP_found=false
6357   # Loop through the user's path and test for each of PROGNAME-LIST
6358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363     for ac_prog in fgrep; do
6364     for ac_exec_ext in '' $ac_executable_extensions; do
6365       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6366       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6367 # Check for GNU ac_path_FGREP and select it if it is found.
6368   # Check for GNU $ac_path_FGREP
6369 case `"$ac_path_FGREP" --version 2>&1` in
6370 *GNU*)
6371   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6372 *)
6373   ac_count=0
6374   $as_echo_n 0123456789 >"conftest.in"
6375   while :
6376   do
6377     cat "conftest.in" "conftest.in" >"conftest.tmp"
6378     mv "conftest.tmp" "conftest.in"
6379     cp "conftest.in" "conftest.nl"
6380     $as_echo 'FGREP' >> "conftest.nl"
6381     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6382     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6383     as_fn_arith $ac_count + 1 && ac_count=$as_val
6384     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6385       # Best one so far, save it but keep looking for a better one
6386       ac_cv_path_FGREP="$ac_path_FGREP"
6387       ac_path_FGREP_max=$ac_count
6388     fi
6389     # 10*(2^10) chars as input seems more than enough
6390     test $ac_count -gt 10 && break
6391   done
6392   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6393 esac
6394
6395       $ac_path_FGREP_found && break 3
6396     done
6397   done
6398   done
6399 IFS=$as_save_IFS
6400   if test -z "$ac_cv_path_FGREP"; then
6401     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6402   fi
6403 else
6404   ac_cv_path_FGREP=$FGREP
6405 fi
6406
6407    fi
6408 fi
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6410 $as_echo "$ac_cv_path_FGREP" >&6; }
6411  FGREP="$ac_cv_path_FGREP"
6412
6413
6414 test -z "$GREP" && GREP=grep
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434 # Check whether --with-gnu-ld was given.
6435 if test "${with_gnu_ld+set}" = set; then :
6436   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6437 else
6438   with_gnu_ld=no
6439 fi
6440
6441 ac_prog=ld
6442 if test "$GCC" = yes; then
6443   # Check if gcc -print-prog-name=ld gives a path.
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6445 $as_echo_n "checking for ld used by $CC... " >&6; }
6446   case $host in
6447   *-*-mingw*)
6448     # gcc leaves a trailing carriage return which upsets mingw
6449     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6450   *)
6451     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6452   esac
6453   case $ac_prog in
6454     # Accept absolute paths.
6455     [\\/]* | ?:[\\/]*)
6456       re_direlt='/[^/][^/]*/\.\./'
6457       # Canonicalize the pathname of ld
6458       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6459       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6460         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6461       done
6462       test -z "$LD" && LD="$ac_prog"
6463       ;;
6464   "")
6465     # If it fails, then pretend we aren't using GCC.
6466     ac_prog=ld
6467     ;;
6468   *)
6469     # If it is relative, then search for the first ld in PATH.
6470     with_gnu_ld=unknown
6471     ;;
6472   esac
6473 elif test "$with_gnu_ld" = yes; then
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6475 $as_echo_n "checking for GNU ld... " >&6; }
6476 else
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6478 $as_echo_n "checking for non-GNU ld... " >&6; }
6479 fi
6480 if test "${lt_cv_path_LD+set}" = set; then :
6481   $as_echo_n "(cached) " >&6
6482 else
6483   if test -z "$LD"; then
6484   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6485   for ac_dir in $PATH; do
6486     IFS="$lt_save_ifs"
6487     test -z "$ac_dir" && ac_dir=.
6488     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6489       lt_cv_path_LD="$ac_dir/$ac_prog"
6490       # Check to see if the program is GNU ld.  I'd rather use --version,
6491       # but apparently some variants of GNU ld only accept -v.
6492       # Break only if it was the GNU/non-GNU ld that we prefer.
6493       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6494       *GNU* | *'with BFD'*)
6495         test "$with_gnu_ld" != no && break
6496         ;;
6497       *)
6498         test "$with_gnu_ld" != yes && break
6499         ;;
6500       esac
6501     fi
6502   done
6503   IFS="$lt_save_ifs"
6504 else
6505   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6506 fi
6507 fi
6508
6509 LD="$lt_cv_path_LD"
6510 if test -n "$LD"; then
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6512 $as_echo "$LD" >&6; }
6513 else
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6519 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6520 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6521   $as_echo_n "(cached) " >&6
6522 else
6523   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6524 case `$LD -v 2>&1 </dev/null` in
6525 *GNU* | *'with BFD'*)
6526   lt_cv_prog_gnu_ld=yes
6527   ;;
6528 *)
6529   lt_cv_prog_gnu_ld=no
6530   ;;
6531 esac
6532 fi
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6534 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6535 with_gnu_ld=$lt_cv_prog_gnu_ld
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6546 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6547 if test "${lt_cv_path_NM+set}" = set; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   if test -n "$NM"; then
6551   # Let the user override the test.
6552   lt_cv_path_NM="$NM"
6553 else
6554   lt_nm_to_check="${ac_tool_prefix}nm"
6555   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6556     lt_nm_to_check="$lt_nm_to_check nm"
6557   fi
6558   for lt_tmp_nm in $lt_nm_to_check; do
6559     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6560     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6561       IFS="$lt_save_ifs"
6562       test -z "$ac_dir" && ac_dir=.
6563       tmp_nm="$ac_dir/$lt_tmp_nm"
6564       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6565         # Check to see if the nm accepts a BSD-compat flag.
6566         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6567         #   nm: unknown option "B" ignored
6568         # Tru64's nm complains that /dev/null is an invalid object file
6569         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6570         */dev/null* | *'Invalid file or object type'*)
6571           lt_cv_path_NM="$tmp_nm -B"
6572           break
6573           ;;
6574         *)
6575           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6576           */dev/null*)
6577             lt_cv_path_NM="$tmp_nm -p"
6578             break
6579             ;;
6580           *)
6581             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6582             continue # so that we can try to find one that supports BSD flags
6583             ;;
6584           esac
6585           ;;
6586         esac
6587       fi
6588     done
6589     IFS="$lt_save_ifs"
6590   done
6591   : ${lt_cv_path_NM=no}
6592 fi
6593 fi
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6595 $as_echo "$lt_cv_path_NM" >&6; }
6596 if test "$lt_cv_path_NM" != "no"; then
6597   NM="$lt_cv_path_NM"
6598 else
6599   # Didn't find any BSD compatible name lister, look for dumpbin.
6600   if test -n "$DUMPBIN"; then :
6601     # Let the user override the test.
6602   else
6603     if test -n "$ac_tool_prefix"; then
6604   for ac_prog in dumpbin "link -dump"
6605   do
6606     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6611   $as_echo_n "(cached) " >&6
6612 else
6613   if test -n "$DUMPBIN"; then
6614   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6615 else
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619   IFS=$as_save_IFS
6620   test -z "$as_dir" && as_dir=.
6621     for ac_exec_ext in '' $ac_executable_extensions; do
6622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6623     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6625     break 2
6626   fi
6627 done
6628   done
6629 IFS=$as_save_IFS
6630
6631 fi
6632 fi
6633 DUMPBIN=$ac_cv_prog_DUMPBIN
6634 if test -n "$DUMPBIN"; then
6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6636 $as_echo "$DUMPBIN" >&6; }
6637 else
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6640 fi
6641
6642
6643     test -n "$DUMPBIN" && break
6644   done
6645 fi
6646 if test -z "$DUMPBIN"; then
6647   ac_ct_DUMPBIN=$DUMPBIN
6648   for ac_prog in dumpbin "link -dump"
6649 do
6650   # Extract the first word of "$ac_prog", so it can be a program name with args.
6651 set dummy $ac_prog; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6655   $as_echo_n "(cached) " >&6
6656 else
6657   if test -n "$ac_ct_DUMPBIN"; then
6658   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665     for ac_exec_ext in '' $ac_executable_extensions; do
6666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672   done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6678 if test -n "$ac_ct_DUMPBIN"; then
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6680 $as_echo "$ac_ct_DUMPBIN" >&6; }
6681 else
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6684 fi
6685
6686
6687   test -n "$ac_ct_DUMPBIN" && break
6688 done
6689
6690   if test "x$ac_ct_DUMPBIN" = x; then
6691     DUMPBIN=":"
6692   else
6693     case $cross_compiling:$ac_tool_warned in
6694 yes:)
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697 ac_tool_warned=yes ;;
6698 esac
6699     DUMPBIN=$ac_ct_DUMPBIN
6700   fi
6701 fi
6702
6703     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6704     *COFF*)
6705       DUMPBIN="$DUMPBIN -symbols"
6706       ;;
6707     *)
6708       DUMPBIN=:
6709       ;;
6710     esac
6711   fi
6712
6713   if test "$DUMPBIN" != ":"; then
6714     NM="$DUMPBIN"
6715   fi
6716 fi
6717 test -z "$NM" && NM=nm
6718
6719
6720
6721
6722
6723
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6725 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6726 if test "${lt_cv_nm_interface+set}" = set; then :
6727   $as_echo_n "(cached) " >&6
6728 else
6729   lt_cv_nm_interface="BSD nm"
6730   echo "int some_variable = 0;" > conftest.$ac_ext
6731   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6732   (eval "$ac_compile" 2>conftest.err)
6733   cat conftest.err >&5
6734   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6735   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6736   cat conftest.err >&5
6737   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6738   cat conftest.out >&5
6739   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6740     lt_cv_nm_interface="MS dumpbin"
6741   fi
6742   rm -f conftest*
6743 fi
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6745 $as_echo "$lt_cv_nm_interface" >&6; }
6746
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6748 $as_echo_n "checking whether ln -s works... " >&6; }
6749 LN_S=$as_ln_s
6750 if test "$LN_S" = "ln -s"; then
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6752 $as_echo "yes" >&6; }
6753 else
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6755 $as_echo "no, using $LN_S" >&6; }
6756 fi
6757
6758 # find the maximum length of command line arguments
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6760 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6761 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6762   $as_echo_n "(cached) " >&6
6763 else
6764     i=0
6765   teststring="ABCD"
6766
6767   case $build_os in
6768   msdosdjgpp*)
6769     # On DJGPP, this test can blow up pretty badly due to problems in libc
6770     # (any single argument exceeding 2000 bytes causes a buffer overrun
6771     # during glob expansion).  Even if it were fixed, the result of this
6772     # check would be larger than it should be.
6773     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6774     ;;
6775
6776   gnu*)
6777     # Under GNU Hurd, this test is not required because there is
6778     # no limit to the length of command line arguments.
6779     # Libtool will interpret -1 as no limit whatsoever
6780     lt_cv_sys_max_cmd_len=-1;
6781     ;;
6782
6783   cygwin* | mingw* | cegcc*)
6784     # On Win9x/ME, this test blows up -- it succeeds, but takes
6785     # about 5 minutes as the teststring grows exponentially.
6786     # Worse, since 9x/ME are not pre-emptively multitasking,
6787     # you end up with a "frozen" computer, even though with patience
6788     # the test eventually succeeds (with a max line length of 256k).
6789     # Instead, let's just punt: use the minimum linelength reported by
6790     # all of the supported platforms: 8192 (on NT/2K/XP).
6791     lt_cv_sys_max_cmd_len=8192;
6792     ;;
6793
6794   mint*)
6795     # On MiNT this can take a long time and run out of memory.
6796     lt_cv_sys_max_cmd_len=8192;
6797     ;;
6798
6799   amigaos*)
6800     # On AmigaOS with pdksh, this test takes hours, literally.
6801     # So we just punt and use a minimum line length of 8192.
6802     lt_cv_sys_max_cmd_len=8192;
6803     ;;
6804
6805   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6806     # This has been around since 386BSD, at least.  Likely further.
6807     if test -x /sbin/sysctl; then
6808       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6809     elif test -x /usr/sbin/sysctl; then
6810       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6811     else
6812       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6813     fi
6814     # And add a safety zone
6815     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6816     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6817     ;;
6818
6819   interix*)
6820     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6821     lt_cv_sys_max_cmd_len=196608
6822     ;;
6823
6824   osf*)
6825     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6826     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6827     # nice to cause kernel panics so lets avoid the loop below.
6828     # First set a reasonable default.
6829     lt_cv_sys_max_cmd_len=16384
6830     #
6831     if test -x /sbin/sysconfig; then
6832       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6833         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6834       esac
6835     fi
6836     ;;
6837   sco3.2v5*)
6838     lt_cv_sys_max_cmd_len=102400
6839     ;;
6840   sysv5* | sco5v6* | sysv4.2uw2*)
6841     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6842     if test -n "$kargmax"; then
6843       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6844     else
6845       lt_cv_sys_max_cmd_len=32768
6846     fi
6847     ;;
6848   *)
6849     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6850     if test -n "$lt_cv_sys_max_cmd_len"; then
6851       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6852       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6853     else
6854       # Make teststring a little bigger before we do anything with it.
6855       # a 1K string should be a reasonable start.
6856       for i in 1 2 3 4 5 6 7 8 ; do
6857         teststring=$teststring$teststring
6858       done
6859       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6860       # If test is not a shell built-in, we'll probably end up computing a
6861       # maximum length that is only half of the actual maximum length, but
6862       # we can't tell.
6863       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6864                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6865               test $i != 17 # 1/2 MB should be enough
6866       do
6867         i=`expr $i + 1`
6868         teststring=$teststring$teststring
6869       done
6870       # Only check the string length outside the loop.
6871       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6872       teststring=
6873       # Add a significant safety factor because C++ compilers can tack on
6874       # massive amounts of additional arguments before passing them to the
6875       # linker.  It appears as though 1/2 is a usable value.
6876       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6877     fi
6878     ;;
6879   esac
6880
6881 fi
6882
6883 if test -n $lt_cv_sys_max_cmd_len ; then
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6885 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6886 else
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6888 $as_echo "none" >&6; }
6889 fi
6890 max_cmd_len=$lt_cv_sys_max_cmd_len
6891
6892
6893
6894
6895
6896
6897 : ${CP="cp -f"}
6898 : ${MV="mv -f"}
6899 : ${RM="rm -f"}
6900
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6902 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6903 # Try some XSI features
6904 xsi_shell=no
6905 ( _lt_dummy="a/b/c"
6906   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6907       = c,a/b,, \
6908     && eval 'test $(( 1 + 1 )) -eq 2 \
6909     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6910   && xsi_shell=yes
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6912 $as_echo "$xsi_shell" >&6; }
6913
6914
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6916 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6917 lt_shell_append=no
6918 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6919     >/dev/null 2>&1 \
6920   && lt_shell_append=yes
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6922 $as_echo "$lt_shell_append" >&6; }
6923
6924
6925 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6926   lt_unset=unset
6927 else
6928   lt_unset=false
6929 fi
6930
6931
6932
6933
6934
6935 # test EBCDIC or ASCII
6936 case `echo X|tr X '\101'` in
6937  A) # ASCII based system
6938     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6939   lt_SP2NL='tr \040 \012'
6940   lt_NL2SP='tr \015\012 \040\040'
6941   ;;
6942  *) # EBCDIC based system
6943   lt_SP2NL='tr \100 \n'
6944   lt_NL2SP='tr \r\n \100\100'
6945   ;;
6946 esac
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6957 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6958 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6959   $as_echo_n "(cached) " >&6
6960 else
6961   lt_cv_ld_reload_flag='-r'
6962 fi
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6964 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6965 reload_flag=$lt_cv_ld_reload_flag
6966 case $reload_flag in
6967 "" | " "*) ;;
6968 *) reload_flag=" $reload_flag" ;;
6969 esac
6970 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6971 case $host_os in
6972   darwin*)
6973     if test "$GCC" = yes; then
6974       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6975     else
6976       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6977     fi
6978     ;;
6979 esac
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989 if test -n "$ac_tool_prefix"; then
6990   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   if test -n "$OBJDUMP"; then
6998   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005     for ac_exec_ext in '' $ac_executable_extensions; do
7006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012   done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 OBJDUMP=$ac_cv_prog_OBJDUMP
7018 if test -n "$OBJDUMP"; then
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7020 $as_echo "$OBJDUMP" >&6; }
7021 else
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026
7027 fi
7028 if test -z "$ac_cv_prog_OBJDUMP"; then
7029   ac_ct_OBJDUMP=$OBJDUMP
7030   # Extract the first word of "objdump", so it can be a program name with args.
7031 set dummy objdump; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   if test -n "$ac_ct_OBJDUMP"; then
7038   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043   IFS=$as_save_IFS
7044   test -z "$as_dir" && as_dir=.
7045     for ac_exec_ext in '' $ac_executable_extensions; do
7046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049     break 2
7050   fi
7051 done
7052   done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7058 if test -n "$ac_ct_OBJDUMP"; then
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7060 $as_echo "$ac_ct_OBJDUMP" >&6; }
7061 else
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066   if test "x$ac_ct_OBJDUMP" = x; then
7067     OBJDUMP="false"
7068   else
7069     case $cross_compiling:$ac_tool_warned in
7070 yes:)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7074 esac
7075     OBJDUMP=$ac_ct_OBJDUMP
7076   fi
7077 else
7078   OBJDUMP="$ac_cv_prog_OBJDUMP"
7079 fi
7080
7081 test -z "$OBJDUMP" && OBJDUMP=objdump
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7092 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7093 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7094   $as_echo_n "(cached) " >&6
7095 else
7096   lt_cv_file_magic_cmd='$MAGIC_CMD'
7097 lt_cv_file_magic_test_file=
7098 lt_cv_deplibs_check_method='unknown'
7099 # Need to set the preceding variable on all platforms that support
7100 # interlibrary dependencies.
7101 # 'none' -- dependencies not supported.
7102 # `unknown' -- same as none, but documents that we really don't know.
7103 # 'pass_all' -- all dependencies passed with no checks.
7104 # 'test_compile' -- check by making test program.
7105 # 'file_magic [[regex]]' -- check by looking for files in library path
7106 # which responds to the $file_magic_cmd with a given extended regex.
7107 # If you have `file' or equivalent on your system and you're not sure
7108 # whether `pass_all' will *always* work, you probably want this one.
7109
7110 case $host_os in
7111 aix[4-9]*)
7112   lt_cv_deplibs_check_method=pass_all
7113   ;;
7114
7115 beos*)
7116   lt_cv_deplibs_check_method=pass_all
7117   ;;
7118
7119 bsdi[45]*)
7120   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7121   lt_cv_file_magic_cmd='/usr/bin/file -L'
7122   lt_cv_file_magic_test_file=/shlib/libc.so
7123   ;;
7124
7125 cygwin*)
7126   # func_win32_libid is a shell function defined in ltmain.sh
7127   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7128   lt_cv_file_magic_cmd='func_win32_libid'
7129   ;;
7130
7131 mingw* | pw32*)
7132   # Base MSYS/MinGW do not provide the 'file' command needed by
7133   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7134   # unless we find 'file', for example because we are cross-compiling.
7135   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7136   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7137     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7138     lt_cv_file_magic_cmd='func_win32_libid'
7139   else
7140     # Keep this pattern in sync with the one in func_win32_libid.
7141     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7142     lt_cv_file_magic_cmd='$OBJDUMP -f'
7143   fi
7144   ;;
7145
7146 cegcc*)
7147   # use the weaker test based on 'objdump'. See mingw*.
7148   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7149   lt_cv_file_magic_cmd='$OBJDUMP -f'
7150   ;;
7151
7152 darwin* | rhapsody*)
7153   lt_cv_deplibs_check_method=pass_all
7154   ;;
7155
7156 freebsd* | dragonfly*)
7157   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7158     case $host_cpu in
7159     i*86 )
7160       # Not sure whether the presence of OpenBSD here was a mistake.
7161       # Let's accept both of them until this is cleared up.
7162       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7163       lt_cv_file_magic_cmd=/usr/bin/file
7164       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7165       ;;
7166     esac
7167   else
7168     lt_cv_deplibs_check_method=pass_all
7169   fi
7170   ;;
7171
7172 gnu*)
7173   lt_cv_deplibs_check_method=pass_all
7174   ;;
7175
7176 haiku*)
7177   lt_cv_deplibs_check_method=pass_all
7178   ;;
7179
7180 hpux10.20* | hpux11*)
7181   lt_cv_file_magic_cmd=/usr/bin/file
7182   case $host_cpu in
7183   ia64*)
7184     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7185     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7186     ;;
7187   hppa*64*)
7188     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7189     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7190     ;;
7191   *)
7192     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7193     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7194     ;;
7195   esac
7196   ;;
7197
7198 interix[3-9]*)
7199   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7200   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7201   ;;
7202
7203 irix5* | irix6* | nonstopux*)
7204   case $LD in
7205   *-32|*"-32 ") libmagic=32-bit;;
7206   *-n32|*"-n32 ") libmagic=N32;;
7207   *-64|*"-64 ") libmagic=64-bit;;
7208   *) libmagic=never-match;;
7209   esac
7210   lt_cv_deplibs_check_method=pass_all
7211   ;;
7212
7213 # This must be Linux ELF.
7214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7215   lt_cv_deplibs_check_method=pass_all
7216   ;;
7217
7218 netbsd*)
7219   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7220     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7221   else
7222     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7223   fi
7224   ;;
7225
7226 newos6*)
7227   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7228   lt_cv_file_magic_cmd=/usr/bin/file
7229   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7230   ;;
7231
7232 *nto* | *qnx*)
7233   lt_cv_deplibs_check_method=pass_all
7234   ;;
7235
7236 openbsd*)
7237   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7238     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7239   else
7240     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7241   fi
7242   ;;
7243
7244 osf3* | osf4* | osf5*)
7245   lt_cv_deplibs_check_method=pass_all
7246   ;;
7247
7248 rdos*)
7249   lt_cv_deplibs_check_method=pass_all
7250   ;;
7251
7252 solaris*)
7253   lt_cv_deplibs_check_method=pass_all
7254   ;;
7255
7256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7257   lt_cv_deplibs_check_method=pass_all
7258   ;;
7259
7260 sysv4 | sysv4.3*)
7261   case $host_vendor in
7262   motorola)
7263     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]'
7264     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7265     ;;
7266   ncr)
7267     lt_cv_deplibs_check_method=pass_all
7268     ;;
7269   sequent)
7270     lt_cv_file_magic_cmd='/bin/file'
7271     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7272     ;;
7273   sni)
7274     lt_cv_file_magic_cmd='/bin/file'
7275     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7276     lt_cv_file_magic_test_file=/lib/libc.so
7277     ;;
7278   siemens)
7279     lt_cv_deplibs_check_method=pass_all
7280     ;;
7281   pc)
7282     lt_cv_deplibs_check_method=pass_all
7283     ;;
7284   esac
7285   ;;
7286
7287 tpf*)
7288   lt_cv_deplibs_check_method=pass_all
7289   ;;
7290 esac
7291
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7294 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7295 file_magic_cmd=$lt_cv_file_magic_cmd
7296 deplibs_check_method=$lt_cv_deplibs_check_method
7297 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310 if test -n "$ac_tool_prefix"; then
7311   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}ar; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if test "${ac_cv_prog_AR+set}" = set; then :
7316   $as_echo_n "(cached) " >&6
7317 else
7318   if test -n "$AR"; then
7319   ac_cv_prog_AR="$AR" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324   IFS=$as_save_IFS
7325   test -z "$as_dir" && as_dir=.
7326     for ac_exec_ext in '' $ac_executable_extensions; do
7327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7328     ac_cv_prog_AR="${ac_tool_prefix}ar"
7329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330     break 2
7331   fi
7332 done
7333   done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 AR=$ac_cv_prog_AR
7339 if test -n "$AR"; then
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7341 $as_echo "$AR" >&6; }
7342 else
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347
7348 fi
7349 if test -z "$ac_cv_prog_AR"; then
7350   ac_ct_AR=$AR
7351   # Extract the first word of "ar", so it can be a program name with args.
7352 set dummy ar; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7356   $as_echo_n "(cached) " >&6
7357 else
7358   if test -n "$ac_ct_AR"; then
7359   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368     ac_cv_prog_ac_ct_AR="ar"
7369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7379 if test -n "$ac_ct_AR"; then
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7381 $as_echo "$ac_ct_AR" >&6; }
7382 else
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387   if test "x$ac_ct_AR" = x; then
7388     AR="false"
7389   else
7390     case $cross_compiling:$ac_tool_warned in
7391 yes:)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7395 esac
7396     AR=$ac_ct_AR
7397   fi
7398 else
7399   AR="$ac_cv_prog_AR"
7400 fi
7401
7402 test -z "$AR" && AR=ar
7403 test -z "$AR_FLAGS" && AR_FLAGS=cru
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415 if test -n "$ac_tool_prefix"; then
7416   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}strip; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if test "${ac_cv_prog_STRIP+set}" = set; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   if test -n "$STRIP"; then
7424   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431     for ac_exec_ext in '' $ac_executable_extensions; do
7432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438   done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 STRIP=$ac_cv_prog_STRIP
7444 if test -n "$STRIP"; then
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7446 $as_echo "$STRIP" >&6; }
7447 else
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452
7453 fi
7454 if test -z "$ac_cv_prog_STRIP"; then
7455   ac_ct_STRIP=$STRIP
7456   # Extract the first word of "strip", so it can be a program name with args.
7457 set dummy strip; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   if test -n "$ac_ct_STRIP"; then
7464   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471     for ac_exec_ext in '' $ac_executable_extensions; do
7472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473     ac_cv_prog_ac_ct_STRIP="strip"
7474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478   done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7484 if test -n "$ac_ct_STRIP"; then
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7486 $as_echo "$ac_ct_STRIP" >&6; }
7487 else
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491
7492   if test "x$ac_ct_STRIP" = x; then
7493     STRIP=":"
7494   else
7495     case $cross_compiling:$ac_tool_warned in
7496 yes:)
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7499 ac_tool_warned=yes ;;
7500 esac
7501     STRIP=$ac_ct_STRIP
7502   fi
7503 else
7504   STRIP="$ac_cv_prog_STRIP"
7505 fi
7506
7507 test -z "$STRIP" && STRIP=:
7508
7509
7510
7511
7512
7513
7514 if test -n "$ac_tool_prefix"; then
7515   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   if test -n "$RANLIB"; then
7523   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530     for ac_exec_ext in '' $ac_executable_extensions; do
7531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537   done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 RANLIB=$ac_cv_prog_RANLIB
7543 if test -n "$RANLIB"; then
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7545 $as_echo "$RANLIB" >&6; }
7546 else
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551
7552 fi
7553 if test -z "$ac_cv_prog_RANLIB"; then
7554   ac_ct_RANLIB=$RANLIB
7555   # Extract the first word of "ranlib", so it can be a program name with args.
7556 set dummy ranlib; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7560   $as_echo_n "(cached) " >&6
7561 else
7562   if test -n "$ac_ct_RANLIB"; then
7563   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568   IFS=$as_save_IFS
7569   test -z "$as_dir" && as_dir=.
7570     for ac_exec_ext in '' $ac_executable_extensions; do
7571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572     ac_cv_prog_ac_ct_RANLIB="ranlib"
7573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574     break 2
7575   fi
7576 done
7577   done
7578 IFS=$as_save_IFS
7579
7580 fi
7581 fi
7582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7583 if test -n "$ac_ct_RANLIB"; then
7584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7585 $as_echo "$ac_ct_RANLIB" >&6; }
7586 else
7587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7589 fi
7590
7591   if test "x$ac_ct_RANLIB" = x; then
7592     RANLIB=":"
7593   else
7594     case $cross_compiling:$ac_tool_warned in
7595 yes:)
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7598 ac_tool_warned=yes ;;
7599 esac
7600     RANLIB=$ac_ct_RANLIB
7601   fi
7602 else
7603   RANLIB="$ac_cv_prog_RANLIB"
7604 fi
7605
7606 test -z "$RANLIB" && RANLIB=:
7607
7608
7609
7610
7611
7612
7613 # Determine commands to create old-style static archives.
7614 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7615 old_postinstall_cmds='chmod 644 $oldlib'
7616 old_postuninstall_cmds=
7617
7618 if test -n "$RANLIB"; then
7619   case $host_os in
7620   openbsd*)
7621     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7622     ;;
7623   *)
7624     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7625     ;;
7626   esac
7627   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7628 fi
7629
7630 case $host_os in
7631   darwin*)
7632     lock_old_archive_extraction=yes ;;
7633   *)
7634     lock_old_archive_extraction=no ;;
7635 esac
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657 for ac_prog in gawk mawk nawk awk
7658 do
7659   # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if test "${ac_cv_prog_AWK+set}" = set; then :
7664   $as_echo_n "(cached) " >&6
7665 else
7666   if test -n "$AWK"; then
7667   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672   IFS=$as_save_IFS
7673   test -z "$as_dir" && as_dir=.
7674     for ac_exec_ext in '' $ac_executable_extensions; do
7675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7676     ac_cv_prog_AWK="$ac_prog"
7677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678     break 2
7679   fi
7680 done
7681   done
7682 IFS=$as_save_IFS
7683
7684 fi
7685 fi
7686 AWK=$ac_cv_prog_AWK
7687 if test -n "$AWK"; then
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7689 $as_echo "$AWK" >&6; }
7690 else
7691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 fi
7694
7695
7696   test -n "$AWK" && break
7697 done
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717 # If no C compiler was specified, use CC.
7718 LTCC=${LTCC-"$CC"}
7719
7720 # If no C compiler flags were specified, use CFLAGS.
7721 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7722
7723 # Allow CC to be a program name with arguments.
7724 compiler=$CC
7725
7726
7727 # Check for command to grab the raw symbol name followed by C symbol from nm.
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7729 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7730 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733
7734 # These are sane defaults that work on at least a few old systems.
7735 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7736
7737 # Character class describing NM global symbol codes.
7738 symcode='[BCDEGRST]'
7739
7740 # Regexp to match symbols that can be accessed directly from C.
7741 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7742
7743 # Define system-specific variables.
7744 case $host_os in
7745 aix*)
7746   symcode='[BCDT]'
7747   ;;
7748 cygwin* | mingw* | pw32* | cegcc*)
7749   symcode='[ABCDGISTW]'
7750   ;;
7751 hpux*)
7752   if test "$host_cpu" = ia64; then
7753     symcode='[ABCDEGRST]'
7754   fi
7755   ;;
7756 irix* | nonstopux*)
7757   symcode='[BCDEGRST]'
7758   ;;
7759 osf*)
7760   symcode='[BCDEGQRST]'
7761   ;;
7762 solaris*)
7763   symcode='[BDRT]'
7764   ;;
7765 sco3.2v5*)
7766   symcode='[DT]'
7767   ;;
7768 sysv4.2uw2*)
7769   symcode='[DT]'
7770   ;;
7771 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7772   symcode='[ABDT]'
7773   ;;
7774 sysv4)
7775   symcode='[DFNSTU]'
7776   ;;
7777 esac
7778
7779 # If we're using GNU nm, then use its standard symbol codes.
7780 case `$NM -V 2>&1` in
7781 *GNU* | *'with BFD'*)
7782   symcode='[ABCDGIRSTW]' ;;
7783 esac
7784
7785 # Transform an extracted symbol line into a proper C declaration.
7786 # Some systems (esp. on ia64) link data and code symbols differently,
7787 # so use this general approach.
7788 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7789
7790 # Transform an extracted symbol line into symbol name and symbol address
7791 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7792 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7793
7794 # Handle CRLF in mingw tool chain
7795 opt_cr=
7796 case $build_os in
7797 mingw*)
7798   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7799   ;;
7800 esac
7801
7802 # Try without a prefix underscore, then with it.
7803 for ac_symprfx in "" "_"; do
7804
7805   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7806   symxfrm="\\1 $ac_symprfx\\2 \\2"
7807
7808   # Write the raw and C identifiers.
7809   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7810     # Fake it for dumpbin and say T for any non-static function
7811     # and D for any global variable.
7812     # Also find C++ and __fastcall symbols from MSVC++,
7813     # which start with @ or ?.
7814     lt_cv_sys_global_symbol_pipe="$AWK '"\
7815 "     {last_section=section; section=\$ 3};"\
7816 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7817 "     \$ 0!~/External *\|/{next};"\
7818 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7819 "     {if(hide[section]) next};"\
7820 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7821 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7822 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7823 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7824 "     ' prfx=^$ac_symprfx"
7825   else
7826     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7827   fi
7828
7829   # Check to see that the pipe works correctly.
7830   pipe_works=no
7831
7832   rm -f conftest*
7833   cat > conftest.$ac_ext <<_LT_EOF
7834 #ifdef __cplusplus
7835 extern "C" {
7836 #endif
7837 char nm_test_var;
7838 void nm_test_func(void);
7839 void nm_test_func(void){}
7840 #ifdef __cplusplus
7841 }
7842 #endif
7843 int main(){nm_test_var='a';nm_test_func();return(0);}
7844 _LT_EOF
7845
7846   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7847   (eval $ac_compile) 2>&5
7848   ac_status=$?
7849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7850   test $ac_status = 0; }; then
7851     # Now try to grab the symbols.
7852     nlist=conftest.nm
7853     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7854   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7855   ac_status=$?
7856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857   test $ac_status = 0; } && test -s "$nlist"; then
7858       # Try sorting and uniquifying the output.
7859       if sort "$nlist" | uniq > "$nlist"T; then
7860         mv -f "$nlist"T "$nlist"
7861       else
7862         rm -f "$nlist"T
7863       fi
7864
7865       # Make sure that we snagged all the symbols we need.
7866       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7867         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7868           cat <<_LT_EOF > conftest.$ac_ext
7869 #ifdef __cplusplus
7870 extern "C" {
7871 #endif
7872
7873 _LT_EOF
7874           # Now generate the symbol file.
7875           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7876
7877           cat <<_LT_EOF >> conftest.$ac_ext
7878
7879 /* The mapping between symbol names and symbols.  */
7880 const struct {
7881   const char *name;
7882   void       *address;
7883 }
7884 lt__PROGRAM__LTX_preloaded_symbols[] =
7885 {
7886   { "@PROGRAM@", (void *) 0 },
7887 _LT_EOF
7888           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7889           cat <<\_LT_EOF >> conftest.$ac_ext
7890   {0, (void *) 0}
7891 };
7892
7893 /* This works around a problem in FreeBSD linker */
7894 #ifdef FREEBSD_WORKAROUND
7895 static const void *lt_preloaded_setup() {
7896   return lt__PROGRAM__LTX_preloaded_symbols;
7897 }
7898 #endif
7899
7900 #ifdef __cplusplus
7901 }
7902 #endif
7903 _LT_EOF
7904           # Now try linking the two files.
7905           mv conftest.$ac_objext conftstm.$ac_objext
7906           lt_save_LIBS="$LIBS"
7907           lt_save_CFLAGS="$CFLAGS"
7908           LIBS="conftstm.$ac_objext"
7909           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7910           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7911   (eval $ac_link) 2>&5
7912   ac_status=$?
7913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7914   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7915             pipe_works=yes
7916           fi
7917           LIBS="$lt_save_LIBS"
7918           CFLAGS="$lt_save_CFLAGS"
7919         else
7920           echo "cannot find nm_test_func in $nlist" >&5
7921         fi
7922       else
7923         echo "cannot find nm_test_var in $nlist" >&5
7924       fi
7925     else
7926       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7927     fi
7928   else
7929     echo "$progname: failed program was:" >&5
7930     cat conftest.$ac_ext >&5
7931   fi
7932   rm -rf conftest* conftst*
7933
7934   # Do not use the global_symbol_pipe unless it works.
7935   if test "$pipe_works" = yes; then
7936     break
7937   else
7938     lt_cv_sys_global_symbol_pipe=
7939   fi
7940 done
7941
7942 fi
7943
7944 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7945   lt_cv_sys_global_symbol_to_cdecl=
7946 fi
7947 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7949 $as_echo "failed" >&6; }
7950 else
7951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7952 $as_echo "ok" >&6; }
7953 fi
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976 # Check whether --enable-libtool-lock was given.
7977 if test "${enable_libtool_lock+set}" = set; then :
7978   enableval=$enable_libtool_lock;
7979 fi
7980
7981 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7982
7983 # Some flags need to be propagated to the compiler or linker for good
7984 # libtool support.
7985 case $host in
7986 ia64-*-hpux*)
7987   # Find out which ABI we are using.
7988   echo 'int i;' > conftest.$ac_ext
7989   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7990   (eval $ac_compile) 2>&5
7991   ac_status=$?
7992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7993   test $ac_status = 0; }; then
7994     case `/usr/bin/file conftest.$ac_objext` in
7995       *ELF-32*)
7996         HPUX_IA64_MODE="32"
7997         ;;
7998       *ELF-64*)
7999         HPUX_IA64_MODE="64"
8000         ;;
8001     esac
8002   fi
8003   rm -rf conftest*
8004   ;;
8005 *-*-irix6*)
8006   # Find out which ABI we are using.
8007   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8008   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8009   (eval $ac_compile) 2>&5
8010   ac_status=$?
8011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8012   test $ac_status = 0; }; then
8013     if test "$lt_cv_prog_gnu_ld" = yes; then
8014       case `/usr/bin/file conftest.$ac_objext` in
8015         *32-bit*)
8016           LD="${LD-ld} -melf32bsmip"
8017           ;;
8018         *N32*)
8019           LD="${LD-ld} -melf32bmipn32"
8020           ;;
8021         *64-bit*)
8022           LD="${LD-ld} -melf64bmip"
8023         ;;
8024       esac
8025     else
8026       case `/usr/bin/file conftest.$ac_objext` in
8027         *32-bit*)
8028           LD="${LD-ld} -32"
8029           ;;
8030         *N32*)
8031           LD="${LD-ld} -n32"
8032           ;;
8033         *64-bit*)
8034           LD="${LD-ld} -64"
8035           ;;
8036       esac
8037     fi
8038   fi
8039   rm -rf conftest*
8040   ;;
8041
8042 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8043 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8044   # Find out which ABI we are using.
8045   echo 'int i;' > conftest.$ac_ext
8046   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8047   (eval $ac_compile) 2>&5
8048   ac_status=$?
8049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050   test $ac_status = 0; }; then
8051     case `/usr/bin/file conftest.o` in
8052       *32-bit*)
8053         case $host in
8054           x86_64-*kfreebsd*-gnu)
8055             LD="${LD-ld} -m elf_i386_fbsd"
8056             ;;
8057           x86_64-*linux*)
8058             LD="${LD-ld} -m elf_i386"
8059             ;;
8060           ppc64-*linux*|powerpc64-*linux*)
8061             LD="${LD-ld} -m elf32ppclinux"
8062             ;;
8063           s390x-*linux*)
8064             LD="${LD-ld} -m elf_s390"
8065             ;;
8066           sparc64-*linux*)
8067             LD="${LD-ld} -m elf32_sparc"
8068             ;;
8069         esac
8070         ;;
8071       *64-bit*)
8072         case $host in
8073           x86_64-*kfreebsd*-gnu)
8074             LD="${LD-ld} -m elf_x86_64_fbsd"
8075             ;;
8076           x86_64-*linux*)
8077             LD="${LD-ld} -m elf_x86_64"
8078             ;;
8079           ppc*-*linux*|powerpc*-*linux*)
8080             LD="${LD-ld} -m elf64ppc"
8081             ;;
8082           s390*-*linux*|s390*-*tpf*)
8083             LD="${LD-ld} -m elf64_s390"
8084             ;;
8085           sparc*-*linux*)
8086             LD="${LD-ld} -m elf64_sparc"
8087             ;;
8088         esac
8089         ;;
8090     esac
8091   fi
8092   rm -rf conftest*
8093   ;;
8094
8095 *-*-sco3.2v5*)
8096   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8097   SAVE_CFLAGS="$CFLAGS"
8098   CFLAGS="$CFLAGS -belf"
8099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8100 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8101 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8102   $as_echo_n "(cached) " >&6
8103 else
8104   ac_ext=c
8105 ac_cpp='$CPP $CPPFLAGS'
8106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8109
8110      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h.  */
8112
8113 int
8114 main ()
8115 {
8116
8117   ;
8118   return 0;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_link "$LINENO"; then :
8122   lt_cv_cc_needs_belf=yes
8123 else
8124   lt_cv_cc_needs_belf=no
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext \
8127     conftest$ac_exeext conftest.$ac_ext
8128      ac_ext=c
8129 ac_cpp='$CPP $CPPFLAGS'
8130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8133
8134 fi
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8136 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8137   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8138     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8139     CFLAGS="$SAVE_CFLAGS"
8140   fi
8141   ;;
8142 sparc*-*solaris*)
8143   # Find out which ABI we are using.
8144   echo 'int i;' > conftest.$ac_ext
8145   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8146   (eval $ac_compile) 2>&5
8147   ac_status=$?
8148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8149   test $ac_status = 0; }; then
8150     case `/usr/bin/file conftest.o` in
8151     *64-bit*)
8152       case $lt_cv_prog_gnu_ld in
8153       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8154       *)
8155         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8156           LD="${LD-ld} -64"
8157         fi
8158         ;;
8159       esac
8160       ;;
8161     esac
8162   fi
8163   rm -rf conftest*
8164   ;;
8165 esac
8166
8167 need_locks="$enable_libtool_lock"
8168
8169
8170   case $host_os in
8171     rhapsody* | darwin*)
8172     if test -n "$ac_tool_prefix"; then
8173   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8174 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   if test -n "$DSYMUTIL"; then
8181   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8182 else
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186   IFS=$as_save_IFS
8187   test -z "$as_dir" && as_dir=.
8188     for ac_exec_ext in '' $ac_executable_extensions; do
8189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192     break 2
8193   fi
8194 done
8195   done
8196 IFS=$as_save_IFS
8197
8198 fi
8199 fi
8200 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8201 if test -n "$DSYMUTIL"; then
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8203 $as_echo "$DSYMUTIL" >&6; }
8204 else
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8207 fi
8208
8209
8210 fi
8211 if test -z "$ac_cv_prog_DSYMUTIL"; then
8212   ac_ct_DSYMUTIL=$DSYMUTIL
8213   # Extract the first word of "dsymutil", so it can be a program name with args.
8214 set dummy dsymutil; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8218   $as_echo_n "(cached) " >&6
8219 else
8220   if test -n "$ac_ct_DSYMUTIL"; then
8221   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226   IFS=$as_save_IFS
8227   test -z "$as_dir" && as_dir=.
8228     for ac_exec_ext in '' $ac_executable_extensions; do
8229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8230     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232     break 2
8233   fi
8234 done
8235   done
8236 IFS=$as_save_IFS
8237
8238 fi
8239 fi
8240 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8241 if test -n "$ac_ct_DSYMUTIL"; then
8242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8243 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8244 else
8245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8247 fi
8248
8249   if test "x$ac_ct_DSYMUTIL" = x; then
8250     DSYMUTIL=":"
8251   else
8252     case $cross_compiling:$ac_tool_warned in
8253 yes:)
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8256 ac_tool_warned=yes ;;
8257 esac
8258     DSYMUTIL=$ac_ct_DSYMUTIL
8259   fi
8260 else
8261   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8262 fi
8263
8264     if test -n "$ac_tool_prefix"; then
8265   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8266 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8270   $as_echo_n "(cached) " >&6
8271 else
8272   if test -n "$NMEDIT"; then
8273   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8274 else
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8277 do
8278   IFS=$as_save_IFS
8279   test -z "$as_dir" && as_dir=.
8280     for ac_exec_ext in '' $ac_executable_extensions; do
8281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284     break 2
8285   fi
8286 done
8287   done
8288 IFS=$as_save_IFS
8289
8290 fi
8291 fi
8292 NMEDIT=$ac_cv_prog_NMEDIT
8293 if test -n "$NMEDIT"; then
8294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8295 $as_echo "$NMEDIT" >&6; }
8296 else
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8299 fi
8300
8301
8302 fi
8303 if test -z "$ac_cv_prog_NMEDIT"; then
8304   ac_ct_NMEDIT=$NMEDIT
8305   # Extract the first word of "nmedit", so it can be a program name with args.
8306 set dummy nmedit; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   if test -n "$ac_ct_NMEDIT"; then
8313   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320     for ac_exec_ext in '' $ac_executable_extensions; do
8321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327   done
8328 IFS=$as_save_IFS
8329
8330 fi
8331 fi
8332 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8333 if test -n "$ac_ct_NMEDIT"; then
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8335 $as_echo "$ac_ct_NMEDIT" >&6; }
8336 else
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8339 fi
8340
8341   if test "x$ac_ct_NMEDIT" = x; then
8342     NMEDIT=":"
8343   else
8344     case $cross_compiling:$ac_tool_warned in
8345 yes:)
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8348 ac_tool_warned=yes ;;
8349 esac
8350     NMEDIT=$ac_ct_NMEDIT
8351   fi
8352 else
8353   NMEDIT="$ac_cv_prog_NMEDIT"
8354 fi
8355
8356     if test -n "$ac_tool_prefix"; then
8357   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8358 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if test "${ac_cv_prog_LIPO+set}" = set; then :
8362   $as_echo_n "(cached) " >&6
8363 else
8364   if test -n "$LIPO"; then
8365   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370   IFS=$as_save_IFS
8371   test -z "$as_dir" && as_dir=.
8372     for ac_exec_ext in '' $ac_executable_extensions; do
8373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376     break 2
8377   fi
8378 done
8379   done
8380 IFS=$as_save_IFS
8381
8382 fi
8383 fi
8384 LIPO=$ac_cv_prog_LIPO
8385 if test -n "$LIPO"; then
8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8387 $as_echo "$LIPO" >&6; }
8388 else
8389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391 fi
8392
8393
8394 fi
8395 if test -z "$ac_cv_prog_LIPO"; then
8396   ac_ct_LIPO=$LIPO
8397   # Extract the first word of "lipo", so it can be a program name with args.
8398 set dummy lipo; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8402   $as_echo_n "(cached) " >&6
8403 else
8404   if test -n "$ac_ct_LIPO"; then
8405   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412     for ac_exec_ext in '' $ac_executable_extensions; do
8413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414     ac_cv_prog_ac_ct_LIPO="lipo"
8415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419   done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8425 if test -n "$ac_ct_LIPO"; then
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8427 $as_echo "$ac_ct_LIPO" >&6; }
8428 else
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 fi
8432
8433   if test "x$ac_ct_LIPO" = x; then
8434     LIPO=":"
8435   else
8436     case $cross_compiling:$ac_tool_warned in
8437 yes:)
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8440 ac_tool_warned=yes ;;
8441 esac
8442     LIPO=$ac_ct_LIPO
8443   fi
8444 else
8445   LIPO="$ac_cv_prog_LIPO"
8446 fi
8447
8448     if test -n "$ac_tool_prefix"; then
8449   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8450 set dummy ${ac_tool_prefix}otool; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8454   $as_echo_n "(cached) " >&6
8455 else
8456   if test -n "$OTOOL"; then
8457   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8461 do
8462   IFS=$as_save_IFS
8463   test -z "$as_dir" && as_dir=.
8464     for ac_exec_ext in '' $ac_executable_extensions; do
8465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468     break 2
8469   fi
8470 done
8471   done
8472 IFS=$as_save_IFS
8473
8474 fi
8475 fi
8476 OTOOL=$ac_cv_prog_OTOOL
8477 if test -n "$OTOOL"; then
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8479 $as_echo "$OTOOL" >&6; }
8480 else
8481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8483 fi
8484
8485
8486 fi
8487 if test -z "$ac_cv_prog_OTOOL"; then
8488   ac_ct_OTOOL=$OTOOL
8489   # Extract the first word of "otool", so it can be a program name with args.
8490 set dummy otool; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   if test -n "$ac_ct_OTOOL"; then
8497   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8501 do
8502   IFS=$as_save_IFS
8503   test -z "$as_dir" && as_dir=.
8504     for ac_exec_ext in '' $ac_executable_extensions; do
8505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8506     ac_cv_prog_ac_ct_OTOOL="otool"
8507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508     break 2
8509   fi
8510 done
8511   done
8512 IFS=$as_save_IFS
8513
8514 fi
8515 fi
8516 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8517 if test -n "$ac_ct_OTOOL"; then
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8519 $as_echo "$ac_ct_OTOOL" >&6; }
8520 else
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8523 fi
8524
8525   if test "x$ac_ct_OTOOL" = x; then
8526     OTOOL=":"
8527   else
8528     case $cross_compiling:$ac_tool_warned in
8529 yes:)
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8532 ac_tool_warned=yes ;;
8533 esac
8534     OTOOL=$ac_ct_OTOOL
8535   fi
8536 else
8537   OTOOL="$ac_cv_prog_OTOOL"
8538 fi
8539
8540     if test -n "$ac_tool_prefix"; then
8541   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8542 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 $as_echo_n "checking for $ac_word... " >&6; }
8545 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   if test -n "$OTOOL64"; then
8549   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8550 else
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8553 do
8554   IFS=$as_save_IFS
8555   test -z "$as_dir" && as_dir=.
8556     for ac_exec_ext in '' $ac_executable_extensions; do
8557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8558     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560     break 2
8561   fi
8562 done
8563   done
8564 IFS=$as_save_IFS
8565
8566 fi
8567 fi
8568 OTOOL64=$ac_cv_prog_OTOOL64
8569 if test -n "$OTOOL64"; then
8570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8571 $as_echo "$OTOOL64" >&6; }
8572 else
8573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8575 fi
8576
8577
8578 fi
8579 if test -z "$ac_cv_prog_OTOOL64"; then
8580   ac_ct_OTOOL64=$OTOOL64
8581   # Extract the first word of "otool64", so it can be a program name with args.
8582 set dummy otool64; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8586   $as_echo_n "(cached) " >&6
8587 else
8588   if test -n "$ac_ct_OTOOL64"; then
8589   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594   IFS=$as_save_IFS
8595   test -z "$as_dir" && as_dir=.
8596     for ac_exec_ext in '' $ac_executable_extensions; do
8597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8598     ac_cv_prog_ac_ct_OTOOL64="otool64"
8599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600     break 2
8601   fi
8602 done
8603   done
8604 IFS=$as_save_IFS
8605
8606 fi
8607 fi
8608 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8609 if test -n "$ac_ct_OTOOL64"; then
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8611 $as_echo "$ac_ct_OTOOL64" >&6; }
8612 else
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616
8617   if test "x$ac_ct_OTOOL64" = x; then
8618     OTOOL64=":"
8619   else
8620     case $cross_compiling:$ac_tool_warned in
8621 yes:)
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8624 ac_tool_warned=yes ;;
8625 esac
8626     OTOOL64=$ac_ct_OTOOL64
8627   fi
8628 else
8629   OTOOL64="$ac_cv_prog_OTOOL64"
8630 fi
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8659 $as_echo_n "checking for -single_module linker flag... " >&6; }
8660 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8661   $as_echo_n "(cached) " >&6
8662 else
8663   lt_cv_apple_cc_single_mod=no
8664       if test -z "${LT_MULTI_MODULE}"; then
8665         # By default we will add the -single_module flag. You can override
8666         # by either setting the environment variable LT_MULTI_MODULE
8667         # non-empty at configure time, or by adding -multi_module to the
8668         # link flags.
8669         rm -rf libconftest.dylib*
8670         echo "int foo(void){return 1;}" > conftest.c
8671         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8672 -dynamiclib -Wl,-single_module conftest.c" >&5
8673         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8674           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8675         _lt_result=$?
8676         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8677           lt_cv_apple_cc_single_mod=yes
8678         else
8679           cat conftest.err >&5
8680         fi
8681         rm -rf libconftest.dylib*
8682         rm -f conftest.*
8683       fi
8684 fi
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8686 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8688 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8689 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8690   $as_echo_n "(cached) " >&6
8691 else
8692   lt_cv_ld_exported_symbols_list=no
8693       save_LDFLAGS=$LDFLAGS
8694       echo "_main" > conftest.sym
8695       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8696       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h.  */
8698
8699 int
8700 main ()
8701 {
8702
8703   ;
8704   return 0;
8705 }
8706 _ACEOF
8707 if ac_fn_c_try_link "$LINENO"; then :
8708   lt_cv_ld_exported_symbols_list=yes
8709 else
8710   lt_cv_ld_exported_symbols_list=no
8711 fi
8712 rm -f core conftest.err conftest.$ac_objext \
8713     conftest$ac_exeext conftest.$ac_ext
8714         LDFLAGS="$save_LDFLAGS"
8715
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8718 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8720 $as_echo_n "checking for -force_load linker flag... " >&6; }
8721 if test "${lt_cv_ld_force_load+set}" = set; then :
8722   $as_echo_n "(cached) " >&6
8723 else
8724   lt_cv_ld_force_load=no
8725       cat > conftest.c << _LT_EOF
8726 int forced_loaded() { return 2;}
8727 _LT_EOF
8728       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8729       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8730       echo "$AR cru libconftest.a conftest.o" >&5
8731       $AR cru libconftest.a conftest.o 2>&5
8732       echo "$RANLIB libconftest.a" >&5
8733       $RANLIB libconftest.a 2>&5
8734       cat > conftest.c << _LT_EOF
8735 int main() { return 0;}
8736 _LT_EOF
8737       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8738       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8739       _lt_result=$?
8740       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8741         lt_cv_ld_force_load=yes
8742       else
8743         cat conftest.err >&5
8744       fi
8745         rm -f conftest.err libconftest.a conftest conftest.c
8746         rm -rf conftest.dSYM
8747
8748 fi
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8750 $as_echo "$lt_cv_ld_force_load" >&6; }
8751     case $host_os in
8752     rhapsody* | darwin1.[012])
8753       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8754     darwin1.*)
8755       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8756     darwin*) # darwin 5.x on
8757       # if running on 10.5 or later, the deployment target defaults
8758       # to the OS version, if on x86, and 10.4, the deployment
8759       # target defaults to 10.4. Don't you love it?
8760       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8761         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8762           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8763         10.[012]*)
8764           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8765         10.*)
8766           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8767       esac
8768     ;;
8769   esac
8770     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8771       _lt_dar_single_mod='$single_module'
8772     fi
8773     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8774       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8775     else
8776       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8777     fi
8778     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8779       _lt_dsymutil='~$DSYMUTIL $lib || :'
8780     else
8781       _lt_dsymutil=
8782     fi
8783     ;;
8784   esac
8785
8786
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8788 $as_echo_n "checking for ANSI C header files... " >&6; }
8789 if test "${ac_cv_header_stdc+set}" = set; then :
8790   $as_echo_n "(cached) " >&6
8791 else
8792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h.  */
8794 #include <stdlib.h>
8795 #include <stdarg.h>
8796 #include <string.h>
8797 #include <float.h>
8798
8799 int
8800 main ()
8801 {
8802
8803   ;
8804   return 0;
8805 }
8806 _ACEOF
8807 if ac_fn_c_try_compile "$LINENO"; then :
8808   ac_cv_header_stdc=yes
8809 else
8810   ac_cv_header_stdc=no
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813
8814 if test $ac_cv_header_stdc = yes; then
8815   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h.  */
8818 #include <string.h>
8819
8820 _ACEOF
8821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8822   $EGREP "memchr" >/dev/null 2>&1; then :
8823
8824 else
8825   ac_cv_header_stdc=no
8826 fi
8827 rm -f conftest*
8828
8829 fi
8830
8831 if test $ac_cv_header_stdc = yes; then
8832   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h.  */
8835 #include <stdlib.h>
8836
8837 _ACEOF
8838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8839   $EGREP "free" >/dev/null 2>&1; then :
8840
8841 else
8842   ac_cv_header_stdc=no
8843 fi
8844 rm -f conftest*
8845
8846 fi
8847
8848 if test $ac_cv_header_stdc = yes; then
8849   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8850   if test "$cross_compiling" = yes; then :
8851   :
8852 else
8853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h.  */
8855 #include <ctype.h>
8856 #include <stdlib.h>
8857 #if ((' ' & 0x0FF) == 0x020)
8858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8860 #else
8861 # define ISLOWER(c) \
8862                    (('a' <= (c) && (c) <= 'i') \
8863                      || ('j' <= (c) && (c) <= 'r') \
8864                      || ('s' <= (c) && (c) <= 'z'))
8865 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8866 #endif
8867
8868 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8869 int
8870 main ()
8871 {
8872   int i;
8873   for (i = 0; i < 256; i++)
8874     if (XOR (islower (i), ISLOWER (i))
8875         || toupper (i) != TOUPPER (i))
8876       return 2;
8877   return 0;
8878 }
8879 _ACEOF
8880 if ac_fn_c_try_run "$LINENO"; then :
8881
8882 else
8883   ac_cv_header_stdc=no
8884 fi
8885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8886   conftest.$ac_objext conftest.beam conftest.$ac_ext
8887 fi
8888
8889 fi
8890 fi
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8892 $as_echo "$ac_cv_header_stdc" >&6; }
8893 if test $ac_cv_header_stdc = yes; then
8894
8895 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8896
8897 fi
8898
8899 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8900 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8901                   inttypes.h stdint.h unistd.h
8902 do :
8903   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8904 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8905 "
8906 eval as_val=\$$as_ac_Header
8907    if test "x$as_val" = x""yes; then :
8908   cat >>confdefs.h <<_ACEOF
8909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8910 _ACEOF
8911
8912 fi
8913
8914 done
8915
8916
8917 for ac_header in dlfcn.h
8918 do :
8919   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8920 "
8921 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8922   cat >>confdefs.h <<_ACEOF
8923 #define HAVE_DLFCN_H 1
8924 _ACEOF
8925
8926 fi
8927
8928 done
8929
8930
8931
8932
8933
8934 # Set options
8935 enable_dlopen=yes
8936
8937
8938
8939
8940   enable_win32_dll=no
8941
8942
8943             # Check whether --enable-shared was given.
8944 if test "${enable_shared+set}" = set; then :
8945   enableval=$enable_shared; p=${PACKAGE-default}
8946     case $enableval in
8947     yes) enable_shared=yes ;;
8948     no) enable_shared=no ;;
8949     *)
8950       enable_shared=no
8951       # Look at the argument we got.  We use all the common list separators.
8952       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8953       for pkg in $enableval; do
8954         IFS="$lt_save_ifs"
8955         if test "X$pkg" = "X$p"; then
8956           enable_shared=yes
8957         fi
8958       done
8959       IFS="$lt_save_ifs"
8960       ;;
8961     esac
8962 else
8963   enable_shared=yes
8964 fi
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974   # Check whether --enable-static was given.
8975 if test "${enable_static+set}" = set; then :
8976   enableval=$enable_static; p=${PACKAGE-default}
8977     case $enableval in
8978     yes) enable_static=yes ;;
8979     no) enable_static=no ;;
8980     *)
8981      enable_static=no
8982       # Look at the argument we got.  We use all the common list separators.
8983       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8984       for pkg in $enableval; do
8985         IFS="$lt_save_ifs"
8986         if test "X$pkg" = "X$p"; then
8987           enable_static=yes
8988         fi
8989       done
8990       IFS="$lt_save_ifs"
8991       ;;
8992     esac
8993 else
8994   enable_static=yes
8995 fi
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006 # Check whether --with-pic was given.
9007 if test "${with_pic+set}" = set; then :
9008   withval=$with_pic; pic_mode="$withval"
9009 else
9010   pic_mode=default
9011 fi
9012
9013
9014 test -z "$pic_mode" && pic_mode=default
9015
9016
9017
9018
9019
9020
9021
9022   # Check whether --enable-fast-install was given.
9023 if test "${enable_fast_install+set}" = set; then :
9024   enableval=$enable_fast_install; p=${PACKAGE-default}
9025     case $enableval in
9026     yes) enable_fast_install=yes ;;
9027     no) enable_fast_install=no ;;
9028     *)
9029       enable_fast_install=no
9030       # Look at the argument we got.  We use all the common list separators.
9031       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9032       for pkg in $enableval; do
9033         IFS="$lt_save_ifs"
9034         if test "X$pkg" = "X$p"; then
9035           enable_fast_install=yes
9036         fi
9037       done
9038       IFS="$lt_save_ifs"
9039       ;;
9040     esac
9041 else
9042   enable_fast_install=yes
9043 fi
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055 # This can be used to rebuild libtool when needed
9056 LIBTOOL_DEPS="$ltmain"
9057
9058 # Always use our own libtool.
9059 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086 test -z "$LN_S" && LN_S="ln -s"
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101 if test -n "${ZSH_VERSION+set}" ; then
9102    setopt NO_GLOB_SUBST
9103 fi
9104
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9106 $as_echo_n "checking for objdir... " >&6; }
9107 if test "${lt_cv_objdir+set}" = set; then :
9108   $as_echo_n "(cached) " >&6
9109 else
9110   rm -f .libs 2>/dev/null
9111 mkdir .libs 2>/dev/null
9112 if test -d .libs; then
9113   lt_cv_objdir=.libs
9114 else
9115   # MS-DOS does not allow filenames that begin with a dot.
9116   lt_cv_objdir=_libs
9117 fi
9118 rmdir .libs 2>/dev/null
9119 fi
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9121 $as_echo "$lt_cv_objdir" >&6; }
9122 objdir=$lt_cv_objdir
9123
9124
9125
9126
9127
9128 cat >>confdefs.h <<_ACEOF
9129 #define LT_OBJDIR "$lt_cv_objdir/"
9130 _ACEOF
9131
9132
9133
9134
9135 case $host_os in
9136 aix3*)
9137   # AIX sometimes has problems with the GCC collect2 program.  For some
9138   # reason, if we set the COLLECT_NAMES environment variable, the problems
9139   # vanish in a puff of smoke.
9140   if test "X${COLLECT_NAMES+set}" != Xset; then
9141     COLLECT_NAMES=
9142     export COLLECT_NAMES
9143   fi
9144   ;;
9145 esac
9146
9147 # Global variables:
9148 ofile=libtool
9149 can_build_shared=yes
9150
9151 # All known linkers require a `.a' archive for static linking (except MSVC,
9152 # which needs '.lib').
9153 libext=a
9154
9155 with_gnu_ld="$lt_cv_prog_gnu_ld"
9156
9157 old_CC="$CC"
9158 old_CFLAGS="$CFLAGS"
9159
9160 # Set sane defaults for various variables
9161 test -z "$CC" && CC=cc
9162 test -z "$LTCC" && LTCC=$CC
9163 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9164 test -z "$LD" && LD=ld
9165 test -z "$ac_objext" && ac_objext=o
9166
9167 for cc_temp in $compiler""; do
9168   case $cc_temp in
9169     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9170     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9171     \-*) ;;
9172     *) break;;
9173   esac
9174 done
9175 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9176
9177
9178 # Only perform the check for file, if the check method requires it
9179 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9180 case $deplibs_check_method in
9181 file_magic*)
9182   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9184 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9185 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9186   $as_echo_n "(cached) " >&6
9187 else
9188   case $MAGIC_CMD in
9189 [\\/*] |  ?:[\\/]*)
9190   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9191   ;;
9192 *)
9193   lt_save_MAGIC_CMD="$MAGIC_CMD"
9194   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9195   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9196   for ac_dir in $ac_dummy; do
9197     IFS="$lt_save_ifs"
9198     test -z "$ac_dir" && ac_dir=.
9199     if test -f $ac_dir/${ac_tool_prefix}file; then
9200       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9201       if test -n "$file_magic_test_file"; then
9202         case $deplibs_check_method in
9203         "file_magic "*)
9204           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9205           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9206           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9207             $EGREP "$file_magic_regex" > /dev/null; then
9208             :
9209           else
9210             cat <<_LT_EOF 1>&2
9211
9212 *** Warning: the command libtool uses to detect shared libraries,
9213 *** $file_magic_cmd, produces output that libtool cannot recognize.
9214 *** The result is that libtool may fail to recognize shared libraries
9215 *** as such.  This will affect the creation of libtool libraries that
9216 *** depend on shared libraries, but programs linked with such libtool
9217 *** libraries will work regardless of this problem.  Nevertheless, you
9218 *** may want to report the problem to your system manager and/or to
9219 *** bug-libtool@gnu.org
9220
9221 _LT_EOF
9222           fi ;;
9223         esac
9224       fi
9225       break
9226     fi
9227   done
9228   IFS="$lt_save_ifs"
9229   MAGIC_CMD="$lt_save_MAGIC_CMD"
9230   ;;
9231 esac
9232 fi
9233
9234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9235 if test -n "$MAGIC_CMD"; then
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9237 $as_echo "$MAGIC_CMD" >&6; }
9238 else
9239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9241 fi
9242
9243
9244
9245
9246
9247 if test -z "$lt_cv_path_MAGIC_CMD"; then
9248   if test -n "$ac_tool_prefix"; then
9249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9250 $as_echo_n "checking for file... " >&6; }
9251 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9252   $as_echo_n "(cached) " >&6
9253 else
9254   case $MAGIC_CMD in
9255 [\\/*] |  ?:[\\/]*)
9256   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9257   ;;
9258 *)
9259   lt_save_MAGIC_CMD="$MAGIC_CMD"
9260   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9261   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9262   for ac_dir in $ac_dummy; do
9263     IFS="$lt_save_ifs"
9264     test -z "$ac_dir" && ac_dir=.
9265     if test -f $ac_dir/file; then
9266       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9267       if test -n "$file_magic_test_file"; then
9268         case $deplibs_check_method in
9269         "file_magic "*)
9270           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9271           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9272           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9273             $EGREP "$file_magic_regex" > /dev/null; then
9274             :
9275           else
9276             cat <<_LT_EOF 1>&2
9277
9278 *** Warning: the command libtool uses to detect shared libraries,
9279 *** $file_magic_cmd, produces output that libtool cannot recognize.
9280 *** The result is that libtool may fail to recognize shared libraries
9281 *** as such.  This will affect the creation of libtool libraries that
9282 *** depend on shared libraries, but programs linked with such libtool
9283 *** libraries will work regardless of this problem.  Nevertheless, you
9284 *** may want to report the problem to your system manager and/or to
9285 *** bug-libtool@gnu.org
9286
9287 _LT_EOF
9288           fi ;;
9289         esac
9290       fi
9291       break
9292     fi
9293   done
9294   IFS="$lt_save_ifs"
9295   MAGIC_CMD="$lt_save_MAGIC_CMD"
9296   ;;
9297 esac
9298 fi
9299
9300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9301 if test -n "$MAGIC_CMD"; then
9302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9303 $as_echo "$MAGIC_CMD" >&6; }
9304 else
9305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 $as_echo "no" >&6; }
9307 fi
9308
9309
9310   else
9311     MAGIC_CMD=:
9312   fi
9313 fi
9314
9315   fi
9316   ;;
9317 esac
9318
9319 # Use C for the default configuration in the libtool script
9320
9321 lt_save_CC="$CC"
9322 ac_ext=c
9323 ac_cpp='$CPP $CPPFLAGS'
9324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9327
9328
9329 # Source file extension for C test sources.
9330 ac_ext=c
9331
9332 # Object file extension for compiled C test sources.
9333 objext=o
9334 objext=$objext
9335
9336 # Code to be used in simple compile tests
9337 lt_simple_compile_test_code="int some_variable = 0;"
9338
9339 # Code to be used in simple link tests
9340 lt_simple_link_test_code='int main(){return(0);}'
9341
9342
9343
9344
9345
9346
9347
9348 # If no C compiler was specified, use CC.
9349 LTCC=${LTCC-"$CC"}
9350
9351 # If no C compiler flags were specified, use CFLAGS.
9352 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9353
9354 # Allow CC to be a program name with arguments.
9355 compiler=$CC
9356
9357 # Save the default compiler, since it gets overwritten when the other
9358 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9359 compiler_DEFAULT=$CC
9360
9361 # save warnings/boilerplate of simple test code
9362 ac_outfile=conftest.$ac_objext
9363 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9364 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9365 _lt_compiler_boilerplate=`cat conftest.err`
9366 $RM conftest*
9367
9368 ac_outfile=conftest.$ac_objext
9369 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9370 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9371 _lt_linker_boilerplate=`cat conftest.err`
9372 $RM -r conftest*
9373
9374
9375 ## CAVEAT EMPTOR:
9376 ## There is no encapsulation within the following macros, do not change
9377 ## the running order or otherwise move them around unless you know exactly
9378 ## what you are doing...
9379 if test -n "$compiler"; then
9380
9381 lt_prog_compiler_no_builtin_flag=
9382
9383 if test "$GCC" = yes; then
9384   case $cc_basename in
9385   nvcc*)
9386     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9387   *)
9388     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9389   esac
9390
9391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9392 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9393 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9394   $as_echo_n "(cached) " >&6
9395 else
9396   lt_cv_prog_compiler_rtti_exceptions=no
9397    ac_outfile=conftest.$ac_objext
9398    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9399    lt_compiler_flag="-fno-rtti -fno-exceptions"
9400    # Insert the option either (1) after the last *FLAGS variable, or
9401    # (2) before a word containing "conftest.", or (3) at the end.
9402    # Note that $ac_compile itself does not contain backslashes and begins
9403    # with a dollar sign (not a hyphen), so the echo should work correctly.
9404    # The option is referenced via a variable to avoid confusing sed.
9405    lt_compile=`echo "$ac_compile" | $SED \
9406    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9407    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9408    -e 's:$: $lt_compiler_flag:'`
9409    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9410    (eval "$lt_compile" 2>conftest.err)
9411    ac_status=$?
9412    cat conftest.err >&5
9413    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414    if (exit $ac_status) && test -s "$ac_outfile"; then
9415      # The compiler can only warn and ignore the option if not recognized
9416      # So say no if there are warnings other than the usual output.
9417      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9418      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9419      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9420        lt_cv_prog_compiler_rtti_exceptions=yes
9421      fi
9422    fi
9423    $RM conftest*
9424
9425 fi
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9427 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9428
9429 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9430     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9431 else
9432     :
9433 fi
9434
9435 fi
9436
9437
9438
9439
9440
9441
9442   lt_prog_compiler_wl=
9443 lt_prog_compiler_pic=
9444 lt_prog_compiler_static=
9445
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9447 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9448
9449   if test "$GCC" = yes; then
9450     lt_prog_compiler_wl='-Wl,'
9451     lt_prog_compiler_static='-static'
9452
9453     case $host_os in
9454       aix*)
9455       # All AIX code is PIC.
9456       if test "$host_cpu" = ia64; then
9457         # AIX 5 now supports IA64 processor
9458         lt_prog_compiler_static='-Bstatic'
9459       fi
9460       ;;
9461
9462     amigaos*)
9463       case $host_cpu in
9464       powerpc)
9465             # see comment about AmigaOS4 .so support
9466             lt_prog_compiler_pic='-fPIC'
9467         ;;
9468       m68k)
9469             # FIXME: we need at least 68020 code to build shared libraries, but
9470             # adding the `-m68020' flag to GCC prevents building anything better,
9471             # like `-m68040'.
9472             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9473         ;;
9474       esac
9475       ;;
9476
9477     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9478       # PIC is the default for these OSes.
9479       ;;
9480
9481     mingw* | cygwin* | pw32* | os2* | cegcc*)
9482       # This hack is so that the source file can tell whether it is being
9483       # built for inclusion in a dll (and should export symbols for example).
9484       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9485       # (--disable-auto-import) libraries
9486       lt_prog_compiler_pic='-DDLL_EXPORT'
9487       ;;
9488
9489     darwin* | rhapsody*)
9490       # PIC is the default on this platform
9491       # Common symbols not allowed in MH_DYLIB files
9492       lt_prog_compiler_pic='-fno-common'
9493       ;;
9494
9495     haiku*)
9496       # PIC is the default for Haiku.
9497       # The "-static" flag exists, but is broken.
9498       lt_prog_compiler_static=
9499       ;;
9500
9501     hpux*)
9502       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9503       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9504       # sets the default TLS model and affects inlining.
9505       case $host_cpu in
9506       hppa*64*)
9507         # +Z the default
9508         ;;
9509       *)
9510         lt_prog_compiler_pic='-fPIC'
9511         ;;
9512       esac
9513       ;;
9514
9515     interix[3-9]*)
9516       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9517       # Instead, we relocate shared libraries at runtime.
9518       ;;
9519
9520     msdosdjgpp*)
9521       # Just because we use GCC doesn't mean we suddenly get shared libraries
9522       # on systems that don't support them.
9523       lt_prog_compiler_can_build_shared=no
9524       enable_shared=no
9525       ;;
9526
9527     *nto* | *qnx*)
9528       # QNX uses GNU C++, but need to define -shared option too, otherwise
9529       # it will coredump.
9530       lt_prog_compiler_pic='-fPIC -shared'
9531       ;;
9532
9533     sysv4*MP*)
9534       if test -d /usr/nec; then
9535         lt_prog_compiler_pic=-Kconform_pic
9536       fi
9537       ;;
9538
9539     *)
9540       lt_prog_compiler_pic='-fPIC'
9541       ;;
9542     esac
9543
9544     case $cc_basename in
9545     nvcc*) # Cuda Compiler Driver 2.2
9546       lt_prog_compiler_wl='-Xlinker '
9547       lt_prog_compiler_pic='-Xcompiler -fPIC'
9548       ;;
9549     esac
9550   else
9551     # PORTME Check for flag to pass linker flags through the system compiler.
9552     case $host_os in
9553     aix*)
9554       lt_prog_compiler_wl='-Wl,'
9555       if test "$host_cpu" = ia64; then
9556         # AIX 5 now supports IA64 processor
9557         lt_prog_compiler_static='-Bstatic'
9558       else
9559         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9560       fi
9561       ;;
9562
9563     mingw* | cygwin* | pw32* | os2* | cegcc*)
9564       # This hack is so that the source file can tell whether it is being
9565       # built for inclusion in a dll (and should export symbols for example).
9566       lt_prog_compiler_pic='-DDLL_EXPORT'
9567       ;;
9568
9569     hpux9* | hpux10* | hpux11*)
9570       lt_prog_compiler_wl='-Wl,'
9571       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9572       # not for PA HP-UX.
9573       case $host_cpu in
9574       hppa*64*|ia64*)
9575         # +Z the default
9576         ;;
9577       *)
9578         lt_prog_compiler_pic='+Z'
9579         ;;
9580       esac
9581       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9582       lt_prog_compiler_static='${wl}-a ${wl}archive'
9583       ;;
9584
9585     irix5* | irix6* | nonstopux*)
9586       lt_prog_compiler_wl='-Wl,'
9587       # PIC (with -KPIC) is the default.
9588       lt_prog_compiler_static='-non_shared'
9589       ;;
9590
9591     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9592       case $cc_basename in
9593       # old Intel for x86_64 which still supported -KPIC.
9594       ecc*)
9595         lt_prog_compiler_wl='-Wl,'
9596         lt_prog_compiler_pic='-KPIC'
9597         lt_prog_compiler_static='-static'
9598         ;;
9599       # icc used to be incompatible with GCC.
9600       # ICC 10 doesn't accept -KPIC any more.
9601       icc* | ifort*)
9602         lt_prog_compiler_wl='-Wl,'
9603         lt_prog_compiler_pic='-fPIC'
9604         lt_prog_compiler_static='-static'
9605         ;;
9606       # Lahey Fortran 8.1.
9607       lf95*)
9608         lt_prog_compiler_wl='-Wl,'
9609         lt_prog_compiler_pic='--shared'
9610         lt_prog_compiler_static='--static'
9611         ;;
9612       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9613         # Portland Group compilers (*not* the Pentium gcc compiler,
9614         # which looks to be a dead project)
9615         lt_prog_compiler_wl='-Wl,'
9616         lt_prog_compiler_pic='-fpic'
9617         lt_prog_compiler_static='-Bstatic'
9618         ;;
9619       ccc*)
9620         lt_prog_compiler_wl='-Wl,'
9621         # All Alpha code is PIC.
9622         lt_prog_compiler_static='-non_shared'
9623         ;;
9624       xl* | bgxl* | bgf* | mpixl*)
9625         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9626         lt_prog_compiler_wl='-Wl,'
9627         lt_prog_compiler_pic='-qpic'
9628         lt_prog_compiler_static='-qstaticlink'
9629         ;;
9630       *)
9631         case `$CC -V 2>&1 | sed 5q` in
9632         *Sun\ F* | *Sun*Fortran*)
9633           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9634           lt_prog_compiler_pic='-KPIC'
9635           lt_prog_compiler_static='-Bstatic'
9636           lt_prog_compiler_wl=''
9637           ;;
9638         *Sun\ C*)
9639           # Sun C 5.9
9640           lt_prog_compiler_pic='-KPIC'
9641           lt_prog_compiler_static='-Bstatic'
9642           lt_prog_compiler_wl='-Wl,'
9643           ;;
9644         esac
9645         ;;
9646       esac
9647       ;;
9648
9649     newsos6)
9650       lt_prog_compiler_pic='-KPIC'
9651       lt_prog_compiler_static='-Bstatic'
9652       ;;
9653
9654     *nto* | *qnx*)
9655       # QNX uses GNU C++, but need to define -shared option too, otherwise
9656       # it will coredump.
9657       lt_prog_compiler_pic='-fPIC -shared'
9658       ;;
9659
9660     osf3* | osf4* | osf5*)
9661       lt_prog_compiler_wl='-Wl,'
9662       # All OSF/1 code is PIC.
9663       lt_prog_compiler_static='-non_shared'
9664       ;;
9665
9666     rdos*)
9667       lt_prog_compiler_static='-non_shared'
9668       ;;
9669
9670     solaris*)
9671       lt_prog_compiler_pic='-KPIC'
9672       lt_prog_compiler_static='-Bstatic'
9673       case $cc_basename in
9674       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9675         lt_prog_compiler_wl='-Qoption ld ';;
9676       *)
9677         lt_prog_compiler_wl='-Wl,';;
9678       esac
9679       ;;
9680
9681     sunos4*)
9682       lt_prog_compiler_wl='-Qoption ld '
9683       lt_prog_compiler_pic='-PIC'
9684       lt_prog_compiler_static='-Bstatic'
9685       ;;
9686
9687     sysv4 | sysv4.2uw2* | sysv4.3*)
9688       lt_prog_compiler_wl='-Wl,'
9689       lt_prog_compiler_pic='-KPIC'
9690       lt_prog_compiler_static='-Bstatic'
9691       ;;
9692
9693     sysv4*MP*)
9694       if test -d /usr/nec ;then
9695         lt_prog_compiler_pic='-Kconform_pic'
9696         lt_prog_compiler_static='-Bstatic'
9697       fi
9698       ;;
9699
9700     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9701       lt_prog_compiler_wl='-Wl,'
9702       lt_prog_compiler_pic='-KPIC'
9703       lt_prog_compiler_static='-Bstatic'
9704       ;;
9705
9706     unicos*)
9707       lt_prog_compiler_wl='-Wl,'
9708       lt_prog_compiler_can_build_shared=no
9709       ;;
9710
9711     uts4*)
9712       lt_prog_compiler_pic='-pic'
9713       lt_prog_compiler_static='-Bstatic'
9714       ;;
9715
9716     *)
9717       lt_prog_compiler_can_build_shared=no
9718       ;;
9719     esac
9720   fi
9721
9722 case $host_os in
9723   # For platforms which do not support PIC, -DPIC is meaningless:
9724   *djgpp*)
9725     lt_prog_compiler_pic=
9726     ;;
9727   *)
9728     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9729     ;;
9730 esac
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9732 $as_echo "$lt_prog_compiler_pic" >&6; }
9733
9734
9735
9736
9737
9738
9739 #
9740 # Check to make sure the PIC flag actually works.
9741 #
9742 if test -n "$lt_prog_compiler_pic"; then
9743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9744 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9745 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9746   $as_echo_n "(cached) " >&6
9747 else
9748   lt_cv_prog_compiler_pic_works=no
9749    ac_outfile=conftest.$ac_objext
9750    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9751    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9752    # Insert the option either (1) after the last *FLAGS variable, or
9753    # (2) before a word containing "conftest.", or (3) at the end.
9754    # Note that $ac_compile itself does not contain backslashes and begins
9755    # with a dollar sign (not a hyphen), so the echo should work correctly.
9756    # The option is referenced via a variable to avoid confusing sed.
9757    lt_compile=`echo "$ac_compile" | $SED \
9758    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9760    -e 's:$: $lt_compiler_flag:'`
9761    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9762    (eval "$lt_compile" 2>conftest.err)
9763    ac_status=$?
9764    cat conftest.err >&5
9765    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766    if (exit $ac_status) && test -s "$ac_outfile"; then
9767      # The compiler can only warn and ignore the option if not recognized
9768      # So say no if there are warnings other than the usual output.
9769      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9770      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9771      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9772        lt_cv_prog_compiler_pic_works=yes
9773      fi
9774    fi
9775    $RM conftest*
9776
9777 fi
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9779 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9780
9781 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9782     case $lt_prog_compiler_pic in
9783      "" | " "*) ;;
9784      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9785      esac
9786 else
9787     lt_prog_compiler_pic=
9788      lt_prog_compiler_can_build_shared=no
9789 fi
9790
9791 fi
9792
9793
9794
9795
9796
9797
9798 #
9799 # Check to make sure the static flag actually works.
9800 #
9801 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9803 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9804 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9805   $as_echo_n "(cached) " >&6
9806 else
9807   lt_cv_prog_compiler_static_works=no
9808    save_LDFLAGS="$LDFLAGS"
9809    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9810    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9811    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9812      # The linker can only warn and ignore the option if not recognized
9813      # So say no if there are warnings
9814      if test -s conftest.err; then
9815        # Append any errors to the config.log.
9816        cat conftest.err 1>&5
9817        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9818        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9819        if diff conftest.exp conftest.er2 >/dev/null; then
9820          lt_cv_prog_compiler_static_works=yes
9821        fi
9822      else
9823        lt_cv_prog_compiler_static_works=yes
9824      fi
9825    fi
9826    $RM -r conftest*
9827    LDFLAGS="$save_LDFLAGS"
9828
9829 fi
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9831 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9832
9833 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9834     :
9835 else
9836     lt_prog_compiler_static=
9837 fi
9838
9839
9840
9841
9842
9843
9844
9845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9846 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9847 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9848   $as_echo_n "(cached) " >&6
9849 else
9850   lt_cv_prog_compiler_c_o=no
9851    $RM -r conftest 2>/dev/null
9852    mkdir conftest
9853    cd conftest
9854    mkdir out
9855    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9856
9857    lt_compiler_flag="-o out/conftest2.$ac_objext"
9858    # Insert the option either (1) after the last *FLAGS variable, or
9859    # (2) before a word containing "conftest.", or (3) at the end.
9860    # Note that $ac_compile itself does not contain backslashes and begins
9861    # with a dollar sign (not a hyphen), so the echo should work correctly.
9862    lt_compile=`echo "$ac_compile" | $SED \
9863    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9864    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9865    -e 's:$: $lt_compiler_flag:'`
9866    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9867    (eval "$lt_compile" 2>out/conftest.err)
9868    ac_status=$?
9869    cat out/conftest.err >&5
9870    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9872    then
9873      # The compiler can only warn and ignore the option if not recognized
9874      # So say no if there are warnings
9875      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9876      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9877      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9878        lt_cv_prog_compiler_c_o=yes
9879      fi
9880    fi
9881    chmod u+w . 2>&5
9882    $RM conftest*
9883    # SGI C++ compiler will create directory out/ii_files/ for
9884    # template instantiation
9885    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9886    $RM out/* && rmdir out
9887    cd ..
9888    $RM -r conftest
9889    $RM conftest*
9890
9891 fi
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9893 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9894
9895
9896
9897
9898
9899
9900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9902 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9903   $as_echo_n "(cached) " >&6
9904 else
9905   lt_cv_prog_compiler_c_o=no
9906    $RM -r conftest 2>/dev/null
9907    mkdir conftest
9908    cd conftest
9909    mkdir out
9910    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9911
9912    lt_compiler_flag="-o out/conftest2.$ac_objext"
9913    # Insert the option either (1) after the last *FLAGS variable, or
9914    # (2) before a word containing "conftest.", or (3) at the end.
9915    # Note that $ac_compile itself does not contain backslashes and begins
9916    # with a dollar sign (not a hyphen), so the echo should work correctly.
9917    lt_compile=`echo "$ac_compile" | $SED \
9918    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9919    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9920    -e 's:$: $lt_compiler_flag:'`
9921    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9922    (eval "$lt_compile" 2>out/conftest.err)
9923    ac_status=$?
9924    cat out/conftest.err >&5
9925    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9927    then
9928      # The compiler can only warn and ignore the option if not recognized
9929      # So say no if there are warnings
9930      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9931      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9932      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9933        lt_cv_prog_compiler_c_o=yes
9934      fi
9935    fi
9936    chmod u+w . 2>&5
9937    $RM conftest*
9938    # SGI C++ compiler will create directory out/ii_files/ for
9939    # template instantiation
9940    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9941    $RM out/* && rmdir out
9942    cd ..
9943    $RM -r conftest
9944    $RM conftest*
9945
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9948 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9949
9950
9951
9952
9953 hard_links="nottested"
9954 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9955   # do not overwrite the value of need_locks provided by the user
9956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9957 $as_echo_n "checking if we can lock with hard links... " >&6; }
9958   hard_links=yes
9959   $RM conftest*
9960   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9961   touch conftest.a
9962   ln conftest.a conftest.b 2>&5 || hard_links=no
9963   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9965 $as_echo "$hard_links" >&6; }
9966   if test "$hard_links" = no; then
9967     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9968 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9969     need_locks=warn
9970   fi
9971 else
9972   need_locks=no
9973 fi
9974
9975
9976
9977
9978
9979
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9981 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9982
9983   runpath_var=
9984   allow_undefined_flag=
9985   always_export_symbols=no
9986   archive_cmds=
9987   archive_expsym_cmds=
9988   compiler_needs_object=no
9989   enable_shared_with_static_runtimes=no
9990   export_dynamic_flag_spec=
9991   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9992   hardcode_automatic=no
9993   hardcode_direct=no
9994   hardcode_direct_absolute=no
9995   hardcode_libdir_flag_spec=
9996   hardcode_libdir_flag_spec_ld=
9997   hardcode_libdir_separator=
9998   hardcode_minus_L=no
9999   hardcode_shlibpath_var=unsupported
10000   inherit_rpath=no
10001   link_all_deplibs=unknown
10002   module_cmds=
10003   module_expsym_cmds=
10004   old_archive_from_new_cmds=
10005   old_archive_from_expsyms_cmds=
10006   thread_safe_flag_spec=
10007   whole_archive_flag_spec=
10008   # include_expsyms should be a list of space-separated symbols to be *always*
10009   # included in the symbol list
10010   include_expsyms=
10011   # exclude_expsyms can be an extended regexp of symbols to exclude
10012   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10013   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10014   # as well as any symbol that contains `d'.
10015   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10016   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10017   # platforms (ab)use it in PIC code, but their linkers get confused if
10018   # the symbol is explicitly referenced.  Since portable code cannot
10019   # rely on this symbol name, it's probably fine to never include it in
10020   # preloaded symbol tables.
10021   # Exclude shared library initialization/finalization symbols.
10022   extract_expsyms_cmds=
10023
10024   case $host_os in
10025   cygwin* | mingw* | pw32* | cegcc*)
10026     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10027     # When not using gcc, we currently assume that we are using
10028     # Microsoft Visual C++.
10029     if test "$GCC" != yes; then
10030       with_gnu_ld=no
10031     fi
10032     ;;
10033   interix*)
10034     # we just hope/assume this is gcc and not c89 (= MSVC++)
10035     with_gnu_ld=yes
10036     ;;
10037   openbsd*)
10038     with_gnu_ld=no
10039     ;;
10040   esac
10041
10042   ld_shlibs=yes
10043
10044   # On some targets, GNU ld is compatible enough with the native linker
10045   # that we're better off using the native interface for both.
10046   lt_use_gnu_ld_interface=no
10047   if test "$with_gnu_ld" = yes; then
10048     case $host_os in
10049       aix*)
10050         # The AIX port of GNU ld has always aspired to compatibility
10051         # with the native linker.  However, as the warning in the GNU ld
10052         # block says, versions before 2.19.5* couldn't really create working
10053         # shared libraries, regardless of the interface used.
10054         case `$LD -v 2>&1` in
10055           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10056           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10057           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10058           *)
10059             lt_use_gnu_ld_interface=yes
10060             ;;
10061         esac
10062         ;;
10063       *)
10064         lt_use_gnu_ld_interface=yes
10065         ;;
10066     esac
10067   fi
10068
10069   if test "$lt_use_gnu_ld_interface" = yes; then
10070     # If archive_cmds runs LD, not CC, wlarc should be empty
10071     wlarc='${wl}'
10072
10073     # Set some defaults for GNU ld with shared library support. These
10074     # are reset later if shared libraries are not supported. Putting them
10075     # here allows them to be overridden if necessary.
10076     runpath_var=LD_RUN_PATH
10077     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10078     export_dynamic_flag_spec='${wl}--export-dynamic'
10079     # ancient GNU ld didn't support --whole-archive et. al.
10080     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10081       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10082     else
10083       whole_archive_flag_spec=
10084     fi
10085     supports_anon_versioning=no
10086     case `$LD -v 2>&1` in
10087       *GNU\ gold*) supports_anon_versioning=yes ;;
10088       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10089       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10090       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10091       *\ 2.11.*) ;; # other 2.11 versions
10092       *) supports_anon_versioning=yes ;;
10093     esac
10094
10095     # See if GNU ld supports shared libraries.
10096     case $host_os in
10097     aix[3-9]*)
10098       # On AIX/PPC, the GNU linker is very broken
10099       if test "$host_cpu" != ia64; then
10100         ld_shlibs=no
10101         cat <<_LT_EOF 1>&2
10102
10103 *** Warning: the GNU linker, at least up to release 2.19, is reported
10104 *** to be unable to reliably create shared libraries on AIX.
10105 *** Therefore, libtool is disabling shared libraries support.  If you
10106 *** really care for shared libraries, you may want to install binutils
10107 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10108 *** You will then need to restart the configuration process.
10109
10110 _LT_EOF
10111       fi
10112       ;;
10113
10114     amigaos*)
10115       case $host_cpu in
10116       powerpc)
10117             # see comment about AmigaOS4 .so support
10118             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10119             archive_expsym_cmds=''
10120         ;;
10121       m68k)
10122             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)'
10123             hardcode_libdir_flag_spec='-L$libdir'
10124             hardcode_minus_L=yes
10125         ;;
10126       esac
10127       ;;
10128
10129     beos*)
10130       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10131         allow_undefined_flag=unsupported
10132         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10133         # support --undefined.  This deserves some investigation.  FIXME
10134         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10135       else
10136         ld_shlibs=no
10137       fi
10138       ;;
10139
10140     cygwin* | mingw* | pw32* | cegcc*)
10141       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10142       # as there is no search path for DLLs.
10143       hardcode_libdir_flag_spec='-L$libdir'
10144       export_dynamic_flag_spec='${wl}--export-all-symbols'
10145       allow_undefined_flag=unsupported
10146       always_export_symbols=no
10147       enable_shared_with_static_runtimes=yes
10148       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10149
10150       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10151         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10152         # If the export-symbols file already is a .def file (1st line
10153         # is EXPORTS), use it as is; otherwise, prepend...
10154         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10155           cp $export_symbols $output_objdir/$soname.def;
10156         else
10157           echo EXPORTS > $output_objdir/$soname.def;
10158           cat $export_symbols >> $output_objdir/$soname.def;
10159         fi~
10160         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10161       else
10162         ld_shlibs=no
10163       fi
10164       ;;
10165
10166     haiku*)
10167       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10168       link_all_deplibs=yes
10169       ;;
10170
10171     interix[3-9]*)
10172       hardcode_direct=no
10173       hardcode_shlibpath_var=no
10174       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10175       export_dynamic_flag_spec='${wl}-E'
10176       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10177       # Instead, shared libraries are loaded at an image base (0x10000000 by
10178       # default) and relocated if they conflict, which is a slow very memory
10179       # consuming and fragmenting process.  To avoid this, we pick a random,
10180       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10181       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10182       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10183       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'
10184       ;;
10185
10186     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10187       tmp_diet=no
10188       if test "$host_os" = linux-dietlibc; then
10189         case $cc_basename in
10190           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10191         esac
10192       fi
10193       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10194          && test "$tmp_diet" = no
10195       then
10196         tmp_addflag=
10197         tmp_sharedflag='-shared'
10198         case $cc_basename,$host_cpu in
10199         pgcc*)                          # Portland Group C compiler
10200           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10201           tmp_addflag=' $pic_flag'
10202           ;;
10203         pgf77* | pgf90* | pgf95* | pgfortran*)
10204                                         # Portland Group f77 and f90 compilers
10205           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10206           tmp_addflag=' $pic_flag -Mnomain' ;;
10207         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10208           tmp_addflag=' -i_dynamic' ;;
10209         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10210           tmp_addflag=' -i_dynamic -nofor_main' ;;
10211         ifc* | ifort*)                  # Intel Fortran compiler
10212           tmp_addflag=' -nofor_main' ;;
10213         lf95*)                          # Lahey Fortran 8.1
10214           whole_archive_flag_spec=
10215           tmp_sharedflag='--shared' ;;
10216         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10217           tmp_sharedflag='-qmkshrobj'
10218           tmp_addflag= ;;
10219         nvcc*)  # Cuda Compiler Driver 2.2
10220           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10221           compiler_needs_object=yes
10222           ;;
10223         esac
10224         case `$CC -V 2>&1 | sed 5q` in
10225         *Sun\ C*)                       # Sun C 5.9
10226           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10227           compiler_needs_object=yes
10228           tmp_sharedflag='-G' ;;
10229         *Sun\ F*)                       # Sun Fortran 8.3
10230           tmp_sharedflag='-G' ;;
10231         esac
10232         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10233
10234         if test "x$supports_anon_versioning" = xyes; then
10235           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10236             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10237             echo "local: *; };" >> $output_objdir/$libname.ver~
10238             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10239         fi
10240
10241         case $cc_basename in
10242         xlf* | bgf* | bgxlf* | mpixlf*)
10243           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10244           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10245           hardcode_libdir_flag_spec=
10246           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10247           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10248           if test "x$supports_anon_versioning" = xyes; then
10249             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10250               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10251               echo "local: *; };" >> $output_objdir/$libname.ver~
10252               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10253           fi
10254           ;;
10255         esac
10256       else
10257         ld_shlibs=no
10258       fi
10259       ;;
10260
10261     netbsd*)
10262       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10263         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10264         wlarc=
10265       else
10266         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10267         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10268       fi
10269       ;;
10270
10271     solaris*)
10272       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10273         ld_shlibs=no
10274         cat <<_LT_EOF 1>&2
10275
10276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10277 *** create shared libraries on Solaris systems.  Therefore, libtool
10278 *** is disabling shared libraries support.  We urge you to upgrade GNU
10279 *** binutils to release 2.9.1 or newer.  Another option is to modify
10280 *** your PATH or compiler configuration so that the native linker is
10281 *** used, and then restart.
10282
10283 _LT_EOF
10284       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10286         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10287       else
10288         ld_shlibs=no
10289       fi
10290       ;;
10291
10292     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10293       case `$LD -v 2>&1` in
10294         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10295         ld_shlibs=no
10296         cat <<_LT_EOF 1>&2
10297
10298 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10299 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10300 *** is disabling shared libraries support.  We urge you to upgrade GNU
10301 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10302 *** your PATH or compiler configuration so that the native linker is
10303 *** used, and then restart.
10304
10305 _LT_EOF
10306         ;;
10307         *)
10308           # For security reasons, it is highly recommended that you always
10309           # use absolute paths for naming shared libraries, and exclude the
10310           # DT_RUNPATH tag from executables and libraries.  But doing so
10311           # requires that you compile everything twice, which is a pain.
10312           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10313             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10314             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10315             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10316           else
10317             ld_shlibs=no
10318           fi
10319         ;;
10320       esac
10321       ;;
10322
10323     sunos4*)
10324       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10325       wlarc=
10326       hardcode_direct=yes
10327       hardcode_shlibpath_var=no
10328       ;;
10329
10330     *)
10331       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10332         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10333         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10334       else
10335         ld_shlibs=no
10336       fi
10337       ;;
10338     esac
10339
10340     if test "$ld_shlibs" = no; then
10341       runpath_var=
10342       hardcode_libdir_flag_spec=
10343       export_dynamic_flag_spec=
10344       whole_archive_flag_spec=
10345     fi
10346   else
10347     # PORTME fill in a description of your system's linker (not GNU ld)
10348     case $host_os in
10349     aix3*)
10350       allow_undefined_flag=unsupported
10351       always_export_symbols=yes
10352       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'
10353       # Note: this linker hardcodes the directories in LIBPATH if there
10354       # are no directories specified by -L.
10355       hardcode_minus_L=yes
10356       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10357         # Neither direct hardcoding nor static linking is supported with a
10358         # broken collect2.
10359         hardcode_direct=unsupported
10360       fi
10361       ;;
10362
10363     aix[4-9]*)
10364       if test "$host_cpu" = ia64; then
10365         # On IA64, the linker does run time linking by default, so we don't
10366         # have to do anything special.
10367         aix_use_runtimelinking=no
10368         exp_sym_flag='-Bexport'
10369         no_entry_flag=""
10370       else
10371         # If we're using GNU nm, then we don't want the "-C" option.
10372         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10373         # Also, AIX nm treats weak defined symbols like other global
10374         # defined symbols, whereas GNU nm marks them as "W".
10375         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10376           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10377         else
10378           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'
10379         fi
10380         aix_use_runtimelinking=no
10381
10382         # Test if we are trying to use run time linking or normal
10383         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10384         # need to do runtime linking.
10385         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10386           for ld_flag in $LDFLAGS; do
10387           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10388             aix_use_runtimelinking=yes
10389             break
10390           fi
10391           done
10392           ;;
10393         esac
10394
10395         exp_sym_flag='-bexport'
10396         no_entry_flag='-bnoentry'
10397       fi
10398
10399       # When large executables or shared objects are built, AIX ld can
10400       # have problems creating the table of contents.  If linking a library
10401       # or program results in "error TOC overflow" add -mminimal-toc to
10402       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10403       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10404
10405       archive_cmds=''
10406       hardcode_direct=yes
10407       hardcode_direct_absolute=yes
10408       hardcode_libdir_separator=':'
10409       link_all_deplibs=yes
10410       file_list_spec='${wl}-f,'
10411
10412       if test "$GCC" = yes; then
10413         case $host_os in aix4.[012]|aix4.[012].*)
10414         # We only want to do this on AIX 4.2 and lower, the check
10415         # below for broken collect2 doesn't work under 4.3+
10416           collect2name=`${CC} -print-prog-name=collect2`
10417           if test -f "$collect2name" &&
10418            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10419           then
10420           # We have reworked collect2
10421           :
10422           else
10423           # We have old collect2
10424           hardcode_direct=unsupported
10425           # It fails to find uninstalled libraries when the uninstalled
10426           # path is not listed in the libpath.  Setting hardcode_minus_L
10427           # to unsupported forces relinking
10428           hardcode_minus_L=yes
10429           hardcode_libdir_flag_spec='-L$libdir'
10430           hardcode_libdir_separator=
10431           fi
10432           ;;
10433         esac
10434         shared_flag='-shared'
10435         if test "$aix_use_runtimelinking" = yes; then
10436           shared_flag="$shared_flag "'${wl}-G'
10437         fi
10438       else
10439         # not using gcc
10440         if test "$host_cpu" = ia64; then
10441         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10442         # chokes on -Wl,-G. The following line is correct:
10443           shared_flag='-G'
10444         else
10445           if test "$aix_use_runtimelinking" = yes; then
10446             shared_flag='${wl}-G'
10447           else
10448             shared_flag='${wl}-bM:SRE'
10449           fi
10450         fi
10451       fi
10452
10453       export_dynamic_flag_spec='${wl}-bexpall'
10454       # It seems that -bexpall does not export symbols beginning with
10455       # underscore (_), so it is better to generate a list of symbols to export.
10456       always_export_symbols=yes
10457       if test "$aix_use_runtimelinking" = yes; then
10458         # Warning - without using the other runtime loading flags (-brtl),
10459         # -berok will link without error, but may produce a broken library.
10460         allow_undefined_flag='-berok'
10461         # Determine the default libpath from the value encoded in an
10462         # empty executable.
10463         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h.  */
10465
10466 int
10467 main ()
10468 {
10469
10470   ;
10471   return 0;
10472 }
10473 _ACEOF
10474 if ac_fn_c_try_link "$LINENO"; then :
10475
10476 lt_aix_libpath_sed='
10477     /Import File Strings/,/^$/ {
10478         /^0/ {
10479             s/^0  *\(.*\)$/\1/
10480             p
10481         }
10482     }'
10483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10484 # Check for a 64-bit object if we didn't find anything.
10485 if test -z "$aix_libpath"; then
10486   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10487 fi
10488 fi
10489 rm -f core conftest.err conftest.$ac_objext \
10490     conftest$ac_exeext conftest.$ac_ext
10491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10492
10493         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10494         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10495       else
10496         if test "$host_cpu" = ia64; then
10497           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10498           allow_undefined_flag="-z nodefs"
10499           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"
10500         else
10501          # Determine the default libpath from the value encoded in an
10502          # empty executable.
10503          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h.  */
10505
10506 int
10507 main ()
10508 {
10509
10510   ;
10511   return 0;
10512 }
10513 _ACEOF
10514 if ac_fn_c_try_link "$LINENO"; then :
10515
10516 lt_aix_libpath_sed='
10517     /Import File Strings/,/^$/ {
10518         /^0/ {
10519             s/^0  *\(.*\)$/\1/
10520             p
10521         }
10522     }'
10523 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10524 # Check for a 64-bit object if we didn't find anything.
10525 if test -z "$aix_libpath"; then
10526   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10527 fi
10528 fi
10529 rm -f core conftest.err conftest.$ac_objext \
10530     conftest$ac_exeext conftest.$ac_ext
10531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10532
10533          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10534           # Warning - without using the other run time loading flags,
10535           # -berok will link without error, but may produce a broken library.
10536           no_undefined_flag=' ${wl}-bernotok'
10537           allow_undefined_flag=' ${wl}-berok'
10538           if test "$with_gnu_ld" = yes; then
10539             # We only use this code for GNU lds that support --whole-archive.
10540             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10541           else
10542             # Exported symbols can be pulled into shared objects from archives
10543             whole_archive_flag_spec='$convenience'
10544           fi
10545           archive_cmds_need_lc=yes
10546           # This is similar to how AIX traditionally builds its shared libraries.
10547           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'
10548         fi
10549       fi
10550       ;;
10551
10552     amigaos*)
10553       case $host_cpu in
10554       powerpc)
10555             # see comment about AmigaOS4 .so support
10556             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10557             archive_expsym_cmds=''
10558         ;;
10559       m68k)
10560             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)'
10561             hardcode_libdir_flag_spec='-L$libdir'
10562             hardcode_minus_L=yes
10563         ;;
10564       esac
10565       ;;
10566
10567     bsdi[45]*)
10568       export_dynamic_flag_spec=-rdynamic
10569       ;;
10570
10571     cygwin* | mingw* | pw32* | cegcc*)
10572       # When not using gcc, we currently assume that we are using
10573       # Microsoft Visual C++.
10574       # hardcode_libdir_flag_spec is actually meaningless, as there is
10575       # no search path for DLLs.
10576       hardcode_libdir_flag_spec=' '
10577       allow_undefined_flag=unsupported
10578       # Tell ltmain to make .lib files, not .a files.
10579       libext=lib
10580       # Tell ltmain to make .dll files, not .so files.
10581       shrext_cmds=".dll"
10582       # FIXME: Setting linknames here is a bad hack.
10583       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10584       # The linker will automatically build a .lib file if we build a DLL.
10585       old_archive_from_new_cmds='true'
10586       # FIXME: Should let the user specify the lib program.
10587       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10588       fix_srcfile_path='`cygpath -w "$srcfile"`'
10589       enable_shared_with_static_runtimes=yes
10590       ;;
10591
10592     darwin* | rhapsody*)
10593
10594
10595   archive_cmds_need_lc=no
10596   hardcode_direct=no
10597   hardcode_automatic=yes
10598   hardcode_shlibpath_var=unsupported
10599   if test "$lt_cv_ld_force_load" = "yes"; then
10600     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10601   else
10602     whole_archive_flag_spec=''
10603   fi
10604   link_all_deplibs=yes
10605   allow_undefined_flag="$_lt_dar_allow_undefined"
10606   case $cc_basename in
10607      ifort*) _lt_dar_can_shared=yes ;;
10608      *) _lt_dar_can_shared=$GCC ;;
10609   esac
10610   if test "$_lt_dar_can_shared" = "yes"; then
10611     output_verbose_link_cmd=func_echo_all
10612     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10613     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10614     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10615     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10616
10617   else
10618   ld_shlibs=no
10619   fi
10620
10621       ;;
10622
10623     dgux*)
10624       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625       hardcode_libdir_flag_spec='-L$libdir'
10626       hardcode_shlibpath_var=no
10627       ;;
10628
10629     freebsd1*)
10630       ld_shlibs=no
10631       ;;
10632
10633     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10634     # support.  Future versions do this automatically, but an explicit c++rt0.o
10635     # does not break anything, and helps significantly (at the cost of a little
10636     # extra space).
10637     freebsd2.2*)
10638       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10639       hardcode_libdir_flag_spec='-R$libdir'
10640       hardcode_direct=yes
10641       hardcode_shlibpath_var=no
10642       ;;
10643
10644     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10645     freebsd2*)
10646       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10647       hardcode_direct=yes
10648       hardcode_minus_L=yes
10649       hardcode_shlibpath_var=no
10650       ;;
10651
10652     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10653     freebsd* | dragonfly*)
10654       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10655       hardcode_libdir_flag_spec='-R$libdir'
10656       hardcode_direct=yes
10657       hardcode_shlibpath_var=no
10658       ;;
10659
10660     hpux9*)
10661       if test "$GCC" = yes; then
10662         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'
10663       else
10664         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'
10665       fi
10666       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10667       hardcode_libdir_separator=:
10668       hardcode_direct=yes
10669
10670       # hardcode_minus_L: Not really in the search PATH,
10671       # but as the default location of the library.
10672       hardcode_minus_L=yes
10673       export_dynamic_flag_spec='${wl}-E'
10674       ;;
10675
10676     hpux10*)
10677       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10678         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10679       else
10680         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10681       fi
10682       if test "$with_gnu_ld" = no; then
10683         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10684         hardcode_libdir_flag_spec_ld='+b $libdir'
10685         hardcode_libdir_separator=:
10686         hardcode_direct=yes
10687         hardcode_direct_absolute=yes
10688         export_dynamic_flag_spec='${wl}-E'
10689         # hardcode_minus_L: Not really in the search PATH,
10690         # but as the default location of the library.
10691         hardcode_minus_L=yes
10692       fi
10693       ;;
10694
10695     hpux11*)
10696       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10697         case $host_cpu in
10698         hppa*64*)
10699           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10700           ;;
10701         ia64*)
10702           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10703           ;;
10704         *)
10705           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10706           ;;
10707         esac
10708       else
10709         case $host_cpu in
10710         hppa*64*)
10711           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10712           ;;
10713         ia64*)
10714           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10715           ;;
10716         *)
10717
10718           # Older versions of the 11.00 compiler do not understand -b yet
10719           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10720           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10721 $as_echo_n "checking if $CC understands -b... " >&6; }
10722 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10723   $as_echo_n "(cached) " >&6
10724 else
10725   lt_cv_prog_compiler__b=no
10726    save_LDFLAGS="$LDFLAGS"
10727    LDFLAGS="$LDFLAGS -b"
10728    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10729    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10730      # The linker can only warn and ignore the option if not recognized
10731      # So say no if there are warnings
10732      if test -s conftest.err; then
10733        # Append any errors to the config.log.
10734        cat conftest.err 1>&5
10735        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10736        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10737        if diff conftest.exp conftest.er2 >/dev/null; then
10738          lt_cv_prog_compiler__b=yes
10739        fi
10740      else
10741        lt_cv_prog_compiler__b=yes
10742      fi
10743    fi
10744    $RM -r conftest*
10745    LDFLAGS="$save_LDFLAGS"
10746
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10749 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10750
10751 if test x"$lt_cv_prog_compiler__b" = xyes; then
10752     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10753 else
10754     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10755 fi
10756
10757           ;;
10758         esac
10759       fi
10760       if test "$with_gnu_ld" = no; then
10761         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10762         hardcode_libdir_separator=:
10763
10764         case $host_cpu in
10765         hppa*64*|ia64*)
10766           hardcode_direct=no
10767           hardcode_shlibpath_var=no
10768           ;;
10769         *)
10770           hardcode_direct=yes
10771           hardcode_direct_absolute=yes
10772           export_dynamic_flag_spec='${wl}-E'
10773
10774           # hardcode_minus_L: Not really in the search PATH,
10775           # but as the default location of the library.
10776           hardcode_minus_L=yes
10777           ;;
10778         esac
10779       fi
10780       ;;
10781
10782     irix5* | irix6* | nonstopux*)
10783       if test "$GCC" = yes; then
10784         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10785         # Try to use the -exported_symbol ld option, if it does not
10786         # work, assume that -exports_file does not work either and
10787         # implicitly export all symbols.
10788         save_LDFLAGS="$LDFLAGS"
10789         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10790         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h.  */
10792 int foo(void) {}
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10796
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext \
10799     conftest$ac_exeext conftest.$ac_ext
10800         LDFLAGS="$save_LDFLAGS"
10801       else
10802         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10803         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10804       fi
10805       archive_cmds_need_lc='no'
10806       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10807       hardcode_libdir_separator=:
10808       inherit_rpath=yes
10809       link_all_deplibs=yes
10810       ;;
10811
10812     netbsd*)
10813       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10814         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10815       else
10816         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10817       fi
10818       hardcode_libdir_flag_spec='-R$libdir'
10819       hardcode_direct=yes
10820       hardcode_shlibpath_var=no
10821       ;;
10822
10823     newsos6)
10824       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10825       hardcode_direct=yes
10826       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10827       hardcode_libdir_separator=:
10828       hardcode_shlibpath_var=no
10829       ;;
10830
10831     *nto* | *qnx*)
10832       ;;
10833
10834     openbsd*)
10835       if test -f /usr/libexec/ld.so; then
10836         hardcode_direct=yes
10837         hardcode_shlibpath_var=no
10838         hardcode_direct_absolute=yes
10839         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10840           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10841           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10842           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10843           export_dynamic_flag_spec='${wl}-E'
10844         else
10845           case $host_os in
10846            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10847              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10848              hardcode_libdir_flag_spec='-R$libdir'
10849              ;;
10850            *)
10851              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10852              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10853              ;;
10854           esac
10855         fi
10856       else
10857         ld_shlibs=no
10858       fi
10859       ;;
10860
10861     os2*)
10862       hardcode_libdir_flag_spec='-L$libdir'
10863       hardcode_minus_L=yes
10864       allow_undefined_flag=unsupported
10865       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'
10866       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10867       ;;
10868
10869     osf3*)
10870       if test "$GCC" = yes; then
10871         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10872         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10873       else
10874         allow_undefined_flag=' -expect_unresolved \*'
10875         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10876       fi
10877       archive_cmds_need_lc='no'
10878       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10879       hardcode_libdir_separator=:
10880       ;;
10881
10882     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10883       if test "$GCC" = yes; then
10884         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10885         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10886         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10887       else
10888         allow_undefined_flag=' -expect_unresolved \*'
10889         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10890         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10891         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10892
10893         # Both c and cxx compiler support -rpath directly
10894         hardcode_libdir_flag_spec='-rpath $libdir'
10895       fi
10896       archive_cmds_need_lc='no'
10897       hardcode_libdir_separator=:
10898       ;;
10899
10900     solaris*)
10901       no_undefined_flag=' -z defs'
10902       if test "$GCC" = yes; then
10903         wlarc='${wl}'
10904         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10905         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10906           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10907       else
10908         case `$CC -V 2>&1` in
10909         *"Compilers 5.0"*)
10910           wlarc=''
10911           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10913           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10914           ;;
10915         *)
10916           wlarc='${wl}'
10917           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10918           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10919           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10920           ;;
10921         esac
10922       fi
10923       hardcode_libdir_flag_spec='-R$libdir'
10924       hardcode_shlibpath_var=no
10925       case $host_os in
10926       solaris2.[0-5] | solaris2.[0-5].*) ;;
10927       *)
10928         # The compiler driver will combine and reorder linker options,
10929         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10930         # but is careful enough not to reorder.
10931         # Supported since Solaris 2.6 (maybe 2.5.1?)
10932         if test "$GCC" = yes; then
10933           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10934         else
10935           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10936         fi
10937         ;;
10938       esac
10939       link_all_deplibs=yes
10940       ;;
10941
10942     sunos4*)
10943       if test "x$host_vendor" = xsequent; then
10944         # Use $CC to link under sequent, because it throws in some extra .o
10945         # files that make .init and .fini sections work.
10946         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10947       else
10948         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10949       fi
10950       hardcode_libdir_flag_spec='-L$libdir'
10951       hardcode_direct=yes
10952       hardcode_minus_L=yes
10953       hardcode_shlibpath_var=no
10954       ;;
10955
10956     sysv4)
10957       case $host_vendor in
10958         sni)
10959           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10960           hardcode_direct=yes # is this really true???
10961         ;;
10962         siemens)
10963           ## LD is ld it makes a PLAMLIB
10964           ## CC just makes a GrossModule.
10965           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10966           reload_cmds='$CC -r -o $output$reload_objs'
10967           hardcode_direct=no
10968         ;;
10969         motorola)
10970           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10971           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10972         ;;
10973       esac
10974       runpath_var='LD_RUN_PATH'
10975       hardcode_shlibpath_var=no
10976       ;;
10977
10978     sysv4.3*)
10979       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980       hardcode_shlibpath_var=no
10981       export_dynamic_flag_spec='-Bexport'
10982       ;;
10983
10984     sysv4*MP*)
10985       if test -d /usr/nec; then
10986         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10987         hardcode_shlibpath_var=no
10988         runpath_var=LD_RUN_PATH
10989         hardcode_runpath_var=yes
10990         ld_shlibs=yes
10991       fi
10992       ;;
10993
10994     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10995       no_undefined_flag='${wl}-z,text'
10996       archive_cmds_need_lc=no
10997       hardcode_shlibpath_var=no
10998       runpath_var='LD_RUN_PATH'
10999
11000       if test "$GCC" = yes; then
11001         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11002         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003       else
11004         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006       fi
11007       ;;
11008
11009     sysv5* | sco3.2v5* | sco5v6*)
11010       # Note: We can NOT use -z defs as we might desire, because we do not
11011       # link with -lc, and that would cause any symbols used from libc to
11012       # always be unresolved, which means just about no library would
11013       # ever link correctly.  If we're not using GNU ld we use -z text
11014       # though, which does catch some bad symbols but isn't as heavy-handed
11015       # as -z defs.
11016       no_undefined_flag='${wl}-z,text'
11017       allow_undefined_flag='${wl}-z,nodefs'
11018       archive_cmds_need_lc=no
11019       hardcode_shlibpath_var=no
11020       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11021       hardcode_libdir_separator=':'
11022       link_all_deplibs=yes
11023       export_dynamic_flag_spec='${wl}-Bexport'
11024       runpath_var='LD_RUN_PATH'
11025
11026       if test "$GCC" = yes; then
11027         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029       else
11030         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032       fi
11033       ;;
11034
11035     uts4*)
11036       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11037       hardcode_libdir_flag_spec='-L$libdir'
11038       hardcode_shlibpath_var=no
11039       ;;
11040
11041     *)
11042       ld_shlibs=no
11043       ;;
11044     esac
11045
11046     if test x$host_vendor = xsni; then
11047       case $host in
11048       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11049         export_dynamic_flag_spec='${wl}-Blargedynsym'
11050         ;;
11051       esac
11052     fi
11053   fi
11054
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11056 $as_echo "$ld_shlibs" >&6; }
11057 test "$ld_shlibs" = no && can_build_shared=no
11058
11059 with_gnu_ld=$with_gnu_ld
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075 #
11076 # Do we need to explicitly link libc?
11077 #
11078 case "x$archive_cmds_need_lc" in
11079 x|xyes)
11080   # Assume -lc should be added
11081   archive_cmds_need_lc=yes
11082
11083   if test "$enable_shared" = yes && test "$GCC" = yes; then
11084     case $archive_cmds in
11085     *'~'*)
11086       # FIXME: we may have to deal with multi-command sequences.
11087       ;;
11088     '$CC '*)
11089       # Test whether the compiler implicitly links with -lc since on some
11090       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11091       # to ld, don't add -lc before -lgcc.
11092       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11093 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11094 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11095   $as_echo_n "(cached) " >&6
11096 else
11097   $RM conftest*
11098         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11099
11100         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11101   (eval $ac_compile) 2>&5
11102   ac_status=$?
11103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104   test $ac_status = 0; } 2>conftest.err; then
11105           soname=conftest
11106           lib=conftest
11107           libobjs=conftest.$ac_objext
11108           deplibs=
11109           wl=$lt_prog_compiler_wl
11110           pic_flag=$lt_prog_compiler_pic
11111           compiler_flags=-v
11112           linker_flags=-v
11113           verstring=
11114           output_objdir=.
11115           libname=conftest
11116           lt_save_allow_undefined_flag=$allow_undefined_flag
11117           allow_undefined_flag=
11118           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11119   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11120   ac_status=$?
11121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11122   test $ac_status = 0; }
11123           then
11124             lt_cv_archive_cmds_need_lc=no
11125           else
11126             lt_cv_archive_cmds_need_lc=yes
11127           fi
11128           allow_undefined_flag=$lt_save_allow_undefined_flag
11129         else
11130           cat conftest.err 1>&5
11131         fi
11132         $RM conftest*
11133
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11136 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11137       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11138       ;;
11139     esac
11140   fi
11141   ;;
11142 esac
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11301 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11302
11303 if test "$GCC" = yes; then
11304   case $host_os in
11305     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11306     *) lt_awk_arg="/^libraries:/" ;;
11307   esac
11308   case $host_os in
11309     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11310     *) lt_sed_strip_eq="s,=/,/,g" ;;
11311   esac
11312   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11313   case $lt_search_path_spec in
11314   *\;*)
11315     # if the path contains ";" then we assume it to be the separator
11316     # otherwise default to the standard path separator (i.e. ":") - it is
11317     # assumed that no part of a normal pathname contains ";" but that should
11318     # okay in the real world where ";" in dirpaths is itself problematic.
11319     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11320     ;;
11321   *)
11322     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11323     ;;
11324   esac
11325   # Ok, now we have the path, separated by spaces, we can step through it
11326   # and add multilib dir if necessary.
11327   lt_tmp_lt_search_path_spec=
11328   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11329   for lt_sys_path in $lt_search_path_spec; do
11330     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11331       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11332     else
11333       test -d "$lt_sys_path" && \
11334         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11335     fi
11336   done
11337   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11338 BEGIN {RS=" "; FS="/|\n";} {
11339   lt_foo="";
11340   lt_count=0;
11341   for (lt_i = NF; lt_i > 0; lt_i--) {
11342     if ($lt_i != "" && $lt_i != ".") {
11343       if ($lt_i == "..") {
11344         lt_count++;
11345       } else {
11346         if (lt_count == 0) {
11347           lt_foo="/" $lt_i lt_foo;
11348         } else {
11349           lt_count--;
11350         }
11351       }
11352     }
11353   }
11354   if (lt_foo != "") { lt_freq[lt_foo]++; }
11355   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11356 }'`
11357   # AWK program above erroneously prepends '/' to C:/dos/paths
11358   # for these hosts.
11359   case $host_os in
11360     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11361       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11362   esac
11363   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11364 else
11365   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11366 fi
11367 library_names_spec=
11368 libname_spec='lib$name'
11369 soname_spec=
11370 shrext_cmds=".so"
11371 postinstall_cmds=
11372 postuninstall_cmds=
11373 finish_cmds=
11374 finish_eval=
11375 shlibpath_var=
11376 shlibpath_overrides_runpath=unknown
11377 version_type=none
11378 dynamic_linker="$host_os ld.so"
11379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11380 need_lib_prefix=unknown
11381 hardcode_into_libs=no
11382
11383 # when you set need_version to no, make sure it does not cause -set_version
11384 # flags to be left without arguments
11385 need_version=unknown
11386
11387 case $host_os in
11388 aix3*)
11389   version_type=linux
11390   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11391   shlibpath_var=LIBPATH
11392
11393   # AIX 3 has no versioning support, so we append a major version to the name.
11394   soname_spec='${libname}${release}${shared_ext}$major'
11395   ;;
11396
11397 aix[4-9]*)
11398   version_type=linux
11399   need_lib_prefix=no
11400   need_version=no
11401   hardcode_into_libs=yes
11402   if test "$host_cpu" = ia64; then
11403     # AIX 5 supports IA64
11404     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11405     shlibpath_var=LD_LIBRARY_PATH
11406   else
11407     # With GCC up to 2.95.x, collect2 would create an import file
11408     # for dependence libraries.  The import file would start with
11409     # the line `#! .'.  This would cause the generated library to
11410     # depend on `.', always an invalid library.  This was fixed in
11411     # development snapshots of GCC prior to 3.0.
11412     case $host_os in
11413       aix4 | aix4.[01] | aix4.[01].*)
11414       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11415            echo ' yes '
11416            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11417         :
11418       else
11419         can_build_shared=no
11420       fi
11421       ;;
11422     esac
11423     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11424     # soname into executable. Probably we can add versioning support to
11425     # collect2, so additional links can be useful in future.
11426     if test "$aix_use_runtimelinking" = yes; then
11427       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11428       # instead of lib<name>.a to let people know that these are not
11429       # typical AIX shared libraries.
11430       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431     else
11432       # We preserve .a as extension for shared libraries through AIX4.2
11433       # and later when we are not doing run time linking.
11434       library_names_spec='${libname}${release}.a $libname.a'
11435       soname_spec='${libname}${release}${shared_ext}$major'
11436     fi
11437     shlibpath_var=LIBPATH
11438   fi
11439   ;;
11440
11441 amigaos*)
11442   case $host_cpu in
11443   powerpc)
11444     # Since July 2007 AmigaOS4 officially supports .so libraries.
11445     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447     ;;
11448   m68k)
11449     library_names_spec='$libname.ixlibrary $libname.a'
11450     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11451     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11452     ;;
11453   esac
11454   ;;
11455
11456 beos*)
11457   library_names_spec='${libname}${shared_ext}'
11458   dynamic_linker="$host_os ld.so"
11459   shlibpath_var=LIBRARY_PATH
11460   ;;
11461
11462 bsdi[45]*)
11463   version_type=linux
11464   need_version=no
11465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466   soname_spec='${libname}${release}${shared_ext}$major'
11467   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11468   shlibpath_var=LD_LIBRARY_PATH
11469   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11470   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11471   # the default ld.so.conf also contains /usr/contrib/lib and
11472   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11473   # libtool to hard-code these into programs
11474   ;;
11475
11476 cygwin* | mingw* | pw32* | cegcc*)
11477   version_type=windows
11478   shrext_cmds=".dll"
11479   need_version=no
11480   need_lib_prefix=no
11481
11482   case $GCC,$host_os in
11483   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11484     library_names_spec='$libname.dll.a'
11485     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11486     postinstall_cmds='base_file=`basename \${file}`~
11487       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11488       dldir=$destdir/`dirname \$dlpath`~
11489       test -d \$dldir || mkdir -p \$dldir~
11490       $install_prog $dir/$dlname \$dldir/$dlname~
11491       chmod a+x \$dldir/$dlname~
11492       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11493         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11494       fi'
11495     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11496       dlpath=$dir/\$dldll~
11497        $RM \$dlpath'
11498     shlibpath_overrides_runpath=yes
11499
11500     case $host_os in
11501     cygwin*)
11502       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11503       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11504
11505       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11506       ;;
11507     mingw* | cegcc*)
11508       # MinGW DLLs use traditional 'lib' prefix
11509       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11510       ;;
11511     pw32*)
11512       # pw32 DLLs use 'pw' prefix rather than 'lib'
11513       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11514       ;;
11515     esac
11516     ;;
11517
11518   *)
11519     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11520     ;;
11521   esac
11522   dynamic_linker='Win32 ld.exe'
11523   # FIXME: first we should search . and the directory the executable is in
11524   shlibpath_var=PATH
11525   ;;
11526
11527 darwin* | rhapsody*)
11528   dynamic_linker="$host_os dyld"
11529   version_type=darwin
11530   need_lib_prefix=no
11531   need_version=no
11532   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11533   soname_spec='${libname}${release}${major}$shared_ext'
11534   shlibpath_overrides_runpath=yes
11535   shlibpath_var=DYLD_LIBRARY_PATH
11536   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11537
11538   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11539   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11540   ;;
11541
11542 dgux*)
11543   version_type=linux
11544   need_lib_prefix=no
11545   need_version=no
11546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11547   soname_spec='${libname}${release}${shared_ext}$major'
11548   shlibpath_var=LD_LIBRARY_PATH
11549   ;;
11550
11551 freebsd1*)
11552   dynamic_linker=no
11553   ;;
11554
11555 freebsd* | dragonfly*)
11556   # DragonFly does not have aout.  When/if they implement a new
11557   # versioning mechanism, adjust this.
11558   if test -x /usr/bin/objformat; then
11559     objformat=`/usr/bin/objformat`
11560   else
11561     case $host_os in
11562     freebsd[123]*) objformat=aout ;;
11563     *) objformat=elf ;;
11564     esac
11565   fi
11566   version_type=freebsd-$objformat
11567   case $version_type in
11568     freebsd-elf*)
11569       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11570       need_version=no
11571       need_lib_prefix=no
11572       ;;
11573     freebsd-*)
11574       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11575       need_version=yes
11576       ;;
11577   esac
11578   shlibpath_var=LD_LIBRARY_PATH
11579   case $host_os in
11580   freebsd2*)
11581     shlibpath_overrides_runpath=yes
11582     ;;
11583   freebsd3.[01]* | freebsdelf3.[01]*)
11584     shlibpath_overrides_runpath=yes
11585     hardcode_into_libs=yes
11586     ;;
11587   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11588   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11589     shlibpath_overrides_runpath=no
11590     hardcode_into_libs=yes
11591     ;;
11592   *) # from 4.6 on, and DragonFly
11593     shlibpath_overrides_runpath=yes
11594     hardcode_into_libs=yes
11595     ;;
11596   esac
11597   ;;
11598
11599 gnu*)
11600   version_type=linux
11601   need_lib_prefix=no
11602   need_version=no
11603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11604   soname_spec='${libname}${release}${shared_ext}$major'
11605   shlibpath_var=LD_LIBRARY_PATH
11606   hardcode_into_libs=yes
11607   ;;
11608
11609 haiku*)
11610   version_type=linux
11611   need_lib_prefix=no
11612   need_version=no
11613   dynamic_linker="$host_os runtime_loader"
11614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11615   soname_spec='${libname}${release}${shared_ext}$major'
11616   shlibpath_var=LIBRARY_PATH
11617   shlibpath_overrides_runpath=yes
11618   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11619   hardcode_into_libs=yes
11620   ;;
11621
11622 hpux9* | hpux10* | hpux11*)
11623   # Give a soname corresponding to the major version so that dld.sl refuses to
11624   # link against other versions.
11625   version_type=sunos
11626   need_lib_prefix=no
11627   need_version=no
11628   case $host_cpu in
11629   ia64*)
11630     shrext_cmds='.so'
11631     hardcode_into_libs=yes
11632     dynamic_linker="$host_os dld.so"
11633     shlibpath_var=LD_LIBRARY_PATH
11634     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636     soname_spec='${libname}${release}${shared_ext}$major'
11637     if test "X$HPUX_IA64_MODE" = X32; then
11638       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11639     else
11640       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11641     fi
11642     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11643     ;;
11644   hppa*64*)
11645     shrext_cmds='.sl'
11646     hardcode_into_libs=yes
11647     dynamic_linker="$host_os dld.sl"
11648     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11649     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11651     soname_spec='${libname}${release}${shared_ext}$major'
11652     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11653     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11654     ;;
11655   *)
11656     shrext_cmds='.sl'
11657     dynamic_linker="$host_os dld.sl"
11658     shlibpath_var=SHLIB_PATH
11659     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11660     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11661     soname_spec='${libname}${release}${shared_ext}$major'
11662     ;;
11663   esac
11664   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11665   postinstall_cmds='chmod 555 $lib'
11666   # or fails outright, so override atomically:
11667   install_override_mode=555
11668   ;;
11669
11670 interix[3-9]*)
11671   version_type=linux
11672   need_lib_prefix=no
11673   need_version=no
11674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11675   soname_spec='${libname}${release}${shared_ext}$major'
11676   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11677   shlibpath_var=LD_LIBRARY_PATH
11678   shlibpath_overrides_runpath=no
11679   hardcode_into_libs=yes
11680   ;;
11681
11682 irix5* | irix6* | nonstopux*)
11683   case $host_os in
11684     nonstopux*) version_type=nonstopux ;;
11685     *)
11686         if test "$lt_cv_prog_gnu_ld" = yes; then
11687                 version_type=linux
11688         else
11689                 version_type=irix
11690         fi ;;
11691   esac
11692   need_lib_prefix=no
11693   need_version=no
11694   soname_spec='${libname}${release}${shared_ext}$major'
11695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11696   case $host_os in
11697   irix5* | nonstopux*)
11698     libsuff= shlibsuff=
11699     ;;
11700   *)
11701     case $LD in # libtool.m4 will add one of these switches to LD
11702     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11703       libsuff= shlibsuff= libmagic=32-bit;;
11704     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11705       libsuff=32 shlibsuff=N32 libmagic=N32;;
11706     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11707       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11708     *) libsuff= shlibsuff= libmagic=never-match;;
11709     esac
11710     ;;
11711   esac
11712   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11713   shlibpath_overrides_runpath=no
11714   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11715   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11716   hardcode_into_libs=yes
11717   ;;
11718
11719 # No shared lib support for Linux oldld, aout, or coff.
11720 linux*oldld* | linux*aout* | linux*coff*)
11721   dynamic_linker=no
11722   ;;
11723
11724 # This must be Linux ELF.
11725 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11726   version_type=linux
11727   need_lib_prefix=no
11728   need_version=no
11729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730   soname_spec='${libname}${release}${shared_ext}$major'
11731   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11732   shlibpath_var=LD_LIBRARY_PATH
11733   shlibpath_overrides_runpath=no
11734
11735   # Some binutils ld are patched to set DT_RUNPATH
11736   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11737   $as_echo_n "(cached) " >&6
11738 else
11739   lt_cv_shlibpath_overrides_runpath=no
11740     save_LDFLAGS=$LDFLAGS
11741     save_libdir=$libdir
11742     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11743          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11744     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h.  */
11746
11747 int
11748 main ()
11749 {
11750
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_link "$LINENO"; then :
11756   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11757   lt_cv_shlibpath_overrides_runpath=yes
11758 fi
11759 fi
11760 rm -f core conftest.err conftest.$ac_objext \
11761     conftest$ac_exeext conftest.$ac_ext
11762     LDFLAGS=$save_LDFLAGS
11763     libdir=$save_libdir
11764
11765 fi
11766
11767   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11768
11769   # This implies no fast_install, which is unacceptable.
11770   # Some rework will be needed to allow for fast_install
11771   # before this can be enabled.
11772   hardcode_into_libs=yes
11773
11774   # Append ld.so.conf contents to the search path
11775   if test -f /etc/ld.so.conf; then
11776     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;s/"//g;/^$/d' | tr '\n' ' '`
11777     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11778   fi
11779
11780   # We used to test for /lib/ld.so.1 and disable shared libraries on
11781   # powerpc, because MkLinux only supported shared libraries with the
11782   # GNU dynamic linker.  Since this was broken with cross compilers,
11783   # most powerpc-linux boxes support dynamic linking these days and
11784   # people can always --disable-shared, the test was removed, and we
11785   # assume the GNU/Linux dynamic linker is in use.
11786   dynamic_linker='GNU/Linux ld.so'
11787   ;;
11788
11789 netbsd*)
11790   version_type=sunos
11791   need_lib_prefix=no
11792   need_version=no
11793   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11795     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11796     dynamic_linker='NetBSD (a.out) ld.so'
11797   else
11798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11799     soname_spec='${libname}${release}${shared_ext}$major'
11800     dynamic_linker='NetBSD ld.elf_so'
11801   fi
11802   shlibpath_var=LD_LIBRARY_PATH
11803   shlibpath_overrides_runpath=yes
11804   hardcode_into_libs=yes
11805   ;;
11806
11807 newsos6)
11808   version_type=linux
11809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810   shlibpath_var=LD_LIBRARY_PATH
11811   shlibpath_overrides_runpath=yes
11812   ;;
11813
11814 *nto* | *qnx*)
11815   version_type=qnx
11816   need_lib_prefix=no
11817   need_version=no
11818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819   soname_spec='${libname}${release}${shared_ext}$major'
11820   shlibpath_var=LD_LIBRARY_PATH
11821   shlibpath_overrides_runpath=no
11822   hardcode_into_libs=yes
11823   dynamic_linker='ldqnx.so'
11824   ;;
11825
11826 openbsd*)
11827   version_type=sunos
11828   sys_lib_dlsearch_path_spec="/usr/lib"
11829   need_lib_prefix=no
11830   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11831   case $host_os in
11832     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11833     *)                          need_version=no  ;;
11834   esac
11835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11836   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11837   shlibpath_var=LD_LIBRARY_PATH
11838   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11839     case $host_os in
11840       openbsd2.[89] | openbsd2.[89].*)
11841         shlibpath_overrides_runpath=no
11842         ;;
11843       *)
11844         shlibpath_overrides_runpath=yes
11845         ;;
11846       esac
11847   else
11848     shlibpath_overrides_runpath=yes
11849   fi
11850   ;;
11851
11852 os2*)
11853   libname_spec='$name'
11854   shrext_cmds=".dll"
11855   need_lib_prefix=no
11856   library_names_spec='$libname${shared_ext} $libname.a'
11857   dynamic_linker='OS/2 ld.exe'
11858   shlibpath_var=LIBPATH
11859   ;;
11860
11861 osf3* | osf4* | osf5*)
11862   version_type=osf
11863   need_lib_prefix=no
11864   need_version=no
11865   soname_spec='${libname}${release}${shared_ext}$major'
11866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867   shlibpath_var=LD_LIBRARY_PATH
11868   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11869   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11870   ;;
11871
11872 rdos*)
11873   dynamic_linker=no
11874   ;;
11875
11876 solaris*)
11877   version_type=linux
11878   need_lib_prefix=no
11879   need_version=no
11880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881   soname_spec='${libname}${release}${shared_ext}$major'
11882   shlibpath_var=LD_LIBRARY_PATH
11883   shlibpath_overrides_runpath=yes
11884   hardcode_into_libs=yes
11885   # ldd complains unless libraries are executable
11886   postinstall_cmds='chmod +x $lib'
11887   ;;
11888
11889 sunos4*)
11890   version_type=sunos
11891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11892   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11893   shlibpath_var=LD_LIBRARY_PATH
11894   shlibpath_overrides_runpath=yes
11895   if test "$with_gnu_ld" = yes; then
11896     need_lib_prefix=no
11897   fi
11898   need_version=yes
11899   ;;
11900
11901 sysv4 | sysv4.3*)
11902   version_type=linux
11903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904   soname_spec='${libname}${release}${shared_ext}$major'
11905   shlibpath_var=LD_LIBRARY_PATH
11906   case $host_vendor in
11907     sni)
11908       shlibpath_overrides_runpath=no
11909       need_lib_prefix=no
11910       runpath_var=LD_RUN_PATH
11911       ;;
11912     siemens)
11913       need_lib_prefix=no
11914       ;;
11915     motorola)
11916       need_lib_prefix=no
11917       need_version=no
11918       shlibpath_overrides_runpath=no
11919       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11920       ;;
11921   esac
11922   ;;
11923
11924 sysv4*MP*)
11925   if test -d /usr/nec ;then
11926     version_type=linux
11927     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11928     soname_spec='$libname${shared_ext}.$major'
11929     shlibpath_var=LD_LIBRARY_PATH
11930   fi
11931   ;;
11932
11933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11934   version_type=freebsd-elf
11935   need_lib_prefix=no
11936   need_version=no
11937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11938   soname_spec='${libname}${release}${shared_ext}$major'
11939   shlibpath_var=LD_LIBRARY_PATH
11940   shlibpath_overrides_runpath=yes
11941   hardcode_into_libs=yes
11942   if test "$with_gnu_ld" = yes; then
11943     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11944   else
11945     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11946     case $host_os in
11947       sco3.2v5*)
11948         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11949         ;;
11950     esac
11951   fi
11952   sys_lib_dlsearch_path_spec='/usr/lib'
11953   ;;
11954
11955 tpf*)
11956   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11957   version_type=linux
11958   need_lib_prefix=no
11959   need_version=no
11960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961   shlibpath_var=LD_LIBRARY_PATH
11962   shlibpath_overrides_runpath=no
11963   hardcode_into_libs=yes
11964   ;;
11965
11966 uts4*)
11967   version_type=linux
11968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969   soname_spec='${libname}${release}${shared_ext}$major'
11970   shlibpath_var=LD_LIBRARY_PATH
11971   ;;
11972
11973 *)
11974   dynamic_linker=no
11975   ;;
11976 esac
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11978 $as_echo "$dynamic_linker" >&6; }
11979 test "$dynamic_linker" = no && can_build_shared=no
11980
11981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11982 if test "$GCC" = yes; then
11983   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11984 fi
11985
11986 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11987   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11988 fi
11989 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11990   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11991 fi
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12085 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12086 hardcode_action=
12087 if test -n "$hardcode_libdir_flag_spec" ||
12088    test -n "$runpath_var" ||
12089    test "X$hardcode_automatic" = "Xyes" ; then
12090
12091   # We can hardcode non-existent directories.
12092   if test "$hardcode_direct" != no &&
12093      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12094      # have to relink, otherwise we might link with an installed library
12095      # when we should be linking with a yet-to-be-installed one
12096      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12097      test "$hardcode_minus_L" != no; then
12098     # Linking always hardcodes the temporary library directory.
12099     hardcode_action=relink
12100   else
12101     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12102     hardcode_action=immediate
12103   fi
12104 else
12105   # We cannot hardcode anything, or else we can only hardcode existing
12106   # directories.
12107   hardcode_action=unsupported
12108 fi
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12110 $as_echo "$hardcode_action" >&6; }
12111
12112 if test "$hardcode_action" = relink ||
12113    test "$inherit_rpath" = yes; then
12114   # Fast installation is not supported
12115   enable_fast_install=no
12116 elif test "$shlibpath_overrides_runpath" = yes ||
12117      test "$enable_shared" = no; then
12118   # Fast installation is not necessary
12119   enable_fast_install=needless
12120 fi
12121
12122
12123
12124
12125
12126
12127   if test "x$enable_dlopen" != xyes; then
12128   enable_dlopen=unknown
12129   enable_dlopen_self=unknown
12130   enable_dlopen_self_static=unknown
12131 else
12132   lt_cv_dlopen=no
12133   lt_cv_dlopen_libs=
12134
12135   case $host_os in
12136   beos*)
12137     lt_cv_dlopen="load_add_on"
12138     lt_cv_dlopen_libs=
12139     lt_cv_dlopen_self=yes
12140     ;;
12141
12142   mingw* | pw32* | cegcc*)
12143     lt_cv_dlopen="LoadLibrary"
12144     lt_cv_dlopen_libs=
12145     ;;
12146
12147   cygwin*)
12148     lt_cv_dlopen="dlopen"
12149     lt_cv_dlopen_libs=
12150     ;;
12151
12152   darwin*)
12153   # if libdl is installed we need to link against it
12154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12155 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12156 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12157   $as_echo_n "(cached) " >&6
12158 else
12159   ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-ldl  $LIBS"
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h.  */
12163
12164 /* Override any GCC internal prototype to avoid an error.
12165    Use char because int might match the return type of a GCC
12166    builtin and then its argument prototype would still apply.  */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char dlopen ();
12171 int
12172 main ()
12173 {
12174 return dlopen ();
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180   ac_cv_lib_dl_dlopen=yes
12181 else
12182   ac_cv_lib_dl_dlopen=no
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext \
12185     conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12189 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12190 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12191   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12192 else
12193
12194     lt_cv_dlopen="dyld"
12195     lt_cv_dlopen_libs=
12196     lt_cv_dlopen_self=yes
12197
12198 fi
12199
12200     ;;
12201
12202   *)
12203     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12204 if test "x$ac_cv_func_shl_load" = x""yes; then :
12205   lt_cv_dlopen="shl_load"
12206 else
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12208 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12209 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-ldld  $LIBS"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h.  */
12216
12217 /* Override any GCC internal prototype to avoid an error.
12218    Use char because int might match the return type of a GCC
12219    builtin and then its argument prototype would still apply.  */
12220 #ifdef __cplusplus
12221 extern "C"
12222 #endif
12223 char shl_load ();
12224 int
12225 main ()
12226 {
12227 return shl_load ();
12228   ;
12229   return 0;
12230 }
12231 _ACEOF
12232 if ac_fn_c_try_link "$LINENO"; then :
12233   ac_cv_lib_dld_shl_load=yes
12234 else
12235   ac_cv_lib_dld_shl_load=no
12236 fi
12237 rm -f core conftest.err conftest.$ac_objext \
12238     conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12242 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12243 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12244   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12245 else
12246   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12247 if test "x$ac_cv_func_dlopen" = x""yes; then :
12248   lt_cv_dlopen="dlopen"
12249 else
12250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12251 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12252 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12253   $as_echo_n "(cached) " >&6
12254 else
12255   ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-ldl  $LIBS"
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h.  */
12259
12260 /* Override any GCC internal prototype to avoid an error.
12261    Use char because int might match the return type of a GCC
12262    builtin and then its argument prototype would still apply.  */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 char dlopen ();
12267 int
12268 main ()
12269 {
12270 return dlopen ();
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_link "$LINENO"; then :
12276   ac_cv_lib_dl_dlopen=yes
12277 else
12278   ac_cv_lib_dl_dlopen=no
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext \
12281     conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12283 fi
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12285 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12286 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12287   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12288 else
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12290 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12291 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12292   $as_echo_n "(cached) " >&6
12293 else
12294   ac_check_lib_save_LIBS=$LIBS
12295 LIBS="-lsvld  $LIBS"
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h.  */
12298
12299 /* Override any GCC internal prototype to avoid an error.
12300    Use char because int might match the return type of a GCC
12301    builtin and then its argument prototype would still apply.  */
12302 #ifdef __cplusplus
12303 extern "C"
12304 #endif
12305 char dlopen ();
12306 int
12307 main ()
12308 {
12309 return dlopen ();
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 if ac_fn_c_try_link "$LINENO"; then :
12315   ac_cv_lib_svld_dlopen=yes
12316 else
12317   ac_cv_lib_svld_dlopen=no
12318 fi
12319 rm -f core conftest.err conftest.$ac_objext \
12320     conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12322 fi
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12324 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12325 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12326   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12327 else
12328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12329 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12330 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12331   $as_echo_n "(cached) " >&6
12332 else
12333   ac_check_lib_save_LIBS=$LIBS
12334 LIBS="-ldld  $LIBS"
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h.  */
12337
12338 /* Override any GCC internal prototype to avoid an error.
12339    Use char because int might match the return type of a GCC
12340    builtin and then its argument prototype would still apply.  */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 char dld_link ();
12345 int
12346 main ()
12347 {
12348 return dld_link ();
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 if ac_fn_c_try_link "$LINENO"; then :
12354   ac_cv_lib_dld_dld_link=yes
12355 else
12356   ac_cv_lib_dld_dld_link=no
12357 fi
12358 rm -f core conftest.err conftest.$ac_objext \
12359     conftest$ac_exeext conftest.$ac_ext
12360 LIBS=$ac_check_lib_save_LIBS
12361 fi
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12363 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12364 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12365   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12366 fi
12367
12368
12369 fi
12370
12371
12372 fi
12373
12374
12375 fi
12376
12377
12378 fi
12379
12380
12381 fi
12382
12383     ;;
12384   esac
12385
12386   if test "x$lt_cv_dlopen" != xno; then
12387     enable_dlopen=yes
12388   else
12389     enable_dlopen=no
12390   fi
12391
12392   case $lt_cv_dlopen in
12393   dlopen)
12394     save_CPPFLAGS="$CPPFLAGS"
12395     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12396
12397     save_LDFLAGS="$LDFLAGS"
12398     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12399
12400     save_LIBS="$LIBS"
12401     LIBS="$lt_cv_dlopen_libs $LIBS"
12402
12403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12404 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12405 if test "${lt_cv_dlopen_self+set}" = set; then :
12406   $as_echo_n "(cached) " >&6
12407 else
12408           if test "$cross_compiling" = yes; then :
12409   lt_cv_dlopen_self=cross
12410 else
12411   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12412   lt_status=$lt_dlunknown
12413   cat > conftest.$ac_ext <<_LT_EOF
12414 #line $LINENO "configure"
12415 #include "confdefs.h"
12416
12417 #if HAVE_DLFCN_H
12418 #include <dlfcn.h>
12419 #endif
12420
12421 #include <stdio.h>
12422
12423 #ifdef RTLD_GLOBAL
12424 #  define LT_DLGLOBAL           RTLD_GLOBAL
12425 #else
12426 #  ifdef DL_GLOBAL
12427 #    define LT_DLGLOBAL         DL_GLOBAL
12428 #  else
12429 #    define LT_DLGLOBAL         0
12430 #  endif
12431 #endif
12432
12433 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12434    find out it does not work in some platform. */
12435 #ifndef LT_DLLAZY_OR_NOW
12436 #  ifdef RTLD_LAZY
12437 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12438 #  else
12439 #    ifdef DL_LAZY
12440 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12441 #    else
12442 #      ifdef RTLD_NOW
12443 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12444 #      else
12445 #        ifdef DL_NOW
12446 #          define LT_DLLAZY_OR_NOW      DL_NOW
12447 #        else
12448 #          define LT_DLLAZY_OR_NOW      0
12449 #        endif
12450 #      endif
12451 #    endif
12452 #  endif
12453 #endif
12454
12455 /* When -fvisbility=hidden is used, assume the code has been annotated
12456    correspondingly for the symbols needed.  */
12457 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12458 void fnord () __attribute__((visibility("default")));
12459 #endif
12460
12461 void fnord () { int i=42; }
12462 int main ()
12463 {
12464   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12465   int status = $lt_dlunknown;
12466
12467   if (self)
12468     {
12469       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12470       else
12471         {
12472           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12473           else puts (dlerror ());
12474         }
12475       /* dlclose (self); */
12476     }
12477   else
12478     puts (dlerror ());
12479
12480   return status;
12481 }
12482 _LT_EOF
12483   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12484   (eval $ac_link) 2>&5
12485   ac_status=$?
12486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12487   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12488     (./conftest; exit; ) >&5 2>/dev/null
12489     lt_status=$?
12490     case x$lt_status in
12491       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12492       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12493       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12494     esac
12495   else :
12496     # compilation failed
12497     lt_cv_dlopen_self=no
12498   fi
12499 fi
12500 rm -fr conftest*
12501
12502
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12505 $as_echo "$lt_cv_dlopen_self" >&6; }
12506
12507     if test "x$lt_cv_dlopen_self" = xyes; then
12508       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12509       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12510 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12511 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12512   $as_echo_n "(cached) " >&6
12513 else
12514           if test "$cross_compiling" = yes; then :
12515   lt_cv_dlopen_self_static=cross
12516 else
12517   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12518   lt_status=$lt_dlunknown
12519   cat > conftest.$ac_ext <<_LT_EOF
12520 #line $LINENO "configure"
12521 #include "confdefs.h"
12522
12523 #if HAVE_DLFCN_H
12524 #include <dlfcn.h>
12525 #endif
12526
12527 #include <stdio.h>
12528
12529 #ifdef RTLD_GLOBAL
12530 #  define LT_DLGLOBAL           RTLD_GLOBAL
12531 #else
12532 #  ifdef DL_GLOBAL
12533 #    define LT_DLGLOBAL         DL_GLOBAL
12534 #  else
12535 #    define LT_DLGLOBAL         0
12536 #  endif
12537 #endif
12538
12539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12540    find out it does not work in some platform. */
12541 #ifndef LT_DLLAZY_OR_NOW
12542 #  ifdef RTLD_LAZY
12543 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12544 #  else
12545 #    ifdef DL_LAZY
12546 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12547 #    else
12548 #      ifdef RTLD_NOW
12549 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12550 #      else
12551 #        ifdef DL_NOW
12552 #          define LT_DLLAZY_OR_NOW      DL_NOW
12553 #        else
12554 #          define LT_DLLAZY_OR_NOW      0
12555 #        endif
12556 #      endif
12557 #    endif
12558 #  endif
12559 #endif
12560
12561 /* When -fvisbility=hidden is used, assume the code has been annotated
12562    correspondingly for the symbols needed.  */
12563 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12564 void fnord () __attribute__((visibility("default")));
12565 #endif
12566
12567 void fnord () { int i=42; }
12568 int main ()
12569 {
12570   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12571   int status = $lt_dlunknown;
12572
12573   if (self)
12574     {
12575       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12576       else
12577         {
12578           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12579           else puts (dlerror ());
12580         }
12581       /* dlclose (self); */
12582     }
12583   else
12584     puts (dlerror ());
12585
12586   return status;
12587 }
12588 _LT_EOF
12589   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12590   (eval $ac_link) 2>&5
12591   ac_status=$?
12592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12593   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12594     (./conftest; exit; ) >&5 2>/dev/null
12595     lt_status=$?
12596     case x$lt_status in
12597       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12598       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12599       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12600     esac
12601   else :
12602     # compilation failed
12603     lt_cv_dlopen_self_static=no
12604   fi
12605 fi
12606 rm -fr conftest*
12607
12608
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12611 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12612     fi
12613
12614     CPPFLAGS="$save_CPPFLAGS"
12615     LDFLAGS="$save_LDFLAGS"
12616     LIBS="$save_LIBS"
12617     ;;
12618   esac
12619
12620   case $lt_cv_dlopen_self in
12621   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12622   *) enable_dlopen_self=unknown ;;
12623   esac
12624
12625   case $lt_cv_dlopen_self_static in
12626   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12627   *) enable_dlopen_self_static=unknown ;;
12628   esac
12629 fi
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647 striplib=
12648 old_striplib=
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12650 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12651 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12652   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12653   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12655 $as_echo "yes" >&6; }
12656 else
12657 # FIXME - insert some real tests, host_os isn't really good enough
12658   case $host_os in
12659   darwin*)
12660     if test -n "$STRIP" ; then
12661       striplib="$STRIP -x"
12662       old_striplib="$STRIP -S"
12663       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12664 $as_echo "yes" >&6; }
12665     else
12666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12668     fi
12669     ;;
12670   *)
12671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672 $as_echo "no" >&6; }
12673     ;;
12674   esac
12675 fi
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688   # Report which library types will actually be built
12689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12690 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12692 $as_echo "$can_build_shared" >&6; }
12693
12694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12695 $as_echo_n "checking whether to build shared libraries... " >&6; }
12696   test "$can_build_shared" = "no" && enable_shared=no
12697
12698   # On AIX, shared libraries and static libraries use the same namespace, and
12699   # are all built from PIC.
12700   case $host_os in
12701   aix3*)
12702     test "$enable_shared" = yes && enable_static=no
12703     if test -n "$RANLIB"; then
12704       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12705       postinstall_cmds='$RANLIB $lib'
12706     fi
12707     ;;
12708
12709   aix[4-9]*)
12710     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12711       test "$enable_shared" = yes && enable_static=no
12712     fi
12713     ;;
12714   esac
12715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12716 $as_echo "$enable_shared" >&6; }
12717
12718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12719 $as_echo_n "checking whether to build static libraries... " >&6; }
12720   # Make sure either enable_shared or enable_static is yes.
12721   test "$enable_shared" = yes || enable_static=yes
12722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12723 $as_echo "$enable_static" >&6; }
12724
12725
12726
12727
12728 fi
12729 ac_ext=c
12730 ac_cpp='$CPP $CPPFLAGS'
12731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12734
12735 CC="$lt_save_CC"
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749         ac_config_commands="$ac_config_commands libtool"
12750
12751
12752
12753
12754 # Only expand once:
12755
12756
12757
12758 if test "$enable_shared" = "no"; then
12759     with_noexec=no
12760     enable_dlopen=no
12761     lt_cv_dlopen=none
12762     lt_cv_dlopen_libs=
12763 else
12764     eval _shrext="$shrext_cmds"
12765     # Darwin uses .dylib for libraries but .so for modules
12766     if test X"$_shrext" = X".dylib"; then
12767         SOEXT=".so"
12768     else
12769         SOEXT="$_shrext"
12770     fi
12771 fi
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
12773 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
12774
12775 # Check whether --with-noexec was given.
12776 if test "${with_noexec+set}" = set; then :
12777   withval=$with_noexec; case $with_noexec in
12778     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
12779                 ;;
12780     no)         ;;
12781     *)          ;;
12782 esac
12783 else
12784   with_noexec="$libexecdir/sudo_noexec$_shrext"
12785 fi
12786
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
12788 $as_echo "$with_noexec" >&6; }
12789 NOEXECFILE="sudo_noexec$_shrext"
12790 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
12791
12792 if test X"$with_devel" = X"yes" -a -n "$GCC"; then
12793     CFLAGS="${CFLAGS} -Wall"
12794 fi
12795
12796 # Extract the first word of "uname", so it can be a program name with args.
12797 set dummy uname; ac_word=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799 $as_echo_n "checking for $ac_word... " >&6; }
12800 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then :
12801   $as_echo_n "(cached) " >&6
12802 else
12803   if test -n "$UNAMEPROG"; then
12804   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
12805 else
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12808 do
12809   IFS=$as_save_IFS
12810   test -z "$as_dir" && as_dir=.
12811     for ac_exec_ext in '' $ac_executable_extensions; do
12812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12813     ac_cv_prog_UNAMEPROG="uname"
12814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815     break 2
12816   fi
12817 done
12818   done
12819 IFS=$as_save_IFS
12820
12821 fi
12822 fi
12823 UNAMEPROG=$ac_cv_prog_UNAMEPROG
12824 if test -n "$UNAMEPROG"; then
12825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
12826 $as_echo "$UNAMEPROG" >&6; }
12827 else
12828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12830 fi
12831
12832
12833 # Extract the first word of "tr", so it can be a program name with args.
12834 set dummy tr; ac_word=$2
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836 $as_echo_n "checking for $ac_word... " >&6; }
12837 if test "${ac_cv_prog_TRPROG+set}" = set; then :
12838   $as_echo_n "(cached) " >&6
12839 else
12840   if test -n "$TRPROG"; then
12841   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
12842 else
12843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844 for as_dir in $PATH
12845 do
12846   IFS=$as_save_IFS
12847   test -z "$as_dir" && as_dir=.
12848     for ac_exec_ext in '' $ac_executable_extensions; do
12849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12850     ac_cv_prog_TRPROG="tr"
12851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12852     break 2
12853   fi
12854 done
12855   done
12856 IFS=$as_save_IFS
12857
12858 fi
12859 fi
12860 TRPROG=$ac_cv_prog_TRPROG
12861 if test -n "$TRPROG"; then
12862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
12863 $as_echo "$TRPROG" >&6; }
12864 else
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868
12869
12870 for ac_prog in nroff mandoc
12871 do
12872   # Extract the first word of "$ac_prog", so it can be a program name with args.
12873 set dummy $ac_prog; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if test "${ac_cv_prog_NROFFPROG+set}" = set; then :
12877   $as_echo_n "(cached) " >&6
12878 else
12879   if test -n "$NROFFPROG"; then
12880   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
12881 else
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12884 do
12885   IFS=$as_save_IFS
12886   test -z "$as_dir" && as_dir=.
12887     for ac_exec_ext in '' $ac_executable_extensions; do
12888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12889     ac_cv_prog_NROFFPROG="$ac_prog"
12890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891     break 2
12892   fi
12893 done
12894   done
12895 IFS=$as_save_IFS
12896
12897 fi
12898 fi
12899 NROFFPROG=$ac_cv_prog_NROFFPROG
12900 if test -n "$NROFFPROG"; then
12901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
12902 $as_echo "$NROFFPROG" >&6; }
12903 else
12904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906 fi
12907
12908
12909   test -n "$NROFFPROG" && break
12910 done
12911
12912 if test -z "$NROFFPROG"; then
12913     MANTYPE="cat"
12914     mansrcdir='$(srcdir)'
12915 fi
12916
12917 if test -n "$sudo_cv_prev_host"; then
12918     if test "$sudo_cv_prev_host" != "$host"; then
12919         as_fn_error "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
12920     else
12921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
12922 $as_echo_n "checking previous host type... " >&6; }
12923         if test "${sudo_cv_prev_host+set}" = set; then :
12924   $as_echo_n "(cached) " >&6
12925 else
12926   sudo_cv_prev_host="$host"
12927 fi
12928
12929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
12930 $as_echo "$sudo_cv_prev_host" >&6; }
12931     fi
12932 else
12933     # this will produce no output since there is no cached value
12934     if test "${sudo_cv_prev_host+set}" = set; then :
12935   $as_echo_n "(cached) " >&6
12936 else
12937   sudo_cv_prev_host="$host"
12938 fi
12939
12940 fi
12941
12942 if test -n "$host_os"; then
12943     OS=`echo $host_os | sed 's/[0-9].*//'`
12944     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
12945     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
12946 else
12947     OS="unknown"
12948     OSREV=0
12949     OSMAJOR=0
12950 fi
12951
12952 case "$host" in
12953     *-*-sunos4*)
12954                 # getcwd(3) opens a pipe to getpwd(1)!?!
12955                 BROKEN_GETCWD=1
12956
12957                 # system headers lack prototypes but gcc helps...
12958                 if test -n "$GCC"; then
12959                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
12960                 fi
12961
12962                 shadow_funcs="getpwanam issecure"
12963                 ;;
12964     *-*-solaris2*)
12965                 # To get the crypt(3) prototype (so we pass -Wall)
12966                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
12967                 # AFS support needs -lucb
12968                 if test "$with_AFS" = "yes"; then
12969                     AFS_LIBS="-lc -lucb"
12970                 fi
12971                 : ${mansectsu='1m'}
12972                 : ${mansectform='4'}
12973                 : ${with_rpath='yes'}
12974                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12975                 for ac_func in priv_set
12976 do :
12977   ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
12978 if test "x$ac_cv_func_priv_set" = x""yes; then :
12979   cat >>confdefs.h <<_ACEOF
12980 #define HAVE_PRIV_SET 1
12981 _ACEOF
12982
12983 fi
12984 done
12985
12986                 ;;
12987     *-*-aix*)
12988                 # To get all prototypes (so we pass -Wall)
12989                 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
12990                 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
12991                 if test X"$with_blibpath" != X"no"; then
12992                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
12993 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
12994                     O_LDFLAGS="$LDFLAGS"
12995                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
12996                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h.  */
12998
12999 int
13000 main ()
13001 {
13002
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 if ac_fn_c_try_link "$LINENO"; then :
13008
13009                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13010                             blibpath="$with_blibpath"
13011                         elif test -n "$GCC"; then
13012                             blibpath="/usr/lib:/lib:/usr/local/lib"
13013                         else
13014                             blibpath="/usr/lib:/lib"
13015                         fi
13016                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13017 $as_echo "yes" >&6; }
13018
13019 else
13020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13022 fi
13023 rm -f core conftest.err conftest.$ac_objext \
13024     conftest$ac_exeext conftest.$ac_ext
13025                 fi
13026                 LDFLAGS="$O_LDFLAGS"
13027
13028                 # Use authenticate(3) as the default authentication method
13029                 if test X"$with_aixauth" = X""; then
13030                     for ac_func in authenticate
13031 do :
13032   ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13033 if test "x$ac_cv_func_authenticate" = x""yes; then :
13034   cat >>confdefs.h <<_ACEOF
13035 #define HAVE_AUTHENTICATE 1
13036 _ACEOF
13037  AUTH_EXCL_DEF="AIX_AUTH"
13038 fi
13039 done
13040
13041                 fi
13042
13043                 # AIX analog of nsswitch.conf, enabled by default
13044
13045 # Check whether --with-netsvc was given.
13046 if test "${with_netsvc+set}" = set; then :
13047   withval=$with_netsvc; case $with_netsvc in
13048                     no)         ;;
13049                     yes)        with_netsvc="/etc/netsvc.conf"
13050                                 ;;
13051                     *)          ;;
13052                 esac
13053 fi
13054
13055                 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
13056                     with_netsvc="/etc/netsvc.conf"
13057                 fi
13058
13059                 # AIX-specific functions
13060                 for ac_func in getuserattr setauthdb
13061 do :
13062   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13063 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13064 eval as_val=\$$as_ac_var
13065    if test "x$as_val" = x""yes; then :
13066   cat >>confdefs.h <<_ACEOF
13067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13068 _ACEOF
13069
13070 fi
13071 done
13072
13073                 COMMON_OBJS="$COMMON_OBJS aix.lo"
13074                 ;;
13075     *-*-hiuxmpp*)
13076                 : ${mansectsu='1m'}
13077                 : ${mansectform='4'}
13078                 ;;
13079     *-*-hpux*)
13080                 # AFS support needs -lBSD
13081                 if test "$with_AFS" = "yes"; then
13082                     AFS_LIBS="-lc -lBSD"
13083                 fi
13084                 : ${mansectsu='1m'}
13085                 : ${mansectform='4'}
13086
13087                 if test -z "$GCC"; then
13088                     # Use the +DAportable flag on hppa if it is supported
13089                     case "$host_cpu" in
13090                     hppa*)
13091                         _CFLAGS="$CFLAGS"
13092                         CFLAGS="$CFLAGS +DAportable"
13093                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands +DAportable" >&5
13094 $as_echo_n "checking whether $CC understands +DAportable... " >&6; }
13095 if test "${sudo_cv_var_daportable+set}" = set; then :
13096   $as_echo_n "(cached) " >&6
13097 else
13098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h.  */
13100
13101 int
13102 main ()
13103 {
13104
13105   ;
13106   return 0;
13107 }
13108 _ACEOF
13109 if ac_fn_c_try_link "$LINENO"; then :
13110   sudo_cv_var_daportable=yes
13111 else
13112   sudo_cv_var_daportable=no
13113
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext \
13116     conftest$ac_exeext conftest.$ac_ext
13117
13118
13119 fi
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
13121 $as_echo "$sudo_cv_var_daportable" >&6; }
13122                         if test X"$sudo_cv_var_daportable" != X"yes"; then
13123                             CFLAGS="$_CFLAGS"
13124                         fi
13125                         ;;
13126                     esac
13127                 fi
13128
13129                 case "$host" in
13130                         *-*-hpux1-8.*)
13131                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13132
13133                         ;;
13134                         *-*-hpux9.*)
13135                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13136
13137
13138                             shadow_funcs="getspwuid"
13139
13140                             # DCE support (requires ANSI C compiler)
13141                             if test "$with_DCE" = "yes"; then
13142                                 # order of libs in 9.X is important. -lc_r must be last
13143                                 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
13144                                 LIBS="${LIBS} -ldce -lM -lc_r"
13145                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
13146                             fi
13147                         ;;
13148                         *-*-hpux10.*)
13149                             shadow_funcs="getprpwnam iscomsec"
13150                             shadow_libs="-lsec"
13151                             # HP-UX 10.20 libc has an incompatible getline
13152                             ac_cv_func_getline="no"
13153                         ;;
13154                         *)
13155                             shadow_funcs="getspnam iscomsec"
13156                             shadow_libs="-lsec"
13157                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13158                         ;;
13159                 esac
13160                 ;;
13161     *-dec-osf*)
13162                 # ignore envariables wrt dynamic lib path
13163                 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
13164
13165                 : ${CHECKSIA='true'}
13166                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
13167 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
13168                 # Check whether --enable-sia was given.
13169 if test "${enable_sia+set}" = set; then :
13170   enableval=$enable_sia;  case "$enableval" in
13171                     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173                                 CHECKSIA=true
13174                                 ;;
13175                     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13176 $as_echo "yes" >&6; }
13177                                 CHECKSIA=false
13178                                 ;;
13179                     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13181                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
13182 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
13183                                 ;;
13184                   esac
13185
13186 else
13187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13189 fi
13190
13191
13192                 shadow_funcs="getprpwnam dispcrypt"
13193                 # OSF/1 4.x and higher need -ldb too
13194                 if test $OSMAJOR -lt 4; then
13195                     shadow_libs="-lsecurity -laud -lm"
13196                 else
13197                     shadow_libs="-lsecurity -ldb -laud -lm"
13198                 fi
13199
13200                 # use SIA by default, if we have it
13201                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
13202
13203                 #
13204                 # Some versions of Digital Unix ship with a broken
13205                 # copy of prot.h, which we need for shadow passwords.
13206                 # XXX - make should remove this as part of distclean
13207                 #
13208                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
13209 $as_echo_n "checking for broken prot.h... " >&6; }
13210                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h.  */
13212
13213 #include <sys/types.h>
13214 #include <sys/security.h>
13215 #include <prot.h>
13216
13217 int
13218 main ()
13219 {
13220 exit(0);
13221   ;
13222   return 0;
13223 }
13224 _ACEOF
13225 if ac_fn_c_try_compile "$LINENO"; then :
13226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13228 else
13229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
13230 $as_echo "yes, fixing locally" >&6; }
13231                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
13232
13233 fi
13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235                 : ${mansectsu='8'}
13236                 : ${mansectform='4'}
13237                 ;;
13238     *-*-irix*)
13239                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
13240                 if test -z "$NROFFPROG"; then
13241                     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)'
13242                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13243                         if test -d /usr/share/catman/local; then
13244                             mandir="/usr/share/catman/local"
13245                         else
13246                             mandir="/usr/catman/local"
13247                         fi
13248                     fi
13249                 else
13250                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13251                         if test -d "/usr/share/man/local"; then
13252                             mandir="/usr/share/man/local"
13253                         else
13254                             mandir="/usr/man/local"
13255                         fi
13256                     fi
13257                 fi
13258                 # IRIX <= 4 needs -lsun
13259                 if test "$OSMAJOR" -le 4; then
13260                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
13261 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
13262 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
13263   $as_echo_n "(cached) " >&6
13264 else
13265   ac_check_lib_save_LIBS=$LIBS
13266 LIBS="-lsun  $LIBS"
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h.  */
13269
13270 /* Override any GCC internal prototype to avoid an error.
13271    Use char because int might match the return type of a GCC
13272    builtin and then its argument prototype would still apply.  */
13273 #ifdef __cplusplus
13274 extern "C"
13275 #endif
13276 char getpwnam ();
13277 int
13278 main ()
13279 {
13280 return getpwnam ();
13281   ;
13282   return 0;
13283 }
13284 _ACEOF
13285 if ac_fn_c_try_link "$LINENO"; then :
13286   ac_cv_lib_sun_getpwnam=yes
13287 else
13288   ac_cv_lib_sun_getpwnam=no
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext \
13291     conftest$ac_exeext conftest.$ac_ext
13292 LIBS=$ac_check_lib_save_LIBS
13293 fi
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
13295 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
13296 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
13297   LIBS="${LIBS} -lsun"
13298 fi
13299
13300                 fi
13301                 : ${mansectsu='1m'}
13302                 : ${mansectform='4'}
13303                 ;;
13304     *-*-linux*|*-*-k*bsd*-gnu)
13305                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13306                 # Some Linux versions need to link with -lshadow
13307                 shadow_funcs="getspnam"
13308                 shadow_libs_optional="-lshadow"
13309                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13310                 ;;
13311     *-convex-bsd*)
13312                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
13313                 if test -z "$GCC"; then
13314                     CFLAGS="${CFLAGS} -D__STDC__"
13315                 fi
13316
13317                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
13318                 shadow_funcs="getprpwnam"
13319                 shadow_libs="-lprot"
13320                 ;;
13321     *-*-ultrix*)
13322                 OS="ultrix"
13323                 shadow_funcs="getauthuid"
13324                 shadow_libs="-lauth"
13325                 ;;
13326     *-*-riscos*)
13327                 LIBS="${LIBS} -lsun -lbsd"
13328                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
13329                 OSDEFS="${OSDEFS} -D_MIPS"
13330                 : ${mansectsu='1m'}
13331                 : ${mansectform='4'}
13332                 ;;
13333     *-*-isc*)
13334                 OSDEFS="${OSDEFS} -D_ISC"
13335                 LIB_CRYPT=1
13336                 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
13337
13338                 shadow_funcs="getspnam"
13339                 shadow_libs="-lsec"
13340
13341                 : ${mansectsu='1m'}
13342                 : ${mansectform='4'}
13343                 ;;
13344     *-*-sco*|*-sco-*)
13345                 shadow_funcs="getprpwnam"
13346                 shadow_libs="-lprot -lx"
13347                 : ${mansectsu='1m'}
13348                 : ${mansectform='4'}
13349                 ;;
13350     m88k-motorola-sysv*)
13351                 # motorolla's cc (a variant of gcc) does -O but not -O2
13352                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
13353                 : ${mansectsu='1m'}
13354                 : ${mansectform='4'}
13355                 ;;
13356     *-sequent-sysv*)
13357                 shadow_funcs="getspnam"
13358                 shadow_libs="-lsec"
13359                 : ${mansectsu='1m'}
13360                 : ${mansectform='4'}
13361                 : ${with_rpath='yes'}
13362                 ;;
13363     *-ncr-sysv4*|*-ncr-sysvr4*)
13364                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
13365 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
13366 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then :
13367   $as_echo_n "(cached) " >&6
13368 else
13369   ac_check_lib_save_LIBS=$LIBS
13370 LIBS="-lc89  $LIBS"
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h.  */
13373
13374 /* Override any GCC internal prototype to avoid an error.
13375    Use char because int might match the return type of a GCC
13376    builtin and then its argument prototype would still apply.  */
13377 #ifdef __cplusplus
13378 extern "C"
13379 #endif
13380 char strcasecmp ();
13381 int
13382 main ()
13383 {
13384 return strcasecmp ();
13385   ;
13386   return 0;
13387 }
13388 _ACEOF
13389 if ac_fn_c_try_link "$LINENO"; then :
13390   ac_cv_lib_c89_strcasecmp=yes
13391 else
13392   ac_cv_lib_c89_strcasecmp=no
13393 fi
13394 rm -f core conftest.err conftest.$ac_objext \
13395     conftest$ac_exeext conftest.$ac_ext
13396 LIBS=$ac_check_lib_save_LIBS
13397 fi
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
13399 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
13400 if test "x$ac_cv_lib_c89_strcasecmp" = x""yes; then :
13401   LIBS="${LIBS} -lc89"
13402 fi
13403
13404                 : ${mansectsu='1m'}
13405                 : ${mansectform='4'}
13406                 : ${with_rpath='yes'}
13407                 ;;
13408     *-ccur-sysv4*|*-ccur-sysvr4*)
13409                 LIBS="${LIBS} -lgen"
13410                 : ${mansectsu='1m'}
13411                 : ${mansectform='4'}
13412                 : ${with_rpath='yes'}
13413                 ;;
13414     *-*-bsdi*)
13415                 SKIP_SETREUID=yes
13416                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
13417                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
13418                     case "$OSMAJOR" in
13419                         2|3)    { $as_echo "$as_me:${as_lineno-$LINENO}: using shlicc as CC" >&5
13420 $as_echo "$as_me: using shlicc as CC" >&6;}
13421                                 ac_cv_prog_CC=shlicc
13422                                 CC="$ac_cv_prog_CC"
13423                                 ;;
13424                     esac
13425                 fi
13426                 # Check for newer BSD auth API (just check for >= 3.0?)
13427                 if test -z "$with_bsdauth"; then
13428                     for ac_func in auth_challenge
13429 do :
13430   ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
13431 if test "x$ac_cv_func_auth_challenge" = x""yes; then :
13432   cat >>confdefs.h <<_ACEOF
13433 #define HAVE_AUTH_CHALLENGE 1
13434 _ACEOF
13435  AUTH_EXCL_DEF="BSD_AUTH"
13436 fi
13437 done
13438
13439                 fi
13440                 ;;
13441     *-*-freebsd*)
13442                 # FreeBSD has a real setreuid(2) starting with 2.1 and
13443                 # backported to 2.0.5.  We just take 2.1 and above...
13444                 case "$OSREV" in
13445                 0.*|1.*|2.0*)
13446                     SKIP_SETREUID=yes
13447                     ;;
13448                 esac
13449                 if test "${with_skey-'no'}" = "yes"; then
13450                      SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
13451                 fi
13452                 CHECKSHADOW="false"
13453                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13454                 : ${with_logincap='maybe'}
13455                 ;;
13456     *-*-*openbsd*)
13457                 # OpenBSD has a real setreuid(2) starting with 3.3 but
13458                 # we will use setreuid(2) instead.
13459                 SKIP_SETREUID=yes
13460                 CHECKSHADOW="false"
13461                 # OpenBSD >= 3.0 supports BSD auth
13462                 if test -z "$with_bsdauth"; then
13463                     case "$OSREV" in
13464                     0-2.*)
13465                         ;;
13466                     *)
13467                         AUTH_EXCL_DEF="BSD_AUTH"
13468                         ;;
13469                     esac
13470                 fi
13471                 : ${with_logincap='maybe'}
13472                 ;;
13473     *-*-*netbsd*)
13474                 # NetBSD has a real setreuid(2) starting with 1.3.2
13475                 case "$OSREV" in
13476                 0.9*|1.012*|1.3|1.3.1)
13477                     SKIP_SETREUID=yes
13478                     ;;
13479                 esac
13480                 CHECKSHADOW="false"
13481                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13482                 : ${with_logincap='maybe'}
13483                 ;;
13484     *-*-dragonfly*)
13485                 if test "${with_skey-'no'}" = "yes"; then
13486                      SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
13487                 fi
13488                 CHECKSHADOW="false"
13489                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13490                 : ${with_logincap='yes'}
13491                 ;;
13492     *-*-*bsd*)
13493                 CHECKSHADOW="false"
13494                 ;;
13495     *-*-darwin*)
13496                 # Darwin has a real setreuid(2) starting with 9.0
13497                 if test $OSMAJOR -lt 9; then
13498                     SKIP_SETREUID=yes
13499                 fi
13500                 CHECKSHADOW="false"
13501                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13502                 : ${with_logincap='yes'}
13503                 ;;
13504     *-*-nextstep*)
13505                 # lockf() on is broken on the NeXT -- use flock instead
13506                 ac_cv_func_lockf=no
13507                 ac_cv_func_flock=yes
13508                 ;;
13509     *-*-*sysv4*)
13510                 : ${mansectsu='1m'}
13511                 : ${mansectform='4'}
13512                 : ${with_rpath='yes'}
13513                 ;;
13514     *-*-sysv*)
13515                 : ${mansectsu='1m'}
13516                 : ${mansectform='4'}
13517                 ;;
13518     *-gnu*)
13519                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13520                 ;;
13521 esac
13522
13523 AUTH_REG=${AUTH_REG# }
13524 AUTH_EXCL=${AUTH_EXCL# }
13525 if test -n "$AUTH_EXCL"; then
13526     set -- $AUTH_EXCL
13527     if test $# != 1; then
13528         as_fn_error "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
13529     fi
13530     if test -n "$AUTH_REG"; then
13531         as_fn_error "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
13532     fi
13533 fi
13534 if test X"${with_skey}${with_opie}" = X"yesyes"; then
13535     as_fn_error "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
13536 fi
13537
13538 : ${mansectsu='8'}
13539 : ${mansectform='5'}
13540
13541 if test -n "$with_libpath"; then
13542     for i in ${with_libpath}; do
13543
13544     if test X"$with_rpath" = X"yes"; then
13545         case "$host" in
13546             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
13547                         ;;
13548             *)          LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
13549                         ;;
13550         esac
13551     else
13552         LDFLAGS="${LDFLAGS} -L$i"
13553     fi
13554     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13555         blibpath_add="${blibpath_add}:$i"
13556     fi
13557
13558     done
13559 fi
13560 if test -n "$with_libraries"; then
13561     for i in ${with_libraries}; do
13562         case $i in
13563             -l*)        ;;
13564             *.a)        ;;
13565             *.o)        ;;
13566             *)  i="-l${i}";;
13567         esac
13568         LIBS="${LIBS} ${i}"
13569     done
13570 fi
13571
13572 if test $ac_cv_c_compiler_gnu = yes; then
13573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13574 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13575 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
13576   $as_echo_n "(cached) " >&6
13577 else
13578     ac_pattern="Autoconf.*'x'"
13579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h.  */
13581 #include <sgtty.h>
13582 Autoconf TIOCGETP
13583 _ACEOF
13584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13585   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13586   ac_cv_prog_gcc_traditional=yes
13587 else
13588   ac_cv_prog_gcc_traditional=no
13589 fi
13590 rm -f conftest*
13591
13592
13593   if test $ac_cv_prog_gcc_traditional = no; then
13594     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h.  */
13596 #include <termio.h>
13597 Autoconf TCGETA
13598 _ACEOF
13599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13600   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13601   ac_cv_prog_gcc_traditional=yes
13602 fi
13603 rm -f conftest*
13604
13605   fi
13606 fi
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13608 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13609   if test $ac_cv_prog_gcc_traditional = yes; then
13610     CC="$CC -traditional"
13611   fi
13612 fi
13613
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13615 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13616 if test "${ac_cv_c_const+set}" = set; then :
13617   $as_echo_n "(cached) " >&6
13618 else
13619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h.  */
13621
13622 int
13623 main ()
13624 {
13625 /* FIXME: Include the comments suggested by Paul. */
13626 #ifndef __cplusplus
13627   /* Ultrix mips cc rejects this.  */
13628   typedef int charset[2];
13629   const charset cs;
13630   /* SunOS 4.1.1 cc rejects this.  */
13631   char const *const *pcpcc;
13632   char **ppc;
13633   /* NEC SVR4.0.2 mips cc rejects this.  */
13634   struct point {int x, y;};
13635   static struct point const zero = {0,0};
13636   /* AIX XL C 1.02.0.0 rejects this.
13637      It does not let you subtract one const X* pointer from another in
13638      an arm of an if-expression whose if-part is not a constant
13639      expression */
13640   const char *g = "string";
13641   pcpcc = &g + (g ? g-g : 0);
13642   /* HPUX 7.0 cc rejects these. */
13643   ++pcpcc;
13644   ppc = (char**) pcpcc;
13645   pcpcc = (char const *const *) ppc;
13646   { /* SCO 3.2v4 cc rejects this.  */
13647     char *t;
13648     char const *s = 0 ? (char *) 0 : (char const *) 0;
13649
13650     *t++ = 0;
13651     if (s) return 0;
13652   }
13653   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13654     int x[] = {25, 17};
13655     const int *foo = &x[0];
13656     ++foo;
13657   }
13658   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13659     typedef const int *iptr;
13660     iptr p = 0;
13661     ++p;
13662   }
13663   { /* AIX XL C 1.02.0.0 rejects this saying
13664        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13665     struct s { int j; const int *ap[3]; };
13666     struct s *b; b->j = 5;
13667   }
13668   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13669     const int foo = 10;
13670     if (!foo) return 0;
13671   }
13672   return !cs[0] && !zero.x;
13673 #endif
13674
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 if ac_fn_c_try_compile "$LINENO"; then :
13680   ac_cv_c_const=yes
13681 else
13682   ac_cv_c_const=no
13683 fi
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 fi
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13687 $as_echo "$ac_cv_c_const" >&6; }
13688 if test $ac_cv_c_const = no; then
13689
13690 $as_echo "#define const /**/" >>confdefs.h
13691
13692 fi
13693
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13695 $as_echo_n "checking for working volatile... " >&6; }
13696 if test "${ac_cv_c_volatile+set}" = set; then :
13697   $as_echo_n "(cached) " >&6
13698 else
13699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h.  */
13701
13702 int
13703 main ()
13704 {
13705
13706 volatile int x;
13707 int * volatile y = (int *) 0;
13708 return !x && !y;
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_compile "$LINENO"; then :
13714   ac_cv_c_volatile=yes
13715 else
13716   ac_cv_c_volatile=no
13717 fi
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13719 fi
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13721 $as_echo "$ac_cv_c_volatile" >&6; }
13722 if test $ac_cv_c_volatile = no; then
13723
13724 $as_echo "#define volatile /**/" >>confdefs.h
13725
13726 fi
13727
13728 if test X"$with_gnu_ld" != "yes" -a -n "$GCC"; then
13729     LTLDFLAGS="$LTLDFLAGS -Wc,-static-libgcc"
13730 fi
13731 for ac_prog in 'bison -y' byacc
13732 do
13733   # Extract the first word of "$ac_prog", so it can be a program name with args.
13734 set dummy $ac_prog; ac_word=$2
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736 $as_echo_n "checking for $ac_word... " >&6; }
13737 if test "${ac_cv_prog_YACC+set}" = set; then :
13738   $as_echo_n "(cached) " >&6
13739 else
13740   if test -n "$YACC"; then
13741   ac_cv_prog_YACC="$YACC" # Let the user override the test.
13742 else
13743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744 for as_dir in $PATH
13745 do
13746   IFS=$as_save_IFS
13747   test -z "$as_dir" && as_dir=.
13748     for ac_exec_ext in '' $ac_executable_extensions; do
13749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13750     ac_cv_prog_YACC="$ac_prog"
13751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13752     break 2
13753   fi
13754 done
13755   done
13756 IFS=$as_save_IFS
13757
13758 fi
13759 fi
13760 YACC=$ac_cv_prog_YACC
13761 if test -n "$YACC"; then
13762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13763 $as_echo "$YACC" >&6; }
13764 else
13765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 $as_echo "no" >&6; }
13767 fi
13768
13769
13770   test -n "$YACC" && break
13771 done
13772 test -n "$YACC" || YACC="yacc"
13773
13774 # Extract the first word of "flex", so it can be a program name with args.
13775 set dummy flex; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if test "${ac_cv_path_FLEX+set}" = set; then :
13779   $as_echo_n "(cached) " >&6
13780 else
13781   case $FLEX in
13782   [\\/]* | ?:[\\/]*)
13783   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13784   ;;
13785   *)
13786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $PATH
13788 do
13789   IFS=$as_save_IFS
13790   test -z "$as_dir" && as_dir=.
13791     for ac_exec_ext in '' $ac_executable_extensions; do
13792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13793     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13795     break 2
13796   fi
13797 done
13798   done
13799 IFS=$as_save_IFS
13800
13801   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13802   ;;
13803 esac
13804 fi
13805 FLEX=$ac_cv_path_FLEX
13806 if test -n "$FLEX"; then
13807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
13808 $as_echo "$FLEX" >&6; }
13809 else
13810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13812 fi
13813
13814
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
13816 $as_echo_n "checking for mv... " >&6; }
13817 found=no
13818 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
13819     if test -f "$p"; then
13820         found=yes
13821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13822 $as_echo "$p" >&6; }
13823         cat >>confdefs.h <<EOF
13824 #define _PATH_MV "$p"
13825 EOF
13826
13827         break
13828     fi
13829 done
13830 if test X"$found" != X"yes"; then
13831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13832 $as_echo "not found" >&6; }
13833 fi
13834
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
13836 $as_echo_n "checking for bourne shell... " >&6; }
13837 found=no
13838 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
13839     if test -f "$p"; then
13840         found=yes
13841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13842 $as_echo "$p" >&6; }
13843         cat >>confdefs.h <<EOF
13844 #define _PATH_BSHELL "$p"
13845 EOF
13846
13847         break
13848     fi
13849 done
13850 if test X"$found" != X"yes"; then
13851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13852 $as_echo "not found" >&6; }
13853 fi
13854
13855 if test -z "$with_sendmail"; then
13856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
13857 $as_echo_n "checking for sendmail... " >&6; }
13858 found=no
13859 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
13860     if test -f "$p"; then
13861         found=yes
13862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13863 $as_echo "$p" >&6; }
13864         cat >>confdefs.h <<EOF
13865 #define _PATH_SUDO_SENDMAIL "$p"
13866 EOF
13867
13868         break
13869     fi
13870 done
13871 if test X"$found" != X"yes"; then
13872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13873 $as_echo "not found" >&6; }
13874 fi
13875
13876 fi
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
13878 $as_echo_n "checking for vi... " >&6; }
13879 found=no
13880 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
13881     if test -f "$editor"; then
13882         found=yes
13883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
13884 $as_echo "$editor" >&6; }
13885         cat >>confdefs.h <<EOF
13886 #define _PATH_VI "$editor"
13887 EOF
13888
13889         break
13890     fi
13891 done
13892 if test X"$found" != X"yes"; then
13893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13894 $as_echo "not found" >&6; }
13895 fi
13896
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
13898 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
13899 if test X"$with_logfac" = X""; then
13900     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h.  */
13902 #include <syslog.h>
13903 int
13904 main ()
13905 {
13906 int i = LOG_AUTHPRIV; (void)i;
13907   ;
13908   return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_compile "$LINENO"; then :
13912   logfac=authpriv
13913 fi
13914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915 fi
13916
13917 cat >>confdefs.h <<_ACEOF
13918 #define LOGFAC "$logfac"
13919 _ACEOF
13920
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
13922 $as_echo "$logfac" >&6; }
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13924 $as_echo_n "checking for ANSI C header files... " >&6; }
13925 if test "${ac_cv_header_stdc+set}" = set; then :
13926   $as_echo_n "(cached) " >&6
13927 else
13928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h.  */
13930 #include <stdlib.h>
13931 #include <stdarg.h>
13932 #include <string.h>
13933 #include <float.h>
13934
13935 int
13936 main ()
13937 {
13938
13939   ;
13940   return 0;
13941 }
13942 _ACEOF
13943 if ac_fn_c_try_compile "$LINENO"; then :
13944   ac_cv_header_stdc=yes
13945 else
13946   ac_cv_header_stdc=no
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949
13950 if test $ac_cv_header_stdc = yes; then
13951   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h.  */
13954 #include <string.h>
13955
13956 _ACEOF
13957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13958   $EGREP "memchr" >/dev/null 2>&1; then :
13959
13960 else
13961   ac_cv_header_stdc=no
13962 fi
13963 rm -f conftest*
13964
13965 fi
13966
13967 if test $ac_cv_header_stdc = yes; then
13968   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h.  */
13971 #include <stdlib.h>
13972
13973 _ACEOF
13974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13975   $EGREP "free" >/dev/null 2>&1; then :
13976
13977 else
13978   ac_cv_header_stdc=no
13979 fi
13980 rm -f conftest*
13981
13982 fi
13983
13984 if test $ac_cv_header_stdc = yes; then
13985   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13986   if test "$cross_compiling" = yes; then :
13987   :
13988 else
13989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h.  */
13991 #include <ctype.h>
13992 #include <stdlib.h>
13993 #if ((' ' & 0x0FF) == 0x020)
13994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13996 #else
13997 # define ISLOWER(c) \
13998                    (('a' <= (c) && (c) <= 'i') \
13999                      || ('j' <= (c) && (c) <= 'r') \
14000                      || ('s' <= (c) && (c) <= 'z'))
14001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14002 #endif
14003
14004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14005 int
14006 main ()
14007 {
14008   int i;
14009   for (i = 0; i < 256; i++)
14010     if (XOR (islower (i), ISLOWER (i))
14011         || toupper (i) != TOUPPER (i))
14012       return 2;
14013   return 0;
14014 }
14015 _ACEOF
14016 if ac_fn_c_try_run "$LINENO"; then :
14017
14018 else
14019   ac_cv_header_stdc=no
14020 fi
14021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14022   conftest.$ac_objext conftest.beam conftest.$ac_ext
14023 fi
14024
14025 fi
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14028 $as_echo "$ac_cv_header_stdc" >&6; }
14029 if test $ac_cv_header_stdc = yes; then
14030
14031 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14032
14033 fi
14034
14035 ac_header_dirent=no
14036 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14037   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14039 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
14041   $as_echo_n "(cached) " >&6
14042 else
14043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h.  */
14045 #include <sys/types.h>
14046 #include <$ac_hdr>
14047
14048 int
14049 main ()
14050 {
14051 if ((DIR *) 0)
14052 return 0;
14053   ;
14054   return 0;
14055 }
14056 _ACEOF
14057 if ac_fn_c_try_compile "$LINENO"; then :
14058   eval "$as_ac_Header=yes"
14059 else
14060   eval "$as_ac_Header=no"
14061 fi
14062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14063 fi
14064 eval ac_res=\$$as_ac_Header
14065                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14066 $as_echo "$ac_res" >&6; }
14067 eval as_val=\$$as_ac_Header
14068    if test "x$as_val" = x""yes; then :
14069   cat >>confdefs.h <<_ACEOF
14070 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14071 _ACEOF
14072
14073 ac_header_dirent=$ac_hdr; break
14074 fi
14075
14076 done
14077 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14078 if test $ac_header_dirent = dirent.h; then
14079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14080 $as_echo_n "checking for library containing opendir... " >&6; }
14081 if test "${ac_cv_search_opendir+set}" = set; then :
14082   $as_echo_n "(cached) " >&6
14083 else
14084   ac_func_search_save_LIBS=$LIBS
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h.  */
14087
14088 /* Override any GCC internal prototype to avoid an error.
14089    Use char because int might match the return type of a GCC
14090    builtin and then its argument prototype would still apply.  */
14091 #ifdef __cplusplus
14092 extern "C"
14093 #endif
14094 char opendir ();
14095 int
14096 main ()
14097 {
14098 return opendir ();
14099   ;
14100   return 0;
14101 }
14102 _ACEOF
14103 for ac_lib in '' dir; do
14104   if test -z "$ac_lib"; then
14105     ac_res="none required"
14106   else
14107     ac_res=-l$ac_lib
14108     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14109   fi
14110   if ac_fn_c_try_link "$LINENO"; then :
14111   ac_cv_search_opendir=$ac_res
14112 fi
14113 rm -f core conftest.err conftest.$ac_objext \
14114     conftest$ac_exeext
14115   if test "${ac_cv_search_opendir+set}" = set; then :
14116   break
14117 fi
14118 done
14119 if test "${ac_cv_search_opendir+set}" = set; then :
14120
14121 else
14122   ac_cv_search_opendir=no
14123 fi
14124 rm conftest.$ac_ext
14125 LIBS=$ac_func_search_save_LIBS
14126 fi
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14128 $as_echo "$ac_cv_search_opendir" >&6; }
14129 ac_res=$ac_cv_search_opendir
14130 if test "$ac_res" != no; then :
14131   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14132
14133 fi
14134
14135 else
14136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14137 $as_echo_n "checking for library containing opendir... " >&6; }
14138 if test "${ac_cv_search_opendir+set}" = set; then :
14139   $as_echo_n "(cached) " >&6
14140 else
14141   ac_func_search_save_LIBS=$LIBS
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h.  */
14144
14145 /* Override any GCC internal prototype to avoid an error.
14146    Use char because int might match the return type of a GCC
14147    builtin and then its argument prototype would still apply.  */
14148 #ifdef __cplusplus
14149 extern "C"
14150 #endif
14151 char opendir ();
14152 int
14153 main ()
14154 {
14155 return opendir ();
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 for ac_lib in '' x; do
14161   if test -z "$ac_lib"; then
14162     ac_res="none required"
14163   else
14164     ac_res=-l$ac_lib
14165     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14166   fi
14167   if ac_fn_c_try_link "$LINENO"; then :
14168   ac_cv_search_opendir=$ac_res
14169 fi
14170 rm -f core conftest.err conftest.$ac_objext \
14171     conftest$ac_exeext
14172   if test "${ac_cv_search_opendir+set}" = set; then :
14173   break
14174 fi
14175 done
14176 if test "${ac_cv_search_opendir+set}" = set; then :
14177
14178 else
14179   ac_cv_search_opendir=no
14180 fi
14181 rm conftest.$ac_ext
14182 LIBS=$ac_func_search_save_LIBS
14183 fi
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14185 $as_echo "$ac_cv_search_opendir" >&6; }
14186 ac_res=$ac_cv_search_opendir
14187 if test "$ac_res" != no; then :
14188   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14189
14190 fi
14191
14192 fi
14193
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14195 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14196 if test "${ac_cv_header_time+set}" = set; then :
14197   $as_echo_n "(cached) " >&6
14198 else
14199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h.  */
14201 #include <sys/types.h>
14202 #include <sys/time.h>
14203 #include <time.h>
14204
14205 int
14206 main ()
14207 {
14208 if ((struct tm *) 0)
14209 return 0;
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 if ac_fn_c_try_compile "$LINENO"; then :
14215   ac_cv_header_time=yes
14216 else
14217   ac_cv_header_time=no
14218 fi
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 fi
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14222 $as_echo "$ac_cv_header_time" >&6; }
14223 if test $ac_cv_header_time = yes; then
14224
14225 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14226
14227 fi
14228
14229 for ac_header in malloc.h paths.h utime.h netgroup.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
14230 do :
14231   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14232 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14233 eval as_val=\$$as_ac_Header
14234    if test "x$as_val" = x""yes; then :
14235   cat >>confdefs.h <<_ACEOF
14236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14237 _ACEOF
14238
14239 fi
14240
14241 done
14242
14243 # Check whether --enable-largefile was given.
14244 if test "${enable_largefile+set}" = set; then :
14245   enableval=$enable_largefile;
14246 fi
14247
14248 if test "$enable_largefile" != no; then
14249
14250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14251 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14252 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
14253   $as_echo_n "(cached) " >&6
14254 else
14255   ac_cv_sys_largefile_CC=no
14256      if test "$GCC" != yes; then
14257        ac_save_CC=$CC
14258        while :; do
14259          # IRIX 6.2 and later do not support large files by default,
14260          # so use the C compiler's -n32 option if that helps.
14261          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h.  */
14263 #include <sys/types.h>
14264  /* Check that off_t can represent 2**63 - 1 correctly.
14265     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14266     since some C++ compilers masquerading as C compilers
14267     incorrectly reject 9223372036854775807.  */
14268 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14269   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14270                        && LARGE_OFF_T % 2147483647 == 1)
14271                       ? 1 : -1];
14272 int
14273 main ()
14274 {
14275
14276   ;
14277   return 0;
14278 }
14279 _ACEOF
14280          if ac_fn_c_try_compile "$LINENO"; then :
14281   break
14282 fi
14283 rm -f core conftest.err conftest.$ac_objext
14284          CC="$CC -n32"
14285          if ac_fn_c_try_compile "$LINENO"; then :
14286   ac_cv_sys_largefile_CC=' -n32'; break
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext
14289          break
14290        done
14291        CC=$ac_save_CC
14292        rm -f conftest.$ac_ext
14293     fi
14294 fi
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14296 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14297   if test "$ac_cv_sys_largefile_CC" != no; then
14298     CC=$CC$ac_cv_sys_largefile_CC
14299   fi
14300
14301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14302 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14303 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
14304   $as_echo_n "(cached) " >&6
14305 else
14306   while :; do
14307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h.  */
14309 #include <sys/types.h>
14310  /* Check that off_t can represent 2**63 - 1 correctly.
14311     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14312     since some C++ compilers masquerading as C compilers
14313     incorrectly reject 9223372036854775807.  */
14314 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14315   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14316                        && LARGE_OFF_T % 2147483647 == 1)
14317                       ? 1 : -1];
14318 int
14319 main ()
14320 {
14321
14322   ;
14323   return 0;
14324 }
14325 _ACEOF
14326 if ac_fn_c_try_compile "$LINENO"; then :
14327   ac_cv_sys_file_offset_bits=no; break
14328 fi
14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h.  */
14332 #define _FILE_OFFSET_BITS 64
14333 #include <sys/types.h>
14334  /* Check that off_t can represent 2**63 - 1 correctly.
14335     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14336     since some C++ compilers masquerading as C compilers
14337     incorrectly reject 9223372036854775807.  */
14338 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14339   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14340                        && LARGE_OFF_T % 2147483647 == 1)
14341                       ? 1 : -1];
14342 int
14343 main ()
14344 {
14345
14346   ;
14347   return 0;
14348 }
14349 _ACEOF
14350 if ac_fn_c_try_compile "$LINENO"; then :
14351   ac_cv_sys_file_offset_bits=64; break
14352 fi
14353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14354   ac_cv_sys_file_offset_bits=unknown
14355   break
14356 done
14357 fi
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14359 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14360 case $ac_cv_sys_file_offset_bits in #(
14361   no | unknown) ;;
14362   *)
14363 cat >>confdefs.h <<_ACEOF
14364 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14365 _ACEOF
14366 ;;
14367 esac
14368 rm -rf conftest*
14369   if test $ac_cv_sys_file_offset_bits = unknown; then
14370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14371 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14372 if test "${ac_cv_sys_large_files+set}" = set; then :
14373   $as_echo_n "(cached) " >&6
14374 else
14375   while :; do
14376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h.  */
14378 #include <sys/types.h>
14379  /* Check that off_t can represent 2**63 - 1 correctly.
14380     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14381     since some C++ compilers masquerading as C compilers
14382     incorrectly reject 9223372036854775807.  */
14383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14384   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14385                        && LARGE_OFF_T % 2147483647 == 1)
14386                       ? 1 : -1];
14387 int
14388 main ()
14389 {
14390
14391   ;
14392   return 0;
14393 }
14394 _ACEOF
14395 if ac_fn_c_try_compile "$LINENO"; then :
14396   ac_cv_sys_large_files=no; break
14397 fi
14398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h.  */
14401 #define _LARGE_FILES 1
14402 #include <sys/types.h>
14403  /* Check that off_t can represent 2**63 - 1 correctly.
14404     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14405     since some C++ compilers masquerading as C compilers
14406     incorrectly reject 9223372036854775807.  */
14407 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14408   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14409                        && LARGE_OFF_T % 2147483647 == 1)
14410                       ? 1 : -1];
14411 int
14412 main ()
14413 {
14414
14415   ;
14416   return 0;
14417 }
14418 _ACEOF
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420   ac_cv_sys_large_files=1; break
14421 fi
14422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423   ac_cv_sys_large_files=unknown
14424   break
14425 done
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14428 $as_echo "$ac_cv_sys_large_files" >&6; }
14429 case $ac_cv_sys_large_files in #(
14430   no | unknown) ;;
14431   *)
14432 cat >>confdefs.h <<_ACEOF
14433 #define _LARGE_FILES $ac_cv_sys_large_files
14434 _ACEOF
14435 ;;
14436 esac
14437 rm -rf conftest*
14438   fi
14439 fi
14440
14441 case "$host" in
14442     *-*-hpux11.*)
14443         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
14444 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
14445 if test "${sudo_cv_xopen_source_extended+set}" = set; then :
14446   $as_echo_n "(cached) " >&6
14447 else
14448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h.  */
14450 $ac_includes_default
14451         #include <sys/socket.h>
14452 int
14453 main ()
14454 {
14455
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 if ac_fn_c_try_compile "$LINENO"; then :
14461   sudo_cv_xopen_source_extended=no
14462 else
14463
14464             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h.  */
14466 #define _XOPEN_SOURCE_EXTENDED
14467             $ac_includes_default
14468             #include <sys/socket.h>
14469 int
14470 main ()
14471 {
14472
14473   ;
14474   return 0;
14475 }
14476 _ACEOF
14477 if ac_fn_c_try_compile "$LINENO"; then :
14478   sudo_cv_xopen_source_extended=yes
14479 else
14480   sudo_cv_xopen_source_extended=error
14481 fi
14482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14483
14484 fi
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 fi
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
14488 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
14489         if test "$sudo_cv_xopen_source_extended" = "yes"; then
14490             OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
14491             cat >>confdefs.h <<\EOF
14492 #define _XOPEN_SOURCE_EXTENDED 1
14493 EOF
14494
14495         fi
14496         ;;
14497 esac
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
14499 $as_echo_n "checking POSIX termios... " >&6; }
14500 if test "${ac_cv_sys_posix_termios+set}" = set; then :
14501   $as_echo_n "(cached) " >&6
14502 else
14503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504 /* end confdefs.h.  */
14505 #include <sys/types.h>
14506 #include <unistd.h>
14507 #include <termios.h>
14508
14509 int
14510 main ()
14511 {
14512 /* SunOS 4.0.3 has termios.h but not the library calls.  */
14513    tcgetattr(0, 0);
14514   ;
14515   return 0;
14516 }
14517 _ACEOF
14518 if ac_fn_c_try_link "$LINENO"; then :
14519   ac_cv_sys_posix_termios=yes
14520 else
14521   ac_cv_sys_posix_termios=no
14522 fi
14523 rm -f core conftest.err conftest.$ac_objext \
14524     conftest$ac_exeext conftest.$ac_ext
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
14527 $as_echo "$ac_cv_sys_posix_termios" >&6; }
14528
14529 if test "$ac_cv_sys_posix_termios" != "yes"; then
14530     as_fn_error "Must have POSIX termios to build sudo" "$LINENO" 5
14531 fi
14532
14533 maildir=no
14534 if test X"$ac_cv_header_paths_h" = X"yes"; then
14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h.  */
14537 $ac_includes_default
14538 #include <paths.h>
14539 int
14540 main ()
14541 {
14542 char *p = _PATH_MAILDIR;
14543   ;
14544   return 0;
14545 }
14546 _ACEOF
14547 if ac_fn_c_try_compile "$LINENO"; then :
14548   maildir=yes
14549 fi
14550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14551 fi
14552 if test $maildir = no; then
14553     # Solaris has maillock.h which defines MAILDIR
14554     for ac_header in maillock.h
14555 do :
14556   ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14557 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14558   cat >>confdefs.h <<_ACEOF
14559 #define HAVE_MAILLOCK_H 1
14560 _ACEOF
14561
14562         cat >>confdefs.h <<\EOF
14563 #define _PATH_MAILDIR MAILDIR
14564 EOF
14565
14566         maildir=yes
14567
14568 fi
14569
14570 done
14571
14572     if test $maildir = no; then
14573         for d in /var/mail /var/spool/mail /usr/spool/mail; do
14574             if test -d "$d"; then
14575                 maildir=yes
14576                 cat >>confdefs.h <<EOF
14577 #define _PATH_MAILDIR "$d"
14578 EOF
14579
14580                 break
14581             fi
14582         done
14583         if test $maildir = no; then
14584             # unable to find mail dir, hope for the best
14585             cat >>confdefs.h <<EOF
14586 #define _PATH_MAILDIR "/var/mail"
14587 EOF
14588
14589         fi
14590     fi
14591 fi
14592
14593 if test ${with_logincap-'no'} != "no"; then
14594     for ac_header in login_cap.h
14595 do :
14596   ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
14597 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
14598   cat >>confdefs.h <<_ACEOF
14599 #define HAVE_LOGIN_CAP_H 1
14600 _ACEOF
14601  LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
14602         case "$OS" in
14603             freebsd|netbsd)
14604                 SUDO_LIBS="${SUDO_LIBS} -lutil"
14605                 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
14606                 ;;
14607         esac
14608
14609 fi
14610
14611 done
14612
14613 fi
14614 if test ${with_project-'no'} != "no"; then
14615     ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
14616 if test "x$ac_cv_header_project_h" = x""yes; then :
14617   $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
14618
14619         SUDO_LIBS="${SUDO_LIBS} -lproject"
14620 else
14621   -
14622 fi
14623
14624
14625 fi
14626 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14627 if test "x$ac_cv_type_mode_t" = x""yes; then :
14628
14629 else
14630
14631 cat >>confdefs.h <<_ACEOF
14632 #define mode_t int
14633 _ACEOF
14634
14635 fi
14636
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14638 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14639 if test "${ac_cv_type_uid_t+set}" = set; then :
14640   $as_echo_n "(cached) " >&6
14641 else
14642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h.  */
14644 #include <sys/types.h>
14645
14646 _ACEOF
14647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14648   $EGREP "uid_t" >/dev/null 2>&1; then :
14649   ac_cv_type_uid_t=yes
14650 else
14651   ac_cv_type_uid_t=no
14652 fi
14653 rm -f conftest*
14654
14655 fi
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14657 $as_echo "$ac_cv_type_uid_t" >&6; }
14658 if test $ac_cv_type_uid_t = no; then
14659
14660 $as_echo "#define uid_t int" >>confdefs.h
14661
14662
14663 $as_echo "#define gid_t int" >>confdefs.h
14664
14665 fi
14666
14667 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
14668 if test "x$ac_cv_type___signed_char" = x""yes; then :
14669
14670 else
14671   ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
14672 if test "x$ac_cv_type_signed_char" = x""yes; then :
14673   $as_echo "#define __signed signed" >>confdefs.h
14674
14675 else
14676   $as_echo "#define __signed /**/" >>confdefs.h
14677
14678 fi
14679
14680 fi
14681
14682 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
14683 #include <signal.h>
14684 "
14685 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
14686
14687 else
14688   $as_echo "#define sig_atomic_t int" >>confdefs.h
14689
14690 fi
14691
14692 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
14693 #include <signal.h>
14694 "
14695 if test "x$ac_cv_type_sigaction_t" = x""yes; then :
14696
14697 cat >>confdefs.h <<_ACEOF
14698 #define HAVE_SIGACTION_T 1
14699 _ACEOF
14700
14701 $as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
14702
14703 fi
14704
14705 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
14706 #if TIME_WITH_SYS_TIME
14707 # include <sys/time.h>
14708 #endif
14709 #include <time.h>
14710 "
14711 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
14712   $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
14713
14714 fi
14715
14716 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
14717 #include <netinet/in.h>
14718 "
14719 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then :
14720
14721 cat >>confdefs.h <<_ACEOF
14722 #define HAVE_STRUCT_IN6_ADDR 1
14723 _ACEOF
14724
14725 $as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
14726
14727 fi
14728
14729
14730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14731 $as_echo_n "checking for long long int... " >&6; }
14732 if test "${ac_cv_type_long_long_int+set}" = set; then :
14733   $as_echo_n "(cached) " >&6
14734 else
14735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h.  */
14737
14738   /* For now, do not test the preprocessor; as of 2007 there are too many
14739          implementations with broken preprocessors.  Perhaps this can
14740          be revisited in 2012.  In the meantime, code should not expect
14741          #if to work with literals wider than 32 bits.  */
14742       /* Test literals.  */
14743       long long int ll = 9223372036854775807ll;
14744       long long int nll = -9223372036854775807LL;
14745       unsigned long long int ull = 18446744073709551615ULL;
14746       /* Test constant expressions.   */
14747       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14748                      ? 1 : -1)];
14749       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14750                      ? 1 : -1)];
14751       int i = 63;
14752 int
14753 main ()
14754 {
14755 /* Test availability of runtime routines for shift and division.  */
14756       long long int llmax = 9223372036854775807ll;
14757       unsigned long long int ullmax = 18446744073709551615ull;
14758       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14759               | (llmax / ll) | (llmax % ll)
14760               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14761               | (ullmax / ull) | (ullmax % ull));
14762   ;
14763   return 0;
14764 }
14765
14766 _ACEOF
14767 if ac_fn_c_try_link "$LINENO"; then :
14768                         if test "$cross_compiling" = yes; then :
14769   ac_cv_type_long_long_int=yes
14770 else
14771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h.  */
14773 #include <limits.h>
14774                #ifndef LLONG_MAX
14775                # define HALF \
14776                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14777                # define LLONG_MAX (HALF - 1 + HALF)
14778                #endif
14779 int
14780 main ()
14781 {
14782 long long int n = 1;
14783                int i;
14784                for (i = 0; ; i++)
14785                  {
14786                    long long int m = n << i;
14787                    if (m >> i != n)
14788                      return 1;
14789                    if (LLONG_MAX / 2 < m)
14790                      break;
14791                  }
14792                return 0;
14793   ;
14794   return 0;
14795 }
14796 _ACEOF
14797 if ac_fn_c_try_run "$LINENO"; then :
14798   ac_cv_type_long_long_int=yes
14799 else
14800   ac_cv_type_long_long_int=no
14801 fi
14802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14803   conftest.$ac_objext conftest.beam conftest.$ac_ext
14804 fi
14805
14806 else
14807   ac_cv_type_long_long_int=no
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext \
14810     conftest$ac_exeext conftest.$ac_ext
14811 fi
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14813 $as_echo "$ac_cv_type_long_long_int" >&6; }
14814   if test $ac_cv_type_long_long_int = yes; then
14815
14816 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14817
14818   fi
14819
14820 # The cast to long int works around a bug in the HP C Compiler
14821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14823 # This bug is HP SR number 8606223364.
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
14825 $as_echo_n "checking size of long int... " >&6; }
14826 if test "${ac_cv_sizeof_long_int+set}" = set; then :
14827   $as_echo_n "(cached) " >&6
14828 else
14829   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
14830
14831 else
14832   if test "$ac_cv_type_long_int" = yes; then
14833      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14835 { as_fn_set_status 77
14836 as_fn_error "cannot compute sizeof (long int)
14837 See \`config.log' for more details." "$LINENO" 5; }; }
14838    else
14839      ac_cv_sizeof_long_int=0
14840    fi
14841 fi
14842
14843 fi
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
14845 $as_echo "$ac_cv_sizeof_long_int" >&6; }
14846
14847
14848
14849 cat >>confdefs.h <<_ACEOF
14850 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14851 _ACEOF
14852
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14855 $as_echo_n "checking for size_t... " >&6; }
14856 if test "${sudo_cv_type_size_t+set}" = set; then :
14857   $as_echo_n "(cached) " >&6
14858 else
14859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h.  */
14861 #include <sys/types.h>
14862 #include <stdio.h>
14863 #if STDC_HEADERS
14864 #include <stdlib.h>
14865 #endif
14866 #if HAVE_UNISTD_H
14867 #include <unistd.h>
14868 #endif
14869 _ACEOF
14870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14871   $EGREP "size_t" >/dev/null 2>&1; then :
14872   sudo_cv_type_size_t=yes
14873 else
14874   sudo_cv_type_size_t=no
14875 fi
14876 rm -f conftest*
14877
14878 fi
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
14880 $as_echo "$sudo_cv_type_size_t" >&6; }
14881 if test $sudo_cv_type_size_t = no; then
14882
14883 $as_echo "#define size_t int" >>confdefs.h
14884
14885 fi
14886
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14888 $as_echo_n "checking for ssize_t... " >&6; }
14889 if test "${sudo_cv_type_ssize_t+set}" = set; then :
14890   $as_echo_n "(cached) " >&6
14891 else
14892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893 /* end confdefs.h.  */
14894 #include <sys/types.h>
14895 #include <stdio.h>
14896 #if STDC_HEADERS
14897 #include <stdlib.h>
14898 #endif
14899 #if HAVE_UNISTD_H
14900 #include <unistd.h>
14901 #endif
14902 _ACEOF
14903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14904   $EGREP "ssize_t" >/dev/null 2>&1; then :
14905   sudo_cv_type_ssize_t=yes
14906 else
14907   sudo_cv_type_ssize_t=no
14908 fi
14909 rm -f conftest*
14910
14911 fi
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
14913 $as_echo "$sudo_cv_type_ssize_t" >&6; }
14914 if test $sudo_cv_type_ssize_t = no; then
14915
14916 $as_echo "#define ssize_t int" >>confdefs.h
14917
14918 fi
14919
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
14921 $as_echo_n "checking for dev_t... " >&6; }
14922 if test "${sudo_cv_type_dev_t+set}" = set; then :
14923   $as_echo_n "(cached) " >&6
14924 else
14925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h.  */
14927 #include <sys/types.h>
14928 #include <stdio.h>
14929 #if STDC_HEADERS
14930 #include <stdlib.h>
14931 #endif
14932 #if HAVE_UNISTD_H
14933 #include <unistd.h>
14934 #endif
14935 _ACEOF
14936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14937   $EGREP "dev_t" >/dev/null 2>&1; then :
14938   sudo_cv_type_dev_t=yes
14939 else
14940   sudo_cv_type_dev_t=no
14941 fi
14942 rm -f conftest*
14943
14944 fi
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
14946 $as_echo "$sudo_cv_type_dev_t" >&6; }
14947 if test $sudo_cv_type_dev_t = no; then
14948
14949 $as_echo "#define dev_t int" >>confdefs.h
14950
14951 fi
14952
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
14954 $as_echo_n "checking for ino_t... " >&6; }
14955 if test "${sudo_cv_type_ino_t+set}" = set; then :
14956   $as_echo_n "(cached) " >&6
14957 else
14958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h.  */
14960 #include <sys/types.h>
14961 #include <stdio.h>
14962 #if STDC_HEADERS
14963 #include <stdlib.h>
14964 #endif
14965 #if HAVE_UNISTD_H
14966 #include <unistd.h>
14967 #endif
14968 _ACEOF
14969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14970   $EGREP "ino_t" >/dev/null 2>&1; then :
14971   sudo_cv_type_ino_t=yes
14972 else
14973   sudo_cv_type_ino_t=no
14974 fi
14975 rm -f conftest*
14976
14977 fi
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
14979 $as_echo "$sudo_cv_type_ino_t" >&6; }
14980 if test $sudo_cv_type_ino_t = no; then
14981
14982 $as_echo "#define ino_t unsigned int" >>confdefs.h
14983
14984 fi
14985
14986
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
14988 $as_echo_n "checking max length of uid_t... " >&6; }
14989 if test "${sudo_cv_uid_t_len+set}" = set; then :
14990   $as_echo_n "(cached) " >&6
14991 else
14992   rm -f conftestdata
14993 if test "$cross_compiling" = yes; then :
14994   sudo_cv_uid_t_len=10
14995 else
14996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h.  */
14998 #include <stdio.h>
14999 #include <pwd.h>
15000 #include <limits.h>
15001 #include <sys/types.h>
15002 #include <sys/param.h>
15003 main() {
15004   FILE *f;
15005   char b[1024];
15006   uid_t u = (uid_t) -1;
15007
15008   if ((f = fopen("conftestdata", "w")) == NULL)
15009     exit(1);
15010
15011   (void) sprintf(b, "%lu", (unsigned long) u);
15012   (void) fprintf(f, "%d\n", strlen(b));
15013   (void) fclose(f);
15014   exit(0);
15015 }
15016 _ACEOF
15017 if ac_fn_c_try_run "$LINENO"; then :
15018   sudo_cv_uid_t_len=`cat conftestdata`
15019 else
15020   sudo_cv_uid_t_len=10
15021 fi
15022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15023   conftest.$ac_objext conftest.beam conftest.$ac_ext
15024 fi
15025
15026
15027 fi
15028
15029 rm -f conftestdata
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
15031 $as_echo "$sudo_cv_uid_t_len" >&6; }
15032
15033 cat >>confdefs.h <<_ACEOF
15034 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15035 _ACEOF
15036
15037
15038
15039     ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
15040           #include <sys/socket.h>
15041
15042 "
15043 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
15044
15045 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
15046
15047 fi
15048
15049
15050 _CFLAGS="$CFLAGS"
15051 CFLAGS="$CFLAGS $OSDEFS"
15052 if test $ac_cv_header_utmpx_h = "yes"; then
15053     ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
15054         #include <sys/types.h>
15055         #include <utmpx.h>
15056
15057 "
15058 if test "x$ac_cv_member_struct_utmpx_ut_id" = x""yes; then :
15059
15060 cat >>confdefs.h <<_ACEOF
15061 #define HAVE_STRUCT_UTMPX_UT_ID 1
15062 _ACEOF
15063
15064
15065 fi
15066 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
15067         #include <sys/types.h>
15068         #include <utmpx.h>
15069
15070 "
15071 if test "x$ac_cv_member_struct_utmpx_ut_pid" = x""yes; then :
15072
15073 cat >>confdefs.h <<_ACEOF
15074 #define HAVE_STRUCT_UTMPX_UT_PID 1
15075 _ACEOF
15076
15077
15078 fi
15079 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
15080         #include <sys/types.h>
15081         #include <utmpx.h>
15082
15083 "
15084 if test "x$ac_cv_member_struct_utmpx_ut_tv" = x""yes; then :
15085
15086 cat >>confdefs.h <<_ACEOF
15087 #define HAVE_STRUCT_UTMPX_UT_TV 1
15088 _ACEOF
15089
15090
15091 fi
15092 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
15093         #include <sys/types.h>
15094         #include <utmpx.h>
15095
15096 "
15097 if test "x$ac_cv_member_struct_utmpx_ut_type" = x""yes; then :
15098
15099 cat >>confdefs.h <<_ACEOF
15100 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15101 _ACEOF
15102
15103
15104 fi
15105
15106                 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
15107         #include <sys/types.h>
15108         #include <utmpx.h>
15109
15110 "
15111 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = x""yes; then :
15112
15113 cat >>confdefs.h <<_ACEOF
15114 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
15115 _ACEOF
15116
15117 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
15118
15119 else
15120
15121         ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
15122             #include <sys/types.h>
15123             #include <utmpx.h>
15124
15125 "
15126 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = x""yes; then :
15127
15128 cat >>confdefs.h <<_ACEOF
15129 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
15130 _ACEOF
15131
15132 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
15133
15134 fi
15135
15136
15137 fi
15138
15139 else
15140     ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
15141         #include <sys/types.h>
15142         #include <utmp.h>
15143
15144 "
15145 if test "x$ac_cv_member_struct_utmp_ut_id" = x""yes; then :
15146
15147 cat >>confdefs.h <<_ACEOF
15148 #define HAVE_STRUCT_UTMP_UT_ID 1
15149 _ACEOF
15150
15151
15152 fi
15153 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
15154         #include <sys/types.h>
15155         #include <utmp.h>
15156
15157 "
15158 if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then :
15159
15160 cat >>confdefs.h <<_ACEOF
15161 #define HAVE_STRUCT_UTMP_UT_PID 1
15162 _ACEOF
15163
15164
15165 fi
15166 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
15167         #include <sys/types.h>
15168         #include <utmp.h>
15169
15170 "
15171 if test "x$ac_cv_member_struct_utmp_ut_tv" = x""yes; then :
15172
15173 cat >>confdefs.h <<_ACEOF
15174 #define HAVE_STRUCT_UTMP_UT_TV 1
15175 _ACEOF
15176
15177
15178 fi
15179 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
15180         #include <sys/types.h>
15181         #include <utmp.h>
15182
15183 "
15184 if test "x$ac_cv_member_struct_utmp_ut_type" = x""yes; then :
15185
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_STRUCT_UTMP_UT_TYPE 1
15188 _ACEOF
15189
15190
15191 fi
15192 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
15193         #include <sys/types.h>
15194         #include <utmp.h>
15195
15196 "
15197 if test "x$ac_cv_member_struct_utmp_ut_user" = x""yes; then :
15198
15199 cat >>confdefs.h <<_ACEOF
15200 #define HAVE_STRUCT_UTMP_UT_USER 1
15201 _ACEOF
15202
15203
15204 fi
15205
15206                 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
15207         #include <sys/types.h>
15208         #include <utmp.h>
15209
15210 "
15211 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = x""yes; then :
15212
15213 cat >>confdefs.h <<_ACEOF
15214 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
15215 _ACEOF
15216
15217 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
15218
15219 else
15220
15221         ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
15222             #include <sys/types.h>
15223             #include <utmp.h>
15224
15225 "
15226 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = x""yes; then :
15227
15228 cat >>confdefs.h <<_ACEOF
15229 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
15230 _ACEOF
15231
15232 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
15233
15234 fi
15235
15236
15237 fi
15238
15239 fi
15240 CFLAGS="$_CFLAGS"
15241
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
15243 $as_echo_n "checking type of array argument to getgroups... " >&6; }
15244 if test "${ac_cv_type_getgroups+set}" = set; then :
15245   $as_echo_n "(cached) " >&6
15246 else
15247   if test "$cross_compiling" = yes; then :
15248   ac_cv_type_getgroups=cross
15249 else
15250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h.  */
15252 /* Thanks to Mike Rendell for this test.  */
15253 $ac_includes_default
15254 #define NGID 256
15255 #undef MAX
15256 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15257
15258 int
15259 main ()
15260 {
15261   gid_t gidset[NGID];
15262   int i, n;
15263   union { gid_t gval; long int lval; }  val;
15264
15265   val.lval = -1;
15266   for (i = 0; i < NGID; i++)
15267     gidset[i] = val.gval;
15268   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15269                  gidset);
15270   /* Exit non-zero if getgroups seems to require an array of ints.  This
15271      happens when gid_t is short int but getgroups modifies an array
15272      of ints.  */
15273   return n > 0 && gidset[n] != val.gval;
15274 }
15275 _ACEOF
15276 if ac_fn_c_try_run "$LINENO"; then :
15277   ac_cv_type_getgroups=gid_t
15278 else
15279   ac_cv_type_getgroups=int
15280 fi
15281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15282   conftest.$ac_objext conftest.beam conftest.$ac_ext
15283 fi
15284
15285 if test $ac_cv_type_getgroups = cross; then
15286         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h.  */
15288 #include <unistd.h>
15289
15290 _ACEOF
15291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15292   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
15293   ac_cv_type_getgroups=gid_t
15294 else
15295   ac_cv_type_getgroups=int
15296 fi
15297 rm -f conftest*
15298
15299 fi
15300 fi
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
15302 $as_echo "$ac_cv_type_getgroups" >&6; }
15303
15304 cat >>confdefs.h <<_ACEOF
15305 #define GETGROUPS_T $ac_cv_type_getgroups
15306 _ACEOF
15307
15308
15309 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15310 if test "x$ac_cv_type_size_t" = x""yes; then :
15311
15312 else
15313
15314 cat >>confdefs.h <<_ACEOF
15315 #define size_t unsigned int
15316 _ACEOF
15317
15318 fi
15319
15320 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
15321 if test "x$ac_cv_func_getgroups" = x""yes; then :
15322
15323 fi
15324
15325
15326 # If we don't yet have getgroups, see if it's in -lbsd.
15327 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15328 ac_save_LIBS=$LIBS
15329 if test $ac_cv_func_getgroups = no; then
15330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
15331 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
15332 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
15333   $as_echo_n "(cached) " >&6
15334 else
15335   ac_check_lib_save_LIBS=$LIBS
15336 LIBS="-lbsd  $LIBS"
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h.  */
15339
15340 /* Override any GCC internal prototype to avoid an error.
15341    Use char because int might match the return type of a GCC
15342    builtin and then its argument prototype would still apply.  */
15343 #ifdef __cplusplus
15344 extern "C"
15345 #endif
15346 char getgroups ();
15347 int
15348 main ()
15349 {
15350 return getgroups ();
15351   ;
15352   return 0;
15353 }
15354 _ACEOF
15355 if ac_fn_c_try_link "$LINENO"; then :
15356   ac_cv_lib_bsd_getgroups=yes
15357 else
15358   ac_cv_lib_bsd_getgroups=no
15359 fi
15360 rm -f core conftest.err conftest.$ac_objext \
15361     conftest$ac_exeext conftest.$ac_ext
15362 LIBS=$ac_check_lib_save_LIBS
15363 fi
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
15365 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
15366 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
15367   GETGROUPS_LIB=-lbsd
15368 fi
15369
15370 fi
15371
15372 # Run the program to test the functionality of the system-supplied
15373 # getgroups function only if there is such a function.
15374 if test $ac_cv_func_getgroups = yes; then
15375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
15376 $as_echo_n "checking for working getgroups... " >&6; }
15377 if test "${ac_cv_func_getgroups_works+set}" = set; then :
15378   $as_echo_n "(cached) " >&6
15379 else
15380   if test "$cross_compiling" = yes; then :
15381   ac_cv_func_getgroups_works=no
15382 else
15383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h.  */
15385 $ac_includes_default
15386 int
15387 main ()
15388 {
15389 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
15390        return getgroups (0, 0) == -1;
15391   ;
15392   return 0;
15393 }
15394 _ACEOF
15395 if ac_fn_c_try_run "$LINENO"; then :
15396   ac_cv_func_getgroups_works=yes
15397 else
15398   ac_cv_func_getgroups_works=no
15399 fi
15400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15401   conftest.$ac_objext conftest.beam conftest.$ac_ext
15402 fi
15403
15404
15405 fi
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
15407 $as_echo "$ac_cv_func_getgroups_works" >&6; }
15408 else
15409   ac_cv_func_getgroups_works=no
15410 fi
15411 if test $ac_cv_func_getgroups_works = yes; then
15412
15413 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
15414
15415 fi
15416 LIBS=$ac_save_LIBS
15417
15418 for ac_func in strrchr sysconf tzset strftime initgroups getgroups fstat \
15419                regcomp setlocale nl_langinfo getaddrinfo mbr_check_membership \
15420                setrlimit64 sysctl
15421 do :
15422   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15424 eval as_val=\$$as_ac_var
15425    if test "x$as_val" = x""yes; then :
15426   cat >>confdefs.h <<_ACEOF
15427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15428 _ACEOF
15429
15430 fi
15431 done
15432
15433 for ac_func in getline
15434 do :
15435   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
15436 if test "x$ac_cv_func_getline" = x""yes; then :
15437   cat >>confdefs.h <<_ACEOF
15438 #define HAVE_GETLINE 1
15439 _ACEOF
15440
15441 else
15442
15443     case " $LIBOBJS " in
15444   *" getline.$ac_objext "* ) ;;
15445   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
15446  ;;
15447 esac
15448
15449     for ac_func in fgetln
15450 do :
15451   ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
15452 if test "x$ac_cv_func_fgetln" = x""yes; then :
15453   cat >>confdefs.h <<_ACEOF
15454 #define HAVE_FGETLN 1
15455 _ACEOF
15456
15457 fi
15458 done
15459
15460
15461 fi
15462 done
15463
15464 utmp_style=LEGACY
15465 for ac_func in getutxid getutid
15466 do :
15467   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15469 eval as_val=\$$as_ac_var
15470    if test "x$as_val" = x""yes; then :
15471   cat >>confdefs.h <<_ACEOF
15472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15473 _ACEOF
15474  utmp_style=POSIX; break
15475 fi
15476 done
15477
15478 if test "$utmp_style" = "LEGACY"; then
15479     for ac_func in getttyent ttyslot
15480 do :
15481   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15482 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15483 eval as_val=\$$as_ac_var
15484    if test "x$as_val" = x""yes; then :
15485   cat >>confdefs.h <<_ACEOF
15486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15487 _ACEOF
15488  break
15489 fi
15490 done
15491
15492 fi
15493
15494 for ac_func in openpty
15495 do :
15496   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
15497 if test "x$ac_cv_func_openpty" = x""yes; then :
15498   cat >>confdefs.h <<_ACEOF
15499 #define HAVE_OPENPTY 1
15500 _ACEOF
15501  for ac_header in util.h pty.h
15502 do :
15503   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15504 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15505 eval as_val=\$$as_ac_Header
15506    if test "x$as_val" = x""yes; then :
15507   cat >>confdefs.h <<_ACEOF
15508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15509 _ACEOF
15510  break
15511 fi
15512
15513 done
15514
15515 else
15516
15517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
15518 $as_echo_n "checking for openpty in -lutil... " >&6; }
15519 if test "${ac_cv_lib_util_openpty+set}" = set; then :
15520   $as_echo_n "(cached) " >&6
15521 else
15522   ac_check_lib_save_LIBS=$LIBS
15523 LIBS="-lutil  $LIBS"
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h.  */
15526
15527 /* Override any GCC internal prototype to avoid an error.
15528    Use char because int might match the return type of a GCC
15529    builtin and then its argument prototype would still apply.  */
15530 #ifdef __cplusplus
15531 extern "C"
15532 #endif
15533 char openpty ();
15534 int
15535 main ()
15536 {
15537 return openpty ();
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 if ac_fn_c_try_link "$LINENO"; then :
15543   ac_cv_lib_util_openpty=yes
15544 else
15545   ac_cv_lib_util_openpty=no
15546 fi
15547 rm -f core conftest.err conftest.$ac_objext \
15548     conftest$ac_exeext conftest.$ac_ext
15549 LIBS=$ac_check_lib_save_LIBS
15550 fi
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
15552 $as_echo "$ac_cv_lib_util_openpty" >&6; }
15553 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
15554
15555         for ac_header in util.h pty.h
15556 do :
15557   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15558 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15559 eval as_val=\$$as_ac_Header
15560    if test "x$as_val" = x""yes; then :
15561   cat >>confdefs.h <<_ACEOF
15562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15563 _ACEOF
15564  break
15565 fi
15566
15567 done
15568
15569         case "$SUDO_LIBS" in
15570             *-lutil*) ;;
15571             *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
15572         esac
15573         $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
15574
15575
15576 else
15577
15578         for ac_func in _getpty
15579 do :
15580   ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
15581 if test "x$ac_cv_func__getpty" = x""yes; then :
15582   cat >>confdefs.h <<_ACEOF
15583 #define HAVE__GETPTY 1
15584 _ACEOF
15585
15586 else
15587
15588             for ac_func in grantpt
15589 do :
15590   ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15591 if test "x$ac_cv_func_grantpt" = x""yes; then :
15592   cat >>confdefs.h <<_ACEOF
15593 #define HAVE_GRANTPT 1
15594 _ACEOF
15595
15596                 for ac_func in posix_openpt
15597 do :
15598   ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
15599 if test "x$ac_cv_func_posix_openpt" = x""yes; then :
15600   cat >>confdefs.h <<_ACEOF
15601 #define HAVE_POSIX_OPENPT 1
15602 _ACEOF
15603
15604 fi
15605 done
15606
15607
15608 else
15609
15610                 for ac_func in revoke
15611 do :
15612   ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
15613 if test "x$ac_cv_func_revoke" = x""yes; then :
15614   cat >>confdefs.h <<_ACEOF
15615 #define HAVE_REVOKE 1
15616 _ACEOF
15617
15618 fi
15619 done
15620
15621
15622 fi
15623 done
15624
15625
15626 fi
15627 done
15628
15629
15630 fi
15631
15632
15633 fi
15634 done
15635
15636 for ac_func in unsetenv
15637 do :
15638   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15639 if test "x$ac_cv_func_unsetenv" = x""yes; then :
15640   cat >>confdefs.h <<_ACEOF
15641 #define HAVE_UNSETENV 1
15642 _ACEOF
15643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
15644 $as_echo_n "checking whether unsetenv returns void... " >&6; }
15645 if test "${sudo_cv_func_unsetenv_void+set}" = set; then :
15646   $as_echo_n "(cached) " >&6
15647 else
15648   if test "$cross_compiling" = yes; then :
15649   sudo_cv_func_unsetenv_void=no
15650 else
15651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h.  */
15653 $ac_includes_default
15654         int unsetenv();
15655
15656 int
15657 main ()
15658 {
15659
15660         return unsetenv("FOO") != 0;
15661
15662   ;
15663   return 0;
15664 }
15665
15666 _ACEOF
15667 if ac_fn_c_try_run "$LINENO"; then :
15668   sudo_cv_func_unsetenv_void=no
15669 else
15670   sudo_cv_func_unsetenv_void=yes
15671 fi
15672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15673   conftest.$ac_objext conftest.beam conftest.$ac_ext
15674 fi
15675
15676 fi
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
15678 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
15679     if test $sudo_cv_func_unsetenv_void = yes; then
15680
15681 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
15682
15683     fi
15684
15685 else
15686   case " $LIBOBJS " in
15687   *" unsetenv.$ac_objext "* ) ;;
15688   *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
15689  ;;
15690 esac
15691
15692 fi
15693 done
15694
15695 if test -z "$SKIP_SETRESUID"; then
15696     for ac_func in setresuid
15697 do :
15698   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
15699 if test "x$ac_cv_func_setresuid" = x""yes; then :
15700   cat >>confdefs.h <<_ACEOF
15701 #define HAVE_SETRESUID 1
15702 _ACEOF
15703
15704         SKIP_SETREUID=yes
15705         for ac_func in getresuid
15706 do :
15707   ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
15708 if test "x$ac_cv_func_getresuid" = x""yes; then :
15709   cat >>confdefs.h <<_ACEOF
15710 #define HAVE_GETRESUID 1
15711 _ACEOF
15712
15713 fi
15714 done
15715
15716
15717 fi
15718 done
15719
15720 fi
15721 if test -z "$SKIP_SETREUID"; then
15722     for ac_func in setreuid
15723 do :
15724   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
15725 if test "x$ac_cv_func_setreuid" = x""yes; then :
15726   cat >>confdefs.h <<_ACEOF
15727 #define HAVE_SETREUID 1
15728 _ACEOF
15729  SKIP_SETEUID=yes
15730 fi
15731 done
15732
15733 fi
15734 if test -z "$SKIP_SETEUID"; then
15735     for ac_func in seteuid
15736 do :
15737   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
15738 if test "x$ac_cv_func_seteuid" = x""yes; then :
15739   cat >>confdefs.h <<_ACEOF
15740 #define HAVE_SETEUID 1
15741 _ACEOF
15742
15743 fi
15744 done
15745
15746 fi
15747 if test X"$with_interfaces" != X"no"; then
15748     for ac_func in getifaddrs
15749 do :
15750   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
15751 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
15752   cat >>confdefs.h <<_ACEOF
15753 #define HAVE_GETIFADDRS 1
15754 _ACEOF
15755  for ac_func in freeifaddrs
15756 do :
15757   ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
15758 if test "x$ac_cv_func_freeifaddrs" = x""yes; then :
15759   cat >>confdefs.h <<_ACEOF
15760 #define HAVE_FREEIFADDRS 1
15761 _ACEOF
15762
15763 fi
15764 done
15765
15766 fi
15767 done
15768
15769 fi
15770 if test -z "$BROKEN_GETCWD"; then
15771     for ac_func in getcwd
15772 do :
15773   ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15774 if test "x$ac_cv_func_getcwd" = x""yes; then :
15775   cat >>confdefs.h <<_ACEOF
15776 #define HAVE_GETCWD 1
15777 _ACEOF
15778
15779 else
15780   case " $LIBOBJS " in
15781   *" $ac_func.$ac_objext "* ) ;;
15782   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15783  ;;
15784 esac
15785
15786 fi
15787 done
15788
15789
15790 fi
15791 for ac_func in glob
15792 do :
15793   ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
15794 if test "x$ac_cv_func_glob" = x""yes; then :
15795   cat >>confdefs.h <<_ACEOF
15796 #define HAVE_GLOB 1
15797 _ACEOF
15798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15799 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h.  */
15802 #include <glob.h>
15803 int
15804 main ()
15805 {
15806 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15807   ;
15808   return 0;
15809 }
15810 _ACEOF
15811 if ac_fn_c_try_compile "$LINENO"; then :
15812   $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
15813
15814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15815 $as_echo "yes" >&6; }
15816 else
15817   case " $LIBOBJS " in
15818   *" glob.$ac_objext "* ) ;;
15819   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15820  ;;
15821 esac
15822
15823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15824 $as_echo "no" >&6; }
15825 fi
15826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15827 else
15828   case " $LIBOBJS " in
15829   *" glob.$ac_objext "* ) ;;
15830   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15831  ;;
15832 esac
15833
15834 fi
15835 done
15836
15837 for ac_func in lockf flock
15838 do :
15839   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15841 eval as_val=\$$as_ac_var
15842    if test "x$as_val" = x""yes; then :
15843   cat >>confdefs.h <<_ACEOF
15844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15845 _ACEOF
15846  break
15847 fi
15848 done
15849
15850 for ac_func in innetgr _innetgr
15851 do :
15852   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15853 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15854 eval as_val=\$$as_ac_var
15855    if test "x$as_val" = x""yes; then :
15856   cat >>confdefs.h <<_ACEOF
15857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15858 _ACEOF
15859  for ac_func in getdomainname
15860 do :
15861   ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
15862 if test "x$ac_cv_func_getdomainname" = x""yes; then :
15863   cat >>confdefs.h <<_ACEOF
15864 #define HAVE_GETDOMAINNAME 1
15865 _ACEOF
15866
15867 fi
15868 done
15869  break
15870 fi
15871 done
15872
15873 for ac_func in utimes
15874 do :
15875   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15876 if test "x$ac_cv_func_utimes" = x""yes; then :
15877   cat >>confdefs.h <<_ACEOF
15878 #define HAVE_UTIMES 1
15879 _ACEOF
15880  for ac_func in futimes futimesat
15881 do :
15882   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15883 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15884 eval as_val=\$$as_ac_var
15885    if test "x$as_val" = x""yes; then :
15886   cat >>confdefs.h <<_ACEOF
15887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15888 _ACEOF
15889  break
15890 fi
15891 done
15892
15893 else
15894   for ac_func in futime
15895 do :
15896   ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
15897 if test "x$ac_cv_func_futime" = x""yes; then :
15898   cat >>confdefs.h <<_ACEOF
15899 #define HAVE_FUTIME 1
15900 _ACEOF
15901
15902 fi
15903 done
15904  case " $LIBOBJS " in
15905   *" utimes.$ac_objext "* ) ;;
15906   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
15907  ;;
15908 esac
15909
15910 fi
15911 done
15912
15913 for ac_func in killpg
15914 do :
15915   ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
15916 if test "x$ac_cv_func_killpg" = x""yes; then :
15917   cat >>confdefs.h <<_ACEOF
15918 #define HAVE_KILLPG 1
15919 _ACEOF
15920
15921 else
15922   case " $LIBOBJS " in
15923   *" killpg.$ac_objext "* ) ;;
15924   *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
15925  ;;
15926 esac
15927
15928 fi
15929 done
15930
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
15932 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
15933 if test "${sudo_cv_func_fnmatch+set}" = set; then :
15934   $as_echo_n "(cached) " >&6
15935 else
15936   rm -f conftestdata; > conftestdata
15937 if test "$cross_compiling" = yes; then :
15938   sudo_cv_func_fnmatch=no
15939 else
15940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h.  */
15942 #include <fnmatch.h>
15943 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
15944 _ACEOF
15945 if ac_fn_c_try_run "$LINENO"; then :
15946   sudo_cv_func_fnmatch=yes
15947 else
15948   sudo_cv_func_fnmatch=no
15949 fi
15950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15951   conftest.$ac_objext conftest.beam conftest.$ac_ext
15952 fi
15953
15954 rm -f core core.* *.core
15955 fi
15956
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
15958 $as_echo "$sudo_cv_func_fnmatch" >&6; }
15959 if test $sudo_cv_func_fnmatch = yes; then :
15960   $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
15961
15962 else
15963   case " $LIBOBJS " in
15964   *" fnmatch.$ac_objext "* ) ;;
15965   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
15966  ;;
15967 esac
15968
15969 fi
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
15971 $as_echo_n "checking for isblank... " >&6; }
15972 if test "${sudo_cv_func_isblank+set}" = set; then :
15973   $as_echo_n "(cached) " >&6
15974 else
15975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h.  */
15977 #include <ctype.h>
15978 int
15979 main ()
15980 {
15981 return (isblank('a'));
15982   ;
15983   return 0;
15984 }
15985 _ACEOF
15986 if ac_fn_c_try_link "$LINENO"; then :
15987   sudo_cv_func_isblank=yes
15988 else
15989   sudo_cv_func_isblank=no
15990 fi
15991 rm -f core conftest.err conftest.$ac_objext \
15992     conftest$ac_exeext conftest.$ac_ext
15993 fi
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
15995 $as_echo "$sudo_cv_func_isblank" >&6; }
15996
15997   if test "$sudo_cv_func_isblank" = "yes"; then
15998
15999 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
16000
16001   else
16002     case " $LIBOBJS " in
16003   *" isblank.$ac_objext "* ) ;;
16004   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
16005  ;;
16006 esac
16007
16008   fi
16009
16010 for ac_func in memrchr strlcpy strlcat setenv
16011 do :
16012   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16013 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16014 eval as_val=\$$as_ac_var
16015    if test "x$as_val" = x""yes; then :
16016   cat >>confdefs.h <<_ACEOF
16017 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16018 _ACEOF
16019
16020 else
16021   case " $LIBOBJS " in
16022   *" $ac_func.$ac_objext "* ) ;;
16023   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16024  ;;
16025 esac
16026
16027 fi
16028 done
16029
16030
16031 for ac_func in nanosleep
16032 do :
16033   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
16034 if test "x$ac_cv_func_nanosleep" = x""yes; then :
16035   cat >>confdefs.h <<_ACEOF
16036 #define HAVE_NANOSLEEP 1
16037 _ACEOF
16038
16039 else
16040
16041     # On Solaris, nanosleep is in librt
16042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
16043 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
16044 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
16045   $as_echo_n "(cached) " >&6
16046 else
16047   ac_check_lib_save_LIBS=$LIBS
16048 LIBS="-lrt  $LIBS"
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h.  */
16051
16052 /* Override any GCC internal prototype to avoid an error.
16053    Use char because int might match the return type of a GCC
16054    builtin and then its argument prototype would still apply.  */
16055 #ifdef __cplusplus
16056 extern "C"
16057 #endif
16058 char nanosleep ();
16059 int
16060 main ()
16061 {
16062 return nanosleep ();
16063   ;
16064   return 0;
16065 }
16066 _ACEOF
16067 if ac_fn_c_try_link "$LINENO"; then :
16068   ac_cv_lib_rt_nanosleep=yes
16069 else
16070   ac_cv_lib_rt_nanosleep=no
16071 fi
16072 rm -f core conftest.err conftest.$ac_objext \
16073     conftest$ac_exeext conftest.$ac_ext
16074 LIBS=$ac_check_lib_save_LIBS
16075 fi
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
16077 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
16078 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
16079   REPLAY_LIBS="${REPLAY_LIBS} -lrt"
16080 else
16081   case " $LIBOBJS " in
16082   *" nanosleep.$ac_objext "* ) ;;
16083   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
16084  ;;
16085 esac
16086
16087 fi
16088
16089
16090 fi
16091 done
16092
16093 for ac_func in closefrom
16094 do :
16095   ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
16096 if test "x$ac_cv_func_closefrom" = x""yes; then :
16097   cat >>confdefs.h <<_ACEOF
16098 #define HAVE_CLOSEFROM 1
16099 _ACEOF
16100
16101 else
16102   case " $LIBOBJS " in
16103   *" closefrom.$ac_objext "* ) ;;
16104   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
16105  ;;
16106 esac
16107
16108     ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
16109           #include <fcntl.h>
16110 "
16111 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
16112   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
16113
16114 fi
16115
16116
16117 fi
16118 done
16119
16120 for ac_func in mkstemps mkdtemp
16121 do :
16122   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16123 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16124 eval as_val=\$$as_ac_var
16125    if test "x$as_val" = x""yes; then :
16126   cat >>confdefs.h <<_ACEOF
16127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16128 _ACEOF
16129
16130 else
16131
16132     for ac_func in random lrand48
16133 do :
16134   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16136 eval as_val=\$$as_ac_var
16137    if test "x$as_val" = x""yes; then :
16138   cat >>confdefs.h <<_ACEOF
16139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16140 _ACEOF
16141  break
16142 fi
16143 done
16144
16145     case " $LIBOBJS " in
16146   *" mktemp.$ac_objext "* ) ;;
16147   *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
16148  ;;
16149 esac
16150
16151
16152 fi
16153 done
16154
16155 for ac_func in snprintf vsnprintf asprintf vasprintf
16156 do :
16157   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16158 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16159 eval as_val=\$$as_ac_var
16160    if test "x$as_val" = x""yes; then :
16161   cat >>confdefs.h <<_ACEOF
16162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16163 _ACEOF
16164
16165 else
16166   NEED_SNPRINTF=1
16167 fi
16168 done
16169
16170 if test X"$ac_cv_type_struct_timespec" != X"no"; then
16171     ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16172 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
16173   $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
16174
16175         ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
16176 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = x""yes; then :
16177   $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
16178
16179 fi
16180
16181 else
16182   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
16183 if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then :
16184   $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
16185
16186 fi
16187
16188 fi
16189
16190 fi
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h.  */
16193 #include <sys/types.h>
16194 #include <$ac_header_dirent>
16195 int
16196 main ()
16197 {
16198 DIR *d; (void)dirfd(d);
16199   ;
16200   return 0;
16201 }
16202 _ACEOF
16203 if ac_fn_c_try_link "$LINENO"; then :
16204   $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
16205
16206 else
16207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208 /* end confdefs.h.  */
16209 #include <sys/types.h>
16210 #include <$ac_header_dirent>
16211 int
16212 main ()
16213 {
16214 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
16215   ;
16216   return 0;
16217 }
16218 _ACEOF
16219 if ac_fn_c_try_link "$LINENO"; then :
16220   $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
16221
16222 fi
16223 rm -f core conftest.err conftest.$ac_objext \
16224     conftest$ac_exeext conftest.$ac_ext
16225 fi
16226 rm -f core conftest.err conftest.$ac_objext \
16227     conftest$ac_exeext conftest.$ac_ext
16228 if test -n "$NEED_SNPRINTF"; then
16229     case " $LIBOBJS " in
16230   *" snprintf.$ac_objext "* ) ;;
16231   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16232  ;;
16233 esac
16234
16235 fi
16236 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16237 if test "x$ac_cv_func_socket" = x""yes; then :
16238
16239 else
16240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16241 $as_echo_n "checking for socket in -lsocket... " >&6; }
16242 if test "${ac_cv_lib_socket_socket+set}" = set; then :
16243   $as_echo_n "(cached) " >&6
16244 else
16245   ac_check_lib_save_LIBS=$LIBS
16246 LIBS="-lsocket  $LIBS"
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h.  */
16249
16250 /* Override any GCC internal prototype to avoid an error.
16251    Use char because int might match the return type of a GCC
16252    builtin and then its argument prototype would still apply.  */
16253 #ifdef __cplusplus
16254 extern "C"
16255 #endif
16256 char socket ();
16257 int
16258 main ()
16259 {
16260 return socket ();
16261   ;
16262   return 0;
16263 }
16264 _ACEOF
16265 if ac_fn_c_try_link "$LINENO"; then :
16266   ac_cv_lib_socket_socket=yes
16267 else
16268   ac_cv_lib_socket_socket=no
16269 fi
16270 rm -f core conftest.err conftest.$ac_objext \
16271     conftest$ac_exeext conftest.$ac_ext
16272 LIBS=$ac_check_lib_save_LIBS
16273 fi
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16275 $as_echo "$ac_cv_lib_socket_socket" >&6; }
16276 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
16277   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
16278 else
16279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
16280 $as_echo_n "checking for socket in -linet... " >&6; }
16281 if test "${ac_cv_lib_inet_socket+set}" = set; then :
16282   $as_echo_n "(cached) " >&6
16283 else
16284   ac_check_lib_save_LIBS=$LIBS
16285 LIBS="-linet  $LIBS"
16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h.  */
16288
16289 /* Override any GCC internal prototype to avoid an error.
16290    Use char because int might match the return type of a GCC
16291    builtin and then its argument prototype would still apply.  */
16292 #ifdef __cplusplus
16293 extern "C"
16294 #endif
16295 char socket ();
16296 int
16297 main ()
16298 {
16299 return socket ();
16300   ;
16301   return 0;
16302 }
16303 _ACEOF
16304 if ac_fn_c_try_link "$LINENO"; then :
16305   ac_cv_lib_inet_socket=yes
16306 else
16307   ac_cv_lib_inet_socket=no
16308 fi
16309 rm -f core conftest.err conftest.$ac_objext \
16310     conftest$ac_exeext conftest.$ac_ext
16311 LIBS=$ac_check_lib_save_LIBS
16312 fi
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
16314 $as_echo "$ac_cv_lib_inet_socket" >&6; }
16315 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
16316   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16317 else
16318   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
16319 $as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16321 $as_echo_n "checking for socket in -lsocket... " >&6; }
16322 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then :
16323   $as_echo_n "(cached) " >&6
16324 else
16325   ac_check_lib_save_LIBS=$LIBS
16326 LIBS="-lsocket -lnsl $LIBS"
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h.  */
16329
16330 /* Override any GCC internal prototype to avoid an error.
16331    Use char because int might match the return type of a GCC
16332    builtin and then its argument prototype would still apply.  */
16333 #ifdef __cplusplus
16334 extern "C"
16335 #endif
16336 char socket ();
16337 int
16338 main ()
16339 {
16340 return socket ();
16341   ;
16342   return 0;
16343 }
16344 _ACEOF
16345 if ac_fn_c_try_link "$LINENO"; then :
16346   ac_cv_lib_socket_socket_lnsl=yes
16347 else
16348   ac_cv_lib_socket_socket_lnsl=no
16349 fi
16350 rm -f core conftest.err conftest.$ac_objext \
16351     conftest$ac_exeext conftest.$ac_ext
16352 LIBS=$ac_check_lib_save_LIBS
16353 fi
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
16355 $as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
16356 if test "x$ac_cv_lib_socket_socket_lnsl" = x""yes; then :
16357   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
16358 fi
16359
16360 fi
16361
16362 fi
16363
16364 fi
16365
16366 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
16367 if test "x$ac_cv_func_inet_addr" = x""yes; then :
16368
16369 else
16370   ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
16371 if test "x$ac_cv_func___inet_addr" = x""yes; then :
16372
16373 else
16374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
16375 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
16376 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
16377   $as_echo_n "(cached) " >&6
16378 else
16379   ac_check_lib_save_LIBS=$LIBS
16380 LIBS="-lnsl  $LIBS"
16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382 /* end confdefs.h.  */
16383
16384 /* Override any GCC internal prototype to avoid an error.
16385    Use char because int might match the return type of a GCC
16386    builtin and then its argument prototype would still apply.  */
16387 #ifdef __cplusplus
16388 extern "C"
16389 #endif
16390 char inet_addr ();
16391 int
16392 main ()
16393 {
16394 return inet_addr ();
16395   ;
16396   return 0;
16397 }
16398 _ACEOF
16399 if ac_fn_c_try_link "$LINENO"; then :
16400   ac_cv_lib_nsl_inet_addr=yes
16401 else
16402   ac_cv_lib_nsl_inet_addr=no
16403 fi
16404 rm -f core conftest.err conftest.$ac_objext \
16405     conftest$ac_exeext conftest.$ac_ext
16406 LIBS=$ac_check_lib_save_LIBS
16407 fi
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
16409 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
16410 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
16411   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
16412 else
16413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
16414 $as_echo_n "checking for inet_addr in -linet... " >&6; }
16415 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then :
16416   $as_echo_n "(cached) " >&6
16417 else
16418   ac_check_lib_save_LIBS=$LIBS
16419 LIBS="-linet  $LIBS"
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h.  */
16422
16423 /* Override any GCC internal prototype to avoid an error.
16424    Use char because int might match the return type of a GCC
16425    builtin and then its argument prototype would still apply.  */
16426 #ifdef __cplusplus
16427 extern "C"
16428 #endif
16429 char inet_addr ();
16430 int
16431 main ()
16432 {
16433 return inet_addr ();
16434   ;
16435   return 0;
16436 }
16437 _ACEOF
16438 if ac_fn_c_try_link "$LINENO"; then :
16439   ac_cv_lib_inet_inet_addr=yes
16440 else
16441   ac_cv_lib_inet_inet_addr=no
16442 fi
16443 rm -f core conftest.err conftest.$ac_objext \
16444     conftest$ac_exeext conftest.$ac_ext
16445 LIBS=$ac_check_lib_save_LIBS
16446 fi
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
16448 $as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
16449 if test "x$ac_cv_lib_inet_inet_addr" = x""yes; then :
16450   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16451 else
16452   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
16453 $as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
16455 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
16456 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then :
16457   $as_echo_n "(cached) " >&6
16458 else
16459   ac_check_lib_save_LIBS=$LIBS
16460 LIBS="-lsocket -lnsl $LIBS"
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h.  */
16463
16464 /* Override any GCC internal prototype to avoid an error.
16465    Use char because int might match the return type of a GCC
16466    builtin and then its argument prototype would still apply.  */
16467 #ifdef __cplusplus
16468 extern "C"
16469 #endif
16470 char inet_addr ();
16471 int
16472 main ()
16473 {
16474 return inet_addr ();
16475   ;
16476   return 0;
16477 }
16478 _ACEOF
16479 if ac_fn_c_try_link "$LINENO"; then :
16480   ac_cv_lib_socket_inet_addr_lnsl=yes
16481 else
16482   ac_cv_lib_socket_inet_addr_lnsl=no
16483 fi
16484 rm -f core conftest.err conftest.$ac_objext \
16485     conftest$ac_exeext conftest.$ac_ext
16486 LIBS=$ac_check_lib_save_LIBS
16487 fi
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
16489 $as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
16490 if test "x$ac_cv_lib_socket_inet_addr_lnsl" = x""yes; then :
16491   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
16492 fi
16493
16494 fi
16495
16496 fi
16497
16498 fi
16499
16500 fi
16501
16502 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
16503 if test "x$ac_cv_func_syslog" = x""yes; then :
16504
16505 else
16506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
16507 $as_echo_n "checking for syslog in -lsocket... " >&6; }
16508 if test "${ac_cv_lib_socket_syslog+set}" = set; then :
16509   $as_echo_n "(cached) " >&6
16510 else
16511   ac_check_lib_save_LIBS=$LIBS
16512 LIBS="-lsocket  $LIBS"
16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h.  */
16515
16516 /* Override any GCC internal prototype to avoid an error.
16517    Use char because int might match the return type of a GCC
16518    builtin and then its argument prototype would still apply.  */
16519 #ifdef __cplusplus
16520 extern "C"
16521 #endif
16522 char syslog ();
16523 int
16524 main ()
16525 {
16526 return syslog ();
16527   ;
16528   return 0;
16529 }
16530 _ACEOF
16531 if ac_fn_c_try_link "$LINENO"; then :
16532   ac_cv_lib_socket_syslog=yes
16533 else
16534   ac_cv_lib_socket_syslog=no
16535 fi
16536 rm -f core conftest.err conftest.$ac_objext \
16537     conftest$ac_exeext conftest.$ac_ext
16538 LIBS=$ac_check_lib_save_LIBS
16539 fi
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
16541 $as_echo "$ac_cv_lib_socket_syslog" >&6; }
16542 if test "x$ac_cv_lib_socket_syslog" = x""yes; then :
16543   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
16544 else
16545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
16546 $as_echo_n "checking for syslog in -lnsl... " >&6; }
16547 if test "${ac_cv_lib_nsl_syslog+set}" = set; then :
16548   $as_echo_n "(cached) " >&6
16549 else
16550   ac_check_lib_save_LIBS=$LIBS
16551 LIBS="-lnsl  $LIBS"
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h.  */
16554
16555 /* Override any GCC internal prototype to avoid an error.
16556    Use char because int might match the return type of a GCC
16557    builtin and then its argument prototype would still apply.  */
16558 #ifdef __cplusplus
16559 extern "C"
16560 #endif
16561 char syslog ();
16562 int
16563 main ()
16564 {
16565 return syslog ();
16566   ;
16567   return 0;
16568 }
16569 _ACEOF
16570 if ac_fn_c_try_link "$LINENO"; then :
16571   ac_cv_lib_nsl_syslog=yes
16572 else
16573   ac_cv_lib_nsl_syslog=no
16574 fi
16575 rm -f core conftest.err conftest.$ac_objext \
16576     conftest$ac_exeext conftest.$ac_ext
16577 LIBS=$ac_check_lib_save_LIBS
16578 fi
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
16580 $as_echo "$ac_cv_lib_nsl_syslog" >&6; }
16581 if test "x$ac_cv_lib_nsl_syslog" = x""yes; then :
16582   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
16583 else
16584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
16585 $as_echo_n "checking for syslog in -linet... " >&6; }
16586 if test "${ac_cv_lib_inet_syslog+set}" = set; then :
16587   $as_echo_n "(cached) " >&6
16588 else
16589   ac_check_lib_save_LIBS=$LIBS
16590 LIBS="-linet  $LIBS"
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h.  */
16593
16594 /* Override any GCC internal prototype to avoid an error.
16595    Use char because int might match the return type of a GCC
16596    builtin and then its argument prototype would still apply.  */
16597 #ifdef __cplusplus
16598 extern "C"
16599 #endif
16600 char syslog ();
16601 int
16602 main ()
16603 {
16604 return syslog ();
16605   ;
16606   return 0;
16607 }
16608 _ACEOF
16609 if ac_fn_c_try_link "$LINENO"; then :
16610   ac_cv_lib_inet_syslog=yes
16611 else
16612   ac_cv_lib_inet_syslog=no
16613 fi
16614 rm -f core conftest.err conftest.$ac_objext \
16615     conftest$ac_exeext conftest.$ac_ext
16616 LIBS=$ac_check_lib_save_LIBS
16617 fi
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
16619 $as_echo "$ac_cv_lib_inet_syslog" >&6; }
16620 if test "x$ac_cv_lib_inet_syslog" = x""yes; then :
16621   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16622 fi
16623
16624 fi
16625
16626 fi
16627
16628 fi
16629
16630 for ac_func in getprogname
16631 do :
16632   ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
16633 if test "x$ac_cv_func_getprogname" = x""yes; then :
16634   cat >>confdefs.h <<_ACEOF
16635 #define HAVE_GETPROGNAME 1
16636 _ACEOF
16637
16638 else
16639
16640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
16641 $as_echo_n "checking for __progname... " >&6; }
16642     if test "${sudo_cv___progname+set}" = set; then :
16643   $as_echo_n "(cached) " >&6
16644 else
16645
16646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h.  */
16648
16649 int
16650 main ()
16651 {
16652 extern char *__progname; (void)puts(__progname);
16653   ;
16654   return 0;
16655 }
16656 _ACEOF
16657 if ac_fn_c_try_link "$LINENO"; then :
16658   sudo_cv___progname=yes
16659 else
16660   sudo_cv___progname=no
16661 fi
16662 rm -f core conftest.err conftest.$ac_objext \
16663     conftest$ac_exeext conftest.$ac_ext
16664 fi
16665
16666     if test "$sudo_cv___progname" = "yes"; then
16667         $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
16668
16669     else
16670         case " $LIBOBJS " in
16671   *" getprogname.$ac_objext "* ) ;;
16672   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
16673  ;;
16674 esac
16675
16676     fi
16677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
16678 $as_echo "$sudo_cv___progname" >&6; }
16679
16680 fi
16681 done
16682
16683
16684 case ${enable_zlib-"yes"} in
16685     yes)
16686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
16687 $as_echo_n "checking for gzdopen in -lz... " >&6; }
16688 if test "${ac_cv_lib_z_gzdopen+set}" = set; then :
16689   $as_echo_n "(cached) " >&6
16690 else
16691   ac_check_lib_save_LIBS=$LIBS
16692 LIBS="-lz  $LIBS"
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h.  */
16695
16696 /* Override any GCC internal prototype to avoid an error.
16697    Use char because int might match the return type of a GCC
16698    builtin and then its argument prototype would still apply.  */
16699 #ifdef __cplusplus
16700 extern "C"
16701 #endif
16702 char gzdopen ();
16703 int
16704 main ()
16705 {
16706 return gzdopen ();
16707   ;
16708   return 0;
16709 }
16710 _ACEOF
16711 if ac_fn_c_try_link "$LINENO"; then :
16712   ac_cv_lib_z_gzdopen=yes
16713 else
16714   ac_cv_lib_z_gzdopen=no
16715 fi
16716 rm -f core conftest.err conftest.$ac_objext \
16717     conftest$ac_exeext conftest.$ac_ext
16718 LIBS=$ac_check_lib_save_LIBS
16719 fi
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
16721 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
16722 if test "x$ac_cv_lib_z_gzdopen" = x""yes; then :
16723
16724             for ac_header in zlib.h
16725 do :
16726   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16727 if test "x$ac_cv_header_zlib_h" = x""yes; then :
16728   cat >>confdefs.h <<_ACEOF
16729 #define HAVE_ZLIB_H 1
16730 _ACEOF
16731  ZLIB="-lz"
16732 else
16733   enable_zlib=builtin
16734 fi
16735
16736 done
16737
16738
16739 fi
16740
16741         ;;
16742     no)
16743         ;;
16744     system)
16745         $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
16746
16747         ZLIB="-lz"
16748         ;;
16749     builtin)
16750         # handled below
16751         ;;
16752     *)
16753         $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
16754
16755         CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
16756
16757     if test X"$with_rpath" = X"yes"; then
16758         case "$host" in
16759             *-*-hpux*)  ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
16760                         ;;
16761             *)          ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
16762                         ;;
16763         esac
16764     else
16765         ZLIB="${ZLIB} -L$enable_zlib/lib"
16766     fi
16767     if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
16768         blibpath_add="${blibpath_add}:$enable_zlib/lib"
16769     fi
16770
16771         ZLIB="${ZLIB} -lz"
16772         ;;
16773 esac
16774 if test X"$enable_zlib" = X"builtin"; then
16775     $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
16776
16777     CPPFLAGS="${CPPFLAGS}"' -I$(top_srcdir)/zlib'
16778     ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
16779     ZLIB_SRC=zlib
16780     ac_config_headers="$ac_config_headers zlib/zconf.h"
16781
16782     ac_config_files="$ac_config_files zlib/Makefile"
16783
16784 fi
16785
16786 for ac_func in strsignal
16787 do :
16788   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
16789 if test "x$ac_cv_func_strsignal" = x""yes; then :
16790   cat >>confdefs.h <<_ACEOF
16791 #define HAVE_STRSIGNAL 1
16792 _ACEOF
16793
16794 else
16795
16796     case " $LIBOBJS " in
16797   *" strsignal.$ac_objext "* ) ;;
16798   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
16799  ;;
16800 esac
16801
16802     HAVE_SIGLIST="false"
16803     ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
16804 $ac_includes_default
16805 #include <signal.h>
16806
16807 "
16808 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
16809   ac_have_decl=1
16810 else
16811   ac_have_decl=0
16812 fi
16813
16814 cat >>confdefs.h <<_ACEOF
16815 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16816 _ACEOF
16817 if test $ac_have_decl = 1; then :
16818
16819         HAVE_SIGLIST="true"
16820         break
16821
16822 fi
16823 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
16824 $ac_includes_default
16825 #include <signal.h>
16826
16827 "
16828 if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
16829   ac_have_decl=1
16830 else
16831   ac_have_decl=0
16832 fi
16833
16834 cat >>confdefs.h <<_ACEOF
16835 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
16836 _ACEOF
16837 if test $ac_have_decl = 1; then :
16838
16839         HAVE_SIGLIST="true"
16840         break
16841
16842 fi
16843 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
16844 $ac_includes_default
16845 #include <signal.h>
16846
16847 "
16848 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
16849   ac_have_decl=1
16850 else
16851   ac_have_decl=0
16852 fi
16853
16854 cat >>confdefs.h <<_ACEOF
16855 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16856 _ACEOF
16857 if test $ac_have_decl = 1; then :
16858
16859         HAVE_SIGLIST="true"
16860         break
16861
16862 fi
16863
16864     if test "$HAVE_SIGLIST" != "true"; then
16865         case " $LIBOBJS " in
16866   *" siglist.$ac_objext "* ) ;;
16867   *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
16868  ;;
16869 esac
16870
16871     fi
16872
16873 fi
16874 done
16875
16876
16877 if test ${with_netsvc-"no"} != "no"; then
16878     cat >>confdefs.h <<EOF
16879 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
16880 EOF
16881
16882     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
16883 elif test ${with_nsswitch-"yes"} != "no"; then
16884     cat >>confdefs.h <<EOF
16885 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
16886 EOF
16887
16888     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
16889 fi
16890
16891
16892 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
16893     for auth in $AUTH_EXCL_DEF; do
16894         case $auth in
16895             AIX_AUTH)   with_aixauth=maybe;;
16896             BSD_AUTH)   with_bsdauth=maybe;;
16897             PAM)        with_pam=maybe;;
16898             SIA)        CHECKSIA=true;;
16899         esac
16900     done
16901 fi
16902
16903 if test ${with_pam-"no"} != "no"; then
16904     # Note: we already link the main sudo program with -ldl as needed
16905     SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
16906
16907                     for ac_header in security/pam_appl.h pam/pam_appl.h
16908 do :
16909   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16911 eval as_val=\$$as_ac_Header
16912    if test "x$as_val" = x""yes; then :
16913   cat >>confdefs.h <<_ACEOF
16914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16915 _ACEOF
16916  with_pam=yes; break
16917 fi
16918
16919 done
16920
16921     if test "$with_pam" = "yes"; then
16922         $as_echo "#define HAVE_PAM 1" >>confdefs.h
16923
16924         AUTH_OBJS="$AUTH_OBJS pam.lo";
16925         AUTH_EXCL=PAM
16926
16927
16928 # Check whether --with-pam-login was given.
16929 if test "${with_pam_login+set}" = set; then :
16930   withval=$with_pam_login; case $with_pam_login in
16931             yes)        $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
16932
16933                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
16934 $as_echo_n "checking whether to use PAM login... " >&6; }
16935                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16936 $as_echo "yes" >&6; }
16937                         ;;
16938             no)         ;;
16939             *)          as_fn_error "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
16940                         ;;
16941         esac
16942 fi
16943
16944
16945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
16946 $as_echo_n "checking whether to use PAM session support... " >&6; }
16947         # Check whether --enable-pam_session was given.
16948 if test "${enable_pam_session+set}" = set; then :
16949   enableval=$enable_pam_session;  case "$enableval" in
16950                 yes)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16951 $as_echo "yes" >&6; }
16952                         ;;
16953                 no)             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16954 $as_echo "no" >&6; }
16955                             $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
16956
16957                             ;;
16958                 *)              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16959 $as_echo "no" >&6; }
16960                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
16961 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
16962                             ;;
16963             esac
16964 else
16965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16966 $as_echo "yes" >&6; }
16967 fi
16968
16969
16970         case $host in
16971             *-*-linux*|*-*-solaris*)
16972                     # dgettext() may be defined to dgettext_libintl in the
16973                     # header file, so first check that it links w/ additional
16974                     # libs, then try with -lintl
16975                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h.  */
16977 #include <libintl.h>
16978 int
16979 main ()
16980 {
16981 (void)dgettext((char *)0, (char *)0);
16982   ;
16983   return 0;
16984 }
16985 _ACEOF
16986 if ac_fn_c_try_link "$LINENO"; then :
16987   $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16988
16989 else
16990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16991 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16992 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16993   $as_echo_n "(cached) " >&6
16994 else
16995   ac_check_lib_save_LIBS=$LIBS
16996 LIBS="-lintl  $LIBS"
16997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998 /* end confdefs.h.  */
16999
17000 /* Override any GCC internal prototype to avoid an error.
17001    Use char because int might match the return type of a GCC
17002    builtin and then its argument prototype would still apply.  */
17003 #ifdef __cplusplus
17004 extern "C"
17005 #endif
17006 char dgettext ();
17007 int
17008 main ()
17009 {
17010 return dgettext ();
17011   ;
17012   return 0;
17013 }
17014 _ACEOF
17015 if ac_fn_c_try_link "$LINENO"; then :
17016   ac_cv_lib_intl_dgettext=yes
17017 else
17018   ac_cv_lib_intl_dgettext=no
17019 fi
17020 rm -f core conftest.err conftest.$ac_objext \
17021     conftest$ac_exeext conftest.$ac_ext
17022 LIBS=$ac_check_lib_save_LIBS
17023 fi
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
17025 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
17026 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
17027   LIBS="${LIBS} -lintl"
17028                         $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
17029
17030 fi
17031
17032 fi
17033 rm -f core conftest.err conftest.$ac_objext \
17034     conftest$ac_exeext conftest.$ac_ext
17035                     ;;
17036         esac
17037     fi
17038 fi
17039
17040 if test ${with_aixauth-'no'} != "no"; then
17041     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
17042         { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
17043 $as_echo "$as_me: using AIX general authentication" >&6;}
17044         $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
17045
17046         AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
17047         SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
17048         AUTH_EXCL=AIX_AUTH
17049     fi
17050 fi
17051
17052 if test ${with_bsdauth-'no'} != "no"; then
17053     ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
17054 if test "x$ac_cv_header_bsd_auth_h" = x""yes; then :
17055   $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
17056
17057         AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
17058         BSDAUTH_USAGE='[-a auth_type] '
17059         AUTH_EXCL=BSD_AUTH; BAMAN=1
17060 else
17061   as_fn_error "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
17062 fi
17063
17064
17065 fi
17066
17067 if test ${CHECKSIA-'false'} = "true"; then
17068     for ac_func in sia_ses_init
17069 do :
17070   ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
17071 if test "x$ac_cv_func_sia_ses_init" = x""yes; then :
17072   cat >>confdefs.h <<_ACEOF
17073 #define HAVE_SIA_SES_INIT 1
17074 _ACEOF
17075  found=true
17076 else
17077   found=false
17078 fi
17079 done
17080
17081     if test "$found" = "true"; then
17082         AUTH_EXCL=SIA
17083         AUTH_OBJS="$AUTH_OBJS sia.lo"
17084     fi
17085 fi
17086
17087 if test ${with_fwtk-'no'} != "no"; then
17088     if test "$with_fwtk" != "yes"; then
17089
17090     if test X"$with_rpath" = X"yes"; then
17091         case "$host" in
17092             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
17093                         ;;
17094             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
17095                         ;;
17096         esac
17097     else
17098         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
17099     fi
17100     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17101         blibpath_add="${blibpath_add}:${with_fwtk}"
17102     fi
17103
17104         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
17105         with_fwtk=yes
17106     fi
17107     SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
17108     AUTH_OBJS="$AUTH_OBJS fwtk.lo"
17109 fi
17110
17111 if test ${with_SecurID-'no'} != "no"; then
17112     if test "$with_SecurID" != "yes"; then
17113         :
17114     elif test -d /usr/ace/examples; then
17115         with_SecurID=/usr/ace/examples
17116     else
17117         with_SecurID=/usr/ace
17118     fi
17119     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
17120     _LDFLAGS="${LDFLAGS}"
17121
17122     if test X"$with_rpath" = X"yes"; then
17123         case "$host" in
17124             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
17125                         ;;
17126             *)          LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
17127                         ;;
17128         esac
17129     else
17130         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
17131     fi
17132     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17133         blibpath_add="${blibpath_add}:${with_SecurID}"
17134     fi
17135
17136     #
17137     # Determine whether to use the new or old SecurID API
17138     #
17139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
17140 $as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
17141 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then :
17142   $as_echo_n "(cached) " >&6
17143 else
17144   ac_check_lib_save_LIBS=$LIBS
17145 LIBS="-laceclnt
17146             -lpthread
17147
17148      $LIBS"
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h.  */
17151
17152 /* Override any GCC internal prototype to avoid an error.
17153    Use char because int might match the return type of a GCC
17154    builtin and then its argument prototype would still apply.  */
17155 #ifdef __cplusplus
17156 extern "C"
17157 #endif
17158 char SD_Init ();
17159 int
17160 main ()
17161 {
17162 return SD_Init ();
17163   ;
17164   return 0;
17165 }
17166 _ACEOF
17167 if ac_fn_c_try_link "$LINENO"; then :
17168   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
17169 else
17170   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
17171 fi
17172 rm -f core conftest.err conftest.$ac_objext \
17173     conftest$ac_exeext conftest.$ac_ext
17174 LIBS=$ac_check_lib_save_LIBS
17175 fi
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
17177 $as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
17178 if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = x""yes; then :
17179
17180             AUTH_OBJS="$AUTH_OBJS securid5.lo";
17181             SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
17182
17183
17184
17185     if test X"$with_rpath" = X"yes"; then
17186         case "$host" in
17187             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
17188                         ;;
17189             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
17190                         ;;
17191         esac
17192     else
17193         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID}"
17194     fi
17195     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17196         blibpath_add="${blibpath_add}:${with_SecurID}"
17197     fi
17198
17199
17200 else
17201
17202             AUTH_OBJS="$AUTH_OBJS securid.lo";
17203             SUDOERS_LIBS="${SUDOERS_LIBS} ${with_SecurID}/sdiclient.a"
17204
17205 fi
17206
17207     LDFLAGS="${_LDFLAGS}"
17208 fi
17209
17210
17211 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
17212     for auth in $AUTH_DEF; do
17213         case $auth in
17214             passwd)     : ${with_passwd='maybe'};;
17215         esac
17216     done
17217 fi
17218
17219 if test ${with_kerb4-'no'} != "no"; then
17220     $as_echo "#define HAVE_KERB4 1" >>confdefs.h
17221
17222                 O_LDFLAGS="$LDFLAGS"
17223     if test "$with_kerb4" = "yes"; then
17224         found=no
17225         O_CPPFLAGS="$CPPFLAGS"
17226         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
17227             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
17228             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h.  */
17230 #include <krb.h>
17231 _ACEOF
17232 if ac_fn_c_try_cpp "$LINENO"; then :
17233   found=yes; break
17234 fi
17235 rm -f conftest.err conftest.$ac_ext
17236         done
17237         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
17238     else
17239
17240     if test X"$with_rpath" = X"yes"; then
17241         case "$host" in
17242             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
17243                         ;;
17244             *)          LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
17245                         ;;
17246         esac
17247     else
17248         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
17249     fi
17250     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17251         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
17252     fi
17253
17254
17255     if test X"$with_rpath" = X"yes"; then
17256         case "$host" in
17257             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
17258                         ;;
17259             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
17260                         ;;
17261         esac
17262     else
17263         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib"
17264     fi
17265     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17266         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
17267     fi
17268
17269         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
17270         ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
17271 if test "x$ac_cv_header_krb_h" = x""yes; then :
17272   found=yes
17273 else
17274   found=no
17275 fi
17276
17277
17278     fi
17279     if test X"$found" = X"no"; then
17280         { $as_echo "$as_me:${as_lineno-$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
17281 $as_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;}
17282     fi
17283
17284                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17285 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17286 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
17287   $as_echo_n "(cached) " >&6
17288 else
17289   ac_check_lib_save_LIBS=$LIBS
17290 LIBS="-ldes  $LIBS"
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292 /* end confdefs.h.  */
17293
17294 /* Override any GCC internal prototype to avoid an error.
17295    Use char because int might match the return type of a GCC
17296    builtin and then its argument prototype would still apply.  */
17297 #ifdef __cplusplus
17298 extern "C"
17299 #endif
17300 char des_cbc_encrypt ();
17301 int
17302 main ()
17303 {
17304 return des_cbc_encrypt ();
17305   ;
17306   return 0;
17307 }
17308 _ACEOF
17309 if ac_fn_c_try_link "$LINENO"; then :
17310   ac_cv_lib_des_des_cbc_encrypt=yes
17311 else
17312   ac_cv_lib_des_des_cbc_encrypt=no
17313 fi
17314 rm -f core conftest.err conftest.$ac_objext \
17315     conftest$ac_exeext conftest.$ac_ext
17316 LIBS=$ac_check_lib_save_LIBS
17317 fi
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17319 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17320 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
17321   K4LIBS="-ldes"
17322 else
17323
17324         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17325 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17326 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
17327   $as_echo_n "(cached) " >&6
17328 else
17329   ac_check_lib_save_LIBS=$LIBS
17330 LIBS="-ldes425  $LIBS"
17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h.  */
17333
17334 /* Override any GCC internal prototype to avoid an error.
17335    Use char because int might match the return type of a GCC
17336    builtin and then its argument prototype would still apply.  */
17337 #ifdef __cplusplus
17338 extern "C"
17339 #endif
17340 char des_cbc_encrypt ();
17341 int
17342 main ()
17343 {
17344 return des_cbc_encrypt ();
17345   ;
17346   return 0;
17347 }
17348 _ACEOF
17349 if ac_fn_c_try_link "$LINENO"; then :
17350   ac_cv_lib_des425_des_cbc_encrypt=yes
17351 else
17352   ac_cv_lib_des425_des_cbc_encrypt=no
17353 fi
17354 rm -f core conftest.err conftest.$ac_objext \
17355     conftest$ac_exeext conftest.$ac_ext
17356 LIBS=$ac_check_lib_save_LIBS
17357 fi
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17359 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17360 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
17361   K4LIBS="-ldes425"
17362 else
17363   K4LIBS=""
17364 fi
17365
17366
17367 fi
17368
17369                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
17370 $as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
17371     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17372 /* end confdefs.h.  */
17373 #include <krb.h>
17374 int
17375 main ()
17376 {
17377 const char *tmp = krb4_version;
17378   ;
17379   return 0;
17380 }
17381 _ACEOF
17382 if ac_fn_c_try_compile "$LINENO"; then :
17383
17384             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17385 $as_echo "yes" >&6; }
17386             K4LIBS="${K4LIBS} -lcom_err"
17387             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
17388 $as_echo_n "checking for main in -lroken... " >&6; }
17389 if test "${ac_cv_lib_roken_main+set}" = set; then :
17390   $as_echo_n "(cached) " >&6
17391 else
17392   ac_check_lib_save_LIBS=$LIBS
17393 LIBS="-lroken  $LIBS"
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h.  */
17396
17397
17398 int
17399 main ()
17400 {
17401 return main ();
17402   ;
17403   return 0;
17404 }
17405 _ACEOF
17406 if ac_fn_c_try_link "$LINENO"; then :
17407   ac_cv_lib_roken_main=yes
17408 else
17409   ac_cv_lib_roken_main=no
17410 fi
17411 rm -f core conftest.err conftest.$ac_objext \
17412     conftest$ac_exeext conftest.$ac_ext
17413 LIBS=$ac_check_lib_save_LIBS
17414 fi
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
17416 $as_echo "$ac_cv_lib_roken_main" >&6; }
17417 if test "x$ac_cv_lib_roken_main" = x""yes; then :
17418   K4LIBS="${K4LIBS} -lroken"
17419 fi
17420
17421
17422 else
17423
17424             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17425 $as_echo "no" >&6; }
17426
17427
17428 fi
17429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17430                 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
17432 $as_echo_n "checking for main in -lkrb... " >&6; }
17433 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17434   $as_echo_n "(cached) " >&6
17435 else
17436   ac_check_lib_save_LIBS=$LIBS
17437 LIBS="-lkrb $K4LIBS $LIBS"
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h.  */
17440
17441
17442 int
17443 main ()
17444 {
17445 return main ();
17446   ;
17447   return 0;
17448 }
17449 _ACEOF
17450 if ac_fn_c_try_link "$LINENO"; then :
17451   eval "$as_ac_Lib=yes"
17452 else
17453   eval "$as_ac_Lib=no"
17454 fi
17455 rm -f core conftest.err conftest.$ac_objext \
17456     conftest$ac_exeext conftest.$ac_ext
17457 LIBS=$ac_check_lib_save_LIBS
17458 fi
17459 eval ac_res=\$$as_ac_Lib
17460                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17461 $as_echo "$ac_res" >&6; }
17462 eval as_val=\$$as_ac_Lib
17463    if test "x$as_val" = x""yes; then :
17464   K4LIBS="-lkrb $K4LIBS"
17465 else
17466
17467         as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
17469 $as_echo_n "checking for main in -lkrb4... " >&6; }
17470 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17471   $as_echo_n "(cached) " >&6
17472 else
17473   ac_check_lib_save_LIBS=$LIBS
17474 LIBS="-lkrb4 $K4LIBS $LIBS"
17475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476 /* end confdefs.h.  */
17477
17478
17479 int
17480 main ()
17481 {
17482 return main ();
17483   ;
17484   return 0;
17485 }
17486 _ACEOF
17487 if ac_fn_c_try_link "$LINENO"; then :
17488   eval "$as_ac_Lib=yes"
17489 else
17490   eval "$as_ac_Lib=no"
17491 fi
17492 rm -f core conftest.err conftest.$ac_objext \
17493     conftest$ac_exeext conftest.$ac_ext
17494 LIBS=$ac_check_lib_save_LIBS
17495 fi
17496 eval ac_res=\$$as_ac_Lib
17497                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17498 $as_echo "$ac_res" >&6; }
17499 eval as_val=\$$as_ac_Lib
17500    if test "x$as_val" = x""yes; then :
17501   K4LIBS="-lkrb4 $K4LIBS"
17502 else
17503   K4LIBS="-lkrb $K4LIBS"
17504             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDOERS_LDFLAGS and possibly add Kerberos libs to SUDOERS_LIBS" >&5
17505 $as_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 SUDOERS_LDFLAGS and possibly add Kerberos libs to SUDOERS_LIBS" >&2;}
17506
17507 fi
17508
17509
17510 fi
17511
17512     LDFLAGS="$O_LDFLAGS"
17513     SUDOERS_LIBS="${SUDOERS_LIBS} $K4LIBS"
17514     AUTH_OBJS="$AUTH_OBJS kerb4.lo"
17515 fi
17516
17517 if test ${with_kerb5-'no'} != "no"; then
17518     # Extract the first word of "krb5-config", so it can be a program name with args.
17519 set dummy krb5-config; ac_word=$2
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17521 $as_echo_n "checking for $ac_word... " >&6; }
17522 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then :
17523   $as_echo_n "(cached) " >&6
17524 else
17525   if test -n "$KRB5CONFIG"; then
17526   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
17527 else
17528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17529 for as_dir in $PATH
17530 do
17531   IFS=$as_save_IFS
17532   test -z "$as_dir" && as_dir=.
17533     for ac_exec_ext in '' $ac_executable_extensions; do
17534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17535     ac_cv_prog_KRB5CONFIG="yes"
17536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17537     break 2
17538   fi
17539 done
17540   done
17541 IFS=$as_save_IFS
17542
17543   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
17544 fi
17545 fi
17546 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
17547 if test -n "$KRB5CONFIG"; then
17548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
17549 $as_echo "$KRB5CONFIG" >&6; }
17550 else
17551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17552 $as_echo "no" >&6; }
17553 fi
17554
17555
17556     if test -n "$KRB5CONFIG"; then
17557         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
17558
17559         AUTH_OBJS="$AUTH_OBJS kerb5.lo"
17560         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
17561         SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
17562                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17563 $as_echo_n "checking whether we are using Heimdal... " >&6; }
17564         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h.  */
17566 #include <krb5.h>
17567 int
17568 main ()
17569 {
17570 const char *tmp = heimdal_version;
17571   ;
17572   return 0;
17573 }
17574 _ACEOF
17575 if ac_fn_c_try_compile "$LINENO"; then :
17576
17577                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17578 $as_echo "yes" >&6; }
17579                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17580
17581
17582 else
17583
17584                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17585 $as_echo "no" >&6; }
17586
17587
17588 fi
17589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17590     else
17591         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
17592
17593                                 if test "$with_kerb5" = "yes"; then
17594             found=no
17595             O_CPPFLAGS="$CPPFLAGS"
17596             for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
17597                 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
17598                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h.  */
17600 #include <krb5.h>
17601 _ACEOF
17602 if ac_fn_c_try_cpp "$LINENO"; then :
17603   found=yes; break
17604 fi
17605 rm -f conftest.err conftest.$ac_ext
17606             done
17607             if test X"$found" = X"no"; then
17608                 CPPFLAGS="$O_CPPFLAGS"
17609                 { $as_echo "$as_me:${as_lineno-$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
17610 $as_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;}
17611             fi
17612         else
17613
17614     if test X"$with_rpath" = X"yes"; then
17615         case "$host" in
17616             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
17617                         ;;
17618             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
17619                         ;;
17620         esac
17621     else
17622         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
17623     fi
17624     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17625         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
17626     fi
17627
17628             CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
17629         fi
17630
17631                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17632 $as_echo_n "checking whether we are using Heimdal... " >&6; }
17633         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h.  */
17635 #include <krb5.h>
17636 int
17637 main ()
17638 {
17639 const char *tmp = heimdal_version;
17640   ;
17641   return 0;
17642 }
17643 _ACEOF
17644 if ac_fn_c_try_compile "$LINENO"; then :
17645
17646                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17647 $as_echo "yes" >&6; }
17648                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17649
17650                 # XXX - need to check whether -lcrypo is needed!
17651                 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
17652                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
17653 $as_echo_n "checking for main in -lroken... " >&6; }
17654 if test "${ac_cv_lib_roken_main+set}" = set; then :
17655   $as_echo_n "(cached) " >&6
17656 else
17657   ac_check_lib_save_LIBS=$LIBS
17658 LIBS="-lroken  $LIBS"
17659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660 /* end confdefs.h.  */
17661
17662
17663 int
17664 main ()
17665 {
17666 return main ();
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 if ac_fn_c_try_link "$LINENO"; then :
17672   ac_cv_lib_roken_main=yes
17673 else
17674   ac_cv_lib_roken_main=no
17675 fi
17676 rm -f core conftest.err conftest.$ac_objext \
17677     conftest$ac_exeext conftest.$ac_ext
17678 LIBS=$ac_check_lib_save_LIBS
17679 fi
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
17681 $as_echo "$ac_cv_lib_roken_main" >&6; }
17682 if test "x$ac_cv_lib_roken_main" = x""yes; then :
17683   SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
17684 fi
17685
17686
17687 else
17688
17689                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17690 $as_echo "no" >&6; }
17691                 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
17692                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
17693 $as_echo_n "checking for main in -lkrb5support... " >&6; }
17694 if test "${ac_cv_lib_krb5support_main+set}" = set; then :
17695   $as_echo_n "(cached) " >&6
17696 else
17697   ac_check_lib_save_LIBS=$LIBS
17698 LIBS="-lkrb5support  $LIBS"
17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h.  */
17701
17702
17703 int
17704 main ()
17705 {
17706 return main ();
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 if ac_fn_c_try_link "$LINENO"; then :
17712   ac_cv_lib_krb5support_main=yes
17713 else
17714   ac_cv_lib_krb5support_main=no
17715 fi
17716 rm -f core conftest.err conftest.$ac_objext \
17717     conftest$ac_exeext conftest.$ac_ext
17718 LIBS=$ac_check_lib_save_LIBS
17719 fi
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
17721 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
17722 if test "x$ac_cv_lib_krb5support_main" = x""yes; then :
17723   SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
17724 fi
17725
17726
17727 fi
17728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17729         AUTH_OBJS="$AUTH_OBJS kerb5.lo"
17730     fi
17731     _LIBS="$LIBS"
17732     LIBS="${LIBS} ${SUDOERS_LIBS}"
17733     for ac_func in krb5_verify_user krb5_init_secure_context
17734 do :
17735   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17737 eval as_val=\$$as_ac_var
17738    if test "x$as_val" = x""yes; then :
17739   cat >>confdefs.h <<_ACEOF
17740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17741 _ACEOF
17742
17743 fi
17744 done
17745
17746     for ac_func in krb5_get_init_creds_opt_alloc
17747 do :
17748   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
17749 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = x""yes; then :
17750   cat >>confdefs.h <<_ACEOF
17751 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
17752 _ACEOF
17753
17754         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
17755 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
17756 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then :
17757   $as_echo_n "(cached) " >&6
17758 else
17759
17760                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h.  */
17762 #include <krb5.h>
17763 int
17764 main ()
17765 {
17766 krb5_get_init_creds_opt_free(NULL, NULL);
17767
17768   ;
17769   return 0;
17770 }
17771 _ACEOF
17772 if ac_fn_c_try_compile "$LINENO"; then :
17773   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
17774 else
17775   sudo_cv_krb5_get_init_creds_opt_free_two_args=no
17776
17777 fi
17778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17779
17780
17781 fi
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
17783 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
17784
17785 fi
17786 done
17787
17788     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
17789         $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
17790
17791     fi
17792     LIBS="$_LIBS"
17793 fi
17794
17795 if test ${with_AFS-'no'} = "yes"; then
17796
17797     # looks like the "standard" place for AFS libs is /usr/afsws/lib
17798     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
17799     for i in $AFSLIBDIRS; do
17800         if test -d ${i}; then
17801
17802     if test X"$with_rpath" = X"yes"; then
17803         case "$host" in
17804             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
17805                         ;;
17806             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
17807                         ;;
17808         esac
17809     else
17810         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
17811     fi
17812     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17813         blibpath_add="${blibpath_add}:$i"
17814     fi
17815
17816             FOUND_AFSLIBDIR=true
17817         fi
17818     done
17819     if test -z "$FOUND_AFSLIBDIR"; then
17820         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&5
17821 $as_echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
17822     fi
17823
17824     # Order is important here.  Note that we build AFS_LIBS from right to left
17825     # since AFS_LIBS may be initialized with BSD compat libs that must go last
17826     AFS_LIBS="-laudit ${AFS_LIBS}"
17827     for i in $AFSLIBDIRS; do
17828         if test -f ${i}/util.a; then
17829             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
17830             FOUND_UTIL_A=true
17831             break;
17832         fi
17833     done
17834     if test -z "$FOUND_UTIL_A"; then
17835         AFS_LIBS="-lutil ${AFS_LIBS}"
17836     fi
17837     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
17838
17839     # AFS includes may live in /usr/include on some machines...
17840     for i in /usr/afsws/include; do
17841         if test -d ${i}; then
17842             CPPFLAGS="${CPPFLAGS} -I${i}"
17843             FOUND_AFSINCDIR=true
17844         fi
17845     done
17846
17847     if test -z "$FOUND_AFSLIBDIR"; then
17848         { $as_echo "$as_me:${as_lineno-$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
17849 $as_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;}
17850     fi
17851
17852     AUTH_OBJS="$AUTH_OBJS afs.lo"
17853 fi
17854
17855 if test ${with_DCE-'no'} = "yes"; then
17856     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
17857     SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
17858     AUTH_OBJS="$AUTH_OBJS dce.lo"
17859 fi
17860
17861 if test "${with_skey-'no'}" = "yes"; then
17862     O_LDFLAGS="$LDFLAGS"
17863     if test "$with_skey" != "yes"; then
17864         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
17865
17866     if test X"$with_rpath" = X"yes"; then
17867         case "$host" in
17868             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17869                         ;;
17870             *)          LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17871                         ;;
17872         esac
17873     else
17874         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
17875     fi
17876     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17877         blibpath_add="${blibpath_add}:${with_skey}/lib"
17878     fi
17879
17880
17881     if test X"$with_rpath" = X"yes"; then
17882         case "$host" in
17883             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17884                         ;;
17885             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17886                         ;;
17887         esac
17888     else
17889         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
17890     fi
17891     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17892         blibpath_add="${blibpath_add}:${with_skey}/lib"
17893     fi
17894
17895         ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
17896 "
17897 if test "x$ac_cv_header_skey_h" = x""yes; then :
17898   found=yes
17899 else
17900   found=no
17901 fi
17902
17903
17904     else
17905         found=no
17906         O_CPPFLAGS="$CPPFLAGS"
17907         for dir in "" "/usr/local" "/usr/contrib"; do
17908             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17909             ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
17910 "
17911 if test "x$ac_cv_header_skey_h" = x""yes; then :
17912   found=yes; break
17913 fi
17914
17915
17916         done
17917         if test "$found" = "no" -o -z "$dir"; then
17918             CPPFLAGS="$O_CPPFLAGS"
17919         else
17920
17921     if test X"$with_rpath" = X"yes"; then
17922         case "$host" in
17923             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17924                         ;;
17925             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17926                         ;;
17927         esac
17928     else
17929         LDFLAGS="${LDFLAGS} -L${dir}/lib"
17930     fi
17931     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17932         blibpath_add="${blibpath_add}:${dir}/lib"
17933     fi
17934
17935
17936     if test X"$with_rpath" = X"yes"; then
17937         case "$host" in
17938             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17939                         ;;
17940             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17941                         ;;
17942         esac
17943     else
17944         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
17945     fi
17946     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17947         blibpath_add="${blibpath_add}:${dir}/lib"
17948     fi
17949
17950         fi
17951         if test "$found" = "no"; then
17952             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
17953 $as_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;}
17954         fi
17955     fi
17956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
17957 $as_echo_n "checking for main in -lskey... " >&6; }
17958 if test "${ac_cv_lib_skey_main+set}" = set; then :
17959   $as_echo_n "(cached) " >&6
17960 else
17961   ac_check_lib_save_LIBS=$LIBS
17962 LIBS="-lskey  $LIBS"
17963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17964 /* end confdefs.h.  */
17965
17966
17967 int
17968 main ()
17969 {
17970 return main ();
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 if ac_fn_c_try_link "$LINENO"; then :
17976   ac_cv_lib_skey_main=yes
17977 else
17978   ac_cv_lib_skey_main=no
17979 fi
17980 rm -f core conftest.err conftest.$ac_objext \
17981     conftest$ac_exeext conftest.$ac_ext
17982 LIBS=$ac_check_lib_save_LIBS
17983 fi
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
17985 $as_echo "$ac_cv_lib_skey_main" >&6; }
17986 if test "x$ac_cv_lib_skey_main" = x""yes; then :
17987   found=yes
17988 else
17989   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&5
17990 $as_echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&2;}
17991 fi
17992
17993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
17994 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
17995 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then :
17996   $as_echo_n "(cached) " >&6
17997 else
17998   ac_check_lib_save_LIBS=$LIBS
17999 LIBS="-lskey  $LIBS"
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h.  */
18002
18003 /* Override any GCC internal prototype to avoid an error.
18004    Use char because int might match the return type of a GCC
18005    builtin and then its argument prototype would still apply.  */
18006 #ifdef __cplusplus
18007 extern "C"
18008 #endif
18009 char skeyaccess ();
18010 int
18011 main ()
18012 {
18013 return skeyaccess ();
18014   ;
18015   return 0;
18016 }
18017 _ACEOF
18018 if ac_fn_c_try_link "$LINENO"; then :
18019   ac_cv_lib_skey_skeyaccess=yes
18020 else
18021   ac_cv_lib_skey_skeyaccess=no
18022 fi
18023 rm -f core conftest.err conftest.$ac_objext \
18024     conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_lib_save_LIBS
18026 fi
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
18028 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
18029 if test "x$ac_cv_lib_skey_skeyaccess" = x""yes; then :
18030   $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
18031
18032 fi
18033
18034
18035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
18036 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
18037     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18038 /* end confdefs.h.  */
18039 #include <stdio.h>
18040             #include <skey.h>
18041 int
18042 main ()
18043 {
18044 skeychallenge(NULL, NULL, NULL, 0);
18045
18046   ;
18047   return 0;
18048 }
18049 _ACEOF
18050 if ac_fn_c_try_compile "$LINENO"; then :
18051
18052             $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
18053
18054             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18055 $as_echo "yes" >&6; }
18056
18057 else
18058
18059             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18060 $as_echo "no" >&6; }
18061
18062
18063 fi
18064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18065
18066     LDFLAGS="$O_LDFLAGS"
18067     SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
18068     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
18069 fi
18070
18071 if test "${with_opie-'no'}" = "yes"; then
18072     O_LDFLAGS="$LDFLAGS"
18073     if test "$with_opie" != "yes"; then
18074         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
18075
18076     if test X"$with_rpath" = X"yes"; then
18077         case "$host" in
18078             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18079                         ;;
18080             *)          LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
18081                         ;;
18082         esac
18083     else
18084         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
18085     fi
18086     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18087         blibpath_add="${blibpath_add}:${with_opie}/lib"
18088     fi
18089
18090
18091     if test X"$with_rpath" = X"yes"; then
18092         case "$host" in
18093             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18094                         ;;
18095             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
18096                         ;;
18097         esac
18098     else
18099         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
18100     fi
18101     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18102         blibpath_add="${blibpath_add}:${with_opie}/lib"
18103     fi
18104
18105         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18106 /* end confdefs.h.  */
18107 #include <opie.h>
18108 _ACEOF
18109 if ac_fn_c_try_cpp "$LINENO"; then :
18110   found=yes
18111 else
18112   found=no
18113 fi
18114 rm -f conftest.err conftest.$ac_ext
18115     else
18116         found=no
18117         O_CPPFLAGS="$CPPFLAGS"
18118         for dir in "" "/usr/local" "/usr/contrib"; do
18119             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
18120             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h.  */
18122 #include <opie.h>
18123 _ACEOF
18124 if ac_fn_c_try_cpp "$LINENO"; then :
18125   found=yes; break
18126 fi
18127 rm -f conftest.err conftest.$ac_ext
18128         done
18129         if test "$found" = "no" -o -z "$dir"; then
18130             CPPFLAGS="$O_CPPFLAGS"
18131         else
18132
18133     if test X"$with_rpath" = X"yes"; then
18134         case "$host" in
18135             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18136                         ;;
18137             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18138                         ;;
18139         esac
18140     else
18141         LDFLAGS="${LDFLAGS} -L${dir}/lib"
18142     fi
18143     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18144         blibpath_add="${blibpath_add}:${dir}/lib"
18145     fi
18146
18147
18148     if test X"$with_rpath" = X"yes"; then
18149         case "$host" in
18150             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18151                         ;;
18152             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18153                         ;;
18154         esac
18155     else
18156         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
18157     fi
18158     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18159         blibpath_add="${blibpath_add}:${dir}/lib"
18160     fi
18161
18162         fi
18163         if test "$found" = "no"; then
18164             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
18165 $as_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;}
18166         fi
18167     fi
18168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
18169 $as_echo_n "checking for main in -lopie... " >&6; }
18170 if test "${ac_cv_lib_opie_main+set}" = set; then :
18171   $as_echo_n "(cached) " >&6
18172 else
18173   ac_check_lib_save_LIBS=$LIBS
18174 LIBS="-lopie  $LIBS"
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h.  */
18177
18178
18179 int
18180 main ()
18181 {
18182 return main ();
18183   ;
18184   return 0;
18185 }
18186 _ACEOF
18187 if ac_fn_c_try_link "$LINENO"; then :
18188   ac_cv_lib_opie_main=yes
18189 else
18190   ac_cv_lib_opie_main=no
18191 fi
18192 rm -f core conftest.err conftest.$ac_objext \
18193     conftest$ac_exeext conftest.$ac_ext
18194 LIBS=$ac_check_lib_save_LIBS
18195 fi
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
18197 $as_echo "$ac_cv_lib_opie_main" >&6; }
18198 if test "x$ac_cv_lib_opie_main" = x""yes; then :
18199   found=yes
18200 else
18201   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&5
18202 $as_echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&2;}
18203 fi
18204
18205     LDFLAGS="$O_LDFLAGS"
18206     SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
18207     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
18208 fi
18209
18210 if test ${with_passwd-'no'} != "no"; then
18211                 if test -z "$LIB_CRYPT"; then
18212         _LIBS="$LIBS"
18213         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
18214 $as_echo_n "checking for library containing crypt... " >&6; }
18215 if test "${ac_cv_search_crypt+set}" = set; then :
18216   $as_echo_n "(cached) " >&6
18217 else
18218   ac_func_search_save_LIBS=$LIBS
18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h.  */
18221
18222 /* Override any GCC internal prototype to avoid an error.
18223    Use char because int might match the return type of a GCC
18224    builtin and then its argument prototype would still apply.  */
18225 #ifdef __cplusplus
18226 extern "C"
18227 #endif
18228 char crypt ();
18229 int
18230 main ()
18231 {
18232 return crypt ();
18233   ;
18234   return 0;
18235 }
18236 _ACEOF
18237 for ac_lib in '' crypt crypt_d ufc; do
18238   if test -z "$ac_lib"; then
18239     ac_res="none required"
18240   else
18241     ac_res=-l$ac_lib
18242     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18243   fi
18244   if ac_fn_c_try_link "$LINENO"; then :
18245   ac_cv_search_crypt=$ac_res
18246 fi
18247 rm -f core conftest.err conftest.$ac_objext \
18248     conftest$ac_exeext
18249   if test "${ac_cv_search_crypt+set}" = set; then :
18250   break
18251 fi
18252 done
18253 if test "${ac_cv_search_crypt+set}" = set; then :
18254
18255 else
18256   ac_cv_search_crypt=no
18257 fi
18258 rm conftest.$ac_ext
18259 LIBS=$ac_func_search_save_LIBS
18260 fi
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
18262 $as_echo "$ac_cv_search_crypt" >&6; }
18263 ac_res=$ac_cv_search_crypt
18264 if test "$ac_res" != no; then :
18265   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18266   test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
18267 fi
18268
18269         LIBS="$_LIBS"
18270     fi
18271
18272     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
18273         _LIBS="$LIBS"
18274         LIBS="$LIBS $shadow_libs"
18275         found=no
18276         for ac_func in $shadow_funcs
18277 do :
18278   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18280 eval as_val=\$$as_ac_var
18281    if test "x$as_val" = x""yes; then :
18282   cat >>confdefs.h <<_ACEOF
18283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18284 _ACEOF
18285  found=yes
18286 fi
18287 done
18288
18289         if test "$found" = "yes"; then
18290             SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
18291         elif test -n "$shadow_libs_optional"; then
18292             LIBS="$LIBS $shadow_libs_optional"
18293             for ac_func in $shadow_funcs
18294 do :
18295   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18297 eval as_val=\$$as_ac_var
18298    if test "x$as_val" = x""yes; then :
18299   cat >>confdefs.h <<_ACEOF
18300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18301 _ACEOF
18302  found=yes
18303 fi
18304 done
18305
18306             if test "$found" = "yes"; then
18307                 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
18308             fi
18309         fi
18310         if test "$found" = "yes"; then
18311             case "$shadow_funcs" in
18312                 *getprpwnam*) SECUREWARE=1;;
18313             esac
18314             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
18315         else
18316             LIBS="$_LIBS"
18317         fi
18318         CHECKSHADOW=false
18319     fi
18320     if test "$CHECKSHADOW" = "true"; then
18321         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
18322 $as_echo_n "checking for library containing getspnam... " >&6; }
18323 if test "${ac_cv_search_getspnam+set}" = set; then :
18324   $as_echo_n "(cached) " >&6
18325 else
18326   ac_func_search_save_LIBS=$LIBS
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h.  */
18329
18330 /* Override any GCC internal prototype to avoid an error.
18331    Use char because int might match the return type of a GCC
18332    builtin and then its argument prototype would still apply.  */
18333 #ifdef __cplusplus
18334 extern "C"
18335 #endif
18336 char getspnam ();
18337 int
18338 main ()
18339 {
18340 return getspnam ();
18341   ;
18342   return 0;
18343 }
18344 _ACEOF
18345 for ac_lib in '' gen; do
18346   if test -z "$ac_lib"; then
18347     ac_res="none required"
18348   else
18349     ac_res=-l$ac_lib
18350     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18351   fi
18352   if ac_fn_c_try_link "$LINENO"; then :
18353   ac_cv_search_getspnam=$ac_res
18354 fi
18355 rm -f core conftest.err conftest.$ac_objext \
18356     conftest$ac_exeext
18357   if test "${ac_cv_search_getspnam+set}" = set; then :
18358   break
18359 fi
18360 done
18361 if test "${ac_cv_search_getspnam+set}" = set; then :
18362
18363 else
18364   ac_cv_search_getspnam=no
18365 fi
18366 rm conftest.$ac_ext
18367 LIBS=$ac_func_search_save_LIBS
18368 fi
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
18370 $as_echo "$ac_cv_search_getspnam" >&6; }
18371 ac_res=$ac_cv_search_getspnam
18372 if test "$ac_res" != no; then :
18373   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18374   $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
18375  CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
18376 fi
18377
18378     fi
18379     if test "$CHECKSHADOW" = "true"; then
18380         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
18381 $as_echo_n "checking for library containing getprpwnam... " >&6; }
18382 if test "${ac_cv_search_getprpwnam+set}" = set; then :
18383   $as_echo_n "(cached) " >&6
18384 else
18385   ac_func_search_save_LIBS=$LIBS
18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h.  */
18388
18389 /* Override any GCC internal prototype to avoid an error.
18390    Use char because int might match the return type of a GCC
18391    builtin and then its argument prototype would still apply.  */
18392 #ifdef __cplusplus
18393 extern "C"
18394 #endif
18395 char getprpwnam ();
18396 int
18397 main ()
18398 {
18399 return getprpwnam ();
18400   ;
18401   return 0;
18402 }
18403 _ACEOF
18404 for ac_lib in '' sec security prot; do
18405   if test -z "$ac_lib"; then
18406     ac_res="none required"
18407   else
18408     ac_res=-l$ac_lib
18409     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18410   fi
18411   if ac_fn_c_try_link "$LINENO"; then :
18412   ac_cv_search_getprpwnam=$ac_res
18413 fi
18414 rm -f core conftest.err conftest.$ac_objext \
18415     conftest$ac_exeext
18416   if test "${ac_cv_search_getprpwnam+set}" = set; then :
18417   break
18418 fi
18419 done
18420 if test "${ac_cv_search_getprpwnam+set}" = set; then :
18421
18422 else
18423   ac_cv_search_getprpwnam=no
18424 fi
18425 rm conftest.$ac_ext
18426 LIBS=$ac_func_search_save_LIBS
18427 fi
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
18429 $as_echo "$ac_cv_search_getprpwnam" >&6; }
18430 ac_res=$ac_cv_search_getprpwnam
18431 if test "$ac_res" != no; then :
18432   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18433   $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
18434  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
18435 fi
18436
18437     fi
18438     if test -n "$SECUREWARE"; then
18439         for ac_func in bigcrypt set_auth_parameters initprivs
18440 do :
18441   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18443 eval as_val=\$$as_ac_var
18444    if test "x$as_val" = x""yes; then :
18445   cat >>confdefs.h <<_ACEOF
18446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18447 _ACEOF
18448
18449 fi
18450 done
18451
18452         AUTH_OBJS="$AUTH_OBJS secureware.lo"
18453     fi
18454 fi
18455
18456 if test ${with_ldap-'no'} != "no"; then
18457     _LDFLAGS="$LDFLAGS"
18458     if test "$with_ldap" != "yes"; then
18459
18460     if test X"$with_rpath" = X"yes"; then
18461         case "$host" in
18462             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
18463                         ;;
18464             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
18465                         ;;
18466         esac
18467     else
18468         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
18469     fi
18470     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18471         blibpath_add="${blibpath_add}:${with_ldap}/lib"
18472     fi
18473
18474
18475     if test X"$with_rpath" = X"yes"; then
18476         case "$host" in
18477             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
18478                         ;;
18479             *)          LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
18480                         ;;
18481         esac
18482     else
18483         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
18484     fi
18485     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18486         blibpath_add="${blibpath_add}:${with_ldap}/lib"
18487     fi
18488
18489         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
18490         with_ldap=yes
18491     fi
18492     SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
18493     LDAP=""
18494
18495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
18496 $as_echo_n "checking for LDAP libraries... " >&6; }
18497     LDAP_LIBS=""
18498     _LIBS="$LIBS"
18499     found=no
18500     for l in -lldap -llber '-lssl -lcrypto'; do
18501         LIBS="${LIBS} $l"
18502         LDAP_LIBS="${LDAP_LIBS} $l"
18503         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h.  */
18505 #include <sys/types.h>
18506         #include <lber.h>
18507         #include <ldap.h>
18508 int
18509 main ()
18510 {
18511 (void)ldap_init(0, 0)
18512   ;
18513   return 0;
18514 }
18515 _ACEOF
18516 if ac_fn_c_try_link "$LINENO"; then :
18517   found=yes; break
18518 fi
18519 rm -f core conftest.err conftest.$ac_objext \
18520     conftest$ac_exeext conftest.$ac_ext
18521     done
18522         if test "$found" = "no"; then
18523         LIBS="${_LIBS} -lldap"
18524         LDAP_LIBS="-lldap"
18525         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
18526 $as_echo "not found, using -lldap" >&6; }
18527     else
18528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
18529 $as_echo "$LDAP_LIBS" >&6; }
18530     fi
18531         OLIBS="$LIBS"
18532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
18533 $as_echo_n "checking for library containing ber_set_option... " >&6; }
18534 if test "${ac_cv_search_ber_set_option+set}" = set; then :
18535   $as_echo_n "(cached) " >&6
18536 else
18537   ac_func_search_save_LIBS=$LIBS
18538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h.  */
18540
18541 /* Override any GCC internal prototype to avoid an error.
18542    Use char because int might match the return type of a GCC
18543    builtin and then its argument prototype would still apply.  */
18544 #ifdef __cplusplus
18545 extern "C"
18546 #endif
18547 char ber_set_option ();
18548 int
18549 main ()
18550 {
18551 return ber_set_option ();
18552   ;
18553   return 0;
18554 }
18555 _ACEOF
18556 for ac_lib in '' lber; do
18557   if test -z "$ac_lib"; then
18558     ac_res="none required"
18559   else
18560     ac_res=-l$ac_lib
18561     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18562   fi
18563   if ac_fn_c_try_link "$LINENO"; then :
18564   ac_cv_search_ber_set_option=$ac_res
18565 fi
18566 rm -f core conftest.err conftest.$ac_objext \
18567     conftest$ac_exeext
18568   if test "${ac_cv_search_ber_set_option+set}" = set; then :
18569   break
18570 fi
18571 done
18572 if test "${ac_cv_search_ber_set_option+set}" = set; then :
18573
18574 else
18575   ac_cv_search_ber_set_option=no
18576 fi
18577 rm conftest.$ac_ext
18578 LIBS=$ac_func_search_save_LIBS
18579 fi
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
18581 $as_echo "$ac_cv_search_ber_set_option" >&6; }
18582 ac_res=$ac_cv_search_ber_set_option
18583 if test "$ac_res" != no; then :
18584   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18585   found=yes
18586 else
18587   found=no
18588 fi
18589
18590     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
18591         LDAP_LIBS="$LDAP_LIBS -llber"
18592     fi
18593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
18594 $as_echo_n "checking whether lber.h is needed... " >&6; }
18595     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596 /* end confdefs.h.  */
18597 #include <sys/types.h>
18598     #include <ldap.h>
18599 int
18600 main ()
18601 {
18602 (void)ldap_init(0, 0)
18603   ;
18604   return 0;
18605 }
18606 _ACEOF
18607 if ac_fn_c_try_link "$LINENO"; then :
18608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18609 $as_echo "no" >&6; }
18610 else
18611
18612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18613 $as_echo "yes" >&6; }
18614     $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
18615
18616 fi
18617 rm -f core conftest.err conftest.$ac_objext \
18618     conftest$ac_exeext conftest.$ac_ext
18619
18620     for ac_header in sasl/sasl.h sasl.h
18621 do :
18622   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18623 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18624 eval as_val=\$$as_ac_Header
18625    if test "x$as_val" = x""yes; then :
18626   cat >>confdefs.h <<_ACEOF
18627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18628 _ACEOF
18629  for ac_func in ldap_sasl_interactive_bind_s
18630 do :
18631   ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
18632 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = x""yes; then :
18633   cat >>confdefs.h <<_ACEOF
18634 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
18635 _ACEOF
18636
18637 fi
18638 done
18639
18640 else
18641   break
18642 fi
18643
18644 done
18645
18646     for ac_header in ldap_ssl.h mps/ldap_ssl.h
18647 do :
18648   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18649 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
18650 "
18651 eval as_val=\$$as_ac_Header
18652    if test "x$as_val" = x""yes; then :
18653   cat >>confdefs.h <<_ACEOF
18654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18655 _ACEOF
18656  break
18657 fi
18658
18659 done
18660
18661     for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
18662 do :
18663   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18664 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18665 eval as_val=\$$as_ac_var
18666    if test "x$as_val" = x""yes; then :
18667   cat >>confdefs.h <<_ACEOF
18668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18669 _ACEOF
18670
18671 fi
18672 done
18673
18674     for ac_func in ldap_search_ext_s ldap_search_st
18675 do :
18676   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18678 eval as_val=\$$as_ac_var
18679    if test "x$as_val" = x""yes; then :
18680   cat >>confdefs.h <<_ACEOF
18681 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18682 _ACEOF
18683  break
18684 fi
18685 done
18686
18687
18688     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
18689         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
18690 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
18691 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then :
18692   $as_echo_n "(cached) " >&6
18693 else
18694   ac_check_lib_save_LIBS=$LIBS
18695 LIBS="-lgssapi  $LIBS"
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h.  */
18698
18699 /* Override any GCC internal prototype to avoid an error.
18700    Use char because int might match the return type of a GCC
18701    builtin and then its argument prototype would still apply.  */
18702 #ifdef __cplusplus
18703 extern "C"
18704 #endif
18705 char gss_krb5_ccache_name ();
18706 int
18707 main ()
18708 {
18709 return gss_krb5_ccache_name ();
18710   ;
18711   return 0;
18712 }
18713 _ACEOF
18714 if ac_fn_c_try_link "$LINENO"; then :
18715   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
18716 else
18717   ac_cv_lib_gssapi_gss_krb5_ccache_name=no
18718 fi
18719 rm -f core conftest.err conftest.$ac_objext \
18720     conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18722 fi
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
18724 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
18725 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = x""yes; then :
18726   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18727
18728             LDAP_LIBS="${LDAP_LIBS} -lgssapi"
18729 else
18730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
18731 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
18732 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then :
18733   $as_echo_n "(cached) " >&6
18734 else
18735   ac_check_lib_save_LIBS=$LIBS
18736 LIBS="-lgssapi_krb5  $LIBS"
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h.  */
18739
18740 /* Override any GCC internal prototype to avoid an error.
18741    Use char because int might match the return type of a GCC
18742    builtin and then its argument prototype would still apply.  */
18743 #ifdef __cplusplus
18744 extern "C"
18745 #endif
18746 char gss_krb5_ccache_name ();
18747 int
18748 main ()
18749 {
18750 return gss_krb5_ccache_name ();
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 if ac_fn_c_try_link "$LINENO"; then :
18756   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
18757 else
18758   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
18759 fi
18760 rm -f core conftest.err conftest.$ac_objext \
18761     conftest$ac_exeext conftest.$ac_ext
18762 LIBS=$ac_check_lib_save_LIBS
18763 fi
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
18765 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
18766 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = x""yes; then :
18767   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18768
18769                 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
18770 fi
18771
18772
18773 fi
18774
18775
18776         # gssapi headers may be separate or part of Kerberos V
18777         found=no
18778         O_CPPFLAGS="$CPPFLAGS"
18779         for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
18780             test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18781             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782 /* end confdefs.h.  */
18783 #include <gssapi/gssapi.h>
18784 _ACEOF
18785 if ac_fn_c_try_cpp "$LINENO"; then :
18786   found="gssapi/gssapi.h"; break
18787 else
18788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h.  */
18790 #include <gssapi.h>
18791 _ACEOF
18792 if ac_fn_c_try_cpp "$LINENO"; then :
18793   found="gssapi.h"; break
18794 fi
18795 rm -f conftest.err conftest.$ac_ext
18796 fi
18797 rm -f conftest.err conftest.$ac_ext
18798         done
18799         if test X"$found" != X"no"; then
18800             for ac_header in $found
18801 do :
18802   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18803 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18804 eval as_val=\$$as_ac_Header
18805    if test "x$as_val" = x""yes; then :
18806   cat >>confdefs.h <<_ACEOF
18807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18808 _ACEOF
18809
18810 fi
18811
18812 done
18813
18814             if test X"$found" = X"gssapi/gssapi.h"; then
18815                 for ac_header in gssapi/gssapi_krb5.h
18816 do :
18817   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
18818 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = x""yes; then :
18819   cat >>confdefs.h <<_ACEOF
18820 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
18821 _ACEOF
18822
18823 fi
18824
18825 done
18826
18827             fi
18828         else
18829             CPPFLAGS="$O_CPPFLAGS"
18830             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
18831 $as_echo "$as_me: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&2;}
18832         fi
18833     fi
18834
18835     SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
18836     LIBS="$_LIBS"
18837     LDFLAGS="$_LDFLAGS"
18838 fi
18839
18840 #
18841 # How to do dynamic object loading.
18842 # We support dlopen() and sh_load(), else fall back to static loading.
18843 #
18844 case "$lt_cv_dlopen" in
18845     dlopen)
18846         $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
18847
18848         SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
18849         LT_STATIC="--tag=disable-static"
18850         ;;
18851     shl_load)
18852         $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
18853
18854         SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
18855         LT_STATIC="--tag=disable-static"
18856         case " $LIBOBJS " in
18857   *" dlopen.$ac_objext "* ) ;;
18858   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
18859  ;;
18860 esac
18861
18862         ;;
18863     *)
18864         # Preload sudoers module symbols
18865         SUDO_OBJS="${SUDO_OBJS} preload.o"
18866         SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
18867         LT_STATIC=""
18868         case " $LIBOBJS " in
18869   *" dlopen.$ac_objext "* ) ;;
18870   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
18871  ;;
18872 esac
18873
18874         ;;
18875 esac
18876
18877 #
18878 # Add library needed for dynamic loading, if any.
18879 #
18880 LIBDL="$lt_cv_dlopen_libs"
18881 if test X"$LIBDL" != X""; then
18882     SUDO_LIBS="${SUDO_LIBS} $LIBDL"
18883     SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
18884 fi
18885
18886 # On HP-UX, you cannot dlopen() a shared object that uses pthreads
18887 # unless the main program is linked against -lpthread.  Since we
18888 # have no knowledge what libraries a plugin may depend on, we always
18889 # link against -lpthread on HP-UX if it is available.
18890 # This check should go after all other libraries tests.
18891 case "$host" in
18892     *-*-hpux*)
18893         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
18894 $as_echo_n "checking for main in -lpthread... " >&6; }
18895 if test "${ac_cv_lib_pthread_main+set}" = set; then :
18896   $as_echo_n "(cached) " >&6
18897 else
18898   ac_check_lib_save_LIBS=$LIBS
18899 LIBS="-lpthread  $LIBS"
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h.  */
18902
18903
18904 int
18905 main ()
18906 {
18907 return main ();
18908   ;
18909   return 0;
18910 }
18911 _ACEOF
18912 if ac_fn_c_try_link "$LINENO"; then :
18913   ac_cv_lib_pthread_main=yes
18914 else
18915   ac_cv_lib_pthread_main=no
18916 fi
18917 rm -f core conftest.err conftest.$ac_objext \
18918     conftest$ac_exeext conftest.$ac_ext
18919 LIBS=$ac_check_lib_save_LIBS
18920 fi
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
18922 $as_echo "$ac_cv_lib_pthread_main" >&6; }
18923 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
18924   SUDO_LIBS="${SUDO_LIBS} -lpthread"
18925 fi
18926
18927         ;;
18928 esac
18929
18930 if test -n "$blibpath"; then
18931     if test -n "$blibpath_add"; then
18932         SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
18933     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
18934         SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
18935     fi
18936 fi
18937
18938 if test "$utmp_style" = "LEGACY"; then
18939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
18940 $as_echo_n "checking for utmp file path... " >&6; }
18941 found=no
18942 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
18943     if test -r "$p"; then
18944         found=yes
18945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
18946 $as_echo "$p" >&6; }
18947         cat >>confdefs.h <<EOF
18948 #define _PATH_UTMP "$p"
18949 EOF
18950
18951         break
18952     fi
18953 done
18954 if test X"$found" != X"yes"; then
18955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18956 $as_echo "not found" >&6; }
18957 fi
18958
18959 fi
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
18961 $as_echo_n "checking for log file location... " >&6; }
18962 if test -n "$with_logpath"; then
18963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
18964 $as_echo "$with_logpath" >&6; }
18965     cat >>confdefs.h <<EOF
18966 #define _PATH_SUDO_LOGFILE "$with_logpath"
18967 EOF
18968
18969 elif test -d "/var/log"; then
18970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
18971 $as_echo "/var/log/sudo.log" >&6; }
18972     cat >>confdefs.h <<\EOF
18973 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
18974 EOF
18975
18976 elif test -d "/var/adm"; then
18977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
18978 $as_echo "/var/adm/sudo.log" >&6; }
18979     cat >>confdefs.h <<\EOF
18980 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
18981 EOF
18982
18983 elif test -d "/usr/adm"; then
18984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
18985 $as_echo "/usr/adm/sudo.log" >&6; }
18986     cat >>confdefs.h <<\EOF
18987 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
18988 EOF
18989
18990 else
18991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
18992 $as_echo "unknown" >&6; }
18993 fi
18994
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
18996 $as_echo_n "checking for timestamp file location... " >&6; }
18997 timedir="$with_timedir"
18998 if test -z "$timedir"; then
18999     for d in /var/db /var/lib /var/adm /usr/adm; do
19000         if test -d "$d"; then
19001             timedir="$d/sudo"
19002             break
19003         fi
19004     done
19005 fi
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
19007 $as_echo "$timedir" >&6; }
19008 cat >>confdefs.h <<EOF
19009 #define _PATH_SUDO_TIMEDIR "$timedir"
19010 EOF
19011
19012
19013
19014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
19015 $as_echo_n "checking for I/O log dir location... " >&6; }
19016     if test "${with_iologdir-yes}" != "yes"; then
19017         iolog_dir="$with_iologdir"
19018     elif test -d "/var/log"; then
19019         iolog_dir="/var/log/sudo-io"
19020     elif test -d "/var/adm"; then
19021         iolog_dir="/var/adm/sudo-io"
19022     else
19023         iolog_dir="/usr/adm/sudo-io"
19024     fi
19025     if test "${with_iologdir}" != "no"; then
19026         cat >>confdefs.h <<EOF
19027 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
19028 EOF
19029
19030     fi
19031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
19032 $as_echo "$iolog_dir" >&6; }
19033
19034
19035 case "$with_passwd" in
19036 yes|maybe)
19037     AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
19038     ;;
19039 *)
19040     $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
19041
19042     if test -z "$AUTH_OBJS"; then
19043         as_fn_error "no authentication methods defined." "$LINENO" 5
19044     fi
19045     ;;
19046 esac
19047 AUTH_OBJS=${AUTH_OBJS# }
19048 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
19050 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
19051
19052 if test -n "$LIBS"; then
19053     L="$LIBS"
19054     LIBS=
19055     for l in ${L}; do
19056         dupe=0
19057         for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
19058             test $l = $sl && dupe=1
19059         done
19060         test $dupe = 0 && LIBS="${LIBS} $l"
19061     done
19062 fi
19063
19064 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
19065
19066 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
19067     oexec_prefix="$exec_prefix"
19068     if test "$exec_prefix" = '$(prefix)'; then
19069         if test "$prefix" = "NONE"; then
19070             exec_prefix="$ac_default_prefix"
19071         else
19072             exec_prefix="$prefix"
19073         fi
19074     fi
19075     if test X"$with_noexec" != X"no"; then
19076         PROGS="${PROGS} libsudo_noexec.la"
19077         INSTALL_NOEXEC="install-noexec"
19078
19079         eval noexec_file="$with_noexec"
19080         cat >>confdefs.h <<EOF
19081 #define _PATH_SUDO_NOEXEC "$noexec_file"
19082 EOF
19083
19084     fi
19085     if test X"$with_selinux" != X"no"; then
19086         eval sesh_file="$libexecdir/sesh"
19087         cat >>confdefs.h <<EOF
19088 #define _PATH_SUDO_SESH "$sesh_file"
19089 EOF
19090
19091     fi
19092     eval PLUGINDIR="$with_plugindir"
19093     cat >>confdefs.h <<EOF
19094 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
19095 EOF
19096
19097     cat >>confdefs.h <<EOF
19098 #define SUDOERS_PLUGIN "sudoers${SOEXT}"
19099 EOF
19100
19101     exec_prefix="$oexec_prefix"
19102 fi
19103
19104 if test X"$prefix" = X"NONE"; then
19105     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
19106 else
19107     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
19108 fi
19109 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
19110 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
19111 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
19112 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
19113 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
19114 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
19115 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
19116
19117 ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/sample_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
19118
19119 cat >confcache <<\_ACEOF
19120 # This file is a shell script that caches the results of configure
19121 # tests run on this system so they can be shared between configure
19122 # scripts and configure runs, see configure's option --config-cache.
19123 # It is not useful on other systems.  If it contains results you don't
19124 # want to keep, you may remove or edit it.
19125 #
19126 # config.status only pays attention to the cache file if you give it
19127 # the --recheck option to rerun configure.
19128 #
19129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19131 # following values.
19132
19133 _ACEOF
19134
19135 # The following way of writing the cache mishandles newlines in values,
19136 # but we know of no workaround that is simple, portable, and efficient.
19137 # So, we kill variables containing newlines.
19138 # Ultrix sh set writes to stderr and can't be redirected directly,
19139 # and sets the high bit in the cache file unless we assign to the vars.
19140 (
19141   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19142     eval ac_val=\$$ac_var
19143     case $ac_val in #(
19144     *${as_nl}*)
19145       case $ac_var in #(
19146       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19148       esac
19149       case $ac_var in #(
19150       _ | IFS | as_nl) ;; #(
19151       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19152       *) { eval $ac_var=; unset $ac_var;} ;;
19153       esac ;;
19154     esac
19155   done
19156
19157   (set) 2>&1 |
19158     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19159     *${as_nl}ac_space=\ *)
19160       # `set' does not quote correctly, so add quotes: double-quote
19161       # substitution turns \\\\ into \\, and sed turns \\ into \.
19162       sed -n \
19163         "s/'/'\\\\''/g;
19164           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19165       ;; #(
19166     *)
19167       # `set' quotes correctly as required by POSIX, so do not add quotes.
19168       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19169       ;;
19170     esac |
19171     sort
19172 ) |
19173   sed '
19174      /^ac_cv_env_/b end
19175      t clear
19176      :clear
19177      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19178      t end
19179      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19180      :end' >>confcache
19181 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19182   if test -w "$cache_file"; then
19183     test "x$cache_file" != "x/dev/null" &&
19184       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19185 $as_echo "$as_me: updating cache $cache_file" >&6;}
19186     cat confcache >$cache_file
19187   else
19188     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19189 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19190   fi
19191 fi
19192 rm -f confcache
19193
19194 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19195 # Let make expand exec_prefix.
19196 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19197
19198 DEFS=-DHAVE_CONFIG_H
19199
19200 ac_libobjs=
19201 ac_ltlibobjs=
19202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19203   # 1. Remove the extension, and $U if already installed.
19204   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19205   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19206   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19207   #    will be set to the directory where LIBOBJS objects are built.
19208   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19209   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19210 done
19211 LIBOBJS=$ac_libobjs
19212
19213 LTLIBOBJS=$ac_ltlibobjs
19214
19215
19216
19217 : ${CONFIG_STATUS=./config.status}
19218 ac_write_fail=0
19219 ac_clean_files_save=$ac_clean_files
19220 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19222 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19223 as_write_fail=0
19224 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19225 #! $SHELL
19226 # Generated by $as_me.
19227 # Run this file to recreate the current configuration.
19228 # Compiler output produced by configure, useful for debugging
19229 # configure, is in config.log if it exists.
19230
19231 debug=false
19232 ac_cs_recheck=false
19233 ac_cs_silent=false
19234
19235 SHELL=\${CONFIG_SHELL-$SHELL}
19236 export SHELL
19237 _ASEOF
19238 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19239 ## -------------------- ##
19240 ## M4sh Initialization. ##
19241 ## -------------------- ##
19242
19243 # Be more Bourne compatible
19244 DUALCASE=1; export DUALCASE # for MKS sh
19245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19246   emulate sh
19247   NULLCMD=:
19248   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19249   # is contrary to our usage.  Disable this feature.
19250   alias -g '${1+"$@"}'='"$@"'
19251   setopt NO_GLOB_SUBST
19252 else
19253   case `(set -o) 2>/dev/null` in #(
19254   *posix*) :
19255     set -o posix ;; #(
19256   *) :
19257      ;;
19258 esac
19259 fi
19260
19261
19262 as_nl='
19263 '
19264 export as_nl
19265 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19266 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19268 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19269 # Prefer a ksh shell builtin over an external printf program on Solaris,
19270 # but without wasting forks for bash or zsh.
19271 if test -z "$BASH_VERSION$ZSH_VERSION" \
19272     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19273   as_echo='print -r --'
19274   as_echo_n='print -rn --'
19275 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19276   as_echo='printf %s\n'
19277   as_echo_n='printf %s'
19278 else
19279   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19280     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19281     as_echo_n='/usr/ucb/echo -n'
19282   else
19283     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19284     as_echo_n_body='eval
19285       arg=$1;
19286       case $arg in #(
19287       *"$as_nl"*)
19288         expr "X$arg" : "X\\(.*\\)$as_nl";
19289         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19290       esac;
19291       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19292     '
19293     export as_echo_n_body
19294     as_echo_n='sh -c $as_echo_n_body as_echo'
19295   fi
19296   export as_echo_body
19297   as_echo='sh -c $as_echo_body as_echo'
19298 fi
19299
19300 # The user is always right.
19301 if test "${PATH_SEPARATOR+set}" != set; then
19302   PATH_SEPARATOR=:
19303   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19304     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19305       PATH_SEPARATOR=';'
19306   }
19307 fi
19308
19309
19310 # IFS
19311 # We need space, tab and new line, in precisely that order.  Quoting is
19312 # there to prevent editors from complaining about space-tab.
19313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19314 # splitting by setting IFS to empty value.)
19315 IFS=" ""        $as_nl"
19316
19317 # Find who we are.  Look in the path if we contain no directory separator.
19318 case $0 in #((
19319   *[\\/]* ) as_myself=$0 ;;
19320   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19321 for as_dir in $PATH
19322 do
19323   IFS=$as_save_IFS
19324   test -z "$as_dir" && as_dir=.
19325     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19326   done
19327 IFS=$as_save_IFS
19328
19329      ;;
19330 esac
19331 # We did not find ourselves, most probably we were run as `sh COMMAND'
19332 # in which case we are not to be found in the path.
19333 if test "x$as_myself" = x; then
19334   as_myself=$0
19335 fi
19336 if test ! -f "$as_myself"; then
19337   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19338   exit 1
19339 fi
19340
19341 # Unset variables that we do not need and which cause bugs (e.g. in
19342 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19343 # suppresses any "Segmentation fault" message there.  '((' could
19344 # trigger a bug in pdksh 5.2.14.
19345 for as_var in BASH_ENV ENV MAIL MAILPATH
19346 do eval test x\${$as_var+set} = xset \
19347   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19348 done
19349 PS1='$ '
19350 PS2='> '
19351 PS4='+ '
19352
19353 # NLS nuisances.
19354 LC_ALL=C
19355 export LC_ALL
19356 LANGUAGE=C
19357 export LANGUAGE
19358
19359 # CDPATH.
19360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19361
19362
19363 # as_fn_error ERROR [LINENO LOG_FD]
19364 # ---------------------------------
19365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19367 # script with status $?, using 1 if that was 0.
19368 as_fn_error ()
19369 {
19370   as_status=$?; test $as_status -eq 0 && as_status=1
19371   if test "$3"; then
19372     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19374   fi
19375   $as_echo "$as_me: error: $1" >&2
19376   as_fn_exit $as_status
19377 } # as_fn_error
19378
19379
19380 # as_fn_set_status STATUS
19381 # -----------------------
19382 # Set $? to STATUS, without forking.
19383 as_fn_set_status ()
19384 {
19385   return $1
19386 } # as_fn_set_status
19387
19388 # as_fn_exit STATUS
19389 # -----------------
19390 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19391 as_fn_exit ()
19392 {
19393   set +e
19394   as_fn_set_status $1
19395   exit $1
19396 } # as_fn_exit
19397
19398 # as_fn_unset VAR
19399 # ---------------
19400 # Portably unset VAR.
19401 as_fn_unset ()
19402 {
19403   { eval $1=; unset $1;}
19404 }
19405 as_unset=as_fn_unset
19406 # as_fn_append VAR VALUE
19407 # ----------------------
19408 # Append the text in VALUE to the end of the definition contained in VAR. Take
19409 # advantage of any shell optimizations that allow amortized linear growth over
19410 # repeated appends, instead of the typical quadratic growth present in naive
19411 # implementations.
19412 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19413   eval 'as_fn_append ()
19414   {
19415     eval $1+=\$2
19416   }'
19417 else
19418   as_fn_append ()
19419   {
19420     eval $1=\$$1\$2
19421   }
19422 fi # as_fn_append
19423
19424 # as_fn_arith ARG...
19425 # ------------------
19426 # Perform arithmetic evaluation on the ARGs, and store the result in the
19427 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19428 # must be portable across $(()) and expr.
19429 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19430   eval 'as_fn_arith ()
19431   {
19432     as_val=$(( $* ))
19433   }'
19434 else
19435   as_fn_arith ()
19436   {
19437     as_val=`expr "$@" || test $? -eq 1`
19438   }
19439 fi # as_fn_arith
19440
19441
19442 if expr a : '\(a\)' >/dev/null 2>&1 &&
19443    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19444   as_expr=expr
19445 else
19446   as_expr=false
19447 fi
19448
19449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19450   as_basename=basename
19451 else
19452   as_basename=false
19453 fi
19454
19455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19456   as_dirname=dirname
19457 else
19458   as_dirname=false
19459 fi
19460
19461 as_me=`$as_basename -- "$0" ||
19462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19463          X"$0" : 'X\(//\)$' \| \
19464          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19465 $as_echo X/"$0" |
19466     sed '/^.*\/\([^/][^/]*\)\/*$/{
19467             s//\1/
19468             q
19469           }
19470           /^X\/\(\/\/\)$/{
19471             s//\1/
19472             q
19473           }
19474           /^X\/\(\/\).*/{
19475             s//\1/
19476             q
19477           }
19478           s/.*/./; q'`
19479
19480 # Avoid depending upon Character Ranges.
19481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19484 as_cr_digits='0123456789'
19485 as_cr_alnum=$as_cr_Letters$as_cr_digits
19486
19487 ECHO_C= ECHO_N= ECHO_T=
19488 case `echo -n x` in #(((((
19489 -n*)
19490   case `echo 'xy\c'` in
19491   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19492   xy)  ECHO_C='\c';;
19493   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19494        ECHO_T=' ';;
19495   esac;;
19496 *)
19497   ECHO_N='-n';;
19498 esac
19499
19500 rm -f conf$$ conf$$.exe conf$$.file
19501 if test -d conf$$.dir; then
19502   rm -f conf$$.dir/conf$$.file
19503 else
19504   rm -f conf$$.dir
19505   mkdir conf$$.dir 2>/dev/null
19506 fi
19507 if (echo >conf$$.file) 2>/dev/null; then
19508   if ln -s conf$$.file conf$$ 2>/dev/null; then
19509     as_ln_s='ln -s'
19510     # ... but there are two gotchas:
19511     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19512     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19513     # In both cases, we have to default to `cp -p'.
19514     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19515       as_ln_s='cp -p'
19516   elif ln conf$$.file conf$$ 2>/dev/null; then
19517     as_ln_s=ln
19518   else
19519     as_ln_s='cp -p'
19520   fi
19521 else
19522   as_ln_s='cp -p'
19523 fi
19524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19525 rmdir conf$$.dir 2>/dev/null
19526
19527
19528 # as_fn_mkdir_p
19529 # -------------
19530 # Create "$as_dir" as a directory, including parents if necessary.
19531 as_fn_mkdir_p ()
19532 {
19533
19534   case $as_dir in #(
19535   -*) as_dir=./$as_dir;;
19536   esac
19537   test -d "$as_dir" || eval $as_mkdir_p || {
19538     as_dirs=
19539     while :; do
19540       case $as_dir in #(
19541       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19542       *) as_qdir=$as_dir;;
19543       esac
19544       as_dirs="'$as_qdir' $as_dirs"
19545       as_dir=`$as_dirname -- "$as_dir" ||
19546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19547          X"$as_dir" : 'X\(//\)[^/]' \| \
19548          X"$as_dir" : 'X\(//\)$' \| \
19549          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19550 $as_echo X"$as_dir" |
19551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19552             s//\1/
19553             q
19554           }
19555           /^X\(\/\/\)[^/].*/{
19556             s//\1/
19557             q
19558           }
19559           /^X\(\/\/\)$/{
19560             s//\1/
19561             q
19562           }
19563           /^X\(\/\).*/{
19564             s//\1/
19565             q
19566           }
19567           s/.*/./; q'`
19568       test -d "$as_dir" && break
19569     done
19570     test -z "$as_dirs" || eval "mkdir $as_dirs"
19571   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19572
19573
19574 } # as_fn_mkdir_p
19575 if mkdir -p . 2>/dev/null; then
19576   as_mkdir_p='mkdir -p "$as_dir"'
19577 else
19578   test -d ./-p && rmdir ./-p
19579   as_mkdir_p=false
19580 fi
19581
19582 if test -x / >/dev/null 2>&1; then
19583   as_test_x='test -x'
19584 else
19585   if ls -dL / >/dev/null 2>&1; then
19586     as_ls_L_option=L
19587   else
19588     as_ls_L_option=
19589   fi
19590   as_test_x='
19591     eval sh -c '\''
19592       if test -d "$1"; then
19593         test -d "$1/.";
19594       else
19595         case $1 in #(
19596         -*)set "./$1";;
19597         esac;
19598         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19599         ???[sx]*):;;*)false;;esac;fi
19600     '\'' sh
19601   '
19602 fi
19603 as_executable_p=$as_test_x
19604
19605 # Sed expression to map a string onto a valid CPP name.
19606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19607
19608 # Sed expression to map a string onto a valid variable name.
19609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19610
19611
19612 exec 6>&1
19613 ## ----------------------------------- ##
19614 ## Main body of $CONFIG_STATUS script. ##
19615 ## ----------------------------------- ##
19616 _ASEOF
19617 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19618
19619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19620 # Save the log message, to keep $0 and so on meaningful, and to
19621 # report actual input values of CONFIG_FILES etc. instead of their
19622 # values after options handling.
19623 ac_log="
19624 This file was extended by sudo $as_me 1.8.1p2, which was
19625 generated by GNU Autoconf 2.65.  Invocation command line was
19626
19627   CONFIG_FILES    = $CONFIG_FILES
19628   CONFIG_HEADERS  = $CONFIG_HEADERS
19629   CONFIG_LINKS    = $CONFIG_LINKS
19630   CONFIG_COMMANDS = $CONFIG_COMMANDS
19631   $ $0 $@
19632
19633 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19634 "
19635
19636 _ACEOF
19637
19638 case $ac_config_files in *"
19639 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19640 esac
19641
19642 case $ac_config_headers in *"
19643 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19644 esac
19645
19646
19647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19648 # Files that config.status was made for.
19649 config_files="$ac_config_files"
19650 config_headers="$ac_config_headers"
19651 config_commands="$ac_config_commands"
19652
19653 _ACEOF
19654
19655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19656 ac_cs_usage="\
19657 \`$as_me' instantiates files and other configuration actions
19658 from templates according to the current configuration.  Unless the files
19659 and actions are specified as TAGs, all are instantiated by default.
19660
19661 Usage: $0 [OPTION]... [TAG]...
19662
19663   -h, --help       print this help, then exit
19664   -V, --version    print version number and configuration settings, then exit
19665       --config     print configuration, then exit
19666   -q, --quiet, --silent
19667                    do not print progress messages
19668   -d, --debug      don't remove temporary files
19669       --recheck    update $as_me by reconfiguring in the same conditions
19670       --file=FILE[:TEMPLATE]
19671                    instantiate the configuration file FILE
19672       --header=FILE[:TEMPLATE]
19673                    instantiate the configuration header FILE
19674
19675 Configuration files:
19676 $config_files
19677
19678 Configuration headers:
19679 $config_headers
19680
19681 Configuration commands:
19682 $config_commands
19683
19684 Report bugs to <http://www.sudo.ws/bugs/>."
19685
19686 _ACEOF
19687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19688 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19689 ac_cs_version="\\
19690 sudo config.status 1.8.1p2
19691 configured by $0, generated by GNU Autoconf 2.65,
19692   with options \\"\$ac_cs_config\\"
19693
19694 Copyright (C) 2009 Free Software Foundation, Inc.
19695 This config.status script is free software; the Free Software Foundation
19696 gives unlimited permission to copy, distribute and modify it."
19697
19698 ac_pwd='$ac_pwd'
19699 srcdir='$srcdir'
19700 AWK='$AWK'
19701 test -n "\$AWK" || AWK=awk
19702 _ACEOF
19703
19704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19705 # The default lists apply if the user does not specify any file.
19706 ac_need_defaults=:
19707 while test $# != 0
19708 do
19709   case $1 in
19710   --*=*)
19711     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19712     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19713     ac_shift=:
19714     ;;
19715   *)
19716     ac_option=$1
19717     ac_optarg=$2
19718     ac_shift=shift
19719     ;;
19720   esac
19721
19722   case $ac_option in
19723   # Handling of the options.
19724   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19725     ac_cs_recheck=: ;;
19726   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19727     $as_echo "$ac_cs_version"; exit ;;
19728   --config | --confi | --conf | --con | --co | --c )
19729     $as_echo "$ac_cs_config"; exit ;;
19730   --debug | --debu | --deb | --de | --d | -d )
19731     debug=: ;;
19732   --file | --fil | --fi | --f )
19733     $ac_shift
19734     case $ac_optarg in
19735     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19736     esac
19737     as_fn_append CONFIG_FILES " '$ac_optarg'"
19738     ac_need_defaults=false;;
19739   --header | --heade | --head | --hea )
19740     $ac_shift
19741     case $ac_optarg in
19742     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19743     esac
19744     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19745     ac_need_defaults=false;;
19746   --he | --h)
19747     # Conflict between --help and --header
19748     as_fn_error "ambiguous option: \`$1'
19749 Try \`$0 --help' for more information.";;
19750   --help | --hel | -h )
19751     $as_echo "$ac_cs_usage"; exit ;;
19752   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19753   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19754     ac_cs_silent=: ;;
19755
19756   # This is an error.
19757   -*) as_fn_error "unrecognized option: \`$1'
19758 Try \`$0 --help' for more information." ;;
19759
19760   *) as_fn_append ac_config_targets " $1"
19761      ac_need_defaults=false ;;
19762
19763   esac
19764   shift
19765 done
19766
19767 ac_configure_extra_args=
19768
19769 if $ac_cs_silent; then
19770   exec 6>/dev/null
19771   ac_configure_extra_args="$ac_configure_extra_args --silent"
19772 fi
19773
19774 _ACEOF
19775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19776 if \$ac_cs_recheck; then
19777   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19778   shift
19779   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19780   CONFIG_SHELL='$SHELL'
19781   export CONFIG_SHELL
19782   exec "\$@"
19783 fi
19784
19785 _ACEOF
19786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19787 exec 5>>config.log
19788 {
19789   echo
19790   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19791 ## Running $as_me. ##
19792 _ASBOX
19793   $as_echo "$ac_log"
19794 } >&5
19795
19796 _ACEOF
19797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19798 #
19799 # INIT-COMMANDS
19800 #
19801
19802
19803 # The HP-UX ksh and POSIX shell print the target directory to stdout
19804 # if CDPATH is set.
19805 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19806
19807 sed_quote_subst='$sed_quote_subst'
19808 double_quote_subst='$double_quote_subst'
19809 delay_variable_subst='$delay_variable_subst'
19810 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19811 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19812 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19813 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19814 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19815 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19816 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19817 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19818 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19819 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19820 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19821 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19822 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19823 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19824 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19825 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19826 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19827 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19828 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19829 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19830 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19831 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19832 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19833 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19834 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19835 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19836 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19837 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19838 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19839 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19840 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19841 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19842 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19843 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19844 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19845 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19846 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19847 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19848 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19849 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19850 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19851 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19852 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19853 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19854 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19855 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19856 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19857 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19858 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19859 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19860 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19861 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19862 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19863 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19864 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19865 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19866 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19867 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19868 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19869 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19870 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19871 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19872 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19873 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19874 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19875 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19876 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19877 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19878 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19879 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19880 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19881 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19882 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19883 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19884 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19885 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19886 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19887 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19888 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19889 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19890 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19891 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19892 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19893 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19894 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19895 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19896 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19897 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19898 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19899 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
19900 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19901 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19902 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19903 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19904 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19905 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19906 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19907 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19908 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19909 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19910 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19911 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19912 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19913 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19914 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19915 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19916 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19917 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19918 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19919 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19920 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19921 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19922 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19923 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19924 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19925 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19926 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19927 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19928 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19929 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19930
19931 LTCC='$LTCC'
19932 LTCFLAGS='$LTCFLAGS'
19933 compiler='$compiler_DEFAULT'
19934
19935 # A function that is used when there is no print builtin or printf.
19936 func_fallback_echo ()
19937 {
19938   eval 'cat <<_LTECHO_EOF
19939 \$1
19940 _LTECHO_EOF'
19941 }
19942
19943 # Quote evaled strings.
19944 for var in SHELL \
19945 ECHO \
19946 SED \
19947 GREP \
19948 EGREP \
19949 FGREP \
19950 LD \
19951 NM \
19952 LN_S \
19953 lt_SP2NL \
19954 lt_NL2SP \
19955 reload_flag \
19956 OBJDUMP \
19957 deplibs_check_method \
19958 file_magic_cmd \
19959 AR \
19960 AR_FLAGS \
19961 STRIP \
19962 RANLIB \
19963 CC \
19964 CFLAGS \
19965 compiler \
19966 lt_cv_sys_global_symbol_pipe \
19967 lt_cv_sys_global_symbol_to_cdecl \
19968 lt_cv_sys_global_symbol_to_c_name_address \
19969 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19970 lt_prog_compiler_no_builtin_flag \
19971 lt_prog_compiler_wl \
19972 lt_prog_compiler_pic \
19973 lt_prog_compiler_static \
19974 lt_cv_prog_compiler_c_o \
19975 need_locks \
19976 DSYMUTIL \
19977 NMEDIT \
19978 LIPO \
19979 OTOOL \
19980 OTOOL64 \
19981 shrext_cmds \
19982 export_dynamic_flag_spec \
19983 whole_archive_flag_spec \
19984 compiler_needs_object \
19985 with_gnu_ld \
19986 allow_undefined_flag \
19987 no_undefined_flag \
19988 hardcode_libdir_flag_spec \
19989 hardcode_libdir_flag_spec_ld \
19990 hardcode_libdir_separator \
19991 fix_srcfile_path \
19992 exclude_expsyms \
19993 include_expsyms \
19994 file_list_spec \
19995 variables_saved_for_relink \
19996 libname_spec \
19997 library_names_spec \
19998 soname_spec \
19999 install_override_mode \
20000 finish_eval \
20001 old_striplib \
20002 striplib; do
20003     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20004     *[\\\\\\\`\\"\\\$]*)
20005       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20006       ;;
20007     *)
20008       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20009       ;;
20010     esac
20011 done
20012
20013 # Double-quote double-evaled strings.
20014 for var in reload_cmds \
20015 old_postinstall_cmds \
20016 old_postuninstall_cmds \
20017 old_archive_cmds \
20018 extract_expsyms_cmds \
20019 old_archive_from_new_cmds \
20020 old_archive_from_expsyms_cmds \
20021 archive_cmds \
20022 archive_expsym_cmds \
20023 module_cmds \
20024 module_expsym_cmds \
20025 export_symbols_cmds \
20026 prelink_cmds \
20027 postinstall_cmds \
20028 postuninstall_cmds \
20029 finish_cmds \
20030 sys_lib_search_path_spec \
20031 sys_lib_dlsearch_path_spec; do
20032     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20033     *[\\\\\\\`\\"\\\$]*)
20034       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20035       ;;
20036     *)
20037       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20038       ;;
20039     esac
20040 done
20041
20042 ac_aux_dir='$ac_aux_dir'
20043 xsi_shell='$xsi_shell'
20044 lt_shell_append='$lt_shell_append'
20045
20046 # See if we are running on zsh, and set the options which allow our
20047 # commands through without removal of \ escapes INIT.
20048 if test -n "\${ZSH_VERSION+set}" ; then
20049    setopt NO_GLOB_SUBST
20050 fi
20051
20052
20053     PACKAGE='$PACKAGE'
20054     VERSION='$VERSION'
20055     TIMESTAMP='$TIMESTAMP'
20056     RM='$RM'
20057     ofile='$ofile'
20058
20059
20060
20061
20062 _ACEOF
20063
20064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20065
20066 # Handling of arguments.
20067 for ac_config_target in $ac_config_targets
20068 do
20069   case $ac_config_target in
20070     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20071     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
20072     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20073     "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
20074     "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
20075     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20076     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
20077     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
20078     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20079     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20080     "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
20081     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20082     "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
20083     "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
20084     "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
20085     "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
20086
20087   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20088   esac
20089 done
20090
20091
20092 # If the user did not use the arguments to specify the items to instantiate,
20093 # then the envvar interface is used.  Set only those that are not.
20094 # We use the long form for the default assignment because of an extremely
20095 # bizarre bug on SunOS 4.1.3.
20096 if $ac_need_defaults; then
20097   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20098   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20099   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20100 fi
20101
20102 # Have a temporary directory for convenience.  Make it in the build tree
20103 # simply because there is no reason against having it here, and in addition,
20104 # creating and moving files from /tmp can sometimes cause problems.
20105 # Hook for its removal unless debugging.
20106 # Note that there is a small window in which the directory will not be cleaned:
20107 # after its creation but before its name has been assigned to `$tmp'.
20108 $debug ||
20109 {
20110   tmp=
20111   trap 'exit_status=$?
20112   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20113 ' 0
20114   trap 'as_fn_exit 1' 1 2 13 15
20115 }
20116 # Create a (secure) tmp directory for tmp files.
20117
20118 {
20119   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20120   test -n "$tmp" && test -d "$tmp"
20121 }  ||
20122 {
20123   tmp=./conf$$-$RANDOM
20124   (umask 077 && mkdir "$tmp")
20125 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20126
20127 # Set up the scripts for CONFIG_FILES section.
20128 # No need to generate them if there are no CONFIG_FILES.
20129 # This happens for instance with `./config.status config.h'.
20130 if test -n "$CONFIG_FILES"; then
20131
20132
20133 ac_cr=`echo X | tr X '\015'`
20134 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20135 # But we know of no other shell where ac_cr would be empty at this
20136 # point, so we can use a bashism as a fallback.
20137 if test "x$ac_cr" = x; then
20138   eval ac_cr=\$\'\\r\'
20139 fi
20140 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20141 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20142   ac_cs_awk_cr='\r'
20143 else
20144   ac_cs_awk_cr=$ac_cr
20145 fi
20146
20147 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20148 _ACEOF
20149
20150
20151 {
20152   echo "cat >conf$$subs.awk <<_ACEOF" &&
20153   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20154   echo "_ACEOF"
20155 } >conf$$subs.sh ||
20156   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20157 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20158 ac_delim='%!_!# '
20159 for ac_last_try in false false false false false :; do
20160   . ./conf$$subs.sh ||
20161     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20162
20163   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20164   if test $ac_delim_n = $ac_delim_num; then
20165     break
20166   elif $ac_last_try; then
20167     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20168   else
20169     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20170   fi
20171 done
20172 rm -f conf$$subs.sh
20173
20174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20175 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20176 _ACEOF
20177 sed -n '
20178 h
20179 s/^/S["/; s/!.*/"]=/
20180 p
20181 g
20182 s/^[^!]*!//
20183 :repl
20184 t repl
20185 s/'"$ac_delim"'$//
20186 t delim
20187 :nl
20188 h
20189 s/\(.\{148\}\)..*/\1/
20190 t more1
20191 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20192 p
20193 n
20194 b repl
20195 :more1
20196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20197 p
20198 g
20199 s/.\{148\}//
20200 t nl
20201 :delim
20202 h
20203 s/\(.\{148\}\)..*/\1/
20204 t more2
20205 s/["\\]/\\&/g; s/^/"/; s/$/"/
20206 p
20207 b
20208 :more2
20209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20210 p
20211 g
20212 s/.\{148\}//
20213 t delim
20214 ' <conf$$subs.awk | sed '
20215 /^[^""]/{
20216   N
20217   s/\n//
20218 }
20219 ' >>$CONFIG_STATUS || ac_write_fail=1
20220 rm -f conf$$subs.awk
20221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20222 _ACAWK
20223 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20224   for (key in S) S_is_set[key] = 1
20225   FS = "\a"
20226
20227 }
20228 {
20229   line = $ 0
20230   nfields = split(line, field, "@")
20231   substed = 0
20232   len = length(field[1])
20233   for (i = 2; i < nfields; i++) {
20234     key = field[i]
20235     keylen = length(key)
20236     if (S_is_set[key]) {
20237       value = S[key]
20238       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20239       len += length(value) + length(field[++i])
20240       substed = 1
20241     } else
20242       len += 1 + keylen
20243   }
20244
20245   print line
20246 }
20247
20248 _ACAWK
20249 _ACEOF
20250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20251 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20252   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20253 else
20254   cat
20255 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20256   || as_fn_error "could not setup config files machinery" "$LINENO" 5
20257 _ACEOF
20258
20259 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20260 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20261 # trailing colons and then remove the whole line if VPATH becomes empty
20262 # (actually we leave an empty line to preserve line numbers).
20263 if test "x$srcdir" = x.; then
20264   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20265 s/:*\$(srcdir):*/:/
20266 s/:*\${srcdir}:*/:/
20267 s/:*@srcdir@:*/:/
20268 s/^\([^=]*=[     ]*\):*/\1/
20269 s/:*$//
20270 s/^[^=]*=[       ]*$//
20271 }'
20272 fi
20273
20274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20275 fi # test -n "$CONFIG_FILES"
20276
20277 # Set up the scripts for CONFIG_HEADERS section.
20278 # No need to generate them if there are no CONFIG_HEADERS.
20279 # This happens for instance with `./config.status Makefile'.
20280 if test -n "$CONFIG_HEADERS"; then
20281 cat >"$tmp/defines.awk" <<\_ACAWK ||
20282 BEGIN {
20283 _ACEOF
20284
20285 # Transform confdefs.h into an awk script `defines.awk', embedded as
20286 # here-document in config.status, that substitutes the proper values into
20287 # config.h.in to produce config.h.
20288
20289 # Create a delimiter string that does not exist in confdefs.h, to ease
20290 # handling of long lines.
20291 ac_delim='%!_!# '
20292 for ac_last_try in false false :; do
20293   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20294   if test -z "$ac_t"; then
20295     break
20296   elif $ac_last_try; then
20297     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20298   else
20299     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20300   fi
20301 done
20302
20303 # For the awk script, D is an array of macro values keyed by name,
20304 # likewise P contains macro parameters if any.  Preserve backslash
20305 # newline sequences.
20306
20307 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20308 sed -n '
20309 s/.\{148\}/&'"$ac_delim"'/g
20310 t rset
20311 :rset
20312 s/^[     ]*#[    ]*define[       ][      ]*/ /
20313 t def
20314 d
20315 :def
20316 s/\\$//
20317 t bsnl
20318 s/["\\]/\\&/g
20319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20320 D["\1"]=" \3"/p
20321 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20322 d
20323 :bsnl
20324 s/["\\]/\\&/g
20325 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20326 D["\1"]=" \3\\\\\\n"\\/p
20327 t cont
20328 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20329 t cont
20330 d
20331 :cont
20332 n
20333 s/.\{148\}/&'"$ac_delim"'/g
20334 t clear
20335 :clear
20336 s/\\$//
20337 t bsnlc
20338 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20339 d
20340 :bsnlc
20341 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20342 b cont
20343 ' <confdefs.h | sed '
20344 s/'"$ac_delim"'/"\\\
20345 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20346
20347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20348   for (key in D) D_is_set[key] = 1
20349   FS = "\a"
20350 }
20351 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20352   line = \$ 0
20353   split(line, arg, " ")
20354   if (arg[1] == "#") {
20355     defundef = arg[2]
20356     mac1 = arg[3]
20357   } else {
20358     defundef = substr(arg[1], 2)
20359     mac1 = arg[2]
20360   }
20361   split(mac1, mac2, "(") #)
20362   macro = mac2[1]
20363   prefix = substr(line, 1, index(line, defundef) - 1)
20364   if (D_is_set[macro]) {
20365     # Preserve the white space surrounding the "#".
20366     print prefix "define", macro P[macro] D[macro]
20367     next
20368   } else {
20369     # Replace #undef with comments.  This is necessary, for example,
20370     # in the case of _POSIX_SOURCE, which is predefined and required
20371     # on some systems where configure will not decide to define it.
20372     if (defundef == "undef") {
20373       print "/*", prefix defundef, macro, "*/"
20374       next
20375     }
20376   }
20377 }
20378 { print }
20379 _ACAWK
20380 _ACEOF
20381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20382   as_fn_error "could not setup config headers machinery" "$LINENO" 5
20383 fi # test -n "$CONFIG_HEADERS"
20384
20385
20386 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20387 shift
20388 for ac_tag
20389 do
20390   case $ac_tag in
20391   :[FHLC]) ac_mode=$ac_tag; continue;;
20392   esac
20393   case $ac_mode$ac_tag in
20394   :[FHL]*:*);;
20395   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20396   :[FH]-) ac_tag=-:-;;
20397   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20398   esac
20399   ac_save_IFS=$IFS
20400   IFS=:
20401   set x $ac_tag
20402   IFS=$ac_save_IFS
20403   shift
20404   ac_file=$1
20405   shift
20406
20407   case $ac_mode in
20408   :L) ac_source=$1;;
20409   :[FH])
20410     ac_file_inputs=
20411     for ac_f
20412     do
20413       case $ac_f in
20414       -) ac_f="$tmp/stdin";;
20415       *) # Look for the file first in the build tree, then in the source tree
20416          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20417          # because $ac_f cannot contain `:'.
20418          test -f "$ac_f" ||
20419            case $ac_f in
20420            [\\/$]*) false;;
20421            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20422            esac ||
20423            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20424       esac
20425       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20426       as_fn_append ac_file_inputs " '$ac_f'"
20427     done
20428
20429     # Let's still pretend it is `configure' which instantiates (i.e., don't
20430     # use $as_me), people would be surprised to read:
20431     #    /* config.h.  Generated by config.status.  */
20432     configure_input='Generated from '`
20433           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20434         `' by configure.'
20435     if test x"$ac_file" != x-; then
20436       configure_input="$ac_file.  $configure_input"
20437       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20438 $as_echo "$as_me: creating $ac_file" >&6;}
20439     fi
20440     # Neutralize special characters interpreted by sed in replacement strings.
20441     case $configure_input in #(
20442     *\&* | *\|* | *\\* )
20443        ac_sed_conf_input=`$as_echo "$configure_input" |
20444        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20445     *) ac_sed_conf_input=$configure_input;;
20446     esac
20447
20448     case $ac_tag in
20449     *:-:* | *:-) cat >"$tmp/stdin" \
20450       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20451     esac
20452     ;;
20453   esac
20454
20455   ac_dir=`$as_dirname -- "$ac_file" ||
20456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20457          X"$ac_file" : 'X\(//\)[^/]' \| \
20458          X"$ac_file" : 'X\(//\)$' \| \
20459          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20460 $as_echo X"$ac_file" |
20461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20462             s//\1/
20463             q
20464           }
20465           /^X\(\/\/\)[^/].*/{
20466             s//\1/
20467             q
20468           }
20469           /^X\(\/\/\)$/{
20470             s//\1/
20471             q
20472           }
20473           /^X\(\/\).*/{
20474             s//\1/
20475             q
20476           }
20477           s/.*/./; q'`
20478   as_dir="$ac_dir"; as_fn_mkdir_p
20479   ac_builddir=.
20480
20481 case "$ac_dir" in
20482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20483 *)
20484   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20485   # A ".." for each directory in $ac_dir_suffix.
20486   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20487   case $ac_top_builddir_sub in
20488   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20489   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20490   esac ;;
20491 esac
20492 ac_abs_top_builddir=$ac_pwd
20493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20494 # for backward compatibility:
20495 ac_top_builddir=$ac_top_build_prefix
20496
20497 case $srcdir in
20498   .)  # We are building in place.
20499     ac_srcdir=.
20500     ac_top_srcdir=$ac_top_builddir_sub
20501     ac_abs_top_srcdir=$ac_pwd ;;
20502   [\\/]* | ?:[\\/]* )  # Absolute name.
20503     ac_srcdir=$srcdir$ac_dir_suffix;
20504     ac_top_srcdir=$srcdir
20505     ac_abs_top_srcdir=$srcdir ;;
20506   *) # Relative name.
20507     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20508     ac_top_srcdir=$ac_top_build_prefix$srcdir
20509     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20510 esac
20511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20512
20513
20514   case $ac_mode in
20515   :F)
20516   #
20517   # CONFIG_FILE
20518   #
20519
20520 _ACEOF
20521
20522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20523 # If the template does not know about datarootdir, expand it.
20524 # FIXME: This hack should be removed a few years after 2.60.
20525 ac_datarootdir_hack=; ac_datarootdir_seen=
20526 ac_sed_dataroot='
20527 /datarootdir/ {
20528   p
20529   q
20530 }
20531 /@datadir@/p
20532 /@docdir@/p
20533 /@infodir@/p
20534 /@localedir@/p
20535 /@mandir@/p'
20536 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20537 *datarootdir*) ac_datarootdir_seen=yes;;
20538 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20539   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20540 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20541 _ACEOF
20542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20543   ac_datarootdir_hack='
20544   s&@datadir@&$datadir&g
20545   s&@docdir@&$docdir&g
20546   s&@infodir@&$infodir&g
20547   s&@localedir@&$localedir&g
20548   s&@mandir@&$mandir&g
20549   s&\\\${datarootdir}&$datarootdir&g' ;;
20550 esac
20551 _ACEOF
20552
20553 # Neutralize VPATH when `$srcdir' = `.'.
20554 # Shell code in configure.ac might set extrasub.
20555 # FIXME: do we really want to maintain this feature?
20556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20557 ac_sed_extra="$ac_vpsub
20558 $extrasub
20559 _ACEOF
20560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20561 :t
20562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20563 s|@configure_input@|$ac_sed_conf_input|;t t
20564 s&@top_builddir@&$ac_top_builddir_sub&;t t
20565 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20566 s&@srcdir@&$ac_srcdir&;t t
20567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20568 s&@top_srcdir@&$ac_top_srcdir&;t t
20569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20570 s&@builddir@&$ac_builddir&;t t
20571 s&@abs_builddir@&$ac_abs_builddir&;t t
20572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20573 $ac_datarootdir_hack
20574 "
20575 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20576   || as_fn_error "could not create $ac_file" "$LINENO" 5
20577
20578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20579   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20580   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20581   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20582 which seems to be undefined.  Please make sure it is defined." >&5
20583 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20584 which seems to be undefined.  Please make sure it is defined." >&2;}
20585
20586   rm -f "$tmp/stdin"
20587   case $ac_file in
20588   -) cat "$tmp/out" && rm -f "$tmp/out";;
20589   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20590   esac \
20591   || as_fn_error "could not create $ac_file" "$LINENO" 5
20592  ;;
20593   :H)
20594   #
20595   # CONFIG_HEADER
20596   #
20597   if test x"$ac_file" != x-; then
20598     {
20599       $as_echo "/* $configure_input  */" \
20600       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20601     } >"$tmp/config.h" \
20602       || as_fn_error "could not create $ac_file" "$LINENO" 5
20603     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20604       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20605 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20606     else
20607       rm -f "$ac_file"
20608       mv "$tmp/config.h" "$ac_file" \
20609         || as_fn_error "could not create $ac_file" "$LINENO" 5
20610     fi
20611   else
20612     $as_echo "/* $configure_input  */" \
20613       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20614       || as_fn_error "could not create -" "$LINENO" 5
20615   fi
20616  ;;
20617
20618   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20619 $as_echo "$as_me: executing $ac_file commands" >&6;}
20620  ;;
20621   esac
20622
20623
20624   case $ac_file$ac_mode in
20625     "libtool":C)
20626
20627     # See if we are running on zsh, and set the options which allow our
20628     # commands through without removal of \ escapes.
20629     if test -n "${ZSH_VERSION+set}" ; then
20630       setopt NO_GLOB_SUBST
20631     fi
20632
20633     cfgfile="${ofile}T"
20634     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20635     $RM "$cfgfile"
20636
20637     cat <<_LT_EOF >> "$cfgfile"
20638 #! $SHELL
20639
20640 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20641 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20642 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20643 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20644 #
20645 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20646 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20647 #                 Inc.
20648 #   Written by Gordon Matzigkeit, 1996
20649 #
20650 #   This file is part of GNU Libtool.
20651 #
20652 # GNU Libtool is free software; you can redistribute it and/or
20653 # modify it under the terms of the GNU General Public License as
20654 # published by the Free Software Foundation; either version 2 of
20655 # the License, or (at your option) any later version.
20656 #
20657 # As a special exception to the GNU General Public License,
20658 # if you distribute this file as part of a program or library that
20659 # is built using GNU Libtool, you may include this file under the
20660 # same distribution terms that you use for the rest of that program.
20661 #
20662 # GNU Libtool is distributed in the hope that it will be useful,
20663 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20664 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20665 # GNU General Public License for more details.
20666 #
20667 # You should have received a copy of the GNU General Public License
20668 # along with GNU Libtool; see the file COPYING.  If not, a copy
20669 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20670 # obtained by writing to the Free Software Foundation, Inc.,
20671 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20672
20673
20674 # The names of the tagged configurations supported by this script.
20675 available_tags=""
20676
20677 # ### BEGIN LIBTOOL CONFIG
20678
20679 # Which release of libtool.m4 was used?
20680 macro_version=$macro_version
20681 macro_revision=$macro_revision
20682
20683 # Whether or not to build shared libraries.
20684 build_libtool_libs=$enable_shared
20685
20686 # Whether or not to build static libraries.
20687 build_old_libs=$enable_static
20688
20689 # What type of objects to build.
20690 pic_mode=$pic_mode
20691
20692 # Whether or not to optimize for fast installation.
20693 fast_install=$enable_fast_install
20694
20695 # Shell to use when invoking shell scripts.
20696 SHELL=$lt_SHELL
20697
20698 # An echo program that protects backslashes.
20699 ECHO=$lt_ECHO
20700
20701 # The host system.
20702 host_alias=$host_alias
20703 host=$host
20704 host_os=$host_os
20705
20706 # The build system.
20707 build_alias=$build_alias
20708 build=$build
20709 build_os=$build_os
20710
20711 # A sed program that does not truncate output.
20712 SED=$lt_SED
20713
20714 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20715 Xsed="\$SED -e 1s/^X//"
20716
20717 # A grep program that handles long lines.
20718 GREP=$lt_GREP
20719
20720 # An ERE matcher.
20721 EGREP=$lt_EGREP
20722
20723 # A literal string matcher.
20724 FGREP=$lt_FGREP
20725
20726 # A BSD- or MS-compatible name lister.
20727 NM=$lt_NM
20728
20729 # Whether we need soft or hard links.
20730 LN_S=$lt_LN_S
20731
20732 # What is the maximum length of a command?
20733 max_cmd_len=$max_cmd_len
20734
20735 # Object file suffix (normally "o").
20736 objext=$ac_objext
20737
20738 # Executable file suffix (normally "").
20739 exeext=$exeext
20740
20741 # whether the shell understands "unset".
20742 lt_unset=$lt_unset
20743
20744 # turn spaces into newlines.
20745 SP2NL=$lt_lt_SP2NL
20746
20747 # turn newlines into spaces.
20748 NL2SP=$lt_lt_NL2SP
20749
20750 # An object symbol dumper.
20751 OBJDUMP=$lt_OBJDUMP
20752
20753 # Method to check whether dependent libraries are shared objects.
20754 deplibs_check_method=$lt_deplibs_check_method
20755
20756 # Command to use when deplibs_check_method == "file_magic".
20757 file_magic_cmd=$lt_file_magic_cmd
20758
20759 # The archiver.
20760 AR=$lt_AR
20761 AR_FLAGS=$lt_AR_FLAGS
20762
20763 # A symbol stripping program.
20764 STRIP=$lt_STRIP
20765
20766 # Commands used to install an old-style archive.
20767 RANLIB=$lt_RANLIB
20768 old_postinstall_cmds=$lt_old_postinstall_cmds
20769 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20770
20771 # Whether to use a lock for old archive extraction.
20772 lock_old_archive_extraction=$lock_old_archive_extraction
20773
20774 # A C compiler.
20775 LTCC=$lt_CC
20776
20777 # LTCC compiler flags.
20778 LTCFLAGS=$lt_CFLAGS
20779
20780 # Take the output of nm and produce a listing of raw symbols and C names.
20781 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20782
20783 # Transform the output of nm in a proper C declaration.
20784 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20785
20786 # Transform the output of nm in a C name address pair.
20787 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20788
20789 # Transform the output of nm in a C name address pair when lib prefix is needed.
20790 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20791
20792 # The name of the directory that contains temporary libtool files.
20793 objdir=$objdir
20794
20795 # Used to examine libraries when file_magic_cmd begins with "file".
20796 MAGIC_CMD=$MAGIC_CMD
20797
20798 # Must we lock files when doing compilation?
20799 need_locks=$lt_need_locks
20800
20801 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20802 DSYMUTIL=$lt_DSYMUTIL
20803
20804 # Tool to change global to local symbols on Mac OS X.
20805 NMEDIT=$lt_NMEDIT
20806
20807 # Tool to manipulate fat objects and archives on Mac OS X.
20808 LIPO=$lt_LIPO
20809
20810 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20811 OTOOL=$lt_OTOOL
20812
20813 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20814 OTOOL64=$lt_OTOOL64
20815
20816 # Old archive suffix (normally "a").
20817 libext=$libext
20818
20819 # Shared library suffix (normally ".so").
20820 shrext_cmds=$lt_shrext_cmds
20821
20822 # The commands to extract the exported symbol list from a shared archive.
20823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20824
20825 # Variables whose values should be saved in libtool wrapper scripts and
20826 # restored at link time.
20827 variables_saved_for_relink=$lt_variables_saved_for_relink
20828
20829 # Do we need the "lib" prefix for modules?
20830 need_lib_prefix=$need_lib_prefix
20831
20832 # Do we need a version for libraries?
20833 need_version=$need_version
20834
20835 # Library versioning type.
20836 version_type=$version_type
20837
20838 # Shared library runtime path variable.
20839 runpath_var=$runpath_var
20840
20841 # Shared library path variable.
20842 shlibpath_var=$shlibpath_var
20843
20844 # Is shlibpath searched before the hard-coded library search path?
20845 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20846
20847 # Format of library name prefix.
20848 libname_spec=$lt_libname_spec
20849
20850 # List of archive names.  First name is the real one, the rest are links.
20851 # The last name is the one that the linker finds with -lNAME
20852 library_names_spec=$lt_library_names_spec
20853
20854 # The coded name of the library, if different from the real name.
20855 soname_spec=$lt_soname_spec
20856
20857 # Permission mode override for installation of shared libraries.
20858 install_override_mode=$lt_install_override_mode
20859
20860 # Command to use after installation of a shared archive.
20861 postinstall_cmds=$lt_postinstall_cmds
20862
20863 # Command to use after uninstallation of a shared archive.
20864 postuninstall_cmds=$lt_postuninstall_cmds
20865
20866 # Commands used to finish a libtool library installation in a directory.
20867 finish_cmds=$lt_finish_cmds
20868
20869 # As "finish_cmds", except a single script fragment to be evaled but
20870 # not shown.
20871 finish_eval=$lt_finish_eval
20872
20873 # Whether we should hardcode library paths into libraries.
20874 hardcode_into_libs=$hardcode_into_libs
20875
20876 # Compile-time system search path for libraries.
20877 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20878
20879 # Run-time system search path for libraries.
20880 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20881
20882 # Whether dlopen is supported.
20883 dlopen_support=$enable_dlopen
20884
20885 # Whether dlopen of programs is supported.
20886 dlopen_self=$enable_dlopen_self
20887
20888 # Whether dlopen of statically linked programs is supported.
20889 dlopen_self_static=$enable_dlopen_self_static
20890
20891 # Commands to strip libraries.
20892 old_striplib=$lt_old_striplib
20893 striplib=$lt_striplib
20894
20895
20896 # The linker used to build libraries.
20897 LD=$lt_LD
20898
20899 # How to create reloadable object files.
20900 reload_flag=$lt_reload_flag
20901 reload_cmds=$lt_reload_cmds
20902
20903 # Commands used to build an old-style archive.
20904 old_archive_cmds=$lt_old_archive_cmds
20905
20906 # A language specific compiler.
20907 CC=$lt_compiler
20908
20909 # Is the compiler the GNU compiler?
20910 with_gcc=$GCC
20911
20912 # Compiler flag to turn off builtin functions.
20913 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20914
20915 # How to pass a linker flag through the compiler.
20916 wl=$lt_lt_prog_compiler_wl
20917
20918 # Additional compiler flags for building library objects.
20919 pic_flag=$lt_lt_prog_compiler_pic
20920
20921 # Compiler flag to prevent dynamic linking.
20922 link_static_flag=$lt_lt_prog_compiler_static
20923
20924 # Does compiler simultaneously support -c and -o options?
20925 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20926
20927 # Whether or not to add -lc for building shared libraries.
20928 build_libtool_need_lc=$archive_cmds_need_lc
20929
20930 # Whether or not to disallow shared libs when runtime libs are static.
20931 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20932
20933 # Compiler flag to allow reflexive dlopens.
20934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20935
20936 # Compiler flag to generate shared objects directly from archives.
20937 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20938
20939 # Whether the compiler copes with passing no objects directly.
20940 compiler_needs_object=$lt_compiler_needs_object
20941
20942 # Create an old-style archive from a shared archive.
20943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20944
20945 # Create a temporary old-style archive to link instead of a shared archive.
20946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20947
20948 # Commands used to build a shared archive.
20949 archive_cmds=$lt_archive_cmds
20950 archive_expsym_cmds=$lt_archive_expsym_cmds
20951
20952 # Commands used to build a loadable module if different from building
20953 # a shared archive.
20954 module_cmds=$lt_module_cmds
20955 module_expsym_cmds=$lt_module_expsym_cmds
20956
20957 # Whether we are building with GNU ld or not.
20958 with_gnu_ld=$lt_with_gnu_ld
20959
20960 # Flag that allows shared libraries with undefined symbols to be built.
20961 allow_undefined_flag=$lt_allow_undefined_flag
20962
20963 # Flag that enforces no undefined symbols.
20964 no_undefined_flag=$lt_no_undefined_flag
20965
20966 # Flag to hardcode \$libdir into a binary during linking.
20967 # This must work even if \$libdir does not exist
20968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20969
20970 # If ld is used when linking, flag to hardcode \$libdir into a binary
20971 # during linking.  This must work even if \$libdir does not exist.
20972 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20973
20974 # Whether we need a single "-rpath" flag with a separated argument.
20975 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20976
20977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20978 # DIR into the resulting binary.
20979 hardcode_direct=$hardcode_direct
20980
20981 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20982 # DIR into the resulting binary and the resulting library dependency is
20983 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20984 # library is relocated.
20985 hardcode_direct_absolute=$hardcode_direct_absolute
20986
20987 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20988 # into the resulting binary.
20989 hardcode_minus_L=$hardcode_minus_L
20990
20991 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20992 # into the resulting binary.
20993 hardcode_shlibpath_var=$hardcode_shlibpath_var
20994
20995 # Set to "yes" if building a shared library automatically hardcodes DIR
20996 # into the library and all subsequent libraries and executables linked
20997 # against it.
20998 hardcode_automatic=$hardcode_automatic
20999
21000 # Set to yes if linker adds runtime paths of dependent libraries
21001 # to runtime path list.
21002 inherit_rpath=$inherit_rpath
21003
21004 # Whether libtool must link a program against all its dependency libraries.
21005 link_all_deplibs=$link_all_deplibs
21006
21007 # Fix the shell variable \$srcfile for the compiler.
21008 fix_srcfile_path=$lt_fix_srcfile_path
21009
21010 # Set to "yes" if exported symbols are required.
21011 always_export_symbols=$always_export_symbols
21012
21013 # The commands to list exported symbols.
21014 export_symbols_cmds=$lt_export_symbols_cmds
21015
21016 # Symbols that should not be listed in the preloaded symbols.
21017 exclude_expsyms=$lt_exclude_expsyms
21018
21019 # Symbols that must always be exported.
21020 include_expsyms=$lt_include_expsyms
21021
21022 # Commands necessary for linking programs (against libraries) with templates.
21023 prelink_cmds=$lt_prelink_cmds
21024
21025 # Specify filename containing input files.
21026 file_list_spec=$lt_file_list_spec
21027
21028 # How to hardcode a shared library path into an executable.
21029 hardcode_action=$hardcode_action
21030
21031 # ### END LIBTOOL CONFIG
21032
21033 _LT_EOF
21034
21035   case $host_os in
21036   aix3*)
21037     cat <<\_LT_EOF >> "$cfgfile"
21038 # AIX sometimes has problems with the GCC collect2 program.  For some
21039 # reason, if we set the COLLECT_NAMES environment variable, the problems
21040 # vanish in a puff of smoke.
21041 if test "X${COLLECT_NAMES+set}" != Xset; then
21042   COLLECT_NAMES=
21043   export COLLECT_NAMES
21044 fi
21045 _LT_EOF
21046     ;;
21047   esac
21048
21049
21050 ltmain="$ac_aux_dir/ltmain.sh"
21051
21052
21053   # We use sed instead of cat because bash on DJGPP gets confused if
21054   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21055   # text mode, it properly converts lines to CR/LF.  This bash problem
21056   # is reportedly fixed, but why not run on old versions too?
21057   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21058     || (rm -f "$cfgfile"; exit 1)
21059
21060   case $xsi_shell in
21061   yes)
21062     cat << \_LT_EOF >> "$cfgfile"
21063
21064 # func_dirname file append nondir_replacement
21065 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21066 # otherwise set result to NONDIR_REPLACEMENT.
21067 func_dirname ()
21068 {
21069   case ${1} in
21070     */*) func_dirname_result="${1%/*}${2}" ;;
21071     *  ) func_dirname_result="${3}" ;;
21072   esac
21073 }
21074
21075 # func_basename file
21076 func_basename ()
21077 {
21078   func_basename_result="${1##*/}"
21079 }
21080
21081 # func_dirname_and_basename file append nondir_replacement
21082 # perform func_basename and func_dirname in a single function
21083 # call:
21084 #   dirname:  Compute the dirname of FILE.  If nonempty,
21085 #             add APPEND to the result, otherwise set result
21086 #             to NONDIR_REPLACEMENT.
21087 #             value returned in "$func_dirname_result"
21088 #   basename: Compute filename of FILE.
21089 #             value retuned in "$func_basename_result"
21090 # Implementation must be kept synchronized with func_dirname
21091 # and func_basename. For efficiency, we do not delegate to
21092 # those functions but instead duplicate the functionality here.
21093 func_dirname_and_basename ()
21094 {
21095   case ${1} in
21096     */*) func_dirname_result="${1%/*}${2}" ;;
21097     *  ) func_dirname_result="${3}" ;;
21098   esac
21099   func_basename_result="${1##*/}"
21100 }
21101
21102 # func_stripname prefix suffix name
21103 # strip PREFIX and SUFFIX off of NAME.
21104 # PREFIX and SUFFIX must not contain globbing or regex special
21105 # characters, hashes, percent signs, but SUFFIX may contain a leading
21106 # dot (in which case that matches only a dot).
21107 func_stripname ()
21108 {
21109   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21110   # positional parameters, so assign one to ordinary parameter first.
21111   func_stripname_result=${3}
21112   func_stripname_result=${func_stripname_result#"${1}"}
21113   func_stripname_result=${func_stripname_result%"${2}"}
21114 }
21115
21116 # func_opt_split
21117 func_opt_split ()
21118 {
21119   func_opt_split_opt=${1%%=*}
21120   func_opt_split_arg=${1#*=}
21121 }
21122
21123 # func_lo2o object
21124 func_lo2o ()
21125 {
21126   case ${1} in
21127     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21128     *)    func_lo2o_result=${1} ;;
21129   esac
21130 }
21131
21132 # func_xform libobj-or-source
21133 func_xform ()
21134 {
21135   func_xform_result=${1%.*}.lo
21136 }
21137
21138 # func_arith arithmetic-term...
21139 func_arith ()
21140 {
21141   func_arith_result=$(( $* ))
21142 }
21143
21144 # func_len string
21145 # STRING may not start with a hyphen.
21146 func_len ()
21147 {
21148   func_len_result=${#1}
21149 }
21150
21151 _LT_EOF
21152     ;;
21153   *) # Bourne compatible functions.
21154     cat << \_LT_EOF >> "$cfgfile"
21155
21156 # func_dirname file append nondir_replacement
21157 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21158 # otherwise set result to NONDIR_REPLACEMENT.
21159 func_dirname ()
21160 {
21161   # Extract subdirectory from the argument.
21162   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
21163   if test "X$func_dirname_result" = "X${1}"; then
21164     func_dirname_result="${3}"
21165   else
21166     func_dirname_result="$func_dirname_result${2}"
21167   fi
21168 }
21169
21170 # func_basename file
21171 func_basename ()
21172 {
21173   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
21174 }
21175
21176
21177 # func_stripname prefix suffix name
21178 # strip PREFIX and SUFFIX off of NAME.
21179 # PREFIX and SUFFIX must not contain globbing or regex special
21180 # characters, hashes, percent signs, but SUFFIX may contain a leading
21181 # dot (in which case that matches only a dot).
21182 # func_strip_suffix prefix name
21183 func_stripname ()
21184 {
21185   case ${2} in
21186     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21187     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
21188   esac
21189 }
21190
21191 # sed scripts:
21192 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21193 my_sed_long_arg='1s/^-[^=]*=//'
21194
21195 # func_opt_split
21196 func_opt_split ()
21197 {
21198   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
21199   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
21200 }
21201
21202 # func_lo2o object
21203 func_lo2o ()
21204 {
21205   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
21206 }
21207
21208 # func_xform libobj-or-source
21209 func_xform ()
21210 {
21211   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
21212 }
21213
21214 # func_arith arithmetic-term...
21215 func_arith ()
21216 {
21217   func_arith_result=`expr "$@"`
21218 }
21219
21220 # func_len string
21221 # STRING may not start with a hyphen.
21222 func_len ()
21223 {
21224   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21225 }
21226
21227 _LT_EOF
21228 esac
21229
21230 case $lt_shell_append in
21231   yes)
21232     cat << \_LT_EOF >> "$cfgfile"
21233
21234 # func_append var value
21235 # Append VALUE to the end of shell variable VAR.
21236 func_append ()
21237 {
21238   eval "$1+=\$2"
21239 }
21240 _LT_EOF
21241     ;;
21242   *)
21243     cat << \_LT_EOF >> "$cfgfile"
21244
21245 # func_append var value
21246 # Append VALUE to the end of shell variable VAR.
21247 func_append ()
21248 {
21249   eval "$1=\$$1\$2"
21250 }
21251
21252 _LT_EOF
21253     ;;
21254   esac
21255
21256
21257   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21258     || (rm -f "$cfgfile"; exit 1)
21259
21260   mv -f "$cfgfile" "$ofile" ||
21261     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21262   chmod +x "$ofile"
21263
21264  ;;
21265
21266   esac
21267 done # for ac_tag
21268
21269
21270 as_fn_exit 0
21271 _ACEOF
21272 ac_clean_files=$ac_clean_files_save
21273
21274 test $ac_write_fail = 0 ||
21275   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21276
21277
21278 # configure is writing to config.log, and then calls config.status.
21279 # config.status does its own redirection, appending to config.log.
21280 # Unfortunately, on DOS this fails, as config.log is still kept open
21281 # by configure, so config.status won't be able to write to it; its
21282 # output is simply discarded.  So we exec the FD to /dev/null,
21283 # effectively closing config.log, so it can be properly (re)opened and
21284 # appended to by config.status.  When coming back to configure, we
21285 # need to make the FD available again.
21286 if test "$no_create" != yes; then
21287   ac_cs_success=:
21288   ac_config_status_args=
21289   test "$silent" = yes &&
21290     ac_config_status_args="$ac_config_status_args --quiet"
21291   exec 5>/dev/null
21292   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21293   exec 5>>config.log
21294   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21295   # would make configure fail if this is the last instruction.
21296   $ac_cs_success || as_fn_exit $?
21297 fi
21298 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21299   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21300 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21301 fi
21302
21303
21304 if test "$with_pam" = "yes"; then
21305     case $host in
21306         *-*-linux*)
21307             { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
21308 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
21309             ;;
21310     esac
21311 fi
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404