Imported Upstream version 1.8.6p8
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sudo 1.8.6p8.
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, 2010 Free Software
10 # Foundation, 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 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://www.sudo.ws/bugs/ about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='sudo'
572 PACKAGE_TARNAME='sudo'
573 PACKAGE_VERSION='1.8.6p8'
574 PACKAGE_STRING='sudo 1.8.6p8'
575 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
576 PACKAGE_URL=''
577
578 ac_config_libobj_dir=compat
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_c_werror_flag=
616 ac_subst_vars='LTLIBOBJS
617 KRB5CONFIG
618 LIBOBJS
619 FLEX
620 YFLAGS
621 YACC
622 NROFFPROG
623 MANDOCPROG
624 TRPROG
625 UNAMEPROG
626 OTOOL64
627 OTOOL
628 LIPO
629 NMEDIT
630 DSYMUTIL
631 MANIFEST_TOOL
632 AWK
633 STRIP
634 ac_ct_AR
635 DLLTOOL
636 OBJDUMP
637 LN_S
638 NM
639 ac_ct_DUMPBIN
640 DUMPBIN
641 LD
642 FGREP
643 EGREP
644 GREP
645 SED
646 host_os
647 host_vendor
648 host_cpu
649 host
650 build_os
651 build_vendor
652 build_cpu
653 build
654 RANLIB
655 AR
656 CPP
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CC
661 editor
662 secure_path
663 netsvc_conf
664 nsswitch_conf
665 sssd_lib
666 ldap_secret
667 ldap_conf
668 path_info
669 root_sudo
670 insults
671 tty_tickets
672 passwd_tries
673 env_reset
674 env_editor
675 runas_default
676 fqdn
677 badpass_message
678 mailsub
679 mailto
680 mail_no_perms
681 mail_no_host
682 mail_no_user
683 ignore_dot
684 loglen
685 badpri
686 goodpri
687 logfac
688 lecture
689 long_otp_prompt
690 passprompt
691 umask_override
692 sudo_umask
693 password_timeout
694 timeout
695 timedir
696 iolog_dir
697 NO_VIZ
698 SSP_CFLAGS
699 SSP_LDFLAGS
700 PIE_CFLAGS
701 PIE_LDFLAGS
702 CROSS_COMPILING
703 COMPAT_TEST_PROGS
704 SUDO_NLS
705 LIBINTL
706 LT_STATIC
707 LIBDL
708 CONFIGURE_ARGS
709 ac_config_libobj_dir
710 LIBTOOL_DEPS
711 ZLIB_SRC
712 ZLIB
713 LOGINCAP_USAGE
714 LDAP
715 SELINUX_USAGE
716 BSDAUTH_USAGE
717 DONT_LEAK_PATH_INFO
718 INSTALL_NOEXEC
719 noexec_file
720 SOEXT
721 PLUGINDIR
722 NOEXECDIR
723 NOEXECFILE
724 mansrcdir
725 mansectform
726 mansectsu
727 devdir
728 SEMAN
729 PSMAN
730 LCMAN
731 BAMAN
732 DEVEL
733 SUDOERS_GID
734 SUDOERS_UID
735 SUDOERS_MODE
736 SHLIB_MODE
737 MANCOMPRESSEXT
738 MANCOMPRESS
739 MANDIRTYPE
740 MANTYPE
741 AUTH_OBJS
742 OSDEFS
743 GETGROUPS_LIB
744 REPLAY_LIBS
745 AFS_LIBS
746 NET_LIBS
747 SUDOERS_LIBS
748 SUDO_LIBS
749 SUDO_OBJS
750 SUDOERS_OBJS
751 COMMON_OBJS
752 LT_LDEXPORTS
753 LT_LDDEP
754 LT_LDOPT
755 LT_LDMAP
756 LT_LDFLAGS
757 SUDOERS_LDFLAGS
758 LDFLAGS
759 CPPFLAGS
760 PROGS
761 CFLAGS
762 LIBTOOL
763 HAVE_BSM_AUDIT
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 with_otp_only
806 with_alertmail
807 with_devel
808 with_CC
809 with_rpath
810 with_blibpath
811 with_bsm_audit
812 with_linux_audit
813 with_sssd
814 with_sssd_lib
815 with_incpath
816 with_libpath
817 with_libraries
818 with_efence
819 with_csops
820 with_passwd
821 with_skey
822 with_opie
823 with_long_otp_prompt
824 with_SecurID
825 with_fwtk
826 with_kerb5
827 with_aixauth
828 with_pam
829 with_AFS
830 with_DCE
831 with_logincap
832 with_bsdauth
833 with_project
834 with_lecture
835 with_logging
836 with_logfac
837 with_goodpri
838 with_badpri
839 with_logpath
840 with_loglen
841 with_ignore_dot
842 with_mail_if_no_user
843 with_mail_if_no_host
844 with_mail_if_noperms
845 with_mailto
846 with_mailsubject
847 with_passprompt
848 with_badpass_message
849 with_fqdn
850 with_timedir
851 with_iologdir
852 with_sendmail
853 with_sudoers_mode
854 with_sudoers_uid
855 with_sudoers_gid
856 with_umask
857 with_umask_override
858 with_runas_default
859 with_exempt
860 with_editor
861 with_env_editor
862 with_passwd_tries
863 with_timeout
864 with_password_timeout
865 with_tty_tickets
866 with_insults
867 with_all_insults
868 with_classic_insults
869 with_csops_insults
870 with_hal_insults
871 with_goons_insults
872 with_nsswitch
873 with_ldap
874 with_ldap_conf_file
875 with_ldap_secret_file
876 with_pc_insults
877 with_secure_path
878 with_interfaces
879 with_stow
880 with_askpass
881 with_plugindir
882 with_man
883 with_mdoc
884 enable_authentication
885 enable_root_mailer
886 enable_setreuid
887 enable_setresuid
888 enable_shadow
889 enable_root_sudo
890 enable_log_host
891 enable_noargs_shell
892 enable_shell_sets_home
893 enable_path_info
894 enable_env_debug
895 enable_zlib
896 enable_env_reset
897 enable_warnings
898 enable_werror
899 enable_hardening
900 enable_pie
901 enable_admin_flag
902 enable_nls
903 with_selinux
904 enable_gss_krb5_ccache_name
905 enable_shared
906 enable_static
907 with_pic
908 enable_fast_install
909 with_gnu_ld
910 with_sysroot
911 enable_libtool_lock
912 with_noexec
913 with_netsvc
914 enable_sia
915 enable_largefile
916 with_pam_login
917 enable_pam_session
918 enable_kerb5_instance
919 '
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CPP
929 YACC
930 YFLAGS'
931
932
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 ac_unrecognized_opts=
937 ac_unrecognized_sep=
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
940 cache_file=/dev/null
941 exec_prefix=NONE
942 no_create=
943 no_recursion=
944 prefix=NONE
945 program_prefix=NONE
946 program_suffix=NONE
947 program_transform_name=s,x,x,
948 silent=
949 site=
950 srcdir=
951 verbose=
952 x_includes=NONE
953 x_libraries=NONE
954
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir='${exec_prefix}/bin'
962 sbindir='${exec_prefix}/sbin'
963 libexecdir='${exec_prefix}/libexec'
964 datarootdir='${prefix}/share'
965 datadir='${datarootdir}'
966 sysconfdir='${prefix}/etc'
967 sharedstatedir='${prefix}/com'
968 localstatedir='${prefix}/var'
969 includedir='${prefix}/include'
970 oldincludedir='/usr/include'
971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972 infodir='${datarootdir}/info'
973 htmldir='${docdir}'
974 dvidir='${docdir}'
975 pdfdir='${docdir}'
976 psdir='${docdir}'
977 libdir='${exec_prefix}/lib'
978 localedir='${datarootdir}/locale'
979 mandir='${datarootdir}/man'
980
981 ac_prev=
982 ac_dashdash=
983 for ac_option
984 do
985   # If the previous option needs an argument, assign it.
986   if test -n "$ac_prev"; then
987     eval $ac_prev=\$ac_option
988     ac_prev=
989     continue
990   fi
991
992   case $ac_option in
993   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994   *=)   ac_optarg= ;;
995   *)    ac_optarg=yes ;;
996   esac
997
998   # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000   case $ac_dashdash$ac_option in
1001   --)
1002     ac_dashdash=yes ;;
1003
1004   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005     ac_prev=bindir ;;
1006   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007     bindir=$ac_optarg ;;
1008
1009   -build | --build | --buil | --bui | --bu)
1010     ac_prev=build_alias ;;
1011   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012     build_alias=$ac_optarg ;;
1013
1014   -cache-file | --cache-file | --cache-fil | --cache-fi \
1015   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016     ac_prev=cache_file ;;
1017   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019     cache_file=$ac_optarg ;;
1020
1021   --config-cache | -C)
1022     cache_file=config.cache ;;
1023
1024   -datadir | --datadir | --datadi | --datad)
1025     ac_prev=datadir ;;
1026   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027     datadir=$ac_optarg ;;
1028
1029   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030   | --dataroo | --dataro | --datar)
1031     ac_prev=datarootdir ;;
1032   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034     datarootdir=$ac_optarg ;;
1035
1036   -disable-* | --disable-*)
1037     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040       as_fn_error $? "invalid feature name: $ac_useropt"
1041     ac_useropt_orig=$ac_useropt
1042     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043     case $ac_user_opts in
1044       *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048          ac_unrecognized_sep=', ';;
1049     esac
1050     eval enable_$ac_useropt=no ;;
1051
1052   -docdir | --docdir | --docdi | --doc | --do)
1053     ac_prev=docdir ;;
1054   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055     docdir=$ac_optarg ;;
1056
1057   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058     ac_prev=dvidir ;;
1059   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060     dvidir=$ac_optarg ;;
1061
1062   -enable-* | --enable-*)
1063     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066       as_fn_error $? "invalid feature name: $ac_useropt"
1067     ac_useropt_orig=$ac_useropt
1068     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069     case $ac_user_opts in
1070       *"
1071 "enable_$ac_useropt"
1072 "*) ;;
1073       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074          ac_unrecognized_sep=', ';;
1075     esac
1076     eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080   | --exec | --exe | --ex)
1081     ac_prev=exec_prefix ;;
1082   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084   | --exec=* | --exe=* | --ex=*)
1085     exec_prefix=$ac_optarg ;;
1086
1087   -gas | --gas | --ga | --g)
1088     # Obsolete; use --with-gas.
1089     with_gas=yes ;;
1090
1091   -help | --help | --hel | --he | -h)
1092     ac_init_help=long ;;
1093   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094     ac_init_help=recursive ;;
1095   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096     ac_init_help=short ;;
1097
1098   -host | --host | --hos | --ho)
1099     ac_prev=host_alias ;;
1100   -host=* | --host=* | --hos=* | --ho=*)
1101     host_alias=$ac_optarg ;;
1102
1103   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104     ac_prev=htmldir ;;
1105   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106   | --ht=*)
1107     htmldir=$ac_optarg ;;
1108
1109   -includedir | --includedir | --includedi | --included | --include \
1110   | --includ | --inclu | --incl | --inc)
1111     ac_prev=includedir ;;
1112   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113   | --includ=* | --inclu=* | --incl=* | --inc=*)
1114     includedir=$ac_optarg ;;
1115
1116   -infodir | --infodir | --infodi | --infod | --info | --inf)
1117     ac_prev=infodir ;;
1118   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119     infodir=$ac_optarg ;;
1120
1121   -libdir | --libdir | --libdi | --libd)
1122     ac_prev=libdir ;;
1123   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124     libdir=$ac_optarg ;;
1125
1126   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127   | --libexe | --libex | --libe)
1128     ac_prev=libexecdir ;;
1129   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130   | --libexe=* | --libex=* | --libe=*)
1131     libexecdir=$ac_optarg ;;
1132
1133   -localedir | --localedir | --localedi | --localed | --locale)
1134     ac_prev=localedir ;;
1135   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136     localedir=$ac_optarg ;;
1137
1138   -localstatedir | --localstatedir | --localstatedi | --localstated \
1139   | --localstate | --localstat | --localsta | --localst | --locals)
1140     ac_prev=localstatedir ;;
1141   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143     localstatedir=$ac_optarg ;;
1144
1145   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146     ac_prev=mandir ;;
1147   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148     mandir=$ac_optarg ;;
1149
1150   -nfp | --nfp | --nf)
1151     # Obsolete; use --without-fp.
1152     with_fp=no ;;
1153
1154   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155   | --no-cr | --no-c | -n)
1156     no_create=yes ;;
1157
1158   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160     no_recursion=yes ;;
1161
1162   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164   | --oldin | --oldi | --old | --ol | --o)
1165     ac_prev=oldincludedir ;;
1166   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169     oldincludedir=$ac_optarg ;;
1170
1171   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172     ac_prev=prefix ;;
1173   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174     prefix=$ac_optarg ;;
1175
1176   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177   | --program-pre | --program-pr | --program-p)
1178     ac_prev=program_prefix ;;
1179   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181     program_prefix=$ac_optarg ;;
1182
1183   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184   | --program-suf | --program-su | --program-s)
1185     ac_prev=program_suffix ;;
1186   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188     program_suffix=$ac_optarg ;;
1189
1190   -program-transform-name | --program-transform-name \
1191   | --program-transform-nam | --program-transform-na \
1192   | --program-transform-n | --program-transform- \
1193   | --program-transform | --program-transfor \
1194   | --program-transfo | --program-transf \
1195   | --program-trans | --program-tran \
1196   | --progr-tra | --program-tr | --program-t)
1197     ac_prev=program_transform_name ;;
1198   -program-transform-name=* | --program-transform-name=* \
1199   | --program-transform-nam=* | --program-transform-na=* \
1200   | --program-transform-n=* | --program-transform-=* \
1201   | --program-transform=* | --program-transfor=* \
1202   | --program-transfo=* | --program-transf=* \
1203   | --program-trans=* | --program-tran=* \
1204   | --progr-tra=* | --program-tr=* | --program-t=*)
1205     program_transform_name=$ac_optarg ;;
1206
1207   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208     ac_prev=pdfdir ;;
1209   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210     pdfdir=$ac_optarg ;;
1211
1212   -psdir | --psdir | --psdi | --psd | --ps)
1213     ac_prev=psdir ;;
1214   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215     psdir=$ac_optarg ;;
1216
1217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218   | -silent | --silent | --silen | --sile | --sil)
1219     silent=yes ;;
1220
1221   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222     ac_prev=sbindir ;;
1223   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224   | --sbi=* | --sb=*)
1225     sbindir=$ac_optarg ;;
1226
1227   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229   | --sharedst | --shareds | --shared | --share | --shar \
1230   | --sha | --sh)
1231     ac_prev=sharedstatedir ;;
1232   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235   | --sha=* | --sh=*)
1236     sharedstatedir=$ac_optarg ;;
1237
1238   -site | --site | --sit)
1239     ac_prev=site ;;
1240   -site=* | --site=* | --sit=*)
1241     site=$ac_optarg ;;
1242
1243   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244     ac_prev=srcdir ;;
1245   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246     srcdir=$ac_optarg ;;
1247
1248   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249   | --syscon | --sysco | --sysc | --sys | --sy)
1250     ac_prev=sysconfdir ;;
1251   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253     sysconfdir=$ac_optarg ;;
1254
1255   -target | --target | --targe | --targ | --tar | --ta | --t)
1256     ac_prev=target_alias ;;
1257   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258     target_alias=$ac_optarg ;;
1259
1260   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261     verbose=yes ;;
1262
1263   -version | --version | --versio | --versi | --vers | -V)
1264     ac_init_version=: ;;
1265
1266   -with-* | --with-*)
1267     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270       as_fn_error $? "invalid package name: $ac_useropt"
1271     ac_useropt_orig=$ac_useropt
1272     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273     case $ac_user_opts in
1274       *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278          ac_unrecognized_sep=', ';;
1279     esac
1280     eval with_$ac_useropt=\$ac_optarg ;;
1281
1282   -without-* | --without-*)
1283     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286       as_fn_error $? "invalid package name: $ac_useropt"
1287     ac_useropt_orig=$ac_useropt
1288     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289     case $ac_user_opts in
1290       *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294          ac_unrecognized_sep=', ';;
1295     esac
1296     eval with_$ac_useropt=no ;;
1297
1298   --x)
1299     # Obsolete; use --with-x.
1300     with_x=yes ;;
1301
1302   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303   | --x-incl | --x-inc | --x-in | --x-i)
1304     ac_prev=x_includes ;;
1305   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307     x_includes=$ac_optarg ;;
1308
1309   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311     ac_prev=x_libraries ;;
1312   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314     x_libraries=$ac_optarg ;;
1315
1316   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1317 Try \`$0 --help' for more information"
1318     ;;
1319
1320   *=*)
1321     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322     # Reject names that are not valid shell variable names.
1323     case $ac_envvar in #(
1324       '' | [0-9]* | *[!_$as_cr_alnum]* )
1325       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1326     esac
1327     eval $ac_envvar=\$ac_optarg
1328     export $ac_envvar ;;
1329
1330   *)
1331     # FIXME: should be removed in autoconf 3.0.
1332     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1336     ;;
1337
1338   esac
1339 done
1340
1341 if test -n "$ac_prev"; then
1342   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343   as_fn_error $? "missing argument to $ac_option"
1344 fi
1345
1346 if test -n "$ac_unrecognized_opts"; then
1347   case $enable_option_checking in
1348     no) ;;
1349     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1350     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351   esac
1352 fi
1353
1354 # Check all directory arguments for consistency.
1355 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356                 datadir sysconfdir sharedstatedir localstatedir includedir \
1357                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358                 libdir localedir mandir
1359 do
1360   eval ac_val=\$$ac_var
1361   # Remove trailing slashes.
1362   case $ac_val in
1363     */ )
1364       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365       eval $ac_var=\$ac_val;;
1366   esac
1367   # Be sure to have absolute directory names.
1368   case $ac_val in
1369     [\\/$]* | ?:[\\/]* )  continue;;
1370     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371   esac
1372   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1373 done
1374
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1378 build=$build_alias
1379 host=$host_alias
1380 target=$target_alias
1381
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384   if test "x$build_alias" = x; then
1385     cross_compiling=maybe
1386     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1387     If a cross compiler is detected then cross compile mode will be used" >&2
1388   elif test "x$build_alias" != "x$host_alias"; then
1389     cross_compiling=yes
1390   fi
1391 fi
1392
1393 ac_tool_prefix=
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396 test "$silent" = yes && exec 6>/dev/null
1397
1398
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402   as_fn_error $? "working directory cannot be determined"
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404   as_fn_error $? "pwd does not report name of working directory"
1405
1406
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409   ac_srcdir_defaulted=yes
1410   # Try the directory containing this script, then the parent directory.
1411   ac_confdir=`$as_dirname -- "$as_myself" ||
1412 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413          X"$as_myself" : 'X\(//\)[^/]' \| \
1414          X"$as_myself" : 'X\(//\)$' \| \
1415          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1416 $as_echo X"$as_myself" |
1417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\/\)[^/].*/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\/\)$/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\).*/{
1430             s//\1/
1431             q
1432           }
1433           s/.*/./; q'`
1434   srcdir=$ac_confdir
1435   if test ! -r "$srcdir/$ac_unique_file"; then
1436     srcdir=..
1437   fi
1438 else
1439   ac_srcdir_defaulted=no
1440 fi
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1444 fi
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 ac_abs_confdir=`(
1447         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1448         pwd)`
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451   srcdir=.
1452 fi
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1456 case $srcdir in
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 esac
1459 for ac_var in $ac_precious_vars; do
1460   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461   eval ac_env_${ac_var}_value=\$${ac_var}
1462   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 done
1465
1466 #
1467 # Report the --help message.
1468 #
1469 if test "$ac_init_help" = "long"; then
1470   # Omit some internal or obsolete options to make the list less imposing.
1471   # This message is too long to be a string in the A/UX 3.1 sh.
1472   cat <<_ACEOF
1473 \`configure' configures sudo 1.8.6p8 to adapt to many kinds of systems.
1474
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE.  See below for descriptions of some of the useful variables.
1479
1480 Defaults for the options are specified in brackets.
1481
1482 Configuration:
1483   -h, --help              display this help and exit
1484       --help=short        display options specific to this package
1485       --help=recursive    display the short help of all the included packages
1486   -V, --version           display version information and exit
1487   -q, --quiet, --silent   do not print \`checking ...' messages
1488       --cache-file=FILE   cache test results in FILE [disabled]
1489   -C, --config-cache      alias for \`--cache-file=config.cache'
1490   -n, --no-create         do not create output files
1491       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1492
1493 Installation directories:
1494   --prefix=PREFIX         install architecture-independent files in PREFIX
1495                           [$ac_default_prefix]
1496   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1497                           [PREFIX]
1498
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1503
1504 For better control, use the options below.
1505
1506 Fine tuning of the installation directories:
1507   --bindir=DIR            user executables [EPREFIX/bin]
1508   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1509   --libexecdir=DIR        program executables [EPREFIX/libexec]
1510   --sysconfdir=DIR        read-only single-machine data [/etc]
1511   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1512   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1513   --libdir=DIR            object code libraries [EPREFIX/lib]
1514   --includedir=DIR        C header files [PREFIX/include]
1515   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1516   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1517   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1518   --infodir=DIR           info documentation [DATAROOTDIR/info]
1519   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1520   --mandir=DIR            man documentation [DATAROOTDIR/man]
1521   --docdir=DIR            documentation root [DATAROOTDIR/doc/sudo]
1522   --htmldir=DIR           html documentation [DOCDIR]
1523   --dvidir=DIR            dvi documentation [DOCDIR]
1524   --pdfdir=DIR            pdf documentation [DOCDIR]
1525   --psdir=DIR             ps documentation [DOCDIR]
1526 _ACEOF
1527
1528   cat <<\_ACEOF
1529
1530 System types:
1531   --build=BUILD     configure for building on BUILD [guessed]
1532   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1533 _ACEOF
1534 fi
1535
1536 if test -n "$ac_init_help"; then
1537   case $ac_init_help in
1538      short | recursive ) echo "Configuration of sudo 1.8.6p8:";;
1539    esac
1540   cat <<\_ACEOF
1541
1542 Optional Features:
1543   --disable-option-checking  ignore unrecognized --enable/--with options
1544   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1545   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1546   --disable-authentication
1547                           Do not require authentication by default
1548   --disable-root-mailer   Don't run the mailer as root, run as the user
1549   --disable-setreuid      Don't try to use the setreuid() function
1550   --disable-setresuid     Don't try to use the setresuid() function
1551   --disable-shadow        Never use shadow passwords
1552   --disable-root-sudo     Don't allow root to run sudo
1553   --enable-log-host       Log the hostname in the log file
1554   --enable-noargs-shell   If sudo is given no arguments run a shell
1555   --enable-shell-sets-home
1556                           Set $HOME to target user in shell mode
1557   --disable-path-info     Print 'command not allowed' not 'command not found'
1558   --enable-env-debug      Whether to enable environment debugging.
1559   --enable-zlib[=PATH]    Whether to enable or disable zlib
1560   --enable-env-reset      Whether to enable environment resetting by default.
1561   --enable-warnings       Whether to enable compiler warnings
1562   --enable-werror         Whether to enable the -Werror compiler option
1563   --disable-hardening     Do not use compiler/linker exploit mitigation
1564                           options
1565   --disable-pie           Do not build position independent executables, even
1566                           if the compiler/linker supports them
1567   --enable-admin-flag     Whether to create a Ubuntu-style admin flag file
1568   --disable-nls           Disable natural language support using gettext
1569   --enable-gss-krb5-ccache-name
1570                           Use GSS-API to set the Kerberos V cred cache name
1571   --enable-shared[=PKGS]  build shared libraries [default=yes]
1572   --enable-static[=PKGS]  build static libraries [default=yes]
1573   --enable-fast-install[=PKGS]
1574                           optimize for fast installation [default=yes]
1575   --disable-libtool-lock  avoid locking (might break parallel builds)
1576   --disable-sia           Disable SIA on Digital UNIX
1577   --disable-largefile     omit support for large files
1578   --disable-pam-session   Disable PAM session support
1579   --enable-kerb5-instance instance string to append to the username (separated
1580                           by a slash)
1581
1582 Optional Packages:
1583   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1584   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1585   --with-otp-only         deprecated
1586   --with-alertmail        deprecated
1587   --with-devel            add development options
1588   --with-CC               C compiler to use
1589   --with-rpath            pass -R flag in addition to -L for lib paths
1590   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1591   --with-bsm-audit        enable BSM audit support
1592   --with-linux-audit      enable Linux audit support
1593   --with-sssd             enable SSSD support
1594   --with-sssd-lib         path to the SSSD library
1595   --with-incpath          additional places to look for include files
1596   --with-libpath          additional places to look for libraries
1597   --with-libraries        additional libraries to link with
1598   --with-efence           link with -lefence for malloc() debugging
1599   --with-csops            add CSOps standard options
1600   --without-passwd        don't use passwd/shadow file for authentication
1601   --with-skey=DIR         enable S/Key support
1602   --with-opie=DIR         enable OPIE support
1603   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1604   --with-SecurID[=DIR]    enable SecurID support
1605   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1606   --with-kerb5[=DIR]      enable Kerberos V support
1607   --with-aixauth          enable AIX general authentication support
1608   --with-pam              enable PAM support
1609   --with-AFS              enable AFS support
1610   --with-DCE              enable DCE support
1611   --with-logincap         enable BSD login class support
1612   --with-bsdauth          enable BSD authentication support
1613   --with-project          enable Solaris project support
1614   --without-lecture       don't print lecture for first-time sudoer
1615   --with-logging          log via syslog, file, or both
1616   --with-logfac           syslog facility to log with (default is "auth")
1617   --with-goodpri          syslog priority for commands (def is "notice")
1618   --with-badpri           syslog priority for failures (def is "alert")
1619   --with-logpath          path to the sudo log file
1620   --with-loglen           maximum length of a log file line (default is 80)
1621   --with-ignore-dot       ignore '.' in the PATH
1622   --without-mail-if-no-user
1623                           do not send mail if user not in sudoers
1624   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1625   --with-mail-if-noperms  send mail if user not allowed to run command
1626   --with-mailto           who should get sudo mail (default is "root")
1627   --with-mailsubject      subject of sudo mail
1628   --with-passprompt       default password prompt
1629   --with-badpass-message  message the user sees when the password is wrong
1630   --with-fqdn             expect fully qualified hosts in sudoers
1631   --with-timedir          path to the sudo timestamp dir
1632   --with-iologdir=DIR     directory to store sudo I/O log files in
1633   --with-sendmail         set path to sendmail
1634   --without-sendmail      do not send mail at all
1635   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1636   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1637   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1638   --with-umask            umask with which the prog should run (default is
1639                           022)
1640   --without-umask         Preserves the umask of the user invoking sudo.
1641   --with-umask-override   Use the umask specified in sudoers even if it is
1642                           less restrictive than the user's.
1643   --with-runas-default    User to run commands as (default is "root")
1644   --with-exempt=group     no passwd needed for users in this group
1645   --with-editor=path      Default editor for visudo (defaults to vi)
1646   --with-env-editor       Use the environment variable EDITOR for visudo
1647   --with-passwd-tries     number of tries to enter password (default is 3)
1648   --with-timeout          minutes before sudo asks for passwd again (def is 5
1649                           minutes)
1650   --with-password-timeout passwd prompt timeout in minutes (default is 5
1651                           minutes)
1652   --with-tty-tickets      use a different ticket file for each tty
1653   --with-insults          insult the user for entering an incorrect password
1654   --with-all-insults      include all the sudo insult sets
1655   --with-classic-insults  include the insults from the "classic" sudo
1656   --with-csops-insults    include CSOps insults
1657   --with-hal-insults      include 2001-like insults
1658   --with-goons-insults    include the insults from the "Goon Show"
1659   --with-nsswitch[=PATH]  path to nsswitch.conf
1660   --with-ldap[=DIR]       enable LDAP support
1661   --with-ldap-conf-file   path to LDAP configuration file
1662   --with-ldap-secret-file path to LDAP secret password file
1663   --with-pc-insults       replace politically incorrect insults with less
1664                           offensive ones
1665   --with-secure-path      override the user's path with a built-in one
1666   --without-interfaces    don't try to read the ip addr of ether interfaces
1667   --with-stow             deprecated
1668   --with-askpass=PATH     Fully qualified pathname of askpass helper
1669   --with-plugindir        set directory to load plugins from
1670   --with-man              manual pages use man macros
1671   --with-mdoc             manual pages use mdoc macros
1672   --with-selinux          enable SELinux support
1673   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1674                           both]
1675   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1676   --with-sysroot=DIR Search for dependent libraries within DIR
1677                         (or the compiler's sysroot if not specified).
1678   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1679   --with-netsvc[=PATH]    path to netsvc.conf
1680   --with-pam-login        enable specific PAM session for sudo -i
1681
1682 Some influential environment variables:
1683   CC          C compiler command
1684   CFLAGS      C compiler flags
1685   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1686               nonstandard directory <lib dir>
1687   LIBS        libraries to pass to the linker, e.g. -l<library>
1688   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1689               you have headers in a nonstandard directory <include dir>
1690   CPP         C preprocessor
1691   YACC        The `Yet Another Compiler Compiler' implementation to use.
1692               Defaults to the first program found out of: `bison -y', `byacc',
1693               `yacc'.
1694   YFLAGS      The list of arguments that will be passed by default to $YACC.
1695               This script will default YFLAGS to the empty string to avoid a
1696               default value of `-d' given by some make applications.
1697
1698 Use these variables to override the choices made by `configure' or to help
1699 it to find libraries and programs with nonstandard names/locations.
1700
1701 Report bugs to <http://www.sudo.ws/bugs/>.
1702 _ACEOF
1703 ac_status=$?
1704 fi
1705
1706 if test "$ac_init_help" = "recursive"; then
1707   # If there are subdirs, report their specific --help.
1708   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709     test -d "$ac_dir" ||
1710       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711       continue
1712     ac_builddir=.
1713
1714 case "$ac_dir" in
1715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 *)
1717   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1718   # A ".." for each directory in $ac_dir_suffix.
1719   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1720   case $ac_top_builddir_sub in
1721   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1723   esac ;;
1724 esac
1725 ac_abs_top_builddir=$ac_pwd
1726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir=$ac_top_build_prefix
1729
1730 case $srcdir in
1731   .)  # We are building in place.
1732     ac_srcdir=.
1733     ac_top_srcdir=$ac_top_builddir_sub
1734     ac_abs_top_srcdir=$ac_pwd ;;
1735   [\\/]* | ?:[\\/]* )  # Absolute name.
1736     ac_srcdir=$srcdir$ac_dir_suffix;
1737     ac_top_srcdir=$srcdir
1738     ac_abs_top_srcdir=$srcdir ;;
1739   *) # Relative name.
1740     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741     ac_top_srcdir=$ac_top_build_prefix$srcdir
1742     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1743 esac
1744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1745
1746     cd "$ac_dir" || { ac_status=$?; continue; }
1747     # Check for guested configure.
1748     if test -f "$ac_srcdir/configure.gnu"; then
1749       echo &&
1750       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751     elif test -f "$ac_srcdir/configure"; then
1752       echo &&
1753       $SHELL "$ac_srcdir/configure" --help=recursive
1754     else
1755       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1756     fi || ac_status=$?
1757     cd "$ac_pwd" || { ac_status=$?; break; }
1758   done
1759 fi
1760
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1763   cat <<\_ACEOF
1764 sudo configure 1.8.6p8
1765 generated by GNU Autoconf 2.68
1766
1767 Copyright (C) 2010 Free Software Foundation, Inc.
1768 This configure script is free software; the Free Software Foundation
1769 gives unlimited permission to copy, distribute and modify it.
1770 _ACEOF
1771   exit
1772 fi
1773
1774 ## ------------------------ ##
1775 ## Autoconf initialization. ##
1776 ## ------------------------ ##
1777
1778 # ac_fn_c_try_compile LINENO
1779 # --------------------------
1780 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_compile ()
1782 {
1783   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784   rm -f conftest.$ac_objext
1785   if { { ac_try="$ac_compile"
1786 case "(($ac_try" in
1787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788   *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792   (eval "$ac_compile") 2>conftest.err
1793   ac_status=$?
1794   if test -s conftest.err; then
1795     grep -v '^ *+' conftest.err >conftest.er1
1796     cat conftest.er1 >&5
1797     mv -f conftest.er1 conftest.err
1798   fi
1799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800   test $ac_status = 0; } && {
1801          test -z "$ac_c_werror_flag" ||
1802          test ! -s conftest.err
1803        } && test -s conftest.$ac_objext; then :
1804   ac_retval=0
1805 else
1806   $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809         ac_retval=1
1810 fi
1811   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812   as_fn_set_status $ac_retval
1813
1814 } # ac_fn_c_try_compile
1815
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_link ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   rm -f conftest.$ac_objext conftest$ac_exeext
1823   if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826   *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830   (eval "$ac_link") 2>conftest.err
1831   ac_status=$?
1832   if test -s conftest.err; then
1833     grep -v '^ *+' conftest.err >conftest.er1
1834     cat conftest.er1 >&5
1835     mv -f conftest.er1 conftest.err
1836   fi
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } && {
1839          test -z "$ac_c_werror_flag" ||
1840          test ! -s conftest.err
1841        } && test -s conftest$ac_exeext && {
1842          test "$cross_compiling" = yes ||
1843          $as_test_x conftest$ac_exeext
1844        }; then :
1845   ac_retval=0
1846 else
1847   $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850         ac_retval=1
1851 fi
1852   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854   # interfere with the next link command; also delete a directory that is
1855   # left behind by Apple's compiler.  We do this before executing the actions.
1856   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858   as_fn_set_status $ac_retval
1859
1860 } # ac_fn_c_try_link
1861
1862 # ac_fn_c_try_cpp LINENO
1863 # ----------------------
1864 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_c_try_cpp ()
1866 {
1867   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868   if { { ac_try="$ac_cpp conftest.$ac_ext"
1869 case "(($ac_try" in
1870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871   *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1876   ac_status=$?
1877   if test -s conftest.err; then
1878     grep -v '^ *+' conftest.err >conftest.er1
1879     cat conftest.er1 >&5
1880     mv -f conftest.er1 conftest.err
1881   fi
1882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883   test $ac_status = 0; } > conftest.i && {
1884          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1885          test ! -s conftest.err
1886        }; then :
1887   ac_retval=0
1888 else
1889   $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892     ac_retval=1
1893 fi
1894   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895   as_fn_set_status $ac_retval
1896
1897 } # ac_fn_c_try_cpp
1898
1899 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1900 # -------------------------------------------------------
1901 # Tests whether HEADER exists and can be compiled using the include files in
1902 # INCLUDES, setting the cache variable VAR accordingly.
1903 ac_fn_c_check_header_compile ()
1904 {
1905   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909   $as_echo_n "(cached) " >&6
1910 else
1911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h.  */
1913 $4
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917   eval "$3=yes"
1918 else
1919   eval "$3=no"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_header_compile
1929
1930 # ac_fn_c_try_run LINENO
1931 # ----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933 # that executables *can* be run.
1934 ac_fn_c_try_run ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940   *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944   (eval "$ac_link") 2>&5
1945   ac_status=$?
1946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948   { { case "(($ac_try" in
1949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950   *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954   (eval "$ac_try") 2>&5
1955   ac_status=$?
1956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957   test $ac_status = 0; }; }; then :
1958   ac_retval=0
1959 else
1960   $as_echo "$as_me: program exited with status $ac_status" >&5
1961        $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964        ac_retval=$ac_status
1965 fi
1966   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968   as_fn_set_status $ac_retval
1969
1970 } # ac_fn_c_try_run
1971
1972 # ac_fn_c_check_func LINENO FUNC VAR
1973 # ----------------------------------
1974 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1975 ac_fn_c_check_func ()
1976 {
1977   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981   $as_echo_n "(cached) " >&6
1982 else
1983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1987 #define $2 innocuous_$2
1988
1989 /* System header to define __stub macros and hopefully few prototypes,
1990     which can conflict with char $2 (); below.
1991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1992     <limits.h> exists even on freestanding compilers.  */
1993
1994 #ifdef __STDC__
1995 # include <limits.h>
1996 #else
1997 # include <assert.h>
1998 #endif
1999
2000 #undef $2
2001
2002 /* Override any GCC internal prototype to avoid an error.
2003    Use char because int might match the return type of a GCC
2004    builtin and then its argument prototype would still apply.  */
2005 #ifdef __cplusplus
2006 extern "C"
2007 #endif
2008 char $2 ();
2009 /* The GNU C library defines this for functions which it implements
2010     to always fail with ENOSYS.  Some functions are actually named
2011     something starting with __ and the normal name is an alias.  */
2012 #if defined __stub_$2 || defined __stub___$2
2013 choke me
2014 #endif
2015
2016 int
2017 main ()
2018 {
2019 return $2 ();
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_link "$LINENO"; then :
2025   eval "$3=yes"
2026 else
2027   eval "$3=no"
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext \
2030     conftest$ac_exeext conftest.$ac_ext
2031 fi
2032 eval ac_res=\$$3
2033                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036
2037 } # ac_fn_c_check_func
2038
2039 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2040 # -------------------------------------------
2041 # Tests whether TYPE exists after having included INCLUDES, setting cache
2042 # variable VAR accordingly.
2043 ac_fn_c_check_type ()
2044 {
2045   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 $as_echo_n "checking for $2... " >&6; }
2048 if eval \${$3+:} false; then :
2049   $as_echo_n "(cached) " >&6
2050 else
2051   eval "$3=no"
2052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $4
2055 int
2056 main ()
2057 {
2058 if (sizeof ($2))
2059          return 0;
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 $4
2068 int
2069 main ()
2070 {
2071 if (sizeof (($2)))
2072             return 0;
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078
2079 else
2080   eval "$3=yes"
2081 fi
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 fi
2086 eval ac_res=\$$3
2087                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090
2091 } # ac_fn_c_check_type
2092
2093 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2094 # -------------------------------------------------------
2095 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2096 # the include files in INCLUDES and setting the cache variable VAR
2097 # accordingly.
2098 ac_fn_c_check_header_mongrel ()
2099 {
2100   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101   if eval \${$3+:} false; then :
2102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105   $as_echo_n "(cached) " >&6
2106 fi
2107 eval ac_res=\$$3
2108                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 else
2111   # Is the header compilable?
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2113 $as_echo_n "checking $2 usability... " >&6; }
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 $4
2117 #include <$2>
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120   ac_header_compiler=yes
2121 else
2122   ac_header_compiler=no
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2126 $as_echo "$ac_header_compiler" >&6; }
2127
2128 # Is the header present?
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2130 $as_echo_n "checking $2 presence... " >&6; }
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h.  */
2133 #include <$2>
2134 _ACEOF
2135 if ac_fn_c_try_cpp "$LINENO"; then :
2136   ac_header_preproc=yes
2137 else
2138   ac_header_preproc=no
2139 fi
2140 rm -f conftest.err conftest.i conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2142 $as_echo "$ac_header_preproc" >&6; }
2143
2144 # So?  What about this header?
2145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2146   yes:no: )
2147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2148 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2149     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2151     ;;
2152   no:yes:* )
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2154 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2155     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2156 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2157     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2158 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2159     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2160 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2161     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2162 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2163 ( $as_echo "## --------------------------------------- ##
2164 ## Report this to http://www.sudo.ws/bugs/ ##
2165 ## --------------------------------------- ##"
2166      ) | sed "s/^/$as_me: WARNING:     /" >&2
2167     ;;
2168 esac
2169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if eval \${$3+:} false; then :
2172   $as_echo_n "(cached) " >&6
2173 else
2174   eval "$3=\$ac_header_compiler"
2175 fi
2176 eval ac_res=\$$3
2177                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 fi
2180   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182 } # ac_fn_c_check_header_mongrel
2183
2184 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2185 # ----------------------------------------------------
2186 # Tries to find if the field MEMBER exists in type AGGR, after including
2187 # INCLUDES, setting cache variable VAR accordingly.
2188 ac_fn_c_check_member ()
2189 {
2190   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2192 $as_echo_n "checking for $2.$3... " >&6; }
2193 if eval \${$4+:} false; then :
2194   $as_echo_n "(cached) " >&6
2195 else
2196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $5
2199 int
2200 main ()
2201 {
2202 static $2 ac_aggr;
2203 if (ac_aggr.$3)
2204 return 0;
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210   eval "$4=yes"
2211 else
2212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h.  */
2214 $5
2215 int
2216 main ()
2217 {
2218 static $2 ac_aggr;
2219 if (sizeof ac_aggr.$3)
2220 return 0;
2221   ;
2222   return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226   eval "$4=yes"
2227 else
2228   eval "$4=no"
2229 fi
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 fi
2234 eval ac_res=\$$4
2235                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238
2239 } # ac_fn_c_check_member
2240
2241 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2242 # --------------------------------------------
2243 # Tries to find the compile-time value of EXPR in a program that includes
2244 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2245 # computed
2246 ac_fn_c_compute_int ()
2247 {
2248   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249   if test "$cross_compiling" = yes; then
2250     # Depending upon the size, compute the lo and hi bounds.
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h.  */
2253 $4
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) >= 0)];
2258 test_array [0] = 0
2259
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265   ac_lo=0 ac_mid=0
2266   while :; do
2267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h.  */
2269 $4
2270 int
2271 main ()
2272 {
2273 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2274 test_array [0] = 0
2275
2276   ;
2277   return 0;
2278 }
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281   ac_hi=$ac_mid; break
2282 else
2283   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2284                         if test $ac_lo -le $ac_mid; then
2285                           ac_lo= ac_hi=
2286                           break
2287                         fi
2288                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291   done
2292 else
2293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h.  */
2295 $4
2296 int
2297 main ()
2298 {
2299 static int test_array [1 - 2 * !(($2) < 0)];
2300 test_array [0] = 0
2301
2302   ;
2303   return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307   ac_hi=-1 ac_mid=-1
2308   while :; do
2309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h.  */
2311 $4
2312 int
2313 main ()
2314 {
2315 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2316 test_array [0] = 0
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323   ac_lo=$ac_mid; break
2324 else
2325   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2326                         if test $ac_mid -le $ac_hi; then
2327                           ac_lo= ac_hi=
2328                           break
2329                         fi
2330                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333   done
2334 else
2335   ac_lo= ac_hi=
2336 fi
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 fi
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 # Binary search between lo and hi bounds.
2341 while test "x$ac_lo" != "x$ac_hi"; do
2342   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h.  */
2345 $4
2346 int
2347 main ()
2348 {
2349 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2350 test_array [0] = 0
2351
2352   ;
2353   return 0;
2354 }
2355 _ACEOF
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357   ac_hi=$ac_mid
2358 else
2359   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 done
2363 case $ac_lo in #((
2364 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2365 '') ac_retval=1 ;;
2366 esac
2367   else
2368     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h.  */
2370 $4
2371 static long int longval () { return $2; }
2372 static unsigned long int ulongval () { return $2; }
2373 #include <stdio.h>
2374 #include <stdlib.h>
2375 int
2376 main ()
2377 {
2378
2379   FILE *f = fopen ("conftest.val", "w");
2380   if (! f)
2381     return 1;
2382   if (($2) < 0)
2383     {
2384       long int i = longval ();
2385       if (i != ($2))
2386         return 1;
2387       fprintf (f, "%ld", i);
2388     }
2389   else
2390     {
2391       unsigned long int i = ulongval ();
2392       if (i != ($2))
2393         return 1;
2394       fprintf (f, "%lu", i);
2395     }
2396   /* Do not output a trailing newline, as this causes \r\n confusion
2397      on some platforms.  */
2398   return ferror (f) || fclose (f) != 0;
2399
2400   ;
2401   return 0;
2402 }
2403 _ACEOF
2404 if ac_fn_c_try_run "$LINENO"; then :
2405   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2406 else
2407   ac_retval=1
2408 fi
2409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2410   conftest.$ac_objext conftest.beam conftest.$ac_ext
2411 rm -f conftest.val
2412
2413   fi
2414   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415   as_fn_set_status $ac_retval
2416
2417 } # ac_fn_c_compute_int
2418
2419 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2420 # ---------------------------------------------
2421 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2422 # accordingly.
2423 ac_fn_c_check_decl ()
2424 {
2425   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426   as_decl_name=`echo $2|sed 's/ *(.*//'`
2427   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2429 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2430 if eval \${$3+:} false; then :
2431   $as_echo_n "(cached) " >&6
2432 else
2433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h.  */
2435 $4
2436 int
2437 main ()
2438 {
2439 #ifndef $as_decl_name
2440 #ifdef __cplusplus
2441   (void) $as_decl_use;
2442 #else
2443   (void) $as_decl_name;
2444 #endif
2445 #endif
2446
2447   ;
2448   return 0;
2449 }
2450 _ACEOF
2451 if ac_fn_c_try_compile "$LINENO"; then :
2452   eval "$3=yes"
2453 else
2454   eval "$3=no"
2455 fi
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 fi
2458 eval ac_res=\$$3
2459                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2462
2463 } # ac_fn_c_check_decl
2464 cat >config.log <<_ACEOF
2465 This file contains any messages produced by compilers while
2466 running configure, to aid debugging if configure makes a mistake.
2467
2468 It was created by sudo $as_me 1.8.6p8, which was
2469 generated by GNU Autoconf 2.68.  Invocation command line was
2470
2471   $ $0 $@
2472
2473 _ACEOF
2474 exec 5>>config.log
2475 {
2476 cat <<_ASUNAME
2477 ## --------- ##
2478 ## Platform. ##
2479 ## --------- ##
2480
2481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2486
2487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2488 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2489
2490 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2491 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2493 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2494 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2495 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2496 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2497
2498 _ASUNAME
2499
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503   IFS=$as_save_IFS
2504   test -z "$as_dir" && as_dir=.
2505     $as_echo "PATH: $as_dir"
2506   done
2507 IFS=$as_save_IFS
2508
2509 } >&5
2510
2511 cat >&5 <<_ACEOF
2512
2513
2514 ## ----------- ##
2515 ## Core tests. ##
2516 ## ----------- ##
2517
2518 _ACEOF
2519
2520
2521 # Keep a trace of the command line.
2522 # Strip out --no-create and --no-recursion so they do not pile up.
2523 # Strip out --silent because we don't want to record it for future runs.
2524 # Also quote any args containing shell meta-characters.
2525 # Make two passes to allow for proper duplicate-argument suppression.
2526 ac_configure_args=
2527 ac_configure_args0=
2528 ac_configure_args1=
2529 ac_must_keep_next=false
2530 for ac_pass in 1 2
2531 do
2532   for ac_arg
2533   do
2534     case $ac_arg in
2535     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2536     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2537     | -silent | --silent | --silen | --sile | --sil)
2538       continue ;;
2539     *\'*)
2540       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2541     esac
2542     case $ac_pass in
2543     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2544     2)
2545       as_fn_append ac_configure_args1 " '$ac_arg'"
2546       if test $ac_must_keep_next = true; then
2547         ac_must_keep_next=false # Got value, back to normal.
2548       else
2549         case $ac_arg in
2550           *=* | --config-cache | -C | -disable-* | --disable-* \
2551           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2552           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2553           | -with-* | --with-* | -without-* | --without-* | --x)
2554             case "$ac_configure_args0 " in
2555               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2556             esac
2557             ;;
2558           -* ) ac_must_keep_next=true ;;
2559         esac
2560       fi
2561       as_fn_append ac_configure_args " '$ac_arg'"
2562       ;;
2563     esac
2564   done
2565 done
2566 { ac_configure_args0=; unset ac_configure_args0;}
2567 { ac_configure_args1=; unset ac_configure_args1;}
2568
2569 # When interrupted or exit'd, cleanup temporary files, and complete
2570 # config.log.  We remove comments because anyway the quotes in there
2571 # would cause problems or look ugly.
2572 # WARNING: Use '\'' to represent an apostrophe within the trap.
2573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2574 trap 'exit_status=$?
2575   # Save into config.log some information that might help in debugging.
2576   {
2577     echo
2578
2579     $as_echo "## ---------------- ##
2580 ## Cache variables. ##
2581 ## ---------------- ##"
2582     echo
2583     # The following way of writing the cache mishandles newlines in values,
2584 (
2585   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2586     eval ac_val=\$$ac_var
2587     case $ac_val in #(
2588     *${as_nl}*)
2589       case $ac_var in #(
2590       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2591 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2592       esac
2593       case $ac_var in #(
2594       _ | IFS | as_nl) ;; #(
2595       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2596       *) { eval $ac_var=; unset $ac_var;} ;;
2597       esac ;;
2598     esac
2599   done
2600   (set) 2>&1 |
2601     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2602     *${as_nl}ac_space=\ *)
2603       sed -n \
2604         "s/'\''/'\''\\\\'\'''\''/g;
2605           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2606       ;; #(
2607     *)
2608       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2609       ;;
2610     esac |
2611     sort
2612 )
2613     echo
2614
2615     $as_echo "## ----------------- ##
2616 ## Output variables. ##
2617 ## ----------------- ##"
2618     echo
2619     for ac_var in $ac_subst_vars
2620     do
2621       eval ac_val=\$$ac_var
2622       case $ac_val in
2623       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2624       esac
2625       $as_echo "$ac_var='\''$ac_val'\''"
2626     done | sort
2627     echo
2628
2629     if test -n "$ac_subst_files"; then
2630       $as_echo "## ------------------- ##
2631 ## File substitutions. ##
2632 ## ------------------- ##"
2633       echo
2634       for ac_var in $ac_subst_files
2635       do
2636         eval ac_val=\$$ac_var
2637         case $ac_val in
2638         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2639         esac
2640         $as_echo "$ac_var='\''$ac_val'\''"
2641       done | sort
2642       echo
2643     fi
2644
2645     if test -s confdefs.h; then
2646       $as_echo "## ----------- ##
2647 ## confdefs.h. ##
2648 ## ----------- ##"
2649       echo
2650       cat confdefs.h
2651       echo
2652     fi
2653     test "$ac_signal" != 0 &&
2654       $as_echo "$as_me: caught signal $ac_signal"
2655     $as_echo "$as_me: exit $exit_status"
2656   } >&5
2657   rm -f core *.core core.conftest.* &&
2658     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2659     exit $exit_status
2660 ' 0
2661 for ac_signal in 1 2 13 15; do
2662   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2663 done
2664 ac_signal=0
2665
2666 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2667 rm -f -r conftest* confdefs.h
2668
2669 $as_echo "/* confdefs.h */" > confdefs.h
2670
2671 # Predefined preprocessor variables.
2672
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_NAME "$PACKAGE_NAME"
2675 _ACEOF
2676
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2679 _ACEOF
2680
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2683 _ACEOF
2684
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE_STRING "$PACKAGE_STRING"
2687 _ACEOF
2688
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2691 _ACEOF
2692
2693 cat >>confdefs.h <<_ACEOF
2694 #define PACKAGE_URL "$PACKAGE_URL"
2695 _ACEOF
2696
2697
2698 # Let the site file select an alternate cache file if it wants to.
2699 # Prefer an explicitly selected file to automatically selected ones.
2700 ac_site_file1=NONE
2701 ac_site_file2=NONE
2702 if test -n "$CONFIG_SITE"; then
2703   # We do not want a PATH search for config.site.
2704   case $CONFIG_SITE in #((
2705     -*)  ac_site_file1=./$CONFIG_SITE;;
2706     */*) ac_site_file1=$CONFIG_SITE;;
2707     *)   ac_site_file1=./$CONFIG_SITE;;
2708   esac
2709 elif test "x$prefix" != xNONE; then
2710   ac_site_file1=$prefix/share/config.site
2711   ac_site_file2=$prefix/etc/config.site
2712 else
2713   ac_site_file1=$ac_default_prefix/share/config.site
2714   ac_site_file2=$ac_default_prefix/etc/config.site
2715 fi
2716 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2717 do
2718   test "x$ac_site_file" = xNONE && continue
2719   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2720     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2721 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2722     sed 's/^/| /' "$ac_site_file" >&5
2723     . "$ac_site_file" \
2724       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726 as_fn_error $? "failed to load site script $ac_site_file
2727 See \`config.log' for more details" "$LINENO" 5; }
2728   fi
2729 done
2730
2731 if test -r "$cache_file"; then
2732   # Some versions of bash will fail to source /dev/null (special files
2733   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2734   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2735     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2736 $as_echo "$as_me: loading cache $cache_file" >&6;}
2737     case $cache_file in
2738       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2739       *)                      . "./$cache_file";;
2740     esac
2741   fi
2742 else
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2744 $as_echo "$as_me: creating cache $cache_file" >&6;}
2745   >$cache_file
2746 fi
2747
2748 # Check that the precious variables saved in the cache have kept the same
2749 # value.
2750 ac_cache_corrupted=false
2751 for ac_var in $ac_precious_vars; do
2752   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2753   eval ac_new_set=\$ac_env_${ac_var}_set
2754   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2755   eval ac_new_val=\$ac_env_${ac_var}_value
2756   case $ac_old_set,$ac_new_set in
2757     set,)
2758       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2759 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2760       ac_cache_corrupted=: ;;
2761     ,set)
2762       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2763 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2764       ac_cache_corrupted=: ;;
2765     ,);;
2766     *)
2767       if test "x$ac_old_val" != "x$ac_new_val"; then
2768         # differences in whitespace do not lead to failure.
2769         ac_old_val_w=`echo x $ac_old_val`
2770         ac_new_val_w=`echo x $ac_new_val`
2771         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2772           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2773 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2774           ac_cache_corrupted=:
2775         else
2776           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2777 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2778           eval $ac_var=\$ac_old_val
2779         fi
2780         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2781 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2782         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2783 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2784       fi;;
2785   esac
2786   # Pass precious variables to config.status.
2787   if test "$ac_new_set" = set; then
2788     case $ac_new_val in
2789     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2790     *) ac_arg=$ac_var=$ac_new_val ;;
2791     esac
2792     case " $ac_configure_args " in
2793       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2794       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2795     esac
2796   fi
2797 done
2798 if $ac_cache_corrupted; then
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2802 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2803   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2804 fi
2805 ## -------------------- ##
2806 ## Main body of script. ##
2807 ## -------------------- ##
2808
2809 ac_ext=c
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814
2815
2816 ac_config_headers="$ac_config_headers config.h pathnames.h"
2817
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2819 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
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
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923 #
2924 # Begin initial values for man page substitution
2925 #
2926 iolog_dir=/var/log/sudo-io
2927 timedir=/var/adm/sudo
2928 timeout=5
2929 password_timeout=5
2930 sudo_umask=0022
2931 umask_override=off
2932 passprompt="Password:"
2933 long_otp_prompt=off
2934 lecture=once
2935 logfac=auth
2936 goodpri=notice
2937 badpri=alert
2938 loglen=80
2939 ignore_dot=off
2940 mail_no_user=on
2941 mail_no_host=off
2942 mail_no_perms=off
2943 mailto=root
2944 mailsub="*** SECURITY information for %h ***"
2945 badpass_message="Sorry, try again."
2946 fqdn=off
2947 runas_default=root
2948 env_editor=off
2949 env_reset=on
2950 editor=vi
2951 passwd_tries=3
2952 tty_tickets=on
2953 insults=off
2954 root_sudo=on
2955 path_info=on
2956 ldap_conf=/etc/ldap.conf
2957 ldap_secret=/etc/ldap.secret
2958 netsvc_conf=/etc/netsvc.conf
2959 noexec_file=/usr/local/libexec/sudo_noexec.so
2960 nsswitch_conf=/etc/nsswitch.conf
2961 secure_path="not set"
2962 #
2963 # End initial values for man page substitution
2964 #
2965 INSTALL_NOEXEC=
2966 devdir='$(srcdir)'
2967 PROGS="sudo"
2968 : ${MANDIRTYPE='man'}
2969 : ${mansrcdir='.'}
2970 : ${SHLIB_MODE='0644'}
2971 : ${SUDOERS_MODE='0440'}
2972 : ${SUDOERS_UID='0'}
2973 : ${SUDOERS_GID='0'}
2974 DEVEL=
2975 LDAP="#"
2976 BAMAN=0
2977 LCMAN=0
2978 PSMAN=0
2979 SEMAN=0
2980 LIBINTL=
2981 ZLIB=
2982 ZLIB_SRC=
2983 AUTH_OBJS=
2984 AUTH_REG=
2985 AUTH_EXCL=
2986 AUTH_EXCL_DEF=
2987 AUTH_DEF=passwd
2988 SUDO_NLS=disabled
2989 LT_LDEXPORTS="-export-symbols \$(shlib_exp)"
2990 LT_LDDEP="\$(shlib_exp)"
2991 NO_VIZ="-DNO_VIZ"
2992
2993 CHECKSHADOW=true
2994 shadow_defs=
2995 shadow_funcs=
2996 shadow_libs=
2997 shadow_libs_optional=
2998 CONFIGURE_ARGS="$@"
2999
3000 RTLD_PRELOAD_VAR="LD_PRELOAD"
3001 RTLD_PRELOAD_ENABLE_VAR=
3002 RTLD_PRELOAD_DELIM=":"
3003 RTLD_PRELOAD_DEFAULT=
3004
3005
3006
3007
3008
3009 # Check whether --with-otp-only was given.
3010 if test "${with_otp_only+set}" = set; then :
3011   withval=$with_otp_only; case $with_otp_only in
3012     yes)        with_passwd="no"
3013                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
3014 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
3015                 ;;
3016 esac
3017 fi
3018
3019
3020
3021 # Check whether --with-alertmail was given.
3022 if test "${with_alertmail+set}" = set; then :
3023   withval=$with_alertmail; case $with_alertmail in
3024     *)          with_mailto="$with_alertmail"
3025                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
3026 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
3027                 ;;
3028 esac
3029 fi
3030
3031
3032
3033
3034 # Check whether --with-devel was given.
3035 if test "${with_devel+set}" = set; then :
3036   withval=$with_devel; case $with_devel in
3037     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
3038 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
3039                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
3040                 DEVEL="true"
3041                 devdir=.
3042                 ;;
3043     no)         ;;
3044     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
3045 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
3046                 ;;
3047 esac
3048 fi
3049
3050
3051
3052 # Check whether --with-CC was given.
3053 if test "${with_CC+set}" = set; then :
3054   withval=$with_CC; case $with_CC in
3055     *)          as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
3056                 ;;
3057 esac
3058 fi
3059
3060
3061
3062 # Check whether --with-rpath was given.
3063 if test "${with_rpath+set}" = set; then :
3064   withval=$with_rpath; case $with_rpath in
3065     yes|no)     ;;
3066     *)          as_fn_error $? "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3067                 ;;
3068 esac
3069 fi
3070
3071
3072
3073 # Check whether --with-blibpath was given.
3074 if test "${with_blibpath+set}" = set; then :
3075   withval=$with_blibpath; case $with_blibpath in
3076     yes|no)     ;;
3077     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3078 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3079                 ;;
3080 esac
3081 fi
3082
3083
3084
3085 # Check whether --with-bsm-audit was given.
3086 if test "${with_bsm_audit+set}" = set; then :
3087   withval=$with_bsm_audit; case $with_bsm_audit in
3088     yes)        $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3089
3090                 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3091                 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3092                 ;;
3093     no)         ;;
3094     *)          as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3095                 ;;
3096 esac
3097 fi
3098
3099
3100 ac_ext=c
3101 ac_cpp='$CPP $CPPFLAGS'
3102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 if test -n "$ac_tool_prefix"; then
3106   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_CC+:} false; then :
3111   $as_echo_n "(cached) " >&6
3112 else
3113   if test -n "$CC"; then
3114   ac_cv_prog_CC="$CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119   IFS=$as_save_IFS
3120   test -z "$as_dir" && as_dir=.
3121     for ac_exec_ext in '' $ac_executable_extensions; do
3122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125     break 2
3126   fi
3127 done
3128   done
3129 IFS=$as_save_IFS
3130
3131 fi
3132 fi
3133 CC=$ac_cv_prog_CC
3134 if test -n "$CC"; then
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3137 else
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142
3143 fi
3144 if test -z "$ac_cv_prog_CC"; then
3145   ac_ct_CC=$CC
3146   # Extract the first word of "gcc", so it can be a program name with args.
3147 set dummy gcc; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3151   $as_echo_n "(cached) " >&6
3152 else
3153   if test -n "$ac_ct_CC"; then
3154   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159   IFS=$as_save_IFS
3160   test -z "$as_dir" && as_dir=.
3161     for ac_exec_ext in '' $ac_executable_extensions; do
3162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163     ac_cv_prog_ac_ct_CC="gcc"
3164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165     break 2
3166   fi
3167 done
3168   done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174 if test -n "$ac_ct_CC"; then
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3176 $as_echo "$ac_ct_CC" >&6; }
3177 else
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182   if test "x$ac_ct_CC" = x; then
3183     CC=""
3184   else
3185     case $cross_compiling:$ac_tool_warned in
3186 yes:)
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3189 ac_tool_warned=yes ;;
3190 esac
3191     CC=$ac_ct_CC
3192   fi
3193 else
3194   CC="$ac_cv_prog_CC"
3195 fi
3196
3197 if test -z "$CC"; then
3198           if test -n "$ac_tool_prefix"; then
3199     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3200 set dummy ${ac_tool_prefix}cc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_CC+:} false; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   if test -n "$CC"; then
3207   ac_cv_prog_CC="$CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214     for ac_exec_ext in '' $ac_executable_extensions; do
3215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216     ac_cv_prog_CC="${ac_tool_prefix}cc"
3217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221   done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 CC=$ac_cv_prog_CC
3227 if test -n "$CC"; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229 $as_echo "$CC" >&6; }
3230 else
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236   fi
3237 fi
3238 if test -z "$CC"; then
3239   # Extract the first word of "cc", so it can be a program name with args.
3240 set dummy cc; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_prog_CC+:} false; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   if test -n "$CC"; then
3247   ac_cv_prog_CC="$CC" # Let the user override the test.
3248 else
3249   ac_prog_rejected=no
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253   IFS=$as_save_IFS
3254   test -z "$as_dir" && as_dir=.
3255     for ac_exec_ext in '' $ac_executable_extensions; do
3256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3258        ac_prog_rejected=yes
3259        continue
3260      fi
3261     ac_cv_prog_CC="cc"
3262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263     break 2
3264   fi
3265 done
3266   done
3267 IFS=$as_save_IFS
3268
3269 if test $ac_prog_rejected = yes; then
3270   # We found a bogon in the path, so make sure we never use it.
3271   set dummy $ac_cv_prog_CC
3272   shift
3273   if test $# != 0; then
3274     # We chose a different compiler from the bogus one.
3275     # However, it has the same basename, so the bogon will be chosen
3276     # first if we set CC to just the basename; use the full file name.
3277     shift
3278     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3279   fi
3280 fi
3281 fi
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293 fi
3294 if test -z "$CC"; then
3295   if test -n "$ac_tool_prefix"; then
3296   for ac_prog in cl.exe
3297   do
3298     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_CC+:} false; then :
3303   $as_echo_n "(cached) " >&6
3304 else
3305   if test -n "$CC"; then
3306   ac_cv_prog_CC="$CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311   IFS=$as_save_IFS
3312   test -z "$as_dir" && as_dir=.
3313     for ac_exec_ext in '' $ac_executable_extensions; do
3314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317     break 2
3318   fi
3319 done
3320   done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 CC=$ac_cv_prog_CC
3326 if test -n "$CC"; then
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3329 else
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335     test -n "$CC" && break
3336   done
3337 fi
3338 if test -z "$CC"; then
3339   ac_ct_CC=$CC
3340   for ac_prog in cl.exe
3341 do
3342   # Extract the first word of "$ac_prog", so it can be a program name with args.
3343 set dummy $ac_prog; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3347   $as_echo_n "(cached) " >&6
3348 else
3349   if test -n "$ac_ct_CC"; then
3350   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355   IFS=$as_save_IFS
3356   test -z "$as_dir" && as_dir=.
3357     for ac_exec_ext in '' $ac_executable_extensions; do
3358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359     ac_cv_prog_ac_ct_CC="$ac_prog"
3360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361     break 2
3362   fi
3363 done
3364   done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3370 if test -n "$ac_ct_CC"; then
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3372 $as_echo "$ac_ct_CC" >&6; }
3373 else
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 fi
3377
3378
3379   test -n "$ac_ct_CC" && break
3380 done
3381
3382   if test "x$ac_ct_CC" = x; then
3383     CC=""
3384   else
3385     case $cross_compiling:$ac_tool_warned in
3386 yes:)
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3389 ac_tool_warned=yes ;;
3390 esac
3391     CC=$ac_ct_CC
3392   fi
3393 fi
3394
3395 fi
3396
3397
3398 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "no acceptable C compiler found in \$PATH
3401 See \`config.log' for more details" "$LINENO" 5; }
3402
3403 # Provide some information about the compiler.
3404 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3405 set X $ac_compile
3406 ac_compiler=$2
3407 for ac_option in --version -v -V -qversion; do
3408   { { ac_try="$ac_compiler $ac_option >&5"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3416   ac_status=$?
3417   if test -s conftest.err; then
3418     sed '10a\
3419 ... rest of stderr output deleted ...
3420          10q' conftest.err >conftest.er1
3421     cat conftest.er1 >&5
3422   fi
3423   rm -f conftest.er1 conftest.err
3424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425   test $ac_status = 0; }
3426 done
3427
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h.  */
3430
3431 int
3432 main ()
3433 {
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 ac_clean_files_save=$ac_clean_files
3440 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3441 # Try to create an executable without -o first, disregard a.out.
3442 # It will help us diagnose broken compilers, and finding out an intuition
3443 # of exeext.
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3445 $as_echo_n "checking whether the C compiler works... " >&6; }
3446 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3447
3448 # The possible output files:
3449 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3450
3451 ac_rmfiles=
3452 for ac_file in $ac_files
3453 do
3454   case $ac_file in
3455     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3456     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3457   esac
3458 done
3459 rm -f $ac_rmfiles
3460
3461 if { { ac_try="$ac_link_default"
3462 case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468   (eval "$ac_link_default") 2>&5
3469   ac_status=$?
3470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471   test $ac_status = 0; }; then :
3472   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3473 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3474 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3475 # so that the user can short-circuit this test for compilers unknown to
3476 # Autoconf.
3477 for ac_file in $ac_files ''
3478 do
3479   test -f "$ac_file" || continue
3480   case $ac_file in
3481     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3482         ;;
3483     [ab].out )
3484         # We found the default executable, but exeext='' is most
3485         # certainly right.
3486         break;;
3487     *.* )
3488         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3489         then :; else
3490            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3491         fi
3492         # We set ac_cv_exeext here because the later test for it is not
3493         # safe: cross compilers may not add the suffix if given an `-o'
3494         # argument, so we may need to know it at that point already.
3495         # Even if this section looks crufty: it has the advantage of
3496         # actually working.
3497         break;;
3498     * )
3499         break;;
3500   esac
3501 done
3502 test "$ac_cv_exeext" = no && ac_cv_exeext=
3503
3504 else
3505   ac_file=''
3506 fi
3507 if test -z "$ac_file"; then :
3508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3510 $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error 77 "C compiler cannot create executables
3516 See \`config.log' for more details" "$LINENO" 5; }
3517 else
3518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519 $as_echo "yes" >&6; }
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3522 $as_echo_n "checking for C compiler default output file name... " >&6; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3524 $as_echo "$ac_file" >&6; }
3525 ac_exeext=$ac_cv_exeext
3526
3527 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3528 ac_clean_files=$ac_clean_files_save
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3530 $as_echo_n "checking for suffix of executables... " >&6; }
3531 if { { ac_try="$ac_link"
3532 case "(($ac_try" in
3533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534   *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538   (eval "$ac_link") 2>&5
3539   ac_status=$?
3540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541   test $ac_status = 0; }; then :
3542   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3543 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3544 # work properly (i.e., refer to `conftest.exe'), while it won't with
3545 # `rm'.
3546 for ac_file in conftest.exe conftest conftest.*; do
3547   test -f "$ac_file" || continue
3548   case $ac_file in
3549     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3550     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3551           break;;
3552     * ) break;;
3553   esac
3554 done
3555 else
3556   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3559 See \`config.log' for more details" "$LINENO" 5; }
3560 fi
3561 rm -f conftest conftest$ac_cv_exeext
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3563 $as_echo "$ac_cv_exeext" >&6; }
3564
3565 rm -f conftest.$ac_ext
3566 EXEEXT=$ac_cv_exeext
3567 ac_exeext=$EXEEXT
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h.  */
3570 #include <stdio.h>
3571 int
3572 main ()
3573 {
3574 FILE *f = fopen ("conftest.out", "w");
3575  return ferror (f) || fclose (f) != 0;
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 ac_clean_files="$ac_clean_files conftest.out"
3582 # Check that the compiler produces executables we can run.  If not, either
3583 # the compiler is broken, or we cross compile.
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3585 $as_echo_n "checking whether we are cross compiling... " >&6; }
3586 if test "$cross_compiling" != yes; then
3587   { { ac_try="$ac_link"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594   (eval "$ac_link") 2>&5
3595   ac_status=$?
3596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597   test $ac_status = 0; }
3598   if { ac_try='./conftest$ac_cv_exeext'
3599   { { case "(($ac_try" in
3600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601   *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605   (eval "$ac_try") 2>&5
3606   ac_status=$?
3607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608   test $ac_status = 0; }; }; then
3609     cross_compiling=no
3610   else
3611     if test "$cross_compiling" = maybe; then
3612         cross_compiling=yes
3613     else
3614         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 as_fn_error $? "cannot run C compiled programs.
3617 If you meant to cross compile, use \`--host'.
3618 See \`config.log' for more details" "$LINENO" 5; }
3619     fi
3620   fi
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3623 $as_echo "$cross_compiling" >&6; }
3624
3625 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3626 ac_clean_files=$ac_clean_files_save
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3628 $as_echo_n "checking for suffix of object files... " >&6; }
3629 if ${ac_cv_objext+:} false; then :
3630   $as_echo_n "(cached) " >&6
3631 else
3632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h.  */
3634
3635 int
3636 main ()
3637 {
3638
3639   ;
3640   return 0;
3641 }
3642 _ACEOF
3643 rm -f conftest.o conftest.obj
3644 if { { ac_try="$ac_compile"
3645 case "(($ac_try" in
3646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647   *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651   (eval "$ac_compile") 2>&5
3652   ac_status=$?
3653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654   test $ac_status = 0; }; then :
3655   for ac_file in conftest.o conftest.obj conftest.*; do
3656   test -f "$ac_file" || continue;
3657   case $ac_file in
3658     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3659     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3660        break;;
3661   esac
3662 done
3663 else
3664   $as_echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3666
3667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error $? "cannot compute suffix of object files: cannot compile
3670 See \`config.log' for more details" "$LINENO" 5; }
3671 fi
3672 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3675 $as_echo "$ac_cv_objext" >&6; }
3676 OBJEXT=$ac_cv_objext
3677 ac_objext=$OBJEXT
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3679 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3680 if ${ac_cv_c_compiler_gnu+:} false; then :
3681   $as_echo_n "(cached) " >&6
3682 else
3683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h.  */
3685
3686 int
3687 main ()
3688 {
3689 #ifndef __GNUC__
3690        choke me
3691 #endif
3692
3693   ;
3694   return 0;
3695 }
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698   ac_compiler_gnu=yes
3699 else
3700   ac_compiler_gnu=no
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3704
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3707 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3708 if test $ac_compiler_gnu = yes; then
3709   GCC=yes
3710 else
3711   GCC=
3712 fi
3713 ac_test_CFLAGS=${CFLAGS+set}
3714 ac_save_CFLAGS=$CFLAGS
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3716 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3717 if ${ac_cv_prog_cc_g+:} false; then :
3718   $as_echo_n "(cached) " >&6
3719 else
3720   ac_save_c_werror_flag=$ac_c_werror_flag
3721    ac_c_werror_flag=yes
3722    ac_cv_prog_cc_g=no
3723    CFLAGS="-g"
3724    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h.  */
3726
3727 int
3728 main ()
3729 {
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736   ac_cv_prog_cc_g=yes
3737 else
3738   CFLAGS=""
3739       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h.  */
3741
3742 int
3743 main ()
3744 {
3745
3746   ;
3747   return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751
3752 else
3753   ac_c_werror_flag=$ac_save_c_werror_flag
3754          CFLAGS="-g"
3755          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h.  */
3757
3758 int
3759 main ()
3760 {
3761
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767   ac_cv_prog_cc_g=yes
3768 fi
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 fi
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774    ac_c_werror_flag=$ac_save_c_werror_flag
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3777 $as_echo "$ac_cv_prog_cc_g" >&6; }
3778 if test "$ac_test_CFLAGS" = set; then
3779   CFLAGS=$ac_save_CFLAGS
3780 elif test $ac_cv_prog_cc_g = yes; then
3781   if test "$GCC" = yes; then
3782     CFLAGS="-g -O2"
3783   else
3784     CFLAGS="-g"
3785   fi
3786 else
3787   if test "$GCC" = yes; then
3788     CFLAGS="-O2"
3789   else
3790     CFLAGS=
3791   fi
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3794 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3795 if ${ac_cv_prog_cc_c89+:} false; then :
3796   $as_echo_n "(cached) " >&6
3797 else
3798   ac_cv_prog_cc_c89=no
3799 ac_save_CC=$CC
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802 #include <stdarg.h>
3803 #include <stdio.h>
3804 #include <sys/types.h>
3805 #include <sys/stat.h>
3806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3807 struct buf { int x; };
3808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3809 static char *e (p, i)
3810      char **p;
3811      int i;
3812 {
3813   return p[i];
3814 }
3815 static char *f (char * (*g) (char **, int), char **p, ...)
3816 {
3817   char *s;
3818   va_list v;
3819   va_start (v,p);
3820   s = g (p, va_arg (v,int));
3821   va_end (v);
3822   return s;
3823 }
3824
3825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3826    function prototypes and stuff, but not '\xHH' hex character constants.
3827    These don't provoke an error unfortunately, instead are silently treated
3828    as 'x'.  The following induces an error, until -std is added to get
3829    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3830    array size at least.  It's necessary to write '\x00'==0 to get something
3831    that's true only with -std.  */
3832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3833
3834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3835    inside strings and character constants.  */
3836 #define FOO(x) 'x'
3837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3838
3839 int test (int i, double x);
3840 struct s1 {int (*f) (int a);};
3841 struct s2 {int (*f) (double a);};
3842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3843 int argc;
3844 char **argv;
3845 int
3846 main ()
3847 {
3848 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3849   ;
3850   return 0;
3851 }
3852 _ACEOF
3853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3854         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3855 do
3856   CC="$ac_save_CC $ac_arg"
3857   if ac_fn_c_try_compile "$LINENO"; then :
3858   ac_cv_prog_cc_c89=$ac_arg
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext
3861   test "x$ac_cv_prog_cc_c89" != "xno" && break
3862 done
3863 rm -f conftest.$ac_ext
3864 CC=$ac_save_CC
3865
3866 fi
3867 # AC_CACHE_VAL
3868 case "x$ac_cv_prog_cc_c89" in
3869   x)
3870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3871 $as_echo "none needed" >&6; } ;;
3872   xno)
3873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3874 $as_echo "unsupported" >&6; } ;;
3875   *)
3876     CC="$CC $ac_cv_prog_cc_c89"
3877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3878 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3879 esac
3880 if test "x$ac_cv_prog_cc_c89" != xno; then :
3881
3882 fi
3883
3884 ac_ext=c
3885 ac_cpp='$CPP $CPPFLAGS'
3886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889
3890
3891
3892 # Check whether --with-linux-audit was given.
3893 if test "${with_linux_audit+set}" = set; then :
3894   withval=$with_linux_audit; case $with_linux_audit in
3895     yes)        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h.  */
3897 #include <libaudit.h>
3898 int
3899 main ()
3900 {
3901 int i = AUDIT_USER_CMD; (void)i;
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 if ac_fn_c_try_compile "$LINENO"; then :
3907
3908                     $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3909
3910                     SUDO_LIBS="${SUDO_LIBS} -laudit"
3911                     SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3912                     SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3913
3914 else
3915
3916                     as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3917
3918 fi
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920                 ;;
3921     no)         ;;
3922     *)          as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3923                 ;;
3924 esac
3925 fi
3926
3927
3928
3929 # Check whether --with-sssd was given.
3930 if test "${with_sssd+set}" = set; then :
3931   withval=$with_sssd; case $with_sssd in
3932     yes)        SUDOERS_OBJS="${SUDOERS_OBJS} sssd.lo"
3933                 $as_echo "#define HAVE_SSSD 1" >>confdefs.h
3934
3935                 ;;
3936     no)         ;;
3937     *)          as_fn_error $? "\"--with-sssd does not take an argument.\"" "$LINENO" 5
3938                 ;;
3939 esac
3940 fi
3941
3942
3943
3944 # Check whether --with-sssd-lib was given.
3945 if test "${with_sssd_lib+set}" = set; then :
3946   withval=$with_sssd_lib;
3947 fi
3948
3949 sssd_lib="\"LIBDIR\""
3950 test -n "$with_sssd_lib" && sssd_lib="$with_sssd_lib"
3951 cat >>confdefs.h <<EOF
3952 #define _PATH_SSSD_LIB "$sssd_lib"
3953 EOF
3954
3955
3956
3957 # Check whether --with-incpath was given.
3958 if test "${with_incpath+set}" = set; then :
3959   withval=$with_incpath; case $with_incpath in
3960     yes)        as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
3961                 ;;
3962     no)         as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
3963                 ;;
3964     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3965 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3966                 for i in ${with_incpath}; do
3967                     CPPFLAGS="${CPPFLAGS} -I${i}"
3968                 done
3969                 ;;
3970 esac
3971 fi
3972
3973
3974
3975 # Check whether --with-libpath was given.
3976 if test "${with_libpath+set}" = set; then :
3977   withval=$with_libpath; case $with_libpath in
3978     yes)        as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
3979                 ;;
3980     no)         as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
3981                 ;;
3982     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3983 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3984                 ;;
3985 esac
3986 fi
3987
3988
3989
3990 # Check whether --with-libraries was given.
3991 if test "${with_libraries+set}" = set; then :
3992   withval=$with_libraries; case $with_libraries in
3993     yes)        as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
3994                 ;;
3995     no)         as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
3996                 ;;
3997     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3998 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3999                 ;;
4000 esac
4001 fi
4002
4003
4004
4005 # Check whether --with-efence was given.
4006 if test "${with_efence+set}" = set; then :
4007   withval=$with_efence; case $with_efence in
4008     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
4009 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
4010                 LIBS="${LIBS} -lefence"
4011                 if test -f /usr/local/lib/libefence.a; then
4012                     with_libpath="${with_libpath} /usr/local/lib"
4013                 fi
4014                 ;;
4015     no)         ;;
4016     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
4017 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
4018                 ;;
4019 esac
4020 fi
4021
4022
4023
4024 # Check whether --with-csops was given.
4025 if test "${with_csops+set}" = set; then :
4026   withval=$with_csops; case $with_csops in
4027     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
4028 $as_echo "$as_me: Adding CSOps standard options" >&6;}
4029                 CHECKSIA=false
4030                 with_ignore_dot=yes
4031                 insults=on
4032                 with_classic_insults=yes
4033                 with_csops_insults=yes
4034                 with_env_editor=yes
4035                 : ${mansectsu='8'}
4036                 : ${mansectform='5'}
4037                 ;;
4038     no)         ;;
4039     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
4040 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
4041                 ;;
4042 esac
4043 fi
4044
4045
4046
4047 # Check whether --with-passwd was given.
4048 if test "${with_passwd+set}" = set; then :
4049   withval=$with_passwd; case $with_passwd in
4050     yes|no)     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
4051 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
4052                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
4053 $as_echo "$with_passwd" >&6; }
4054                 AUTH_DEF=""
4055                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
4056                 ;;
4057     *)          as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
4058                 ;;
4059 esac
4060 fi
4061
4062
4063
4064 # Check whether --with-skey was given.
4065 if test "${with_skey+set}" = set; then :
4066   withval=$with_skey; case $with_skey in
4067     no)         ;;
4068     *)          $as_echo "#define HAVE_SKEY 1" >>confdefs.h
4069
4070                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
4071 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
4072                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4073 $as_echo "yes" >&6; }
4074                 AUTH_REG="$AUTH_REG S/Key"
4075                 ;;
4076 esac
4077 fi
4078
4079
4080
4081 # Check whether --with-opie was given.
4082 if test "${with_opie+set}" = set; then :
4083   withval=$with_opie; case $with_opie in
4084     no)         ;;
4085     *)          $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4086
4087                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4088 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4089                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091                 AUTH_REG="$AUTH_REG NRL_OPIE"
4092                 ;;
4093 esac
4094 fi
4095
4096
4097
4098 # Check whether --with-long-otp-prompt was given.
4099 if test "${with_long_otp_prompt+set}" = set; then :
4100   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4101     yes)        $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4102
4103                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4104 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4105                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4106 $as_echo "yes" >&6; }
4107                 long_otp_prompt=on
4108                 ;;
4109     no)         long_otp_prompt=off
4110                 ;;
4111     *)          as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4112                 ;;
4113 esac
4114 fi
4115
4116
4117
4118 # Check whether --with-SecurID was given.
4119 if test "${with_SecurID+set}" = set; then :
4120   withval=$with_SecurID; case $with_SecurID in
4121     no)         ;;
4122     *)          $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4123
4124                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4125 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4126                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4127 $as_echo "yes" >&6; }
4128                 AUTH_EXCL="$AUTH_EXCL SecurID"
4129                 ;;
4130 esac
4131 fi
4132
4133
4134
4135 # Check whether --with-fwtk was given.
4136 if test "${with_fwtk+set}" = set; then :
4137   withval=$with_fwtk; case $with_fwtk in
4138     no)         ;;
4139     *)          $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4140
4141                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4142 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4143                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4144 $as_echo "yes" >&6; }
4145                 AUTH_EXCL="$AUTH_EXCL FWTK"
4146                 ;;
4147 esac
4148 fi
4149
4150
4151
4152 # Check whether --with-kerb5 was given.
4153 if test "${with_kerb5+set}" = set; then :
4154   withval=$with_kerb5; case $with_kerb5 in
4155     no)         ;;
4156     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4157 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4158                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4159 $as_echo "yes" >&6; }
4160                 AUTH_REG="$AUTH_REG kerb5"
4161                 ;;
4162 esac
4163 fi
4164
4165
4166
4167 # Check whether --with-aixauth was given.
4168 if test "${with_aixauth+set}" = set; then :
4169   withval=$with_aixauth; case $with_aixauth in
4170     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4171     no)         ;;
4172     *)          as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4173                 ;;
4174 esac
4175 fi
4176
4177
4178
4179 # Check whether --with-pam was given.
4180 if test "${with_pam+set}" = set; then :
4181   withval=$with_pam; case $with_pam in
4182     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
4183     no)         ;;
4184     *)          as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
4185                 ;;
4186 esac
4187 fi
4188
4189
4190
4191 # Check whether --with-AFS was given.
4192 if test "${with_AFS+set}" = set; then :
4193   withval=$with_AFS; case $with_AFS in
4194     yes)        $as_echo "#define HAVE_AFS 1" >>confdefs.h
4195
4196                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4197 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4198                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4199 $as_echo "yes" >&6; }
4200                 AUTH_REG="$AUTH_REG AFS"
4201                 ;;
4202     no)         ;;
4203     *)          as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4204                 ;;
4205 esac
4206 fi
4207
4208
4209
4210 # Check whether --with-DCE was given.
4211 if test "${with_DCE+set}" = set; then :
4212   withval=$with_DCE; case $with_DCE in
4213     yes)        $as_echo "#define HAVE_DCE 1" >>confdefs.h
4214
4215                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4216 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4217                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4218 $as_echo "yes" >&6; }
4219                 AUTH_REG="$AUTH_REG DCE"
4220                 ;;
4221     no)         ;;
4222     *)          as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4223                 ;;
4224 esac
4225 fi
4226
4227
4228
4229 # Check whether --with-logincap was given.
4230 if test "${with_logincap+set}" = set; then :
4231   withval=$with_logincap; case $with_logincap in
4232     yes|no)     ;;
4233     *)          as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4234                 ;;
4235 esac
4236 fi
4237
4238
4239
4240 # Check whether --with-bsdauth was given.
4241 if test "${with_bsdauth+set}" = set; then :
4242   withval=$with_bsdauth; case $with_bsdauth in
4243     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4244     no)         ;;
4245     *)          as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4246                 ;;
4247 esac
4248 fi
4249
4250
4251
4252 # Check whether --with-project was given.
4253 if test "${with_project+set}" = set; then :
4254   withval=$with_project; case $with_project in
4255     yes|no)     ;;
4256     no) ;;
4257     *)          as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
4258                 ;;
4259 esac
4260 fi
4261
4262
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4264 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4265
4266 # Check whether --with-lecture was given.
4267 if test "${with_lecture+set}" = set; then :
4268   withval=$with_lecture; case $with_lecture in
4269     yes|short|always)   lecture=once
4270                 ;;
4271     no|none|never)      lecture=never
4272                 ;;
4273     *)          as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4274                 ;;
4275 esac
4276 fi
4277
4278 if test "$lecture" = "once"; then
4279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4280 $as_echo "yes" >&6; }
4281 else
4282     $as_echo "#define NO_LECTURE 1" >>confdefs.h
4283
4284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4286 fi
4287
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4289 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4290
4291 # Check whether --with-logging was given.
4292 if test "${with_logging+set}" = set; then :
4293   withval=$with_logging; case $with_logging in
4294     yes)        as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
4295                 ;;
4296     no)         as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
4297                 ;;
4298     syslog)     $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4299
4300                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4301 $as_echo "syslog" >&6; }
4302                 ;;
4303     file)       $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4304
4305                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4306 $as_echo "file" >&6; }
4307                 ;;
4308     both)       $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4309
4310                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4311 $as_echo "both" >&6; }
4312                 ;;
4313     *)          as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4314                 ;;
4315 esac
4316 else
4317   $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4319 $as_echo "syslog" >&6; }
4320 fi
4321
4322
4323
4324 # Check whether --with-logfac was given.
4325 if test "${with_logfac+set}" = set; then :
4326   withval=$with_logfac; case $with_logfac in
4327     yes)        as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
4328                 ;;
4329     no)         as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
4330                 ;;
4331     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
4332                 ;;
4333     *)          as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4334                 ;;
4335 esac
4336 fi
4337
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4340 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4341
4342 # Check whether --with-goodpri was given.
4343 if test "${with_goodpri+set}" = set; then :
4344   withval=$with_goodpri; case $with_goodpri in
4345     yes)        as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4346                 ;;
4347     no)         as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
4348                 ;;
4349     alert|crit|debug|emerg|err|info|notice|warning)
4350                 goodpri=$with_goodpri
4351                 ;;
4352     *)          as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4353                 ;;
4354 esac
4355 fi
4356
4357
4358 cat >>confdefs.h <<_ACEOF
4359 #define PRI_SUCCESS "$goodpri"
4360 _ACEOF
4361
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4363 $as_echo "$goodpri" >&6; }
4364
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4366 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4367
4368 # Check whether --with-badpri was given.
4369 if test "${with_badpri+set}" = set; then :
4370   withval=$with_badpri; case $with_badpri in
4371     yes)        as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
4372                 ;;
4373     no)         as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
4374                 ;;
4375     alert|crit|debug|emerg|err|info|notice|warning)
4376                 badpri=$with_badpri
4377                 ;;
4378     *)          as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
4379                 ;;
4380 esac
4381 fi
4382
4383
4384 cat >>confdefs.h <<_ACEOF
4385 #define PRI_FAILURE "$badpri"
4386 _ACEOF
4387
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4389 $as_echo "$badpri" >&6; }
4390
4391
4392 # Check whether --with-logpath was given.
4393 if test "${with_logpath+set}" = set; then :
4394   withval=$with_logpath; case $with_logpath in
4395     yes)        as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
4396                 ;;
4397     no)         as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
4398                 ;;
4399 esac
4400 fi
4401
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4404 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4405
4406 # Check whether --with-loglen was given.
4407 if test "${with_loglen+set}" = set; then :
4408   withval=$with_loglen; case $with_loglen in
4409     yes)        as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
4410                 ;;
4411     no)         as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
4412                 ;;
4413     [0-9]*)     loglen=$with_loglen
4414                 ;;
4415     *)          as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4416                 ;;
4417 esac
4418 fi
4419
4420
4421 cat >>confdefs.h <<_ACEOF
4422 #define MAXLOGFILELEN $loglen
4423 _ACEOF
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4426 $as_echo "$loglen" >&6; }
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4429 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4430
4431 # Check whether --with-ignore-dot was given.
4432 if test "${with_ignore_dot+set}" = set; then :
4433   withval=$with_ignore_dot; case $with_ignore_dot in
4434     yes)        ignore_dot=on
4435                 ;;
4436     no)         ignore_dot=off
4437                 ;;
4438     *)          as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4439                 ;;
4440 esac
4441 fi
4442
4443 if test "$ignore_dot" = "on"; then
4444     $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4445
4446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4447 $as_echo "yes" >&6; }
4448 else
4449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4451 fi
4452
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4454 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4455
4456 # Check whether --with-mail-if-no-user was given.
4457 if test "${with_mail_if_no_user+set}" = set; then :
4458   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4459     yes)        mail_no_user=on
4460                 ;;
4461     no)         mail_no_user=off
4462                 ;;
4463     *)          as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4464                 ;;
4465 esac
4466 fi
4467
4468 if test "$mail_no_user" = "on"; then
4469     $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4470
4471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4473 else
4474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 fi
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4479 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4480
4481 # Check whether --with-mail-if-no-host was given.
4482 if test "${with_mail_if_no_host+set}" = set; then :
4483   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4484     yes)        mail_no_host=on
4485                 ;;
4486     no)         mail_no_host=off
4487                 ;;
4488     *)          as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4489                 ;;
4490 esac
4491 fi
4492
4493 if test "$mail_no_host" = "on"; then
4494     $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4495
4496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4498 else
4499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501 fi
4502
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4504 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4505
4506 # Check whether --with-mail-if-noperms was given.
4507 if test "${with_mail_if_noperms+set}" = set; then :
4508   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4509     yes)        mail_noperms=on
4510                 ;;
4511     no)         mail_noperms=off
4512                 ;;
4513     *)          as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4514                 ;;
4515 esac
4516 fi
4517
4518 if test "$mail_noperms" = "on"; then
4519     $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4520
4521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4522 $as_echo "yes" >&6; }
4523 else
4524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4526 fi
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4529 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4530
4531 # Check whether --with-mailto was given.
4532 if test "${with_mailto+set}" = set; then :
4533   withval=$with_mailto; case $with_mailto in
4534     yes)        as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
4535                 ;;
4536     no)         as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
4537                 ;;
4538     *)          mailto=$with_mailto
4539                 ;;
4540 esac
4541 fi
4542
4543
4544 cat >>confdefs.h <<_ACEOF
4545 #define MAILTO "$mailto"
4546 _ACEOF
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4549 $as_echo "$mailto" >&6; }
4550
4551
4552 # Check whether --with-mailsubject was given.
4553 if test "${with_mailsubject+set}" = set; then :
4554   withval=$with_mailsubject; case $with_mailsubject in
4555     yes)        as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4556                 ;;
4557     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4558 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4559                 ;;
4560     *)          mailsub="$with_mailsubject"
4561                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4562 $as_echo_n "checking sudo mail subject... " >&6; }
4563                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4564 $as_echo "Using alert mail subject: $mailsub" >&6; }
4565                 ;;
4566 esac
4567 fi
4568
4569
4570 cat >>confdefs.h <<_ACEOF
4571 #define MAILSUBJECT "$mailsub"
4572 _ACEOF
4573
4574
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4576 $as_echo_n "checking for bad password prompt... " >&6; }
4577
4578 # Check whether --with-passprompt was given.
4579 if test "${with_passprompt+set}" = set; then :
4580   withval=$with_passprompt; case $with_passprompt in
4581     yes)        as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4582                 ;;
4583     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4584 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4585                 ;;
4586     *)          passprompt="$with_passprompt"
4587 esac
4588 fi
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4591 $as_echo "$passprompt" >&6; }
4592
4593 cat >>confdefs.h <<_ACEOF
4594 #define PASSPROMPT "$passprompt"
4595 _ACEOF
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4599 $as_echo_n "checking for bad password message... " >&6; }
4600
4601 # Check whether --with-badpass-message was given.
4602 if test "${with_badpass_message+set}" = set; then :
4603   withval=$with_badpass_message; case $with_badpass_message in
4604     yes)        as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4605                 ;;
4606     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4607 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4608                 ;;
4609     *)          badpass_message="$with_badpass_message"
4610                 ;;
4611 esac
4612 fi
4613
4614
4615 cat >>confdefs.h <<_ACEOF
4616 #define INCORRECT_PASSWORD "$badpass_message"
4617 _ACEOF
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4620 $as_echo "$badpass_message" >&6; }
4621
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4623 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4624
4625 # Check whether --with-fqdn was given.
4626 if test "${with_fqdn+set}" = set; then :
4627   withval=$with_fqdn; case $with_fqdn in
4628     yes)        fqdn=on
4629                 ;;
4630     no)         fqdn=off
4631                 ;;
4632     *)          as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4633                 ;;
4634 esac
4635 fi
4636
4637 if test "$fqdn" = "on"; then
4638     $as_echo "#define FQDN 1" >>confdefs.h
4639
4640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4641 $as_echo "yes" >&6; }
4642 else
4643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648 # Check whether --with-timedir was given.
4649 if test "${with_timedir+set}" = set; then :
4650   withval=$with_timedir; case $with_timedir in
4651     yes)        as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
4652                 ;;
4653     no)         as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
4654                 ;;
4655 esac
4656 fi
4657
4658
4659
4660 # Check whether --with-iologdir was given.
4661 if test "${with_iologdir+set}" = set; then :
4662   withval=$with_iologdir; case $with_iologdir in
4663     yes)    ;;
4664     no)     as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
4665             ;;
4666 esac
4667 fi
4668
4669
4670
4671 # Check whether --with-sendmail was given.
4672 if test "${with_sendmail+set}" = set; then :
4673   withval=$with_sendmail; case $with_sendmail in
4674     yes)        with_sendmail=""
4675                 ;;
4676     no)         ;;
4677     *)          cat >>confdefs.h <<EOF
4678 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4679 EOF
4680
4681                 ;;
4682 esac
4683 fi
4684
4685
4686
4687 # Check whether --with-sudoers-mode was given.
4688 if test "${with_sudoers_mode+set}" = set; then :
4689   withval=$with_sudoers_mode; case $with_sudoers_mode in
4690     yes)        as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4691                 ;;
4692     no)         as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4693                 ;;
4694     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
4695                 ;;
4696     0*)         SUDOERS_MODE=$with_sudoers_mode
4697                 ;;
4698     *)          as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4699                 ;;
4700 esac
4701 fi
4702
4703
4704
4705 # Check whether --with-sudoers-uid was given.
4706 if test "${with_sudoers_uid+set}" = set; then :
4707   withval=$with_sudoers_uid; case $with_sudoers_uid in
4708     yes)        as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4709                 ;;
4710     no)         as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4711                 ;;
4712     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
4713                 ;;
4714     *)          as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4715                 ;;
4716 esac
4717 fi
4718
4719
4720
4721 # Check whether --with-sudoers-gid was given.
4722 if test "${with_sudoers_gid+set}" = set; then :
4723   withval=$with_sudoers_gid; case $with_sudoers_gid in
4724     yes)        as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4725                 ;;
4726     no)         as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4727                 ;;
4728     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
4729                 ;;
4730     *)          as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4731                 ;;
4732 esac
4733 fi
4734
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4737 $as_echo_n "checking for umask programs should be run with... " >&6; }
4738
4739 # Check whether --with-umask was given.
4740 if test "${with_umask+set}" = set; then :
4741   withval=$with_umask; case $with_umask in
4742     yes)        as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
4743                 ;;
4744     no)         sudo_umask=0777
4745                 ;;
4746     [0-9]*)     sudo_umask=$with_umask
4747                 ;;
4748     *)          as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
4749                 ;;
4750 esac
4751 fi
4752
4753
4754 cat >>confdefs.h <<_ACEOF
4755 #define SUDO_UMASK $sudo_umask
4756 _ACEOF
4757
4758 if test "$sudo_umask" = "0777"; then
4759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4760 $as_echo "user" >&6; }
4761 else
4762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4763 $as_echo "$sudo_umask" >&6; }
4764 fi
4765
4766
4767 # Check whether --with-umask-override was given.
4768 if test "${with_umask_override+set}" = set; then :
4769   withval=$with_umask_override; case $with_umask_override in
4770     yes)        $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4771
4772                 umask_override=on
4773                 ;;
4774     no)         umask_override=off
4775                 ;;
4776     *)          as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4777                 ;;
4778 esac
4779 fi
4780
4781
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4783 $as_echo_n "checking for default user to run commands as... " >&6; }
4784
4785 # Check whether --with-runas-default was given.
4786 if test "${with_runas_default+set}" = set; then :
4787   withval=$with_runas_default; case $with_runas_default in
4788     yes)        as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4789                 ;;
4790     no)         as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
4791                 ;;
4792     *)          runas_default="$with_runas_default"
4793                 ;;
4794 esac
4795 fi
4796
4797
4798 cat >>confdefs.h <<_ACEOF
4799 #define RUNAS_DEFAULT "$runas_default"
4800 _ACEOF
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4803 $as_echo "$runas_default" >&6; }
4804
4805
4806 # Check whether --with-exempt was given.
4807 if test "${with_exempt+set}" = set; then :
4808   withval=$with_exempt; case $with_exempt in
4809     yes)        as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
4810                 ;;
4811     no)         as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
4812                 ;;
4813     *)
4814 cat >>confdefs.h <<_ACEOF
4815 #define EXEMPTGROUP "$with_exempt"
4816 _ACEOF
4817
4818                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4819 $as_echo_n "checking for group to be exempt from password... " >&6; }
4820                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4821 $as_echo "$with_exempt" >&6; }
4822                 ;;
4823 esac
4824 fi
4825
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4828 $as_echo_n "checking for editor that visudo should use... " >&6; }
4829
4830 # Check whether --with-editor was given.
4831 if test "${with_editor+set}" = set; then :
4832   withval=$with_editor; case $with_editor in
4833     yes)        as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
4834                 ;;
4835     no)         as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4836                 ;;
4837     *)
4838 cat >>confdefs.h <<_ACEOF
4839 #define EDITOR "$with_editor"
4840 _ACEOF
4841
4842                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4843 $as_echo "$with_editor" >&6; }
4844                 editor="$with_editor"
4845                 ;;
4846 esac
4847 else
4848   $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4850 $as_echo "vi" >&6; }
4851 fi
4852
4853
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4855 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4856
4857 # Check whether --with-env-editor was given.
4858 if test "${with_env_editor+set}" = set; then :
4859   withval=$with_env_editor; case $with_env_editor in
4860     yes)        env_editor=on
4861                 ;;
4862     no)         env_editor=off
4863                 ;;
4864     *)          as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4865                 ;;
4866 esac
4867 fi
4868
4869 if test "$env_editor" = "on"; then
4870     $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4871
4872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4873 $as_echo "yes" >&6; }
4874 else
4875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877 fi
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4880 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4881
4882 # Check whether --with-passwd-tries was given.
4883 if test "${with_passwd_tries+set}" = set; then :
4884   withval=$with_passwd_tries; case $with_passwd_tries in
4885     yes)        ;;
4886     no)         as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4887                 ;;
4888     [1-9]*)     passwd_tries=$with_passwd_tries
4889                 ;;
4890     *)          as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4891                 ;;
4892 esac
4893 fi
4894
4895
4896 cat >>confdefs.h <<_ACEOF
4897 #define TRIES_FOR_PASSWORD $passwd_tries
4898 _ACEOF
4899
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4901 $as_echo "$passwd_tries" >&6; }
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4904 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4905
4906 # Check whether --with-timeout was given.
4907 if test "${with_timeout+set}" = set; then :
4908   withval=$with_timeout; case $with_timeout in
4909     yes)        ;;
4910     no)         timeout=0
4911                 ;;
4912     [0-9]*)     timeout=$with_timeout
4913                 ;;
4914     *)          as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4915                 ;;
4916 esac
4917 fi
4918
4919
4920 cat >>confdefs.h <<_ACEOF
4921 #define TIMEOUT $timeout
4922 _ACEOF
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4925 $as_echo "$timeout" >&6; }
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4928 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4929
4930 # Check whether --with-password-timeout was given.
4931 if test "${with_password_timeout+set}" = set; then :
4932   withval=$with_password_timeout; case $with_password_timeout in
4933     yes)        ;;
4934     no)         password_timeout=0
4935                 ;;
4936     [0-9]*)     password_timeout=$with_password_timeout
4937                 ;;
4938     *)          as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4939                 ;;
4940 esac
4941 fi
4942
4943
4944 cat >>confdefs.h <<_ACEOF
4945 #define PASSWORD_TIMEOUT $password_timeout
4946 _ACEOF
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4949 $as_echo "$password_timeout" >&6; }
4950
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4952 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4953
4954 # Check whether --with-tty-tickets was given.
4955 if test "${with_tty_tickets+set}" = set; then :
4956   withval=$with_tty_tickets; case $with_tty_tickets in
4957     yes)        tty_tickets=on
4958                 ;;
4959     no)         tty_tickets=off
4960                 ;;
4961     *)          as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4962                 ;;
4963 esac
4964 fi
4965
4966 if test "$tty_tickets" = "off"; then
4967     $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4968
4969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 else
4972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4973 $as_echo "yes" >&6; }
4974 fi
4975
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4977 $as_echo_n "checking whether to include insults... " >&6; }
4978
4979 # Check whether --with-insults was given.
4980 if test "${with_insults+set}" = set; then :
4981   withval=$with_insults; case $with_insults in
4982     yes)        insults=on
4983                 with_classic_insults=yes
4984                 with_csops_insults=yes
4985                 ;;
4986     disabled)   insults=off
4987                 with_classic_insults=yes
4988                 with_csops_insults=yes
4989                 ;;
4990     no)         insults=off
4991                 ;;
4992     *)          as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
4993                 ;;
4994 esac
4995 fi
4996
4997 if test "$insults" = "on"; then
4998     $as_echo "#define USE_INSULTS 1" >>confdefs.h
4999
5000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5001 $as_echo "yes" >&6; }
5002 else
5003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5005 fi
5006
5007
5008 # Check whether --with-all-insults was given.
5009 if test "${with_all_insults+set}" = set; then :
5010   withval=$with_all_insults; case $with_all_insults in
5011     yes)        with_classic_insults=yes
5012                 with_csops_insults=yes
5013                 with_hal_insults=yes
5014                 with_goons_insults=yes
5015                 ;;
5016     no)         ;;
5017     *)          as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
5018                 ;;
5019 esac
5020 fi
5021
5022
5023
5024 # Check whether --with-classic-insults was given.
5025 if test "${with_classic_insults+set}" = set; then :
5026   withval=$with_classic_insults; case $with_classic_insults in
5027     yes)        $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
5028
5029                 ;;
5030     no)         ;;
5031     *)          as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
5032                 ;;
5033 esac
5034 fi
5035
5036
5037
5038 # Check whether --with-csops-insults was given.
5039 if test "${with_csops_insults+set}" = set; then :
5040   withval=$with_csops_insults; case $with_csops_insults in
5041     yes)        $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
5042
5043                 ;;
5044     no)         ;;
5045     *)          as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
5046                 ;;
5047 esac
5048 fi
5049
5050
5051
5052 # Check whether --with-hal-insults was given.
5053 if test "${with_hal_insults+set}" = set; then :
5054   withval=$with_hal_insults; case $with_hal_insults in
5055     yes)        $as_echo "#define HAL_INSULTS 1" >>confdefs.h
5056
5057                 ;;
5058     no)         ;;
5059     *)          as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
5060                 ;;
5061 esac
5062 fi
5063
5064
5065
5066 # Check whether --with-goons-insults was given.
5067 if test "${with_goons_insults+set}" = set; then :
5068   withval=$with_goons_insults; case $with_goons_insults in
5069     yes)        $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5070
5071                 ;;
5072     no)         ;;
5073     *)          as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5074                 ;;
5075 esac
5076 fi
5077
5078
5079
5080 # Check whether --with-nsswitch was given.
5081 if test "${with_nsswitch+set}" = set; then :
5082   withval=$with_nsswitch; case $with_nsswitch in
5083     no)         ;;
5084     yes)        with_nsswitch="/etc/nsswitch.conf"
5085                 ;;
5086     *)          ;;
5087 esac
5088 fi
5089
5090
5091
5092 # Check whether --with-ldap was given.
5093 if test "${with_ldap+set}" = set; then :
5094   withval=$with_ldap; case $with_ldap in
5095     no)         ;;
5096     *)          $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5097
5098                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5099 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5100                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5101 $as_echo "yes" >&6; }
5102                 ;;
5103 esac
5104 fi
5105
5106
5107
5108 # Check whether --with-ldap-conf-file was given.
5109 if test "${with_ldap_conf_file+set}" = set; then :
5110   withval=$with_ldap_conf_file;
5111 fi
5112
5113 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5114 cat >>confdefs.h <<EOF
5115 #define _PATH_LDAP_CONF "$ldap_conf"
5116 EOF
5117
5118
5119
5120 # Check whether --with-ldap-secret-file was given.
5121 if test "${with_ldap_secret_file+set}" = set; then :
5122   withval=$with_ldap_secret_file;
5123 fi
5124
5125 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5126 cat >>confdefs.h <<EOF
5127 #define _PATH_LDAP_SECRET "$ldap_secret"
5128 EOF
5129
5130
5131
5132 # Check whether --with-pc-insults was given.
5133 if test "${with_pc_insults+set}" = set; then :
5134   withval=$with_pc_insults; case $with_pc_insults in
5135     yes)        $as_echo "#define PC_INSULTS 1" >>confdefs.h
5136
5137                 ;;
5138     no)         ;;
5139     *)          as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5140                 ;;
5141 esac
5142 fi
5143
5144
5145 if test "$insults" = "on"; then
5146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5147 $as_echo_n "checking which insult sets to include... " >&6; }
5148     i=""
5149     test "$with_goons_insults" = "yes" && i="goons ${i}"
5150     test "$with_hal_insults" = "yes" && i="hal ${i}"
5151     test "$with_csops_insults" = "yes" && i="csops ${i}"
5152     test "$with_classic_insults" = "yes" && i="classic ${i}"
5153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5154 $as_echo "$i" >&6; }
5155 fi
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5158 $as_echo_n "checking whether to override the user's path... " >&6; }
5159
5160 # Check whether --with-secure-path was given.
5161 if test "${with_secure_path+set}" = set; then :
5162   withval=$with_secure_path; case $with_secure_path in
5163     yes)        with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5164                 cat >>confdefs.h <<_ACEOF
5165 #define SECURE_PATH "$with_secure_path"
5166 _ACEOF
5167
5168                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5169 $as_echo "$with_secure_path" >&6; }
5170                 secure_path="set to $with_secure_path"
5171                 ;;
5172     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5174                 ;;
5175     *)          cat >>confdefs.h <<_ACEOF
5176 #define SECURE_PATH "$with_secure_path"
5177 _ACEOF
5178
5179                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5180 $as_echo "$with_secure_path" >&6; }
5181                 secure_path="set to F<$with_secure_path>"
5182                 ;;
5183 esac
5184 else
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5191 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5192
5193 # Check whether --with-interfaces was given.
5194 if test "${with_interfaces+set}" = set; then :
5195   withval=$with_interfaces; case $with_interfaces in
5196     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5197 $as_echo "yes" >&6; }
5198                 ;;
5199     no)         $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5200
5201                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203                 ;;
5204     *)          as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5205                 ;;
5206 esac
5207 else
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5209 $as_echo "yes" >&6; }
5210 fi
5211
5212
5213
5214 # Check whether --with-stow was given.
5215 if test "${with_stow+set}" = set; then :
5216   withval=$with_stow; case $with_stow in
5217     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: --with-stow option deprecated, now is defalt behavior" >&5
5218 $as_echo "$as_me: --with-stow option deprecated, now is defalt behavior" >&6;}
5219                 ;;
5220 esac
5221 fi
5222
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5225 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5226
5227 # Check whether --with-askpass was given.
5228 if test "${with_askpass+set}" = set; then :
5229   withval=$with_askpass; case $with_askpass in
5230     yes)        as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5231                 ;;
5232     no)         ;;
5233     *)          cat >>confdefs.h <<EOF
5234 #define _PATH_SUDO_ASKPASS "$with_askpass"
5235 EOF
5236
5237                 ;;
5238 esac
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245
5246 # Check whether --with-plugindir was given.
5247 if test "${with_plugindir+set}" = set; then :
5248   withval=$with_plugindir; case $with_plugindir in
5249     no)         as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5250                 ;;
5251     *)          ;;
5252 esac
5253 else
5254   with_plugindir="$libexecdir"
5255 fi
5256
5257
5258
5259 # Check whether --with-man was given.
5260 if test "${with_man+set}" = set; then :
5261   withval=$with_man; case $with_man in
5262     yes)        MANTYPE=man
5263                 ;;
5264     no)         as_fn_error $? "\"--without-man not supported.\"" "$LINENO" 5
5265                 ;;
5266     *)          as_fn_error $? "\"ignoring unknown argument to --with-man: $with_man.\"" "$LINENO" 5
5267                 ;;
5268 esac
5269 fi
5270
5271
5272
5273 # Check whether --with-mdoc was given.
5274 if test "${with_mdoc+set}" = set; then :
5275   withval=$with_mdoc; case $with_mdoc in
5276     yes)        MANTYPE=mdoc
5277                 ;;
5278     no)         as_fn_error $? "\"--without-mdoc not supported.\"" "$LINENO" 5
5279                 ;;
5280     *)          as_fn_error $? "\"ignoring unknown argument to --with-mdoc: $with_mdoc.\"" "$LINENO" 5
5281                 ;;
5282 esac
5283 fi
5284
5285
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5288 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5289 # Check whether --enable-authentication was given.
5290 if test "${enable_authentication+set}" = set; then :
5291   enableval=$enable_authentication;  case "$enableval" in
5292     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5293 $as_echo "yes" >&6; }
5294                 ;;
5295     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297                 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5298
5299                 ;;
5300     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5302                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5303 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5304                 ;;
5305   esac
5306
5307 else
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309 $as_echo "yes" >&6; }
5310 fi
5311
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5314 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5315 # Check whether --enable-root-mailer was given.
5316 if test "${enable_root_mailer+set}" = set; then :
5317   enableval=$enable_root_mailer;  case "$enableval" in
5318     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5320                 ;;
5321     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5322 $as_echo "yes" >&6; }
5323                 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5324
5325                 ;;
5326     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5329 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5330                 ;;
5331   esac
5332
5333 else
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5337
5338
5339 # Check whether --enable-setreuid was given.
5340 if test "${enable_setreuid+set}" = set; then :
5341   enableval=$enable_setreuid;  case "$enableval" in
5342     no)         SKIP_SETREUID=yes
5343                 ;;
5344     *)          ;;
5345   esac
5346
5347 fi
5348
5349
5350 # Check whether --enable-setresuid was given.
5351 if test "${enable_setresuid+set}" = set; then :
5352   enableval=$enable_setresuid;  case "$enableval" in
5353     no)         SKIP_SETRESUID=yes
5354                 ;;
5355     *)          ;;
5356   esac
5357
5358 fi
5359
5360
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5362 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5363 # Check whether --enable-shadow was given.
5364 if test "${enable_shadow+set}" = set; then :
5365   enableval=$enable_shadow;  case "$enableval" in
5366     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368                 ;;
5369     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5370 $as_echo "yes" >&6; }
5371                 CHECKSHADOW="false"
5372                 ;;
5373     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5375                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5376 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5377                 ;;
5378   esac
5379
5380 else
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5387 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5388 # Check whether --enable-root-sudo was given.
5389 if test "${enable_root_sudo+set}" = set; then :
5390   enableval=$enable_root_sudo;  case "$enableval" in
5391     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392 $as_echo "yes" >&6; }
5393                 ;;
5394     no)         $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5395
5396                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398                 root_sudo=off
5399                 ;;
5400     *)          as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5401                 ;;
5402   esac
5403
5404 else
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5406 $as_echo "yes" >&6; }
5407 fi
5408
5409
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5411 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5412 # Check whether --enable-log-host was given.
5413 if test "${enable_log_host+set}" = set; then :
5414   enableval=$enable_log_host;  case "$enableval" in
5415     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5416 $as_echo "yes" >&6; }
5417                 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5418
5419                 ;;
5420     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422                 ;;
5423     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5425                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5426 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5427                 ;;
5428   esac
5429
5430 else
5431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5433 fi
5434
5435
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5437 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5438 # Check whether --enable-noargs-shell was given.
5439 if test "${enable_noargs_shell+set}" = set; then :
5440   enableval=$enable_noargs_shell;  case "$enableval" in
5441     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442 $as_echo "yes" >&6; }
5443                 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5444
5445                 ;;
5446     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5448                 ;;
5449     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5452 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5453                 ;;
5454   esac
5455
5456 else
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5459 fi
5460
5461
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5463 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5464 # Check whether --enable-shell-sets-home was given.
5465 if test "${enable_shell_sets_home+set}" = set; then :
5466   enableval=$enable_shell_sets_home;  case "$enableval" in
5467     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5468 $as_echo "yes" >&6; }
5469                 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5470
5471                 ;;
5472     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474                 ;;
5475     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5478 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5479                 ;;
5480   esac
5481
5482 else
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5489 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5490 # Check whether --enable-path_info was given.
5491 if test "${enable_path_info+set}" = set; then :
5492   enableval=$enable_path_info;  case "$enableval" in
5493     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495                 ;;
5496     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5497 $as_echo "yes" >&6; }
5498                 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5499
5500                 path_info=off
5501                 ;;
5502     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5504                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5505 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5506                 ;;
5507   esac
5508
5509 else
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5512 fi
5513
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5516 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5517 # Check whether --enable-env_debug was given.
5518 if test "${enable_env_debug+set}" = set; then :
5519   enableval=$enable_env_debug;  case "$enableval" in
5520     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5522                 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5523
5524                 ;;
5525     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527                 ;;
5528     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5531 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5532                 ;;
5533   esac
5534
5535 else
5536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540
5541 # Check whether --enable-zlib was given.
5542 if test "${enable_zlib+set}" = set; then :
5543   enableval=$enable_zlib;
5544 else
5545   enable_zlib=yes
5546 fi
5547
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5550 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5551 # Check whether --enable-env_reset was given.
5552 if test "${enable_env_reset+set}" = set; then :
5553   enableval=$enable_env_reset;  case "$enableval" in
5554     yes)        env_reset=on
5555                 ;;
5556     no)         env_reset=off
5557                 ;;
5558     *)          env_reset=on
5559                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5560 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5561                 ;;
5562   esac
5563
5564 fi
5565
5566 if test "$env_reset" = "on"; then
5567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5568 $as_echo "yes" >&6; }
5569     $as_echo "#define ENV_RESET 1" >>confdefs.h
5570
5571 else
5572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574     $as_echo "#define ENV_RESET 0" >>confdefs.h
5575
5576 fi
5577
5578 # Check whether --enable-warnings was given.
5579 if test "${enable_warnings+set}" = set; then :
5580   enableval=$enable_warnings;  case "$enableval" in
5581     yes)    ;;
5582     no)     ;;
5583     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5584 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5585             ;;
5586   esac
5587
5588 fi
5589
5590
5591 # Check whether --enable-werror was given.
5592 if test "${enable_werror+set}" = set; then :
5593   enableval=$enable_werror;  case "$enableval" in
5594     yes)    ;;
5595     no)     ;;
5596     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
5597 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
5598             ;;
5599   esac
5600
5601 fi
5602
5603
5604 # Check whether --enable-hardening was given.
5605 if test "${enable_hardening+set}" = set; then :
5606   enableval=$enable_hardening;
5607 else
5608   enable_hardening=yes
5609 fi
5610
5611
5612 # Check whether --enable-pie was given.
5613 if test "${enable_pie+set}" = set; then :
5614   enableval=$enable_pie;
5615 else
5616   enable_pie=yes
5617 fi
5618
5619
5620 # Check whether --enable-admin-flag was given.
5621 if test "${enable_admin_flag+set}" = set; then :
5622   enableval=$enable_admin_flag;  case "$enableval" in
5623     yes)    $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5624
5625             ;;
5626     no)     ;;
5627     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5628 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5629             ;;
5630   esac
5631
5632 fi
5633
5634
5635 # Check whether --enable-nls was given.
5636 if test "${enable_nls+set}" = set; then :
5637   enableval=$enable_nls;
5638 else
5639   enable_nls=yes
5640 fi
5641
5642
5643
5644 # Check whether --with-selinux was given.
5645 if test "${with_selinux+set}" = set; then :
5646   withval=$with_selinux; case $with_selinux in
5647     yes)        SELINUX_USAGE="[-r role] [-t type] "
5648                 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5649
5650                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5651                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5652                 PROGS="${PROGS} sesh"
5653                 SEMAN=1
5654                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5655 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5656 if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
5657   $as_echo_n "(cached) " >&6
5658 else
5659   ac_check_lib_save_LIBS=$LIBS
5660 LIBS="-lselinux  $LIBS"
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h.  */
5663
5664 /* Override any GCC internal prototype to avoid an error.
5665    Use char because int might match the return type of a GCC
5666    builtin and then its argument prototype would still apply.  */
5667 #ifdef __cplusplus
5668 extern "C"
5669 #endif
5670 char setkeycreatecon ();
5671 int
5672 main ()
5673 {
5674 return setkeycreatecon ();
5675   ;
5676   return 0;
5677 }
5678 _ACEOF
5679 if ac_fn_c_try_link "$LINENO"; then :
5680   ac_cv_lib_selinux_setkeycreatecon=yes
5681 else
5682   ac_cv_lib_selinux_setkeycreatecon=no
5683 fi
5684 rm -f core conftest.err conftest.$ac_objext \
5685     conftest$ac_exeext conftest.$ac_ext
5686 LIBS=$ac_check_lib_save_LIBS
5687 fi
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5689 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5690 if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
5691   $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5692
5693 fi
5694
5695                 ;;
5696     no)         ;;
5697     *)          as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5698                 ;;
5699 esac
5700 fi
5701
5702
5703 # Check whether --enable-gss_krb5_ccache_name was given.
5704 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5705   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5706 else
5707   check_gss_krb5_ccache_name=no
5708 fi
5709
5710
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5712 $as_echo_n "checking for library containing strerror... " >&6; }
5713 if ${ac_cv_search_strerror+:} false; then :
5714   $as_echo_n "(cached) " >&6
5715 else
5716   ac_func_search_save_LIBS=$LIBS
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h.  */
5719
5720 /* Override any GCC internal prototype to avoid an error.
5721    Use char because int might match the return type of a GCC
5722    builtin and then its argument prototype would still apply.  */
5723 #ifdef __cplusplus
5724 extern "C"
5725 #endif
5726 char strerror ();
5727 int
5728 main ()
5729 {
5730 return strerror ();
5731   ;
5732   return 0;
5733 }
5734 _ACEOF
5735 for ac_lib in '' cposix; do
5736   if test -z "$ac_lib"; then
5737     ac_res="none required"
5738   else
5739     ac_res=-l$ac_lib
5740     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5741   fi
5742   if ac_fn_c_try_link "$LINENO"; then :
5743   ac_cv_search_strerror=$ac_res
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext \
5746     conftest$ac_exeext
5747   if ${ac_cv_search_strerror+:} false; then :
5748   break
5749 fi
5750 done
5751 if ${ac_cv_search_strerror+:} false; then :
5752
5753 else
5754   ac_cv_search_strerror=no
5755 fi
5756 rm conftest.$ac_ext
5757 LIBS=$ac_func_search_save_LIBS
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5760 $as_echo "$ac_cv_search_strerror" >&6; }
5761 ac_res=$ac_cv_search_strerror
5762 if test "$ac_res" != no; then :
5763   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5764
5765 fi
5766
5767 ac_ext=c
5768 ac_cpp='$CPP $CPPFLAGS'
5769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5773 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5774 # On Suns, sometimes $CPP names a directory.
5775 if test -n "$CPP" && test -d "$CPP"; then
5776   CPP=
5777 fi
5778 if test -z "$CPP"; then
5779   if ${ac_cv_prog_CPP+:} false; then :
5780   $as_echo_n "(cached) " >&6
5781 else
5782       # Double quotes because CPP needs to be expanded
5783     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5784     do
5785       ac_preproc_ok=false
5786 for ac_c_preproc_warn_flag in '' yes
5787 do
5788   # Use a header file that comes with gcc, so configuring glibc
5789   # with a fresh cross-compiler works.
5790   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5791   # <limits.h> exists even on freestanding compilers.
5792   # On the NeXT, cc -E runs the code through the compiler's parser,
5793   # not just through cpp. "Syntax error" is here to catch this case.
5794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h.  */
5796 #ifdef __STDC__
5797 # include <limits.h>
5798 #else
5799 # include <assert.h>
5800 #endif
5801                      Syntax error
5802 _ACEOF
5803 if ac_fn_c_try_cpp "$LINENO"; then :
5804
5805 else
5806   # Broken: fails on valid input.
5807 continue
5808 fi
5809 rm -f conftest.err conftest.i conftest.$ac_ext
5810
5811   # OK, works on sane cases.  Now check whether nonexistent headers
5812   # can be detected and how.
5813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h.  */
5815 #include <ac_nonexistent.h>
5816 _ACEOF
5817 if ac_fn_c_try_cpp "$LINENO"; then :
5818   # Broken: success on invalid input.
5819 continue
5820 else
5821   # Passes both tests.
5822 ac_preproc_ok=:
5823 break
5824 fi
5825 rm -f conftest.err conftest.i conftest.$ac_ext
5826
5827 done
5828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5829 rm -f conftest.i conftest.err conftest.$ac_ext
5830 if $ac_preproc_ok; then :
5831   break
5832 fi
5833
5834     done
5835     ac_cv_prog_CPP=$CPP
5836
5837 fi
5838   CPP=$ac_cv_prog_CPP
5839 else
5840   ac_cv_prog_CPP=$CPP
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5843 $as_echo "$CPP" >&6; }
5844 ac_preproc_ok=false
5845 for ac_c_preproc_warn_flag in '' yes
5846 do
5847   # Use a header file that comes with gcc, so configuring glibc
5848   # with a fresh cross-compiler works.
5849   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5850   # <limits.h> exists even on freestanding compilers.
5851   # On the NeXT, cc -E runs the code through the compiler's parser,
5852   # not just through cpp. "Syntax error" is here to catch this case.
5853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h.  */
5855 #ifdef __STDC__
5856 # include <limits.h>
5857 #else
5858 # include <assert.h>
5859 #endif
5860                      Syntax error
5861 _ACEOF
5862 if ac_fn_c_try_cpp "$LINENO"; then :
5863
5864 else
5865   # Broken: fails on valid input.
5866 continue
5867 fi
5868 rm -f conftest.err conftest.i conftest.$ac_ext
5869
5870   # OK, works on sane cases.  Now check whether nonexistent headers
5871   # can be detected and how.
5872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h.  */
5874 #include <ac_nonexistent.h>
5875 _ACEOF
5876 if ac_fn_c_try_cpp "$LINENO"; then :
5877   # Broken: success on invalid input.
5878 continue
5879 else
5880   # Passes both tests.
5881 ac_preproc_ok=:
5882 break
5883 fi
5884 rm -f conftest.err conftest.i conftest.$ac_ext
5885
5886 done
5887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5888 rm -f conftest.i conftest.err conftest.$ac_ext
5889 if $ac_preproc_ok; then :
5890
5891 else
5892   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5894 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5895 See \`config.log' for more details" "$LINENO" 5; }
5896 fi
5897
5898 ac_ext=c
5899 ac_cpp='$CPP $CPPFLAGS'
5900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5903
5904 if test -n "$ac_tool_prefix"; then
5905   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5906 set dummy ${ac_tool_prefix}ar; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_prog_AR+:} false; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   if test -n "$AR"; then
5913   ac_cv_prog_AR="$AR" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920     for ac_exec_ext in '' $ac_executable_extensions; do
5921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922     ac_cv_prog_AR="${ac_tool_prefix}ar"
5923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927   done
5928 IFS=$as_save_IFS
5929
5930 fi
5931 fi
5932 AR=$ac_cv_prog_AR
5933 if test -n "$AR"; then
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5935 $as_echo "$AR" >&6; }
5936 else
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5939 fi
5940
5941
5942 fi
5943 if test -z "$ac_cv_prog_AR"; then
5944   ac_ct_AR=$AR
5945   # Extract the first word of "ar", so it can be a program name with args.
5946 set dummy ar; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   if test -n "$ac_ct_AR"; then
5953   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960     for ac_exec_ext in '' $ac_executable_extensions; do
5961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962     ac_cv_prog_ac_ct_AR="ar"
5963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967   done
5968 IFS=$as_save_IFS
5969
5970 fi
5971 fi
5972 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5973 if test -n "$ac_ct_AR"; then
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5975 $as_echo "$ac_ct_AR" >&6; }
5976 else
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5979 fi
5980
5981   if test "x$ac_ct_AR" = x; then
5982     AR="false"
5983   else
5984     case $cross_compiling:$ac_tool_warned in
5985 yes:)
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988 ac_tool_warned=yes ;;
5989 esac
5990     AR=$ac_ct_AR
5991   fi
5992 else
5993   AR="$ac_cv_prog_AR"
5994 fi
5995
5996 if test -n "$ac_tool_prefix"; then
5997   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5998 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if ${ac_cv_prog_RANLIB+:} false; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   if test -n "$RANLIB"; then
6005   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010   IFS=$as_save_IFS
6011   test -z "$as_dir" && as_dir=.
6012     for ac_exec_ext in '' $ac_executable_extensions; do
6013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016     break 2
6017   fi
6018 done
6019   done
6020 IFS=$as_save_IFS
6021
6022 fi
6023 fi
6024 RANLIB=$ac_cv_prog_RANLIB
6025 if test -n "$RANLIB"; then
6026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6027 $as_echo "$RANLIB" >&6; }
6028 else
6029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6031 fi
6032
6033
6034 fi
6035 if test -z "$ac_cv_prog_RANLIB"; then
6036   ac_ct_RANLIB=$RANLIB
6037   # Extract the first word of "ranlib", so it can be a program name with args.
6038 set dummy ranlib; ac_word=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6042   $as_echo_n "(cached) " >&6
6043 else
6044   if test -n "$ac_ct_RANLIB"; then
6045   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050   IFS=$as_save_IFS
6051   test -z "$as_dir" && as_dir=.
6052     for ac_exec_ext in '' $ac_executable_extensions; do
6053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054     ac_cv_prog_ac_ct_RANLIB="ranlib"
6055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056     break 2
6057   fi
6058 done
6059   done
6060 IFS=$as_save_IFS
6061
6062 fi
6063 fi
6064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6065 if test -n "$ac_ct_RANLIB"; then
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6067 $as_echo "$ac_ct_RANLIB" >&6; }
6068 else
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071 fi
6072
6073   if test "x$ac_ct_RANLIB" = x; then
6074     RANLIB=":"
6075   else
6076     case $cross_compiling:$ac_tool_warned in
6077 yes:)
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6080 ac_tool_warned=yes ;;
6081 esac
6082     RANLIB=$ac_ct_RANLIB
6083   fi
6084 else
6085   RANLIB="$ac_cv_prog_RANLIB"
6086 fi
6087
6088 if test X"$AR" = X"false"; then
6089     as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
6090 fi
6091
6092 if test "x$ac_cv_prog_cc_c89" = "xno"; then
6093     as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
6094 fi
6095
6096 if test "$enable_static" = "no"; then
6097     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
6098 $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
6099     enable_static=yes
6100 fi
6101
6102 ac_aux_dir=
6103 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6104   if test -f "$ac_dir/install-sh"; then
6105     ac_aux_dir=$ac_dir
6106     ac_install_sh="$ac_aux_dir/install-sh -c"
6107     break
6108   elif test -f "$ac_dir/install.sh"; then
6109     ac_aux_dir=$ac_dir
6110     ac_install_sh="$ac_aux_dir/install.sh -c"
6111     break
6112   elif test -f "$ac_dir/shtool"; then
6113     ac_aux_dir=$ac_dir
6114     ac_install_sh="$ac_aux_dir/shtool install -c"
6115     break
6116   fi
6117 done
6118 if test -z "$ac_aux_dir"; then
6119   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6120 fi
6121
6122 # These three variables are undocumented and unsupported,
6123 # and are intended to be withdrawn in a future Autoconf release.
6124 # They can cause serious problems if a builder's source tree is in a directory
6125 # whose full name contains unusual characters.
6126 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6127 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6128 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6129
6130
6131 # Make sure we can run config.sub.
6132 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6133   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6134
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6136 $as_echo_n "checking build system type... " >&6; }
6137 if ${ac_cv_build+:} false; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   ac_build_alias=$build_alias
6141 test "x$ac_build_alias" = x &&
6142   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6143 test "x$ac_build_alias" = x &&
6144   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6145 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6146   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6147
6148 fi
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6150 $as_echo "$ac_cv_build" >&6; }
6151 case $ac_cv_build in
6152 *-*-*) ;;
6153 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6154 esac
6155 build=$ac_cv_build
6156 ac_save_IFS=$IFS; IFS='-'
6157 set x $ac_cv_build
6158 shift
6159 build_cpu=$1
6160 build_vendor=$2
6161 shift; shift
6162 # Remember, the first character of IFS is used to create $*,
6163 # except with old shells:
6164 build_os=$*
6165 IFS=$ac_save_IFS
6166 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6167
6168
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6170 $as_echo_n "checking host system type... " >&6; }
6171 if ${ac_cv_host+:} false; then :
6172   $as_echo_n "(cached) " >&6
6173 else
6174   if test "x$host_alias" = x; then
6175   ac_cv_host=$ac_cv_build
6176 else
6177   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6178     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6179 fi
6180
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6183 $as_echo "$ac_cv_host" >&6; }
6184 case $ac_cv_host in
6185 *-*-*) ;;
6186 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6187 esac
6188 host=$ac_cv_host
6189 ac_save_IFS=$IFS; IFS='-'
6190 set x $ac_cv_host
6191 shift
6192 host_cpu=$1
6193 host_vendor=$2
6194 shift; shift
6195 # Remember, the first character of IFS is used to create $*,
6196 # except with old shells:
6197 host_os=$*
6198 IFS=$ac_save_IFS
6199 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6200
6201
6202
6203
6204 case `pwd` in
6205   *\ * | *\     *)
6206     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6207 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6208 esac
6209
6210
6211
6212 macro_version='2.4.2'
6213 macro_revision='1.3337'
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227 ltmain="$ac_aux_dir/ltmain.sh"
6228
6229 # Backslashify metacharacters that are still active within
6230 # double-quoted strings.
6231 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6232
6233 # Same as above, but do not quote variable references.
6234 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6235
6236 # Sed substitution to delay expansion of an escaped shell variable in a
6237 # double_quote_subst'ed string.
6238 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6239
6240 # Sed substitution to delay expansion of an escaped single quote.
6241 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6242
6243 # Sed substitution to avoid accidental globbing in evaled expressions
6244 no_glob_subst='s/\*/\\\*/g'
6245
6246 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6247 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6248 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6249
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6251 $as_echo_n "checking how to print strings... " >&6; }
6252 # Test print first, because it will be a builtin if present.
6253 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6254    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6255   ECHO='print -r --'
6256 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6257   ECHO='printf %s\n'
6258 else
6259   # Use this function as a fallback that always works.
6260   func_fallback_echo ()
6261   {
6262     eval 'cat <<_LTECHO_EOF
6263 $1
6264 _LTECHO_EOF'
6265   }
6266   ECHO='func_fallback_echo'
6267 fi
6268
6269 # func_echo_all arg...
6270 # Invoke $ECHO with all args, space-separated.
6271 func_echo_all ()
6272 {
6273     $ECHO ""
6274 }
6275
6276 case "$ECHO" in
6277   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6278 $as_echo "printf" >&6; } ;;
6279   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6280 $as_echo "print -r" >&6; } ;;
6281   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6282 $as_echo "cat" >&6; } ;;
6283 esac
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6299 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6300 if ${ac_cv_path_SED+:} false; then :
6301   $as_echo_n "(cached) " >&6
6302 else
6303             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6304      for ac_i in 1 2 3 4 5 6 7; do
6305        ac_script="$ac_script$as_nl$ac_script"
6306      done
6307      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6308      { ac_script=; unset ac_script;}
6309      if test -z "$SED"; then
6310   ac_path_SED_found=false
6311   # Loop through the user's path and test for each of PROGNAME-LIST
6312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317     for ac_prog in sed gsed; do
6318     for ac_exec_ext in '' $ac_executable_extensions; do
6319       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6320       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6321 # Check for GNU ac_path_SED and select it if it is found.
6322   # Check for GNU $ac_path_SED
6323 case `"$ac_path_SED" --version 2>&1` in
6324 *GNU*)
6325   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6326 *)
6327   ac_count=0
6328   $as_echo_n 0123456789 >"conftest.in"
6329   while :
6330   do
6331     cat "conftest.in" "conftest.in" >"conftest.tmp"
6332     mv "conftest.tmp" "conftest.in"
6333     cp "conftest.in" "conftest.nl"
6334     $as_echo '' >> "conftest.nl"
6335     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6336     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6337     as_fn_arith $ac_count + 1 && ac_count=$as_val
6338     if test $ac_count -gt ${ac_path_SED_max-0}; then
6339       # Best one so far, save it but keep looking for a better one
6340       ac_cv_path_SED="$ac_path_SED"
6341       ac_path_SED_max=$ac_count
6342     fi
6343     # 10*(2^10) chars as input seems more than enough
6344     test $ac_count -gt 10 && break
6345   done
6346   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6347 esac
6348
6349       $ac_path_SED_found && break 3
6350     done
6351   done
6352   done
6353 IFS=$as_save_IFS
6354   if test -z "$ac_cv_path_SED"; then
6355     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6356   fi
6357 else
6358   ac_cv_path_SED=$SED
6359 fi
6360
6361 fi
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6363 $as_echo "$ac_cv_path_SED" >&6; }
6364  SED="$ac_cv_path_SED"
6365   rm -f conftest.sed
6366
6367 test -z "$SED" && SED=sed
6368 Xsed="$SED -e 1s/^X//"
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6381 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6382 if ${ac_cv_path_GREP+:} false; then :
6383   $as_echo_n "(cached) " >&6
6384 else
6385   if test -z "$GREP"; then
6386   ac_path_GREP_found=false
6387   # Loop through the user's path and test for each of PROGNAME-LIST
6388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6390 do
6391   IFS=$as_save_IFS
6392   test -z "$as_dir" && as_dir=.
6393     for ac_prog in grep ggrep; do
6394     for ac_exec_ext in '' $ac_executable_extensions; do
6395       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6396       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6397 # Check for GNU ac_path_GREP and select it if it is found.
6398   # Check for GNU $ac_path_GREP
6399 case `"$ac_path_GREP" --version 2>&1` in
6400 *GNU*)
6401   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6402 *)
6403   ac_count=0
6404   $as_echo_n 0123456789 >"conftest.in"
6405   while :
6406   do
6407     cat "conftest.in" "conftest.in" >"conftest.tmp"
6408     mv "conftest.tmp" "conftest.in"
6409     cp "conftest.in" "conftest.nl"
6410     $as_echo 'GREP' >> "conftest.nl"
6411     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6412     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6413     as_fn_arith $ac_count + 1 && ac_count=$as_val
6414     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6415       # Best one so far, save it but keep looking for a better one
6416       ac_cv_path_GREP="$ac_path_GREP"
6417       ac_path_GREP_max=$ac_count
6418     fi
6419     # 10*(2^10) chars as input seems more than enough
6420     test $ac_count -gt 10 && break
6421   done
6422   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6423 esac
6424
6425       $ac_path_GREP_found && break 3
6426     done
6427   done
6428   done
6429 IFS=$as_save_IFS
6430   if test -z "$ac_cv_path_GREP"; then
6431     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6432   fi
6433 else
6434   ac_cv_path_GREP=$GREP
6435 fi
6436
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6439 $as_echo "$ac_cv_path_GREP" >&6; }
6440  GREP="$ac_cv_path_GREP"
6441
6442
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6444 $as_echo_n "checking for egrep... " >&6; }
6445 if ${ac_cv_path_EGREP+:} false; then :
6446   $as_echo_n "(cached) " >&6
6447 else
6448   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6449    then ac_cv_path_EGREP="$GREP -E"
6450    else
6451      if test -z "$EGREP"; then
6452   ac_path_EGREP_found=false
6453   # Loop through the user's path and test for each of PROGNAME-LIST
6454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6456 do
6457   IFS=$as_save_IFS
6458   test -z "$as_dir" && as_dir=.
6459     for ac_prog in egrep; do
6460     for ac_exec_ext in '' $ac_executable_extensions; do
6461       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6462       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6463 # Check for GNU ac_path_EGREP and select it if it is found.
6464   # Check for GNU $ac_path_EGREP
6465 case `"$ac_path_EGREP" --version 2>&1` in
6466 *GNU*)
6467   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6468 *)
6469   ac_count=0
6470   $as_echo_n 0123456789 >"conftest.in"
6471   while :
6472   do
6473     cat "conftest.in" "conftest.in" >"conftest.tmp"
6474     mv "conftest.tmp" "conftest.in"
6475     cp "conftest.in" "conftest.nl"
6476     $as_echo 'EGREP' >> "conftest.nl"
6477     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6478     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6479     as_fn_arith $ac_count + 1 && ac_count=$as_val
6480     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6481       # Best one so far, save it but keep looking for a better one
6482       ac_cv_path_EGREP="$ac_path_EGREP"
6483       ac_path_EGREP_max=$ac_count
6484     fi
6485     # 10*(2^10) chars as input seems more than enough
6486     test $ac_count -gt 10 && break
6487   done
6488   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6489 esac
6490
6491       $ac_path_EGREP_found && break 3
6492     done
6493   done
6494   done
6495 IFS=$as_save_IFS
6496   if test -z "$ac_cv_path_EGREP"; then
6497     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6498   fi
6499 else
6500   ac_cv_path_EGREP=$EGREP
6501 fi
6502
6503    fi
6504 fi
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6506 $as_echo "$ac_cv_path_EGREP" >&6; }
6507  EGREP="$ac_cv_path_EGREP"
6508
6509
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6511 $as_echo_n "checking for fgrep... " >&6; }
6512 if ${ac_cv_path_FGREP+:} false; then :
6513   $as_echo_n "(cached) " >&6
6514 else
6515   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6516    then ac_cv_path_FGREP="$GREP -F"
6517    else
6518      if test -z "$FGREP"; then
6519   ac_path_FGREP_found=false
6520   # Loop through the user's path and test for each of PROGNAME-LIST
6521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526     for ac_prog in fgrep; do
6527     for ac_exec_ext in '' $ac_executable_extensions; do
6528       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6529       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6530 # Check for GNU ac_path_FGREP and select it if it is found.
6531   # Check for GNU $ac_path_FGREP
6532 case `"$ac_path_FGREP" --version 2>&1` in
6533 *GNU*)
6534   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6535 *)
6536   ac_count=0
6537   $as_echo_n 0123456789 >"conftest.in"
6538   while :
6539   do
6540     cat "conftest.in" "conftest.in" >"conftest.tmp"
6541     mv "conftest.tmp" "conftest.in"
6542     cp "conftest.in" "conftest.nl"
6543     $as_echo 'FGREP' >> "conftest.nl"
6544     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6545     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6546     as_fn_arith $ac_count + 1 && ac_count=$as_val
6547     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6548       # Best one so far, save it but keep looking for a better one
6549       ac_cv_path_FGREP="$ac_path_FGREP"
6550       ac_path_FGREP_max=$ac_count
6551     fi
6552     # 10*(2^10) chars as input seems more than enough
6553     test $ac_count -gt 10 && break
6554   done
6555   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6556 esac
6557
6558       $ac_path_FGREP_found && break 3
6559     done
6560   done
6561   done
6562 IFS=$as_save_IFS
6563   if test -z "$ac_cv_path_FGREP"; then
6564     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6565   fi
6566 else
6567   ac_cv_path_FGREP=$FGREP
6568 fi
6569
6570    fi
6571 fi
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6573 $as_echo "$ac_cv_path_FGREP" >&6; }
6574  FGREP="$ac_cv_path_FGREP"
6575
6576
6577 test -z "$GREP" && GREP=grep
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597 # Check whether --with-gnu-ld was given.
6598 if test "${with_gnu_ld+set}" = set; then :
6599   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6600 else
6601   with_gnu_ld=no
6602 fi
6603
6604 ac_prog=ld
6605 if test "$GCC" = yes; then
6606   # Check if gcc -print-prog-name=ld gives a path.
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6608 $as_echo_n "checking for ld used by $CC... " >&6; }
6609   case $host in
6610   *-*-mingw*)
6611     # gcc leaves a trailing carriage return which upsets mingw
6612     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6613   *)
6614     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6615   esac
6616   case $ac_prog in
6617     # Accept absolute paths.
6618     [\\/]* | ?:[\\/]*)
6619       re_direlt='/[^/][^/]*/\.\./'
6620       # Canonicalize the pathname of ld
6621       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6622       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6623         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6624       done
6625       test -z "$LD" && LD="$ac_prog"
6626       ;;
6627   "")
6628     # If it fails, then pretend we aren't using GCC.
6629     ac_prog=ld
6630     ;;
6631   *)
6632     # If it is relative, then search for the first ld in PATH.
6633     with_gnu_ld=unknown
6634     ;;
6635   esac
6636 elif test "$with_gnu_ld" = yes; then
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6638 $as_echo_n "checking for GNU ld... " >&6; }
6639 else
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6641 $as_echo_n "checking for non-GNU ld... " >&6; }
6642 fi
6643 if ${lt_cv_path_LD+:} false; then :
6644   $as_echo_n "(cached) " >&6
6645 else
6646   if test -z "$LD"; then
6647   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6648   for ac_dir in $PATH; do
6649     IFS="$lt_save_ifs"
6650     test -z "$ac_dir" && ac_dir=.
6651     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6652       lt_cv_path_LD="$ac_dir/$ac_prog"
6653       # Check to see if the program is GNU ld.  I'd rather use --version,
6654       # but apparently some variants of GNU ld only accept -v.
6655       # Break only if it was the GNU/non-GNU ld that we prefer.
6656       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6657       *GNU* | *'with BFD'*)
6658         test "$with_gnu_ld" != no && break
6659         ;;
6660       *)
6661         test "$with_gnu_ld" != yes && break
6662         ;;
6663       esac
6664     fi
6665   done
6666   IFS="$lt_save_ifs"
6667 else
6668   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6669 fi
6670 fi
6671
6672 LD="$lt_cv_path_LD"
6673 if test -n "$LD"; then
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6675 $as_echo "$LD" >&6; }
6676 else
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6679 fi
6680 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6682 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6683 if ${lt_cv_prog_gnu_ld+:} false; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6687 case `$LD -v 2>&1 </dev/null` in
6688 *GNU* | *'with BFD'*)
6689   lt_cv_prog_gnu_ld=yes
6690   ;;
6691 *)
6692   lt_cv_prog_gnu_ld=no
6693   ;;
6694 esac
6695 fi
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6697 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6698 with_gnu_ld=$lt_cv_prog_gnu_ld
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6709 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6710 if ${lt_cv_path_NM+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   if test -n "$NM"; then
6714   # Let the user override the test.
6715   lt_cv_path_NM="$NM"
6716 else
6717   lt_nm_to_check="${ac_tool_prefix}nm"
6718   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6719     lt_nm_to_check="$lt_nm_to_check nm"
6720   fi
6721   for lt_tmp_nm in $lt_nm_to_check; do
6722     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6723     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6724       IFS="$lt_save_ifs"
6725       test -z "$ac_dir" && ac_dir=.
6726       tmp_nm="$ac_dir/$lt_tmp_nm"
6727       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6728         # Check to see if the nm accepts a BSD-compat flag.
6729         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6730         #   nm: unknown option "B" ignored
6731         # Tru64's nm complains that /dev/null is an invalid object file
6732         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6733         */dev/null* | *'Invalid file or object type'*)
6734           lt_cv_path_NM="$tmp_nm -B"
6735           break
6736           ;;
6737         *)
6738           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6739           */dev/null*)
6740             lt_cv_path_NM="$tmp_nm -p"
6741             break
6742             ;;
6743           *)
6744             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6745             continue # so that we can try to find one that supports BSD flags
6746             ;;
6747           esac
6748           ;;
6749         esac
6750       fi
6751     done
6752     IFS="$lt_save_ifs"
6753   done
6754   : ${lt_cv_path_NM=no}
6755 fi
6756 fi
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6758 $as_echo "$lt_cv_path_NM" >&6; }
6759 if test "$lt_cv_path_NM" != "no"; then
6760   NM="$lt_cv_path_NM"
6761 else
6762   # Didn't find any BSD compatible name lister, look for dumpbin.
6763   if test -n "$DUMPBIN"; then :
6764     # Let the user override the test.
6765   else
6766     if test -n "$ac_tool_prefix"; then
6767   for ac_prog in dumpbin "link -dump"
6768   do
6769     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_DUMPBIN+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   if test -n "$DUMPBIN"; then
6777   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784     for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791   done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 DUMPBIN=$ac_cv_prog_DUMPBIN
6797 if test -n "$DUMPBIN"; then
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6799 $as_echo "$DUMPBIN" >&6; }
6800 else
6801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6804
6805
6806     test -n "$DUMPBIN" && break
6807   done
6808 fi
6809 if test -z "$DUMPBIN"; then
6810   ac_ct_DUMPBIN=$DUMPBIN
6811   for ac_prog in dumpbin "link -dump"
6812 do
6813   # Extract the first word of "$ac_prog", so it can be a program name with args.
6814 set dummy $ac_prog; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6818   $as_echo_n "(cached) " >&6
6819 else
6820   if test -n "$ac_ct_DUMPBIN"; then
6821   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826   IFS=$as_save_IFS
6827   test -z "$as_dir" && as_dir=.
6828     for ac_exec_ext in '' $ac_executable_extensions; do
6829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833   fi
6834 done
6835   done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6841 if test -n "$ac_ct_DUMPBIN"; then
6842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6843 $as_echo "$ac_ct_DUMPBIN" >&6; }
6844 else
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849
6850   test -n "$ac_ct_DUMPBIN" && break
6851 done
6852
6853   if test "x$ac_ct_DUMPBIN" = x; then
6854     DUMPBIN=":"
6855   else
6856     case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860 ac_tool_warned=yes ;;
6861 esac
6862     DUMPBIN=$ac_ct_DUMPBIN
6863   fi
6864 fi
6865
6866     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6867     *COFF*)
6868       DUMPBIN="$DUMPBIN -symbols"
6869       ;;
6870     *)
6871       DUMPBIN=:
6872       ;;
6873     esac
6874   fi
6875
6876   if test "$DUMPBIN" != ":"; then
6877     NM="$DUMPBIN"
6878   fi
6879 fi
6880 test -z "$NM" && NM=nm
6881
6882
6883
6884
6885
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6888 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6889 if ${lt_cv_nm_interface+:} false; then :
6890   $as_echo_n "(cached) " >&6
6891 else
6892   lt_cv_nm_interface="BSD nm"
6893   echo "int some_variable = 0;" > conftest.$ac_ext
6894   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6895   (eval "$ac_compile" 2>conftest.err)
6896   cat conftest.err >&5
6897   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6898   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6899   cat conftest.err >&5
6900   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6901   cat conftest.out >&5
6902   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6903     lt_cv_nm_interface="MS dumpbin"
6904   fi
6905   rm -f conftest*
6906 fi
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6908 $as_echo "$lt_cv_nm_interface" >&6; }
6909
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6911 $as_echo_n "checking whether ln -s works... " >&6; }
6912 LN_S=$as_ln_s
6913 if test "$LN_S" = "ln -s"; then
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6915 $as_echo "yes" >&6; }
6916 else
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6918 $as_echo "no, using $LN_S" >&6; }
6919 fi
6920
6921 # find the maximum length of command line arguments
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6923 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6924 if ${lt_cv_sys_max_cmd_len+:} false; then :
6925   $as_echo_n "(cached) " >&6
6926 else
6927     i=0
6928   teststring="ABCD"
6929
6930   case $build_os in
6931   msdosdjgpp*)
6932     # On DJGPP, this test can blow up pretty badly due to problems in libc
6933     # (any single argument exceeding 2000 bytes causes a buffer overrun
6934     # during glob expansion).  Even if it were fixed, the result of this
6935     # check would be larger than it should be.
6936     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6937     ;;
6938
6939   gnu*)
6940     # Under GNU Hurd, this test is not required because there is
6941     # no limit to the length of command line arguments.
6942     # Libtool will interpret -1 as no limit whatsoever
6943     lt_cv_sys_max_cmd_len=-1;
6944     ;;
6945
6946   cygwin* | mingw* | cegcc*)
6947     # On Win9x/ME, this test blows up -- it succeeds, but takes
6948     # about 5 minutes as the teststring grows exponentially.
6949     # Worse, since 9x/ME are not pre-emptively multitasking,
6950     # you end up with a "frozen" computer, even though with patience
6951     # the test eventually succeeds (with a max line length of 256k).
6952     # Instead, let's just punt: use the minimum linelength reported by
6953     # all of the supported platforms: 8192 (on NT/2K/XP).
6954     lt_cv_sys_max_cmd_len=8192;
6955     ;;
6956
6957   mint*)
6958     # On MiNT this can take a long time and run out of memory.
6959     lt_cv_sys_max_cmd_len=8192;
6960     ;;
6961
6962   amigaos*)
6963     # On AmigaOS with pdksh, this test takes hours, literally.
6964     # So we just punt and use a minimum line length of 8192.
6965     lt_cv_sys_max_cmd_len=8192;
6966     ;;
6967
6968   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6969     # This has been around since 386BSD, at least.  Likely further.
6970     if test -x /sbin/sysctl; then
6971       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6972     elif test -x /usr/sbin/sysctl; then
6973       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6974     else
6975       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6976     fi
6977     # And add a safety zone
6978     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6979     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6980     ;;
6981
6982   interix*)
6983     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6984     lt_cv_sys_max_cmd_len=196608
6985     ;;
6986
6987   os2*)
6988     # The test takes a long time on OS/2.
6989     lt_cv_sys_max_cmd_len=8192
6990     ;;
6991
6992   osf*)
6993     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6994     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6995     # nice to cause kernel panics so lets avoid the loop below.
6996     # First set a reasonable default.
6997     lt_cv_sys_max_cmd_len=16384
6998     #
6999     if test -x /sbin/sysconfig; then
7000       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7001         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7002       esac
7003     fi
7004     ;;
7005   sco3.2v5*)
7006     lt_cv_sys_max_cmd_len=102400
7007     ;;
7008   sysv5* | sco5v6* | sysv4.2uw2*)
7009     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7010     if test -n "$kargmax"; then
7011       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7012     else
7013       lt_cv_sys_max_cmd_len=32768
7014     fi
7015     ;;
7016   *)
7017     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7018     if test -n "$lt_cv_sys_max_cmd_len"; then
7019       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7020       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7021     else
7022       # Make teststring a little bigger before we do anything with it.
7023       # a 1K string should be a reasonable start.
7024       for i in 1 2 3 4 5 6 7 8 ; do
7025         teststring=$teststring$teststring
7026       done
7027       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7028       # If test is not a shell built-in, we'll probably end up computing a
7029       # maximum length that is only half of the actual maximum length, but
7030       # we can't tell.
7031       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7032                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7033               test $i != 17 # 1/2 MB should be enough
7034       do
7035         i=`expr $i + 1`
7036         teststring=$teststring$teststring
7037       done
7038       # Only check the string length outside the loop.
7039       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7040       teststring=
7041       # Add a significant safety factor because C++ compilers can tack on
7042       # massive amounts of additional arguments before passing them to the
7043       # linker.  It appears as though 1/2 is a usable value.
7044       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7045     fi
7046     ;;
7047   esac
7048
7049 fi
7050
7051 if test -n $lt_cv_sys_max_cmd_len ; then
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7053 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7054 else
7055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7056 $as_echo "none" >&6; }
7057 fi
7058 max_cmd_len=$lt_cv_sys_max_cmd_len
7059
7060
7061
7062
7063
7064
7065 : ${CP="cp -f"}
7066 : ${MV="mv -f"}
7067 : ${RM="rm -f"}
7068
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7070 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7071 # Try some XSI features
7072 xsi_shell=no
7073 ( _lt_dummy="a/b/c"
7074   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7075       = c,a/b,b/c, \
7076     && eval 'test $(( 1 + 1 )) -eq 2 \
7077     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7078   && xsi_shell=yes
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7080 $as_echo "$xsi_shell" >&6; }
7081
7082
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7084 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7085 lt_shell_append=no
7086 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7087     >/dev/null 2>&1 \
7088   && lt_shell_append=yes
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7090 $as_echo "$lt_shell_append" >&6; }
7091
7092
7093 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7094   lt_unset=unset
7095 else
7096   lt_unset=false
7097 fi
7098
7099
7100
7101
7102
7103 # test EBCDIC or ASCII
7104 case `echo X|tr X '\101'` in
7105  A) # ASCII based system
7106     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7107   lt_SP2NL='tr \040 \012'
7108   lt_NL2SP='tr \015\012 \040\040'
7109   ;;
7110  *) # EBCDIC based system
7111   lt_SP2NL='tr \100 \n'
7112   lt_NL2SP='tr \r\n \100\100'
7113   ;;
7114 esac
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7125 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7126 if ${lt_cv_to_host_file_cmd+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   case $host in
7130   *-*-mingw* )
7131     case $build in
7132       *-*-mingw* ) # actually msys
7133         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7134         ;;
7135       *-*-cygwin* )
7136         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7137         ;;
7138       * ) # otherwise, assume *nix
7139         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7140         ;;
7141     esac
7142     ;;
7143   *-*-cygwin* )
7144     case $build in
7145       *-*-mingw* ) # actually msys
7146         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7147         ;;
7148       *-*-cygwin* )
7149         lt_cv_to_host_file_cmd=func_convert_file_noop
7150         ;;
7151       * ) # otherwise, assume *nix
7152         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7153         ;;
7154     esac
7155     ;;
7156   * ) # unhandled hosts (and "normal" native builds)
7157     lt_cv_to_host_file_cmd=func_convert_file_noop
7158     ;;
7159 esac
7160
7161 fi
7162
7163 to_host_file_cmd=$lt_cv_to_host_file_cmd
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7165 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7166
7167
7168
7169
7170
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7172 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7173 if ${lt_cv_to_tool_file_cmd+:} false; then :
7174   $as_echo_n "(cached) " >&6
7175 else
7176   #assume ordinary cross tools, or native build.
7177 lt_cv_to_tool_file_cmd=func_convert_file_noop
7178 case $host in
7179   *-*-mingw* )
7180     case $build in
7181       *-*-mingw* ) # actually msys
7182         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7183         ;;
7184     esac
7185     ;;
7186 esac
7187
7188 fi
7189
7190 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7192 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7193
7194
7195
7196
7197
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7199 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7200 if ${lt_cv_ld_reload_flag+:} false; then :
7201   $as_echo_n "(cached) " >&6
7202 else
7203   lt_cv_ld_reload_flag='-r'
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7206 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7207 reload_flag=$lt_cv_ld_reload_flag
7208 case $reload_flag in
7209 "" | " "*) ;;
7210 *) reload_flag=" $reload_flag" ;;
7211 esac
7212 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7213 case $host_os in
7214   cygwin* | mingw* | pw32* | cegcc*)
7215     if test "$GCC" != yes; then
7216       reload_cmds=false
7217     fi
7218     ;;
7219   darwin*)
7220     if test "$GCC" = yes; then
7221       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7222     else
7223       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7224     fi
7225     ;;
7226 esac
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236 if test -n "$ac_tool_prefix"; then
7237   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7238 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if ${ac_cv_prog_OBJDUMP+:} false; then :
7242   $as_echo_n "(cached) " >&6
7243 else
7244   if test -n "$OBJDUMP"; then
7245   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   test -z "$as_dir" && as_dir=.
7252     for ac_exec_ext in '' $ac_executable_extensions; do
7253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259   done
7260 IFS=$as_save_IFS
7261
7262 fi
7263 fi
7264 OBJDUMP=$ac_cv_prog_OBJDUMP
7265 if test -n "$OBJDUMP"; then
7266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7267 $as_echo "$OBJDUMP" >&6; }
7268 else
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7271 fi
7272
7273
7274 fi
7275 if test -z "$ac_cv_prog_OBJDUMP"; then
7276   ac_ct_OBJDUMP=$OBJDUMP
7277   # Extract the first word of "objdump", so it can be a program name with args.
7278 set dummy objdump; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   if test -n "$ac_ct_OBJDUMP"; then
7285   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7289 do
7290   IFS=$as_save_IFS
7291   test -z "$as_dir" && as_dir=.
7292     for ac_exec_ext in '' $ac_executable_extensions; do
7293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7294     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296     break 2
7297   fi
7298 done
7299   done
7300 IFS=$as_save_IFS
7301
7302 fi
7303 fi
7304 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7305 if test -n "$ac_ct_OBJDUMP"; then
7306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7307 $as_echo "$ac_ct_OBJDUMP" >&6; }
7308 else
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7311 fi
7312
7313   if test "x$ac_ct_OBJDUMP" = x; then
7314     OBJDUMP="false"
7315   else
7316     case $cross_compiling:$ac_tool_warned in
7317 yes:)
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7320 ac_tool_warned=yes ;;
7321 esac
7322     OBJDUMP=$ac_ct_OBJDUMP
7323   fi
7324 else
7325   OBJDUMP="$ac_cv_prog_OBJDUMP"
7326 fi
7327
7328 test -z "$OBJDUMP" && OBJDUMP=objdump
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7339 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7340 if ${lt_cv_deplibs_check_method+:} false; then :
7341   $as_echo_n "(cached) " >&6
7342 else
7343   lt_cv_file_magic_cmd='$MAGIC_CMD'
7344 lt_cv_file_magic_test_file=
7345 lt_cv_deplibs_check_method='unknown'
7346 # Need to set the preceding variable on all platforms that support
7347 # interlibrary dependencies.
7348 # 'none' -- dependencies not supported.
7349 # `unknown' -- same as none, but documents that we really don't know.
7350 # 'pass_all' -- all dependencies passed with no checks.
7351 # 'test_compile' -- check by making test program.
7352 # 'file_magic [[regex]]' -- check by looking for files in library path
7353 # which responds to the $file_magic_cmd with a given extended regex.
7354 # If you have `file' or equivalent on your system and you're not sure
7355 # whether `pass_all' will *always* work, you probably want this one.
7356
7357 case $host_os in
7358 aix[4-9]*)
7359   lt_cv_deplibs_check_method=pass_all
7360   ;;
7361
7362 beos*)
7363   lt_cv_deplibs_check_method=pass_all
7364   ;;
7365
7366 bsdi[45]*)
7367   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7368   lt_cv_file_magic_cmd='/usr/bin/file -L'
7369   lt_cv_file_magic_test_file=/shlib/libc.so
7370   ;;
7371
7372 cygwin*)
7373   # func_win32_libid is a shell function defined in ltmain.sh
7374   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7375   lt_cv_file_magic_cmd='func_win32_libid'
7376   ;;
7377
7378 mingw* | pw32*)
7379   # Base MSYS/MinGW do not provide the 'file' command needed by
7380   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7381   # unless we find 'file', for example because we are cross-compiling.
7382   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7383   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7384     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7385     lt_cv_file_magic_cmd='func_win32_libid'
7386   else
7387     # Keep this pattern in sync with the one in func_win32_libid.
7388     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7389     lt_cv_file_magic_cmd='$OBJDUMP -f'
7390   fi
7391   ;;
7392
7393 cegcc*)
7394   # use the weaker test based on 'objdump'. See mingw*.
7395   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7396   lt_cv_file_magic_cmd='$OBJDUMP -f'
7397   ;;
7398
7399 darwin* | rhapsody*)
7400   lt_cv_deplibs_check_method=pass_all
7401   ;;
7402
7403 freebsd* | dragonfly*)
7404   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7405     case $host_cpu in
7406     i*86 )
7407       # Not sure whether the presence of OpenBSD here was a mistake.
7408       # Let's accept both of them until this is cleared up.
7409       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7410       lt_cv_file_magic_cmd=/usr/bin/file
7411       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7412       ;;
7413     esac
7414   else
7415     lt_cv_deplibs_check_method=pass_all
7416   fi
7417   ;;
7418
7419 gnu*)
7420   lt_cv_deplibs_check_method=pass_all
7421   ;;
7422
7423 haiku*)
7424   lt_cv_deplibs_check_method=pass_all
7425   ;;
7426
7427 hpux10.20* | hpux11*)
7428   lt_cv_file_magic_cmd=/usr/bin/file
7429   case $host_cpu in
7430   ia64*)
7431     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7432     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7433     ;;
7434   hppa*64*)
7435     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]'
7436     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7437     ;;
7438   *)
7439     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7440     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7441     ;;
7442   esac
7443   ;;
7444
7445 interix[3-9]*)
7446   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7447   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7448   ;;
7449
7450 irix5* | irix6* | nonstopux*)
7451   case $LD in
7452   *-32|*"-32 ") libmagic=32-bit;;
7453   *-n32|*"-n32 ") libmagic=N32;;
7454   *-64|*"-64 ") libmagic=64-bit;;
7455   *) libmagic=never-match;;
7456   esac
7457   lt_cv_deplibs_check_method=pass_all
7458   ;;
7459
7460 # This must be glibc/ELF.
7461 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7462   lt_cv_deplibs_check_method=pass_all
7463   ;;
7464
7465 netbsd*)
7466   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7467     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7468   else
7469     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7470   fi
7471   ;;
7472
7473 newos6*)
7474   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7475   lt_cv_file_magic_cmd=/usr/bin/file
7476   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7477   ;;
7478
7479 *nto* | *qnx*)
7480   lt_cv_deplibs_check_method=pass_all
7481   ;;
7482
7483 openbsd*)
7484   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7485     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7486   else
7487     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7488   fi
7489   ;;
7490
7491 osf3* | osf4* | osf5*)
7492   lt_cv_deplibs_check_method=pass_all
7493   ;;
7494
7495 rdos*)
7496   lt_cv_deplibs_check_method=pass_all
7497   ;;
7498
7499 solaris*)
7500   lt_cv_deplibs_check_method=pass_all
7501   ;;
7502
7503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7504   lt_cv_deplibs_check_method=pass_all
7505   ;;
7506
7507 sysv4 | sysv4.3*)
7508   case $host_vendor in
7509   motorola)
7510     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]'
7511     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7512     ;;
7513   ncr)
7514     lt_cv_deplibs_check_method=pass_all
7515     ;;
7516   sequent)
7517     lt_cv_file_magic_cmd='/bin/file'
7518     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7519     ;;
7520   sni)
7521     lt_cv_file_magic_cmd='/bin/file'
7522     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7523     lt_cv_file_magic_test_file=/lib/libc.so
7524     ;;
7525   siemens)
7526     lt_cv_deplibs_check_method=pass_all
7527     ;;
7528   pc)
7529     lt_cv_deplibs_check_method=pass_all
7530     ;;
7531   esac
7532   ;;
7533
7534 tpf*)
7535   lt_cv_deplibs_check_method=pass_all
7536   ;;
7537 esac
7538
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7541 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7542
7543 file_magic_glob=
7544 want_nocaseglob=no
7545 if test "$build" = "$host"; then
7546   case $host_os in
7547   mingw* | pw32*)
7548     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7549       want_nocaseglob=yes
7550     else
7551       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7552     fi
7553     ;;
7554   esac
7555 fi
7556
7557 file_magic_cmd=$lt_cv_file_magic_cmd
7558 deplibs_check_method=$lt_cv_deplibs_check_method
7559 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582 if test -n "$ac_tool_prefix"; then
7583   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7584 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_prog_DLLTOOL+:} false; then :
7588   $as_echo_n "(cached) " >&6
7589 else
7590   if test -n "$DLLTOOL"; then
7591   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598     for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605   done
7606 IFS=$as_save_IFS
7607
7608 fi
7609 fi
7610 DLLTOOL=$ac_cv_prog_DLLTOOL
7611 if test -n "$DLLTOOL"; then
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7613 $as_echo "$DLLTOOL" >&6; }
7614 else
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7617 fi
7618
7619
7620 fi
7621 if test -z "$ac_cv_prog_DLLTOOL"; then
7622   ac_ct_DLLTOOL=$DLLTOOL
7623   # Extract the first word of "dlltool", so it can be a program name with args.
7624 set dummy dlltool; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7628   $as_echo_n "(cached) " >&6
7629 else
7630   if test -n "$ac_ct_DLLTOOL"; then
7631   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636   IFS=$as_save_IFS
7637   test -z "$as_dir" && as_dir=.
7638     for ac_exec_ext in '' $ac_executable_extensions; do
7639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642     break 2
7643   fi
7644 done
7645   done
7646 IFS=$as_save_IFS
7647
7648 fi
7649 fi
7650 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7651 if test -n "$ac_ct_DLLTOOL"; then
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7653 $as_echo "$ac_ct_DLLTOOL" >&6; }
7654 else
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658
7659   if test "x$ac_ct_DLLTOOL" = x; then
7660     DLLTOOL="false"
7661   else
7662     case $cross_compiling:$ac_tool_warned in
7663 yes:)
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7666 ac_tool_warned=yes ;;
7667 esac
7668     DLLTOOL=$ac_ct_DLLTOOL
7669   fi
7670 else
7671   DLLTOOL="$ac_cv_prog_DLLTOOL"
7672 fi
7673
7674 test -z "$DLLTOOL" && DLLTOOL=dlltool
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7686 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7687 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   lt_cv_sharedlib_from_linklib_cmd='unknown'
7691
7692 case $host_os in
7693 cygwin* | mingw* | pw32* | cegcc*)
7694   # two different shell functions defined in ltmain.sh
7695   # decide which to use based on capabilities of $DLLTOOL
7696   case `$DLLTOOL --help 2>&1` in
7697   *--identify-strict*)
7698     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7699     ;;
7700   *)
7701     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7702     ;;
7703   esac
7704   ;;
7705 *)
7706   # fallback: assume linklib IS sharedlib
7707   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7708   ;;
7709 esac
7710
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7713 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7714 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7715 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7716
7717
7718
7719
7720
7721
7722
7723 if test -n "$ac_tool_prefix"; then
7724   for ac_prog in ar
7725   do
7726     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_AR+:} false; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   if test -n "$AR"; then
7734   ac_cv_prog_AR="$AR" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741     for ac_exec_ext in '' $ac_executable_extensions; do
7742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748   done
7749 IFS=$as_save_IFS
7750
7751 fi
7752 fi
7753 AR=$ac_cv_prog_AR
7754 if test -n "$AR"; then
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7756 $as_echo "$AR" >&6; }
7757 else
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762
7763     test -n "$AR" && break
7764   done
7765 fi
7766 if test -z "$AR"; then
7767   ac_ct_AR=$AR
7768   for ac_prog in ar
7769 do
7770   # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   if test -n "$ac_ct_AR"; then
7778   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785     for ac_exec_ext in '' $ac_executable_extensions; do
7786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787     ac_cv_prog_ac_ct_AR="$ac_prog"
7788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792   done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7798 if test -n "$ac_ct_AR"; then
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7800 $as_echo "$ac_ct_AR" >&6; }
7801 else
7802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806
7807   test -n "$ac_ct_AR" && break
7808 done
7809
7810   if test "x$ac_ct_AR" = x; then
7811     AR="false"
7812   else
7813     case $cross_compiling:$ac_tool_warned in
7814 yes:)
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817 ac_tool_warned=yes ;;
7818 esac
7819     AR=$ac_ct_AR
7820   fi
7821 fi
7822
7823 : ${AR=ar}
7824 : ${AR_FLAGS=cru}
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7837 $as_echo_n "checking for archiver @FILE support... " >&6; }
7838 if ${lt_cv_ar_at_file+:} false; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   lt_cv_ar_at_file=no
7842    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h.  */
7844
7845 int
7846 main ()
7847 {
7848
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854   echo conftest.$ac_objext > conftest.lst
7855       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7856       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7857   (eval $lt_ar_try) 2>&5
7858   ac_status=$?
7859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860   test $ac_status = 0; }
7861       if test "$ac_status" -eq 0; then
7862         # Ensure the archiver fails upon bogus file names.
7863         rm -f conftest.$ac_objext libconftest.a
7864         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7865   (eval $lt_ar_try) 2>&5
7866   ac_status=$?
7867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868   test $ac_status = 0; }
7869         if test "$ac_status" -ne 0; then
7870           lt_cv_ar_at_file=@
7871         fi
7872       fi
7873       rm -f conftest.* libconftest.a
7874
7875 fi
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7880 $as_echo "$lt_cv_ar_at_file" >&6; }
7881
7882 if test "x$lt_cv_ar_at_file" = xno; then
7883   archiver_list_spec=
7884 else
7885   archiver_list_spec=$lt_cv_ar_at_file
7886 fi
7887
7888
7889
7890
7891
7892
7893
7894 if test -n "$ac_tool_prefix"; then
7895   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7896 set dummy ${ac_tool_prefix}strip; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_STRIP+:} false; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   if test -n "$STRIP"; then
7903   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908   IFS=$as_save_IFS
7909   test -z "$as_dir" && as_dir=.
7910     for ac_exec_ext in '' $ac_executable_extensions; do
7911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7912     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914     break 2
7915   fi
7916 done
7917   done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 STRIP=$ac_cv_prog_STRIP
7923 if test -n "$STRIP"; then
7924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7925 $as_echo "$STRIP" >&6; }
7926 else
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931
7932 fi
7933 if test -z "$ac_cv_prog_STRIP"; then
7934   ac_ct_STRIP=$STRIP
7935   # Extract the first word of "strip", so it can be a program name with args.
7936 set dummy strip; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7940   $as_echo_n "(cached) " >&6
7941 else
7942   if test -n "$ac_ct_STRIP"; then
7943   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948   IFS=$as_save_IFS
7949   test -z "$as_dir" && as_dir=.
7950     for ac_exec_ext in '' $ac_executable_extensions; do
7951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7952     ac_cv_prog_ac_ct_STRIP="strip"
7953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954     break 2
7955   fi
7956 done
7957   done
7958 IFS=$as_save_IFS
7959
7960 fi
7961 fi
7962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7963 if test -n "$ac_ct_STRIP"; then
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7965 $as_echo "$ac_ct_STRIP" >&6; }
7966 else
7967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7969 fi
7970
7971   if test "x$ac_ct_STRIP" = x; then
7972     STRIP=":"
7973   else
7974     case $cross_compiling:$ac_tool_warned in
7975 yes:)
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7978 ac_tool_warned=yes ;;
7979 esac
7980     STRIP=$ac_ct_STRIP
7981   fi
7982 else
7983   STRIP="$ac_cv_prog_STRIP"
7984 fi
7985
7986 test -z "$STRIP" && STRIP=:
7987
7988
7989
7990
7991
7992
7993 if test -n "$ac_tool_prefix"; then
7994   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7995 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if ${ac_cv_prog_RANLIB+:} false; then :
7999   $as_echo_n "(cached) " >&6
8000 else
8001   if test -n "$RANLIB"; then
8002   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007   IFS=$as_save_IFS
8008   test -z "$as_dir" && as_dir=.
8009     for ac_exec_ext in '' $ac_executable_extensions; do
8010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013     break 2
8014   fi
8015 done
8016   done
8017 IFS=$as_save_IFS
8018
8019 fi
8020 fi
8021 RANLIB=$ac_cv_prog_RANLIB
8022 if test -n "$RANLIB"; then
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8024 $as_echo "$RANLIB" >&6; }
8025 else
8026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8028 fi
8029
8030
8031 fi
8032 if test -z "$ac_cv_prog_RANLIB"; then
8033   ac_ct_RANLIB=$RANLIB
8034   # Extract the first word of "ranlib", so it can be a program name with args.
8035 set dummy ranlib; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8039   $as_echo_n "(cached) " >&6
8040 else
8041   if test -n "$ac_ct_RANLIB"; then
8042   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8043 else
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8046 do
8047   IFS=$as_save_IFS
8048   test -z "$as_dir" && as_dir=.
8049     for ac_exec_ext in '' $ac_executable_extensions; do
8050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8051     ac_cv_prog_ac_ct_RANLIB="ranlib"
8052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053     break 2
8054   fi
8055 done
8056   done
8057 IFS=$as_save_IFS
8058
8059 fi
8060 fi
8061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8062 if test -n "$ac_ct_RANLIB"; then
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8064 $as_echo "$ac_ct_RANLIB" >&6; }
8065 else
8066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8068 fi
8069
8070   if test "x$ac_ct_RANLIB" = x; then
8071     RANLIB=":"
8072   else
8073     case $cross_compiling:$ac_tool_warned in
8074 yes:)
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8077 ac_tool_warned=yes ;;
8078 esac
8079     RANLIB=$ac_ct_RANLIB
8080   fi
8081 else
8082   RANLIB="$ac_cv_prog_RANLIB"
8083 fi
8084
8085 test -z "$RANLIB" && RANLIB=:
8086
8087
8088
8089
8090
8091
8092 # Determine commands to create old-style static archives.
8093 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8094 old_postinstall_cmds='chmod 644 $oldlib'
8095 old_postuninstall_cmds=
8096
8097 if test -n "$RANLIB"; then
8098   case $host_os in
8099   openbsd*)
8100     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8101     ;;
8102   *)
8103     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8104     ;;
8105   esac
8106   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8107 fi
8108
8109 case $host_os in
8110   darwin*)
8111     lock_old_archive_extraction=yes ;;
8112   *)
8113     lock_old_archive_extraction=no ;;
8114 esac
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136 for ac_prog in gawk mawk nawk awk
8137 do
8138   # Extract the first word of "$ac_prog", so it can be a program name with args.
8139 set dummy $ac_prog; ac_word=$2
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if ${ac_cv_prog_AWK+:} false; then :
8143   $as_echo_n "(cached) " >&6
8144 else
8145   if test -n "$AWK"; then
8146   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8147 else
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8150 do
8151   IFS=$as_save_IFS
8152   test -z "$as_dir" && as_dir=.
8153     for ac_exec_ext in '' $ac_executable_extensions; do
8154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8155     ac_cv_prog_AWK="$ac_prog"
8156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157     break 2
8158   fi
8159 done
8160   done
8161 IFS=$as_save_IFS
8162
8163 fi
8164 fi
8165 AWK=$ac_cv_prog_AWK
8166 if test -n "$AWK"; then
8167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8168 $as_echo "$AWK" >&6; }
8169 else
8170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8172 fi
8173
8174
8175   test -n "$AWK" && break
8176 done
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196 # If no C compiler was specified, use CC.
8197 LTCC=${LTCC-"$CC"}
8198
8199 # If no C compiler flags were specified, use CFLAGS.
8200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8201
8202 # Allow CC to be a program name with arguments.
8203 compiler=$CC
8204
8205
8206 # Check for command to grab the raw symbol name followed by C symbol from nm.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8208 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8209 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8210   $as_echo_n "(cached) " >&6
8211 else
8212
8213 # These are sane defaults that work on at least a few old systems.
8214 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8215
8216 # Character class describing NM global symbol codes.
8217 symcode='[BCDEGRST]'
8218
8219 # Regexp to match symbols that can be accessed directly from C.
8220 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8221
8222 # Define system-specific variables.
8223 case $host_os in
8224 aix*)
8225   symcode='[BCDT]'
8226   ;;
8227 cygwin* | mingw* | pw32* | cegcc*)
8228   symcode='[ABCDGISTW]'
8229   ;;
8230 hpux*)
8231   if test "$host_cpu" = ia64; then
8232     symcode='[ABCDEGRST]'
8233   fi
8234   ;;
8235 irix* | nonstopux*)
8236   symcode='[BCDEGRST]'
8237   ;;
8238 osf*)
8239   symcode='[BCDEGQRST]'
8240   ;;
8241 solaris*)
8242   symcode='[BDRT]'
8243   ;;
8244 sco3.2v5*)
8245   symcode='[DT]'
8246   ;;
8247 sysv4.2uw2*)
8248   symcode='[DT]'
8249   ;;
8250 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8251   symcode='[ABDT]'
8252   ;;
8253 sysv4)
8254   symcode='[DFNSTU]'
8255   ;;
8256 esac
8257
8258 # If we're using GNU nm, then use its standard symbol codes.
8259 case `$NM -V 2>&1` in
8260 *GNU* | *'with BFD'*)
8261   symcode='[ABCDGIRSTW]' ;;
8262 esac
8263
8264 # Transform an extracted symbol line into a proper C declaration.
8265 # Some systems (esp. on ia64) link data and code symbols differently,
8266 # so use this general approach.
8267 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8268
8269 # Transform an extracted symbol line into symbol name and symbol address
8270 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8271 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'"
8272
8273 # Handle CRLF in mingw tool chain
8274 opt_cr=
8275 case $build_os in
8276 mingw*)
8277   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8278   ;;
8279 esac
8280
8281 # Try without a prefix underscore, then with it.
8282 for ac_symprfx in "" "_"; do
8283
8284   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8285   symxfrm="\\1 $ac_symprfx\\2 \\2"
8286
8287   # Write the raw and C identifiers.
8288   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8289     # Fake it for dumpbin and say T for any non-static function
8290     # and D for any global variable.
8291     # Also find C++ and __fastcall symbols from MSVC++,
8292     # which start with @ or ?.
8293     lt_cv_sys_global_symbol_pipe="$AWK '"\
8294 "     {last_section=section; section=\$ 3};"\
8295 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8296 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8297 "     \$ 0!~/External *\|/{next};"\
8298 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8299 "     {if(hide[section]) next};"\
8300 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8301 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8302 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8303 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8304 "     ' prfx=^$ac_symprfx"
8305   else
8306     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8307   fi
8308   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8309
8310   # Check to see that the pipe works correctly.
8311   pipe_works=no
8312
8313   rm -f conftest*
8314   cat > conftest.$ac_ext <<_LT_EOF
8315 #ifdef __cplusplus
8316 extern "C" {
8317 #endif
8318 char nm_test_var;
8319 void nm_test_func(void);
8320 void nm_test_func(void){}
8321 #ifdef __cplusplus
8322 }
8323 #endif
8324 int main(){nm_test_var='a';nm_test_func();return(0);}
8325 _LT_EOF
8326
8327   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8328   (eval $ac_compile) 2>&5
8329   ac_status=$?
8330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8331   test $ac_status = 0; }; then
8332     # Now try to grab the symbols.
8333     nlist=conftest.nm
8334     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8335   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8336   ac_status=$?
8337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8338   test $ac_status = 0; } && test -s "$nlist"; then
8339       # Try sorting and uniquifying the output.
8340       if sort "$nlist" | uniq > "$nlist"T; then
8341         mv -f "$nlist"T "$nlist"
8342       else
8343         rm -f "$nlist"T
8344       fi
8345
8346       # Make sure that we snagged all the symbols we need.
8347       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8348         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8349           cat <<_LT_EOF > conftest.$ac_ext
8350 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8351 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8352 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8353    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8354 # define LT_DLSYM_CONST
8355 #elif defined(__osf__)
8356 /* This system does not cope well with relocations in const data.  */
8357 # define LT_DLSYM_CONST
8358 #else
8359 # define LT_DLSYM_CONST const
8360 #endif
8361
8362 #ifdef __cplusplus
8363 extern "C" {
8364 #endif
8365
8366 _LT_EOF
8367           # Now generate the symbol file.
8368           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8369
8370           cat <<_LT_EOF >> conftest.$ac_ext
8371
8372 /* The mapping between symbol names and symbols.  */
8373 LT_DLSYM_CONST struct {
8374   const char *name;
8375   void       *address;
8376 }
8377 lt__PROGRAM__LTX_preloaded_symbols[] =
8378 {
8379   { "@PROGRAM@", (void *) 0 },
8380 _LT_EOF
8381           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8382           cat <<\_LT_EOF >> conftest.$ac_ext
8383   {0, (void *) 0}
8384 };
8385
8386 /* This works around a problem in FreeBSD linker */
8387 #ifdef FREEBSD_WORKAROUND
8388 static const void *lt_preloaded_setup() {
8389   return lt__PROGRAM__LTX_preloaded_symbols;
8390 }
8391 #endif
8392
8393 #ifdef __cplusplus
8394 }
8395 #endif
8396 _LT_EOF
8397           # Now try linking the two files.
8398           mv conftest.$ac_objext conftstm.$ac_objext
8399           lt_globsym_save_LIBS=$LIBS
8400           lt_globsym_save_CFLAGS=$CFLAGS
8401           LIBS="conftstm.$ac_objext"
8402           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8403           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8404   (eval $ac_link) 2>&5
8405   ac_status=$?
8406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8407   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8408             pipe_works=yes
8409           fi
8410           LIBS=$lt_globsym_save_LIBS
8411           CFLAGS=$lt_globsym_save_CFLAGS
8412         else
8413           echo "cannot find nm_test_func in $nlist" >&5
8414         fi
8415       else
8416         echo "cannot find nm_test_var in $nlist" >&5
8417       fi
8418     else
8419       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8420     fi
8421   else
8422     echo "$progname: failed program was:" >&5
8423     cat conftest.$ac_ext >&5
8424   fi
8425   rm -rf conftest* conftst*
8426
8427   # Do not use the global_symbol_pipe unless it works.
8428   if test "$pipe_works" = yes; then
8429     break
8430   else
8431     lt_cv_sys_global_symbol_pipe=
8432   fi
8433 done
8434
8435 fi
8436
8437 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8438   lt_cv_sys_global_symbol_to_cdecl=
8439 fi
8440 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8442 $as_echo "failed" >&6; }
8443 else
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8445 $as_echo "ok" >&6; }
8446 fi
8447
8448 # Response file support.
8449 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8450   nm_file_list_spec='@'
8451 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8452   nm_file_list_spec='@'
8453 fi
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8482 $as_echo_n "checking for sysroot... " >&6; }
8483
8484 # Check whether --with-sysroot was given.
8485 if test "${with_sysroot+set}" = set; then :
8486   withval=$with_sysroot;
8487 else
8488   with_sysroot=no
8489 fi
8490
8491
8492 lt_sysroot=
8493 case ${with_sysroot} in #(
8494  yes)
8495    if test "$GCC" = yes; then
8496      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8497    fi
8498    ;; #(
8499  /*)
8500    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8501    ;; #(
8502  no|'')
8503    ;; #(
8504  *)
8505    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8506 $as_echo "${with_sysroot}" >&6; }
8507    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8508    ;;
8509 esac
8510
8511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8512 $as_echo "${lt_sysroot:-no}" >&6; }
8513
8514
8515
8516
8517
8518 # Check whether --enable-libtool-lock was given.
8519 if test "${enable_libtool_lock+set}" = set; then :
8520   enableval=$enable_libtool_lock;
8521 fi
8522
8523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8524
8525 # Some flags need to be propagated to the compiler or linker for good
8526 # libtool support.
8527 case $host in
8528 ia64-*-hpux*)
8529   # Find out which ABI we are using.
8530   echo 'int i;' > conftest.$ac_ext
8531   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8532   (eval $ac_compile) 2>&5
8533   ac_status=$?
8534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8535   test $ac_status = 0; }; then
8536     case `/usr/bin/file conftest.$ac_objext` in
8537       *ELF-32*)
8538         HPUX_IA64_MODE="32"
8539         ;;
8540       *ELF-64*)
8541         HPUX_IA64_MODE="64"
8542         ;;
8543     esac
8544   fi
8545   rm -rf conftest*
8546   ;;
8547 *-*-irix6*)
8548   # Find out which ABI we are using.
8549   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8550   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8551   (eval $ac_compile) 2>&5
8552   ac_status=$?
8553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554   test $ac_status = 0; }; then
8555     if test "$lt_cv_prog_gnu_ld" = yes; then
8556       case `/usr/bin/file conftest.$ac_objext` in
8557         *32-bit*)
8558           LD="${LD-ld} -melf32bsmip"
8559           ;;
8560         *N32*)
8561           LD="${LD-ld} -melf32bmipn32"
8562           ;;
8563         *64-bit*)
8564           LD="${LD-ld} -melf64bmip"
8565         ;;
8566       esac
8567     else
8568       case `/usr/bin/file conftest.$ac_objext` in
8569         *32-bit*)
8570           LD="${LD-ld} -32"
8571           ;;
8572         *N32*)
8573           LD="${LD-ld} -n32"
8574           ;;
8575         *64-bit*)
8576           LD="${LD-ld} -64"
8577           ;;
8578       esac
8579     fi
8580   fi
8581   rm -rf conftest*
8582   ;;
8583
8584 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8585 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8586   # Find out which ABI we are using.
8587   echo 'int i;' > conftest.$ac_ext
8588   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8589   (eval $ac_compile) 2>&5
8590   ac_status=$?
8591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8592   test $ac_status = 0; }; then
8593     case `/usr/bin/file conftest.o` in
8594       *32-bit*)
8595         case $host in
8596           x86_64-*kfreebsd*-gnu)
8597             LD="${LD-ld} -m elf_i386_fbsd"
8598             ;;
8599           x86_64-*linux*)
8600             LD="${LD-ld} -m elf_i386"
8601             ;;
8602           ppc64-*linux*|powerpc64-*linux*)
8603             LD="${LD-ld} -m elf32ppclinux"
8604             ;;
8605           s390x-*linux*)
8606             LD="${LD-ld} -m elf_s390"
8607             ;;
8608           sparc64-*linux*)
8609             LD="${LD-ld} -m elf32_sparc"
8610             ;;
8611         esac
8612         ;;
8613       *64-bit*)
8614         case $host in
8615           x86_64-*kfreebsd*-gnu)
8616             LD="${LD-ld} -m elf_x86_64_fbsd"
8617             ;;
8618           x86_64-*linux*)
8619             LD="${LD-ld} -m elf_x86_64"
8620             ;;
8621           ppc*-*linux*|powerpc*-*linux*)
8622             LD="${LD-ld} -m elf64ppc"
8623             ;;
8624           s390*-*linux*|s390*-*tpf*)
8625             LD="${LD-ld} -m elf64_s390"
8626             ;;
8627           sparc*-*linux*)
8628             LD="${LD-ld} -m elf64_sparc"
8629             ;;
8630         esac
8631         ;;
8632     esac
8633   fi
8634   rm -rf conftest*
8635   ;;
8636
8637 *-*-sco3.2v5*)
8638   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8639   SAVE_CFLAGS="$CFLAGS"
8640   CFLAGS="$CFLAGS -belf"
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8642 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8643 if ${lt_cv_cc_needs_belf+:} false; then :
8644   $as_echo_n "(cached) " >&6
8645 else
8646   ac_ext=c
8647 ac_cpp='$CPP $CPPFLAGS'
8648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8651
8652      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h.  */
8654
8655 int
8656 main ()
8657 {
8658
8659   ;
8660   return 0;
8661 }
8662 _ACEOF
8663 if ac_fn_c_try_link "$LINENO"; then :
8664   lt_cv_cc_needs_belf=yes
8665 else
8666   lt_cv_cc_needs_belf=no
8667 fi
8668 rm -f core conftest.err conftest.$ac_objext \
8669     conftest$ac_exeext conftest.$ac_ext
8670      ac_ext=c
8671 ac_cpp='$CPP $CPPFLAGS'
8672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8675
8676 fi
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8678 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8679   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8680     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8681     CFLAGS="$SAVE_CFLAGS"
8682   fi
8683   ;;
8684 *-*solaris*)
8685   # Find out which ABI we are using.
8686   echo 'int i;' > conftest.$ac_ext
8687   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8688   (eval $ac_compile) 2>&5
8689   ac_status=$?
8690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8691   test $ac_status = 0; }; then
8692     case `/usr/bin/file conftest.o` in
8693     *64-bit*)
8694       case $lt_cv_prog_gnu_ld in
8695       yes*)
8696         case $host in
8697         i?86-*-solaris*)
8698           LD="${LD-ld} -m elf_x86_64"
8699           ;;
8700         sparc*-*-solaris*)
8701           LD="${LD-ld} -m elf64_sparc"
8702           ;;
8703         esac
8704         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8705         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8706           LD="${LD-ld}_sol2"
8707         fi
8708         ;;
8709       *)
8710         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8711           LD="${LD-ld} -64"
8712         fi
8713         ;;
8714       esac
8715       ;;
8716     esac
8717   fi
8718   rm -rf conftest*
8719   ;;
8720 esac
8721
8722 need_locks="$enable_libtool_lock"
8723
8724 if test -n "$ac_tool_prefix"; then
8725   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8726 set dummy ${ac_tool_prefix}mt; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8730   $as_echo_n "(cached) " >&6
8731 else
8732   if test -n "$MANIFEST_TOOL"; then
8733   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8737 do
8738   IFS=$as_save_IFS
8739   test -z "$as_dir" && as_dir=.
8740     for ac_exec_ext in '' $ac_executable_extensions; do
8741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8742     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744     break 2
8745   fi
8746 done
8747   done
8748 IFS=$as_save_IFS
8749
8750 fi
8751 fi
8752 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8753 if test -n "$MANIFEST_TOOL"; then
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8755 $as_echo "$MANIFEST_TOOL" >&6; }
8756 else
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8759 fi
8760
8761
8762 fi
8763 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8764   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8765   # Extract the first word of "mt", so it can be a program name with args.
8766 set dummy mt; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8770   $as_echo_n "(cached) " >&6
8771 else
8772   if test -n "$ac_ct_MANIFEST_TOOL"; then
8773   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8774 else
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8777 do
8778   IFS=$as_save_IFS
8779   test -z "$as_dir" && as_dir=.
8780     for ac_exec_ext in '' $ac_executable_extensions; do
8781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8782     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784     break 2
8785   fi
8786 done
8787   done
8788 IFS=$as_save_IFS
8789
8790 fi
8791 fi
8792 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8793 if test -n "$ac_ct_MANIFEST_TOOL"; then
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8795 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8796 else
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8799 fi
8800
8801   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8802     MANIFEST_TOOL=":"
8803   else
8804     case $cross_compiling:$ac_tool_warned in
8805 yes:)
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8808 ac_tool_warned=yes ;;
8809 esac
8810     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8811   fi
8812 else
8813   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8814 fi
8815
8816 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8818 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8819 if ${lt_cv_path_mainfest_tool+:} false; then :
8820   $as_echo_n "(cached) " >&6
8821 else
8822   lt_cv_path_mainfest_tool=no
8823   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8824   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8825   cat conftest.err >&5
8826   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8827     lt_cv_path_mainfest_tool=yes
8828   fi
8829   rm -f conftest*
8830 fi
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8832 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8833 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8834   MANIFEST_TOOL=:
8835 fi
8836
8837
8838
8839
8840
8841
8842   case $host_os in
8843     rhapsody* | darwin*)
8844     if test -n "$ac_tool_prefix"; then
8845   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8846 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848 $as_echo_n "checking for $ac_word... " >&6; }
8849 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8850   $as_echo_n "(cached) " >&6
8851 else
8852   if test -n "$DSYMUTIL"; then
8853   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8854 else
8855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856 for as_dir in $PATH
8857 do
8858   IFS=$as_save_IFS
8859   test -z "$as_dir" && as_dir=.
8860     for ac_exec_ext in '' $ac_executable_extensions; do
8861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8862     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8864     break 2
8865   fi
8866 done
8867   done
8868 IFS=$as_save_IFS
8869
8870 fi
8871 fi
8872 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8873 if test -n "$DSYMUTIL"; then
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8875 $as_echo "$DSYMUTIL" >&6; }
8876 else
8877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 $as_echo "no" >&6; }
8879 fi
8880
8881
8882 fi
8883 if test -z "$ac_cv_prog_DSYMUTIL"; then
8884   ac_ct_DSYMUTIL=$DSYMUTIL
8885   # Extract the first word of "dsymutil", so it can be a program name with args.
8886 set dummy dsymutil; ac_word=$2
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888 $as_echo_n "checking for $ac_word... " >&6; }
8889 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8890   $as_echo_n "(cached) " >&6
8891 else
8892   if test -n "$ac_ct_DSYMUTIL"; then
8893   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8894 else
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 for as_dir in $PATH
8897 do
8898   IFS=$as_save_IFS
8899   test -z "$as_dir" && as_dir=.
8900     for ac_exec_ext in '' $ac_executable_extensions; do
8901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8902     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904     break 2
8905   fi
8906 done
8907   done
8908 IFS=$as_save_IFS
8909
8910 fi
8911 fi
8912 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8913 if test -n "$ac_ct_DSYMUTIL"; then
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8915 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8916 else
8917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8919 fi
8920
8921   if test "x$ac_ct_DSYMUTIL" = x; then
8922     DSYMUTIL=":"
8923   else
8924     case $cross_compiling:$ac_tool_warned in
8925 yes:)
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8928 ac_tool_warned=yes ;;
8929 esac
8930     DSYMUTIL=$ac_ct_DSYMUTIL
8931   fi
8932 else
8933   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8934 fi
8935
8936     if test -n "$ac_tool_prefix"; then
8937   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8938 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if ${ac_cv_prog_NMEDIT+:} false; then :
8942   $as_echo_n "(cached) " >&6
8943 else
8944   if test -n "$NMEDIT"; then
8945   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8946 else
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8949 do
8950   IFS=$as_save_IFS
8951   test -z "$as_dir" && as_dir=.
8952     for ac_exec_ext in '' $ac_executable_extensions; do
8953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8954     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8956     break 2
8957   fi
8958 done
8959   done
8960 IFS=$as_save_IFS
8961
8962 fi
8963 fi
8964 NMEDIT=$ac_cv_prog_NMEDIT
8965 if test -n "$NMEDIT"; then
8966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8967 $as_echo "$NMEDIT" >&6; }
8968 else
8969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8971 fi
8972
8973
8974 fi
8975 if test -z "$ac_cv_prog_NMEDIT"; then
8976   ac_ct_NMEDIT=$NMEDIT
8977   # Extract the first word of "nmedit", so it can be a program name with args.
8978 set dummy nmedit; ac_word=$2
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980 $as_echo_n "checking for $ac_word... " >&6; }
8981 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8982   $as_echo_n "(cached) " >&6
8983 else
8984   if test -n "$ac_ct_NMEDIT"; then
8985   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8986 else
8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 for as_dir in $PATH
8989 do
8990   IFS=$as_save_IFS
8991   test -z "$as_dir" && as_dir=.
8992     for ac_exec_ext in '' $ac_executable_extensions; do
8993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8994     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996     break 2
8997   fi
8998 done
8999   done
9000 IFS=$as_save_IFS
9001
9002 fi
9003 fi
9004 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9005 if test -n "$ac_ct_NMEDIT"; then
9006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9007 $as_echo "$ac_ct_NMEDIT" >&6; }
9008 else
9009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9011 fi
9012
9013   if test "x$ac_ct_NMEDIT" = x; then
9014     NMEDIT=":"
9015   else
9016     case $cross_compiling:$ac_tool_warned in
9017 yes:)
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9020 ac_tool_warned=yes ;;
9021 esac
9022     NMEDIT=$ac_ct_NMEDIT
9023   fi
9024 else
9025   NMEDIT="$ac_cv_prog_NMEDIT"
9026 fi
9027
9028     if test -n "$ac_tool_prefix"; then
9029   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9030 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032 $as_echo_n "checking for $ac_word... " >&6; }
9033 if ${ac_cv_prog_LIPO+:} false; then :
9034   $as_echo_n "(cached) " >&6
9035 else
9036   if test -n "$LIPO"; then
9037   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9038 else
9039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040 for as_dir in $PATH
9041 do
9042   IFS=$as_save_IFS
9043   test -z "$as_dir" && as_dir=.
9044     for ac_exec_ext in '' $ac_executable_extensions; do
9045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9046     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9048     break 2
9049   fi
9050 done
9051   done
9052 IFS=$as_save_IFS
9053
9054 fi
9055 fi
9056 LIPO=$ac_cv_prog_LIPO
9057 if test -n "$LIPO"; then
9058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9059 $as_echo "$LIPO" >&6; }
9060 else
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9063 fi
9064
9065
9066 fi
9067 if test -z "$ac_cv_prog_LIPO"; then
9068   ac_ct_LIPO=$LIPO
9069   # Extract the first word of "lipo", so it can be a program name with args.
9070 set dummy lipo; ac_word=$2
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9072 $as_echo_n "checking for $ac_word... " >&6; }
9073 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9074   $as_echo_n "(cached) " >&6
9075 else
9076   if test -n "$ac_ct_LIPO"; then
9077   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9078 else
9079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080 for as_dir in $PATH
9081 do
9082   IFS=$as_save_IFS
9083   test -z "$as_dir" && as_dir=.
9084     for ac_exec_ext in '' $ac_executable_extensions; do
9085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9086     ac_cv_prog_ac_ct_LIPO="lipo"
9087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9088     break 2
9089   fi
9090 done
9091   done
9092 IFS=$as_save_IFS
9093
9094 fi
9095 fi
9096 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9097 if test -n "$ac_ct_LIPO"; then
9098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9099 $as_echo "$ac_ct_LIPO" >&6; }
9100 else
9101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9103 fi
9104
9105   if test "x$ac_ct_LIPO" = x; then
9106     LIPO=":"
9107   else
9108     case $cross_compiling:$ac_tool_warned in
9109 yes:)
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9112 ac_tool_warned=yes ;;
9113 esac
9114     LIPO=$ac_ct_LIPO
9115   fi
9116 else
9117   LIPO="$ac_cv_prog_LIPO"
9118 fi
9119
9120     if test -n "$ac_tool_prefix"; then
9121   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9122 set dummy ${ac_tool_prefix}otool; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if ${ac_cv_prog_OTOOL+:} false; then :
9126   $as_echo_n "(cached) " >&6
9127 else
9128   if test -n "$OTOOL"; then
9129   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9130 else
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 for as_dir in $PATH
9133 do
9134   IFS=$as_save_IFS
9135   test -z "$as_dir" && as_dir=.
9136     for ac_exec_ext in '' $ac_executable_extensions; do
9137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9138     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140     break 2
9141   fi
9142 done
9143   done
9144 IFS=$as_save_IFS
9145
9146 fi
9147 fi
9148 OTOOL=$ac_cv_prog_OTOOL
9149 if test -n "$OTOOL"; then
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9151 $as_echo "$OTOOL" >&6; }
9152 else
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155 fi
9156
9157
9158 fi
9159 if test -z "$ac_cv_prog_OTOOL"; then
9160   ac_ct_OTOOL=$OTOOL
9161   # Extract the first word of "otool", so it can be a program name with args.
9162 set dummy otool; ac_word=$2
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164 $as_echo_n "checking for $ac_word... " >&6; }
9165 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9166   $as_echo_n "(cached) " >&6
9167 else
9168   if test -n "$ac_ct_OTOOL"; then
9169   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9170 else
9171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9172 for as_dir in $PATH
9173 do
9174   IFS=$as_save_IFS
9175   test -z "$as_dir" && as_dir=.
9176     for ac_exec_ext in '' $ac_executable_extensions; do
9177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9178     ac_cv_prog_ac_ct_OTOOL="otool"
9179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9180     break 2
9181   fi
9182 done
9183   done
9184 IFS=$as_save_IFS
9185
9186 fi
9187 fi
9188 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9189 if test -n "$ac_ct_OTOOL"; then
9190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9191 $as_echo "$ac_ct_OTOOL" >&6; }
9192 else
9193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 $as_echo "no" >&6; }
9195 fi
9196
9197   if test "x$ac_ct_OTOOL" = x; then
9198     OTOOL=":"
9199   else
9200     case $cross_compiling:$ac_tool_warned in
9201 yes:)
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9204 ac_tool_warned=yes ;;
9205 esac
9206     OTOOL=$ac_ct_OTOOL
9207   fi
9208 else
9209   OTOOL="$ac_cv_prog_OTOOL"
9210 fi
9211
9212     if test -n "$ac_tool_prefix"; then
9213   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9214 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if ${ac_cv_prog_OTOOL64+:} false; then :
9218   $as_echo_n "(cached) " >&6
9219 else
9220   if test -n "$OTOOL64"; then
9221   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9222 else
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224 for as_dir in $PATH
9225 do
9226   IFS=$as_save_IFS
9227   test -z "$as_dir" && as_dir=.
9228     for ac_exec_ext in '' $ac_executable_extensions; do
9229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9230     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9232     break 2
9233   fi
9234 done
9235   done
9236 IFS=$as_save_IFS
9237
9238 fi
9239 fi
9240 OTOOL64=$ac_cv_prog_OTOOL64
9241 if test -n "$OTOOL64"; then
9242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9243 $as_echo "$OTOOL64" >&6; }
9244 else
9245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9247 fi
9248
9249
9250 fi
9251 if test -z "$ac_cv_prog_OTOOL64"; then
9252   ac_ct_OTOOL64=$OTOOL64
9253   # Extract the first word of "otool64", so it can be a program name with args.
9254 set dummy otool64; ac_word=$2
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256 $as_echo_n "checking for $ac_word... " >&6; }
9257 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9258   $as_echo_n "(cached) " >&6
9259 else
9260   if test -n "$ac_ct_OTOOL64"; then
9261   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9262 else
9263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264 for as_dir in $PATH
9265 do
9266   IFS=$as_save_IFS
9267   test -z "$as_dir" && as_dir=.
9268     for ac_exec_ext in '' $ac_executable_extensions; do
9269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9270     ac_cv_prog_ac_ct_OTOOL64="otool64"
9271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9272     break 2
9273   fi
9274 done
9275   done
9276 IFS=$as_save_IFS
9277
9278 fi
9279 fi
9280 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9281 if test -n "$ac_ct_OTOOL64"; then
9282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9283 $as_echo "$ac_ct_OTOOL64" >&6; }
9284 else
9285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 $as_echo "no" >&6; }
9287 fi
9288
9289   if test "x$ac_ct_OTOOL64" = x; then
9290     OTOOL64=":"
9291   else
9292     case $cross_compiling:$ac_tool_warned in
9293 yes:)
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9296 ac_tool_warned=yes ;;
9297 esac
9298     OTOOL64=$ac_ct_OTOOL64
9299   fi
9300 else
9301   OTOOL64="$ac_cv_prog_OTOOL64"
9302 fi
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9331 $as_echo_n "checking for -single_module linker flag... " >&6; }
9332 if ${lt_cv_apple_cc_single_mod+:} false; then :
9333   $as_echo_n "(cached) " >&6
9334 else
9335   lt_cv_apple_cc_single_mod=no
9336       if test -z "${LT_MULTI_MODULE}"; then
9337         # By default we will add the -single_module flag. You can override
9338         # by either setting the environment variable LT_MULTI_MODULE
9339         # non-empty at configure time, or by adding -multi_module to the
9340         # link flags.
9341         rm -rf libconftest.dylib*
9342         echo "int foo(void){return 1;}" > conftest.c
9343         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9344 -dynamiclib -Wl,-single_module conftest.c" >&5
9345         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9346           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9347         _lt_result=$?
9348         # If there is a non-empty error log, and "single_module"
9349         # appears in it, assume the flag caused a linker warning
9350         if test -s conftest.err && $GREP single_module conftest.err; then
9351           cat conftest.err >&5
9352         # Otherwise, if the output was created with a 0 exit code from
9353         # the compiler, it worked.
9354         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9355           lt_cv_apple_cc_single_mod=yes
9356         else
9357           cat conftest.err >&5
9358         fi
9359         rm -rf libconftest.dylib*
9360         rm -f conftest.*
9361       fi
9362 fi
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9364 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9365
9366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9367 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9368 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9369   $as_echo_n "(cached) " >&6
9370 else
9371   lt_cv_ld_exported_symbols_list=no
9372       save_LDFLAGS=$LDFLAGS
9373       echo "_main" > conftest.sym
9374       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9375       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h.  */
9377
9378 int
9379 main ()
9380 {
9381
9382   ;
9383   return 0;
9384 }
9385 _ACEOF
9386 if ac_fn_c_try_link "$LINENO"; then :
9387   lt_cv_ld_exported_symbols_list=yes
9388 else
9389   lt_cv_ld_exported_symbols_list=no
9390 fi
9391 rm -f core conftest.err conftest.$ac_objext \
9392     conftest$ac_exeext conftest.$ac_ext
9393         LDFLAGS="$save_LDFLAGS"
9394
9395 fi
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9397 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9398
9399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9400 $as_echo_n "checking for -force_load linker flag... " >&6; }
9401 if ${lt_cv_ld_force_load+:} false; then :
9402   $as_echo_n "(cached) " >&6
9403 else
9404   lt_cv_ld_force_load=no
9405       cat > conftest.c << _LT_EOF
9406 int forced_loaded() { return 2;}
9407 _LT_EOF
9408       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9409       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9410       echo "$AR cru libconftest.a conftest.o" >&5
9411       $AR cru libconftest.a conftest.o 2>&5
9412       echo "$RANLIB libconftest.a" >&5
9413       $RANLIB libconftest.a 2>&5
9414       cat > conftest.c << _LT_EOF
9415 int main() { return 0;}
9416 _LT_EOF
9417       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9418       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9419       _lt_result=$?
9420       if test -s conftest.err && $GREP force_load conftest.err; then
9421         cat conftest.err >&5
9422       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9423         lt_cv_ld_force_load=yes
9424       else
9425         cat conftest.err >&5
9426       fi
9427         rm -f conftest.err libconftest.a conftest conftest.c
9428         rm -rf conftest.dSYM
9429
9430 fi
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9432 $as_echo "$lt_cv_ld_force_load" >&6; }
9433     case $host_os in
9434     rhapsody* | darwin1.[012])
9435       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9436     darwin1.*)
9437       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9438     darwin*) # darwin 5.x on
9439       # if running on 10.5 or later, the deployment target defaults
9440       # to the OS version, if on x86, and 10.4, the deployment
9441       # target defaults to 10.4. Don't you love it?
9442       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9443         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9444           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9445         10.[012]*)
9446           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9447         10.*)
9448           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9449       esac
9450     ;;
9451   esac
9452     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9453       _lt_dar_single_mod='$single_module'
9454     fi
9455     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9456       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9457     else
9458       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9459     fi
9460     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9461       _lt_dsymutil='~$DSYMUTIL $lib || :'
9462     else
9463       _lt_dsymutil=
9464     fi
9465     ;;
9466   esac
9467
9468
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9470 $as_echo_n "checking for ANSI C header files... " >&6; }
9471 if ${ac_cv_header_stdc+:} false; then :
9472   $as_echo_n "(cached) " >&6
9473 else
9474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h.  */
9476 #include <stdlib.h>
9477 #include <stdarg.h>
9478 #include <string.h>
9479 #include <float.h>
9480
9481 int
9482 main ()
9483 {
9484
9485   ;
9486   return 0;
9487 }
9488 _ACEOF
9489 if ac_fn_c_try_compile "$LINENO"; then :
9490   ac_cv_header_stdc=yes
9491 else
9492   ac_cv_header_stdc=no
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9495
9496 if test $ac_cv_header_stdc = yes; then
9497   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h.  */
9500 #include <string.h>
9501
9502 _ACEOF
9503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9504   $EGREP "memchr" >/dev/null 2>&1; then :
9505
9506 else
9507   ac_cv_header_stdc=no
9508 fi
9509 rm -f conftest*
9510
9511 fi
9512
9513 if test $ac_cv_header_stdc = yes; then
9514   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h.  */
9517 #include <stdlib.h>
9518
9519 _ACEOF
9520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9521   $EGREP "free" >/dev/null 2>&1; then :
9522
9523 else
9524   ac_cv_header_stdc=no
9525 fi
9526 rm -f conftest*
9527
9528 fi
9529
9530 if test $ac_cv_header_stdc = yes; then
9531   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9532   if test "$cross_compiling" = yes; then :
9533   :
9534 else
9535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h.  */
9537 #include <ctype.h>
9538 #include <stdlib.h>
9539 #if ((' ' & 0x0FF) == 0x020)
9540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9542 #else
9543 # define ISLOWER(c) \
9544                    (('a' <= (c) && (c) <= 'i') \
9545                      || ('j' <= (c) && (c) <= 'r') \
9546                      || ('s' <= (c) && (c) <= 'z'))
9547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9548 #endif
9549
9550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9551 int
9552 main ()
9553 {
9554   int i;
9555   for (i = 0; i < 256; i++)
9556     if (XOR (islower (i), ISLOWER (i))
9557         || toupper (i) != TOUPPER (i))
9558       return 2;
9559   return 0;
9560 }
9561 _ACEOF
9562 if ac_fn_c_try_run "$LINENO"; then :
9563
9564 else
9565   ac_cv_header_stdc=no
9566 fi
9567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9568   conftest.$ac_objext conftest.beam conftest.$ac_ext
9569 fi
9570
9571 fi
9572 fi
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9574 $as_echo "$ac_cv_header_stdc" >&6; }
9575 if test $ac_cv_header_stdc = yes; then
9576
9577 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9578
9579 fi
9580
9581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9582 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9583                   inttypes.h stdint.h unistd.h
9584 do :
9585   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9586 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9587 "
9588 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9589   cat >>confdefs.h <<_ACEOF
9590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9591 _ACEOF
9592
9593 fi
9594
9595 done
9596
9597
9598 for ac_header in dlfcn.h
9599 do :
9600   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9601 "
9602 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9603   cat >>confdefs.h <<_ACEOF
9604 #define HAVE_DLFCN_H 1
9605 _ACEOF
9606
9607 fi
9608
9609 done
9610
9611
9612
9613
9614
9615 # Set options
9616 enable_dlopen=yes
9617
9618
9619
9620
9621   enable_win32_dll=no
9622
9623
9624             # Check whether --enable-shared was given.
9625 if test "${enable_shared+set}" = set; then :
9626   enableval=$enable_shared; p=${PACKAGE-default}
9627     case $enableval in
9628     yes) enable_shared=yes ;;
9629     no) enable_shared=no ;;
9630     *)
9631       enable_shared=no
9632       # Look at the argument we got.  We use all the common list separators.
9633       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9634       for pkg in $enableval; do
9635         IFS="$lt_save_ifs"
9636         if test "X$pkg" = "X$p"; then
9637           enable_shared=yes
9638         fi
9639       done
9640       IFS="$lt_save_ifs"
9641       ;;
9642     esac
9643 else
9644   enable_shared=yes
9645 fi
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655   # Check whether --enable-static was given.
9656 if test "${enable_static+set}" = set; then :
9657   enableval=$enable_static; p=${PACKAGE-default}
9658     case $enableval in
9659     yes) enable_static=yes ;;
9660     no) enable_static=no ;;
9661     *)
9662      enable_static=no
9663       # Look at the argument we got.  We use all the common list separators.
9664       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9665       for pkg in $enableval; do
9666         IFS="$lt_save_ifs"
9667         if test "X$pkg" = "X$p"; then
9668           enable_static=yes
9669         fi
9670       done
9671       IFS="$lt_save_ifs"
9672       ;;
9673     esac
9674 else
9675   enable_static=yes
9676 fi
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687 # Check whether --with-pic was given.
9688 if test "${with_pic+set}" = set; then :
9689   withval=$with_pic; lt_p=${PACKAGE-default}
9690     case $withval in
9691     yes|no) pic_mode=$withval ;;
9692     *)
9693       pic_mode=default
9694       # Look at the argument we got.  We use all the common list separators.
9695       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9696       for lt_pkg in $withval; do
9697         IFS="$lt_save_ifs"
9698         if test "X$lt_pkg" = "X$lt_p"; then
9699           pic_mode=yes
9700         fi
9701       done
9702       IFS="$lt_save_ifs"
9703       ;;
9704     esac
9705 else
9706   pic_mode=default
9707 fi
9708
9709
9710 test -z "$pic_mode" && pic_mode=default
9711
9712
9713
9714
9715
9716
9717
9718   # Check whether --enable-fast-install was given.
9719 if test "${enable_fast_install+set}" = set; then :
9720   enableval=$enable_fast_install; p=${PACKAGE-default}
9721     case $enableval in
9722     yes) enable_fast_install=yes ;;
9723     no) enable_fast_install=no ;;
9724     *)
9725       enable_fast_install=no
9726       # Look at the argument we got.  We use all the common list separators.
9727       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9728       for pkg in $enableval; do
9729         IFS="$lt_save_ifs"
9730         if test "X$pkg" = "X$p"; then
9731           enable_fast_install=yes
9732         fi
9733       done
9734       IFS="$lt_save_ifs"
9735       ;;
9736     esac
9737 else
9738   enable_fast_install=yes
9739 fi
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751 # This can be used to rebuild libtool when needed
9752 LIBTOOL_DEPS="$ltmain"
9753
9754 # Always use our own libtool.
9755 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786 test -z "$LN_S" && LN_S="ln -s"
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801 if test -n "${ZSH_VERSION+set}" ; then
9802    setopt NO_GLOB_SUBST
9803 fi
9804
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9806 $as_echo_n "checking for objdir... " >&6; }
9807 if ${lt_cv_objdir+:} false; then :
9808   $as_echo_n "(cached) " >&6
9809 else
9810   rm -f .libs 2>/dev/null
9811 mkdir .libs 2>/dev/null
9812 if test -d .libs; then
9813   lt_cv_objdir=.libs
9814 else
9815   # MS-DOS does not allow filenames that begin with a dot.
9816   lt_cv_objdir=_libs
9817 fi
9818 rmdir .libs 2>/dev/null
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9821 $as_echo "$lt_cv_objdir" >&6; }
9822 objdir=$lt_cv_objdir
9823
9824
9825
9826
9827
9828 cat >>confdefs.h <<_ACEOF
9829 #define LT_OBJDIR "$lt_cv_objdir/"
9830 _ACEOF
9831
9832
9833
9834
9835 case $host_os in
9836 aix3*)
9837   # AIX sometimes has problems with the GCC collect2 program.  For some
9838   # reason, if we set the COLLECT_NAMES environment variable, the problems
9839   # vanish in a puff of smoke.
9840   if test "X${COLLECT_NAMES+set}" != Xset; then
9841     COLLECT_NAMES=
9842     export COLLECT_NAMES
9843   fi
9844   ;;
9845 esac
9846
9847 # Global variables:
9848 ofile=libtool
9849 can_build_shared=yes
9850
9851 # All known linkers require a `.a' archive for static linking (except MSVC,
9852 # which needs '.lib').
9853 libext=a
9854
9855 with_gnu_ld="$lt_cv_prog_gnu_ld"
9856
9857 old_CC="$CC"
9858 old_CFLAGS="$CFLAGS"
9859
9860 # Set sane defaults for various variables
9861 test -z "$CC" && CC=cc
9862 test -z "$LTCC" && LTCC=$CC
9863 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9864 test -z "$LD" && LD=ld
9865 test -z "$ac_objext" && ac_objext=o
9866
9867 for cc_temp in $compiler""; do
9868   case $cc_temp in
9869     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9870     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9871     \-*) ;;
9872     *) break;;
9873   esac
9874 done
9875 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9876
9877
9878 # Only perform the check for file, if the check method requires it
9879 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9880 case $deplibs_check_method in
9881 file_magic*)
9882   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9884 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9885 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9886   $as_echo_n "(cached) " >&6
9887 else
9888   case $MAGIC_CMD in
9889 [\\/*] |  ?:[\\/]*)
9890   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9891   ;;
9892 *)
9893   lt_save_MAGIC_CMD="$MAGIC_CMD"
9894   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9895   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9896   for ac_dir in $ac_dummy; do
9897     IFS="$lt_save_ifs"
9898     test -z "$ac_dir" && ac_dir=.
9899     if test -f $ac_dir/${ac_tool_prefix}file; then
9900       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9901       if test -n "$file_magic_test_file"; then
9902         case $deplibs_check_method in
9903         "file_magic "*)
9904           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9905           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9906           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9907             $EGREP "$file_magic_regex" > /dev/null; then
9908             :
9909           else
9910             cat <<_LT_EOF 1>&2
9911
9912 *** Warning: the command libtool uses to detect shared libraries,
9913 *** $file_magic_cmd, produces output that libtool cannot recognize.
9914 *** The result is that libtool may fail to recognize shared libraries
9915 *** as such.  This will affect the creation of libtool libraries that
9916 *** depend on shared libraries, but programs linked with such libtool
9917 *** libraries will work regardless of this problem.  Nevertheless, you
9918 *** may want to report the problem to your system manager and/or to
9919 *** bug-libtool@gnu.org
9920
9921 _LT_EOF
9922           fi ;;
9923         esac
9924       fi
9925       break
9926     fi
9927   done
9928   IFS="$lt_save_ifs"
9929   MAGIC_CMD="$lt_save_MAGIC_CMD"
9930   ;;
9931 esac
9932 fi
9933
9934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9935 if test -n "$MAGIC_CMD"; then
9936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9937 $as_echo "$MAGIC_CMD" >&6; }
9938 else
9939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9941 fi
9942
9943
9944
9945
9946
9947 if test -z "$lt_cv_path_MAGIC_CMD"; then
9948   if test -n "$ac_tool_prefix"; then
9949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9950 $as_echo_n "checking for file... " >&6; }
9951 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9952   $as_echo_n "(cached) " >&6
9953 else
9954   case $MAGIC_CMD in
9955 [\\/*] |  ?:[\\/]*)
9956   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9957   ;;
9958 *)
9959   lt_save_MAGIC_CMD="$MAGIC_CMD"
9960   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9961   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9962   for ac_dir in $ac_dummy; do
9963     IFS="$lt_save_ifs"
9964     test -z "$ac_dir" && ac_dir=.
9965     if test -f $ac_dir/file; then
9966       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9967       if test -n "$file_magic_test_file"; then
9968         case $deplibs_check_method in
9969         "file_magic "*)
9970           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9971           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9972           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9973             $EGREP "$file_magic_regex" > /dev/null; then
9974             :
9975           else
9976             cat <<_LT_EOF 1>&2
9977
9978 *** Warning: the command libtool uses to detect shared libraries,
9979 *** $file_magic_cmd, produces output that libtool cannot recognize.
9980 *** The result is that libtool may fail to recognize shared libraries
9981 *** as such.  This will affect the creation of libtool libraries that
9982 *** depend on shared libraries, but programs linked with such libtool
9983 *** libraries will work regardless of this problem.  Nevertheless, you
9984 *** may want to report the problem to your system manager and/or to
9985 *** bug-libtool@gnu.org
9986
9987 _LT_EOF
9988           fi ;;
9989         esac
9990       fi
9991       break
9992     fi
9993   done
9994   IFS="$lt_save_ifs"
9995   MAGIC_CMD="$lt_save_MAGIC_CMD"
9996   ;;
9997 esac
9998 fi
9999
10000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10001 if test -n "$MAGIC_CMD"; then
10002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10003 $as_echo "$MAGIC_CMD" >&6; }
10004 else
10005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006 $as_echo "no" >&6; }
10007 fi
10008
10009
10010   else
10011     MAGIC_CMD=:
10012   fi
10013 fi
10014
10015   fi
10016   ;;
10017 esac
10018
10019 # Use C for the default configuration in the libtool script
10020
10021 lt_save_CC="$CC"
10022 ac_ext=c
10023 ac_cpp='$CPP $CPPFLAGS'
10024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10027
10028
10029 # Source file extension for C test sources.
10030 ac_ext=c
10031
10032 # Object file extension for compiled C test sources.
10033 objext=o
10034 objext=$objext
10035
10036 # Code to be used in simple compile tests
10037 lt_simple_compile_test_code="int some_variable = 0;"
10038
10039 # Code to be used in simple link tests
10040 lt_simple_link_test_code='int main(){return(0);}'
10041
10042
10043
10044
10045
10046
10047
10048 # If no C compiler was specified, use CC.
10049 LTCC=${LTCC-"$CC"}
10050
10051 # If no C compiler flags were specified, use CFLAGS.
10052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10053
10054 # Allow CC to be a program name with arguments.
10055 compiler=$CC
10056
10057 # Save the default compiler, since it gets overwritten when the other
10058 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10059 compiler_DEFAULT=$CC
10060
10061 # save warnings/boilerplate of simple test code
10062 ac_outfile=conftest.$ac_objext
10063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10065 _lt_compiler_boilerplate=`cat conftest.err`
10066 $RM conftest*
10067
10068 ac_outfile=conftest.$ac_objext
10069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10071 _lt_linker_boilerplate=`cat conftest.err`
10072 $RM -r conftest*
10073
10074
10075 ## CAVEAT EMPTOR:
10076 ## There is no encapsulation within the following macros, do not change
10077 ## the running order or otherwise move them around unless you know exactly
10078 ## what you are doing...
10079 if test -n "$compiler"; then
10080
10081 lt_prog_compiler_no_builtin_flag=
10082
10083 if test "$GCC" = yes; then
10084   case $cc_basename in
10085   nvcc*)
10086     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10087   *)
10088     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10089   esac
10090
10091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10092 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10093 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10094   $as_echo_n "(cached) " >&6
10095 else
10096   lt_cv_prog_compiler_rtti_exceptions=no
10097    ac_outfile=conftest.$ac_objext
10098    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10099    lt_compiler_flag="-fno-rtti -fno-exceptions"
10100    # Insert the option either (1) after the last *FLAGS variable, or
10101    # (2) before a word containing "conftest.", or (3) at the end.
10102    # Note that $ac_compile itself does not contain backslashes and begins
10103    # with a dollar sign (not a hyphen), so the echo should work correctly.
10104    # The option is referenced via a variable to avoid confusing sed.
10105    lt_compile=`echo "$ac_compile" | $SED \
10106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10108    -e 's:$: $lt_compiler_flag:'`
10109    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10110    (eval "$lt_compile" 2>conftest.err)
10111    ac_status=$?
10112    cat conftest.err >&5
10113    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114    if (exit $ac_status) && test -s "$ac_outfile"; then
10115      # The compiler can only warn and ignore the option if not recognized
10116      # So say no if there are warnings other than the usual output.
10117      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10118      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10119      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10120        lt_cv_prog_compiler_rtti_exceptions=yes
10121      fi
10122    fi
10123    $RM conftest*
10124
10125 fi
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10127 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10128
10129 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10130     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10131 else
10132     :
10133 fi
10134
10135 fi
10136
10137
10138
10139
10140
10141
10142   lt_prog_compiler_wl=
10143 lt_prog_compiler_pic=
10144 lt_prog_compiler_static=
10145
10146
10147   if test "$GCC" = yes; then
10148     lt_prog_compiler_wl='-Wl,'
10149     lt_prog_compiler_static='-static'
10150
10151     case $host_os in
10152       aix*)
10153       # All AIX code is PIC.
10154       if test "$host_cpu" = ia64; then
10155         # AIX 5 now supports IA64 processor
10156         lt_prog_compiler_static='-Bstatic'
10157       fi
10158       ;;
10159
10160     amigaos*)
10161       case $host_cpu in
10162       powerpc)
10163             # see comment about AmigaOS4 .so support
10164             lt_prog_compiler_pic='-fPIC'
10165         ;;
10166       m68k)
10167             # FIXME: we need at least 68020 code to build shared libraries, but
10168             # adding the `-m68020' flag to GCC prevents building anything better,
10169             # like `-m68040'.
10170             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10171         ;;
10172       esac
10173       ;;
10174
10175     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10176       # PIC is the default for these OSes.
10177       ;;
10178
10179     mingw* | cygwin* | pw32* | os2* | cegcc*)
10180       # This hack is so that the source file can tell whether it is being
10181       # built for inclusion in a dll (and should export symbols for example).
10182       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10183       # (--disable-auto-import) libraries
10184       lt_prog_compiler_pic='-DDLL_EXPORT'
10185       ;;
10186
10187     darwin* | rhapsody*)
10188       # PIC is the default on this platform
10189       # Common symbols not allowed in MH_DYLIB files
10190       lt_prog_compiler_pic='-fno-common'
10191       ;;
10192
10193     haiku*)
10194       # PIC is the default for Haiku.
10195       # The "-static" flag exists, but is broken.
10196       lt_prog_compiler_static=
10197       ;;
10198
10199     hpux*)
10200       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10201       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10202       # sets the default TLS model and affects inlining.
10203       case $host_cpu in
10204       hppa*64*)
10205         # +Z the default
10206         ;;
10207       *)
10208         lt_prog_compiler_pic='-fPIC'
10209         ;;
10210       esac
10211       ;;
10212
10213     interix[3-9]*)
10214       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10215       # Instead, we relocate shared libraries at runtime.
10216       ;;
10217
10218     msdosdjgpp*)
10219       # Just because we use GCC doesn't mean we suddenly get shared libraries
10220       # on systems that don't support them.
10221       lt_prog_compiler_can_build_shared=no
10222       enable_shared=no
10223       ;;
10224
10225     *nto* | *qnx*)
10226       # QNX uses GNU C++, but need to define -shared option too, otherwise
10227       # it will coredump.
10228       lt_prog_compiler_pic='-fPIC -shared'
10229       ;;
10230
10231     sysv4*MP*)
10232       if test -d /usr/nec; then
10233         lt_prog_compiler_pic=-Kconform_pic
10234       fi
10235       ;;
10236
10237     *)
10238       lt_prog_compiler_pic='-fPIC'
10239       ;;
10240     esac
10241
10242     case $cc_basename in
10243     nvcc*) # Cuda Compiler Driver 2.2
10244       lt_prog_compiler_wl='-Xlinker '
10245       if test -n "$lt_prog_compiler_pic"; then
10246         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10247       fi
10248       ;;
10249     esac
10250   else
10251     # PORTME Check for flag to pass linker flags through the system compiler.
10252     case $host_os in
10253     aix*)
10254       lt_prog_compiler_wl='-Wl,'
10255       if test "$host_cpu" = ia64; then
10256         # AIX 5 now supports IA64 processor
10257         lt_prog_compiler_static='-Bstatic'
10258       else
10259         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10260       fi
10261       ;;
10262
10263     mingw* | cygwin* | pw32* | os2* | cegcc*)
10264       # This hack is so that the source file can tell whether it is being
10265       # built for inclusion in a dll (and should export symbols for example).
10266       lt_prog_compiler_pic='-DDLL_EXPORT'
10267       ;;
10268
10269     hpux9* | hpux10* | hpux11*)
10270       lt_prog_compiler_wl='-Wl,'
10271       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10272       # not for PA HP-UX.
10273       case $host_cpu in
10274       hppa*64*|ia64*)
10275         # +Z the default
10276         ;;
10277       *)
10278         lt_prog_compiler_pic='+Z'
10279         ;;
10280       esac
10281       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10282       lt_prog_compiler_static='${wl}-a ${wl}archive'
10283       ;;
10284
10285     irix5* | irix6* | nonstopux*)
10286       lt_prog_compiler_wl='-Wl,'
10287       # PIC (with -KPIC) is the default.
10288       lt_prog_compiler_static='-non_shared'
10289       ;;
10290
10291     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10292       case $cc_basename in
10293       # old Intel for x86_64 which still supported -KPIC.
10294       ecc*)
10295         lt_prog_compiler_wl='-Wl,'
10296         lt_prog_compiler_pic='-KPIC'
10297         lt_prog_compiler_static='-static'
10298         ;;
10299       # icc used to be incompatible with GCC.
10300       # ICC 10 doesn't accept -KPIC any more.
10301       icc* | ifort*)
10302         lt_prog_compiler_wl='-Wl,'
10303         lt_prog_compiler_pic='-fPIC'
10304         lt_prog_compiler_static='-static'
10305         ;;
10306       # Lahey Fortran 8.1.
10307       lf95*)
10308         lt_prog_compiler_wl='-Wl,'
10309         lt_prog_compiler_pic='--shared'
10310         lt_prog_compiler_static='--static'
10311         ;;
10312       nagfor*)
10313         # NAG Fortran compiler
10314         lt_prog_compiler_wl='-Wl,-Wl,,'
10315         lt_prog_compiler_pic='-PIC'
10316         lt_prog_compiler_static='-Bstatic'
10317         ;;
10318       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10319         # Portland Group compilers (*not* the Pentium gcc compiler,
10320         # which looks to be a dead project)
10321         lt_prog_compiler_wl='-Wl,'
10322         lt_prog_compiler_pic='-fpic'
10323         lt_prog_compiler_static='-Bstatic'
10324         ;;
10325       ccc*)
10326         lt_prog_compiler_wl='-Wl,'
10327         # All Alpha code is PIC.
10328         lt_prog_compiler_static='-non_shared'
10329         ;;
10330       xl* | bgxl* | bgf* | mpixl*)
10331         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10332         lt_prog_compiler_wl='-Wl,'
10333         lt_prog_compiler_pic='-qpic'
10334         lt_prog_compiler_static='-qstaticlink'
10335         ;;
10336       *)
10337         case `$CC -V 2>&1 | sed 5q` in
10338         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10339           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10340           lt_prog_compiler_pic='-KPIC'
10341           lt_prog_compiler_static='-Bstatic'
10342           lt_prog_compiler_wl=''
10343           ;;
10344         *Sun\ F* | *Sun*Fortran*)
10345           lt_prog_compiler_pic='-KPIC'
10346           lt_prog_compiler_static='-Bstatic'
10347           lt_prog_compiler_wl='-Qoption ld '
10348           ;;
10349         *Sun\ C*)
10350           # Sun C 5.9
10351           lt_prog_compiler_pic='-KPIC'
10352           lt_prog_compiler_static='-Bstatic'
10353           lt_prog_compiler_wl='-Wl,'
10354           ;;
10355         *Intel*\ [CF]*Compiler*)
10356           lt_prog_compiler_wl='-Wl,'
10357           lt_prog_compiler_pic='-fPIC'
10358           lt_prog_compiler_static='-static'
10359           ;;
10360         *Portland\ Group*)
10361           lt_prog_compiler_wl='-Wl,'
10362           lt_prog_compiler_pic='-fpic'
10363           lt_prog_compiler_static='-Bstatic'
10364           ;;
10365         esac
10366         ;;
10367       esac
10368       ;;
10369
10370     newsos6)
10371       lt_prog_compiler_pic='-KPIC'
10372       lt_prog_compiler_static='-Bstatic'
10373       ;;
10374
10375     *nto* | *qnx*)
10376       # QNX uses GNU C++, but need to define -shared option too, otherwise
10377       # it will coredump.
10378       lt_prog_compiler_pic='-fPIC -shared'
10379       ;;
10380
10381     osf3* | osf4* | osf5*)
10382       lt_prog_compiler_wl='-Wl,'
10383       # All OSF/1 code is PIC.
10384       lt_prog_compiler_static='-non_shared'
10385       ;;
10386
10387     rdos*)
10388       lt_prog_compiler_static='-non_shared'
10389       ;;
10390
10391     solaris*)
10392       lt_prog_compiler_pic='-KPIC'
10393       lt_prog_compiler_static='-Bstatic'
10394       case $cc_basename in
10395       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10396         lt_prog_compiler_wl='-Qoption ld ';;
10397       *)
10398         lt_prog_compiler_wl='-Wl,';;
10399       esac
10400       ;;
10401
10402     sunos4*)
10403       lt_prog_compiler_wl='-Qoption ld '
10404       lt_prog_compiler_pic='-PIC'
10405       lt_prog_compiler_static='-Bstatic'
10406       ;;
10407
10408     sysv4 | sysv4.2uw2* | sysv4.3*)
10409       lt_prog_compiler_wl='-Wl,'
10410       lt_prog_compiler_pic='-KPIC'
10411       lt_prog_compiler_static='-Bstatic'
10412       ;;
10413
10414     sysv4*MP*)
10415       if test -d /usr/nec ;then
10416         lt_prog_compiler_pic='-Kconform_pic'
10417         lt_prog_compiler_static='-Bstatic'
10418       fi
10419       ;;
10420
10421     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10422       lt_prog_compiler_wl='-Wl,'
10423       lt_prog_compiler_pic='-KPIC'
10424       lt_prog_compiler_static='-Bstatic'
10425       ;;
10426
10427     unicos*)
10428       lt_prog_compiler_wl='-Wl,'
10429       lt_prog_compiler_can_build_shared=no
10430       ;;
10431
10432     uts4*)
10433       lt_prog_compiler_pic='-pic'
10434       lt_prog_compiler_static='-Bstatic'
10435       ;;
10436
10437     *)
10438       lt_prog_compiler_can_build_shared=no
10439       ;;
10440     esac
10441   fi
10442
10443 case $host_os in
10444   # For platforms which do not support PIC, -DPIC is meaningless:
10445   *djgpp*)
10446     lt_prog_compiler_pic=
10447     ;;
10448   *)
10449     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10450     ;;
10451 esac
10452
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10454 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10455 if ${lt_cv_prog_compiler_pic+:} false; then :
10456   $as_echo_n "(cached) " >&6
10457 else
10458   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10459 fi
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10461 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10462 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10463
10464 #
10465 # Check to make sure the PIC flag actually works.
10466 #
10467 if test -n "$lt_prog_compiler_pic"; then
10468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10469 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10470 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10471   $as_echo_n "(cached) " >&6
10472 else
10473   lt_cv_prog_compiler_pic_works=no
10474    ac_outfile=conftest.$ac_objext
10475    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10476    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10477    # Insert the option either (1) after the last *FLAGS variable, or
10478    # (2) before a word containing "conftest.", or (3) at the end.
10479    # Note that $ac_compile itself does not contain backslashes and begins
10480    # with a dollar sign (not a hyphen), so the echo should work correctly.
10481    # The option is referenced via a variable to avoid confusing sed.
10482    lt_compile=`echo "$ac_compile" | $SED \
10483    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10485    -e 's:$: $lt_compiler_flag:'`
10486    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10487    (eval "$lt_compile" 2>conftest.err)
10488    ac_status=$?
10489    cat conftest.err >&5
10490    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491    if (exit $ac_status) && test -s "$ac_outfile"; then
10492      # The compiler can only warn and ignore the option if not recognized
10493      # So say no if there are warnings other than the usual output.
10494      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10495      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10496      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10497        lt_cv_prog_compiler_pic_works=yes
10498      fi
10499    fi
10500    $RM conftest*
10501
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10504 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10505
10506 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10507     case $lt_prog_compiler_pic in
10508      "" | " "*) ;;
10509      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10510      esac
10511 else
10512     lt_prog_compiler_pic=
10513      lt_prog_compiler_can_build_shared=no
10514 fi
10515
10516 fi
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528 #
10529 # Check to make sure the static flag actually works.
10530 #
10531 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10533 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10534 if ${lt_cv_prog_compiler_static_works+:} false; then :
10535   $as_echo_n "(cached) " >&6
10536 else
10537   lt_cv_prog_compiler_static_works=no
10538    save_LDFLAGS="$LDFLAGS"
10539    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10540    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10541    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10542      # The linker can only warn and ignore the option if not recognized
10543      # So say no if there are warnings
10544      if test -s conftest.err; then
10545        # Append any errors to the config.log.
10546        cat conftest.err 1>&5
10547        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10548        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10549        if diff conftest.exp conftest.er2 >/dev/null; then
10550          lt_cv_prog_compiler_static_works=yes
10551        fi
10552      else
10553        lt_cv_prog_compiler_static_works=yes
10554      fi
10555    fi
10556    $RM -r conftest*
10557    LDFLAGS="$save_LDFLAGS"
10558
10559 fi
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10561 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10562
10563 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10564     :
10565 else
10566     lt_prog_compiler_static=
10567 fi
10568
10569
10570
10571
10572
10573
10574
10575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10576 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10577 if ${lt_cv_prog_compiler_c_o+:} false; then :
10578   $as_echo_n "(cached) " >&6
10579 else
10580   lt_cv_prog_compiler_c_o=no
10581    $RM -r conftest 2>/dev/null
10582    mkdir conftest
10583    cd conftest
10584    mkdir out
10585    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10586
10587    lt_compiler_flag="-o out/conftest2.$ac_objext"
10588    # Insert the option either (1) after the last *FLAGS variable, or
10589    # (2) before a word containing "conftest.", or (3) at the end.
10590    # Note that $ac_compile itself does not contain backslashes and begins
10591    # with a dollar sign (not a hyphen), so the echo should work correctly.
10592    lt_compile=`echo "$ac_compile" | $SED \
10593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10595    -e 's:$: $lt_compiler_flag:'`
10596    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10597    (eval "$lt_compile" 2>out/conftest.err)
10598    ac_status=$?
10599    cat out/conftest.err >&5
10600    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10602    then
10603      # The compiler can only warn and ignore the option if not recognized
10604      # So say no if there are warnings
10605      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10606      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10607      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10608        lt_cv_prog_compiler_c_o=yes
10609      fi
10610    fi
10611    chmod u+w . 2>&5
10612    $RM conftest*
10613    # SGI C++ compiler will create directory out/ii_files/ for
10614    # template instantiation
10615    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10616    $RM out/* && rmdir out
10617    cd ..
10618    $RM -r conftest
10619    $RM conftest*
10620
10621 fi
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10623 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10624
10625
10626
10627
10628
10629
10630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10631 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10632 if ${lt_cv_prog_compiler_c_o+:} false; then :
10633   $as_echo_n "(cached) " >&6
10634 else
10635   lt_cv_prog_compiler_c_o=no
10636    $RM -r conftest 2>/dev/null
10637    mkdir conftest
10638    cd conftest
10639    mkdir out
10640    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10641
10642    lt_compiler_flag="-o out/conftest2.$ac_objext"
10643    # Insert the option either (1) after the last *FLAGS variable, or
10644    # (2) before a word containing "conftest.", or (3) at the end.
10645    # Note that $ac_compile itself does not contain backslashes and begins
10646    # with a dollar sign (not a hyphen), so the echo should work correctly.
10647    lt_compile=`echo "$ac_compile" | $SED \
10648    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10649    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10650    -e 's:$: $lt_compiler_flag:'`
10651    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10652    (eval "$lt_compile" 2>out/conftest.err)
10653    ac_status=$?
10654    cat out/conftest.err >&5
10655    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10657    then
10658      # The compiler can only warn and ignore the option if not recognized
10659      # So say no if there are warnings
10660      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10661      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10662      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10663        lt_cv_prog_compiler_c_o=yes
10664      fi
10665    fi
10666    chmod u+w . 2>&5
10667    $RM conftest*
10668    # SGI C++ compiler will create directory out/ii_files/ for
10669    # template instantiation
10670    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10671    $RM out/* && rmdir out
10672    cd ..
10673    $RM -r conftest
10674    $RM conftest*
10675
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10678 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10679
10680
10681
10682
10683 hard_links="nottested"
10684 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10685   # do not overwrite the value of need_locks provided by the user
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10687 $as_echo_n "checking if we can lock with hard links... " >&6; }
10688   hard_links=yes
10689   $RM conftest*
10690   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10691   touch conftest.a
10692   ln conftest.a conftest.b 2>&5 || hard_links=no
10693   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10695 $as_echo "$hard_links" >&6; }
10696   if test "$hard_links" = no; then
10697     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10698 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10699     need_locks=warn
10700   fi
10701 else
10702   need_locks=no
10703 fi
10704
10705
10706
10707
10708
10709
10710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10712
10713   runpath_var=
10714   allow_undefined_flag=
10715   always_export_symbols=no
10716   archive_cmds=
10717   archive_expsym_cmds=
10718   compiler_needs_object=no
10719   enable_shared_with_static_runtimes=no
10720   export_dynamic_flag_spec=
10721   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10722   hardcode_automatic=no
10723   hardcode_direct=no
10724   hardcode_direct_absolute=no
10725   hardcode_libdir_flag_spec=
10726   hardcode_libdir_separator=
10727   hardcode_minus_L=no
10728   hardcode_shlibpath_var=unsupported
10729   inherit_rpath=no
10730   link_all_deplibs=unknown
10731   module_cmds=
10732   module_expsym_cmds=
10733   old_archive_from_new_cmds=
10734   old_archive_from_expsyms_cmds=
10735   thread_safe_flag_spec=
10736   whole_archive_flag_spec=
10737   # include_expsyms should be a list of space-separated symbols to be *always*
10738   # included in the symbol list
10739   include_expsyms=
10740   # exclude_expsyms can be an extended regexp of symbols to exclude
10741   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10742   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10743   # as well as any symbol that contains `d'.
10744   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10745   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10746   # platforms (ab)use it in PIC code, but their linkers get confused if
10747   # the symbol is explicitly referenced.  Since portable code cannot
10748   # rely on this symbol name, it's probably fine to never include it in
10749   # preloaded symbol tables.
10750   # Exclude shared library initialization/finalization symbols.
10751   extract_expsyms_cmds=
10752
10753   case $host_os in
10754   cygwin* | mingw* | pw32* | cegcc*)
10755     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10756     # When not using gcc, we currently assume that we are using
10757     # Microsoft Visual C++.
10758     if test "$GCC" != yes; then
10759       with_gnu_ld=no
10760     fi
10761     ;;
10762   interix*)
10763     # we just hope/assume this is gcc and not c89 (= MSVC++)
10764     with_gnu_ld=yes
10765     ;;
10766   openbsd*)
10767     with_gnu_ld=no
10768     ;;
10769   esac
10770
10771   ld_shlibs=yes
10772
10773   # On some targets, GNU ld is compatible enough with the native linker
10774   # that we're better off using the native interface for both.
10775   lt_use_gnu_ld_interface=no
10776   if test "$with_gnu_ld" = yes; then
10777     case $host_os in
10778       aix*)
10779         # The AIX port of GNU ld has always aspired to compatibility
10780         # with the native linker.  However, as the warning in the GNU ld
10781         # block says, versions before 2.19.5* couldn't really create working
10782         # shared libraries, regardless of the interface used.
10783         case `$LD -v 2>&1` in
10784           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10785           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10786           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10787           *)
10788             lt_use_gnu_ld_interface=yes
10789             ;;
10790         esac
10791         ;;
10792       *)
10793         lt_use_gnu_ld_interface=yes
10794         ;;
10795     esac
10796   fi
10797
10798   if test "$lt_use_gnu_ld_interface" = yes; then
10799     # If archive_cmds runs LD, not CC, wlarc should be empty
10800     wlarc='${wl}'
10801
10802     # Set some defaults for GNU ld with shared library support. These
10803     # are reset later if shared libraries are not supported. Putting them
10804     # here allows them to be overridden if necessary.
10805     runpath_var=LD_RUN_PATH
10806     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10807     export_dynamic_flag_spec='${wl}--export-dynamic'
10808     # ancient GNU ld didn't support --whole-archive et. al.
10809     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10810       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10811     else
10812       whole_archive_flag_spec=
10813     fi
10814     supports_anon_versioning=no
10815     case `$LD -v 2>&1` in
10816       *GNU\ gold*) supports_anon_versioning=yes ;;
10817       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10818       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10819       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10820       *\ 2.11.*) ;; # other 2.11 versions
10821       *) supports_anon_versioning=yes ;;
10822     esac
10823
10824     # See if GNU ld supports shared libraries.
10825     case $host_os in
10826     aix[3-9]*)
10827       # On AIX/PPC, the GNU linker is very broken
10828       if test "$host_cpu" != ia64; then
10829         ld_shlibs=no
10830         cat <<_LT_EOF 1>&2
10831
10832 *** Warning: the GNU linker, at least up to release 2.19, is reported
10833 *** to be unable to reliably create shared libraries on AIX.
10834 *** Therefore, libtool is disabling shared libraries support.  If you
10835 *** really care for shared libraries, you may want to install binutils
10836 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10837 *** You will then need to restart the configuration process.
10838
10839 _LT_EOF
10840       fi
10841       ;;
10842
10843     amigaos*)
10844       case $host_cpu in
10845       powerpc)
10846             # see comment about AmigaOS4 .so support
10847             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10848             archive_expsym_cmds=''
10849         ;;
10850       m68k)
10851             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)'
10852             hardcode_libdir_flag_spec='-L$libdir'
10853             hardcode_minus_L=yes
10854         ;;
10855       esac
10856       ;;
10857
10858     beos*)
10859       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10860         allow_undefined_flag=unsupported
10861         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10862         # support --undefined.  This deserves some investigation.  FIXME
10863         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10864       else
10865         ld_shlibs=no
10866       fi
10867       ;;
10868
10869     cygwin* | mingw* | pw32* | cegcc*)
10870       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10871       # as there is no search path for DLLs.
10872       hardcode_libdir_flag_spec='-L$libdir'
10873       export_dynamic_flag_spec='${wl}--export-all-symbols'
10874       allow_undefined_flag=unsupported
10875       always_export_symbols=no
10876       enable_shared_with_static_runtimes=yes
10877       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10878       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10879
10880       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10881         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10882         # If the export-symbols file already is a .def file (1st line
10883         # is EXPORTS), use it as is; otherwise, prepend...
10884         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10885           cp $export_symbols $output_objdir/$soname.def;
10886         else
10887           echo EXPORTS > $output_objdir/$soname.def;
10888           cat $export_symbols >> $output_objdir/$soname.def;
10889         fi~
10890         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10891       else
10892         ld_shlibs=no
10893       fi
10894       ;;
10895
10896     haiku*)
10897       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10898       link_all_deplibs=yes
10899       ;;
10900
10901     interix[3-9]*)
10902       hardcode_direct=no
10903       hardcode_shlibpath_var=no
10904       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10905       export_dynamic_flag_spec='${wl}-E'
10906       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10907       # Instead, shared libraries are loaded at an image base (0x10000000 by
10908       # default) and relocated if they conflict, which is a slow very memory
10909       # consuming and fragmenting process.  To avoid this, we pick a random,
10910       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10911       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10912       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10913       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'
10914       ;;
10915
10916     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10917       tmp_diet=no
10918       if test "$host_os" = linux-dietlibc; then
10919         case $cc_basename in
10920           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10921         esac
10922       fi
10923       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10924          && test "$tmp_diet" = no
10925       then
10926         tmp_addflag=' $pic_flag'
10927         tmp_sharedflag='-shared'
10928         case $cc_basename,$host_cpu in
10929         pgcc*)                          # Portland Group C compiler
10930           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'
10931           tmp_addflag=' $pic_flag'
10932           ;;
10933         pgf77* | pgf90* | pgf95* | pgfortran*)
10934                                         # Portland Group f77 and f90 compilers
10935           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'
10936           tmp_addflag=' $pic_flag -Mnomain' ;;
10937         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10938           tmp_addflag=' -i_dynamic' ;;
10939         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10940           tmp_addflag=' -i_dynamic -nofor_main' ;;
10941         ifc* | ifort*)                  # Intel Fortran compiler
10942           tmp_addflag=' -nofor_main' ;;
10943         lf95*)                          # Lahey Fortran 8.1
10944           whole_archive_flag_spec=
10945           tmp_sharedflag='--shared' ;;
10946         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10947           tmp_sharedflag='-qmkshrobj'
10948           tmp_addflag= ;;
10949         nvcc*)  # Cuda Compiler Driver 2.2
10950           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'
10951           compiler_needs_object=yes
10952           ;;
10953         esac
10954         case `$CC -V 2>&1 | sed 5q` in
10955         *Sun\ C*)                       # Sun C 5.9
10956           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'
10957           compiler_needs_object=yes
10958           tmp_sharedflag='-G' ;;
10959         *Sun\ F*)                       # Sun Fortran 8.3
10960           tmp_sharedflag='-G' ;;
10961         esac
10962         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10963
10964         if test "x$supports_anon_versioning" = xyes; then
10965           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10966             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10967             echo "local: *; };" >> $output_objdir/$libname.ver~
10968             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10969         fi
10970
10971         case $cc_basename in
10972         xlf* | bgf* | bgxlf* | mpixlf*)
10973           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10974           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10975           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10976           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10977           if test "x$supports_anon_versioning" = xyes; then
10978             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10979               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10980               echo "local: *; };" >> $output_objdir/$libname.ver~
10981               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10982           fi
10983           ;;
10984         esac
10985       else
10986         ld_shlibs=no
10987       fi
10988       ;;
10989
10990     netbsd*)
10991       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10992         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10993         wlarc=
10994       else
10995         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10996         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10997       fi
10998       ;;
10999
11000     solaris*)
11001       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11002         ld_shlibs=no
11003         cat <<_LT_EOF 1>&2
11004
11005 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11006 *** create shared libraries on Solaris systems.  Therefore, libtool
11007 *** is disabling shared libraries support.  We urge you to upgrade GNU
11008 *** binutils to release 2.9.1 or newer.  Another option is to modify
11009 *** your PATH or compiler configuration so that the native linker is
11010 *** used, and then restart.
11011
11012 _LT_EOF
11013       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11014         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11015         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11016       else
11017         ld_shlibs=no
11018       fi
11019       ;;
11020
11021     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11022       case `$LD -v 2>&1` in
11023         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11024         ld_shlibs=no
11025         cat <<_LT_EOF 1>&2
11026
11027 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11028 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11029 *** is disabling shared libraries support.  We urge you to upgrade GNU
11030 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11031 *** your PATH or compiler configuration so that the native linker is
11032 *** used, and then restart.
11033
11034 _LT_EOF
11035         ;;
11036         *)
11037           # For security reasons, it is highly recommended that you always
11038           # use absolute paths for naming shared libraries, and exclude the
11039           # DT_RUNPATH tag from executables and libraries.  But doing so
11040           # requires that you compile everything twice, which is a pain.
11041           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11042             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11043             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11044             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11045           else
11046             ld_shlibs=no
11047           fi
11048         ;;
11049       esac
11050       ;;
11051
11052     sunos4*)
11053       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11054       wlarc=
11055       hardcode_direct=yes
11056       hardcode_shlibpath_var=no
11057       ;;
11058
11059     *)
11060       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11061         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11062         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11063       else
11064         ld_shlibs=no
11065       fi
11066       ;;
11067     esac
11068
11069     if test "$ld_shlibs" = no; then
11070       runpath_var=
11071       hardcode_libdir_flag_spec=
11072       export_dynamic_flag_spec=
11073       whole_archive_flag_spec=
11074     fi
11075   else
11076     # PORTME fill in a description of your system's linker (not GNU ld)
11077     case $host_os in
11078     aix3*)
11079       allow_undefined_flag=unsupported
11080       always_export_symbols=yes
11081       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'
11082       # Note: this linker hardcodes the directories in LIBPATH if there
11083       # are no directories specified by -L.
11084       hardcode_minus_L=yes
11085       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11086         # Neither direct hardcoding nor static linking is supported with a
11087         # broken collect2.
11088         hardcode_direct=unsupported
11089       fi
11090       ;;
11091
11092     aix[4-9]*)
11093       if test "$host_cpu" = ia64; then
11094         # On IA64, the linker does run time linking by default, so we don't
11095         # have to do anything special.
11096         aix_use_runtimelinking=no
11097         exp_sym_flag='-Bexport'
11098         no_entry_flag=""
11099       else
11100         # If we're using GNU nm, then we don't want the "-C" option.
11101         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11102         # Also, AIX nm treats weak defined symbols like other global
11103         # defined symbols, whereas GNU nm marks them as "W".
11104         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11105           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'
11106         else
11107           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'
11108         fi
11109         aix_use_runtimelinking=no
11110
11111         # Test if we are trying to use run time linking or normal
11112         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11113         # need to do runtime linking.
11114         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11115           for ld_flag in $LDFLAGS; do
11116           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11117             aix_use_runtimelinking=yes
11118             break
11119           fi
11120           done
11121           ;;
11122         esac
11123
11124         exp_sym_flag='-bexport'
11125         no_entry_flag='-bnoentry'
11126       fi
11127
11128       # When large executables or shared objects are built, AIX ld can
11129       # have problems creating the table of contents.  If linking a library
11130       # or program results in "error TOC overflow" add -mminimal-toc to
11131       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11132       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11133
11134       archive_cmds=''
11135       hardcode_direct=yes
11136       hardcode_direct_absolute=yes
11137       hardcode_libdir_separator=':'
11138       link_all_deplibs=yes
11139       file_list_spec='${wl}-f,'
11140
11141       if test "$GCC" = yes; then
11142         case $host_os in aix4.[012]|aix4.[012].*)
11143         # We only want to do this on AIX 4.2 and lower, the check
11144         # below for broken collect2 doesn't work under 4.3+
11145           collect2name=`${CC} -print-prog-name=collect2`
11146           if test -f "$collect2name" &&
11147            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11148           then
11149           # We have reworked collect2
11150           :
11151           else
11152           # We have old collect2
11153           hardcode_direct=unsupported
11154           # It fails to find uninstalled libraries when the uninstalled
11155           # path is not listed in the libpath.  Setting hardcode_minus_L
11156           # to unsupported forces relinking
11157           hardcode_minus_L=yes
11158           hardcode_libdir_flag_spec='-L$libdir'
11159           hardcode_libdir_separator=
11160           fi
11161           ;;
11162         esac
11163         shared_flag='-shared'
11164         if test "$aix_use_runtimelinking" = yes; then
11165           shared_flag="$shared_flag "'${wl}-G'
11166         fi
11167       else
11168         # not using gcc
11169         if test "$host_cpu" = ia64; then
11170         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11171         # chokes on -Wl,-G. The following line is correct:
11172           shared_flag='-G'
11173         else
11174           if test "$aix_use_runtimelinking" = yes; then
11175             shared_flag='${wl}-G'
11176           else
11177             shared_flag='${wl}-bM:SRE'
11178           fi
11179         fi
11180       fi
11181
11182       export_dynamic_flag_spec='${wl}-bexpall'
11183       # It seems that -bexpall does not export symbols beginning with
11184       # underscore (_), so it is better to generate a list of symbols to export.
11185       always_export_symbols=yes
11186       if test "$aix_use_runtimelinking" = yes; then
11187         # Warning - without using the other runtime loading flags (-brtl),
11188         # -berok will link without error, but may produce a broken library.
11189         allow_undefined_flag='-berok'
11190         # Determine the default libpath from the value encoded in an
11191         # empty executable.
11192         if test "${lt_cv_aix_libpath+set}" = set; then
11193   aix_libpath=$lt_cv_aix_libpath
11194 else
11195   if ${lt_cv_aix_libpath_+:} false; then :
11196   $as_echo_n "(cached) " >&6
11197 else
11198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h.  */
11200
11201 int
11202 main ()
11203 {
11204
11205   ;
11206   return 0;
11207 }
11208 _ACEOF
11209 if ac_fn_c_try_link "$LINENO"; then :
11210
11211   lt_aix_libpath_sed='
11212       /Import File Strings/,/^$/ {
11213           /^0/ {
11214               s/^0  *\([^ ]*\) *$/\1/
11215               p
11216           }
11217       }'
11218   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11219   # Check for a 64-bit object if we didn't find anything.
11220   if test -z "$lt_cv_aix_libpath_"; then
11221     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11222   fi
11223 fi
11224 rm -f core conftest.err conftest.$ac_objext \
11225     conftest$ac_exeext conftest.$ac_ext
11226   if test -z "$lt_cv_aix_libpath_"; then
11227     lt_cv_aix_libpath_="/usr/lib:/lib"
11228   fi
11229
11230 fi
11231
11232   aix_libpath=$lt_cv_aix_libpath_
11233 fi
11234
11235         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11236         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"
11237       else
11238         if test "$host_cpu" = ia64; then
11239           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11240           allow_undefined_flag="-z nodefs"
11241           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"
11242         else
11243          # Determine the default libpath from the value encoded in an
11244          # empty executable.
11245          if test "${lt_cv_aix_libpath+set}" = set; then
11246   aix_libpath=$lt_cv_aix_libpath
11247 else
11248   if ${lt_cv_aix_libpath_+:} false; then :
11249   $as_echo_n "(cached) " >&6
11250 else
11251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h.  */
11253
11254 int
11255 main ()
11256 {
11257
11258   ;
11259   return 0;
11260 }
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"; then :
11263
11264   lt_aix_libpath_sed='
11265       /Import File Strings/,/^$/ {
11266           /^0/ {
11267               s/^0  *\([^ ]*\) *$/\1/
11268               p
11269           }
11270       }'
11271   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11272   # Check for a 64-bit object if we didn't find anything.
11273   if test -z "$lt_cv_aix_libpath_"; then
11274     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11275   fi
11276 fi
11277 rm -f core conftest.err conftest.$ac_objext \
11278     conftest$ac_exeext conftest.$ac_ext
11279   if test -z "$lt_cv_aix_libpath_"; then
11280     lt_cv_aix_libpath_="/usr/lib:/lib"
11281   fi
11282
11283 fi
11284
11285   aix_libpath=$lt_cv_aix_libpath_
11286 fi
11287
11288          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11289           # Warning - without using the other run time loading flags,
11290           # -berok will link without error, but may produce a broken library.
11291           no_undefined_flag=' ${wl}-bernotok'
11292           allow_undefined_flag=' ${wl}-berok'
11293           if test "$with_gnu_ld" = yes; then
11294             # We only use this code for GNU lds that support --whole-archive.
11295             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11296           else
11297             # Exported symbols can be pulled into shared objects from archives
11298             whole_archive_flag_spec='$convenience'
11299           fi
11300           archive_cmds_need_lc=yes
11301           # This is similar to how AIX traditionally builds its shared libraries.
11302           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'
11303         fi
11304       fi
11305       ;;
11306
11307     amigaos*)
11308       case $host_cpu in
11309       powerpc)
11310             # see comment about AmigaOS4 .so support
11311             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11312             archive_expsym_cmds=''
11313         ;;
11314       m68k)
11315             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)'
11316             hardcode_libdir_flag_spec='-L$libdir'
11317             hardcode_minus_L=yes
11318         ;;
11319       esac
11320       ;;
11321
11322     bsdi[45]*)
11323       export_dynamic_flag_spec=-rdynamic
11324       ;;
11325
11326     cygwin* | mingw* | pw32* | cegcc*)
11327       # When not using gcc, we currently assume that we are using
11328       # Microsoft Visual C++.
11329       # hardcode_libdir_flag_spec is actually meaningless, as there is
11330       # no search path for DLLs.
11331       case $cc_basename in
11332       cl*)
11333         # Native MSVC
11334         hardcode_libdir_flag_spec=' '
11335         allow_undefined_flag=unsupported
11336         always_export_symbols=yes
11337         file_list_spec='@'
11338         # Tell ltmain to make .lib files, not .a files.
11339         libext=lib
11340         # Tell ltmain to make .dll files, not .so files.
11341         shrext_cmds=".dll"
11342         # FIXME: Setting linknames here is a bad hack.
11343         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11344         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11345             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11346           else
11347             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11348           fi~
11349           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11350           linknames='
11351         # The linker will not automatically build a static lib if we build a DLL.
11352         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11353         enable_shared_with_static_runtimes=yes
11354         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11355         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11356         # Don't use ranlib
11357         old_postinstall_cmds='chmod 644 $oldlib'
11358         postlink_cmds='lt_outputfile="@OUTPUT@"~
11359           lt_tool_outputfile="@TOOL_OUTPUT@"~
11360           case $lt_outputfile in
11361             *.exe|*.EXE) ;;
11362             *)
11363               lt_outputfile="$lt_outputfile.exe"
11364               lt_tool_outputfile="$lt_tool_outputfile.exe"
11365               ;;
11366           esac~
11367           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11368             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11369             $RM "$lt_outputfile.manifest";
11370           fi'
11371         ;;
11372       *)
11373         # Assume MSVC wrapper
11374         hardcode_libdir_flag_spec=' '
11375         allow_undefined_flag=unsupported
11376         # Tell ltmain to make .lib files, not .a files.
11377         libext=lib
11378         # Tell ltmain to make .dll files, not .so files.
11379         shrext_cmds=".dll"
11380         # FIXME: Setting linknames here is a bad hack.
11381         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11382         # The linker will automatically build a .lib file if we build a DLL.
11383         old_archive_from_new_cmds='true'
11384         # FIXME: Should let the user specify the lib program.
11385         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11386         enable_shared_with_static_runtimes=yes
11387         ;;
11388       esac
11389       ;;
11390
11391     darwin* | rhapsody*)
11392
11393
11394   archive_cmds_need_lc=no
11395   hardcode_direct=no
11396   hardcode_automatic=yes
11397   hardcode_shlibpath_var=unsupported
11398   if test "$lt_cv_ld_force_load" = "yes"; then
11399     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\"`'
11400
11401   else
11402     whole_archive_flag_spec=''
11403   fi
11404   link_all_deplibs=yes
11405   allow_undefined_flag="$_lt_dar_allow_undefined"
11406   case $cc_basename in
11407      ifort*) _lt_dar_can_shared=yes ;;
11408      *) _lt_dar_can_shared=$GCC ;;
11409   esac
11410   if test "$_lt_dar_can_shared" = "yes"; then
11411     output_verbose_link_cmd=func_echo_all
11412     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11413     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11414     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}"
11415     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}"
11416
11417   else
11418   ld_shlibs=no
11419   fi
11420
11421       ;;
11422
11423     dgux*)
11424       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11425       hardcode_libdir_flag_spec='-L$libdir'
11426       hardcode_shlibpath_var=no
11427       ;;
11428
11429     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11430     # support.  Future versions do this automatically, but an explicit c++rt0.o
11431     # does not break anything, and helps significantly (at the cost of a little
11432     # extra space).
11433     freebsd2.2*)
11434       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11435       hardcode_libdir_flag_spec='-R$libdir'
11436       hardcode_direct=yes
11437       hardcode_shlibpath_var=no
11438       ;;
11439
11440     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11441     freebsd2.*)
11442       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11443       hardcode_direct=yes
11444       hardcode_minus_L=yes
11445       hardcode_shlibpath_var=no
11446       ;;
11447
11448     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11449     freebsd* | dragonfly*)
11450       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11451       hardcode_libdir_flag_spec='-R$libdir'
11452       hardcode_direct=yes
11453       hardcode_shlibpath_var=no
11454       ;;
11455
11456     hpux9*)
11457       if test "$GCC" = yes; then
11458         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11459       else
11460         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'
11461       fi
11462       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11463       hardcode_libdir_separator=:
11464       hardcode_direct=yes
11465
11466       # hardcode_minus_L: Not really in the search PATH,
11467       # but as the default location of the library.
11468       hardcode_minus_L=yes
11469       export_dynamic_flag_spec='${wl}-E'
11470       ;;
11471
11472     hpux10*)
11473       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11474         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11475       else
11476         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11477       fi
11478       if test "$with_gnu_ld" = no; then
11479         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11480         hardcode_libdir_separator=:
11481         hardcode_direct=yes
11482         hardcode_direct_absolute=yes
11483         export_dynamic_flag_spec='${wl}-E'
11484         # hardcode_minus_L: Not really in the search PATH,
11485         # but as the default location of the library.
11486         hardcode_minus_L=yes
11487       fi
11488       ;;
11489
11490     hpux11*)
11491       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11492         case $host_cpu in
11493         hppa*64*)
11494           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11495           ;;
11496         ia64*)
11497           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11498           ;;
11499         *)
11500           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11501           ;;
11502         esac
11503       else
11504         case $host_cpu in
11505         hppa*64*)
11506           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11507           ;;
11508         ia64*)
11509           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11510           ;;
11511         *)
11512
11513           # Older versions of the 11.00 compiler do not understand -b yet
11514           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11515           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11516 $as_echo_n "checking if $CC understands -b... " >&6; }
11517 if ${lt_cv_prog_compiler__b+:} false; then :
11518   $as_echo_n "(cached) " >&6
11519 else
11520   lt_cv_prog_compiler__b=no
11521    save_LDFLAGS="$LDFLAGS"
11522    LDFLAGS="$LDFLAGS -b"
11523    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11524    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11525      # The linker can only warn and ignore the option if not recognized
11526      # So say no if there are warnings
11527      if test -s conftest.err; then
11528        # Append any errors to the config.log.
11529        cat conftest.err 1>&5
11530        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11531        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11532        if diff conftest.exp conftest.er2 >/dev/null; then
11533          lt_cv_prog_compiler__b=yes
11534        fi
11535      else
11536        lt_cv_prog_compiler__b=yes
11537      fi
11538    fi
11539    $RM -r conftest*
11540    LDFLAGS="$save_LDFLAGS"
11541
11542 fi
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11544 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11545
11546 if test x"$lt_cv_prog_compiler__b" = xyes; then
11547     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11548 else
11549     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11550 fi
11551
11552           ;;
11553         esac
11554       fi
11555       if test "$with_gnu_ld" = no; then
11556         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11557         hardcode_libdir_separator=:
11558
11559         case $host_cpu in
11560         hppa*64*|ia64*)
11561           hardcode_direct=no
11562           hardcode_shlibpath_var=no
11563           ;;
11564         *)
11565           hardcode_direct=yes
11566           hardcode_direct_absolute=yes
11567           export_dynamic_flag_spec='${wl}-E'
11568
11569           # hardcode_minus_L: Not really in the search PATH,
11570           # but as the default location of the library.
11571           hardcode_minus_L=yes
11572           ;;
11573         esac
11574       fi
11575       ;;
11576
11577     irix5* | irix6* | nonstopux*)
11578       if test "$GCC" = yes; then
11579         archive_cmds='$CC -shared $pic_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'
11580         # Try to use the -exported_symbol ld option, if it does not
11581         # work, assume that -exports_file does not work either and
11582         # implicitly export all symbols.
11583         # This should be the same for all languages, so no per-tag cache variable.
11584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11585 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11586 if ${lt_cv_irix_exported_symbol+:} false; then :
11587   $as_echo_n "(cached) " >&6
11588 else
11589   save_LDFLAGS="$LDFLAGS"
11590            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11591            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h.  */
11593 int foo (void) { return 0; }
11594 _ACEOF
11595 if ac_fn_c_try_link "$LINENO"; then :
11596   lt_cv_irix_exported_symbol=yes
11597 else
11598   lt_cv_irix_exported_symbol=no
11599 fi
11600 rm -f core conftest.err conftest.$ac_objext \
11601     conftest$ac_exeext conftest.$ac_ext
11602            LDFLAGS="$save_LDFLAGS"
11603 fi
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11605 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11606         if test "$lt_cv_irix_exported_symbol" = yes; then
11607           archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
11608         fi
11609       else
11610         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'
11611         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'
11612       fi
11613       archive_cmds_need_lc='no'
11614       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11615       hardcode_libdir_separator=:
11616       inherit_rpath=yes
11617       link_all_deplibs=yes
11618       ;;
11619
11620     netbsd*)
11621       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11622         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11623       else
11624         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11625       fi
11626       hardcode_libdir_flag_spec='-R$libdir'
11627       hardcode_direct=yes
11628       hardcode_shlibpath_var=no
11629       ;;
11630
11631     newsos6)
11632       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11633       hardcode_direct=yes
11634       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11635       hardcode_libdir_separator=:
11636       hardcode_shlibpath_var=no
11637       ;;
11638
11639     *nto* | *qnx*)
11640       ;;
11641
11642     openbsd*)
11643       if test -f /usr/libexec/ld.so; then
11644         hardcode_direct=yes
11645         hardcode_shlibpath_var=no
11646         hardcode_direct_absolute=yes
11647         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11648           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11649           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11650           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11651           export_dynamic_flag_spec='${wl}-E'
11652         else
11653           case $host_os in
11654            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11655              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11656              hardcode_libdir_flag_spec='-R$libdir'
11657              ;;
11658            *)
11659              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11660              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11661              ;;
11662           esac
11663         fi
11664       else
11665         ld_shlibs=no
11666       fi
11667       ;;
11668
11669     os2*)
11670       hardcode_libdir_flag_spec='-L$libdir'
11671       hardcode_minus_L=yes
11672       allow_undefined_flag=unsupported
11673       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'
11674       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11675       ;;
11676
11677     osf3*)
11678       if test "$GCC" = yes; then
11679         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11680         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'
11681       else
11682         allow_undefined_flag=' -expect_unresolved \*'
11683         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'
11684       fi
11685       archive_cmds_need_lc='no'
11686       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11687       hardcode_libdir_separator=:
11688       ;;
11689
11690     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11691       if test "$GCC" = yes; then
11692         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11693         archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
11694         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11695       else
11696         allow_undefined_flag=' -expect_unresolved \*'
11697         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'
11698         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~
11699         $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'
11700
11701         # Both c and cxx compiler support -rpath directly
11702         hardcode_libdir_flag_spec='-rpath $libdir'
11703       fi
11704       archive_cmds_need_lc='no'
11705       hardcode_libdir_separator=:
11706       ;;
11707
11708     solaris*)
11709       no_undefined_flag=' -z defs'
11710       if test "$GCC" = yes; then
11711         wlarc='${wl}'
11712         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11713         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11714           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11715       else
11716         case `$CC -V 2>&1` in
11717         *"Compilers 5.0"*)
11718           wlarc=''
11719           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11720           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11721           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11722           ;;
11723         *)
11724           wlarc='${wl}'
11725           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11726           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11727           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11728           ;;
11729         esac
11730       fi
11731       hardcode_libdir_flag_spec='-R$libdir'
11732       hardcode_shlibpath_var=no
11733       case $host_os in
11734       solaris2.[0-5] | solaris2.[0-5].*) ;;
11735       *)
11736         # The compiler driver will combine and reorder linker options,
11737         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11738         # but is careful enough not to reorder.
11739         # Supported since Solaris 2.6 (maybe 2.5.1?)
11740         if test "$GCC" = yes; then
11741           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11742         else
11743           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11744         fi
11745         ;;
11746       esac
11747       link_all_deplibs=yes
11748       ;;
11749
11750     sunos4*)
11751       if test "x$host_vendor" = xsequent; then
11752         # Use $CC to link under sequent, because it throws in some extra .o
11753         # files that make .init and .fini sections work.
11754         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11755       else
11756         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11757       fi
11758       hardcode_libdir_flag_spec='-L$libdir'
11759       hardcode_direct=yes
11760       hardcode_minus_L=yes
11761       hardcode_shlibpath_var=no
11762       ;;
11763
11764     sysv4)
11765       case $host_vendor in
11766         sni)
11767           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11768           hardcode_direct=yes # is this really true???
11769         ;;
11770         siemens)
11771           ## LD is ld it makes a PLAMLIB
11772           ## CC just makes a GrossModule.
11773           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11774           reload_cmds='$CC -r -o $output$reload_objs'
11775           hardcode_direct=no
11776         ;;
11777         motorola)
11778           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11779           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11780         ;;
11781       esac
11782       runpath_var='LD_RUN_PATH'
11783       hardcode_shlibpath_var=no
11784       ;;
11785
11786     sysv4.3*)
11787       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11788       hardcode_shlibpath_var=no
11789       export_dynamic_flag_spec='-Bexport'
11790       ;;
11791
11792     sysv4*MP*)
11793       if test -d /usr/nec; then
11794         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11795         hardcode_shlibpath_var=no
11796         runpath_var=LD_RUN_PATH
11797         hardcode_runpath_var=yes
11798         ld_shlibs=yes
11799       fi
11800       ;;
11801
11802     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11803       no_undefined_flag='${wl}-z,text'
11804       archive_cmds_need_lc=no
11805       hardcode_shlibpath_var=no
11806       runpath_var='LD_RUN_PATH'
11807
11808       if test "$GCC" = yes; then
11809         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11810         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11811       else
11812         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11813         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11814       fi
11815       ;;
11816
11817     sysv5* | sco3.2v5* | sco5v6*)
11818       # Note: We can NOT use -z defs as we might desire, because we do not
11819       # link with -lc, and that would cause any symbols used from libc to
11820       # always be unresolved, which means just about no library would
11821       # ever link correctly.  If we're not using GNU ld we use -z text
11822       # though, which does catch some bad symbols but isn't as heavy-handed
11823       # as -z defs.
11824       no_undefined_flag='${wl}-z,text'
11825       allow_undefined_flag='${wl}-z,nodefs'
11826       archive_cmds_need_lc=no
11827       hardcode_shlibpath_var=no
11828       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11829       hardcode_libdir_separator=':'
11830       link_all_deplibs=yes
11831       export_dynamic_flag_spec='${wl}-Bexport'
11832       runpath_var='LD_RUN_PATH'
11833
11834       if test "$GCC" = yes; then
11835         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11836         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11837       else
11838         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11839         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11840       fi
11841       ;;
11842
11843     uts4*)
11844       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11845       hardcode_libdir_flag_spec='-L$libdir'
11846       hardcode_shlibpath_var=no
11847       ;;
11848
11849     *)
11850       ld_shlibs=no
11851       ;;
11852     esac
11853
11854     if test x$host_vendor = xsni; then
11855       case $host in
11856       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11857         export_dynamic_flag_spec='${wl}-Blargedynsym'
11858         ;;
11859       esac
11860     fi
11861   fi
11862
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11864 $as_echo "$ld_shlibs" >&6; }
11865 test "$ld_shlibs" = no && can_build_shared=no
11866
11867 with_gnu_ld=$with_gnu_ld
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883 #
11884 # Do we need to explicitly link libc?
11885 #
11886 case "x$archive_cmds_need_lc" in
11887 x|xyes)
11888   # Assume -lc should be added
11889   archive_cmds_need_lc=yes
11890
11891   if test "$enable_shared" = yes && test "$GCC" = yes; then
11892     case $archive_cmds in
11893     *'~'*)
11894       # FIXME: we may have to deal with multi-command sequences.
11895       ;;
11896     '$CC '*)
11897       # Test whether the compiler implicitly links with -lc since on some
11898       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11899       # to ld, don't add -lc before -lgcc.
11900       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11901 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11902 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905   $RM conftest*
11906         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11907
11908         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11909   (eval $ac_compile) 2>&5
11910   ac_status=$?
11911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11912   test $ac_status = 0; } 2>conftest.err; then
11913           soname=conftest
11914           lib=conftest
11915           libobjs=conftest.$ac_objext
11916           deplibs=
11917           wl=$lt_prog_compiler_wl
11918           pic_flag=$lt_prog_compiler_pic
11919           compiler_flags=-v
11920           linker_flags=-v
11921           verstring=
11922           output_objdir=.
11923           libname=conftest
11924           lt_save_allow_undefined_flag=$allow_undefined_flag
11925           allow_undefined_flag=
11926           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11927   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11928   ac_status=$?
11929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11930   test $ac_status = 0; }
11931           then
11932             lt_cv_archive_cmds_need_lc=no
11933           else
11934             lt_cv_archive_cmds_need_lc=yes
11935           fi
11936           allow_undefined_flag=$lt_save_allow_undefined_flag
11937         else
11938           cat conftest.err 1>&5
11939         fi
11940         $RM conftest*
11941
11942 fi
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11944 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11945       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11946       ;;
11947     esac
11948   fi
11949   ;;
11950 esac
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
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
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12104 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12105
12106 if test "$GCC" = yes; then
12107   case $host_os in
12108     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12109     *) lt_awk_arg="/^libraries:/" ;;
12110   esac
12111   case $host_os in
12112     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12113     *) lt_sed_strip_eq="s,=/,/,g" ;;
12114   esac
12115   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12116   case $lt_search_path_spec in
12117   *\;*)
12118     # if the path contains ";" then we assume it to be the separator
12119     # otherwise default to the standard path separator (i.e. ":") - it is
12120     # assumed that no part of a normal pathname contains ";" but that should
12121     # okay in the real world where ";" in dirpaths is itself problematic.
12122     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12123     ;;
12124   *)
12125     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12126     ;;
12127   esac
12128   # Ok, now we have the path, separated by spaces, we can step through it
12129   # and add multilib dir if necessary.
12130   lt_tmp_lt_search_path_spec=
12131   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12132   for lt_sys_path in $lt_search_path_spec; do
12133     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12134       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12135     else
12136       test -d "$lt_sys_path" && \
12137         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12138     fi
12139   done
12140   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12141 BEGIN {RS=" "; FS="/|\n";} {
12142   lt_foo="";
12143   lt_count=0;
12144   for (lt_i = NF; lt_i > 0; lt_i--) {
12145     if ($lt_i != "" && $lt_i != ".") {
12146       if ($lt_i == "..") {
12147         lt_count++;
12148       } else {
12149         if (lt_count == 0) {
12150           lt_foo="/" $lt_i lt_foo;
12151         } else {
12152           lt_count--;
12153         }
12154       }
12155     }
12156   }
12157   if (lt_foo != "") { lt_freq[lt_foo]++; }
12158   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12159 }'`
12160   # AWK program above erroneously prepends '/' to C:/dos/paths
12161   # for these hosts.
12162   case $host_os in
12163     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12164       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12165   esac
12166   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12167 else
12168   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12169 fi
12170 library_names_spec=
12171 libname_spec='lib$name'
12172 soname_spec=
12173 shrext_cmds=".so"
12174 postinstall_cmds=
12175 postuninstall_cmds=
12176 finish_cmds=
12177 finish_eval=
12178 shlibpath_var=
12179 shlibpath_overrides_runpath=unknown
12180 version_type=none
12181 dynamic_linker="$host_os ld.so"
12182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12183 need_lib_prefix=unknown
12184 hardcode_into_libs=no
12185
12186 # when you set need_version to no, make sure it does not cause -set_version
12187 # flags to be left without arguments
12188 need_version=unknown
12189
12190 case $host_os in
12191 aix3*)
12192   version_type=linux # correct to gnu/linux during the next big refactor
12193   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12194   shlibpath_var=LIBPATH
12195
12196   # AIX 3 has no versioning support, so we append a major version to the name.
12197   soname_spec='${libname}${release}${shared_ext}$major'
12198   ;;
12199
12200 aix[4-9]*)
12201   version_type=linux # correct to gnu/linux during the next big refactor
12202   need_lib_prefix=no
12203   need_version=no
12204   hardcode_into_libs=yes
12205   if test "$host_cpu" = ia64; then
12206     # AIX 5 supports IA64
12207     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12208     shlibpath_var=LD_LIBRARY_PATH
12209   else
12210     # With GCC up to 2.95.x, collect2 would create an import file
12211     # for dependence libraries.  The import file would start with
12212     # the line `#! .'.  This would cause the generated library to
12213     # depend on `.', always an invalid library.  This was fixed in
12214     # development snapshots of GCC prior to 3.0.
12215     case $host_os in
12216       aix4 | aix4.[01] | aix4.[01].*)
12217       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12218            echo ' yes '
12219            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12220         :
12221       else
12222         can_build_shared=no
12223       fi
12224       ;;
12225     esac
12226     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12227     # soname into executable. Probably we can add versioning support to
12228     # collect2, so additional links can be useful in future.
12229     if test "$aix_use_runtimelinking" = yes; then
12230       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12231       # instead of lib<name>.a to let people know that these are not
12232       # typical AIX shared libraries.
12233       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234     else
12235       # We preserve .a as extension for shared libraries through AIX4.2
12236       # and later when we are not doing run time linking.
12237       library_names_spec='${libname}${release}.a $libname.a'
12238       soname_spec='${libname}${release}${shared_ext}$major'
12239     fi
12240     shlibpath_var=LIBPATH
12241   fi
12242   ;;
12243
12244 amigaos*)
12245   case $host_cpu in
12246   powerpc)
12247     # Since July 2007 AmigaOS4 officially supports .so libraries.
12248     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250     ;;
12251   m68k)
12252     library_names_spec='$libname.ixlibrary $libname.a'
12253     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12254     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'
12255     ;;
12256   esac
12257   ;;
12258
12259 beos*)
12260   library_names_spec='${libname}${shared_ext}'
12261   dynamic_linker="$host_os ld.so"
12262   shlibpath_var=LIBRARY_PATH
12263   ;;
12264
12265 bsdi[45]*)
12266   version_type=linux # correct to gnu/linux during the next big refactor
12267   need_version=no
12268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12269   soname_spec='${libname}${release}${shared_ext}$major'
12270   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12271   shlibpath_var=LD_LIBRARY_PATH
12272   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12273   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12274   # the default ld.so.conf also contains /usr/contrib/lib and
12275   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12276   # libtool to hard-code these into programs
12277   ;;
12278
12279 cygwin* | mingw* | pw32* | cegcc*)
12280   version_type=windows
12281   shrext_cmds=".dll"
12282   need_version=no
12283   need_lib_prefix=no
12284
12285   case $GCC,$cc_basename in
12286   yes,*)
12287     # gcc
12288     library_names_spec='$libname.dll.a'
12289     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12290     postinstall_cmds='base_file=`basename \${file}`~
12291       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12292       dldir=$destdir/`dirname \$dlpath`~
12293       test -d \$dldir || mkdir -p \$dldir~
12294       $install_prog $dir/$dlname \$dldir/$dlname~
12295       chmod a+x \$dldir/$dlname~
12296       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12297         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12298       fi'
12299     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12300       dlpath=$dir/\$dldll~
12301        $RM \$dlpath'
12302     shlibpath_overrides_runpath=yes
12303
12304     case $host_os in
12305     cygwin*)
12306       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12307       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12308
12309       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12310       ;;
12311     mingw* | cegcc*)
12312       # MinGW DLLs use traditional 'lib' prefix
12313       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12314       ;;
12315     pw32*)
12316       # pw32 DLLs use 'pw' prefix rather than 'lib'
12317       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12318       ;;
12319     esac
12320     dynamic_linker='Win32 ld.exe'
12321     ;;
12322
12323   *,cl*)
12324     # Native MSVC
12325     libname_spec='$name'
12326     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12327     library_names_spec='${libname}.dll.lib'
12328
12329     case $build_os in
12330     mingw*)
12331       sys_lib_search_path_spec=
12332       lt_save_ifs=$IFS
12333       IFS=';'
12334       for lt_path in $LIB
12335       do
12336         IFS=$lt_save_ifs
12337         # Let DOS variable expansion print the short 8.3 style file name.
12338         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12339         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12340       done
12341       IFS=$lt_save_ifs
12342       # Convert to MSYS style.
12343       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12344       ;;
12345     cygwin*)
12346       # Convert to unix form, then to dos form, then back to unix form
12347       # but this time dos style (no spaces!) so that the unix form looks
12348       # like /cygdrive/c/PROGRA~1:/cygdr...
12349       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12350       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12351       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12352       ;;
12353     *)
12354       sys_lib_search_path_spec="$LIB"
12355       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12356         # It is most probably a Windows format PATH.
12357         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12358       else
12359         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12360       fi
12361       # FIXME: find the short name or the path components, as spaces are
12362       # common. (e.g. "Program Files" -> "PROGRA~1")
12363       ;;
12364     esac
12365
12366     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12367     postinstall_cmds='base_file=`basename \${file}`~
12368       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12369       dldir=$destdir/`dirname \$dlpath`~
12370       test -d \$dldir || mkdir -p \$dldir~
12371       $install_prog $dir/$dlname \$dldir/$dlname'
12372     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12373       dlpath=$dir/\$dldll~
12374        $RM \$dlpath'
12375     shlibpath_overrides_runpath=yes
12376     dynamic_linker='Win32 link.exe'
12377     ;;
12378
12379   *)
12380     # Assume MSVC wrapper
12381     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12382     dynamic_linker='Win32 ld.exe'
12383     ;;
12384   esac
12385   # FIXME: first we should search . and the directory the executable is in
12386   shlibpath_var=PATH
12387   ;;
12388
12389 darwin* | rhapsody*)
12390   dynamic_linker="$host_os dyld"
12391   version_type=darwin
12392   need_lib_prefix=no
12393   need_version=no
12394   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12395   soname_spec='${libname}${release}${major}$shared_ext'
12396   shlibpath_overrides_runpath=yes
12397   shlibpath_var=DYLD_LIBRARY_PATH
12398   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12399
12400   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12401   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12402   ;;
12403
12404 dgux*)
12405   version_type=linux # correct to gnu/linux during the next big refactor
12406   need_lib_prefix=no
12407   need_version=no
12408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12409   soname_spec='${libname}${release}${shared_ext}$major'
12410   shlibpath_var=LD_LIBRARY_PATH
12411   ;;
12412
12413 freebsd* | dragonfly*)
12414   # DragonFly does not have aout.  When/if they implement a new
12415   # versioning mechanism, adjust this.
12416   if test -x /usr/bin/objformat; then
12417     objformat=`/usr/bin/objformat`
12418   else
12419     case $host_os in
12420     freebsd[23].*) objformat=aout ;;
12421     *) objformat=elf ;;
12422     esac
12423   fi
12424   version_type=freebsd-$objformat
12425   case $version_type in
12426     freebsd-elf*)
12427       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12428       need_version=no
12429       need_lib_prefix=no
12430       ;;
12431     freebsd-*)
12432       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12433       need_version=yes
12434       ;;
12435   esac
12436   shlibpath_var=LD_LIBRARY_PATH
12437   case $host_os in
12438   freebsd2.*)
12439     shlibpath_overrides_runpath=yes
12440     ;;
12441   freebsd3.[01]* | freebsdelf3.[01]*)
12442     shlibpath_overrides_runpath=yes
12443     hardcode_into_libs=yes
12444     ;;
12445   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12446   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12447     shlibpath_overrides_runpath=no
12448     hardcode_into_libs=yes
12449     ;;
12450   *) # from 4.6 on, and DragonFly
12451     shlibpath_overrides_runpath=yes
12452     hardcode_into_libs=yes
12453     ;;
12454   esac
12455   ;;
12456
12457 gnu*)
12458   version_type=linux # correct to gnu/linux during the next big refactor
12459   need_lib_prefix=no
12460   need_version=no
12461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12462   soname_spec='${libname}${release}${shared_ext}$major'
12463   shlibpath_var=LD_LIBRARY_PATH
12464   shlibpath_overrides_runpath=no
12465   hardcode_into_libs=yes
12466   ;;
12467
12468 haiku*)
12469   version_type=linux # correct to gnu/linux during the next big refactor
12470   need_lib_prefix=no
12471   need_version=no
12472   dynamic_linker="$host_os runtime_loader"
12473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12474   soname_spec='${libname}${release}${shared_ext}$major'
12475   shlibpath_var=LIBRARY_PATH
12476   shlibpath_overrides_runpath=yes
12477   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12478   hardcode_into_libs=yes
12479   ;;
12480
12481 hpux9* | hpux10* | hpux11*)
12482   # Give a soname corresponding to the major version so that dld.sl refuses to
12483   # link against other versions.
12484   version_type=sunos
12485   need_lib_prefix=no
12486   need_version=no
12487   case $host_cpu in
12488   ia64*)
12489     shrext_cmds='.so'
12490     hardcode_into_libs=yes
12491     dynamic_linker="$host_os dld.so"
12492     shlibpath_var=LD_LIBRARY_PATH
12493     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12495     soname_spec='${libname}${release}${shared_ext}$major'
12496     if test "X$HPUX_IA64_MODE" = X32; then
12497       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12498     else
12499       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12500     fi
12501     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12502     ;;
12503   hppa*64*)
12504     shrext_cmds='.sl'
12505     hardcode_into_libs=yes
12506     dynamic_linker="$host_os dld.sl"
12507     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12508     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12509     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12510     soname_spec='${libname}${release}${shared_ext}$major'
12511     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12512     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12513     ;;
12514   *)
12515     shrext_cmds='.sl'
12516     dynamic_linker="$host_os dld.sl"
12517     shlibpath_var=SHLIB_PATH
12518     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12520     soname_spec='${libname}${release}${shared_ext}$major'
12521     ;;
12522   esac
12523   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12524   postinstall_cmds='chmod 555 $lib'
12525   # or fails outright, so override atomically:
12526   install_override_mode=555
12527   ;;
12528
12529 interix[3-9]*)
12530   version_type=linux # correct to gnu/linux during the next big refactor
12531   need_lib_prefix=no
12532   need_version=no
12533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12534   soname_spec='${libname}${release}${shared_ext}$major'
12535   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12536   shlibpath_var=LD_LIBRARY_PATH
12537   shlibpath_overrides_runpath=no
12538   hardcode_into_libs=yes
12539   ;;
12540
12541 irix5* | irix6* | nonstopux*)
12542   case $host_os in
12543     nonstopux*) version_type=nonstopux ;;
12544     *)
12545         if test "$lt_cv_prog_gnu_ld" = yes; then
12546                 version_type=linux # correct to gnu/linux during the next big refactor
12547         else
12548                 version_type=irix
12549         fi ;;
12550   esac
12551   need_lib_prefix=no
12552   need_version=no
12553   soname_spec='${libname}${release}${shared_ext}$major'
12554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12555   case $host_os in
12556   irix5* | nonstopux*)
12557     libsuff= shlibsuff=
12558     ;;
12559   *)
12560     case $LD in # libtool.m4 will add one of these switches to LD
12561     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12562       libsuff= shlibsuff= libmagic=32-bit;;
12563     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12564       libsuff=32 shlibsuff=N32 libmagic=N32;;
12565     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12566       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12567     *) libsuff= shlibsuff= libmagic=never-match;;
12568     esac
12569     ;;
12570   esac
12571   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12572   shlibpath_overrides_runpath=no
12573   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12574   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12575   hardcode_into_libs=yes
12576   ;;
12577
12578 # No shared lib support for Linux oldld, aout, or coff.
12579 linux*oldld* | linux*aout* | linux*coff*)
12580   dynamic_linker=no
12581   ;;
12582
12583 # This must be glibc/ELF.
12584 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12585   version_type=linux # correct to gnu/linux during the next big refactor
12586   need_lib_prefix=no
12587   need_version=no
12588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12589   soname_spec='${libname}${release}${shared_ext}$major'
12590   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12591   shlibpath_var=LD_LIBRARY_PATH
12592   shlibpath_overrides_runpath=no
12593
12594   # Some binutils ld are patched to set DT_RUNPATH
12595   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12596   $as_echo_n "(cached) " >&6
12597 else
12598   lt_cv_shlibpath_overrides_runpath=no
12599     save_LDFLAGS=$LDFLAGS
12600     save_libdir=$libdir
12601     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12602          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12603     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h.  */
12605
12606 int
12607 main ()
12608 {
12609
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 if ac_fn_c_try_link "$LINENO"; then :
12615   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12616   lt_cv_shlibpath_overrides_runpath=yes
12617 fi
12618 fi
12619 rm -f core conftest.err conftest.$ac_objext \
12620     conftest$ac_exeext conftest.$ac_ext
12621     LDFLAGS=$save_LDFLAGS
12622     libdir=$save_libdir
12623
12624 fi
12625
12626   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12627
12628   # This implies no fast_install, which is unacceptable.
12629   # Some rework will be needed to allow for fast_install
12630   # before this can be enabled.
12631   hardcode_into_libs=yes
12632
12633   # Append ld.so.conf contents to the search path
12634   if test -f /etc/ld.so.conf; then
12635     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' ' '`
12636     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12637   fi
12638
12639   # We used to test for /lib/ld.so.1 and disable shared libraries on
12640   # powerpc, because MkLinux only supported shared libraries with the
12641   # GNU dynamic linker.  Since this was broken with cross compilers,
12642   # most powerpc-linux boxes support dynamic linking these days and
12643   # people can always --disable-shared, the test was removed, and we
12644   # assume the GNU/Linux dynamic linker is in use.
12645   dynamic_linker='GNU/Linux ld.so'
12646   ;;
12647
12648 netbsd*)
12649   version_type=sunos
12650   need_lib_prefix=no
12651   need_version=no
12652   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12654     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12655     dynamic_linker='NetBSD (a.out) ld.so'
12656   else
12657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12658     soname_spec='${libname}${release}${shared_ext}$major'
12659     dynamic_linker='NetBSD ld.elf_so'
12660   fi
12661   shlibpath_var=LD_LIBRARY_PATH
12662   shlibpath_overrides_runpath=yes
12663   hardcode_into_libs=yes
12664   ;;
12665
12666 newsos6)
12667   version_type=linux # correct to gnu/linux during the next big refactor
12668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12669   shlibpath_var=LD_LIBRARY_PATH
12670   shlibpath_overrides_runpath=yes
12671   ;;
12672
12673 *nto* | *qnx*)
12674   version_type=qnx
12675   need_lib_prefix=no
12676   need_version=no
12677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12678   soname_spec='${libname}${release}${shared_ext}$major'
12679   shlibpath_var=LD_LIBRARY_PATH
12680   shlibpath_overrides_runpath=no
12681   hardcode_into_libs=yes
12682   dynamic_linker='ldqnx.so'
12683   ;;
12684
12685 openbsd*)
12686   version_type=sunos
12687   sys_lib_dlsearch_path_spec="/usr/lib"
12688   need_lib_prefix=no
12689   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12690   case $host_os in
12691     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12692     *)                          need_version=no  ;;
12693   esac
12694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12695   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12696   shlibpath_var=LD_LIBRARY_PATH
12697   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12698     case $host_os in
12699       openbsd2.[89] | openbsd2.[89].*)
12700         shlibpath_overrides_runpath=no
12701         ;;
12702       *)
12703         shlibpath_overrides_runpath=yes
12704         ;;
12705       esac
12706   else
12707     shlibpath_overrides_runpath=yes
12708   fi
12709   ;;
12710
12711 os2*)
12712   libname_spec='$name'
12713   shrext_cmds=".dll"
12714   need_lib_prefix=no
12715   library_names_spec='$libname${shared_ext} $libname.a'
12716   dynamic_linker='OS/2 ld.exe'
12717   shlibpath_var=LIBPATH
12718   ;;
12719
12720 osf3* | osf4* | osf5*)
12721   version_type=osf
12722   need_lib_prefix=no
12723   need_version=no
12724   soname_spec='${libname}${release}${shared_ext}$major'
12725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12726   shlibpath_var=LD_LIBRARY_PATH
12727   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12728   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12729   ;;
12730
12731 rdos*)
12732   dynamic_linker=no
12733   ;;
12734
12735 solaris*)
12736   version_type=linux # correct to gnu/linux during the next big refactor
12737   need_lib_prefix=no
12738   need_version=no
12739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12740   soname_spec='${libname}${release}${shared_ext}$major'
12741   shlibpath_var=LD_LIBRARY_PATH
12742   shlibpath_overrides_runpath=yes
12743   hardcode_into_libs=yes
12744   # ldd complains unless libraries are executable
12745   postinstall_cmds='chmod +x $lib'
12746   ;;
12747
12748 sunos4*)
12749   version_type=sunos
12750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12751   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12752   shlibpath_var=LD_LIBRARY_PATH
12753   shlibpath_overrides_runpath=yes
12754   if test "$with_gnu_ld" = yes; then
12755     need_lib_prefix=no
12756   fi
12757   need_version=yes
12758   ;;
12759
12760 sysv4 | sysv4.3*)
12761   version_type=linux # correct to gnu/linux during the next big refactor
12762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12763   soname_spec='${libname}${release}${shared_ext}$major'
12764   shlibpath_var=LD_LIBRARY_PATH
12765   case $host_vendor in
12766     sni)
12767       shlibpath_overrides_runpath=no
12768       need_lib_prefix=no
12769       runpath_var=LD_RUN_PATH
12770       ;;
12771     siemens)
12772       need_lib_prefix=no
12773       ;;
12774     motorola)
12775       need_lib_prefix=no
12776       need_version=no
12777       shlibpath_overrides_runpath=no
12778       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12779       ;;
12780   esac
12781   ;;
12782
12783 sysv4*MP*)
12784   if test -d /usr/nec ;then
12785     version_type=linux # correct to gnu/linux during the next big refactor
12786     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12787     soname_spec='$libname${shared_ext}.$major'
12788     shlibpath_var=LD_LIBRARY_PATH
12789   fi
12790   ;;
12791
12792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12793   version_type=freebsd-elf
12794   need_lib_prefix=no
12795   need_version=no
12796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12797   soname_spec='${libname}${release}${shared_ext}$major'
12798   shlibpath_var=LD_LIBRARY_PATH
12799   shlibpath_overrides_runpath=yes
12800   hardcode_into_libs=yes
12801   if test "$with_gnu_ld" = yes; then
12802     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12803   else
12804     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12805     case $host_os in
12806       sco3.2v5*)
12807         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12808         ;;
12809     esac
12810   fi
12811   sys_lib_dlsearch_path_spec='/usr/lib'
12812   ;;
12813
12814 tpf*)
12815   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12816   version_type=linux # correct to gnu/linux during the next big refactor
12817   need_lib_prefix=no
12818   need_version=no
12819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820   shlibpath_var=LD_LIBRARY_PATH
12821   shlibpath_overrides_runpath=no
12822   hardcode_into_libs=yes
12823   ;;
12824
12825 uts4*)
12826   version_type=linux # correct to gnu/linux during the next big refactor
12827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12828   soname_spec='${libname}${release}${shared_ext}$major'
12829   shlibpath_var=LD_LIBRARY_PATH
12830   ;;
12831
12832 *)
12833   dynamic_linker=no
12834   ;;
12835 esac
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12837 $as_echo "$dynamic_linker" >&6; }
12838 test "$dynamic_linker" = no && can_build_shared=no
12839
12840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12841 if test "$GCC" = yes; then
12842   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12843 fi
12844
12845 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12846   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12847 fi
12848 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12849   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12850 fi
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12944 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12945 hardcode_action=
12946 if test -n "$hardcode_libdir_flag_spec" ||
12947    test -n "$runpath_var" ||
12948    test "X$hardcode_automatic" = "Xyes" ; then
12949
12950   # We can hardcode non-existent directories.
12951   if test "$hardcode_direct" != no &&
12952      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12953      # have to relink, otherwise we might link with an installed library
12954      # when we should be linking with a yet-to-be-installed one
12955      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12956      test "$hardcode_minus_L" != no; then
12957     # Linking always hardcodes the temporary library directory.
12958     hardcode_action=relink
12959   else
12960     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12961     hardcode_action=immediate
12962   fi
12963 else
12964   # We cannot hardcode anything, or else we can only hardcode existing
12965   # directories.
12966   hardcode_action=unsupported
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12969 $as_echo "$hardcode_action" >&6; }
12970
12971 if test "$hardcode_action" = relink ||
12972    test "$inherit_rpath" = yes; then
12973   # Fast installation is not supported
12974   enable_fast_install=no
12975 elif test "$shlibpath_overrides_runpath" = yes ||
12976      test "$enable_shared" = no; then
12977   # Fast installation is not necessary
12978   enable_fast_install=needless
12979 fi
12980
12981
12982
12983
12984
12985
12986   if test "x$enable_dlopen" != xyes; then
12987   enable_dlopen=unknown
12988   enable_dlopen_self=unknown
12989   enable_dlopen_self_static=unknown
12990 else
12991   lt_cv_dlopen=no
12992   lt_cv_dlopen_libs=
12993
12994   case $host_os in
12995   beos*)
12996     lt_cv_dlopen="load_add_on"
12997     lt_cv_dlopen_libs=
12998     lt_cv_dlopen_self=yes
12999     ;;
13000
13001   mingw* | pw32* | cegcc*)
13002     lt_cv_dlopen="LoadLibrary"
13003     lt_cv_dlopen_libs=
13004     ;;
13005
13006   cygwin*)
13007     lt_cv_dlopen="dlopen"
13008     lt_cv_dlopen_libs=
13009     ;;
13010
13011   darwin*)
13012   # if libdl is installed we need to link against it
13013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13014 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13015 if ${ac_cv_lib_dl_dlopen+:} false; then :
13016   $as_echo_n "(cached) " >&6
13017 else
13018   ac_check_lib_save_LIBS=$LIBS
13019 LIBS="-ldl  $LIBS"
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h.  */
13022
13023 /* Override any GCC internal prototype to avoid an error.
13024    Use char because int might match the return type of a GCC
13025    builtin and then its argument prototype would still apply.  */
13026 #ifdef __cplusplus
13027 extern "C"
13028 #endif
13029 char dlopen ();
13030 int
13031 main ()
13032 {
13033 return dlopen ();
13034   ;
13035   return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_link "$LINENO"; then :
13039   ac_cv_lib_dl_dlopen=yes
13040 else
13041   ac_cv_lib_dl_dlopen=no
13042 fi
13043 rm -f core conftest.err conftest.$ac_objext \
13044     conftest$ac_exeext conftest.$ac_ext
13045 LIBS=$ac_check_lib_save_LIBS
13046 fi
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13048 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13049 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13050   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13051 else
13052
13053     lt_cv_dlopen="dyld"
13054     lt_cv_dlopen_libs=
13055     lt_cv_dlopen_self=yes
13056
13057 fi
13058
13059     ;;
13060
13061   *)
13062     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13063 if test "x$ac_cv_func_shl_load" = xyes; then :
13064   lt_cv_dlopen="shl_load"
13065 else
13066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13067 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13068 if ${ac_cv_lib_dld_shl_load+:} false; then :
13069   $as_echo_n "(cached) " >&6
13070 else
13071   ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-ldld  $LIBS"
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h.  */
13075
13076 /* Override any GCC internal prototype to avoid an error.
13077    Use char because int might match the return type of a GCC
13078    builtin and then its argument prototype would still apply.  */
13079 #ifdef __cplusplus
13080 extern "C"
13081 #endif
13082 char shl_load ();
13083 int
13084 main ()
13085 {
13086 return shl_load ();
13087   ;
13088   return 0;
13089 }
13090 _ACEOF
13091 if ac_fn_c_try_link "$LINENO"; then :
13092   ac_cv_lib_dld_shl_load=yes
13093 else
13094   ac_cv_lib_dld_shl_load=no
13095 fi
13096 rm -f core conftest.err conftest.$ac_objext \
13097     conftest$ac_exeext conftest.$ac_ext
13098 LIBS=$ac_check_lib_save_LIBS
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13101 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13102 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13103   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13104 else
13105   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13106 if test "x$ac_cv_func_dlopen" = xyes; then :
13107   lt_cv_dlopen="dlopen"
13108 else
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13110 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13111 if ${ac_cv_lib_dl_dlopen+:} false; then :
13112   $as_echo_n "(cached) " >&6
13113 else
13114   ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-ldl  $LIBS"
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h.  */
13118
13119 /* Override any GCC internal prototype to avoid an error.
13120    Use char because int might match the return type of a GCC
13121    builtin and then its argument prototype would still apply.  */
13122 #ifdef __cplusplus
13123 extern "C"
13124 #endif
13125 char dlopen ();
13126 int
13127 main ()
13128 {
13129 return dlopen ();
13130   ;
13131   return 0;
13132 }
13133 _ACEOF
13134 if ac_fn_c_try_link "$LINENO"; then :
13135   ac_cv_lib_dl_dlopen=yes
13136 else
13137   ac_cv_lib_dl_dlopen=no
13138 fi
13139 rm -f core conftest.err conftest.$ac_objext \
13140     conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13144 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13145 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13146   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13147 else
13148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13149 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13150 if ${ac_cv_lib_svld_dlopen+:} false; then :
13151   $as_echo_n "(cached) " >&6
13152 else
13153   ac_check_lib_save_LIBS=$LIBS
13154 LIBS="-lsvld  $LIBS"
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h.  */
13157
13158 /* Override any GCC internal prototype to avoid an error.
13159    Use char because int might match the return type of a GCC
13160    builtin and then its argument prototype would still apply.  */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 char dlopen ();
13165 int
13166 main ()
13167 {
13168 return dlopen ();
13169   ;
13170   return 0;
13171 }
13172 _ACEOF
13173 if ac_fn_c_try_link "$LINENO"; then :
13174   ac_cv_lib_svld_dlopen=yes
13175 else
13176   ac_cv_lib_svld_dlopen=no
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext \
13179     conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS
13181 fi
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13183 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13184 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13185   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13186 else
13187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13188 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13189 if ${ac_cv_lib_dld_dld_link+:} false; then :
13190   $as_echo_n "(cached) " >&6
13191 else
13192   ac_check_lib_save_LIBS=$LIBS
13193 LIBS="-ldld  $LIBS"
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h.  */
13196
13197 /* Override any GCC internal prototype to avoid an error.
13198    Use char because int might match the return type of a GCC
13199    builtin and then its argument prototype would still apply.  */
13200 #ifdef __cplusplus
13201 extern "C"
13202 #endif
13203 char dld_link ();
13204 int
13205 main ()
13206 {
13207 return dld_link ();
13208   ;
13209   return 0;
13210 }
13211 _ACEOF
13212 if ac_fn_c_try_link "$LINENO"; then :
13213   ac_cv_lib_dld_dld_link=yes
13214 else
13215   ac_cv_lib_dld_dld_link=no
13216 fi
13217 rm -f core conftest.err conftest.$ac_objext \
13218     conftest$ac_exeext conftest.$ac_ext
13219 LIBS=$ac_check_lib_save_LIBS
13220 fi
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13222 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13223 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13224   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13225 fi
13226
13227
13228 fi
13229
13230
13231 fi
13232
13233
13234 fi
13235
13236
13237 fi
13238
13239
13240 fi
13241
13242     ;;
13243   esac
13244
13245   if test "x$lt_cv_dlopen" != xno; then
13246     enable_dlopen=yes
13247   else
13248     enable_dlopen=no
13249   fi
13250
13251   case $lt_cv_dlopen in
13252   dlopen)
13253     save_CPPFLAGS="$CPPFLAGS"
13254     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13255
13256     save_LDFLAGS="$LDFLAGS"
13257     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13258
13259     save_LIBS="$LIBS"
13260     LIBS="$lt_cv_dlopen_libs $LIBS"
13261
13262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13263 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13264 if ${lt_cv_dlopen_self+:} false; then :
13265   $as_echo_n "(cached) " >&6
13266 else
13267           if test "$cross_compiling" = yes; then :
13268   lt_cv_dlopen_self=cross
13269 else
13270   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13271   lt_status=$lt_dlunknown
13272   cat > conftest.$ac_ext <<_LT_EOF
13273 #line $LINENO "configure"
13274 #include "confdefs.h"
13275
13276 #if HAVE_DLFCN_H
13277 #include <dlfcn.h>
13278 #endif
13279
13280 #include <stdio.h>
13281
13282 #ifdef RTLD_GLOBAL
13283 #  define LT_DLGLOBAL           RTLD_GLOBAL
13284 #else
13285 #  ifdef DL_GLOBAL
13286 #    define LT_DLGLOBAL         DL_GLOBAL
13287 #  else
13288 #    define LT_DLGLOBAL         0
13289 #  endif
13290 #endif
13291
13292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13293    find out it does not work in some platform. */
13294 #ifndef LT_DLLAZY_OR_NOW
13295 #  ifdef RTLD_LAZY
13296 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13297 #  else
13298 #    ifdef DL_LAZY
13299 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13300 #    else
13301 #      ifdef RTLD_NOW
13302 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13303 #      else
13304 #        ifdef DL_NOW
13305 #          define LT_DLLAZY_OR_NOW      DL_NOW
13306 #        else
13307 #          define LT_DLLAZY_OR_NOW      0
13308 #        endif
13309 #      endif
13310 #    endif
13311 #  endif
13312 #endif
13313
13314 /* When -fvisbility=hidden is used, assume the code has been annotated
13315    correspondingly for the symbols needed.  */
13316 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13317 int fnord () __attribute__((visibility("default")));
13318 #endif
13319
13320 int fnord () { return 42; }
13321 int main ()
13322 {
13323   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13324   int status = $lt_dlunknown;
13325
13326   if (self)
13327     {
13328       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13329       else
13330         {
13331           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13332           else puts (dlerror ());
13333         }
13334       /* dlclose (self); */
13335     }
13336   else
13337     puts (dlerror ());
13338
13339   return status;
13340 }
13341 _LT_EOF
13342   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13343   (eval $ac_link) 2>&5
13344   ac_status=$?
13345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13346   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13347     (./conftest; exit; ) >&5 2>/dev/null
13348     lt_status=$?
13349     case x$lt_status in
13350       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13351       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13352       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13353     esac
13354   else :
13355     # compilation failed
13356     lt_cv_dlopen_self=no
13357   fi
13358 fi
13359 rm -fr conftest*
13360
13361
13362 fi
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13364 $as_echo "$lt_cv_dlopen_self" >&6; }
13365
13366     if test "x$lt_cv_dlopen_self" = xyes; then
13367       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13368       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13369 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13370 if ${lt_cv_dlopen_self_static+:} false; then :
13371   $as_echo_n "(cached) " >&6
13372 else
13373           if test "$cross_compiling" = yes; then :
13374   lt_cv_dlopen_self_static=cross
13375 else
13376   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13377   lt_status=$lt_dlunknown
13378   cat > conftest.$ac_ext <<_LT_EOF
13379 #line $LINENO "configure"
13380 #include "confdefs.h"
13381
13382 #if HAVE_DLFCN_H
13383 #include <dlfcn.h>
13384 #endif
13385
13386 #include <stdio.h>
13387
13388 #ifdef RTLD_GLOBAL
13389 #  define LT_DLGLOBAL           RTLD_GLOBAL
13390 #else
13391 #  ifdef DL_GLOBAL
13392 #    define LT_DLGLOBAL         DL_GLOBAL
13393 #  else
13394 #    define LT_DLGLOBAL         0
13395 #  endif
13396 #endif
13397
13398 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13399    find out it does not work in some platform. */
13400 #ifndef LT_DLLAZY_OR_NOW
13401 #  ifdef RTLD_LAZY
13402 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13403 #  else
13404 #    ifdef DL_LAZY
13405 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13406 #    else
13407 #      ifdef RTLD_NOW
13408 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13409 #      else
13410 #        ifdef DL_NOW
13411 #          define LT_DLLAZY_OR_NOW      DL_NOW
13412 #        else
13413 #          define LT_DLLAZY_OR_NOW      0
13414 #        endif
13415 #      endif
13416 #    endif
13417 #  endif
13418 #endif
13419
13420 /* When -fvisbility=hidden is used, assume the code has been annotated
13421    correspondingly for the symbols needed.  */
13422 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13423 int fnord () __attribute__((visibility("default")));
13424 #endif
13425
13426 int fnord () { return 42; }
13427 int main ()
13428 {
13429   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13430   int status = $lt_dlunknown;
13431
13432   if (self)
13433     {
13434       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13435       else
13436         {
13437           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13438           else puts (dlerror ());
13439         }
13440       /* dlclose (self); */
13441     }
13442   else
13443     puts (dlerror ());
13444
13445   return status;
13446 }
13447 _LT_EOF
13448   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13449   (eval $ac_link) 2>&5
13450   ac_status=$?
13451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13452   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13453     (./conftest; exit; ) >&5 2>/dev/null
13454     lt_status=$?
13455     case x$lt_status in
13456       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13457       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13458       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13459     esac
13460   else :
13461     # compilation failed
13462     lt_cv_dlopen_self_static=no
13463   fi
13464 fi
13465 rm -fr conftest*
13466
13467
13468 fi
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13470 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13471     fi
13472
13473     CPPFLAGS="$save_CPPFLAGS"
13474     LDFLAGS="$save_LDFLAGS"
13475     LIBS="$save_LIBS"
13476     ;;
13477   esac
13478
13479   case $lt_cv_dlopen_self in
13480   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13481   *) enable_dlopen_self=unknown ;;
13482   esac
13483
13484   case $lt_cv_dlopen_self_static in
13485   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13486   *) enable_dlopen_self_static=unknown ;;
13487   esac
13488 fi
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506 striplib=
13507 old_striplib=
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13509 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13510 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13511   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13512   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13514 $as_echo "yes" >&6; }
13515 else
13516 # FIXME - insert some real tests, host_os isn't really good enough
13517   case $host_os in
13518   darwin*)
13519     if test -n "$STRIP" ; then
13520       striplib="$STRIP -x"
13521       old_striplib="$STRIP -S"
13522       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13523 $as_echo "yes" >&6; }
13524     else
13525       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13527     fi
13528     ;;
13529   *)
13530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13532     ;;
13533   esac
13534 fi
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547   # Report which library types will actually be built
13548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13549 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13551 $as_echo "$can_build_shared" >&6; }
13552
13553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13554 $as_echo_n "checking whether to build shared libraries... " >&6; }
13555   test "$can_build_shared" = "no" && enable_shared=no
13556
13557   # On AIX, shared libraries and static libraries use the same namespace, and
13558   # are all built from PIC.
13559   case $host_os in
13560   aix3*)
13561     test "$enable_shared" = yes && enable_static=no
13562     if test -n "$RANLIB"; then
13563       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13564       postinstall_cmds='$RANLIB $lib'
13565     fi
13566     ;;
13567
13568   aix[4-9]*)
13569     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13570       test "$enable_shared" = yes && enable_static=no
13571     fi
13572     ;;
13573   esac
13574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13575 $as_echo "$enable_shared" >&6; }
13576
13577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13578 $as_echo_n "checking whether to build static libraries... " >&6; }
13579   # Make sure either enable_shared or enable_static is yes.
13580   test "$enable_shared" = yes || enable_static=yes
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13582 $as_echo "$enable_static" >&6; }
13583
13584
13585
13586
13587 fi
13588 ac_ext=c
13589 ac_cpp='$CPP $CPPFLAGS'
13590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13593
13594 CC="$lt_save_CC"
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610         ac_config_commands="$ac_config_commands libtool"
13611
13612
13613
13614
13615 # Only expand once:
13616
13617
13618
13619 if test "$enable_shared" = "no"; then
13620     with_noexec=no
13621     enable_dlopen=no
13622     lt_cv_dlopen=none
13623     lt_cv_dlopen_libs=
13624     ac_cv_func_dlopen=no
13625 else
13626     eval _shrext="$shrext_cmds"
13627     # Darwin uses .dylib for libraries but .so for modules
13628     if test X"$_shrext" = X".dylib"; then
13629         SOEXT=".so"
13630     else
13631         SOEXT="$_shrext"
13632     fi
13633 fi
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13635 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13636
13637 # Check whether --with-noexec was given.
13638 if test "${with_noexec+set}" = set; then :
13639   withval=$with_noexec; case $with_noexec in
13640     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
13641                 ;;
13642     no)         ;;
13643     *)          ;;
13644 esac
13645 else
13646   with_noexec="$libexecdir/sudo_noexec$_shrext"
13647 fi
13648
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13650 $as_echo "$with_noexec" >&6; }
13651 NOEXECFILE="sudo_noexec$_shrext"
13652 NOEXECDIR="`echo $with_noexec|sed -e 's:^${\([^}]*\)}:$(\1):' -e 's:^\(.*\)/[^/]*:\1:'`"
13653
13654 # Extract the first word of "uname", so it can be a program name with args.
13655 set dummy uname; ac_word=$2
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13657 $as_echo_n "checking for $ac_word... " >&6; }
13658 if ${ac_cv_path_UNAMEPROG+:} false; then :
13659   $as_echo_n "(cached) " >&6
13660 else
13661   case $UNAMEPROG in
13662   [\\/]* | ?:[\\/]*)
13663   ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
13664   ;;
13665   *)
13666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667 for as_dir in $PATH
13668 do
13669   IFS=$as_save_IFS
13670   test -z "$as_dir" && as_dir=.
13671     for ac_exec_ext in '' $ac_executable_extensions; do
13672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13673     ac_cv_path_UNAMEPROG="$as_dir/$ac_word$ac_exec_ext"
13674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13675     break 2
13676   fi
13677 done
13678   done
13679 IFS=$as_save_IFS
13680
13681   test -z "$ac_cv_path_UNAMEPROG" && ac_cv_path_UNAMEPROG="uname"
13682   ;;
13683 esac
13684 fi
13685 UNAMEPROG=$ac_cv_path_UNAMEPROG
13686 if test -n "$UNAMEPROG"; then
13687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13688 $as_echo "$UNAMEPROG" >&6; }
13689 else
13690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13692 fi
13693
13694
13695 # Extract the first word of "tr", so it can be a program name with args.
13696 set dummy tr; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698 $as_echo_n "checking for $ac_word... " >&6; }
13699 if ${ac_cv_path_TRPROG+:} false; then :
13700   $as_echo_n "(cached) " >&6
13701 else
13702   case $TRPROG in
13703   [\\/]* | ?:[\\/]*)
13704   ac_cv_path_TRPROG="$TRPROG" # Let the user override the test with a path.
13705   ;;
13706   *)
13707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708 for as_dir in $PATH
13709 do
13710   IFS=$as_save_IFS
13711   test -z "$as_dir" && as_dir=.
13712     for ac_exec_ext in '' $ac_executable_extensions; do
13713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13714     ac_cv_path_TRPROG="$as_dir/$ac_word$ac_exec_ext"
13715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13716     break 2
13717   fi
13718 done
13719   done
13720 IFS=$as_save_IFS
13721
13722   test -z "$ac_cv_path_TRPROG" && ac_cv_path_TRPROG="tr"
13723   ;;
13724 esac
13725 fi
13726 TRPROG=$ac_cv_path_TRPROG
13727 if test -n "$TRPROG"; then
13728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13729 $as_echo "$TRPROG" >&6; }
13730 else
13731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732 $as_echo "no" >&6; }
13733 fi
13734
13735
13736 # Extract the first word of "mandoc", so it can be a program name with args.
13737 set dummy mandoc; ac_word=$2
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739 $as_echo_n "checking for $ac_word... " >&6; }
13740 if ${ac_cv_path_MANDOCPROG+:} false; then :
13741   $as_echo_n "(cached) " >&6
13742 else
13743   case $MANDOCPROG in
13744   [\\/]* | ?:[\\/]*)
13745   ac_cv_path_MANDOCPROG="$MANDOCPROG" # Let the user override the test with a path.
13746   ;;
13747   *)
13748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749 for as_dir in $PATH
13750 do
13751   IFS=$as_save_IFS
13752   test -z "$as_dir" && as_dir=.
13753     for ac_exec_ext in '' $ac_executable_extensions; do
13754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13755     ac_cv_path_MANDOCPROG="$as_dir/$ac_word$ac_exec_ext"
13756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13757     break 2
13758   fi
13759 done
13760   done
13761 IFS=$as_save_IFS
13762
13763   test -z "$ac_cv_path_MANDOCPROG" && ac_cv_path_MANDOCPROG="mandoc"
13764   ;;
13765 esac
13766 fi
13767 MANDOCPROG=$ac_cv_path_MANDOCPROG
13768 if test -n "$MANDOCPROG"; then
13769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOCPROG" >&5
13770 $as_echo "$MANDOCPROG" >&6; }
13771 else
13772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773 $as_echo "no" >&6; }
13774 fi
13775
13776
13777 if test "$MANDOCPROG" != "mandoc"; then
13778     : ${MANTYPE='mdoc'}
13779 else
13780     # Extract the first word of "nroff", so it can be a program name with args.
13781 set dummy nroff; ac_word=$2
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13783 $as_echo_n "checking for $ac_word... " >&6; }
13784 if ${ac_cv_path_NROFFPROG+:} false; then :
13785   $as_echo_n "(cached) " >&6
13786 else
13787   case $NROFFPROG in
13788   [\\/]* | ?:[\\/]*)
13789   ac_cv_path_NROFFPROG="$NROFFPROG" # Let the user override the test with a path.
13790   ;;
13791   *)
13792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13793 for as_dir in $PATH
13794 do
13795   IFS=$as_save_IFS
13796   test -z "$as_dir" && as_dir=.
13797     for ac_exec_ext in '' $ac_executable_extensions; do
13798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13799     ac_cv_path_NROFFPROG="$as_dir/$ac_word$ac_exec_ext"
13800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13801     break 2
13802   fi
13803 done
13804   done
13805 IFS=$as_save_IFS
13806
13807   ;;
13808 esac
13809 fi
13810 NROFFPROG=$ac_cv_path_NROFFPROG
13811 if test -n "$NROFFPROG"; then
13812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13813 $as_echo "$NROFFPROG" >&6; }
13814 else
13815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 $as_echo "no" >&6; }
13817 fi
13818
13819
13820     if test -n "$NROFFPROG"; then
13821         test -n "$MANTYPE" && sudo_cv_var_mantype="$MANTYPE"
13822         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which macro set to use for manual pages" >&5
13823 $as_echo_n "checking which macro set to use for manual pages... " >&6; }
13824 if ${sudo_cv_var_mantype+:} false; then :
13825   $as_echo_n "(cached) " >&6
13826 else
13827
13828                 sudo_cv_var_mantype="man"
13829                 echo ".Sh NAME" > conftest
13830                 echo ".Nm sudo" >> conftest
13831                 echo ".Nd sudo" >> conftest
13832                 echo ".Sh DESCRIPTION" >> conftest
13833                 echo "sudo" >> conftest
13834                 if $NROFFPROG -mdoc conftest >/dev/null 2>&1; then
13835                     sudo_cv_var_mantype="mdoc"
13836                 fi
13837                 rm -f conftest
13838
13839
13840 fi
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_mantype" >&5
13842 $as_echo "$sudo_cv_var_mantype" >&6; }
13843         MANTYPE="$sudo_cv_var_mantype"
13844     else
13845         MANTYPE=cat
13846         MANDIRTYPE=cat
13847         mansrcdir='$(srcdir)'
13848     fi
13849 fi
13850
13851 if test -n "$sudo_cv_prev_host"; then
13852     if test "$sudo_cv_prev_host" != "$host"; then
13853         as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13854     else
13855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13856 $as_echo_n "checking previous host type... " >&6; }
13857         if ${sudo_cv_prev_host+:} false; then :
13858   $as_echo_n "(cached) " >&6
13859 else
13860   sudo_cv_prev_host="$host"
13861 fi
13862
13863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13864 $as_echo "$sudo_cv_prev_host" >&6; }
13865     fi
13866 else
13867     # this will produce no output since there is no cached value
13868     if ${sudo_cv_prev_host+:} false; then :
13869   $as_echo_n "(cached) " >&6
13870 else
13871   sudo_cv_prev_host="$host"
13872 fi
13873
13874 fi
13875
13876 if test -n "$host_os"; then
13877     OS=`echo $host_os | sed 's/[0-9].*//'`
13878     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13879     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13880 else
13881     OS="unknown"
13882     OSREV=0
13883     OSMAJOR=0
13884 fi
13885
13886 case "$host" in
13887     *-*-sunos4*)
13888                 # LD_PRELOAD is space-delimited
13889                 RTLD_PRELOAD_DELIM=" "
13890
13891                 # getcwd(3) opens a pipe to getpwd(1)!?!
13892                 BROKEN_GETCWD=1
13893
13894                 # system headers lack prototypes but gcc helps...
13895                 if test -n "$GCC"; then
13896                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13897                 fi
13898
13899                 shadow_funcs="getpwanam issecure"
13900                 ;;
13901     *-*-solaris2*)
13902                 # LD_PRELOAD is space-delimited
13903                 RTLD_PRELOAD_DELIM=" "
13904
13905                 # For implementing getgrouplist()
13906                 for ac_func in _getgroupsbymember
13907 do :
13908   ac_fn_c_check_func "$LINENO" "_getgroupsbymember" "ac_cv_func__getgroupsbymember"
13909 if test "x$ac_cv_func__getgroupsbymember" = xyes; then :
13910   cat >>confdefs.h <<_ACEOF
13911 #define HAVE__GETGROUPSBYMEMBER 1
13912 _ACEOF
13913
13914 fi
13915 done
13916
13917
13918                 # To get the crypt(3) prototype (so we pass -Wall)
13919                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13920                 # AFS support needs -lucb
13921                 if test "$with_AFS" = "yes"; then
13922                     AFS_LIBS="-lc -lucb"
13923                 fi
13924                 : ${mansectsu='1m'}
13925                 : ${mansectform='4'}
13926                 : ${with_rpath='yes'}
13927                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13928                 for ac_func in priv_set
13929 do :
13930   ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13931 if test "x$ac_cv_func_priv_set" = xyes; then :
13932   cat >>confdefs.h <<_ACEOF
13933 #define HAVE_PRIV_SET 1
13934 _ACEOF
13935  PSMAN=1
13936 fi
13937 done
13938
13939                 ;;
13940     *-*-aix*)
13941                 # To get all prototypes (so we pass -Wall)
13942                 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13943                 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
13944                 if test X"$with_blibpath" != X"no"; then
13945                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
13946 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
13947                     O_LDFLAGS="$LDFLAGS"
13948                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
13949                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h.  */
13951
13952 int
13953 main ()
13954 {
13955
13956   ;
13957   return 0;
13958 }
13959 _ACEOF
13960 if ac_fn_c_try_link "$LINENO"; then :
13961
13962                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13963                             blibpath="$with_blibpath"
13964                         elif test -n "$GCC"; then
13965                             blibpath="/usr/lib:/lib:/usr/local/lib"
13966                         else
13967                             blibpath="/usr/lib:/lib"
13968                         fi
13969                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13970 $as_echo "yes" >&6; }
13971
13972 else
13973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13974 $as_echo "no" >&6; }
13975 fi
13976 rm -f core conftest.err conftest.$ac_objext \
13977     conftest$ac_exeext conftest.$ac_ext
13978                 fi
13979                 LDFLAGS="$O_LDFLAGS"
13980
13981                 # On AIX 6 and higher default to PAM, else default to LAM
13982                 if test $OSMAJOR -ge 6; then
13983                     if test X"$with_pam" = X""; then
13984                         AUTH_EXCL_DEF="PAM"
13985                     fi
13986                 else
13987                     if test X"$with_aixauth" = X""; then
13988                         for ac_func in authenticate
13989 do :
13990   ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13991 if test "x$ac_cv_func_authenticate" = xyes; then :
13992   cat >>confdefs.h <<_ACEOF
13993 #define HAVE_AUTHENTICATE 1
13994 _ACEOF
13995  AUTH_EXCL_DEF="AIX_AUTH"
13996 fi
13997 done
13998
13999                     fi
14000                 fi
14001
14002                 # AIX analog of nsswitch.conf, enabled by default
14003
14004 # Check whether --with-netsvc was given.
14005 if test "${with_netsvc+set}" = set; then :
14006   withval=$with_netsvc; case $with_netsvc in
14007                     no)         ;;
14008                     yes)        with_netsvc="/etc/netsvc.conf"
14009                                 ;;
14010                     *)          ;;
14011                 esac
14012 fi
14013
14014                 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
14015                     with_netsvc="/etc/netsvc.conf"
14016                 fi
14017
14018                 # For implementing getgrouplist()
14019                 for ac_func in getgrset
14020 do :
14021   ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
14022 if test "x$ac_cv_func_getgrset" = xyes; then :
14023   cat >>confdefs.h <<_ACEOF
14024 #define HAVE_GETGRSET 1
14025 _ACEOF
14026
14027 fi
14028 done
14029
14030
14031                 # LDR_PRELOAD is only supported in AIX 5.3 and later
14032                 if test $OSMAJOR -lt 5; then
14033                     with_noexec=no
14034                 else
14035                     RTLD_PRELOAD_VAR="LDR_PRELOAD"
14036                 fi
14037
14038                 # AIX-specific functions
14039                 for ac_func in getuserattr setauthdb
14040 do :
14041   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14043 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14044   cat >>confdefs.h <<_ACEOF
14045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14046 _ACEOF
14047
14048 fi
14049 done
14050
14051                 COMMON_OBJS="$COMMON_OBJS aix.lo"
14052                 ;;
14053     *-*-hiuxmpp*)
14054                 : ${mansectsu='1m'}
14055                 : ${mansectform='4'}
14056
14057                 # HP-UX shared libs must be executable
14058                 SHLIB_MODE=0755
14059                 ;;
14060     *-*-hpux*)
14061                 # AFS support needs -lBSD
14062                 if test "$with_AFS" = "yes"; then
14063                     AFS_LIBS="-lc -lBSD"
14064                 fi
14065                 : ${mansectsu='1m'}
14066                 : ${mansectform='4'}
14067
14068                 # HP-UX shared libs must be executable
14069                 SHLIB_MODE=0755
14070
14071                 # The HP bundled compiler cannot generate shared libs
14072                 if test -z "$GCC"; then
14073                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
14074 $as_echo_n "checking for HP bundled C compiler... " >&6; }
14075 if ${sudo_cv_var_hpccbundled+:} false; then :
14076   $as_echo_n "(cached) " >&6
14077 else
14078   if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
14079                             sudo_cv_var_hpccbundled=yes
14080                         else
14081                             sudo_cv_var_hpccbundled=no
14082                         fi
14083
14084 fi
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
14086 $as_echo "$sudo_cv_var_hpccbundled" >&6; }
14087                     if test "$sudo_cv_var_hpccbundled" = "yes"; then
14088                         as_fn_error $? "The HP bundled C compiler is unable to build Sudo, you must use gcc or the HP ANSI C compiler instead." "$LINENO" 5
14089                     fi
14090                 fi
14091
14092                 # Build PA-RISC1.1 objects for better portability
14093                 case "$host_cpu" in
14094                     hppa[2-9]*)
14095                         _CFLAGS="$CFLAGS"
14096                         if test -n "$GCC"; then
14097                             portable_flag="-march=1.1"
14098                         else
14099                             portable_flag="+DAportable"
14100                         fi
14101                         CFLAGS="$CFLAGS $portable_flag"
14102                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
14103 $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
14104 if ${sudo_cv_var_daportable+:} false; then :
14105   $as_echo_n "(cached) " >&6
14106 else
14107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h.  */
14109
14110 int
14111 main ()
14112 {
14113
14114   ;
14115   return 0;
14116 }
14117 _ACEOF
14118 if ac_fn_c_try_link "$LINENO"; then :
14119   sudo_cv_var_daportable=yes
14120 else
14121   sudo_cv_var_daportable=no
14122
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext \
14125     conftest$ac_exeext conftest.$ac_ext
14126
14127
14128 fi
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
14130 $as_echo "$sudo_cv_var_daportable" >&6; }
14131                         if test X"$sudo_cv_var_daportable" != X"yes"; then
14132                             CFLAGS="$_CFLAGS"
14133                         fi
14134                         ;;
14135                 esac
14136
14137                 case "$host" in
14138                         *-*-hpux[1-8].*)
14139                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14140
14141                         ;;
14142                         *-*-hpux9.*)
14143                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14144
14145
14146                             shadow_funcs="getspwuid"
14147
14148                             # DCE support (requires ANSI C compiler)
14149                             if test "$with_DCE" = "yes"; then
14150                                 # order of libs in 9.X is important. -lc_r must be last
14151                                 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
14152                                 LIBS="${LIBS} -ldce -lM -lc_r"
14153                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
14154                             fi
14155                         ;;
14156                         *-*-hpux10.*)
14157                             shadow_funcs="getprpwnam iscomsec"
14158                             shadow_libs="-lsec"
14159                             # HP-UX 10.20 libc has an incompatible getline
14160                             ac_cv_func_getline="no"
14161                         ;;
14162                         *)
14163                             shadow_funcs="getspnam iscomsec"
14164                             shadow_libs="-lsec"
14165                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14166                         ;;
14167                 esac
14168                 ;;
14169     *-dec-osf*)
14170                 # ignore envariables wrt dynamic lib path
14171                 # XXX - sudo LDFLAGS instead?
14172                 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
14173
14174                 : ${CHECKSIA='true'}
14175                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
14176 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
14177                 # Check whether --enable-sia was given.
14178 if test "${enable_sia+set}" = set; then :
14179   enableval=$enable_sia;  case "$enableval" in
14180                     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14182                                 CHECKSIA=true
14183                                 ;;
14184                     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14185 $as_echo "yes" >&6; }
14186                                 CHECKSIA=false
14187                                 ;;
14188                     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189 $as_echo "no" >&6; }
14190                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
14191 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
14192                                 ;;
14193                   esac
14194
14195 else
14196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14198 fi
14199
14200
14201                 shadow_funcs="getprpwnam dispcrypt"
14202                 # OSF/1 4.x and higher need -ldb too
14203                 if test $OSMAJOR -lt 4; then
14204                     shadow_libs="-lsecurity -laud -lm"
14205                 else
14206                     shadow_libs="-lsecurity -ldb -laud -lm"
14207                 fi
14208
14209                 # use SIA by default, if we have it
14210                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
14211
14212                 #
14213                 # Some versions of Digital Unix ship with a broken
14214                 # copy of prot.h, which we need for shadow passwords.
14215                 # XXX - make should remove this as part of distclean
14216                 #
14217                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
14218 $as_echo_n "checking for broken prot.h... " >&6; }
14219                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h.  */
14221
14222 #include <sys/types.h>
14223 #include <sys/security.h>
14224 #include <prot.h>
14225
14226 int
14227 main ()
14228 {
14229 exit(0);
14230   ;
14231   return 0;
14232 }
14233 _ACEOF
14234 if ac_fn_c_try_compile "$LINENO"; then :
14235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14236 $as_echo "no" >&6; }
14237 else
14238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
14239 $as_echo "yes, fixing locally" >&6; }
14240                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
14241
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244                 # ":DEFAULT" must be appended to _RLD_LIST
14245                 RTLD_PRELOAD_VAR="_RLD_LIST"
14246                 RTLD_PRELOAD_DEFAULT="DEFAULT"
14247                 : ${mansectsu='8'}
14248                 : ${mansectform='4'}
14249                 ;;
14250     *-*-irix*)
14251                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
14252                 if test -z "$NROFFPROG"; then
14253                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14254                         if test -d /usr/share/catman/local; then
14255                             mandir="/usr/share/catman/local"
14256                         else
14257                             mandir="/usr/catman/local"
14258                         fi
14259                     fi
14260                     # Compress cat pages with pack
14261                     MANCOMPRESS='pack'
14262                     MANCOMPRESSEXT='.z'
14263                 else
14264                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14265                         if test -d "/usr/share/man/local"; then
14266                             mandir="/usr/share/man/local"
14267                         else
14268                             mandir="/usr/man/local"
14269                         fi
14270                     fi
14271                 fi
14272                 # IRIX <= 4 needs -lsun
14273                 if test "$OSMAJOR" -le 4; then
14274                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14275 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14276 if ${ac_cv_lib_sun_getpwnam+:} false; then :
14277   $as_echo_n "(cached) " >&6
14278 else
14279   ac_check_lib_save_LIBS=$LIBS
14280 LIBS="-lsun  $LIBS"
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h.  */
14283
14284 /* Override any GCC internal prototype to avoid an error.
14285    Use char because int might match the return type of a GCC
14286    builtin and then its argument prototype would still apply.  */
14287 #ifdef __cplusplus
14288 extern "C"
14289 #endif
14290 char getpwnam ();
14291 int
14292 main ()
14293 {
14294 return getpwnam ();
14295   ;
14296   return 0;
14297 }
14298 _ACEOF
14299 if ac_fn_c_try_link "$LINENO"; then :
14300   ac_cv_lib_sun_getpwnam=yes
14301 else
14302   ac_cv_lib_sun_getpwnam=no
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext \
14305     conftest$ac_exeext conftest.$ac_ext
14306 LIBS=$ac_check_lib_save_LIBS
14307 fi
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14309 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14310 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14311   LIBS="${LIBS} -lsun"
14312 fi
14313
14314                 fi
14315                 # ":DEFAULT" must be appended to _RLD_LIST
14316                 RTLD_PRELOAD_VAR="_RLD_LIST"
14317                 RTLD_PRELOAD_DEFAULT="DEFAULT"
14318                 : ${mansectsu='1m'}
14319                 : ${mansectform='4'}
14320                 ;;
14321     *-*-linux*|*-*-k*bsd*-gnu)
14322                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14323                 # Some Linux versions need to link with -lshadow
14324                 shadow_funcs="getspnam"
14325                 shadow_libs_optional="-lshadow"
14326                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14327                 ;;
14328     *-convex-bsd*)
14329                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14330                 if test -z "$GCC"; then
14331                     CFLAGS="${CFLAGS} -D__STDC__"
14332                 fi
14333
14334                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14335                 shadow_funcs="getprpwnam"
14336                 shadow_libs="-lprot"
14337                 ;;
14338     *-*-ultrix*)
14339                 OS="ultrix"
14340                 shadow_funcs="getauthuid"
14341                 shadow_libs="-lauth"
14342                 ;;
14343     *-*-riscos*)
14344                 LIBS="${LIBS} -lsun -lbsd"
14345                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
14346                 OSDEFS="${OSDEFS} -D_MIPS"
14347                 : ${mansectsu='1m'}
14348                 : ${mansectform='4'}
14349                 ;;
14350     *-*-isc*)
14351                 OSDEFS="${OSDEFS} -D_ISC"
14352                 LIB_CRYPT=1
14353                 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14354
14355                 shadow_funcs="getspnam"
14356                 shadow_libs="-lsec"
14357
14358                 : ${mansectsu='1m'}
14359                 : ${mansectform='4'}
14360                 ;;
14361     *-*-sco*|*-sco-*)
14362                 shadow_funcs="getprpwnam"
14363                 shadow_libs="-lprot -lx"
14364                 : ${mansectsu='1m'}
14365                 : ${mansectform='4'}
14366                 ;;
14367     m88k-motorola-sysv*)
14368                 # motorolla's cc (a variant of gcc) does -O but not -O2
14369                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14370                 : ${mansectsu='1m'}
14371                 : ${mansectform='4'}
14372                 ;;
14373     *-sequent-sysv*)
14374                 shadow_funcs="getspnam"
14375                 shadow_libs="-lsec"
14376                 : ${mansectsu='1m'}
14377                 : ${mansectform='4'}
14378                 : ${with_rpath='yes'}
14379                 ;;
14380     *-ncr-sysv4*|*-ncr-sysvr4*)
14381                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14382 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14383 if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14384   $as_echo_n "(cached) " >&6
14385 else
14386   ac_check_lib_save_LIBS=$LIBS
14387 LIBS="-lc89  $LIBS"
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h.  */
14390
14391 /* Override any GCC internal prototype to avoid an error.
14392    Use char because int might match the return type of a GCC
14393    builtin and then its argument prototype would still apply.  */
14394 #ifdef __cplusplus
14395 extern "C"
14396 #endif
14397 char strcasecmp ();
14398 int
14399 main ()
14400 {
14401 return strcasecmp ();
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 if ac_fn_c_try_link "$LINENO"; then :
14407   ac_cv_lib_c89_strcasecmp=yes
14408 else
14409   ac_cv_lib_c89_strcasecmp=no
14410 fi
14411 rm -f core conftest.err conftest.$ac_objext \
14412     conftest$ac_exeext conftest.$ac_ext
14413 LIBS=$ac_check_lib_save_LIBS
14414 fi
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14416 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14417 if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14418   LIBS="${LIBS} -lc89"
14419 fi
14420
14421                 : ${mansectsu='1m'}
14422                 : ${mansectform='4'}
14423                 : ${with_rpath='yes'}
14424                 ;;
14425     *-ccur-sysv4*|*-ccur-sysvr4*)
14426                 LIBS="${LIBS} -lgen"
14427                 : ${mansectsu='1m'}
14428                 : ${mansectform='4'}
14429                 : ${with_rpath='yes'}
14430                 ;;
14431     *-*-bsdi*)
14432                 SKIP_SETREUID=yes
14433                 # Check for newer BSD auth API
14434                 if test -z "$with_bsdauth"; then
14435                     for ac_func in auth_challenge
14436 do :
14437   ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14438 if test "x$ac_cv_func_auth_challenge" = xyes; then :
14439   cat >>confdefs.h <<_ACEOF
14440 #define HAVE_AUTH_CHALLENGE 1
14441 _ACEOF
14442  AUTH_EXCL_DEF="BSD_AUTH"
14443 fi
14444 done
14445
14446                 fi
14447                 ;;
14448     *-*-freebsd*)
14449                 # FreeBSD has a real setreuid(2) starting with 2.1 and
14450                 # backported to 2.0.5.  We just take 2.1 and above...
14451                 case "$OSREV" in
14452                 0.*|1.*|2.0*)
14453                     SKIP_SETREUID=yes
14454                     ;;
14455                 esac
14456                 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14457                 if test "${with_skey-'no'}" = "yes"; then
14458                      SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14459                 fi
14460                 CHECKSHADOW="false"
14461                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14462                 : ${with_logincap='maybe'}
14463                 # PIE is broken on FreeBSD/ia64
14464                 case "$host_cpu" in
14465                 ia64*)
14466                         enable_pie=no;;
14467                 esac
14468                 ;;
14469     *-*-*openbsd*)
14470                 # OpenBSD has a real setreuid(2) starting with 3.3 but
14471                 # we will use setresuid(2) instead.
14472                 SKIP_SETREUID=yes
14473                 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14474                 CHECKSHADOW="false"
14475                 # OpenBSD >= 3.0 supports BSD auth
14476                 if test -z "$with_bsdauth"; then
14477                     if test "$OSMAJOR" -ge 3; then
14478                         AUTH_EXCL_DEF="BSD_AUTH"
14479                     fi
14480                 fi
14481                 : ${with_logincap='maybe'}
14482                 ;;
14483     *-*-*netbsd*)
14484                 # NetBSD has a real setreuid(2) starting with 1.3.2
14485                 case "$OSREV" in
14486                 0.9*|1.[012]*|1.3|1.3.1)
14487                     SKIP_SETREUID=yes
14488                     ;;
14489                 esac
14490                 CHECKSHADOW="false"
14491                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14492                 : ${with_logincap='maybe'}
14493                 ;;
14494     *-*-dragonfly*)
14495                 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14496                 if test "${with_skey-'no'}" = "yes"; then
14497                      SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14498                 fi
14499                 CHECKSHADOW="false"
14500                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14501                 : ${with_logincap='yes'}
14502                 ;;
14503     *-*-*bsd*)
14504                 CHECKSHADOW="false"
14505                 ;;
14506     *-*-darwin*)
14507                 # Darwin has a real setreuid(2) starting with 9.0
14508                 if test $OSMAJOR -lt 9; then
14509                     SKIP_SETREUID=yes
14510                 fi
14511                 CHECKSHADOW="false"
14512                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14513                 : ${with_logincap='yes'}
14514                 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14515                 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14516                 ;;
14517     *-*-nextstep*)
14518                 # lockf() on is broken on the NeXT -- use flock instead
14519                 ac_cv_func_lockf=no
14520                 ac_cv_func_flock=yes
14521                 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14522                 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14523                 ;;
14524     *-*-*sysv4*)
14525                 : ${mansectsu='1m'}
14526                 : ${mansectform='4'}
14527                 : ${with_rpath='yes'}
14528                 ;;
14529     *-*-sysv*)
14530                 : ${mansectsu='1m'}
14531                 : ${mansectform='4'}
14532                 ;;
14533     *-gnu*)
14534                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14535                 ;;
14536 esac
14537
14538 if test -n "$with_noexec"; then
14539     cat >>confdefs.h <<EOF
14540 #define RTLD_PRELOAD_VAR "$RTLD_PRELOAD_VAR"
14541 EOF
14542
14543     cat >>confdefs.h <<EOF
14544 #define RTLD_PRELOAD_DELIM "$RTLD_PRELOAD_DELIM"
14545 EOF
14546
14547     if test -n "$RTLD_PRELOAD_DEFAULT"; then
14548         cat >>confdefs.h <<EOF
14549 #define RTLD_PRELOAD_DEFAULT "$RTLD_PRELOAD_DEFAULT"
14550 EOF
14551
14552     fi
14553     if test -n "$RTLD_PRELOAD_ENABLE_VAR"; then
14554         cat >>confdefs.h <<EOF
14555 #define RTLD_PRELOAD_ENABLE_VAR "$RTLD_PRELOAD_ENABLE_VAR"
14556 EOF
14557
14558     fi
14559 fi
14560
14561 AUTH_REG=${AUTH_REG# }
14562 AUTH_EXCL=${AUTH_EXCL# }
14563 if test -n "$AUTH_EXCL"; then
14564     set -- $AUTH_EXCL
14565     if test $# != 1; then
14566         as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14567     fi
14568     if test -n "$AUTH_REG"; then
14569         as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14570     fi
14571 fi
14572 if test X"${with_skey}${with_opie}" = X"yesyes"; then
14573     as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14574 fi
14575
14576 : ${mansectsu='8'}
14577 : ${mansectform='5'}
14578
14579 if test -n "$with_libpath"; then
14580     for i in ${with_libpath}; do
14581
14582     if test X"$with_rpath" = X"yes"; then
14583         case "$host" in
14584             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
14585                         ;;
14586             *)          LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
14587                         ;;
14588         esac
14589     else
14590         LDFLAGS="${LDFLAGS} -L$i"
14591     fi
14592     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14593         blibpath_add="${blibpath_add}:$i"
14594     fi
14595
14596     done
14597 fi
14598 if test -n "$with_libraries"; then
14599     for i in ${with_libraries}; do
14600         case $i in
14601             -l*)        ;;
14602             *.a)        ;;
14603             *.o)        ;;
14604             *)  i="-l${i}";;
14605         esac
14606         LIBS="${LIBS} ${i}"
14607     done
14608 fi
14609
14610 if test $ac_cv_c_compiler_gnu = yes; then
14611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14612 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14613 if ${ac_cv_prog_gcc_traditional+:} false; then :
14614   $as_echo_n "(cached) " >&6
14615 else
14616     ac_pattern="Autoconf.*'x'"
14617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h.  */
14619 #include <sgtty.h>
14620 Autoconf TIOCGETP
14621 _ACEOF
14622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14623   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14624   ac_cv_prog_gcc_traditional=yes
14625 else
14626   ac_cv_prog_gcc_traditional=no
14627 fi
14628 rm -f conftest*
14629
14630
14631   if test $ac_cv_prog_gcc_traditional = no; then
14632     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h.  */
14634 #include <termio.h>
14635 Autoconf TCGETA
14636 _ACEOF
14637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14638   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14639   ac_cv_prog_gcc_traditional=yes
14640 fi
14641 rm -f conftest*
14642
14643   fi
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14646 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14647   if test $ac_cv_prog_gcc_traditional = yes; then
14648     CC="$CC -traditional"
14649   fi
14650 fi
14651
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14653 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14654 if ${ac_cv_c_const+:} false; then :
14655   $as_echo_n "(cached) " >&6
14656 else
14657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h.  */
14659
14660 int
14661 main ()
14662 {
14663 /* FIXME: Include the comments suggested by Paul. */
14664 #ifndef __cplusplus
14665   /* Ultrix mips cc rejects this.  */
14666   typedef int charset[2];
14667   const charset cs;
14668   /* SunOS 4.1.1 cc rejects this.  */
14669   char const *const *pcpcc;
14670   char **ppc;
14671   /* NEC SVR4.0.2 mips cc rejects this.  */
14672   struct point {int x, y;};
14673   static struct point const zero = {0,0};
14674   /* AIX XL C 1.02.0.0 rejects this.
14675      It does not let you subtract one const X* pointer from another in
14676      an arm of an if-expression whose if-part is not a constant
14677      expression */
14678   const char *g = "string";
14679   pcpcc = &g + (g ? g-g : 0);
14680   /* HPUX 7.0 cc rejects these. */
14681   ++pcpcc;
14682   ppc = (char**) pcpcc;
14683   pcpcc = (char const *const *) ppc;
14684   { /* SCO 3.2v4 cc rejects this.  */
14685     char *t;
14686     char const *s = 0 ? (char *) 0 : (char const *) 0;
14687
14688     *t++ = 0;
14689     if (s) return 0;
14690   }
14691   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14692     int x[] = {25, 17};
14693     const int *foo = &x[0];
14694     ++foo;
14695   }
14696   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14697     typedef const int *iptr;
14698     iptr p = 0;
14699     ++p;
14700   }
14701   { /* AIX XL C 1.02.0.0 rejects this saying
14702        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14703     struct s { int j; const int *ap[3]; };
14704     struct s *b; b->j = 5;
14705   }
14706   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14707     const int foo = 10;
14708     if (!foo) return 0;
14709   }
14710   return !cs[0] && !zero.x;
14711 #endif
14712
14713   ;
14714   return 0;
14715 }
14716 _ACEOF
14717 if ac_fn_c_try_compile "$LINENO"; then :
14718   ac_cv_c_const=yes
14719 else
14720   ac_cv_c_const=no
14721 fi
14722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14723 fi
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14725 $as_echo "$ac_cv_c_const" >&6; }
14726 if test $ac_cv_c_const = no; then
14727
14728 $as_echo "#define const /**/" >>confdefs.h
14729
14730 fi
14731
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14733 $as_echo_n "checking for working volatile... " >&6; }
14734 if ${ac_cv_c_volatile+:} false; then :
14735   $as_echo_n "(cached) " >&6
14736 else
14737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h.  */
14739
14740 int
14741 main ()
14742 {
14743
14744 volatile int x;
14745 int * volatile y = (int *) 0;
14746 return !x && !y;
14747   ;
14748   return 0;
14749 }
14750 _ACEOF
14751 if ac_fn_c_try_compile "$LINENO"; then :
14752   ac_cv_c_volatile=yes
14753 else
14754   ac_cv_c_volatile=no
14755 fi
14756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14757 fi
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14759 $as_echo "$ac_cv_c_volatile" >&6; }
14760 if test $ac_cv_c_volatile = no; then
14761
14762 $as_echo "#define volatile /**/" >>confdefs.h
14763
14764 fi
14765
14766 # Check for variadic macro support in cpp
14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h.  */
14769
14770 $ac_includes_default
14771 #if defined(__GNUC__) && __GNUC__ == 2
14772 # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
14773 #else
14774 # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
14775 #endif
14776
14777 int
14778 main ()
14779 {
14780 sudo_fprintf(stderr, "a %s", "test");
14781   ;
14782   return 0;
14783 }
14784 _ACEOF
14785 if ac_fn_c_try_compile "$LINENO"; then :
14786
14787 else
14788   as_fn_error $? "Your C compiler doesn't support variadic macros, try building with gcc instead" "$LINENO" 5
14789 fi
14790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14791
14792 for ac_prog in 'bison -y' byacc
14793 do
14794   # Extract the first word of "$ac_prog", so it can be a program name with args.
14795 set dummy $ac_prog; ac_word=$2
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14797 $as_echo_n "checking for $ac_word... " >&6; }
14798 if ${ac_cv_prog_YACC+:} false; then :
14799   $as_echo_n "(cached) " >&6
14800 else
14801   if test -n "$YACC"; then
14802   ac_cv_prog_YACC="$YACC" # Let the user override the test.
14803 else
14804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805 for as_dir in $PATH
14806 do
14807   IFS=$as_save_IFS
14808   test -z "$as_dir" && as_dir=.
14809     for ac_exec_ext in '' $ac_executable_extensions; do
14810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14811     ac_cv_prog_YACC="$ac_prog"
14812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14813     break 2
14814   fi
14815 done
14816   done
14817 IFS=$as_save_IFS
14818
14819 fi
14820 fi
14821 YACC=$ac_cv_prog_YACC
14822 if test -n "$YACC"; then
14823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14824 $as_echo "$YACC" >&6; }
14825 else
14826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14827 $as_echo "no" >&6; }
14828 fi
14829
14830
14831   test -n "$YACC" && break
14832 done
14833 test -n "$YACC" || YACC="yacc"
14834
14835 # Extract the first word of "flex", so it can be a program name with args.
14836 set dummy flex; ac_word=$2
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838 $as_echo_n "checking for $ac_word... " >&6; }
14839 if ${ac_cv_path_FLEX+:} false; then :
14840   $as_echo_n "(cached) " >&6
14841 else
14842   case $FLEX in
14843   [\\/]* | ?:[\\/]*)
14844   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14845   ;;
14846   *)
14847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14849 do
14850   IFS=$as_save_IFS
14851   test -z "$as_dir" && as_dir=.
14852     for ac_exec_ext in '' $ac_executable_extensions; do
14853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14854     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14856     break 2
14857   fi
14858 done
14859   done
14860 IFS=$as_save_IFS
14861
14862   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14863   ;;
14864 esac
14865 fi
14866 FLEX=$ac_cv_path_FLEX
14867 if test -n "$FLEX"; then
14868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14869 $as_echo "$FLEX" >&6; }
14870 else
14871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 $as_echo "no" >&6; }
14873 fi
14874
14875
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14877 $as_echo_n "checking for mv... " >&6; }
14878 found=no
14879 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14880     if test -f "$p"; then
14881         found=yes
14882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14883 $as_echo "$p" >&6; }
14884         cat >>confdefs.h <<EOF
14885 #define _PATH_MV "$p"
14886 EOF
14887
14888         break
14889     fi
14890 done
14891 if test X"$found" != X"yes"; then
14892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14893 $as_echo "not found" >&6; }
14894 fi
14895
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14897 $as_echo_n "checking for bourne shell... " >&6; }
14898 found=no
14899 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14900     if test -f "$p"; then
14901         found=yes
14902         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14903 $as_echo "$p" >&6; }
14904         cat >>confdefs.h <<EOF
14905 #define _PATH_BSHELL "$p"
14906 EOF
14907
14908         break
14909     fi
14910 done
14911 if test X"$found" != X"yes"; then
14912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14913 $as_echo "not found" >&6; }
14914 fi
14915
14916 if test -z "$with_sendmail"; then
14917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14918 $as_echo_n "checking for sendmail... " >&6; }
14919 found=no
14920 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14921     if test -f "$p"; then
14922         found=yes
14923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14924 $as_echo "$p" >&6; }
14925         cat >>confdefs.h <<EOF
14926 #define _PATH_SUDO_SENDMAIL "$p"
14927 EOF
14928
14929         break
14930     fi
14931 done
14932 if test X"$found" != X"yes"; then
14933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14934 $as_echo "not found" >&6; }
14935 fi
14936
14937 fi
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14939 $as_echo_n "checking for vi... " >&6; }
14940 found=no
14941 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
14942     if test -f "$editor"; then
14943         found=yes
14944         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
14945 $as_echo "$editor" >&6; }
14946         cat >>confdefs.h <<EOF
14947 #define _PATH_VI "$editor"
14948 EOF
14949
14950         break
14951     fi
14952 done
14953 if test X"$found" != X"yes"; then
14954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14955 $as_echo "not found" >&6; }
14956 fi
14957
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
14959 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
14960 if test X"$with_logfac" = X""; then
14961     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h.  */
14963 #include <syslog.h>
14964 int
14965 main ()
14966 {
14967 int i = LOG_AUTHPRIV; (void)i;
14968   ;
14969   return 0;
14970 }
14971 _ACEOF
14972 if ac_fn_c_try_compile "$LINENO"; then :
14973   logfac=authpriv
14974 fi
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976 fi
14977
14978 cat >>confdefs.h <<_ACEOF
14979 #define LOGFAC "$logfac"
14980 _ACEOF
14981
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
14983 $as_echo "$logfac" >&6; }
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14985 $as_echo_n "checking for ANSI C header files... " >&6; }
14986 if ${ac_cv_header_stdc+:} false; then :
14987   $as_echo_n "(cached) " >&6
14988 else
14989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h.  */
14991 #include <stdlib.h>
14992 #include <stdarg.h>
14993 #include <string.h>
14994 #include <float.h>
14995
14996 int
14997 main ()
14998 {
14999
15000   ;
15001   return 0;
15002 }
15003 _ACEOF
15004 if ac_fn_c_try_compile "$LINENO"; then :
15005   ac_cv_header_stdc=yes
15006 else
15007   ac_cv_header_stdc=no
15008 fi
15009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15010
15011 if test $ac_cv_header_stdc = yes; then
15012   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h.  */
15015 #include <string.h>
15016
15017 _ACEOF
15018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15019   $EGREP "memchr" >/dev/null 2>&1; then :
15020
15021 else
15022   ac_cv_header_stdc=no
15023 fi
15024 rm -f conftest*
15025
15026 fi
15027
15028 if test $ac_cv_header_stdc = yes; then
15029   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h.  */
15032 #include <stdlib.h>
15033
15034 _ACEOF
15035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15036   $EGREP "free" >/dev/null 2>&1; then :
15037
15038 else
15039   ac_cv_header_stdc=no
15040 fi
15041 rm -f conftest*
15042
15043 fi
15044
15045 if test $ac_cv_header_stdc = yes; then
15046   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15047   if test "$cross_compiling" = yes; then :
15048   :
15049 else
15050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051 /* end confdefs.h.  */
15052 #include <ctype.h>
15053 #include <stdlib.h>
15054 #if ((' ' & 0x0FF) == 0x020)
15055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15057 #else
15058 # define ISLOWER(c) \
15059                    (('a' <= (c) && (c) <= 'i') \
15060                      || ('j' <= (c) && (c) <= 'r') \
15061                      || ('s' <= (c) && (c) <= 'z'))
15062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15063 #endif
15064
15065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15066 int
15067 main ()
15068 {
15069   int i;
15070   for (i = 0; i < 256; i++)
15071     if (XOR (islower (i), ISLOWER (i))
15072         || toupper (i) != TOUPPER (i))
15073       return 2;
15074   return 0;
15075 }
15076 _ACEOF
15077 if ac_fn_c_try_run "$LINENO"; then :
15078
15079 else
15080   ac_cv_header_stdc=no
15081 fi
15082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15083   conftest.$ac_objext conftest.beam conftest.$ac_ext
15084 fi
15085
15086 fi
15087 fi
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15089 $as_echo "$ac_cv_header_stdc" >&6; }
15090 if test $ac_cv_header_stdc = yes; then
15091
15092 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15093
15094 fi
15095
15096 ac_header_dirent=no
15097 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15098   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15100 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15101 if eval \${$as_ac_Header+:} false; then :
15102   $as_echo_n "(cached) " >&6
15103 else
15104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h.  */
15106 #include <sys/types.h>
15107 #include <$ac_hdr>
15108
15109 int
15110 main ()
15111 {
15112 if ((DIR *) 0)
15113 return 0;
15114   ;
15115   return 0;
15116 }
15117 _ACEOF
15118 if ac_fn_c_try_compile "$LINENO"; then :
15119   eval "$as_ac_Header=yes"
15120 else
15121   eval "$as_ac_Header=no"
15122 fi
15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15124 fi
15125 eval ac_res=\$$as_ac_Header
15126                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15127 $as_echo "$ac_res" >&6; }
15128 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15129   cat >>confdefs.h <<_ACEOF
15130 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15131 _ACEOF
15132
15133 ac_header_dirent=$ac_hdr; break
15134 fi
15135
15136 done
15137 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15138 if test $ac_header_dirent = dirent.h; then
15139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15140 $as_echo_n "checking for library containing opendir... " >&6; }
15141 if ${ac_cv_search_opendir+:} false; then :
15142   $as_echo_n "(cached) " >&6
15143 else
15144   ac_func_search_save_LIBS=$LIBS
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h.  */
15147
15148 /* Override any GCC internal prototype to avoid an error.
15149    Use char because int might match the return type of a GCC
15150    builtin and then its argument prototype would still apply.  */
15151 #ifdef __cplusplus
15152 extern "C"
15153 #endif
15154 char opendir ();
15155 int
15156 main ()
15157 {
15158 return opendir ();
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 for ac_lib in '' dir; do
15164   if test -z "$ac_lib"; then
15165     ac_res="none required"
15166   else
15167     ac_res=-l$ac_lib
15168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15169   fi
15170   if ac_fn_c_try_link "$LINENO"; then :
15171   ac_cv_search_opendir=$ac_res
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext \
15174     conftest$ac_exeext
15175   if ${ac_cv_search_opendir+:} false; then :
15176   break
15177 fi
15178 done
15179 if ${ac_cv_search_opendir+:} false; then :
15180
15181 else
15182   ac_cv_search_opendir=no
15183 fi
15184 rm conftest.$ac_ext
15185 LIBS=$ac_func_search_save_LIBS
15186 fi
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15188 $as_echo "$ac_cv_search_opendir" >&6; }
15189 ac_res=$ac_cv_search_opendir
15190 if test "$ac_res" != no; then :
15191   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15192
15193 fi
15194
15195 else
15196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15197 $as_echo_n "checking for library containing opendir... " >&6; }
15198 if ${ac_cv_search_opendir+:} false; then :
15199   $as_echo_n "(cached) " >&6
15200 else
15201   ac_func_search_save_LIBS=$LIBS
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h.  */
15204
15205 /* Override any GCC internal prototype to avoid an error.
15206    Use char because int might match the return type of a GCC
15207    builtin and then its argument prototype would still apply.  */
15208 #ifdef __cplusplus
15209 extern "C"
15210 #endif
15211 char opendir ();
15212 int
15213 main ()
15214 {
15215 return opendir ();
15216   ;
15217   return 0;
15218 }
15219 _ACEOF
15220 for ac_lib in '' x; do
15221   if test -z "$ac_lib"; then
15222     ac_res="none required"
15223   else
15224     ac_res=-l$ac_lib
15225     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15226   fi
15227   if ac_fn_c_try_link "$LINENO"; then :
15228   ac_cv_search_opendir=$ac_res
15229 fi
15230 rm -f core conftest.err conftest.$ac_objext \
15231     conftest$ac_exeext
15232   if ${ac_cv_search_opendir+:} false; then :
15233   break
15234 fi
15235 done
15236 if ${ac_cv_search_opendir+:} false; then :
15237
15238 else
15239   ac_cv_search_opendir=no
15240 fi
15241 rm conftest.$ac_ext
15242 LIBS=$ac_func_search_save_LIBS
15243 fi
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15245 $as_echo "$ac_cv_search_opendir" >&6; }
15246 ac_res=$ac_cv_search_opendir
15247 if test "$ac_res" != no; then :
15248   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15249
15250 fi
15251
15252 fi
15253
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15255 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15256 if ${ac_cv_header_time+:} false; then :
15257   $as_echo_n "(cached) " >&6
15258 else
15259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h.  */
15261 #include <sys/types.h>
15262 #include <sys/time.h>
15263 #include <time.h>
15264
15265 int
15266 main ()
15267 {
15268 if ((struct tm *) 0)
15269 return 0;
15270   ;
15271   return 0;
15272 }
15273 _ACEOF
15274 if ac_fn_c_try_compile "$LINENO"; then :
15275   ac_cv_header_time=yes
15276 else
15277   ac_cv_header_time=no
15278 fi
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 fi
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15282 $as_echo "$ac_cv_header_time" >&6; }
15283 if test $ac_cv_header_time = yes; then
15284
15285 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15286
15287 fi
15288
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15290 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15291 if ${ac_cv_header_stdbool_h+:} false; then :
15292   $as_echo_n "(cached) " >&6
15293 else
15294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h.  */
15296
15297 #include <stdbool.h>
15298 #ifndef bool
15299  "error: bool is not defined"
15300 #endif
15301 #ifndef false
15302  "error: false is not defined"
15303 #endif
15304 #if false
15305  "error: false is not 0"
15306 #endif
15307 #ifndef true
15308  "error: true is not defined"
15309 #endif
15310 #if true != 1
15311  "error: true is not 1"
15312 #endif
15313 #ifndef __bool_true_false_are_defined
15314  "error: __bool_true_false_are_defined is not defined"
15315 #endif
15316
15317         struct s { _Bool s: 1; _Bool t; } s;
15318
15319         char a[true == 1 ? 1 : -1];
15320         char b[false == 0 ? 1 : -1];
15321         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15322         char d[(bool) 0.5 == true ? 1 : -1];
15323         /* See body of main program for 'e'.  */
15324         char f[(_Bool) 0.0 == false ? 1 : -1];
15325         char g[true];
15326         char h[sizeof (_Bool)];
15327         char i[sizeof s.t];
15328         enum { j = false, k = true, l = false * true, m = true * 256 };
15329         /* The following fails for
15330            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15331         _Bool n[m];
15332         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15333         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15334         /* Catch a bug in an HP-UX C compiler.  See
15335            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15336            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15337          */
15338         _Bool q = true;
15339         _Bool *pq = &q;
15340
15341 int
15342 main ()
15343 {
15344
15345         bool e = &s;
15346         *pq |= q;
15347         *pq |= ! q;
15348         /* Refer to every declared value, to avoid compiler optimizations.  */
15349         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15350                 + !m + !n + !o + !p + !q + !pq);
15351
15352   ;
15353   return 0;
15354 }
15355 _ACEOF
15356 if ac_fn_c_try_compile "$LINENO"; then :
15357   ac_cv_header_stdbool_h=yes
15358 else
15359   ac_cv_header_stdbool_h=no
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362 fi
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15364 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15365 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15366 if test "x$ac_cv_type__Bool" = xyes; then :
15367
15368 cat >>confdefs.h <<_ACEOF
15369 #define HAVE__BOOL 1
15370 _ACEOF
15371
15372
15373 fi
15374
15375 if test $ac_cv_header_stdbool_h = yes; then
15376
15377 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15378
15379 fi
15380
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
15382 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
15383 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
15384   $as_echo_n "(cached) " >&6
15385 else
15386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h.  */
15388 #include <sys/types.h>
15389 int
15390 main ()
15391 {
15392 return makedev(0, 0);
15393   ;
15394   return 0;
15395 }
15396 _ACEOF
15397 if ac_fn_c_try_link "$LINENO"; then :
15398   ac_cv_header_sys_types_h_makedev=yes
15399 else
15400   ac_cv_header_sys_types_h_makedev=no
15401 fi
15402 rm -f core conftest.err conftest.$ac_objext \
15403     conftest$ac_exeext conftest.$ac_ext
15404
15405 fi
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
15407 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
15408
15409 if test $ac_cv_header_sys_types_h_makedev = no; then
15410 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
15411 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
15412
15413 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
15414
15415 fi
15416
15417
15418
15419   if test $ac_cv_header_sys_mkdev_h = no; then
15420     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
15421 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
15422
15423 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
15424
15425 fi
15426
15427
15428   fi
15429 fi
15430
15431 for ac_header in malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15432 do :
15433   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15434 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15435 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15436   cat >>confdefs.h <<_ACEOF
15437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15438 _ACEOF
15439
15440 fi
15441
15442 done
15443
15444 for ac_header in procfs.h sys/procfs.h
15445 do :
15446   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15447 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15448 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15449   cat >>confdefs.h <<_ACEOF
15450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15451 _ACEOF
15452  ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default
15453 #ifdef HAVE_PROCFS_H
15454 #include <procfs.h>
15455 #endif
15456 #ifdef HAVE_SYS_PROCFS_H
15457 #include <sys/procfs.h>
15458 #endif
15459
15460 "
15461 if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes; then :
15462
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_STRUCT_PSINFO_PR_TTYDEV 1
15465 _ACEOF
15466
15467 for ac_func in _ttyname_dev
15468 do :
15469   ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev"
15470 if test "x$ac_cv_func__ttyname_dev" = xyes; then :
15471   cat >>confdefs.h <<_ACEOF
15472 #define HAVE__TTYNAME_DEV 1
15473 _ACEOF
15474
15475 fi
15476 done
15477
15478 fi
15479
15480 break
15481 fi
15482
15483 done
15484
15485 # Check whether --enable-largefile was given.
15486 if test "${enable_largefile+set}" = set; then :
15487   enableval=$enable_largefile;
15488 fi
15489
15490 if test "$enable_largefile" != no; then
15491
15492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15493 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15494 if ${ac_cv_sys_largefile_CC+:} false; then :
15495   $as_echo_n "(cached) " >&6
15496 else
15497   ac_cv_sys_largefile_CC=no
15498      if test "$GCC" != yes; then
15499        ac_save_CC=$CC
15500        while :; do
15501          # IRIX 6.2 and later do not support large files by default,
15502          # so use the C compiler's -n32 option if that helps.
15503          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h.  */
15505 #include <sys/types.h>
15506  /* Check that off_t can represent 2**63 - 1 correctly.
15507     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15508     since some C++ compilers masquerading as C compilers
15509     incorrectly reject 9223372036854775807.  */
15510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15511   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15512                        && LARGE_OFF_T % 2147483647 == 1)
15513                       ? 1 : -1];
15514 int
15515 main ()
15516 {
15517
15518   ;
15519   return 0;
15520 }
15521 _ACEOF
15522          if ac_fn_c_try_compile "$LINENO"; then :
15523   break
15524 fi
15525 rm -f core conftest.err conftest.$ac_objext
15526          CC="$CC -n32"
15527          if ac_fn_c_try_compile "$LINENO"; then :
15528   ac_cv_sys_largefile_CC=' -n32'; break
15529 fi
15530 rm -f core conftest.err conftest.$ac_objext
15531          break
15532        done
15533        CC=$ac_save_CC
15534        rm -f conftest.$ac_ext
15535     fi
15536 fi
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15538 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15539   if test "$ac_cv_sys_largefile_CC" != no; then
15540     CC=$CC$ac_cv_sys_largefile_CC
15541   fi
15542
15543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15544 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15545 if ${ac_cv_sys_file_offset_bits+:} false; then :
15546   $as_echo_n "(cached) " >&6
15547 else
15548   while :; do
15549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h.  */
15551 #include <sys/types.h>
15552  /* Check that off_t can represent 2**63 - 1 correctly.
15553     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15554     since some C++ compilers masquerading as C compilers
15555     incorrectly reject 9223372036854775807.  */
15556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15557   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15558                        && LARGE_OFF_T % 2147483647 == 1)
15559                       ? 1 : -1];
15560 int
15561 main ()
15562 {
15563
15564   ;
15565   return 0;
15566 }
15567 _ACEOF
15568 if ac_fn_c_try_compile "$LINENO"; then :
15569   ac_cv_sys_file_offset_bits=no; break
15570 fi
15571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573 /* end confdefs.h.  */
15574 #define _FILE_OFFSET_BITS 64
15575 #include <sys/types.h>
15576  /* Check that off_t can represent 2**63 - 1 correctly.
15577     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15578     since some C++ compilers masquerading as C compilers
15579     incorrectly reject 9223372036854775807.  */
15580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15581   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15582                        && LARGE_OFF_T % 2147483647 == 1)
15583                       ? 1 : -1];
15584 int
15585 main ()
15586 {
15587
15588   ;
15589   return 0;
15590 }
15591 _ACEOF
15592 if ac_fn_c_try_compile "$LINENO"; then :
15593   ac_cv_sys_file_offset_bits=64; break
15594 fi
15595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15596   ac_cv_sys_file_offset_bits=unknown
15597   break
15598 done
15599 fi
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15601 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15602 case $ac_cv_sys_file_offset_bits in #(
15603   no | unknown) ;;
15604   *)
15605 cat >>confdefs.h <<_ACEOF
15606 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15607 _ACEOF
15608 ;;
15609 esac
15610 rm -rf conftest*
15611   if test $ac_cv_sys_file_offset_bits = unknown; then
15612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15613 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15614 if ${ac_cv_sys_large_files+:} false; then :
15615   $as_echo_n "(cached) " >&6
15616 else
15617   while :; do
15618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h.  */
15620 #include <sys/types.h>
15621  /* Check that off_t can represent 2**63 - 1 correctly.
15622     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15623     since some C++ compilers masquerading as C compilers
15624     incorrectly reject 9223372036854775807.  */
15625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15626   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15627                        && LARGE_OFF_T % 2147483647 == 1)
15628                       ? 1 : -1];
15629 int
15630 main ()
15631 {
15632
15633   ;
15634   return 0;
15635 }
15636 _ACEOF
15637 if ac_fn_c_try_compile "$LINENO"; then :
15638   ac_cv_sys_large_files=no; break
15639 fi
15640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h.  */
15643 #define _LARGE_FILES 1
15644 #include <sys/types.h>
15645  /* Check that off_t can represent 2**63 - 1 correctly.
15646     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15647     since some C++ compilers masquerading as C compilers
15648     incorrectly reject 9223372036854775807.  */
15649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15650   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15651                        && LARGE_OFF_T % 2147483647 == 1)
15652                       ? 1 : -1];
15653 int
15654 main ()
15655 {
15656
15657   ;
15658   return 0;
15659 }
15660 _ACEOF
15661 if ac_fn_c_try_compile "$LINENO"; then :
15662   ac_cv_sys_large_files=1; break
15663 fi
15664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15665   ac_cv_sys_large_files=unknown
15666   break
15667 done
15668 fi
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15670 $as_echo "$ac_cv_sys_large_files" >&6; }
15671 case $ac_cv_sys_large_files in #(
15672   no | unknown) ;;
15673   *)
15674 cat >>confdefs.h <<_ACEOF
15675 #define _LARGE_FILES $ac_cv_sys_large_files
15676 _ACEOF
15677 ;;
15678 esac
15679 rm -rf conftest*
15680   fi
15681 fi
15682
15683 case "$host" in
15684     *-*-hpux11.*)
15685         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15686 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15687 if ${sudo_cv_xopen_source_extended+:} false; then :
15688   $as_echo_n "(cached) " >&6
15689 else
15690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h.  */
15692 $ac_includes_default
15693         #include <sys/socket.h>
15694 int
15695 main ()
15696 {
15697
15698   ;
15699   return 0;
15700 }
15701 _ACEOF
15702 if ac_fn_c_try_compile "$LINENO"; then :
15703   sudo_cv_xopen_source_extended=no
15704 else
15705
15706             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h.  */
15708 #define _XOPEN_SOURCE_EXTENDED
15709             $ac_includes_default
15710             #include <sys/socket.h>
15711 int
15712 main ()
15713 {
15714
15715   ;
15716   return 0;
15717 }
15718 _ACEOF
15719 if ac_fn_c_try_compile "$LINENO"; then :
15720   sudo_cv_xopen_source_extended=yes
15721 else
15722   sudo_cv_xopen_source_extended=error
15723 fi
15724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725
15726 fi
15727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15728 fi
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15730 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15731         if test "$sudo_cv_xopen_source_extended" = "yes"; then
15732             OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15733             cat >>confdefs.h <<\EOF
15734 #define _XOPEN_SOURCE_EXTENDED 1
15735 EOF
15736
15737         fi
15738         ;;
15739 esac
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15741 $as_echo_n "checking POSIX termios... " >&6; }
15742 if ${ac_cv_sys_posix_termios+:} false; then :
15743   $as_echo_n "(cached) " >&6
15744 else
15745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h.  */
15747 #include <sys/types.h>
15748 #include <unistd.h>
15749 #include <termios.h>
15750
15751 int
15752 main ()
15753 {
15754 /* SunOS 4.0.3 has termios.h but not the library calls.  */
15755    tcgetattr(0, 0);
15756   ;
15757   return 0;
15758 }
15759 _ACEOF
15760 if ac_fn_c_try_link "$LINENO"; then :
15761   ac_cv_sys_posix_termios=yes
15762 else
15763   ac_cv_sys_posix_termios=no
15764 fi
15765 rm -f core conftest.err conftest.$ac_objext \
15766     conftest$ac_exeext conftest.$ac_ext
15767 fi
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15769 $as_echo "$ac_cv_sys_posix_termios" >&6; }
15770
15771 if test "$ac_cv_sys_posix_termios" != "yes"; then
15772     as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15773 fi
15774
15775 maildir=no
15776 if test X"$ac_cv_header_paths_h" = X"yes"; then
15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h.  */
15779 $ac_includes_default
15780 #include <paths.h>
15781 int
15782 main ()
15783 {
15784 char *p = _PATH_MAILDIR;
15785   ;
15786   return 0;
15787 }
15788 _ACEOF
15789 if ac_fn_c_try_compile "$LINENO"; then :
15790   maildir=yes
15791 fi
15792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793 fi
15794 if test $maildir = no; then
15795     # Solaris has maillock.h which defines MAILDIR
15796     for ac_header in maillock.h
15797 do :
15798   ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15799 if test "x$ac_cv_header_maillock_h" = xyes; then :
15800   cat >>confdefs.h <<_ACEOF
15801 #define HAVE_MAILLOCK_H 1
15802 _ACEOF
15803
15804         cat >>confdefs.h <<\EOF
15805 #define _PATH_MAILDIR MAILDIR
15806 EOF
15807
15808         maildir=yes
15809
15810 fi
15811
15812 done
15813
15814     if test $maildir = no; then
15815         for d in /var/mail /var/spool/mail /usr/spool/mail; do
15816             if test -d "$d"; then
15817                 maildir=yes
15818                 cat >>confdefs.h <<EOF
15819 #define _PATH_MAILDIR "$d"
15820 EOF
15821
15822                 break
15823             fi
15824         done
15825         if test $maildir = no; then
15826             # unable to find mail dir, hope for the best
15827             cat >>confdefs.h <<EOF
15828 #define _PATH_MAILDIR "/var/mail"
15829 EOF
15830
15831         fi
15832     fi
15833 fi
15834
15835 if test ${with_logincap-'no'} != "no"; then
15836     for ac_header in login_cap.h
15837 do :
15838   ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15839 if test "x$ac_cv_header_login_cap_h" = xyes; then :
15840   cat >>confdefs.h <<_ACEOF
15841 #define HAVE_LOGIN_CAP_H 1
15842 _ACEOF
15843  LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15844         case "$OS" in
15845             freebsd|netbsd)
15846                 SUDO_LIBS="${SUDO_LIBS} -lutil"
15847                 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15848                 ;;
15849         esac
15850
15851 fi
15852
15853 done
15854
15855 fi
15856 if test ${with_project-'no'} != "no"; then
15857     ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15858 if test "x$ac_cv_header_project_h" = xyes; then :
15859
15860         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15861 $as_echo_n "checking for setproject in -lproject... " >&6; }
15862 if ${ac_cv_lib_project_setproject+:} false; then :
15863   $as_echo_n "(cached) " >&6
15864 else
15865   ac_check_lib_save_LIBS=$LIBS
15866 LIBS="-lproject  $LIBS"
15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h.  */
15869
15870 /* Override any GCC internal prototype to avoid an error.
15871    Use char because int might match the return type of a GCC
15872    builtin and then its argument prototype would still apply.  */
15873 #ifdef __cplusplus
15874 extern "C"
15875 #endif
15876 char setproject ();
15877 int
15878 main ()
15879 {
15880 return setproject ();
15881   ;
15882   return 0;
15883 }
15884 _ACEOF
15885 if ac_fn_c_try_link "$LINENO"; then :
15886   ac_cv_lib_project_setproject=yes
15887 else
15888   ac_cv_lib_project_setproject=no
15889 fi
15890 rm -f core conftest.err conftest.$ac_objext \
15891     conftest$ac_exeext conftest.$ac_ext
15892 LIBS=$ac_check_lib_save_LIBS
15893 fi
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15895 $as_echo "$ac_cv_lib_project_setproject" >&6; }
15896 if test "x$ac_cv_lib_project_setproject" = xyes; then :
15897
15898             $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15899
15900             SUDO_LIBS="${SUDO_LIBS} -lproject"
15901
15902 fi
15903
15904
15905 fi
15906
15907
15908 fi
15909 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15910 if test "x$ac_cv_type_mode_t" = xyes; then :
15911
15912 else
15913
15914 cat >>confdefs.h <<_ACEOF
15915 #define mode_t int
15916 _ACEOF
15917
15918 fi
15919
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15921 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15922 if ${ac_cv_type_uid_t+:} false; then :
15923   $as_echo_n "(cached) " >&6
15924 else
15925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h.  */
15927 #include <sys/types.h>
15928
15929 _ACEOF
15930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15931   $EGREP "uid_t" >/dev/null 2>&1; then :
15932   ac_cv_type_uid_t=yes
15933 else
15934   ac_cv_type_uid_t=no
15935 fi
15936 rm -f conftest*
15937
15938 fi
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15940 $as_echo "$ac_cv_type_uid_t" >&6; }
15941 if test $ac_cv_type_uid_t = no; then
15942
15943 $as_echo "#define uid_t int" >>confdefs.h
15944
15945
15946 $as_echo "#define gid_t int" >>confdefs.h
15947
15948 fi
15949
15950 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
15951 if test "x$ac_cv_type___signed_char" = xyes; then :
15952
15953 else
15954   ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
15955 if test "x$ac_cv_type_signed_char" = xyes; then :
15956   $as_echo "#define __signed signed" >>confdefs.h
15957
15958 else
15959   $as_echo "#define __signed /**/" >>confdefs.h
15960
15961 fi
15962
15963 fi
15964
15965 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
15966 #include <signal.h>
15967 "
15968 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15969
15970 else
15971   $as_echo "#define sig_atomic_t int" >>confdefs.h
15972
15973 fi
15974
15975 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
15976 #include <signal.h>
15977 "
15978 if test "x$ac_cv_type_sigaction_t" = xyes; then :
15979
15980 cat >>confdefs.h <<_ACEOF
15981 #define HAVE_SIGACTION_T 1
15982 _ACEOF
15983
15984
15985 fi
15986
15987 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
15988 #if TIME_WITH_SYS_TIME
15989 # include <sys/time.h>
15990 #endif
15991 #include <time.h>
15992 "
15993 if test "x$ac_cv_type_struct_timespec" = xyes; then :
15994
15995 cat >>confdefs.h <<_ACEOF
15996 #define HAVE_STRUCT_TIMESPEC 1
15997 _ACEOF
15998
15999
16000 fi
16001
16002 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
16003 #include <netinet/in.h>
16004 "
16005 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
16006
16007 cat >>confdefs.h <<_ACEOF
16008 #define HAVE_STRUCT_IN6_ADDR 1
16009 _ACEOF
16010
16011
16012 fi
16013
16014
16015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16016 $as_echo_n "checking for long long int... " >&6; }
16017 if ${ac_cv_type_long_long_int+:} false; then :
16018   $as_echo_n "(cached) " >&6
16019 else
16020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h.  */
16022
16023   /* For now, do not test the preprocessor; as of 2007 there are too many
16024          implementations with broken preprocessors.  Perhaps this can
16025          be revisited in 2012.  In the meantime, code should not expect
16026          #if to work with literals wider than 32 bits.  */
16027       /* Test literals.  */
16028       long long int ll = 9223372036854775807ll;
16029       long long int nll = -9223372036854775807LL;
16030       unsigned long long int ull = 18446744073709551615ULL;
16031       /* Test constant expressions.   */
16032       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16033                      ? 1 : -1)];
16034       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16035                      ? 1 : -1)];
16036       int i = 63;
16037 int
16038 main ()
16039 {
16040 /* Test availability of runtime routines for shift and division.  */
16041       long long int llmax = 9223372036854775807ll;
16042       unsigned long long int ullmax = 18446744073709551615ull;
16043       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16044               | (llmax / ll) | (llmax % ll)
16045               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16046               | (ullmax / ull) | (ullmax % ull));
16047   ;
16048   return 0;
16049 }
16050
16051 _ACEOF
16052 if ac_fn_c_try_link "$LINENO"; then :
16053                         if test "$cross_compiling" = yes; then :
16054   ac_cv_type_long_long_int=yes
16055 else
16056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h.  */
16058 #include <limits.h>
16059                #ifndef LLONG_MAX
16060                # define HALF \
16061                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16062                # define LLONG_MAX (HALF - 1 + HALF)
16063                #endif
16064 int
16065 main ()
16066 {
16067 long long int n = 1;
16068                int i;
16069                for (i = 0; ; i++)
16070                  {
16071                    long long int m = n << i;
16072                    if (m >> i != n)
16073                      return 1;
16074                    if (LLONG_MAX / 2 < m)
16075                      break;
16076                  }
16077                return 0;
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 if ac_fn_c_try_run "$LINENO"; then :
16083   ac_cv_type_long_long_int=yes
16084 else
16085   ac_cv_type_long_long_int=no
16086 fi
16087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16088   conftest.$ac_objext conftest.beam conftest.$ac_ext
16089 fi
16090
16091 else
16092   ac_cv_type_long_long_int=no
16093 fi
16094 rm -f core conftest.err conftest.$ac_objext \
16095     conftest$ac_exeext conftest.$ac_ext
16096 fi
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16098 $as_echo "$ac_cv_type_long_long_int" >&6; }
16099   if test $ac_cv_type_long_long_int = yes; then
16100
16101 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16102
16103   fi
16104
16105 # The cast to long int works around a bug in the HP C Compiler
16106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16108 # This bug is HP SR number 8606223364.
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
16110 $as_echo_n "checking size of long int... " >&6; }
16111 if ${ac_cv_sizeof_long_int+:} false; then :
16112   $as_echo_n "(cached) " >&6
16113 else
16114   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
16115
16116 else
16117   if test "$ac_cv_type_long_int" = yes; then
16118      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16120 as_fn_error 77 "cannot compute sizeof (long int)
16121 See \`config.log' for more details" "$LINENO" 5; }
16122    else
16123      ac_cv_sizeof_long_int=0
16124    fi
16125 fi
16126
16127 fi
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
16129 $as_echo "$ac_cv_sizeof_long_int" >&6; }
16130
16131
16132
16133 cat >>confdefs.h <<_ACEOF
16134 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16135 _ACEOF
16136
16137
16138 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16139 if test "x$ac_cv_type_size_t" = xyes; then :
16140
16141 else
16142
16143 cat >>confdefs.h <<_ACEOF
16144 #define size_t unsigned int
16145 _ACEOF
16146
16147 fi
16148
16149 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16150 if test "x$ac_cv_type_ssize_t" = xyes; then :
16151
16152 else
16153
16154 cat >>confdefs.h <<_ACEOF
16155 #define ssize_t int
16156 _ACEOF
16157
16158 fi
16159
16160 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
16161 if test "x$ac_cv_type_dev_t" = xyes; then :
16162
16163 else
16164
16165 cat >>confdefs.h <<_ACEOF
16166 #define dev_t int
16167 _ACEOF
16168
16169 fi
16170
16171 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
16172 if test "x$ac_cv_type_ino_t" = xyes; then :
16173
16174 else
16175
16176 cat >>confdefs.h <<_ACEOF
16177 #define ino_t unsigned int
16178 _ACEOF
16179
16180 fi
16181
16182 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16183 $ac_includes_default
16184 #include <sys/socket.h>
16185 "
16186 if test "x$ac_cv_type_socklen_t" = xyes; then :
16187
16188 else
16189   $as_echo "#define socklen_t unsigned int" >>confdefs.h
16190
16191 fi
16192
16193
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
16195 $as_echo_n "checking max length of uid_t... " >&6; }
16196 if ${sudo_cv_uid_t_len+:} false; then :
16197   $as_echo_n "(cached) " >&6
16198 else
16199   rm -f conftestdata
16200 if test "$cross_compiling" = yes; then :
16201   sudo_cv_uid_t_len=10
16202 else
16203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h.  */
16205 #include <stdio.h>
16206 #include <pwd.h>
16207 #include <limits.h>
16208 #include <sys/types.h>
16209 #include <sys/param.h>
16210 main() {
16211   FILE *f;
16212   char b[1024];
16213   uid_t u = (uid_t) -1;
16214
16215   if ((f = fopen("conftestdata", "w")) == NULL)
16216     exit(1);
16217
16218   (void) sprintf(b, "%lu", (unsigned long) u);
16219   (void) fprintf(f, "%d\n", strlen(b));
16220   (void) fclose(f);
16221   exit(0);
16222 }
16223 _ACEOF
16224 if ac_fn_c_try_run "$LINENO"; then :
16225   sudo_cv_uid_t_len=`cat conftestdata`
16226 else
16227   sudo_cv_uid_t_len=10
16228 fi
16229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16230   conftest.$ac_objext conftest.beam conftest.$ac_ext
16231 fi
16232
16233
16234 fi
16235
16236 rm -f conftestdata
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
16238 $as_echo "$sudo_cv_uid_t_len" >&6; }
16239
16240 cat >>confdefs.h <<_ACEOF
16241 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
16242 _ACEOF
16243
16244
16245
16246     ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
16247           #include <sys/socket.h>
16248
16249 "
16250 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
16251
16252 $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
16253
16254 fi
16255
16256
16257 _CFLAGS="$CFLAGS"
16258 CFLAGS="$CFLAGS $OSDEFS"
16259 if test $ac_cv_header_utmpx_h = "yes"; then
16260     ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
16261         #include <sys/types.h>
16262         #include <utmpx.h>
16263
16264 "
16265 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
16266
16267 cat >>confdefs.h <<_ACEOF
16268 #define HAVE_STRUCT_UTMPX_UT_ID 1
16269 _ACEOF
16270
16271
16272 fi
16273 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
16274         #include <sys/types.h>
16275         #include <utmpx.h>
16276
16277 "
16278 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
16279
16280 cat >>confdefs.h <<_ACEOF
16281 #define HAVE_STRUCT_UTMPX_UT_PID 1
16282 _ACEOF
16283
16284
16285 fi
16286 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
16287         #include <sys/types.h>
16288         #include <utmpx.h>
16289
16290 "
16291 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
16292
16293 cat >>confdefs.h <<_ACEOF
16294 #define HAVE_STRUCT_UTMPX_UT_TV 1
16295 _ACEOF
16296
16297
16298 fi
16299 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
16300         #include <sys/types.h>
16301         #include <utmpx.h>
16302
16303 "
16304 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
16305
16306 cat >>confdefs.h <<_ACEOF
16307 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
16308 _ACEOF
16309
16310
16311 fi
16312
16313                 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
16314         #include <sys/types.h>
16315         #include <utmpx.h>
16316
16317 "
16318 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
16319
16320 cat >>confdefs.h <<_ACEOF
16321 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
16322 _ACEOF
16323
16324 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16325
16326 else
16327
16328         ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
16329             #include <sys/types.h>
16330             #include <utmpx.h>
16331
16332 "
16333 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
16334
16335 cat >>confdefs.h <<_ACEOF
16336 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16337 _ACEOF
16338
16339 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16340
16341 fi
16342
16343
16344 fi
16345
16346 else
16347     ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
16348         #include <sys/types.h>
16349         #include <utmp.h>
16350
16351 "
16352 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
16353
16354 cat >>confdefs.h <<_ACEOF
16355 #define HAVE_STRUCT_UTMP_UT_ID 1
16356 _ACEOF
16357
16358
16359 fi
16360 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
16361         #include <sys/types.h>
16362         #include <utmp.h>
16363
16364 "
16365 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
16366
16367 cat >>confdefs.h <<_ACEOF
16368 #define HAVE_STRUCT_UTMP_UT_PID 1
16369 _ACEOF
16370
16371
16372 fi
16373 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16374         #include <sys/types.h>
16375         #include <utmp.h>
16376
16377 "
16378 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16379
16380 cat >>confdefs.h <<_ACEOF
16381 #define HAVE_STRUCT_UTMP_UT_TV 1
16382 _ACEOF
16383
16384
16385 fi
16386 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16387         #include <sys/types.h>
16388         #include <utmp.h>
16389
16390 "
16391 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16392
16393 cat >>confdefs.h <<_ACEOF
16394 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16395 _ACEOF
16396
16397
16398 fi
16399 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16400         #include <sys/types.h>
16401         #include <utmp.h>
16402
16403 "
16404 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16405
16406 cat >>confdefs.h <<_ACEOF
16407 #define HAVE_STRUCT_UTMP_UT_USER 1
16408 _ACEOF
16409
16410
16411 fi
16412
16413                 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16414         #include <sys/types.h>
16415         #include <utmp.h>
16416
16417 "
16418 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16419
16420 cat >>confdefs.h <<_ACEOF
16421 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16422 _ACEOF
16423
16424 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16425
16426 else
16427
16428         ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16429             #include <sys/types.h>
16430             #include <utmp.h>
16431
16432 "
16433 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16434
16435 cat >>confdefs.h <<_ACEOF
16436 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16437 _ACEOF
16438
16439 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16440
16441 fi
16442
16443
16444 fi
16445
16446 fi
16447 CFLAGS="$_CFLAGS"
16448
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16450 $as_echo_n "checking type of array argument to getgroups... " >&6; }
16451 if ${ac_cv_type_getgroups+:} false; then :
16452   $as_echo_n "(cached) " >&6
16453 else
16454   if test "$cross_compiling" = yes; then :
16455   ac_cv_type_getgroups=cross
16456 else
16457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h.  */
16459 /* Thanks to Mike Rendell for this test.  */
16460 $ac_includes_default
16461 #define NGID 256
16462 #undef MAX
16463 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16464
16465 int
16466 main ()
16467 {
16468   gid_t gidset[NGID];
16469   int i, n;
16470   union { gid_t gval; long int lval; }  val;
16471
16472   val.lval = -1;
16473   for (i = 0; i < NGID; i++)
16474     gidset[i] = val.gval;
16475   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16476                  gidset);
16477   /* Exit non-zero if getgroups seems to require an array of ints.  This
16478      happens when gid_t is short int but getgroups modifies an array
16479      of ints.  */
16480   return n > 0 && gidset[n] != val.gval;
16481 }
16482 _ACEOF
16483 if ac_fn_c_try_run "$LINENO"; then :
16484   ac_cv_type_getgroups=gid_t
16485 else
16486   ac_cv_type_getgroups=int
16487 fi
16488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16489   conftest.$ac_objext conftest.beam conftest.$ac_ext
16490 fi
16491
16492 if test $ac_cv_type_getgroups = cross; then
16493         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h.  */
16495 #include <unistd.h>
16496
16497 _ACEOF
16498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16499   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16500   ac_cv_type_getgroups=gid_t
16501 else
16502   ac_cv_type_getgroups=int
16503 fi
16504 rm -f conftest*
16505
16506 fi
16507 fi
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16509 $as_echo "$ac_cv_type_getgroups" >&6; }
16510
16511 cat >>confdefs.h <<_ACEOF
16512 #define GETGROUPS_T $ac_cv_type_getgroups
16513 _ACEOF
16514
16515
16516 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16517 if test "x$ac_cv_type_size_t" = xyes; then :
16518
16519 else
16520
16521 cat >>confdefs.h <<_ACEOF
16522 #define size_t unsigned int
16523 _ACEOF
16524
16525 fi
16526
16527 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16528 if test "x$ac_cv_func_getgroups" = xyes; then :
16529
16530 fi
16531
16532
16533 # If we don't yet have getgroups, see if it's in -lbsd.
16534 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16535 ac_save_LIBS=$LIBS
16536 if test $ac_cv_func_getgroups = no; then
16537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16538 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16539 if ${ac_cv_lib_bsd_getgroups+:} false; then :
16540   $as_echo_n "(cached) " >&6
16541 else
16542   ac_check_lib_save_LIBS=$LIBS
16543 LIBS="-lbsd  $LIBS"
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h.  */
16546
16547 /* Override any GCC internal prototype to avoid an error.
16548    Use char because int might match the return type of a GCC
16549    builtin and then its argument prototype would still apply.  */
16550 #ifdef __cplusplus
16551 extern "C"
16552 #endif
16553 char getgroups ();
16554 int
16555 main ()
16556 {
16557 return getgroups ();
16558   ;
16559   return 0;
16560 }
16561 _ACEOF
16562 if ac_fn_c_try_link "$LINENO"; then :
16563   ac_cv_lib_bsd_getgroups=yes
16564 else
16565   ac_cv_lib_bsd_getgroups=no
16566 fi
16567 rm -f core conftest.err conftest.$ac_objext \
16568     conftest$ac_exeext conftest.$ac_ext
16569 LIBS=$ac_check_lib_save_LIBS
16570 fi
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16572 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16573 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16574   GETGROUPS_LIB=-lbsd
16575 fi
16576
16577 fi
16578
16579 # Run the program to test the functionality of the system-supplied
16580 # getgroups function only if there is such a function.
16581 if test $ac_cv_func_getgroups = yes; then
16582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16583 $as_echo_n "checking for working getgroups... " >&6; }
16584 if ${ac_cv_func_getgroups_works+:} false; then :
16585   $as_echo_n "(cached) " >&6
16586 else
16587   if test "$cross_compiling" = yes; then :
16588   ac_cv_func_getgroups_works=no
16589 else
16590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h.  */
16592 $ac_includes_default
16593 int
16594 main ()
16595 {
16596 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
16597        return getgroups (0, 0) == -1;
16598   ;
16599   return 0;
16600 }
16601 _ACEOF
16602 if ac_fn_c_try_run "$LINENO"; then :
16603   ac_cv_func_getgroups_works=yes
16604 else
16605   ac_cv_func_getgroups_works=no
16606 fi
16607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16608   conftest.$ac_objext conftest.beam conftest.$ac_ext
16609 fi
16610
16611
16612 fi
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16614 $as_echo "$ac_cv_func_getgroups_works" >&6; }
16615 else
16616   ac_cv_func_getgroups_works=no
16617 fi
16618 if test $ac_cv_func_getgroups_works = yes; then
16619
16620 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16621
16622 fi
16623 LIBS=$ac_save_LIBS
16624
16625 for ac_func in glob strrchr sysconf tzset strftime setenv \
16626                regcomp setlocale nl_langinfo mbr_check_membership \
16627                setrlimit64
16628 do :
16629   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16631 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16632   cat >>confdefs.h <<_ACEOF
16633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16634 _ACEOF
16635
16636 fi
16637 done
16638
16639 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16640 if test "x$ac_cv_func_getgrouplist" = xyes; then :
16641   $as_echo "#define HAVE_GETGROUPLIST 1" >>confdefs.h
16642
16643 else
16644   case " $LIBOBJS " in
16645   *" getgrouplist.$ac_objext "* ) ;;
16646   *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16647  ;;
16648 esac
16649
16650 fi
16651
16652
16653 for ac_func in getline
16654 do :
16655   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16656 if test "x$ac_cv_func_getline" = xyes; then :
16657   cat >>confdefs.h <<_ACEOF
16658 #define HAVE_GETLINE 1
16659 _ACEOF
16660
16661 else
16662
16663     case " $LIBOBJS " in
16664   *" getline.$ac_objext "* ) ;;
16665   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16666  ;;
16667 esac
16668
16669     for ac_func in fgetln
16670 do :
16671   ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16672 if test "x$ac_cv_func_fgetln" = xyes; then :
16673   cat >>confdefs.h <<_ACEOF
16674 #define HAVE_FGETLN 1
16675 _ACEOF
16676
16677 fi
16678 done
16679
16680
16681 fi
16682 done
16683
16684 if test "$enable_hardening" != "no"; then
16685     O_CPPFLAGS="$CPPFLAGS"
16686     CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
16687     ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
16688 if test "x$ac_cv_func___sprintf_chk" = xyes; then :
16689
16690         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h.  */
16692
16693 int
16694 main ()
16695 {
16696 char buf[4]; (void)sprintf(buf, "%s", "foo");
16697   ;
16698   return 0;
16699 }
16700 _ACEOF
16701 if ac_fn_c_try_link "$LINENO"; then :
16702   OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
16703 fi
16704 rm -f core conftest.err conftest.$ac_objext \
16705     conftest$ac_exeext conftest.$ac_ext
16706
16707 fi
16708
16709     CPPFLAGS="$O_CPPFLAGS"
16710 fi
16711
16712 utmp_style=LEGACY
16713 for ac_func in getutxid getutid
16714 do :
16715   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16716 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16717 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16718   cat >>confdefs.h <<_ACEOF
16719 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16720 _ACEOF
16721  utmp_style=POSIX; break
16722 fi
16723 done
16724
16725 if test "$utmp_style" = "LEGACY"; then
16726     for ac_func in getttyent ttyslot
16727 do :
16728   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16730 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16731   cat >>confdefs.h <<_ACEOF
16732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16733 _ACEOF
16734  break
16735 fi
16736 done
16737
16738     for ac_func in fseeko
16739 do :
16740   ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
16741 if test "x$ac_cv_func_fseeko" = xyes; then :
16742   cat >>confdefs.h <<_ACEOF
16743 #define HAVE_FSEEKO 1
16744 _ACEOF
16745
16746 fi
16747 done
16748
16749 fi
16750
16751 for ac_func in sysctl
16752 do :
16753   ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
16754 if test "x$ac_cv_func_sysctl" = xyes; then :
16755   cat >>confdefs.h <<_ACEOF
16756 #define HAVE_SYSCTL 1
16757 _ACEOF
16758  ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
16759         #include <sys/param.h>
16760         #include <sys/sysctl.h>
16761         #include <sys/user.h>
16762
16763 "
16764 if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
16765
16766 cat >>confdefs.h <<_ACEOF
16767 #define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
16768 _ACEOF
16769
16770
16771 else
16772
16773         ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
16774             #include <sys/param.h>
16775             #include <sys/sysctl.h>
16776
16777 "
16778 if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
16779
16780 cat >>confdefs.h <<_ACEOF
16781 #define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
16782 _ACEOF
16783
16784
16785 else
16786
16787             ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
16788                 #include <sys/param.h>
16789                 #include <sys/sysctl.h>
16790
16791 "
16792 if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
16793
16794 cat >>confdefs.h <<_ACEOF
16795 #define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
16796 _ACEOF
16797
16798
16799 else
16800
16801                 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
16802                     #include <sys/param.h>
16803                     #include <sys/sysctl.h>
16804
16805 "
16806 if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
16807
16808 cat >>confdefs.h <<_ACEOF
16809 #define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
16810 _ACEOF
16811
16812
16813 fi
16814
16815
16816 fi
16817
16818
16819 fi
16820
16821
16822 fi
16823
16824
16825 fi
16826 done
16827
16828
16829 for ac_func in openpty
16830 do :
16831   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
16832 if test "x$ac_cv_func_openpty" = xyes; then :
16833   cat >>confdefs.h <<_ACEOF
16834 #define HAVE_OPENPTY 1
16835 _ACEOF
16836  for ac_header in libutil.h util.h pty.h
16837 do :
16838   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16841   cat >>confdefs.h <<_ACEOF
16842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16843 _ACEOF
16844  break
16845 fi
16846
16847 done
16848
16849 else
16850
16851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
16852 $as_echo_n "checking for openpty in -lutil... " >&6; }
16853 if ${ac_cv_lib_util_openpty+:} false; then :
16854   $as_echo_n "(cached) " >&6
16855 else
16856   ac_check_lib_save_LIBS=$LIBS
16857 LIBS="-lutil  $LIBS"
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h.  */
16860
16861 /* Override any GCC internal prototype to avoid an error.
16862    Use char because int might match the return type of a GCC
16863    builtin and then its argument prototype would still apply.  */
16864 #ifdef __cplusplus
16865 extern "C"
16866 #endif
16867 char openpty ();
16868 int
16869 main ()
16870 {
16871 return openpty ();
16872   ;
16873   return 0;
16874 }
16875 _ACEOF
16876 if ac_fn_c_try_link "$LINENO"; then :
16877   ac_cv_lib_util_openpty=yes
16878 else
16879   ac_cv_lib_util_openpty=no
16880 fi
16881 rm -f core conftest.err conftest.$ac_objext \
16882     conftest$ac_exeext conftest.$ac_ext
16883 LIBS=$ac_check_lib_save_LIBS
16884 fi
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
16886 $as_echo "$ac_cv_lib_util_openpty" >&6; }
16887 if test "x$ac_cv_lib_util_openpty" = xyes; then :
16888
16889         for ac_header in libutil.h util.h pty.h
16890 do :
16891   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16893 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16894   cat >>confdefs.h <<_ACEOF
16895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16896 _ACEOF
16897  break
16898 fi
16899
16900 done
16901
16902         case "$SUDO_LIBS" in
16903             *-lutil*) ;;
16904             *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
16905         esac
16906         $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
16907
16908
16909 else
16910
16911         for ac_func in _getpty
16912 do :
16913   ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
16914 if test "x$ac_cv_func__getpty" = xyes; then :
16915   cat >>confdefs.h <<_ACEOF
16916 #define HAVE__GETPTY 1
16917 _ACEOF
16918
16919 else
16920
16921             for ac_func in grantpt
16922 do :
16923   ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16924 if test "x$ac_cv_func_grantpt" = xyes; then :
16925   cat >>confdefs.h <<_ACEOF
16926 #define HAVE_GRANTPT 1
16927 _ACEOF
16928
16929                 for ac_func in posix_openpt
16930 do :
16931   ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
16932 if test "x$ac_cv_func_posix_openpt" = xyes; then :
16933   cat >>confdefs.h <<_ACEOF
16934 #define HAVE_POSIX_OPENPT 1
16935 _ACEOF
16936
16937 fi
16938 done
16939
16940
16941 else
16942
16943                 for ac_func in revoke
16944 do :
16945   ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
16946 if test "x$ac_cv_func_revoke" = xyes; then :
16947   cat >>confdefs.h <<_ACEOF
16948 #define HAVE_REVOKE 1
16949 _ACEOF
16950
16951 fi
16952 done
16953
16954
16955 fi
16956 done
16957
16958
16959 fi
16960 done
16961
16962
16963 fi
16964
16965
16966 fi
16967 done
16968
16969 for ac_func in unsetenv
16970 do :
16971   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16972 if test "x$ac_cv_func_unsetenv" = xyes; then :
16973   cat >>confdefs.h <<_ACEOF
16974 #define HAVE_UNSETENV 1
16975 _ACEOF
16976  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
16977 $as_echo_n "checking whether unsetenv returns void... " >&6; }
16978 if ${sudo_cv_func_unsetenv_void+:} false; then :
16979   $as_echo_n "(cached) " >&6
16980 else
16981   if test "$cross_compiling" = yes; then :
16982   sudo_cv_func_unsetenv_void=no
16983 else
16984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h.  */
16986 $ac_includes_default
16987         int unsetenv();
16988
16989 int
16990 main ()
16991 {
16992
16993         return unsetenv("FOO") != 0;
16994
16995   ;
16996   return 0;
16997 }
16998
16999 _ACEOF
17000 if ac_fn_c_try_run "$LINENO"; then :
17001   sudo_cv_func_unsetenv_void=no
17002 else
17003   sudo_cv_func_unsetenv_void=yes
17004 fi
17005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17006   conftest.$ac_objext conftest.beam conftest.$ac_ext
17007 fi
17008
17009 fi
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
17011 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
17012     if test $sudo_cv_func_unsetenv_void = yes; then
17013
17014 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
17015
17016     fi
17017
17018 fi
17019 done
17020
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv takes a const argument" >&5
17022 $as_echo_n "checking whether putenv takes a const argument... " >&6; }
17023 if ${sudo_cv_func_putenv_const+:} false; then :
17024   $as_echo_n "(cached) " >&6
17025 else
17026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17027 /* end confdefs.h.  */
17028 $ac_includes_default
17029 int putenv(const char *string) {return 0;}
17030 int
17031 main ()
17032 {
17033
17034   ;
17035   return 0;
17036 }
17037 _ACEOF
17038 if ac_fn_c_try_compile "$LINENO"; then :
17039   sudo_cv_func_putenv_const=yes
17040 else
17041   sudo_cv_func_putenv_const=no
17042 fi
17043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17044
17045 fi
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
17047 $as_echo "$sudo_cv_func_putenv_const" >&6; }
17048   if test $sudo_cv_func_putenv_const = yes; then
17049
17050 $as_echo "#define PUTENV_CONST const" >>confdefs.h
17051
17052   else
17053     $as_echo "#define PUTENV_CONST /**/" >>confdefs.h
17054
17055   fi
17056
17057 if test -z "$SKIP_SETRESUID"; then
17058     for ac_func in setresuid
17059 do :
17060   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17061 if test "x$ac_cv_func_setresuid" = xyes; then :
17062   cat >>confdefs.h <<_ACEOF
17063 #define HAVE_SETRESUID 1
17064 _ACEOF
17065
17066         SKIP_SETREUID=yes
17067         for ac_func in getresuid
17068 do :
17069   ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
17070 if test "x$ac_cv_func_getresuid" = xyes; then :
17071   cat >>confdefs.h <<_ACEOF
17072 #define HAVE_GETRESUID 1
17073 _ACEOF
17074
17075 fi
17076 done
17077
17078
17079 fi
17080 done
17081
17082 fi
17083 if test -z "$SKIP_SETREUID"; then
17084     for ac_func in setreuid
17085 do :
17086   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17087 if test "x$ac_cv_func_setreuid" = xyes; then :
17088   cat >>confdefs.h <<_ACEOF
17089 #define HAVE_SETREUID 1
17090 _ACEOF
17091  SKIP_SETEUID=yes
17092 fi
17093 done
17094
17095 fi
17096 if test -z "$SKIP_SETEUID"; then
17097     for ac_func in seteuid
17098 do :
17099   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
17100 if test "x$ac_cv_func_seteuid" = xyes; then :
17101   cat >>confdefs.h <<_ACEOF
17102 #define HAVE_SETEUID 1
17103 _ACEOF
17104
17105 fi
17106 done
17107
17108 fi
17109 if test X"$with_interfaces" != X"no"; then
17110     for ac_func in getifaddrs
17111 do :
17112   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
17113 if test "x$ac_cv_func_getifaddrs" = xyes; then :
17114   cat >>confdefs.h <<_ACEOF
17115 #define HAVE_GETIFADDRS 1
17116 _ACEOF
17117  for ac_func in freeifaddrs
17118 do :
17119   ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
17120 if test "x$ac_cv_func_freeifaddrs" = xyes; then :
17121   cat >>confdefs.h <<_ACEOF
17122 #define HAVE_FREEIFADDRS 1
17123 _ACEOF
17124
17125 fi
17126 done
17127
17128 fi
17129 done
17130
17131 fi
17132 if test -z "$BROKEN_GETCWD"; then
17133     ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
17134 if test "x$ac_cv_func_getcwd" = xyes; then :
17135   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
17136
17137 else
17138   case " $LIBOBJS " in
17139   *" getcwd.$ac_objext "* ) ;;
17140   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
17141  ;;
17142 esac
17143
17144 fi
17145
17146
17147 fi
17148 for ac_func in lockf flock
17149 do :
17150   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17151 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17152 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17153   cat >>confdefs.h <<_ACEOF
17154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17155 _ACEOF
17156  break
17157 fi
17158 done
17159
17160 for ac_func in innetgr _innetgr
17161 do :
17162   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17163 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17164 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17165   cat >>confdefs.h <<_ACEOF
17166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17167 _ACEOF
17168  for ac_func in getdomainname
17169 do :
17170   ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
17171 if test "x$ac_cv_func_getdomainname" = xyes; then :
17172   cat >>confdefs.h <<_ACEOF
17173 #define HAVE_GETDOMAINNAME 1
17174 _ACEOF
17175
17176 fi
17177 done
17178  break
17179 fi
17180 done
17181
17182 for ac_func in utimes
17183 do :
17184   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
17185 if test "x$ac_cv_func_utimes" = xyes; then :
17186   cat >>confdefs.h <<_ACEOF
17187 #define HAVE_UTIMES 1
17188 _ACEOF
17189  for ac_func in futimes futimesat
17190 do :
17191   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17192 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17193 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17194   cat >>confdefs.h <<_ACEOF
17195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17196 _ACEOF
17197  break
17198 fi
17199 done
17200
17201 else
17202   for ac_func in futime
17203 do :
17204   ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
17205 if test "x$ac_cv_func_futime" = xyes; then :
17206   cat >>confdefs.h <<_ACEOF
17207 #define HAVE_FUTIME 1
17208 _ACEOF
17209
17210 fi
17211 done
17212  case " $LIBOBJS " in
17213   *" utimes.$ac_objext "* ) ;;
17214   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17215  ;;
17216 esac
17217
17218 fi
17219 done
17220
17221 for ac_func in killpg
17222 do :
17223   ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
17224 if test "x$ac_cv_func_killpg" = xyes; then :
17225   cat >>confdefs.h <<_ACEOF
17226 #define HAVE_KILLPG 1
17227 _ACEOF
17228
17229 else
17230   case " $LIBOBJS " in
17231   *" killpg.$ac_objext "* ) ;;
17232   *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
17233  ;;
17234 esac
17235
17236 fi
17237 done
17238
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
17240 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
17241 if ${sudo_cv_func_fnmatch+:} false; then :
17242   $as_echo_n "(cached) " >&6
17243 else
17244   rm -f conftestdata; > conftestdata
17245 if test "$cross_compiling" = yes; then :
17246   sudo_cv_func_fnmatch=no
17247 else
17248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h.  */
17250 #include <fnmatch.h>
17251 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17252 _ACEOF
17253 if ac_fn_c_try_run "$LINENO"; then :
17254   sudo_cv_func_fnmatch=yes
17255 else
17256   sudo_cv_func_fnmatch=no
17257 fi
17258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17259   conftest.$ac_objext conftest.beam conftest.$ac_ext
17260 fi
17261
17262 rm -f core core.* *.core
17263 fi
17264
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
17266 $as_echo "$sudo_cv_func_fnmatch" >&6; }
17267 if test $sudo_cv_func_fnmatch = yes; then :
17268   $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
17269
17270 else
17271   case " $LIBOBJS " in
17272   *" fnmatch.$ac_objext "* ) ;;
17273   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17274  ;;
17275 esac
17276
17277     COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
17278
17279 fi
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
17281 $as_echo_n "checking for isblank... " >&6; }
17282 if ${sudo_cv_func_isblank+:} false; then :
17283   $as_echo_n "(cached) " >&6
17284 else
17285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17286 /* end confdefs.h.  */
17287 #include <ctype.h>
17288 int
17289 main ()
17290 {
17291 return (isblank('a'));
17292   ;
17293   return 0;
17294 }
17295 _ACEOF
17296 if ac_fn_c_try_link "$LINENO"; then :
17297   sudo_cv_func_isblank=yes
17298 else
17299   sudo_cv_func_isblank=no
17300 fi
17301 rm -f core conftest.err conftest.$ac_objext \
17302     conftest$ac_exeext conftest.$ac_ext
17303 fi
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
17305 $as_echo "$sudo_cv_func_isblank" >&6; }
17306
17307   if test "$sudo_cv_func_isblank" = "yes"; then
17308
17309 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17310
17311   else
17312     case " $LIBOBJS " in
17313   *" isblank.$ac_objext "* ) ;;
17314   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17315  ;;
17316 esac
17317
17318   fi
17319
17320 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17321 if test "x$ac_cv_func_memrchr" = xyes; then :
17322   $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17323
17324 else
17325   case " $LIBOBJS " in
17326   *" memrchr.$ac_objext "* ) ;;
17327   *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17328  ;;
17329 esac
17330
17331 fi
17332
17333 ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
17334 if test "x$ac_cv_func_pw_dup" = xyes; then :
17335   $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
17336
17337 else
17338   case " $LIBOBJS " in
17339   *" pw_dup.$ac_objext "* ) ;;
17340   *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
17341  ;;
17342 esac
17343
17344 fi
17345
17346 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17347 if test "x$ac_cv_func_strlcpy" = xyes; then :
17348   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17349
17350 else
17351   case " $LIBOBJS " in
17352   *" strlcpy.$ac_objext "* ) ;;
17353   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17354  ;;
17355 esac
17356
17357 fi
17358
17359 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17360 if test "x$ac_cv_func_strlcat" = xyes; then :
17361   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17362
17363 else
17364   case " $LIBOBJS " in
17365   *" strlcat.$ac_objext "* ) ;;
17366   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17367  ;;
17368 esac
17369
17370 fi
17371
17372
17373 for ac_func in nanosleep
17374 do :
17375   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17376 if test "x$ac_cv_func_nanosleep" = xyes; then :
17377   cat >>confdefs.h <<_ACEOF
17378 #define HAVE_NANOSLEEP 1
17379 _ACEOF
17380
17381 else
17382
17383     # On Solaris, nanosleep is in librt
17384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
17385 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
17386 if ${ac_cv_lib_rt_nanosleep+:} false; then :
17387   $as_echo_n "(cached) " >&6
17388 else
17389   ac_check_lib_save_LIBS=$LIBS
17390 LIBS="-lrt  $LIBS"
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h.  */
17393
17394 /* Override any GCC internal prototype to avoid an error.
17395    Use char because int might match the return type of a GCC
17396    builtin and then its argument prototype would still apply.  */
17397 #ifdef __cplusplus
17398 extern "C"
17399 #endif
17400 char nanosleep ();
17401 int
17402 main ()
17403 {
17404 return nanosleep ();
17405   ;
17406   return 0;
17407 }
17408 _ACEOF
17409 if ac_fn_c_try_link "$LINENO"; then :
17410   ac_cv_lib_rt_nanosleep=yes
17411 else
17412   ac_cv_lib_rt_nanosleep=no
17413 fi
17414 rm -f core conftest.err conftest.$ac_objext \
17415     conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17417 fi
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
17419 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
17420 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
17421   REPLAY_LIBS="${REPLAY_LIBS} -lrt"
17422 else
17423   case " $LIBOBJS " in
17424   *" nanosleep.$ac_objext "* ) ;;
17425   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17426  ;;
17427 esac
17428
17429 fi
17430
17431
17432 fi
17433 done
17434
17435 for ac_func in closefrom
17436 do :
17437   ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
17438 if test "x$ac_cv_func_closefrom" = xyes; then :
17439   cat >>confdefs.h <<_ACEOF
17440 #define HAVE_CLOSEFROM 1
17441 _ACEOF
17442
17443 else
17444   case " $LIBOBJS " in
17445   *" closefrom.$ac_objext "* ) ;;
17446   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17447  ;;
17448 esac
17449
17450     ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
17451           #include <fcntl.h>
17452 "
17453 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
17454   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
17455
17456 fi
17457
17458
17459 fi
17460 done
17461
17462 for ac_func in mkstemps mkdtemp
17463 do :
17464   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17466 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17467   cat >>confdefs.h <<_ACEOF
17468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17469 _ACEOF
17470
17471 else
17472
17473     for ac_func in random lrand48
17474 do :
17475   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17476 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17477 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17478   cat >>confdefs.h <<_ACEOF
17479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17480 _ACEOF
17481  break
17482 fi
17483 done
17484
17485     case " $LIBOBJS " in
17486   *" mktemp.$ac_objext "* ) ;;
17487   *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17488  ;;
17489 esac
17490
17491
17492 fi
17493 done
17494
17495 for ac_func in snprintf vsnprintf asprintf vasprintf
17496 do :
17497   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17500   cat >>confdefs.h <<_ACEOF
17501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17502 _ACEOF
17503
17504 else
17505   NEED_SNPRINTF=1
17506 fi
17507 done
17508
17509 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17510     ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17511 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17512   $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17513
17514         ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17515 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17516   $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17517
17518 fi
17519
17520 else
17521   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17522 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17523   $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17524
17525 fi
17526
17527 fi
17528
17529 fi
17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531 /* end confdefs.h.  */
17532 #include <sys/types.h>
17533 #include <$ac_header_dirent>
17534 int
17535 main ()
17536 {
17537 DIR *d; (void)dirfd(d);
17538   ;
17539   return 0;
17540 }
17541 _ACEOF
17542 if ac_fn_c_try_link "$LINENO"; then :
17543   $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17544
17545 else
17546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547 /* end confdefs.h.  */
17548 #include <sys/types.h>
17549 #include <$ac_header_dirent>
17550 int
17551 main ()
17552 {
17553 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17554   ;
17555   return 0;
17556 }
17557 _ACEOF
17558 if ac_fn_c_try_link "$LINENO"; then :
17559   $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17560
17561 fi
17562 rm -f core conftest.err conftest.$ac_objext \
17563     conftest$ac_exeext conftest.$ac_ext
17564 fi
17565 rm -f core conftest.err conftest.$ac_objext \
17566     conftest$ac_exeext conftest.$ac_ext
17567 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17568 $ac_includes_default
17569 #include <$ac_header_dirent>
17570
17571 "
17572 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17573
17574 cat >>confdefs.h <<_ACEOF
17575 #define HAVE_STRUCT_DIRENT_D_TYPE 1
17576 _ACEOF
17577
17578
17579 fi
17580
17581 if test -n "$NEED_SNPRINTF"; then
17582     case " $LIBOBJS " in
17583   *" snprintf.$ac_objext "* ) ;;
17584   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17585  ;;
17586 esac
17587
17588 fi
17589 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17590 if test "x$ac_cv_func_socket" = xyes; then :
17591
17592 else
17593
17594     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17595         _libs=
17596         for lib in $libs; do
17597             case "$NET_LIBS" in
17598                 *"$lib"*)   ;;
17599                 *)          _libs="$_libs $lib";;
17600             esac
17601         done
17602         libs="${_libs# }"
17603         test -z "$libs" && continue
17604         lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17605         extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17606
17607     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
17608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
17609 $as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
17610     if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17611   $as_echo_n "(cached) " >&6
17612 else
17613
17614         SUDO_CHECK_LIB_OLIBS="$LIBS"
17615         LIBS="$LIBS -l$lib${5+ }$extralibs"
17616         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h.  */
17618
17619 /* Override any GCC internal prototype to avoid an error.
17620    Use char because int might match the return type of a GCC
17621    builtin and then its argument prototype would still apply.  */
17622 #ifdef __cplusplus
17623 extern "C"
17624 #endif
17625 char socket ();
17626 int
17627 main ()
17628 {
17629 return socket ();
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 if ac_fn_c_try_link "$LINENO"; then :
17635   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
17636 else
17637   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
17638
17639 fi
17640 rm -f core conftest.err conftest.$ac_objext \
17641     conftest$ac_exeext conftest.$ac_ext
17642         LIBS="$SUDO_CHECK_LIB_OLIBS"
17643
17644 fi
17645
17646     if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
17647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17648 $as_echo "yes" >&6; }
17649         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17650     else
17651         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17652 $as_echo "no" >&6; }
17653
17654     fi
17655
17656     done
17657
17658 fi
17659
17660 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17661 if test "x$ac_cv_func_inet_addr" = xyes; then :
17662
17663 else
17664
17665     ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17666 if test "x$ac_cv_func___inet_addr" = xyes; then :
17667
17668 else
17669
17670         for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17671             _libs=
17672             for lib in $libs; do
17673                 case "$NET_LIBS" in
17674                     *"$lib"*)   ;;
17675                     *)          _libs="$_libs $lib";;
17676                 esac
17677             done
17678             libs="${_libs# }"
17679             test -z "$libs" && continue
17680             lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17681             extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17682
17683     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
17684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5
17685 $as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; }
17686     if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17687   $as_echo_n "(cached) " >&6
17688 else
17689
17690         SUDO_CHECK_LIB_OLIBS="$LIBS"
17691         LIBS="$LIBS -l$lib${5+ }$extralibs"
17692         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17693 /* end confdefs.h.  */
17694
17695 /* Override any GCC internal prototype to avoid an error.
17696    Use char because int might match the return type of a GCC
17697    builtin and then its argument prototype would still apply.  */
17698 #ifdef __cplusplus
17699 extern "C"
17700 #endif
17701 char inet_addr ();
17702 int
17703 main ()
17704 {
17705 return inet_addr ();
17706   ;
17707   return 0;
17708 }
17709 _ACEOF
17710 if ac_fn_c_try_link "$LINENO"; then :
17711   eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes
17712 else
17713   eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no
17714
17715 fi
17716 rm -f core conftest.err conftest.$ac_objext \
17717     conftest$ac_exeext conftest.$ac_ext
17718         LIBS="$SUDO_CHECK_LIB_OLIBS"
17719
17720 fi
17721
17722     if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then
17723         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17724 $as_echo "yes" >&6; }
17725         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17726     else
17727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17728 $as_echo "no" >&6; }
17729
17730     fi
17731
17732         done
17733
17734 fi
17735
17736
17737 fi
17738
17739 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17740 if test "x$ac_cv_func_syslog" = xyes; then :
17741
17742 else
17743
17744     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17745         _libs=
17746         for lib in $libs; do
17747             case "$NET_LIBS" in
17748                 *"$lib"*)   ;;
17749                 *)          _libs="$_libs $lib";;
17750             esac
17751         done
17752         libs="${_libs# }"
17753         test -z "$libs" && continue
17754         lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17755         extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17756
17757     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
17758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
17759 $as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
17760     if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17761   $as_echo_n "(cached) " >&6
17762 else
17763
17764         SUDO_CHECK_LIB_OLIBS="$LIBS"
17765         LIBS="$LIBS -l$lib${5+ }$extralibs"
17766         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h.  */
17768
17769 /* Override any GCC internal prototype to avoid an error.
17770    Use char because int might match the return type of a GCC
17771    builtin and then its argument prototype would still apply.  */
17772 #ifdef __cplusplus
17773 extern "C"
17774 #endif
17775 char syslog ();
17776 int
17777 main ()
17778 {
17779 return syslog ();
17780   ;
17781   return 0;
17782 }
17783 _ACEOF
17784 if ac_fn_c_try_link "$LINENO"; then :
17785   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
17786 else
17787   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
17788
17789 fi
17790 rm -f core conftest.err conftest.$ac_objext \
17791     conftest$ac_exeext conftest.$ac_ext
17792         LIBS="$SUDO_CHECK_LIB_OLIBS"
17793
17794 fi
17795
17796     if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
17797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17798 $as_echo "yes" >&6; }
17799         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17800     else
17801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17802 $as_echo "no" >&6; }
17803
17804     fi
17805
17806     done
17807
17808 fi
17809
17810 for ac_func in getaddrinfo
17811 do :
17812   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17813 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17814   cat >>confdefs.h <<_ACEOF
17815 #define HAVE_GETADDRINFO 1
17816 _ACEOF
17817
17818 else
17819
17820     found=no
17821     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17822         _libs=
17823         for lib in $libs; do
17824             case "$NET_LIBS" in
17825                 *"$lib"*)   ;;
17826                 *)          _libs="$_libs $lib";;
17827             esac
17828         done
17829         libs="${_libs# }"
17830         test -z "$libs" && continue
17831         lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17832         extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17833
17834     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
17835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib${5+ }$extralibs" >&5
17836 $as_echo_n "checking for getaddrinfo in -l$lib${5+ }$extralibs... " >&6; }
17837     if { as_var=sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17838   $as_echo_n "(cached) " >&6
17839 else
17840
17841         SUDO_CHECK_LIB_OLIBS="$LIBS"
17842         LIBS="$LIBS -l$lib${5+ }$extralibs"
17843         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h.  */
17845
17846 /* Override any GCC internal prototype to avoid an error.
17847    Use char because int might match the return type of a GCC
17848    builtin and then its argument prototype would still apply.  */
17849 #ifdef __cplusplus
17850 extern "C"
17851 #endif
17852 char getaddrinfo ();
17853 int
17854 main ()
17855 {
17856 return getaddrinfo ();
17857   ;
17858   return 0;
17859 }
17860 _ACEOF
17861 if ac_fn_c_try_link "$LINENO"; then :
17862   eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=yes
17863 else
17864   eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=no
17865
17866 fi
17867 rm -f core conftest.err conftest.$ac_objext \
17868     conftest$ac_exeext conftest.$ac_ext
17869         LIBS="$SUDO_CHECK_LIB_OLIBS"
17870
17871 fi
17872
17873     if eval test \$sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras = "yes"; then
17874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17875 $as_echo "yes" >&6; }
17876         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; found=yes; break
17877     else
17878         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17879 $as_echo "no" >&6; }
17880
17881     fi
17882
17883     done
17884     if test X"$found" != X"no"; then
17885         $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17886
17887     fi
17888
17889 fi
17890 done
17891
17892 for ac_func in getprogname
17893 do :
17894   ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17895 if test "x$ac_cv_func_getprogname" = xyes; then :
17896   cat >>confdefs.h <<_ACEOF
17897 #define HAVE_GETPROGNAME 1
17898 _ACEOF
17899
17900 else
17901
17902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
17903 $as_echo_n "checking for __progname... " >&6; }
17904     if ${sudo_cv___progname+:} false; then :
17905   $as_echo_n "(cached) " >&6
17906 else
17907
17908     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h.  */
17910
17911 int
17912 main ()
17913 {
17914 extern char *__progname; (void)puts(__progname);
17915   ;
17916   return 0;
17917 }
17918 _ACEOF
17919 if ac_fn_c_try_link "$LINENO"; then :
17920   sudo_cv___progname=yes
17921 else
17922   sudo_cv___progname=no
17923 fi
17924 rm -f core conftest.err conftest.$ac_objext \
17925     conftest$ac_exeext conftest.$ac_ext
17926 fi
17927
17928     if test "$sudo_cv___progname" = "yes"; then
17929         $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17930
17931     else
17932         case " $LIBOBJS " in
17933   *" getprogname.$ac_objext "* ) ;;
17934   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
17935  ;;
17936 esac
17937
17938     fi
17939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
17940 $as_echo "$sudo_cv___progname" >&6; }
17941
17942 fi
17943 done
17944
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
17946 $as_echo_n "checking for __func__... " >&6; }
17947 if ${sudo_cv___func__+:} false; then :
17948   $as_echo_n "(cached) " >&6
17949 else
17950
17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17952 /* end confdefs.h.  */
17953
17954 int
17955 main ()
17956 {
17957 (void)puts(__func__);
17958   ;
17959   return 0;
17960 }
17961 _ACEOF
17962 if ac_fn_c_try_link "$LINENO"; then :
17963   sudo_cv___func__=yes
17964 else
17965   sudo_cv___func__=no
17966 fi
17967 rm -f core conftest.err conftest.$ac_objext \
17968     conftest$ac_exeext conftest.$ac_ext
17969 fi
17970
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
17972 $as_echo "$sudo_cv___func__" >&6; }
17973 if test "$sudo_cv___func__" = "yes"; then
17974     $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17975
17976 elif test -n "$GCC"; then
17977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
17978 $as_echo_n "checking for __FUNCTION__... " >&6; }
17979     if ${sudo_cv___FUNCTION__+:} false; then :
17980   $as_echo_n "(cached) " >&6
17981 else
17982
17983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h.  */
17985
17986 int
17987 main ()
17988 {
17989 (void)puts(__FUNCTION__);
17990   ;
17991   return 0;
17992 }
17993 _ACEOF
17994 if ac_fn_c_try_link "$LINENO"; then :
17995   sudo_cv___FUNCTION__=yes
17996 else
17997   sudo_cv___FUNCTION__=no
17998 fi
17999 rm -f core conftest.err conftest.$ac_objext \
18000     conftest$ac_exeext conftest.$ac_ext
18001 fi
18002
18003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
18004 $as_echo "$sudo_cv___FUNCTION__" >&6; }
18005     if test "$sudo_cv___FUNCTION__" = "yes"; then
18006         $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
18007
18008
18009 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
18010
18011     fi
18012 fi
18013
18014 # gettext() and friends may be located in libc (Linux and Solaris)
18015 # or in libintl.  However, it is possible to have libintl installed
18016 # even when gettext() is present in libc.  In the case of GNU libintl,
18017 # gettext() will be defined to gettext_libintl in libintl.h.
18018 # Since gcc prefers /usr/local/include to /usr/include, we need to
18019 # make sure we use the gettext() that matches the include file.
18020 if test "$enable_nls" != "no"; then
18021     if test "$enable_nls" != "yes"; then
18022         CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
18023
18024     if test X"$with_rpath" = X"yes"; then
18025         case "$host" in
18026             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,+b,$enable_nls/lib"
18027                         ;;
18028             *)          LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,-R$enable_nls/lib"
18029                         ;;
18030         esac
18031     else
18032         LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
18033     fi
18034     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18035         blibpath_add="${blibpath_add}:$enable_nls/lib"
18036     fi
18037
18038     fi
18039     OLIBS="$LIBS"
18040     for l in "libc" "-lintl" "-lintl -liconv"; do
18041         if test "$l" = "libc"; then
18042             # If user specified a dir for libintl ignore libc
18043             if test "$enable_nls" != "yes"; then
18044                 continue
18045             fi
18046             gettext_name=sudo_cv_gettext
18047             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
18048 $as_echo_n "checking for gettext... " >&6; }
18049         else
18050             LIBS="$OLIBS $l"
18051             gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
18052             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
18053 $as_echo_n "checking for gettext in $l... " >&6; }
18054         fi
18055         if eval \${$gettext_name+:} false; then :
18056   $as_echo_n "(cached) " >&6
18057 else
18058
18059                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h.  */
18061
18062                         #include <libintl.h>
18063 int
18064 main ()
18065 {
18066 (void)gettext((char *)0);
18067   ;
18068   return 0;
18069 }
18070
18071 _ACEOF
18072 if ac_fn_c_try_link "$LINENO"; then :
18073   eval $gettext_name=yes
18074 else
18075   eval $gettext_name=no
18076
18077 fi
18078 rm -f core conftest.err conftest.$ac_objext \
18079     conftest$ac_exeext conftest.$ac_ext
18080
18081 fi
18082
18083         eval gettext_result="\$$gettext_name"
18084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
18085 $as_echo "$gettext_result" >&6; }
18086         if test "$gettext_result" = "yes"; then
18087             for ac_func in ngettext
18088 do :
18089   ac_fn_c_check_func "$LINENO" "ngettext" "ac_cv_func_ngettext"
18090 if test "x$ac_cv_func_ngettext" = xyes; then :
18091   cat >>confdefs.h <<_ACEOF
18092 #define HAVE_NGETTEXT 1
18093 _ACEOF
18094
18095 fi
18096 done
18097
18098             break
18099         fi
18100     done
18101     LIBS="$OLIBS"
18102
18103     if test "$sudo_cv_gettext" = "yes"; then
18104         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18105
18106         SUDO_NLS=enabled
18107     elif test "$sudo_cv_gettext_lintl" = "yes"; then
18108         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18109
18110         SUDO_NLS=enabled
18111         LIBINTL="-lintl"
18112     elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
18113         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18114
18115         SUDO_NLS=enabled
18116         LIBINTL="-lintl -liconv"
18117     fi
18118 fi
18119
18120 case "$enable_zlib" in
18121     yes)
18122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18123 $as_echo_n "checking for gzdopen in -lz... " >&6; }
18124 if ${ac_cv_lib_z_gzdopen+:} false; then :
18125   $as_echo_n "(cached) " >&6
18126 else
18127   ac_check_lib_save_LIBS=$LIBS
18128 LIBS="-lz  $LIBS"
18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h.  */
18131
18132 /* Override any GCC internal prototype to avoid an error.
18133    Use char because int might match the return type of a GCC
18134    builtin and then its argument prototype would still apply.  */
18135 #ifdef __cplusplus
18136 extern "C"
18137 #endif
18138 char gzdopen ();
18139 int
18140 main ()
18141 {
18142 return gzdopen ();
18143   ;
18144   return 0;
18145 }
18146 _ACEOF
18147 if ac_fn_c_try_link "$LINENO"; then :
18148   ac_cv_lib_z_gzdopen=yes
18149 else
18150   ac_cv_lib_z_gzdopen=no
18151 fi
18152 rm -f core conftest.err conftest.$ac_objext \
18153     conftest$ac_exeext conftest.$ac_ext
18154 LIBS=$ac_check_lib_save_LIBS
18155 fi
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18157 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18158 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
18159
18160             for ac_header in zlib.h
18161 do :
18162   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18163 if test "x$ac_cv_header_zlib_h" = xyes; then :
18164   cat >>confdefs.h <<_ACEOF
18165 #define HAVE_ZLIB_H 1
18166 _ACEOF
18167  ZLIB="-lz"
18168 else
18169   enable_zlib=builtin
18170 fi
18171
18172 done
18173
18174
18175 fi
18176
18177         ;;
18178     no)
18179         ;;
18180     system)
18181         $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18182
18183         ZLIB="-lz"
18184         ;;
18185     builtin)
18186         # handled below
18187         ;;
18188     *)
18189         $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18190
18191         CPPFLAGS="-I${enable_zlib}/include ${CPPFLAGS}"
18192
18193     if test X"$with_rpath" = X"yes"; then
18194         case "$host" in
18195             *-*-hpux*)  ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
18196                         ;;
18197             *)          ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
18198                         ;;
18199         esac
18200     else
18201         ZLIB="${ZLIB} -L$enable_zlib/lib"
18202     fi
18203     if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
18204         blibpath_add="${blibpath_add}:$enable_zlib/lib"
18205     fi
18206
18207         ZLIB="${ZLIB} -lz"
18208         ;;
18209 esac
18210 if test X"$enable_zlib" = X"builtin"; then
18211     $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18212
18213     CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
18214     ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
18215     ZLIB_SRC=zlib
18216     ac_config_headers="$ac_config_headers zlib/zconf.h"
18217
18218     ac_config_files="$ac_config_files zlib/Makefile"
18219
18220 fi
18221
18222 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
18223 $ac_includes_default
18224 #include <errno.h>
18225
18226 "
18227 if test "x$ac_cv_have_decl_errno" = xyes; then :
18228   ac_have_decl=1
18229 else
18230   ac_have_decl=0
18231 fi
18232
18233 cat >>confdefs.h <<_ACEOF
18234 #define HAVE_DECL_ERRNO $ac_have_decl
18235 _ACEOF
18236
18237
18238 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
18239 $ac_includes_default
18240 #include <netdb.h>
18241
18242 "
18243 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
18244   ac_have_decl=1
18245 else
18246   ac_have_decl=0
18247 fi
18248
18249 cat >>confdefs.h <<_ACEOF
18250 #define HAVE_DECL_H_ERRNO $ac_have_decl
18251 _ACEOF
18252
18253
18254 for ac_func in strsignal
18255 do :
18256   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
18257 if test "x$ac_cv_func_strsignal" = xyes; then :
18258   cat >>confdefs.h <<_ACEOF
18259 #define HAVE_STRSIGNAL 1
18260 _ACEOF
18261
18262 else
18263
18264     case " $LIBOBJS " in
18265   *" strsignal.$ac_objext "* ) ;;
18266   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
18267  ;;
18268 esac
18269
18270     HAVE_SIGLIST="false"
18271     ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
18272 $ac_includes_default
18273 #include <signal.h>
18274
18275 "
18276 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
18277   ac_have_decl=1
18278 else
18279   ac_have_decl=0
18280 fi
18281
18282 cat >>confdefs.h <<_ACEOF
18283 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
18284 _ACEOF
18285 if test $ac_have_decl = 1; then :
18286
18287         HAVE_SIGLIST="true"
18288         break
18289
18290 fi
18291 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
18292 $ac_includes_default
18293 #include <signal.h>
18294
18295 "
18296 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
18297   ac_have_decl=1
18298 else
18299   ac_have_decl=0
18300 fi
18301
18302 cat >>confdefs.h <<_ACEOF
18303 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
18304 _ACEOF
18305 if test $ac_have_decl = 1; then :
18306
18307         HAVE_SIGLIST="true"
18308         break
18309
18310 fi
18311 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
18312 $ac_includes_default
18313 #include <signal.h>
18314
18315 "
18316 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
18317   ac_have_decl=1
18318 else
18319   ac_have_decl=0
18320 fi
18321
18322 cat >>confdefs.h <<_ACEOF
18323 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
18324 _ACEOF
18325 if test $ac_have_decl = 1; then :
18326
18327         HAVE_SIGLIST="true"
18328         break
18329
18330 fi
18331
18332     if test "$HAVE_SIGLIST" != "true"; then
18333         case " $LIBOBJS " in
18334   *" siglist.$ac_objext "* ) ;;
18335   *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
18336  ;;
18337 esac
18338
18339     fi
18340
18341 fi
18342 done
18343
18344
18345 for ac_func in sig2str
18346 do :
18347   ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
18348 if test "x$ac_cv_func_sig2str" = xyes; then :
18349   cat >>confdefs.h <<_ACEOF
18350 #define HAVE_SIG2STR 1
18351 _ACEOF
18352
18353 else
18354
18355     case " $LIBOBJS " in
18356   *" sig2str.$ac_objext "* ) ;;
18357   *) LIBOBJS="$LIBOBJS sig2str.$ac_objext"
18358  ;;
18359 esac
18360
18361     HAVE_SIGNAME="false"
18362     ac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "
18363 $ac_includes_default
18364 #include <signal.h>
18365
18366 "
18367 if test "x$ac_cv_have_decl_sys_signame" = xyes; then :
18368   ac_have_decl=1
18369 else
18370   ac_have_decl=0
18371 fi
18372
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_DECL_SYS_SIGNAME $ac_have_decl
18375 _ACEOF
18376 if test $ac_have_decl = 1; then :
18377
18378         HAVE_SIGNAME="true"
18379         break
18380
18381 fi
18382 ac_fn_c_check_decl "$LINENO" "_sys_signame" "ac_cv_have_decl__sys_signame" "
18383 $ac_includes_default
18384 #include <signal.h>
18385
18386 "
18387 if test "x$ac_cv_have_decl__sys_signame" = xyes; then :
18388   ac_have_decl=1
18389 else
18390   ac_have_decl=0
18391 fi
18392
18393 cat >>confdefs.h <<_ACEOF
18394 #define HAVE_DECL__SYS_SIGNAME $ac_have_decl
18395 _ACEOF
18396 if test $ac_have_decl = 1; then :
18397
18398         HAVE_SIGNAME="true"
18399         break
18400
18401 fi
18402 ac_fn_c_check_decl "$LINENO" "__sys_signame" "ac_cv_have_decl___sys_signame" "
18403 $ac_includes_default
18404 #include <signal.h>
18405
18406 "
18407 if test "x$ac_cv_have_decl___sys_signame" = xyes; then :
18408   ac_have_decl=1
18409 else
18410   ac_have_decl=0
18411 fi
18412
18413 cat >>confdefs.h <<_ACEOF
18414 #define HAVE_DECL___SYS_SIGNAME $ac_have_decl
18415 _ACEOF
18416 if test $ac_have_decl = 1; then :
18417
18418         HAVE_SIGNAME="true"
18419         break
18420
18421 fi
18422 ac_fn_c_check_decl "$LINENO" "sys_sigabbrev" "ac_cv_have_decl_sys_sigabbrev" "
18423 $ac_includes_default
18424 #include <signal.h>
18425
18426 "
18427 if test "x$ac_cv_have_decl_sys_sigabbrev" = xyes; then :
18428   ac_have_decl=1
18429 else
18430   ac_have_decl=0
18431 fi
18432
18433 cat >>confdefs.h <<_ACEOF
18434 #define HAVE_DECL_SYS_SIGABBREV $ac_have_decl
18435 _ACEOF
18436 if test $ac_have_decl = 1; then :
18437
18438         HAVE_SIGNAME="true"
18439         break
18440
18441 fi
18442
18443     if test "$HAVE_SIGNAME" != "true"; then
18444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for undeclared sys_sigabbrev" >&5
18445 $as_echo_n "checking for undeclared sys_sigabbrev... " >&6; }
18446 if ${sudo_cv_var_sys_sigabbrev+:} false; then :
18447   $as_echo_n "(cached) " >&6
18448 else
18449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h.  */
18451 extern char **sys_sigabbrev;
18452 int
18453 main ()
18454 {
18455 return sys_sigabbrev[1];
18456   ;
18457   return 0;
18458 }
18459 _ACEOF
18460 if ac_fn_c_try_link "$LINENO"; then :
18461   sudo_cv_var_sys_sigabbrev=yes
18462 else
18463   sudo_cv_var_sys_sigabbrev=no
18464
18465 fi
18466 rm -f core conftest.err conftest.$ac_objext \
18467     conftest$ac_exeext conftest.$ac_ext
18468
18469
18470 fi
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_sys_sigabbrev" >&5
18472 $as_echo "$sudo_cv_var_sys_sigabbrev" >&6; }
18473         if test "$sudo_cv_var_sys_sigabbrev" = yes; then
18474             $as_echo "#define HAVE_SYS_SIGABBREV 1" >>confdefs.h
18475
18476         else
18477             case " $LIBOBJS " in
18478   *" signame.$ac_objext "* ) ;;
18479   *) LIBOBJS="$LIBOBJS signame.$ac_objext"
18480  ;;
18481 esac
18482
18483         fi
18484     fi
18485
18486 fi
18487 done
18488
18489
18490 if test ${with_netsvc-"no"} != "no"; then
18491     cat >>confdefs.h <<EOF
18492 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
18493 EOF
18494
18495     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
18496 elif test ${with_nsswitch-"yes"} != "no"; then
18497     cat >>confdefs.h <<EOF
18498 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
18499 EOF
18500
18501     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
18502 fi
18503
18504
18505 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
18506     for auth in $AUTH_EXCL_DEF; do
18507         case $auth in
18508             AIX_AUTH)   with_aixauth=maybe;;
18509             BSD_AUTH)   with_bsdauth=maybe;;
18510             PAM)        with_pam=maybe;;
18511             SIA)        CHECKSIA=true;;
18512         esac
18513     done
18514 fi
18515
18516 if test ${with_pam-"no"} != "no"; then
18517     #
18518     # Check for pam_start() in libpam first, then for pam_appl.h.
18519     #
18520     found_pam_lib=no
18521     as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18523 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18524 if eval \${$as_ac_Lib+:} false; then :
18525   $as_echo_n "(cached) " >&6
18526 else
18527   ac_check_lib_save_LIBS=$LIBS
18528 LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
18529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h.  */
18531
18532 /* Override any GCC internal prototype to avoid an error.
18533    Use char because int might match the return type of a GCC
18534    builtin and then its argument prototype would still apply.  */
18535 #ifdef __cplusplus
18536 extern "C"
18537 #endif
18538 char pam_start ();
18539 int
18540 main ()
18541 {
18542 return pam_start ();
18543   ;
18544   return 0;
18545 }
18546 _ACEOF
18547 if ac_fn_c_try_link "$LINENO"; then :
18548   eval "$as_ac_Lib=yes"
18549 else
18550   eval "$as_ac_Lib=no"
18551 fi
18552 rm -f core conftest.err conftest.$ac_objext \
18553     conftest$ac_exeext conftest.$ac_ext
18554 LIBS=$ac_check_lib_save_LIBS
18555 fi
18556 eval ac_res=\$$as_ac_Lib
18557                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18558 $as_echo "$ac_res" >&6; }
18559 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18560   found_pam_lib=yes
18561 fi
18562
18563     #
18564     # Some PAM implementations (MacOS X for example) put the PAM headers
18565     # in /usr/include/pam instead of /usr/include/security...
18566     #
18567     found_pam_hdrs=no
18568     for ac_header in security/pam_appl.h pam/pam_appl.h
18569 do :
18570   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18571 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18573   cat >>confdefs.h <<_ACEOF
18574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18575 _ACEOF
18576  found_pam_hdrs=yes; break
18577 fi
18578
18579 done
18580
18581     if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
18582         # Found both PAM libs and headers
18583         with_pam=yes
18584     elif test "$with_pam" = "yes"; then
18585         if test "$found_pam_lib" = "no"; then
18586             as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
18587         fi
18588         if test "$found_pam_hdrs" = "no"; then
18589             as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
18590         fi
18591     elif test "$found_pam_lib" != "$found_pam_hdrs"; then
18592         if test "$found_pam_lib" = "no"; then
18593             as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
18594         fi
18595         if test "$found_pam_hdrs" = "no"; then
18596             as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
18597         fi
18598     fi
18599
18600     if test "$with_pam" = "yes"; then
18601         # Older PAM implementations lack pam_getenvlist
18602         OLIBS="$LIBS"
18603         LIBS="$LIBS -lpam $lt_cv_dlopen_libs"
18604         for ac_func in pam_getenvlist
18605 do :
18606   ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
18607 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
18608   cat >>confdefs.h <<_ACEOF
18609 #define HAVE_PAM_GETENVLIST 1
18610 _ACEOF
18611
18612 fi
18613 done
18614
18615         LIBS="$OLIBS"
18616
18617         # We already link with -ldl if needed (see LIBDL below)
18618         SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
18619         $as_echo "#define HAVE_PAM 1" >>confdefs.h
18620
18621         AUTH_OBJS="$AUTH_OBJS pam.lo";
18622         AUTH_EXCL=PAM
18623
18624
18625 # Check whether --with-pam-login was given.
18626 if test "${with_pam_login+set}" = set; then :
18627   withval=$with_pam_login; case $with_pam_login in
18628             yes)        $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
18629
18630                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
18631 $as_echo_n "checking whether to use PAM login... " >&6; }
18632                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18633 $as_echo "yes" >&6; }
18634                         ;;
18635             no)         ;;
18636             *)          as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
18637                         ;;
18638         esac
18639 fi
18640
18641
18642         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
18643 $as_echo_n "checking whether to use PAM session support... " >&6; }
18644         # Check whether --enable-pam_session was given.
18645 if test "${enable_pam_session+set}" = set; then :
18646   enableval=$enable_pam_session;  case "$enableval" in
18647                 yes)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18648 $as_echo "yes" >&6; }
18649                         ;;
18650                 no)             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18651 $as_echo "no" >&6; }
18652                             $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
18653
18654                             ;;
18655                 *)              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18656 $as_echo "no" >&6; }
18657                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
18658 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
18659                             ;;
18660             esac
18661 else
18662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18663 $as_echo "yes" >&6; }
18664 fi
18665
18666     fi
18667 fi
18668
18669 if test ${with_aixauth-'no'} != "no"; then
18670     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
18671         { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
18672 $as_echo "$as_me: using AIX general authentication" >&6;}
18673         $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
18674
18675         AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
18676         SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
18677         AUTH_EXCL=AIX_AUTH
18678     fi
18679 fi
18680
18681 if test ${with_bsdauth-'no'} != "no"; then
18682     ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
18683 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
18684   $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
18685
18686         AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
18687         BSDAUTH_USAGE='[-a auth_type] '
18688         AUTH_EXCL=BSD_AUTH; BAMAN=1
18689 else
18690   as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
18691 fi
18692
18693
18694 fi
18695
18696 if test ${CHECKSIA-'false'} = "true"; then
18697     for ac_func in sia_ses_init
18698 do :
18699   ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
18700 if test "x$ac_cv_func_sia_ses_init" = xyes; then :
18701   cat >>confdefs.h <<_ACEOF
18702 #define HAVE_SIA_SES_INIT 1
18703 _ACEOF
18704  found=true
18705 else
18706   found=false
18707 fi
18708 done
18709
18710     if test "$found" = "true"; then
18711         AUTH_EXCL=SIA
18712         AUTH_OBJS="$AUTH_OBJS sia.lo"
18713     fi
18714 fi
18715
18716 if test ${with_fwtk-'no'} != "no"; then
18717     if test "$with_fwtk" != "yes"; then
18718
18719     if test X"$with_rpath" = X"yes"; then
18720         case "$host" in
18721             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
18722                         ;;
18723             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
18724                         ;;
18725         esac
18726     else
18727         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
18728     fi
18729     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18730         blibpath_add="${blibpath_add}:${with_fwtk}"
18731     fi
18732
18733         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
18734         with_fwtk=yes
18735     fi
18736     SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
18737     AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18738 fi
18739
18740 if test ${with_SecurID-'no'} != "no"; then
18741     if test "$with_SecurID" != "yes"; then
18742         :
18743     elif test -d /usr/ace/examples; then
18744         with_SecurID=/usr/ace/examples
18745     else
18746         with_SecurID=/usr/ace
18747     fi
18748     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18749
18750     if test X"$with_rpath" = X"yes"; then
18751         case "$host" in
18752             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18753                         ;;
18754             *)          LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18755                         ;;
18756         esac
18757     else
18758         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
18759     fi
18760     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18761         blibpath_add="${blibpath_add}:${with_SecurID}"
18762     fi
18763
18764     SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
18765     AUTH_OBJS="$AUTH_OBJS securid5.lo";
18766 fi
18767
18768
18769 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
18770     for auth in $AUTH_DEF; do
18771         case $auth in
18772             passwd)     : ${with_passwd='maybe'};;
18773         esac
18774     done
18775 fi
18776
18777 if test ${with_kerb5-'no'} != "no"; then
18778     # Extract the first word of "krb5-config", so it can be a program name with args.
18779 set dummy krb5-config; ac_word=$2
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18781 $as_echo_n "checking for $ac_word... " >&6; }
18782 if ${ac_cv_prog_KRB5CONFIG+:} false; then :
18783   $as_echo_n "(cached) " >&6
18784 else
18785   if test -n "$KRB5CONFIG"; then
18786   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
18787 else
18788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18789 for as_dir in $PATH
18790 do
18791   IFS=$as_save_IFS
18792   test -z "$as_dir" && as_dir=.
18793     for ac_exec_ext in '' $ac_executable_extensions; do
18794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18795     ac_cv_prog_KRB5CONFIG="yes"
18796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18797     break 2
18798   fi
18799 done
18800   done
18801 IFS=$as_save_IFS
18802
18803   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
18804 fi
18805 fi
18806 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
18807 if test -n "$KRB5CONFIG"; then
18808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
18809 $as_echo "$KRB5CONFIG" >&6; }
18810 else
18811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18812 $as_echo "no" >&6; }
18813 fi
18814
18815
18816     if test -n "$KRB5CONFIG"; then
18817         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18818
18819         AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18820         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
18821         SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
18822                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18823 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18824         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h.  */
18826 #include <krb5.h>
18827 int
18828 main ()
18829 {
18830 const char *tmp = heimdal_version;
18831   ;
18832   return 0;
18833 }
18834 _ACEOF
18835 if ac_fn_c_try_compile "$LINENO"; then :
18836
18837                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18838 $as_echo "yes" >&6; }
18839                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18840
18841
18842 else
18843
18844                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18845 $as_echo "no" >&6; }
18846
18847
18848 fi
18849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18850     else
18851         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18852
18853                                 if test "$with_kerb5" = "yes"; then
18854             found=no
18855             O_CPPFLAGS="$CPPFLAGS"
18856             for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
18857                 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18858                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18859 /* end confdefs.h.  */
18860 #include <krb5.h>
18861 int
18862 main ()
18863 {
18864
18865   ;
18866   return 0;
18867 }
18868 _ACEOF
18869 if ac_fn_c_try_cpp "$LINENO"; then :
18870   found=yes; break
18871 fi
18872 rm -f conftest.err conftest.i conftest.$ac_ext
18873             done
18874             if test X"$found" = X"no"; then
18875                 CPPFLAGS="$O_CPPFLAGS"
18876                 { $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
18877 $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;}
18878             fi
18879         else
18880
18881     if test X"$with_rpath" = X"yes"; then
18882         case "$host" in
18883             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
18884                         ;;
18885             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
18886                         ;;
18887         esac
18888     else
18889         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
18890     fi
18891     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18892         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
18893     fi
18894
18895             CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
18896         fi
18897
18898                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18899 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18900         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h.  */
18902 #include <krb5.h>
18903 int
18904 main ()
18905 {
18906 const char *tmp = heimdal_version;
18907   ;
18908   return 0;
18909 }
18910 _ACEOF
18911 if ac_fn_c_try_compile "$LINENO"; then :
18912
18913                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18914 $as_echo "yes" >&6; }
18915                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18916
18917                 # XXX - need to check whether -lcrypo is needed!
18918                 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
18919                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18920 $as_echo_n "checking for main in -lroken... " >&6; }
18921 if ${ac_cv_lib_roken_main+:} false; then :
18922   $as_echo_n "(cached) " >&6
18923 else
18924   ac_check_lib_save_LIBS=$LIBS
18925 LIBS="-lroken  $LIBS"
18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927 /* end confdefs.h.  */
18928
18929
18930 int
18931 main ()
18932 {
18933 return main ();
18934   ;
18935   return 0;
18936 }
18937 _ACEOF
18938 if ac_fn_c_try_link "$LINENO"; then :
18939   ac_cv_lib_roken_main=yes
18940 else
18941   ac_cv_lib_roken_main=no
18942 fi
18943 rm -f core conftest.err conftest.$ac_objext \
18944     conftest$ac_exeext conftest.$ac_ext
18945 LIBS=$ac_check_lib_save_LIBS
18946 fi
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18948 $as_echo "$ac_cv_lib_roken_main" >&6; }
18949 if test "x$ac_cv_lib_roken_main" = xyes; then :
18950   SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
18951 fi
18952
18953
18954 else
18955
18956                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18957 $as_echo "no" >&6; }
18958                 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
18959                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
18960 $as_echo_n "checking for main in -lkrb5support... " >&6; }
18961 if ${ac_cv_lib_krb5support_main+:} false; then :
18962   $as_echo_n "(cached) " >&6
18963 else
18964   ac_check_lib_save_LIBS=$LIBS
18965 LIBS="-lkrb5support  $LIBS"
18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h.  */
18968
18969
18970 int
18971 main ()
18972 {
18973 return main ();
18974   ;
18975   return 0;
18976 }
18977 _ACEOF
18978 if ac_fn_c_try_link "$LINENO"; then :
18979   ac_cv_lib_krb5support_main=yes
18980 else
18981   ac_cv_lib_krb5support_main=no
18982 fi
18983 rm -f core conftest.err conftest.$ac_objext \
18984     conftest$ac_exeext conftest.$ac_ext
18985 LIBS=$ac_check_lib_save_LIBS
18986 fi
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
18988 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
18989 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
18990   SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
18991 fi
18992
18993
18994 fi
18995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18996         AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18997     fi
18998     _LIBS="$LIBS"
18999     LIBS="${LIBS} ${SUDOERS_LIBS}"
19000     for ac_func in krb5_verify_user krb5_init_secure_context
19001 do :
19002   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19004 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19005   cat >>confdefs.h <<_ACEOF
19006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19007 _ACEOF
19008
19009 fi
19010 done
19011
19012     for ac_func in krb5_get_init_creds_opt_alloc
19013 do :
19014   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
19015 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
19016   cat >>confdefs.h <<_ACEOF
19017 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
19018 _ACEOF
19019
19020         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
19021 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
19022 if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
19023   $as_echo_n "(cached) " >&6
19024 else
19025
19026                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h.  */
19028 #include <krb5.h>
19029 int
19030 main ()
19031 {
19032 krb5_get_init_creds_opt_free(NULL, NULL);
19033
19034   ;
19035   return 0;
19036 }
19037 _ACEOF
19038 if ac_fn_c_try_compile "$LINENO"; then :
19039   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
19040 else
19041   sudo_cv_krb5_get_init_creds_opt_free_two_args=no
19042
19043 fi
19044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19045
19046
19047 fi
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
19049 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
19050
19051 fi
19052 done
19053
19054     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
19055         $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
19056
19057     fi
19058     LIBS="$_LIBS"
19059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
19060 $as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
19061     # Check whether --enable-kerb5-instance was given.
19062 if test "${enable_kerb5_instance+set}" = set; then :
19063   enableval=$enable_kerb5_instance;  case "$enableval" in
19064             yes)        as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
19065                         ;;
19066             no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19067 $as_echo "no" >&6; }
19068                         ;;
19069             *)          cat >>confdefs.h <<EOF
19070 #define SUDO_KRB5_INSTANCE "$enableval"
19071 EOF
19072
19073                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
19074 $as_echo "$enableval" >&6; }
19075                         ;;
19076         esac
19077 else
19078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19079 $as_echo "no" >&6; }
19080 fi
19081
19082 fi
19083
19084 if test ${with_AFS-'no'} = "yes"; then
19085
19086     # looks like the "standard" place for AFS libs is /usr/afsws/lib
19087     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
19088     for i in $AFSLIBDIRS; do
19089         if test -d ${i}; then
19090
19091     if test X"$with_rpath" = X"yes"; then
19092         case "$host" in
19093             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
19094                         ;;
19095             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
19096                         ;;
19097         esac
19098     else
19099         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
19100     fi
19101     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19102         blibpath_add="${blibpath_add}:$i"
19103     fi
19104
19105             FOUND_AFSLIBDIR=true
19106         fi
19107     done
19108     if test -z "$FOUND_AFSLIBDIR"; then
19109         { $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
19110 $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;}
19111     fi
19112
19113     # Order is important here.  Note that we build AFS_LIBS from right to left
19114     # since AFS_LIBS may be initialized with BSD compat libs that must go last
19115     AFS_LIBS="-laudit ${AFS_LIBS}"
19116     for i in $AFSLIBDIRS; do
19117         if test -f ${i}/util.a; then
19118             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
19119             FOUND_UTIL_A=true
19120             break;
19121         fi
19122     done
19123     if test -z "$FOUND_UTIL_A"; then
19124         AFS_LIBS="-lutil ${AFS_LIBS}"
19125     fi
19126     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
19127
19128     # AFS includes may live in /usr/include on some machines...
19129     for i in /usr/afsws/include; do
19130         if test -d ${i}; then
19131             CPPFLAGS="${CPPFLAGS} -I${i}"
19132             FOUND_AFSINCDIR=true
19133         fi
19134     done
19135
19136     if test -z "$FOUND_AFSLIBDIR"; then
19137         { $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
19138 $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;}
19139     fi
19140
19141     AUTH_OBJS="$AUTH_OBJS afs.lo"
19142 fi
19143
19144 if test ${with_DCE-'no'} = "yes"; then
19145     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
19146     SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
19147     AUTH_OBJS="$AUTH_OBJS dce.lo"
19148 fi
19149
19150 if test "${with_skey-'no'}" = "yes"; then
19151     O_LDFLAGS="$LDFLAGS"
19152     if test "$with_skey" != "yes"; then
19153         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
19154
19155     if test X"$with_rpath" = X"yes"; then
19156         case "$host" in
19157             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
19158                         ;;
19159             *)          LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
19160                         ;;
19161         esac
19162     else
19163         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
19164     fi
19165     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19166         blibpath_add="${blibpath_add}:${with_skey}/lib"
19167     fi
19168
19169
19170     if test X"$with_rpath" = X"yes"; then
19171         case "$host" in
19172             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
19173                         ;;
19174             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
19175                         ;;
19176         esac
19177     else
19178         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
19179     fi
19180     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19181         blibpath_add="${blibpath_add}:${with_skey}/lib"
19182     fi
19183
19184         ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19185 "
19186 if test "x$ac_cv_header_skey_h" = xyes; then :
19187   found=yes
19188 else
19189   found=no
19190 fi
19191
19192
19193     else
19194         found=no
19195         O_CPPFLAGS="$CPPFLAGS"
19196         for dir in "" "/usr/local" "/usr/contrib"; do
19197             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19198             ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19199 "
19200 if test "x$ac_cv_header_skey_h" = xyes; then :
19201   found=yes; break
19202 fi
19203
19204
19205         done
19206         if test "$found" = "no" -o -z "$dir"; then
19207             CPPFLAGS="$O_CPPFLAGS"
19208         else
19209
19210     if test X"$with_rpath" = X"yes"; then
19211         case "$host" in
19212             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19213                         ;;
19214             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19215                         ;;
19216         esac
19217     else
19218         LDFLAGS="${LDFLAGS} -L${dir}/lib"
19219     fi
19220     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19221         blibpath_add="${blibpath_add}:${dir}/lib"
19222     fi
19223
19224
19225     if test X"$with_rpath" = X"yes"; then
19226         case "$host" in
19227             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19228                         ;;
19229             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19230                         ;;
19231         esac
19232     else
19233         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19234     fi
19235     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19236         blibpath_add="${blibpath_add}:${dir}/lib"
19237     fi
19238
19239         fi
19240         if test "$found" = "no"; then
19241             { $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
19242 $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;}
19243         fi
19244     fi
19245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
19246 $as_echo_n "checking for main in -lskey... " >&6; }
19247 if ${ac_cv_lib_skey_main+:} false; then :
19248   $as_echo_n "(cached) " >&6
19249 else
19250   ac_check_lib_save_LIBS=$LIBS
19251 LIBS="-lskey  $LIBS"
19252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19253 /* end confdefs.h.  */
19254
19255
19256 int
19257 main ()
19258 {
19259 return main ();
19260   ;
19261   return 0;
19262 }
19263 _ACEOF
19264 if ac_fn_c_try_link "$LINENO"; then :
19265   ac_cv_lib_skey_main=yes
19266 else
19267   ac_cv_lib_skey_main=no
19268 fi
19269 rm -f core conftest.err conftest.$ac_objext \
19270     conftest$ac_exeext conftest.$ac_ext
19271 LIBS=$ac_check_lib_save_LIBS
19272 fi
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
19274 $as_echo "$ac_cv_lib_skey_main" >&6; }
19275 if test "x$ac_cv_lib_skey_main" = xyes; then :
19276   found=yes
19277 else
19278   { $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
19279 $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;}
19280 fi
19281
19282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
19283 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
19284 if ${ac_cv_lib_skey_skeyaccess+:} false; then :
19285   $as_echo_n "(cached) " >&6
19286 else
19287   ac_check_lib_save_LIBS=$LIBS
19288 LIBS="-lskey  $LIBS"
19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h.  */
19291
19292 /* Override any GCC internal prototype to avoid an error.
19293    Use char because int might match the return type of a GCC
19294    builtin and then its argument prototype would still apply.  */
19295 #ifdef __cplusplus
19296 extern "C"
19297 #endif
19298 char skeyaccess ();
19299 int
19300 main ()
19301 {
19302 return skeyaccess ();
19303   ;
19304   return 0;
19305 }
19306 _ACEOF
19307 if ac_fn_c_try_link "$LINENO"; then :
19308   ac_cv_lib_skey_skeyaccess=yes
19309 else
19310   ac_cv_lib_skey_skeyaccess=no
19311 fi
19312 rm -f core conftest.err conftest.$ac_objext \
19313     conftest$ac_exeext conftest.$ac_ext
19314 LIBS=$ac_check_lib_save_LIBS
19315 fi
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
19317 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
19318 if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
19319   $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
19320
19321 fi
19322
19323
19324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
19325 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
19326     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h.  */
19328 #include <stdio.h>
19329             #include <skey.h>
19330 int
19331 main ()
19332 {
19333 skeychallenge(NULL, NULL, NULL, 0);
19334
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 if ac_fn_c_try_compile "$LINENO"; then :
19340
19341             $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
19342
19343             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19344 $as_echo "yes" >&6; }
19345
19346 else
19347
19348             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19349 $as_echo "no" >&6; }
19350
19351
19352 fi
19353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354
19355     LDFLAGS="$O_LDFLAGS"
19356     SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
19357     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19358 fi
19359
19360 if test "${with_opie-'no'}" = "yes"; then
19361     O_LDFLAGS="$LDFLAGS"
19362     if test "$with_opie" != "yes"; then
19363         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
19364
19365     if test X"$with_rpath" = X"yes"; then
19366         case "$host" in
19367             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19368                         ;;
19369             *)          LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19370                         ;;
19371         esac
19372     else
19373         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
19374     fi
19375     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19376         blibpath_add="${blibpath_add}:${with_opie}/lib"
19377     fi
19378
19379
19380     if test X"$with_rpath" = X"yes"; then
19381         case "$host" in
19382             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19383                         ;;
19384             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19385                         ;;
19386         esac
19387     else
19388         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
19389     fi
19390     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19391         blibpath_add="${blibpath_add}:${with_opie}/lib"
19392     fi
19393
19394         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19395 /* end confdefs.h.  */
19396 #include <opie.h>
19397 int
19398 main ()
19399 {
19400
19401   ;
19402   return 0;
19403 }
19404 _ACEOF
19405 if ac_fn_c_try_cpp "$LINENO"; then :
19406   found=yes
19407 else
19408   found=no
19409 fi
19410 rm -f conftest.err conftest.i conftest.$ac_ext
19411     else
19412         found=no
19413         O_CPPFLAGS="$CPPFLAGS"
19414         for dir in "" "/usr/local" "/usr/contrib"; do
19415             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19416             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h.  */
19418 #include <opie.h>
19419 int
19420 main ()
19421 {
19422
19423   ;
19424   return 0;
19425 }
19426 _ACEOF
19427 if ac_fn_c_try_cpp "$LINENO"; then :
19428   found=yes; break
19429 fi
19430 rm -f conftest.err conftest.i conftest.$ac_ext
19431         done
19432         if test "$found" = "no" -o -z "$dir"; then
19433             CPPFLAGS="$O_CPPFLAGS"
19434         else
19435
19436     if test X"$with_rpath" = X"yes"; then
19437         case "$host" in
19438             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19439                         ;;
19440             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19441                         ;;
19442         esac
19443     else
19444         LDFLAGS="${LDFLAGS} -L${dir}/lib"
19445     fi
19446     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19447         blibpath_add="${blibpath_add}:${dir}/lib"
19448     fi
19449
19450
19451     if test X"$with_rpath" = X"yes"; then
19452         case "$host" in
19453             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19454                         ;;
19455             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19456                         ;;
19457         esac
19458     else
19459         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19460     fi
19461     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19462         blibpath_add="${blibpath_add}:${dir}/lib"
19463     fi
19464
19465         fi
19466         if test "$found" = "no"; then
19467             { $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
19468 $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;}
19469         fi
19470     fi
19471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19472 $as_echo_n "checking for main in -lopie... " >&6; }
19473 if ${ac_cv_lib_opie_main+:} false; then :
19474   $as_echo_n "(cached) " >&6
19475 else
19476   ac_check_lib_save_LIBS=$LIBS
19477 LIBS="-lopie  $LIBS"
19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h.  */
19480
19481
19482 int
19483 main ()
19484 {
19485 return main ();
19486   ;
19487   return 0;
19488 }
19489 _ACEOF
19490 if ac_fn_c_try_link "$LINENO"; then :
19491   ac_cv_lib_opie_main=yes
19492 else
19493   ac_cv_lib_opie_main=no
19494 fi
19495 rm -f core conftest.err conftest.$ac_objext \
19496     conftest$ac_exeext conftest.$ac_ext
19497 LIBS=$ac_check_lib_save_LIBS
19498 fi
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19500 $as_echo "$ac_cv_lib_opie_main" >&6; }
19501 if test "x$ac_cv_lib_opie_main" = xyes; then :
19502   found=yes
19503 else
19504   { $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
19505 $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;}
19506 fi
19507
19508     LDFLAGS="$O_LDFLAGS"
19509     SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19510     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19511 fi
19512
19513 if test ${with_passwd-'no'} != "no"; then
19514                 if test -z "$LIB_CRYPT"; then
19515         _LIBS="$LIBS"
19516         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19517 $as_echo_n "checking for library containing crypt... " >&6; }
19518 if ${ac_cv_search_crypt+:} false; then :
19519   $as_echo_n "(cached) " >&6
19520 else
19521   ac_func_search_save_LIBS=$LIBS
19522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19523 /* end confdefs.h.  */
19524
19525 /* Override any GCC internal prototype to avoid an error.
19526    Use char because int might match the return type of a GCC
19527    builtin and then its argument prototype would still apply.  */
19528 #ifdef __cplusplus
19529 extern "C"
19530 #endif
19531 char crypt ();
19532 int
19533 main ()
19534 {
19535 return crypt ();
19536   ;
19537   return 0;
19538 }
19539 _ACEOF
19540 for ac_lib in '' crypt crypt_d ufc; do
19541   if test -z "$ac_lib"; then
19542     ac_res="none required"
19543   else
19544     ac_res=-l$ac_lib
19545     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19546   fi
19547   if ac_fn_c_try_link "$LINENO"; then :
19548   ac_cv_search_crypt=$ac_res
19549 fi
19550 rm -f core conftest.err conftest.$ac_objext \
19551     conftest$ac_exeext
19552   if ${ac_cv_search_crypt+:} false; then :
19553   break
19554 fi
19555 done
19556 if ${ac_cv_search_crypt+:} false; then :
19557
19558 else
19559   ac_cv_search_crypt=no
19560 fi
19561 rm conftest.$ac_ext
19562 LIBS=$ac_func_search_save_LIBS
19563 fi
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19565 $as_echo "$ac_cv_search_crypt" >&6; }
19566 ac_res=$ac_cv_search_crypt
19567 if test "$ac_res" != no; then :
19568   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19569   test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19570 fi
19571
19572         LIBS="$_LIBS"
19573     fi
19574
19575     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19576         _LIBS="$LIBS"
19577         LIBS="$LIBS $shadow_libs"
19578         found=no
19579         for ac_func in $shadow_funcs
19580 do :
19581   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19584   cat >>confdefs.h <<_ACEOF
19585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19586 _ACEOF
19587  found=yes
19588 fi
19589 done
19590
19591         if test "$found" = "yes"; then
19592             SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19593         elif test -n "$shadow_libs_optional"; then
19594             LIBS="$LIBS $shadow_libs_optional"
19595             for ac_func in $shadow_funcs
19596 do :
19597   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19600   cat >>confdefs.h <<_ACEOF
19601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19602 _ACEOF
19603  found=yes
19604 fi
19605 done
19606
19607             if test "$found" = "yes"; then
19608                 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19609             fi
19610         fi
19611         if test "$found" = "yes"; then
19612             case "$shadow_funcs" in
19613                 *getprpwnam*) SECUREWARE=1;;
19614             esac
19615             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19616         else
19617             LIBS="$_LIBS"
19618         fi
19619         CHECKSHADOW=false
19620     fi
19621     if test "$CHECKSHADOW" = "true"; then
19622         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19623 $as_echo_n "checking for library containing getspnam... " >&6; }
19624 if ${ac_cv_search_getspnam+:} false; then :
19625   $as_echo_n "(cached) " >&6
19626 else
19627   ac_func_search_save_LIBS=$LIBS
19628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19629 /* end confdefs.h.  */
19630
19631 /* Override any GCC internal prototype to avoid an error.
19632    Use char because int might match the return type of a GCC
19633    builtin and then its argument prototype would still apply.  */
19634 #ifdef __cplusplus
19635 extern "C"
19636 #endif
19637 char getspnam ();
19638 int
19639 main ()
19640 {
19641 return getspnam ();
19642   ;
19643   return 0;
19644 }
19645 _ACEOF
19646 for ac_lib in '' gen; do
19647   if test -z "$ac_lib"; then
19648     ac_res="none required"
19649   else
19650     ac_res=-l$ac_lib
19651     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19652   fi
19653   if ac_fn_c_try_link "$LINENO"; then :
19654   ac_cv_search_getspnam=$ac_res
19655 fi
19656 rm -f core conftest.err conftest.$ac_objext \
19657     conftest$ac_exeext
19658   if ${ac_cv_search_getspnam+:} false; then :
19659   break
19660 fi
19661 done
19662 if ${ac_cv_search_getspnam+:} false; then :
19663
19664 else
19665   ac_cv_search_getspnam=no
19666 fi
19667 rm conftest.$ac_ext
19668 LIBS=$ac_func_search_save_LIBS
19669 fi
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19671 $as_echo "$ac_cv_search_getspnam" >&6; }
19672 ac_res=$ac_cv_search_getspnam
19673 if test "$ac_res" != no; then :
19674   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19675   $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19676  CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19677 fi
19678
19679     fi
19680     if test "$CHECKSHADOW" = "true"; then
19681         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19682 $as_echo_n "checking for library containing getprpwnam... " >&6; }
19683 if ${ac_cv_search_getprpwnam+:} false; then :
19684   $as_echo_n "(cached) " >&6
19685 else
19686   ac_func_search_save_LIBS=$LIBS
19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19688 /* end confdefs.h.  */
19689
19690 /* Override any GCC internal prototype to avoid an error.
19691    Use char because int might match the return type of a GCC
19692    builtin and then its argument prototype would still apply.  */
19693 #ifdef __cplusplus
19694 extern "C"
19695 #endif
19696 char getprpwnam ();
19697 int
19698 main ()
19699 {
19700 return getprpwnam ();
19701   ;
19702   return 0;
19703 }
19704 _ACEOF
19705 for ac_lib in '' sec security prot; do
19706   if test -z "$ac_lib"; then
19707     ac_res="none required"
19708   else
19709     ac_res=-l$ac_lib
19710     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19711   fi
19712   if ac_fn_c_try_link "$LINENO"; then :
19713   ac_cv_search_getprpwnam=$ac_res
19714 fi
19715 rm -f core conftest.err conftest.$ac_objext \
19716     conftest$ac_exeext
19717   if ${ac_cv_search_getprpwnam+:} false; then :
19718   break
19719 fi
19720 done
19721 if ${ac_cv_search_getprpwnam+:} false; then :
19722
19723 else
19724   ac_cv_search_getprpwnam=no
19725 fi
19726 rm conftest.$ac_ext
19727 LIBS=$ac_func_search_save_LIBS
19728 fi
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19730 $as_echo "$ac_cv_search_getprpwnam" >&6; }
19731 ac_res=$ac_cv_search_getprpwnam
19732 if test "$ac_res" != no; then :
19733   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19734   $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19735  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19736 fi
19737
19738     fi
19739     if test -n "$SECUREWARE"; then
19740         for ac_func in bigcrypt set_auth_parameters initprivs
19741 do :
19742   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19743 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19744 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19745   cat >>confdefs.h <<_ACEOF
19746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19747 _ACEOF
19748
19749 fi
19750 done
19751
19752         AUTH_OBJS="$AUTH_OBJS secureware.lo"
19753     fi
19754 fi
19755
19756 if test ${with_ldap-'no'} != "no"; then
19757     _LDFLAGS="$LDFLAGS"
19758     if test "$with_ldap" != "yes"; then
19759
19760     if test X"$with_rpath" = X"yes"; then
19761         case "$host" in
19762             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19763                         ;;
19764             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19765                         ;;
19766         esac
19767     else
19768         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19769     fi
19770     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19771         blibpath_add="${blibpath_add}:${with_ldap}/lib"
19772     fi
19773
19774
19775     if test X"$with_rpath" = X"yes"; then
19776         case "$host" in
19777             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19778                         ;;
19779             *)          LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19780                         ;;
19781         esac
19782     else
19783         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
19784     fi
19785     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19786         blibpath_add="${blibpath_add}:${with_ldap}/lib"
19787     fi
19788
19789         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19790         with_ldap=yes
19791     fi
19792     SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
19793     LDAP=""
19794
19795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
19796 $as_echo_n "checking for LDAP libraries... " >&6; }
19797     LDAP_LIBS=""
19798     _LIBS="$LIBS"
19799     found=no
19800     for l in -lldap -llber '-lssl -lcrypto'; do
19801         LIBS="${LIBS} $l"
19802         LDAP_LIBS="${LDAP_LIBS} $l"
19803         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19804 /* end confdefs.h.  */
19805 #include <sys/types.h>
19806         #include <lber.h>
19807         #include <ldap.h>
19808 int
19809 main ()
19810 {
19811 (void)ldap_init(0, 0)
19812   ;
19813   return 0;
19814 }
19815 _ACEOF
19816 if ac_fn_c_try_link "$LINENO"; then :
19817   found=yes; break
19818 fi
19819 rm -f core conftest.err conftest.$ac_objext \
19820     conftest$ac_exeext conftest.$ac_ext
19821     done
19822     if test "$found" = "no"; then
19823         LDAP_LIBS=""
19824         LIBS="$_LIBS"
19825         for l in -libmldap -lidsldif; do
19826             LIBS="${LIBS} $l"
19827             LDAP_LIBS="${LDAP_LIBS} $l"
19828             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h.  */
19830 #include <sys/types.h>
19831             #include <lber.h>
19832             #include <ldap.h>
19833 int
19834 main ()
19835 {
19836 (void)ldap_init(0, 0)
19837   ;
19838   return 0;
19839 }
19840 _ACEOF
19841 if ac_fn_c_try_link "$LINENO"; then :
19842   found=yes; break
19843 fi
19844 rm -f core conftest.err conftest.$ac_objext \
19845     conftest$ac_exeext conftest.$ac_ext
19846         done
19847     fi
19848         if test "$found" = "no"; then
19849         LIBS="${_LIBS} -lldap"
19850         LDAP_LIBS="-lldap"
19851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
19852 $as_echo "not found, using -lldap" >&6; }
19853     else
19854         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
19855 $as_echo "$LDAP_LIBS" >&6; }
19856     fi
19857         OLIBS="$LIBS"
19858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
19859 $as_echo_n "checking for library containing ber_set_option... " >&6; }
19860 if ${ac_cv_search_ber_set_option+:} false; then :
19861   $as_echo_n "(cached) " >&6
19862 else
19863   ac_func_search_save_LIBS=$LIBS
19864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h.  */
19866
19867 /* Override any GCC internal prototype to avoid an error.
19868    Use char because int might match the return type of a GCC
19869    builtin and then its argument prototype would still apply.  */
19870 #ifdef __cplusplus
19871 extern "C"
19872 #endif
19873 char ber_set_option ();
19874 int
19875 main ()
19876 {
19877 return ber_set_option ();
19878   ;
19879   return 0;
19880 }
19881 _ACEOF
19882 for ac_lib in '' lber; do
19883   if test -z "$ac_lib"; then
19884     ac_res="none required"
19885   else
19886     ac_res=-l$ac_lib
19887     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19888   fi
19889   if ac_fn_c_try_link "$LINENO"; then :
19890   ac_cv_search_ber_set_option=$ac_res
19891 fi
19892 rm -f core conftest.err conftest.$ac_objext \
19893     conftest$ac_exeext
19894   if ${ac_cv_search_ber_set_option+:} false; then :
19895   break
19896 fi
19897 done
19898 if ${ac_cv_search_ber_set_option+:} false; then :
19899
19900 else
19901   ac_cv_search_ber_set_option=no
19902 fi
19903 rm conftest.$ac_ext
19904 LIBS=$ac_func_search_save_LIBS
19905 fi
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
19907 $as_echo "$ac_cv_search_ber_set_option" >&6; }
19908 ac_res=$ac_cv_search_ber_set_option
19909 if test "$ac_res" != no; then :
19910   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19911   found=yes
19912 else
19913   found=no
19914 fi
19915
19916     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
19917         LDAP_LIBS="$LDAP_LIBS -llber"
19918     fi
19919         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
19920 $as_echo_n "checking whether lber.h is needed... " >&6; }
19921     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h.  */
19923 #include <sys/types.h>
19924     #include <ldap.h>
19925 int
19926 main ()
19927 {
19928 (void)ldap_init(0, 0)
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 if ac_fn_c_try_link "$LINENO"; then :
19934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19935 $as_echo "no" >&6; }
19936 else
19937
19938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19939 $as_echo "yes" >&6; }
19940     $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
19941
19942 fi
19943 rm -f core conftest.err conftest.$ac_objext \
19944     conftest$ac_exeext conftest.$ac_ext
19945
19946     for ac_header in sasl/sasl.h sasl.h
19947 do :
19948   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19949 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19950 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19951   cat >>confdefs.h <<_ACEOF
19952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19953 _ACEOF
19954  for ac_func in ldap_sasl_interactive_bind_s
19955 do :
19956   ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
19957 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
19958   cat >>confdefs.h <<_ACEOF
19959 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
19960 _ACEOF
19961
19962 fi
19963 done
19964
19965 else
19966   break
19967 fi
19968
19969 done
19970
19971     for ac_header in ldap_ssl.h mps/ldap_ssl.h
19972 do :
19973   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
19975 "
19976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19977   cat >>confdefs.h <<_ACEOF
19978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19979 _ACEOF
19980  break
19981 fi
19982
19983 done
19984
19985     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_init ldap_ssl_client_init ldap_start_tls_s_np
19986 do :
19987   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19988 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19989 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19990   cat >>confdefs.h <<_ACEOF
19991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19992 _ACEOF
19993
19994 fi
19995 done
19996
19997     for ac_func in ldap_search_ext_s ldap_search_st
19998 do :
19999   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20000 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20001 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20002   cat >>confdefs.h <<_ACEOF
20003 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20004 _ACEOF
20005  break
20006 fi
20007 done
20008
20009
20010     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
20011         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
20012 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
20013 if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
20014   $as_echo_n "(cached) " >&6
20015 else
20016   ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-lgssapi  $LIBS"
20018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20019 /* end confdefs.h.  */
20020
20021 /* Override any GCC internal prototype to avoid an error.
20022    Use char because int might match the return type of a GCC
20023    builtin and then its argument prototype would still apply.  */
20024 #ifdef __cplusplus
20025 extern "C"
20026 #endif
20027 char gss_krb5_ccache_name ();
20028 int
20029 main ()
20030 {
20031 return gss_krb5_ccache_name ();
20032   ;
20033   return 0;
20034 }
20035 _ACEOF
20036 if ac_fn_c_try_link "$LINENO"; then :
20037   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
20038 else
20039   ac_cv_lib_gssapi_gss_krb5_ccache_name=no
20040 fi
20041 rm -f core conftest.err conftest.$ac_objext \
20042     conftest$ac_exeext conftest.$ac_ext
20043 LIBS=$ac_check_lib_save_LIBS
20044 fi
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
20046 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
20047 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
20048   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20049
20050             LDAP_LIBS="${LDAP_LIBS} -lgssapi"
20051 else
20052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
20053 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
20054 if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
20055   $as_echo_n "(cached) " >&6
20056 else
20057   ac_check_lib_save_LIBS=$LIBS
20058 LIBS="-lgssapi_krb5  $LIBS"
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h.  */
20061
20062 /* Override any GCC internal prototype to avoid an error.
20063    Use char because int might match the return type of a GCC
20064    builtin and then its argument prototype would still apply.  */
20065 #ifdef __cplusplus
20066 extern "C"
20067 #endif
20068 char gss_krb5_ccache_name ();
20069 int
20070 main ()
20071 {
20072 return gss_krb5_ccache_name ();
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 if ac_fn_c_try_link "$LINENO"; then :
20078   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
20079 else
20080   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
20081 fi
20082 rm -f core conftest.err conftest.$ac_objext \
20083     conftest$ac_exeext conftest.$ac_ext
20084 LIBS=$ac_check_lib_save_LIBS
20085 fi
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
20087 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
20088 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
20089   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20090
20091                 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
20092 fi
20093
20094
20095 fi
20096
20097
20098         # gssapi headers may be separate or part of Kerberos V
20099         found=no
20100         O_CPPFLAGS="$CPPFLAGS"
20101         for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
20102             test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20103             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104 /* end confdefs.h.  */
20105 #include <gssapi/gssapi.h>
20106 int
20107 main ()
20108 {
20109
20110   ;
20111   return 0;
20112 }
20113 _ACEOF
20114 if ac_fn_c_try_cpp "$LINENO"; then :
20115   found="gssapi/gssapi.h"; break
20116 else
20117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h.  */
20119 #include <gssapi.h>
20120 int
20121 main ()
20122 {
20123
20124   ;
20125   return 0;
20126 }
20127 _ACEOF
20128 if ac_fn_c_try_cpp "$LINENO"; then :
20129   found="gssapi.h"; break
20130 fi
20131 rm -f conftest.err conftest.i conftest.$ac_ext
20132 fi
20133 rm -f conftest.err conftest.i conftest.$ac_ext
20134         done
20135         if test X"$found" != X"no"; then
20136             for ac_header in $found
20137 do :
20138   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20139 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20140 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20141   cat >>confdefs.h <<_ACEOF
20142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20143 _ACEOF
20144
20145 fi
20146
20147 done
20148
20149             if test X"$found" = X"gssapi/gssapi.h"; then
20150                 for ac_header in gssapi/gssapi_krb5.h
20151 do :
20152   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
20153 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
20154   cat >>confdefs.h <<_ACEOF
20155 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
20156 _ACEOF
20157
20158 fi
20159
20160 done
20161
20162             fi
20163         else
20164             CPPFLAGS="$O_CPPFLAGS"
20165             { $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
20166 $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;}
20167         fi
20168     fi
20169
20170     SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
20171     LIBS="$_LIBS"
20172     LDFLAGS="$_LDFLAGS"
20173 fi
20174
20175 #
20176 # How to do dynamic object loading.
20177 # We support dlopen() and sh_load(), else fall back to static loading.
20178 #
20179 case "$lt_cv_dlopen" in
20180     dlopen)
20181         $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
20182
20183         SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
20184         LT_STATIC="--tag=disable-static"
20185         ;;
20186     shl_load)
20187         $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20188
20189         SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
20190         LT_STATIC="--tag=disable-static"
20191         case " $LIBOBJS " in
20192   *" dlopen.$ac_objext "* ) ;;
20193   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20194  ;;
20195 esac
20196
20197         ;;
20198     *)
20199         if test X"${ac_cv_func_dlopen}" = X"yes"; then
20200             as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
20201         fi
20202         # Preload sudoers module symbols
20203         SUDO_OBJS="${SUDO_OBJS} preload.o"
20204         SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
20205         LT_STATIC=""
20206         case " $LIBOBJS " in
20207   *" dlopen.$ac_objext "* ) ;;
20208   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20209  ;;
20210 esac
20211
20212         ;;
20213 esac
20214
20215 #
20216 # Add library needed for dynamic loading, if any.
20217 #
20218 LIBDL="$lt_cv_dlopen_libs"
20219 if test X"$LIBDL" != X""; then
20220     SUDO_LIBS="${SUDO_LIBS} $LIBDL"
20221     SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
20222 fi
20223
20224 # On HP-UX, you cannot dlopen() a shared object that uses pthreads unless
20225 # the main program is linked against -lpthread.  We have no knowledge of
20226 # what libraries a plugin may depend on (e.g. HP-UX LDAP which uses pthreads)
20227 # so always link against -lpthread on HP-UX if it is available.
20228 # This check should go after all other libraries tests.
20229 case "$host" in
20230     *-*-hpux*)
20231         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
20232 $as_echo_n "checking for main in -lpthread... " >&6; }
20233 if ${ac_cv_lib_pthread_main+:} false; then :
20234   $as_echo_n "(cached) " >&6
20235 else
20236   ac_check_lib_save_LIBS=$LIBS
20237 LIBS="-lpthread  $LIBS"
20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h.  */
20240
20241
20242 int
20243 main ()
20244 {
20245 return main ();
20246   ;
20247   return 0;
20248 }
20249 _ACEOF
20250 if ac_fn_c_try_link "$LINENO"; then :
20251   ac_cv_lib_pthread_main=yes
20252 else
20253   ac_cv_lib_pthread_main=no
20254 fi
20255 rm -f core conftest.err conftest.$ac_objext \
20256     conftest$ac_exeext conftest.$ac_ext
20257 LIBS=$ac_check_lib_save_LIBS
20258 fi
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
20260 $as_echo "$ac_cv_lib_pthread_main" >&6; }
20261 if test "x$ac_cv_lib_pthread_main" = xyes; then :
20262   SUDO_LIBS="${SUDO_LIBS} -lpthread"
20263 fi
20264
20265         ;;
20266 esac
20267
20268 if test -n "$blibpath"; then
20269     if test -n "$blibpath_add"; then
20270         SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
20271     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
20272         SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
20273     fi
20274 fi
20275
20276 if test "$utmp_style" = "LEGACY"; then
20277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
20278 $as_echo_n "checking for utmp file path... " >&6; }
20279 found=no
20280 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
20281     if test -r "$p"; then
20282         found=yes
20283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
20284 $as_echo "$p" >&6; }
20285         cat >>confdefs.h <<EOF
20286 #define _PATH_UTMP "$p"
20287 EOF
20288
20289         break
20290     fi
20291 done
20292 if test X"$found" != X"yes"; then
20293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20294 $as_echo "not found" >&6; }
20295 fi
20296
20297 fi
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
20299 $as_echo_n "checking for log file location... " >&6; }
20300 if test -n "$with_logpath"; then
20301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
20302 $as_echo "$with_logpath" >&6; }
20303     cat >>confdefs.h <<EOF
20304 #define _PATH_SUDO_LOGFILE "$with_logpath"
20305 EOF
20306
20307 elif test -d "/var/log"; then
20308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
20309 $as_echo "/var/log/sudo.log" >&6; }
20310     cat >>confdefs.h <<\EOF
20311 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
20312 EOF
20313
20314 elif test -d "/var/adm"; then
20315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
20316 $as_echo "/var/adm/sudo.log" >&6; }
20317     cat >>confdefs.h <<\EOF
20318 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
20319 EOF
20320
20321 elif test -d "/usr/adm"; then
20322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
20323 $as_echo "/usr/adm/sudo.log" >&6; }
20324     cat >>confdefs.h <<\EOF
20325 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
20326 EOF
20327
20328 else
20329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
20330 $as_echo "unknown" >&6; }
20331 fi
20332
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
20334 $as_echo_n "checking for timestamp file location... " >&6; }
20335 timedir="$with_timedir"
20336 if test -z "$timedir"; then
20337     for d in /var/db /var/lib /var/adm /usr/adm; do
20338         if test -d "$d"; then
20339             timedir="$d/sudo"
20340             break
20341         fi
20342     done
20343 fi
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
20345 $as_echo "$timedir" >&6; }
20346 cat >>confdefs.h <<EOF
20347 #define _PATH_SUDO_TIMEDIR "$timedir"
20348 EOF
20349
20350
20351
20352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
20353 $as_echo_n "checking for I/O log dir location... " >&6; }
20354     if test "${with_iologdir-yes}" != "yes"; then
20355         iolog_dir="$with_iologdir"
20356     elif test -d "/var/log"; then
20357         iolog_dir="/var/log/sudo-io"
20358     elif test -d "/var/adm"; then
20359         iolog_dir="/var/adm/sudo-io"
20360     else
20361         iolog_dir="/usr/adm/sudo-io"
20362     fi
20363     if test "${with_iologdir}" != "no"; then
20364         cat >>confdefs.h <<EOF
20365 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
20366 EOF
20367
20368     fi
20369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
20370 $as_echo "$iolog_dir" >&6; }
20371
20372
20373
20374 ac_c_werror_flag=yes
20375
20376 if test -n "$GCC" -a "$lt_cv_prog_gnu_ld" != "yes" -a -n "$GCC"; then
20377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -static-libgcc" >&5
20378 $as_echo_n "checking whether C compiler accepts -static-libgcc... " >&6; }
20379 if ${ax_cv_check_cflags___static_libgcc+:} false; then :
20380   $as_echo_n "(cached) " >&6
20381 else
20382
20383   ax_check_save_flags=$CFLAGS
20384   CFLAGS="$CFLAGS  -static-libgcc"
20385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20386 /* end confdefs.h.  */
20387
20388 int
20389 main ()
20390 {
20391
20392   ;
20393   return 0;
20394 }
20395 _ACEOF
20396 if ac_fn_c_try_compile "$LINENO"; then :
20397   ax_cv_check_cflags___static_libgcc=yes
20398 else
20399   ax_cv_check_cflags___static_libgcc=no
20400 fi
20401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20402   CFLAGS=$ax_check_save_flags
20403 fi
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___static_libgcc" >&5
20405 $as_echo "$ax_cv_check_cflags___static_libgcc" >&6; }
20406 if test x"$ax_cv_check_cflags___static_libgcc" = xyes; then :
20407   LT_LDFLAGS="$LT_LDFLAGS -Wc,-static-libgcc"
20408 else
20409   :
20410 fi
20411
20412 fi
20413
20414 if test -n "$GCC"; then
20415     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-fvisibility=hidden" | $as_tr_sh`
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
20417 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
20418 if eval \${$as_CACHEVAR+:} false; then :
20419   $as_echo_n "(cached) " >&6
20420 else
20421
20422   ax_check_save_flags=$CFLAGS
20423   CFLAGS="$CFLAGS  -fvisibility=hidden"
20424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20425 /* end confdefs.h.  */
20426
20427 int
20428 main ()
20429 {
20430
20431   ;
20432   return 0;
20433 }
20434 _ACEOF
20435 if ac_fn_c_try_compile "$LINENO"; then :
20436   eval "$as_CACHEVAR=yes"
20437 else
20438   eval "$as_CACHEVAR=no"
20439 fi
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441   CFLAGS=$ax_check_save_flags
20442 fi
20443 eval ac_res=\$$as_CACHEVAR
20444                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20445 $as_echo "$ac_res" >&6; }
20446 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
20447
20448         $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20449
20450         CFLAGS="${CFLAGS} -fvisibility=hidden"
20451         LT_LDEXPORTS=
20452         LT_LDDEP=
20453         NO_VIZ=
20454
20455 else
20456   :
20457 fi
20458
20459 else
20460     case "$host" in
20461         *-*-hpux*)
20462             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Bhidden_def" >&5
20463 $as_echo_n "checking whether C compiler accepts -Bhidden_def... " >&6; }
20464 if ${ax_cv_check_cflags___Bhidden_def+:} false; then :
20465   $as_echo_n "(cached) " >&6
20466 else
20467
20468   ax_check_save_flags=$CFLAGS
20469   CFLAGS="$CFLAGS  -Bhidden_def"
20470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20471 /* end confdefs.h.  */
20472
20473 int
20474 main ()
20475 {
20476
20477   ;
20478   return 0;
20479 }
20480 _ACEOF
20481 if ac_fn_c_try_compile "$LINENO"; then :
20482   ax_cv_check_cflags___Bhidden_def=yes
20483 else
20484   ax_cv_check_cflags___Bhidden_def=no
20485 fi
20486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487   CFLAGS=$ax_check_save_flags
20488 fi
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Bhidden_def" >&5
20490 $as_echo "$ax_cv_check_cflags___Bhidden_def" >&6; }
20491 if test x"$ax_cv_check_cflags___Bhidden_def" = xyes; then :
20492
20493                 $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20494
20495                 CFLAGS="${CFLAGS} -Bhidden_def"
20496                 LT_LDEXPORTS=
20497                 LT_LDDEP=
20498
20499 else
20500   :
20501 fi
20502
20503             ;;
20504         *-*-solaris2*)
20505             as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-xldscope=hidden" | $as_tr_sh`
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -xldscope=hidden" >&5
20507 $as_echo_n "checking whether C compiler accepts -xldscope=hidden... " >&6; }
20508 if eval \${$as_CACHEVAR+:} false; then :
20509   $as_echo_n "(cached) " >&6
20510 else
20511
20512   ax_check_save_flags=$CFLAGS
20513   CFLAGS="$CFLAGS  -xldscope=hidden"
20514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h.  */
20516
20517 int
20518 main ()
20519 {
20520
20521   ;
20522   return 0;
20523 }
20524 _ACEOF
20525 if ac_fn_c_try_compile "$LINENO"; then :
20526   eval "$as_CACHEVAR=yes"
20527 else
20528   eval "$as_CACHEVAR=no"
20529 fi
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20531   CFLAGS=$ax_check_save_flags
20532 fi
20533 eval ac_res=\$$as_CACHEVAR
20534                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20535 $as_echo "$ac_res" >&6; }
20536 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
20537
20538                 $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20539
20540                 CFLAGS="${CFLAGS} -xldscope=hidden"
20541                 LT_LDEXPORTS=
20542                 LT_LDDEP=
20543
20544 else
20545   :
20546 fi
20547
20548             ;;
20549     esac
20550 fi
20551
20552 if test -n "$LT_LDEXPORTS"; then
20553     if test "$lt_cv_prog_gnu_ld" = "yes"; then
20554         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
20555 $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
20556 if ${sudo_cv_var_gnu_ld_anon_map+:} false; then :
20557   $as_echo_n "(cached) " >&6
20558 else
20559
20560                 cat > conftest.map <<-EOF
20561                 {
20562                     global: foo;
20563                     local:  *;
20564                 };
20565 EOF
20566                 _CFLAGS="$CFLAGS"
20567                 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20568                 _LDFLAGS="$LDFLAGS"
20569                 LDFLAGS="$LDFLAGS -fpic -shared -Wl,--version-script,./conftest.map"
20570                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20571 /* end confdefs.h.  */
20572 int foo;
20573 int
20574 main ()
20575 {
20576
20577   ;
20578   return 0;
20579 }
20580 _ACEOF
20581 if ac_fn_c_try_link "$LINENO"; then :
20582
20583                     sudo_cv_var_gnu_ld_anon_map=yes
20584
20585 fi
20586 rm -f core conftest.err conftest.$ac_objext \
20587     conftest$ac_exeext conftest.$ac_ext
20588                 CFLAGS="$_CFLAGS"
20589                 LDFLAGS="$_LDFLAGS"
20590
20591
20592 fi
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gnu_ld_anon_map" >&5
20594 $as_echo "$sudo_cv_var_gnu_ld_anon_map" >&6; }
20595         if test "$sudo_cv_var_gnu_ld_anon_map" = "yes"; then
20596             LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,--version-script,\$(shlib_map)"
20597         fi
20598     else
20599         case "$host" in
20600             *-*-solaris2*)
20601                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
20602 $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
20603 if ${sudo_cv_var_solaris_ld_anon_map+:} false; then :
20604   $as_echo_n "(cached) " >&6
20605 else
20606
20607                         cat > conftest.map <<-EOF
20608                         {
20609                             global: foo;
20610                             local:  *;
20611                         };
20612 EOF
20613                         _CFLAGS="$CFLAGS"
20614                         CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20615                         _LDFLAGS="$LDFLAGS"
20616                         LDFLAGS="$LDFLAGS -shared -Wl,-M,./conftest.map"
20617                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h.  */
20619 int foo;
20620 int
20621 main ()
20622 {
20623
20624   ;
20625   return 0;
20626 }
20627 _ACEOF
20628 if ac_fn_c_try_link "$LINENO"; then :
20629
20630                             sudo_cv_var_solaris_ld_anon_map=yes
20631
20632 fi
20633 rm -f core conftest.err conftest.$ac_objext \
20634     conftest$ac_exeext conftest.$ac_ext
20635                         CFLAGS="$_CFLAGS"
20636                         LDFLAGS="$_LDFLAGS"
20637
20638
20639 fi
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_solaris_ld_anon_map" >&5
20641 $as_echo "$sudo_cv_var_solaris_ld_anon_map" >&6; }
20642                 if test "$sudo_cv_var_solaris_ld_anon_map" = "yes"; then
20643                     LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,-M,\$(shlib_map)"
20644                 fi
20645                 ;;
20646             *-*-hpux*)
20647                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports controlling exported symbols" >&5
20648 $as_echo_n "checking whether ld supports controlling exported symbols... " >&6; }
20649 if ${sudo_cv_var_hpux_ld_symbol_export+:} false; then :
20650   $as_echo_n "(cached) " >&6
20651 else
20652
20653                         echo "+e foo" > conftest.opt
20654                         _CFLAGS="$CFLAGS"
20655                         CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20656                         _LDFLAGS="$LDFLAGS"
20657                         if test -n "$GCC"; then
20658                             LDFLAGS="$LDFLAGS -shared -Wl,-c,./conftest.opt"
20659                         else
20660                             LDFLAGS="$LDFLAGS -Wl,-b -Wl,-c,./conftest.opt"
20661                         fi
20662                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20663 /* end confdefs.h.  */
20664 int foo;
20665 int
20666 main ()
20667 {
20668
20669   ;
20670   return 0;
20671 }
20672 _ACEOF
20673 if ac_fn_c_try_link "$LINENO"; then :
20674
20675                             sudo_cv_var_hpux_ld_symbol_export=yes
20676
20677 fi
20678 rm -f core conftest.err conftest.$ac_objext \
20679     conftest$ac_exeext conftest.$ac_ext
20680                         CFLAGS="$_CFLAGS"
20681                         LDFLAGS="$_LDFLAGS"
20682
20683
20684 fi
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpux_ld_symbol_export" >&5
20686 $as_echo "$sudo_cv_var_hpux_ld_symbol_export" >&6; }
20687                 if test "$sudo_cv_var_hpux_ld_symbol_export" = "yes"; then
20688                     LT_LDEXPORTS=; LT_LDDEP="\$(shlib_opt)"; LT_LDOPT="-Wl,-c,\$(shlib_opt)"
20689                 fi
20690                 ;;
20691         esac
20692     fi
20693 fi
20694
20695 if test "$enable_pie" != "no" -a -n "$GCC"; then
20696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
20697 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
20698 if ${ax_cv_check_cflags___fPIE+:} false; then :
20699   $as_echo_n "(cached) " >&6
20700 else
20701
20702   ax_check_save_flags=$CFLAGS
20703   CFLAGS="$CFLAGS  -fPIE"
20704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20705 /* end confdefs.h.  */
20706
20707 int
20708 main ()
20709 {
20710
20711   ;
20712   return 0;
20713 }
20714 _ACEOF
20715 if ac_fn_c_try_compile "$LINENO"; then :
20716   ax_cv_check_cflags___fPIE=yes
20717 else
20718   ax_cv_check_cflags___fPIE=no
20719 fi
20720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20721   CFLAGS=$ax_check_save_flags
20722 fi
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
20724 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
20725 if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
20726
20727         _CFLAGS="$CFLAGS"
20728         CFLAGS="$CFLAGS -fPIE"
20729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
20730 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
20731 if ${ax_cv_check_ldflags___pie+:} false; then :
20732   $as_echo_n "(cached) " >&6
20733 else
20734
20735   ax_check_save_flags=$LDFLAGS
20736   LDFLAGS="$LDFLAGS  -pie"
20737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h.  */
20739
20740 int
20741 main ()
20742 {
20743
20744   ;
20745   return 0;
20746 }
20747 _ACEOF
20748 if ac_fn_c_try_link "$LINENO"; then :
20749   ax_cv_check_ldflags___pie=yes
20750 else
20751   ax_cv_check_ldflags___pie=no
20752 fi
20753 rm -f core conftest.err conftest.$ac_objext \
20754     conftest$ac_exeext conftest.$ac_ext
20755   LDFLAGS=$ax_check_save_flags
20756 fi
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
20758 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
20759 if test x"$ax_cv_check_ldflags___pie" = xyes; then :
20760
20761             PIE_CFLAGS="-fPIE"
20762             PIE_LDFLAGS="-pie"
20763
20764 else
20765   :
20766 fi
20767
20768         CFLAGS="$_CFLAGS"
20769
20770 else
20771   :
20772 fi
20773
20774 fi
20775
20776 if test "$enable_hardening" != "no"; then
20777     if test -n "$GCC"; then
20778         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
20779 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
20780 if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
20781   $as_echo_n "(cached) " >&6
20782 else
20783
20784   ax_check_save_flags=$CFLAGS
20785   CFLAGS="$CFLAGS  -fstack-protector-all"
20786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787 /* end confdefs.h.  */
20788
20789 int
20790 main ()
20791 {
20792
20793   ;
20794   return 0;
20795 }
20796 _ACEOF
20797 if ac_fn_c_try_compile "$LINENO"; then :
20798   ax_cv_check_cflags___fstack_protector_all=yes
20799 else
20800   ax_cv_check_cflags___fstack_protector_all=no
20801 fi
20802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20803   CFLAGS=$ax_check_save_flags
20804 fi
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
20806 $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
20807 if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
20808
20809             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
20810 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
20811 if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
20812   $as_echo_n "(cached) " >&6
20813 else
20814
20815   ax_check_save_flags=$LDFLAGS
20816   LDFLAGS="$LDFLAGS  -fstack-protector-all"
20817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h.  */
20819
20820 int
20821 main ()
20822 {
20823
20824   ;
20825   return 0;
20826 }
20827 _ACEOF
20828 if ac_fn_c_try_link "$LINENO"; then :
20829   ax_cv_check_ldflags___fstack_protector_all=yes
20830 else
20831   ax_cv_check_ldflags___fstack_protector_all=no
20832 fi
20833 rm -f core conftest.err conftest.$ac_objext \
20834     conftest$ac_exeext conftest.$ac_ext
20835   LDFLAGS=$ax_check_save_flags
20836 fi
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
20838 $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
20839 if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
20840
20841                 SSP_CFLAGS="-fstack-protector-all"
20842                 SSP_LDFLAGS="-Wc,-fstack-protector-all"
20843
20844 else
20845   :
20846 fi
20847
20848
20849 else
20850   :
20851 fi
20852
20853         if test -z "$SSP_CFLAGS"; then
20854             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
20855 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
20856 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
20857   $as_echo_n "(cached) " >&6
20858 else
20859
20860   ax_check_save_flags=$CFLAGS
20861   CFLAGS="$CFLAGS  -fstack-protector"
20862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20863 /* end confdefs.h.  */
20864
20865 int
20866 main ()
20867 {
20868
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 if ac_fn_c_try_compile "$LINENO"; then :
20874   ax_cv_check_cflags___fstack_protector=yes
20875 else
20876   ax_cv_check_cflags___fstack_protector=no
20877 fi
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879   CFLAGS=$ax_check_save_flags
20880 fi
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
20882 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
20883 if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
20884
20885                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
20886 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
20887 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
20888   $as_echo_n "(cached) " >&6
20889 else
20890
20891   ax_check_save_flags=$LDFLAGS
20892   LDFLAGS="$LDFLAGS  -fstack-protector"
20893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20894 /* end confdefs.h.  */
20895
20896 int
20897 main ()
20898 {
20899
20900   ;
20901   return 0;
20902 }
20903 _ACEOF
20904 if ac_fn_c_try_link "$LINENO"; then :
20905   ax_cv_check_ldflags___fstack_protector=yes
20906 else
20907   ax_cv_check_ldflags___fstack_protector=no
20908 fi
20909 rm -f core conftest.err conftest.$ac_objext \
20910     conftest$ac_exeext conftest.$ac_ext
20911   LDFLAGS=$ax_check_save_flags
20912 fi
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
20914 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
20915 if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
20916
20917                     SSP_CFLAGS="-fstack-protector"
20918                     SSP_LDFLAGS="-Wc,-fstack-protector"
20919
20920 else
20921   :
20922 fi
20923
20924
20925 else
20926   :
20927 fi
20928
20929         fi
20930     fi
20931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
20932 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
20933 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
20934   $as_echo_n "(cached) " >&6
20935 else
20936
20937   ax_check_save_flags=$LDFLAGS
20938   LDFLAGS="$LDFLAGS  -Wl,-z,relro"
20939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h.  */
20941
20942 int
20943 main ()
20944 {
20945
20946   ;
20947   return 0;
20948 }
20949 _ACEOF
20950 if ac_fn_c_try_link "$LINENO"; then :
20951   ax_cv_check_ldflags___Wl__z_relro=yes
20952 else
20953   ax_cv_check_ldflags___Wl__z_relro=no
20954 fi
20955 rm -f core conftest.err conftest.$ac_objext \
20956     conftest$ac_exeext conftest.$ac_ext
20957   LDFLAGS=$ax_check_save_flags
20958 fi
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
20960 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
20961 if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
20962   LDFLAGS="${LDFLAGS} -Wl,-z,relro"
20963 else
20964   :
20965 fi
20966
20967 fi
20968
20969 case "$with_passwd" in
20970 yes|maybe)
20971     AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
20972     ;;
20973 *)
20974     $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
20975
20976     if test -z "$AUTH_OBJS"; then
20977         as_fn_error $? "no authentication methods defined." "$LINENO" 5
20978     fi
20979     ;;
20980 esac
20981 AUTH_OBJS=${AUTH_OBJS# }
20982 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
20984 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
20985
20986 if test -n "$LIBS"; then
20987     L="$LIBS"
20988     LIBS=
20989     for l in ${L}; do
20990         dupe=0
20991         for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
20992             test $l = $sl && dupe=1
20993         done
20994         test $dupe = 0 && LIBS="${LIBS} $l"
20995     done
20996 fi
20997
20998 if test -n "$GCC"; then
20999     if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
21000         CFLAGS="${CFLAGS} -Wall"
21001     fi
21002     if test X"$enable_werror" = X"yes"; then
21003         CFLAGS="${CFLAGS} -Werror"
21004     fi
21005 fi
21006
21007 CROSS_COMPILING="$cross_compiling"
21008
21009 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
21010
21011 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
21012     oexec_prefix="$exec_prefix"
21013     if test "$exec_prefix" = '$(prefix)'; then
21014         if test "$prefix" = "NONE"; then
21015             exec_prefix="$ac_default_prefix"
21016         else
21017             exec_prefix="$prefix"
21018         fi
21019     fi
21020     if test X"$with_noexec" != X"no"; then
21021         PROGS="${PROGS} libsudo_noexec.la"
21022         INSTALL_NOEXEC="install-noexec"
21023
21024         noexec_file="$with_noexec"
21025         _noexec_file=
21026         while test X"$noexec_file" != X"$_noexec_file"; do
21027             _noexec_file="$noexec_file"
21028             eval noexec_file="$_noexec_file"
21029         done
21030         cat >>confdefs.h <<EOF
21031 #define _PATH_SUDO_NOEXEC "$noexec_file"
21032 EOF
21033
21034     fi
21035     if test X"$with_selinux" != X"no"; then
21036         sesh_file="$libexecdir/sesh"
21037         _sesh_file=
21038         while test X"$sesh_file" != X"$_sesh_file"; do
21039             _sesh_file="$sesh_file"
21040             eval sesh_file="$_sesh_file"
21041         done
21042         cat >>confdefs.h <<EOF
21043 #define _PATH_SUDO_SESH "$sesh_file"
21044 EOF
21045
21046     fi
21047     PLUGINDIR="$with_plugindir"
21048     _PLUGINDIR=
21049     while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
21050         _PLUGINDIR="$PLUGINDIR"
21051         eval PLUGINDIR="$_PLUGINDIR"
21052     done
21053     cat >>confdefs.h <<EOF
21054 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
21055 EOF
21056
21057     cat >>confdefs.h <<EOF
21058 #define SUDOERS_PLUGIN "sudoers${SOEXT}"
21059 EOF
21060
21061     exec_prefix="$oexec_prefix"
21062 fi
21063
21064 if test X"$prefix" = X"NONE"; then
21065     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
21066 else
21067     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
21068 fi
21069 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
21070 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
21071 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
21072 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
21073 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
21074 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
21075 test "$localedir" = '${datarootdir}/locale' && localedir='$(datarootdir)/locale'
21076 test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var'
21077 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
21078
21079 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/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
21080
21081 cat >confcache <<\_ACEOF
21082 # This file is a shell script that caches the results of configure
21083 # tests run on this system so they can be shared between configure
21084 # scripts and configure runs, see configure's option --config-cache.
21085 # It is not useful on other systems.  If it contains results you don't
21086 # want to keep, you may remove or edit it.
21087 #
21088 # config.status only pays attention to the cache file if you give it
21089 # the --recheck option to rerun configure.
21090 #
21091 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21092 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21093 # following values.
21094
21095 _ACEOF
21096
21097 # The following way of writing the cache mishandles newlines in values,
21098 # but we know of no workaround that is simple, portable, and efficient.
21099 # So, we kill variables containing newlines.
21100 # Ultrix sh set writes to stderr and can't be redirected directly,
21101 # and sets the high bit in the cache file unless we assign to the vars.
21102 (
21103   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21104     eval ac_val=\$$ac_var
21105     case $ac_val in #(
21106     *${as_nl}*)
21107       case $ac_var in #(
21108       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21109 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21110       esac
21111       case $ac_var in #(
21112       _ | IFS | as_nl) ;; #(
21113       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21114       *) { eval $ac_var=; unset $ac_var;} ;;
21115       esac ;;
21116     esac
21117   done
21118
21119   (set) 2>&1 |
21120     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21121     *${as_nl}ac_space=\ *)
21122       # `set' does not quote correctly, so add quotes: double-quote
21123       # substitution turns \\\\ into \\, and sed turns \\ into \.
21124       sed -n \
21125         "s/'/'\\\\''/g;
21126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21127       ;; #(
21128     *)
21129       # `set' quotes correctly as required by POSIX, so do not add quotes.
21130       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21131       ;;
21132     esac |
21133     sort
21134 ) |
21135   sed '
21136      /^ac_cv_env_/b end
21137      t clear
21138      :clear
21139      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21140      t end
21141      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21142      :end' >>confcache
21143 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21144   if test -w "$cache_file"; then
21145     if test "x$cache_file" != "x/dev/null"; then
21146       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21147 $as_echo "$as_me: updating cache $cache_file" >&6;}
21148       if test ! -f "$cache_file" || test -h "$cache_file"; then
21149         cat confcache >"$cache_file"
21150       else
21151         case $cache_file in #(
21152         */* | ?:*)
21153           mv -f confcache "$cache_file"$$ &&
21154           mv -f "$cache_file"$$ "$cache_file" ;; #(
21155         *)
21156           mv -f confcache "$cache_file" ;;
21157         esac
21158       fi
21159     fi
21160   else
21161     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21162 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21163   fi
21164 fi
21165 rm -f confcache
21166
21167 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21168 # Let make expand exec_prefix.
21169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21170
21171 DEFS=-DHAVE_CONFIG_H
21172
21173 ac_libobjs=
21174 ac_ltlibobjs=
21175 U=
21176 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21177   # 1. Remove the extension, and $U if already installed.
21178   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21179   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21180   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21181   #    will be set to the directory where LIBOBJS objects are built.
21182   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21183   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21184 done
21185 LIBOBJS=$ac_libobjs
21186
21187 LTLIBOBJS=$ac_ltlibobjs
21188
21189
21190
21191 : "${CONFIG_STATUS=./config.status}"
21192 ac_write_fail=0
21193 ac_clean_files_save=$ac_clean_files
21194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21196 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21197 as_write_fail=0
21198 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21199 #! $SHELL
21200 # Generated by $as_me.
21201 # Run this file to recreate the current configuration.
21202 # Compiler output produced by configure, useful for debugging
21203 # configure, is in config.log if it exists.
21204
21205 debug=false
21206 ac_cs_recheck=false
21207 ac_cs_silent=false
21208
21209 SHELL=\${CONFIG_SHELL-$SHELL}
21210 export SHELL
21211 _ASEOF
21212 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21213 ## -------------------- ##
21214 ## M4sh Initialization. ##
21215 ## -------------------- ##
21216
21217 # Be more Bourne compatible
21218 DUALCASE=1; export DUALCASE # for MKS sh
21219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21220   emulate sh
21221   NULLCMD=:
21222   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21223   # is contrary to our usage.  Disable this feature.
21224   alias -g '${1+"$@"}'='"$@"'
21225   setopt NO_GLOB_SUBST
21226 else
21227   case `(set -o) 2>/dev/null` in #(
21228   *posix*) :
21229     set -o posix ;; #(
21230   *) :
21231      ;;
21232 esac
21233 fi
21234
21235
21236 as_nl='
21237 '
21238 export as_nl
21239 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21240 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21243 # Prefer a ksh shell builtin over an external printf program on Solaris,
21244 # but without wasting forks for bash or zsh.
21245 if test -z "$BASH_VERSION$ZSH_VERSION" \
21246     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21247   as_echo='print -r --'
21248   as_echo_n='print -rn --'
21249 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21250   as_echo='printf %s\n'
21251   as_echo_n='printf %s'
21252 else
21253   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21254     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21255     as_echo_n='/usr/ucb/echo -n'
21256   else
21257     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21258     as_echo_n_body='eval
21259       arg=$1;
21260       case $arg in #(
21261       *"$as_nl"*)
21262         expr "X$arg" : "X\\(.*\\)$as_nl";
21263         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21264       esac;
21265       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21266     '
21267     export as_echo_n_body
21268     as_echo_n='sh -c $as_echo_n_body as_echo'
21269   fi
21270   export as_echo_body
21271   as_echo='sh -c $as_echo_body as_echo'
21272 fi
21273
21274 # The user is always right.
21275 if test "${PATH_SEPARATOR+set}" != set; then
21276   PATH_SEPARATOR=:
21277   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21278     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21279       PATH_SEPARATOR=';'
21280   }
21281 fi
21282
21283
21284 # IFS
21285 # We need space, tab and new line, in precisely that order.  Quoting is
21286 # there to prevent editors from complaining about space-tab.
21287 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21288 # splitting by setting IFS to empty value.)
21289 IFS=" ""        $as_nl"
21290
21291 # Find who we are.  Look in the path if we contain no directory separator.
21292 as_myself=
21293 case $0 in #((
21294   *[\\/]* ) as_myself=$0 ;;
21295   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21296 for as_dir in $PATH
21297 do
21298   IFS=$as_save_IFS
21299   test -z "$as_dir" && as_dir=.
21300     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21301   done
21302 IFS=$as_save_IFS
21303
21304      ;;
21305 esac
21306 # We did not find ourselves, most probably we were run as `sh COMMAND'
21307 # in which case we are not to be found in the path.
21308 if test "x$as_myself" = x; then
21309   as_myself=$0
21310 fi
21311 if test ! -f "$as_myself"; then
21312   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21313   exit 1
21314 fi
21315
21316 # Unset variables that we do not need and which cause bugs (e.g. in
21317 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21318 # suppresses any "Segmentation fault" message there.  '((' could
21319 # trigger a bug in pdksh 5.2.14.
21320 for as_var in BASH_ENV ENV MAIL MAILPATH
21321 do eval test x\${$as_var+set} = xset \
21322   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21323 done
21324 PS1='$ '
21325 PS2='> '
21326 PS4='+ '
21327
21328 # NLS nuisances.
21329 LC_ALL=C
21330 export LC_ALL
21331 LANGUAGE=C
21332 export LANGUAGE
21333
21334 # CDPATH.
21335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21336
21337
21338 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21339 # ----------------------------------------
21340 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21341 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21342 # script with STATUS, using 1 if that was 0.
21343 as_fn_error ()
21344 {
21345   as_status=$1; test $as_status -eq 0 && as_status=1
21346   if test "$4"; then
21347     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21348     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21349   fi
21350   $as_echo "$as_me: error: $2" >&2
21351   as_fn_exit $as_status
21352 } # as_fn_error
21353
21354
21355 # as_fn_set_status STATUS
21356 # -----------------------
21357 # Set $? to STATUS, without forking.
21358 as_fn_set_status ()
21359 {
21360   return $1
21361 } # as_fn_set_status
21362
21363 # as_fn_exit STATUS
21364 # -----------------
21365 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21366 as_fn_exit ()
21367 {
21368   set +e
21369   as_fn_set_status $1
21370   exit $1
21371 } # as_fn_exit
21372
21373 # as_fn_unset VAR
21374 # ---------------
21375 # Portably unset VAR.
21376 as_fn_unset ()
21377 {
21378   { eval $1=; unset $1;}
21379 }
21380 as_unset=as_fn_unset
21381 # as_fn_append VAR VALUE
21382 # ----------------------
21383 # Append the text in VALUE to the end of the definition contained in VAR. Take
21384 # advantage of any shell optimizations that allow amortized linear growth over
21385 # repeated appends, instead of the typical quadratic growth present in naive
21386 # implementations.
21387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21388   eval 'as_fn_append ()
21389   {
21390     eval $1+=\$2
21391   }'
21392 else
21393   as_fn_append ()
21394   {
21395     eval $1=\$$1\$2
21396   }
21397 fi # as_fn_append
21398
21399 # as_fn_arith ARG...
21400 # ------------------
21401 # Perform arithmetic evaluation on the ARGs, and store the result in the
21402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21403 # must be portable across $(()) and expr.
21404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21405   eval 'as_fn_arith ()
21406   {
21407     as_val=$(( $* ))
21408   }'
21409 else
21410   as_fn_arith ()
21411   {
21412     as_val=`expr "$@" || test $? -eq 1`
21413   }
21414 fi # as_fn_arith
21415
21416
21417 if expr a : '\(a\)' >/dev/null 2>&1 &&
21418    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21419   as_expr=expr
21420 else
21421   as_expr=false
21422 fi
21423
21424 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21425   as_basename=basename
21426 else
21427   as_basename=false
21428 fi
21429
21430 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21431   as_dirname=dirname
21432 else
21433   as_dirname=false
21434 fi
21435
21436 as_me=`$as_basename -- "$0" ||
21437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21438          X"$0" : 'X\(//\)$' \| \
21439          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21440 $as_echo X/"$0" |
21441     sed '/^.*\/\([^/][^/]*\)\/*$/{
21442             s//\1/
21443             q
21444           }
21445           /^X\/\(\/\/\)$/{
21446             s//\1/
21447             q
21448           }
21449           /^X\/\(\/\).*/{
21450             s//\1/
21451             q
21452           }
21453           s/.*/./; q'`
21454
21455 # Avoid depending upon Character Ranges.
21456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21459 as_cr_digits='0123456789'
21460 as_cr_alnum=$as_cr_Letters$as_cr_digits
21461
21462 ECHO_C= ECHO_N= ECHO_T=
21463 case `echo -n x` in #(((((
21464 -n*)
21465   case `echo 'xy\c'` in
21466   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21467   xy)  ECHO_C='\c';;
21468   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21469        ECHO_T=' ';;
21470   esac;;
21471 *)
21472   ECHO_N='-n';;
21473 esac
21474
21475 rm -f conf$$ conf$$.exe conf$$.file
21476 if test -d conf$$.dir; then
21477   rm -f conf$$.dir/conf$$.file
21478 else
21479   rm -f conf$$.dir
21480   mkdir conf$$.dir 2>/dev/null
21481 fi
21482 if (echo >conf$$.file) 2>/dev/null; then
21483   if ln -s conf$$.file conf$$ 2>/dev/null; then
21484     as_ln_s='ln -s'
21485     # ... but there are two gotchas:
21486     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21487     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21488     # In both cases, we have to default to `cp -p'.
21489     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21490       as_ln_s='cp -p'
21491   elif ln conf$$.file conf$$ 2>/dev/null; then
21492     as_ln_s=ln
21493   else
21494     as_ln_s='cp -p'
21495   fi
21496 else
21497   as_ln_s='cp -p'
21498 fi
21499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21500 rmdir conf$$.dir 2>/dev/null
21501
21502
21503 # as_fn_mkdir_p
21504 # -------------
21505 # Create "$as_dir" as a directory, including parents if necessary.
21506 as_fn_mkdir_p ()
21507 {
21508
21509   case $as_dir in #(
21510   -*) as_dir=./$as_dir;;
21511   esac
21512   test -d "$as_dir" || eval $as_mkdir_p || {
21513     as_dirs=
21514     while :; do
21515       case $as_dir in #(
21516       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21517       *) as_qdir=$as_dir;;
21518       esac
21519       as_dirs="'$as_qdir' $as_dirs"
21520       as_dir=`$as_dirname -- "$as_dir" ||
21521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21522          X"$as_dir" : 'X\(//\)[^/]' \| \
21523          X"$as_dir" : 'X\(//\)$' \| \
21524          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21525 $as_echo X"$as_dir" |
21526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21527             s//\1/
21528             q
21529           }
21530           /^X\(\/\/\)[^/].*/{
21531             s//\1/
21532             q
21533           }
21534           /^X\(\/\/\)$/{
21535             s//\1/
21536             q
21537           }
21538           /^X\(\/\).*/{
21539             s//\1/
21540             q
21541           }
21542           s/.*/./; q'`
21543       test -d "$as_dir" && break
21544     done
21545     test -z "$as_dirs" || eval "mkdir $as_dirs"
21546   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21547
21548
21549 } # as_fn_mkdir_p
21550 if mkdir -p . 2>/dev/null; then
21551   as_mkdir_p='mkdir -p "$as_dir"'
21552 else
21553   test -d ./-p && rmdir ./-p
21554   as_mkdir_p=false
21555 fi
21556
21557 if test -x / >/dev/null 2>&1; then
21558   as_test_x='test -x'
21559 else
21560   if ls -dL / >/dev/null 2>&1; then
21561     as_ls_L_option=L
21562   else
21563     as_ls_L_option=
21564   fi
21565   as_test_x='
21566     eval sh -c '\''
21567       if test -d "$1"; then
21568         test -d "$1/.";
21569       else
21570         case $1 in #(
21571         -*)set "./$1";;
21572         esac;
21573         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21574         ???[sx]*):;;*)false;;esac;fi
21575     '\'' sh
21576   '
21577 fi
21578 as_executable_p=$as_test_x
21579
21580 # Sed expression to map a string onto a valid CPP name.
21581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21582
21583 # Sed expression to map a string onto a valid variable name.
21584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21585
21586
21587 exec 6>&1
21588 ## ----------------------------------- ##
21589 ## Main body of $CONFIG_STATUS script. ##
21590 ## ----------------------------------- ##
21591 _ASEOF
21592 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21593
21594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21595 # Save the log message, to keep $0 and so on meaningful, and to
21596 # report actual input values of CONFIG_FILES etc. instead of their
21597 # values after options handling.
21598 ac_log="
21599 This file was extended by sudo $as_me 1.8.6p8, which was
21600 generated by GNU Autoconf 2.68.  Invocation command line was
21601
21602   CONFIG_FILES    = $CONFIG_FILES
21603   CONFIG_HEADERS  = $CONFIG_HEADERS
21604   CONFIG_LINKS    = $CONFIG_LINKS
21605   CONFIG_COMMANDS = $CONFIG_COMMANDS
21606   $ $0 $@
21607
21608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21609 "
21610
21611 _ACEOF
21612
21613 case $ac_config_files in *"
21614 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21615 esac
21616
21617 case $ac_config_headers in *"
21618 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21619 esac
21620
21621
21622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21623 # Files that config.status was made for.
21624 config_files="$ac_config_files"
21625 config_headers="$ac_config_headers"
21626 config_commands="$ac_config_commands"
21627
21628 _ACEOF
21629
21630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21631 ac_cs_usage="\
21632 \`$as_me' instantiates files and other configuration actions
21633 from templates according to the current configuration.  Unless the files
21634 and actions are specified as TAGs, all are instantiated by default.
21635
21636 Usage: $0 [OPTION]... [TAG]...
21637
21638   -h, --help       print this help, then exit
21639   -V, --version    print version number and configuration settings, then exit
21640       --config     print configuration, then exit
21641   -q, --quiet, --silent
21642                    do not print progress messages
21643   -d, --debug      don't remove temporary files
21644       --recheck    update $as_me by reconfiguring in the same conditions
21645       --file=FILE[:TEMPLATE]
21646                    instantiate the configuration file FILE
21647       --header=FILE[:TEMPLATE]
21648                    instantiate the configuration header FILE
21649
21650 Configuration files:
21651 $config_files
21652
21653 Configuration headers:
21654 $config_headers
21655
21656 Configuration commands:
21657 $config_commands
21658
21659 Report bugs to <http://www.sudo.ws/bugs/>."
21660
21661 _ACEOF
21662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21663 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21664 ac_cs_version="\\
21665 sudo config.status 1.8.6p8
21666 configured by $0, generated by GNU Autoconf 2.68,
21667   with options \\"\$ac_cs_config\\"
21668
21669 Copyright (C) 2010 Free Software Foundation, Inc.
21670 This config.status script is free software; the Free Software Foundation
21671 gives unlimited permission to copy, distribute and modify it."
21672
21673 ac_pwd='$ac_pwd'
21674 srcdir='$srcdir'
21675 AWK='$AWK'
21676 test -n "\$AWK" || AWK=awk
21677 _ACEOF
21678
21679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21680 # The default lists apply if the user does not specify any file.
21681 ac_need_defaults=:
21682 while test $# != 0
21683 do
21684   case $1 in
21685   --*=?*)
21686     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21687     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21688     ac_shift=:
21689     ;;
21690   --*=)
21691     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21692     ac_optarg=
21693     ac_shift=:
21694     ;;
21695   *)
21696     ac_option=$1
21697     ac_optarg=$2
21698     ac_shift=shift
21699     ;;
21700   esac
21701
21702   case $ac_option in
21703   # Handling of the options.
21704   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21705     ac_cs_recheck=: ;;
21706   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21707     $as_echo "$ac_cs_version"; exit ;;
21708   --config | --confi | --conf | --con | --co | --c )
21709     $as_echo "$ac_cs_config"; exit ;;
21710   --debug | --debu | --deb | --de | --d | -d )
21711     debug=: ;;
21712   --file | --fil | --fi | --f )
21713     $ac_shift
21714     case $ac_optarg in
21715     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21716     '') as_fn_error $? "missing file argument" ;;
21717     esac
21718     as_fn_append CONFIG_FILES " '$ac_optarg'"
21719     ac_need_defaults=false;;
21720   --header | --heade | --head | --hea )
21721     $ac_shift
21722     case $ac_optarg in
21723     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21724     esac
21725     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21726     ac_need_defaults=false;;
21727   --he | --h)
21728     # Conflict between --help and --header
21729     as_fn_error $? "ambiguous option: \`$1'
21730 Try \`$0 --help' for more information.";;
21731   --help | --hel | -h )
21732     $as_echo "$ac_cs_usage"; exit ;;
21733   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21734   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21735     ac_cs_silent=: ;;
21736
21737   # This is an error.
21738   -*) as_fn_error $? "unrecognized option: \`$1'
21739 Try \`$0 --help' for more information." ;;
21740
21741   *) as_fn_append ac_config_targets " $1"
21742      ac_need_defaults=false ;;
21743
21744   esac
21745   shift
21746 done
21747
21748 ac_configure_extra_args=
21749
21750 if $ac_cs_silent; then
21751   exec 6>/dev/null
21752   ac_configure_extra_args="$ac_configure_extra_args --silent"
21753 fi
21754
21755 _ACEOF
21756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21757 if \$ac_cs_recheck; then
21758   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21759   shift
21760   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21761   CONFIG_SHELL='$SHELL'
21762   export CONFIG_SHELL
21763   exec "\$@"
21764 fi
21765
21766 _ACEOF
21767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21768 exec 5>>config.log
21769 {
21770   echo
21771   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21772 ## Running $as_me. ##
21773 _ASBOX
21774   $as_echo "$ac_log"
21775 } >&5
21776
21777 _ACEOF
21778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21779 #
21780 # INIT-COMMANDS
21781 #
21782
21783
21784 # The HP-UX ksh and POSIX shell print the target directory to stdout
21785 # if CDPATH is set.
21786 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21787
21788 sed_quote_subst='$sed_quote_subst'
21789 double_quote_subst='$double_quote_subst'
21790 delay_variable_subst='$delay_variable_subst'
21791 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21792 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21793 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21794 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21795 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21796 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21797 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21798 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21799 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21800 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21801 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21802 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21803 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21804 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21805 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21806 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21807 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21808 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21809 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21810 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21811 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21812 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21813 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21814 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21815 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21816 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21817 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21818 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21819 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21820 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21821 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21822 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21823 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21824 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21825 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21826 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21827 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21828 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21829 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21830 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21831 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21832 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21833 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21834 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21835 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21836 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21837 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21838 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21839 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21840 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21841 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21842 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21843 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21844 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21845 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21846 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21847 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"`'
21848 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21849 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21850 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21851 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21852 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21853 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21854 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21855 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21856 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21857 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21858 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21859 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21860 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21861 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21862 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21863 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21864 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21865 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21866 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21867 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21868 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21869 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21870 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21871 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21872 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21873 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21874 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21875 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21876 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21877 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21878 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21879 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21880 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21881 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21882 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21883 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21884 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21885 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21886 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21887 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21888 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21889 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21890 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21891 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21892 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21893 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21894 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21895 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21896 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21897 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21898 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21899 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21900 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21901 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21902 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21903 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21904 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21905 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21906 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21907 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21908 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21909 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21910 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21911 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21912 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21913 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21914 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21915 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21916 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21917 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21918 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21919 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21920 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21921
21922 LTCC='$LTCC'
21923 LTCFLAGS='$LTCFLAGS'
21924 compiler='$compiler_DEFAULT'
21925
21926 # A function that is used when there is no print builtin or printf.
21927 func_fallback_echo ()
21928 {
21929   eval 'cat <<_LTECHO_EOF
21930 \$1
21931 _LTECHO_EOF'
21932 }
21933
21934 # Quote evaled strings.
21935 for var in SHELL \
21936 ECHO \
21937 PATH_SEPARATOR \
21938 SED \
21939 GREP \
21940 EGREP \
21941 FGREP \
21942 LD \
21943 NM \
21944 LN_S \
21945 lt_SP2NL \
21946 lt_NL2SP \
21947 reload_flag \
21948 OBJDUMP \
21949 deplibs_check_method \
21950 file_magic_cmd \
21951 file_magic_glob \
21952 want_nocaseglob \
21953 DLLTOOL \
21954 sharedlib_from_linklib_cmd \
21955 AR \
21956 AR_FLAGS \
21957 archiver_list_spec \
21958 STRIP \
21959 RANLIB \
21960 CC \
21961 CFLAGS \
21962 compiler \
21963 lt_cv_sys_global_symbol_pipe \
21964 lt_cv_sys_global_symbol_to_cdecl \
21965 lt_cv_sys_global_symbol_to_c_name_address \
21966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21967 nm_file_list_spec \
21968 lt_prog_compiler_no_builtin_flag \
21969 lt_prog_compiler_pic \
21970 lt_prog_compiler_wl \
21971 lt_prog_compiler_static \
21972 lt_cv_prog_compiler_c_o \
21973 need_locks \
21974 MANIFEST_TOOL \
21975 DSYMUTIL \
21976 NMEDIT \
21977 LIPO \
21978 OTOOL \
21979 OTOOL64 \
21980 shrext_cmds \
21981 export_dynamic_flag_spec \
21982 whole_archive_flag_spec \
21983 compiler_needs_object \
21984 with_gnu_ld \
21985 allow_undefined_flag \
21986 no_undefined_flag \
21987 hardcode_libdir_flag_spec \
21988 hardcode_libdir_separator \
21989 exclude_expsyms \
21990 include_expsyms \
21991 file_list_spec \
21992 variables_saved_for_relink \
21993 libname_spec \
21994 library_names_spec \
21995 soname_spec \
21996 install_override_mode \
21997 finish_eval \
21998 old_striplib \
21999 striplib; do
22000     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22001     *[\\\\\\\`\\"\\\$]*)
22002       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22003       ;;
22004     *)
22005       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22006       ;;
22007     esac
22008 done
22009
22010 # Double-quote double-evaled strings.
22011 for var in reload_cmds \
22012 old_postinstall_cmds \
22013 old_postuninstall_cmds \
22014 old_archive_cmds \
22015 extract_expsyms_cmds \
22016 old_archive_from_new_cmds \
22017 old_archive_from_expsyms_cmds \
22018 archive_cmds \
22019 archive_expsym_cmds \
22020 module_cmds \
22021 module_expsym_cmds \
22022 export_symbols_cmds \
22023 prelink_cmds \
22024 postlink_cmds \
22025 postinstall_cmds \
22026 postuninstall_cmds \
22027 finish_cmds \
22028 sys_lib_search_path_spec \
22029 sys_lib_dlsearch_path_spec; do
22030     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22031     *[\\\\\\\`\\"\\\$]*)
22032       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22033       ;;
22034     *)
22035       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22036       ;;
22037     esac
22038 done
22039
22040 ac_aux_dir='$ac_aux_dir'
22041 xsi_shell='$xsi_shell'
22042 lt_shell_append='$lt_shell_append'
22043
22044 # See if we are running on zsh, and set the options which allow our
22045 # commands through without removal of \ escapes INIT.
22046 if test -n "\${ZSH_VERSION+set}" ; then
22047    setopt NO_GLOB_SUBST
22048 fi
22049
22050
22051     PACKAGE='$PACKAGE'
22052     VERSION='$VERSION'
22053     TIMESTAMP='$TIMESTAMP'
22054     RM='$RM'
22055     ofile='$ofile'
22056
22057
22058
22059
22060 _ACEOF
22061
22062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22063
22064 # Handling of arguments.
22065 for ac_config_target in $ac_config_targets
22066 do
22067   case $ac_config_target in
22068     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22069     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
22070     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22071     "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
22072     "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
22073     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22074     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
22075     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
22076     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22077     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22078     "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
22079     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22080     "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
22081     "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
22082     "plugins/system_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/system_group/Makefile" ;;
22083     "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
22084     "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
22085
22086   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22087   esac
22088 done
22089
22090
22091 # If the user did not use the arguments to specify the items to instantiate,
22092 # then the envvar interface is used.  Set only those that are not.
22093 # We use the long form for the default assignment because of an extremely
22094 # bizarre bug on SunOS 4.1.3.
22095 if $ac_need_defaults; then
22096   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22097   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22098   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22099 fi
22100
22101 # Have a temporary directory for convenience.  Make it in the build tree
22102 # simply because there is no reason against having it here, and in addition,
22103 # creating and moving files from /tmp can sometimes cause problems.
22104 # Hook for its removal unless debugging.
22105 # Note that there is a small window in which the directory will not be cleaned:
22106 # after its creation but before its name has been assigned to `$tmp'.
22107 $debug ||
22108 {
22109   tmp= ac_tmp=
22110   trap 'exit_status=$?
22111   : "${ac_tmp:=$tmp}"
22112   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22113 ' 0
22114   trap 'as_fn_exit 1' 1 2 13 15
22115 }
22116 # Create a (secure) tmp directory for tmp files.
22117
22118 {
22119   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22120   test -d "$tmp"
22121 }  ||
22122 {
22123   tmp=./conf$$-$RANDOM
22124   (umask 077 && mkdir "$tmp")
22125 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22126 ac_tmp=$tmp
22127
22128 # Set up the scripts for CONFIG_FILES section.
22129 # No need to generate them if there are no CONFIG_FILES.
22130 # This happens for instance with `./config.status config.h'.
22131 if test -n "$CONFIG_FILES"; then
22132
22133
22134 ac_cr=`echo X | tr X '\015'`
22135 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22136 # But we know of no other shell where ac_cr would be empty at this
22137 # point, so we can use a bashism as a fallback.
22138 if test "x$ac_cr" = x; then
22139   eval ac_cr=\$\'\\r\'
22140 fi
22141 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22142 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22143   ac_cs_awk_cr='\\r'
22144 else
22145   ac_cs_awk_cr=$ac_cr
22146 fi
22147
22148 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22149 _ACEOF
22150
22151
22152 {
22153   echo "cat >conf$$subs.awk <<_ACEOF" &&
22154   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22155   echo "_ACEOF"
22156 } >conf$$subs.sh ||
22157   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22158 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22159 ac_delim='%!_!# '
22160 for ac_last_try in false false false false false :; do
22161   . ./conf$$subs.sh ||
22162     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22163
22164   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22165   if test $ac_delim_n = $ac_delim_num; then
22166     break
22167   elif $ac_last_try; then
22168     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22169   else
22170     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22171   fi
22172 done
22173 rm -f conf$$subs.sh
22174
22175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22176 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22177 _ACEOF
22178 sed -n '
22179 h
22180 s/^/S["/; s/!.*/"]=/
22181 p
22182 g
22183 s/^[^!]*!//
22184 :repl
22185 t repl
22186 s/'"$ac_delim"'$//
22187 t delim
22188 :nl
22189 h
22190 s/\(.\{148\}\)..*/\1/
22191 t more1
22192 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22193 p
22194 n
22195 b repl
22196 :more1
22197 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22198 p
22199 g
22200 s/.\{148\}//
22201 t nl
22202 :delim
22203 h
22204 s/\(.\{148\}\)..*/\1/
22205 t more2
22206 s/["\\]/\\&/g; s/^/"/; s/$/"/
22207 p
22208 b
22209 :more2
22210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22211 p
22212 g
22213 s/.\{148\}//
22214 t delim
22215 ' <conf$$subs.awk | sed '
22216 /^[^""]/{
22217   N
22218   s/\n//
22219 }
22220 ' >>$CONFIG_STATUS || ac_write_fail=1
22221 rm -f conf$$subs.awk
22222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22223 _ACAWK
22224 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22225   for (key in S) S_is_set[key] = 1
22226   FS = "\a"
22227
22228 }
22229 {
22230   line = $ 0
22231   nfields = split(line, field, "@")
22232   substed = 0
22233   len = length(field[1])
22234   for (i = 2; i < nfields; i++) {
22235     key = field[i]
22236     keylen = length(key)
22237     if (S_is_set[key]) {
22238       value = S[key]
22239       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22240       len += length(value) + length(field[++i])
22241       substed = 1
22242     } else
22243       len += 1 + keylen
22244   }
22245
22246   print line
22247 }
22248
22249 _ACAWK
22250 _ACEOF
22251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22252 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22253   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22254 else
22255   cat
22256 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22257   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22258 _ACEOF
22259
22260 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22261 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22262 # trailing colons and then remove the whole line if VPATH becomes empty
22263 # (actually we leave an empty line to preserve line numbers).
22264 if test "x$srcdir" = x.; then
22265   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22266 h
22267 s///
22268 s/^/:/
22269 s/[      ]*$/:/
22270 s/:\$(srcdir):/:/g
22271 s/:\${srcdir}:/:/g
22272 s/:@srcdir@:/:/g
22273 s/^:*//
22274 s/:*$//
22275 x
22276 s/\(=[   ]*\).*/\1/
22277 G
22278 s/\n//
22279 s/^[^=]*=[       ]*$//
22280 }'
22281 fi
22282
22283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22284 fi # test -n "$CONFIG_FILES"
22285
22286 # Set up the scripts for CONFIG_HEADERS section.
22287 # No need to generate them if there are no CONFIG_HEADERS.
22288 # This happens for instance with `./config.status Makefile'.
22289 if test -n "$CONFIG_HEADERS"; then
22290 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22291 BEGIN {
22292 _ACEOF
22293
22294 # Transform confdefs.h into an awk script `defines.awk', embedded as
22295 # here-document in config.status, that substitutes the proper values into
22296 # config.h.in to produce config.h.
22297
22298 # Create a delimiter string that does not exist in confdefs.h, to ease
22299 # handling of long lines.
22300 ac_delim='%!_!# '
22301 for ac_last_try in false false :; do
22302   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22303   if test -z "$ac_tt"; then
22304     break
22305   elif $ac_last_try; then
22306     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22307   else
22308     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22309   fi
22310 done
22311
22312 # For the awk script, D is an array of macro values keyed by name,
22313 # likewise P contains macro parameters if any.  Preserve backslash
22314 # newline sequences.
22315
22316 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22317 sed -n '
22318 s/.\{148\}/&'"$ac_delim"'/g
22319 t rset
22320 :rset
22321 s/^[     ]*#[    ]*define[       ][      ]*/ /
22322 t def
22323 d
22324 :def
22325 s/\\$//
22326 t bsnl
22327 s/["\\]/\\&/g
22328 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22329 D["\1"]=" \3"/p
22330 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22331 d
22332 :bsnl
22333 s/["\\]/\\&/g
22334 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22335 D["\1"]=" \3\\\\\\n"\\/p
22336 t cont
22337 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22338 t cont
22339 d
22340 :cont
22341 n
22342 s/.\{148\}/&'"$ac_delim"'/g
22343 t clear
22344 :clear
22345 s/\\$//
22346 t bsnlc
22347 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22348 d
22349 :bsnlc
22350 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22351 b cont
22352 ' <confdefs.h | sed '
22353 s/'"$ac_delim"'/"\\\
22354 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22355
22356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22357   for (key in D) D_is_set[key] = 1
22358   FS = "\a"
22359 }
22360 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22361   line = \$ 0
22362   split(line, arg, " ")
22363   if (arg[1] == "#") {
22364     defundef = arg[2]
22365     mac1 = arg[3]
22366   } else {
22367     defundef = substr(arg[1], 2)
22368     mac1 = arg[2]
22369   }
22370   split(mac1, mac2, "(") #)
22371   macro = mac2[1]
22372   prefix = substr(line, 1, index(line, defundef) - 1)
22373   if (D_is_set[macro]) {
22374     # Preserve the white space surrounding the "#".
22375     print prefix "define", macro P[macro] D[macro]
22376     next
22377   } else {
22378     # Replace #undef with comments.  This is necessary, for example,
22379     # in the case of _POSIX_SOURCE, which is predefined and required
22380     # on some systems where configure will not decide to define it.
22381     if (defundef == "undef") {
22382       print "/*", prefix defundef, macro, "*/"
22383       next
22384     }
22385   }
22386 }
22387 { print }
22388 _ACAWK
22389 _ACEOF
22390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22391   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22392 fi # test -n "$CONFIG_HEADERS"
22393
22394
22395 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22396 shift
22397 for ac_tag
22398 do
22399   case $ac_tag in
22400   :[FHLC]) ac_mode=$ac_tag; continue;;
22401   esac
22402   case $ac_mode$ac_tag in
22403   :[FHL]*:*);;
22404   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22405   :[FH]-) ac_tag=-:-;;
22406   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22407   esac
22408   ac_save_IFS=$IFS
22409   IFS=:
22410   set x $ac_tag
22411   IFS=$ac_save_IFS
22412   shift
22413   ac_file=$1
22414   shift
22415
22416   case $ac_mode in
22417   :L) ac_source=$1;;
22418   :[FH])
22419     ac_file_inputs=
22420     for ac_f
22421     do
22422       case $ac_f in
22423       -) ac_f="$ac_tmp/stdin";;
22424       *) # Look for the file first in the build tree, then in the source tree
22425          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22426          # because $ac_f cannot contain `:'.
22427          test -f "$ac_f" ||
22428            case $ac_f in
22429            [\\/$]*) false;;
22430            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22431            esac ||
22432            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22433       esac
22434       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22435       as_fn_append ac_file_inputs " '$ac_f'"
22436     done
22437
22438     # Let's still pretend it is `configure' which instantiates (i.e., don't
22439     # use $as_me), people would be surprised to read:
22440     #    /* config.h.  Generated by config.status.  */
22441     configure_input='Generated from '`
22442           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22443         `' by configure.'
22444     if test x"$ac_file" != x-; then
22445       configure_input="$ac_file.  $configure_input"
22446       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22447 $as_echo "$as_me: creating $ac_file" >&6;}
22448     fi
22449     # Neutralize special characters interpreted by sed in replacement strings.
22450     case $configure_input in #(
22451     *\&* | *\|* | *\\* )
22452        ac_sed_conf_input=`$as_echo "$configure_input" |
22453        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22454     *) ac_sed_conf_input=$configure_input;;
22455     esac
22456
22457     case $ac_tag in
22458     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22459       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22460     esac
22461     ;;
22462   esac
22463
22464   ac_dir=`$as_dirname -- "$ac_file" ||
22465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22466          X"$ac_file" : 'X\(//\)[^/]' \| \
22467          X"$ac_file" : 'X\(//\)$' \| \
22468          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22469 $as_echo X"$ac_file" |
22470     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22471             s//\1/
22472             q
22473           }
22474           /^X\(\/\/\)[^/].*/{
22475             s//\1/
22476             q
22477           }
22478           /^X\(\/\/\)$/{
22479             s//\1/
22480             q
22481           }
22482           /^X\(\/\).*/{
22483             s//\1/
22484             q
22485           }
22486           s/.*/./; q'`
22487   as_dir="$ac_dir"; as_fn_mkdir_p
22488   ac_builddir=.
22489
22490 case "$ac_dir" in
22491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22492 *)
22493   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22494   # A ".." for each directory in $ac_dir_suffix.
22495   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22496   case $ac_top_builddir_sub in
22497   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22498   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22499   esac ;;
22500 esac
22501 ac_abs_top_builddir=$ac_pwd
22502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22503 # for backward compatibility:
22504 ac_top_builddir=$ac_top_build_prefix
22505
22506 case $srcdir in
22507   .)  # We are building in place.
22508     ac_srcdir=.
22509     ac_top_srcdir=$ac_top_builddir_sub
22510     ac_abs_top_srcdir=$ac_pwd ;;
22511   [\\/]* | ?:[\\/]* )  # Absolute name.
22512     ac_srcdir=$srcdir$ac_dir_suffix;
22513     ac_top_srcdir=$srcdir
22514     ac_abs_top_srcdir=$srcdir ;;
22515   *) # Relative name.
22516     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22517     ac_top_srcdir=$ac_top_build_prefix$srcdir
22518     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22519 esac
22520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22521
22522
22523   case $ac_mode in
22524   :F)
22525   #
22526   # CONFIG_FILE
22527   #
22528
22529 _ACEOF
22530
22531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22532 # If the template does not know about datarootdir, expand it.
22533 # FIXME: This hack should be removed a few years after 2.60.
22534 ac_datarootdir_hack=; ac_datarootdir_seen=
22535 ac_sed_dataroot='
22536 /datarootdir/ {
22537   p
22538   q
22539 }
22540 /@datadir@/p
22541 /@docdir@/p
22542 /@infodir@/p
22543 /@localedir@/p
22544 /@mandir@/p'
22545 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22546 *datarootdir*) ac_datarootdir_seen=yes;;
22547 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22548   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22549 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22550 _ACEOF
22551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22552   ac_datarootdir_hack='
22553   s&@datadir@&$datadir&g
22554   s&@docdir@&$docdir&g
22555   s&@infodir@&$infodir&g
22556   s&@localedir@&$localedir&g
22557   s&@mandir@&$mandir&g
22558   s&\\\${datarootdir}&$datarootdir&g' ;;
22559 esac
22560 _ACEOF
22561
22562 # Neutralize VPATH when `$srcdir' = `.'.
22563 # Shell code in configure.ac might set extrasub.
22564 # FIXME: do we really want to maintain this feature?
22565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22566 ac_sed_extra="$ac_vpsub
22567 $extrasub
22568 _ACEOF
22569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22570 :t
22571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22572 s|@configure_input@|$ac_sed_conf_input|;t t
22573 s&@top_builddir@&$ac_top_builddir_sub&;t t
22574 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22575 s&@srcdir@&$ac_srcdir&;t t
22576 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22577 s&@top_srcdir@&$ac_top_srcdir&;t t
22578 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22579 s&@builddir@&$ac_builddir&;t t
22580 s&@abs_builddir@&$ac_abs_builddir&;t t
22581 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22582 $ac_datarootdir_hack
22583 "
22584 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22585   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22586
22587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22588   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22589   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22590       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22591   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22592 which seems to be undefined.  Please make sure it is defined" >&5
22593 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22594 which seems to be undefined.  Please make sure it is defined" >&2;}
22595
22596   rm -f "$ac_tmp/stdin"
22597   case $ac_file in
22598   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22599   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22600   esac \
22601   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22602  ;;
22603   :H)
22604   #
22605   # CONFIG_HEADER
22606   #
22607   if test x"$ac_file" != x-; then
22608     {
22609       $as_echo "/* $configure_input  */" \
22610       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22611     } >"$ac_tmp/config.h" \
22612       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22613     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22614       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22615 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22616     else
22617       rm -f "$ac_file"
22618       mv "$ac_tmp/config.h" "$ac_file" \
22619         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22620     fi
22621   else
22622     $as_echo "/* $configure_input  */" \
22623       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22624       || as_fn_error $? "could not create -" "$LINENO" 5
22625   fi
22626  ;;
22627
22628   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22629 $as_echo "$as_me: executing $ac_file commands" >&6;}
22630  ;;
22631   esac
22632
22633
22634   case $ac_file$ac_mode in
22635     "libtool":C)
22636
22637     # See if we are running on zsh, and set the options which allow our
22638     # commands through without removal of \ escapes.
22639     if test -n "${ZSH_VERSION+set}" ; then
22640       setopt NO_GLOB_SUBST
22641     fi
22642
22643     cfgfile="${ofile}T"
22644     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22645     $RM "$cfgfile"
22646
22647     cat <<_LT_EOF >> "$cfgfile"
22648 #! $SHELL
22649
22650 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22651 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22652 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22653 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22654 #
22655 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22656 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22657 #                 Foundation, Inc.
22658 #   Written by Gordon Matzigkeit, 1996
22659 #
22660 #   This file is part of GNU Libtool.
22661 #
22662 # GNU Libtool is free software; you can redistribute it and/or
22663 # modify it under the terms of the GNU General Public License as
22664 # published by the Free Software Foundation; either version 2 of
22665 # the License, or (at your option) any later version.
22666 #
22667 # As a special exception to the GNU General Public License,
22668 # if you distribute this file as part of a program or library that
22669 # is built using GNU Libtool, you may include this file under the
22670 # same distribution terms that you use for the rest of that program.
22671 #
22672 # GNU Libtool is distributed in the hope that it will be useful,
22673 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22674 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22675 # GNU General Public License for more details.
22676 #
22677 # You should have received a copy of the GNU General Public License
22678 # along with GNU Libtool; see the file COPYING.  If not, a copy
22679 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22680 # obtained by writing to the Free Software Foundation, Inc.,
22681 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22682
22683
22684 # The names of the tagged configurations supported by this script.
22685 available_tags=""
22686
22687 # ### BEGIN LIBTOOL CONFIG
22688
22689 # Which release of libtool.m4 was used?
22690 macro_version=$macro_version
22691 macro_revision=$macro_revision
22692
22693 # Whether or not to build shared libraries.
22694 build_libtool_libs=$enable_shared
22695
22696 # Whether or not to build static libraries.
22697 build_old_libs=$enable_static
22698
22699 # What type of objects to build.
22700 pic_mode=$pic_mode
22701
22702 # Whether or not to optimize for fast installation.
22703 fast_install=$enable_fast_install
22704
22705 # Shell to use when invoking shell scripts.
22706 SHELL=$lt_SHELL
22707
22708 # An echo program that protects backslashes.
22709 ECHO=$lt_ECHO
22710
22711 # The PATH separator for the build system.
22712 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22713
22714 # The host system.
22715 host_alias=$host_alias
22716 host=$host
22717 host_os=$host_os
22718
22719 # The build system.
22720 build_alias=$build_alias
22721 build=$build
22722 build_os=$build_os
22723
22724 # A sed program that does not truncate output.
22725 SED=$lt_SED
22726
22727 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22728 Xsed="\$SED -e 1s/^X//"
22729
22730 # A grep program that handles long lines.
22731 GREP=$lt_GREP
22732
22733 # An ERE matcher.
22734 EGREP=$lt_EGREP
22735
22736 # A literal string matcher.
22737 FGREP=$lt_FGREP
22738
22739 # A BSD- or MS-compatible name lister.
22740 NM=$lt_NM
22741
22742 # Whether we need soft or hard links.
22743 LN_S=$lt_LN_S
22744
22745 # What is the maximum length of a command?
22746 max_cmd_len=$max_cmd_len
22747
22748 # Object file suffix (normally "o").
22749 objext=$ac_objext
22750
22751 # Executable file suffix (normally "").
22752 exeext=$exeext
22753
22754 # whether the shell understands "unset".
22755 lt_unset=$lt_unset
22756
22757 # turn spaces into newlines.
22758 SP2NL=$lt_lt_SP2NL
22759
22760 # turn newlines into spaces.
22761 NL2SP=$lt_lt_NL2SP
22762
22763 # convert \$build file names to \$host format.
22764 to_host_file_cmd=$lt_cv_to_host_file_cmd
22765
22766 # convert \$build files to toolchain format.
22767 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22768
22769 # An object symbol dumper.
22770 OBJDUMP=$lt_OBJDUMP
22771
22772 # Method to check whether dependent libraries are shared objects.
22773 deplibs_check_method=$lt_deplibs_check_method
22774
22775 # Command to use when deplibs_check_method = "file_magic".
22776 file_magic_cmd=$lt_file_magic_cmd
22777
22778 # How to find potential files when deplibs_check_method = "file_magic".
22779 file_magic_glob=$lt_file_magic_glob
22780
22781 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22782 want_nocaseglob=$lt_want_nocaseglob
22783
22784 # DLL creation program.
22785 DLLTOOL=$lt_DLLTOOL
22786
22787 # Command to associate shared and link libraries.
22788 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22789
22790 # The archiver.
22791 AR=$lt_AR
22792
22793 # Flags to create an archive.
22794 AR_FLAGS=$lt_AR_FLAGS
22795
22796 # How to feed a file listing to the archiver.
22797 archiver_list_spec=$lt_archiver_list_spec
22798
22799 # A symbol stripping program.
22800 STRIP=$lt_STRIP
22801
22802 # Commands used to install an old-style archive.
22803 RANLIB=$lt_RANLIB
22804 old_postinstall_cmds=$lt_old_postinstall_cmds
22805 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22806
22807 # Whether to use a lock for old archive extraction.
22808 lock_old_archive_extraction=$lock_old_archive_extraction
22809
22810 # A C compiler.
22811 LTCC=$lt_CC
22812
22813 # LTCC compiler flags.
22814 LTCFLAGS=$lt_CFLAGS
22815
22816 # Take the output of nm and produce a listing of raw symbols and C names.
22817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22818
22819 # Transform the output of nm in a proper C declaration.
22820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22821
22822 # Transform the output of nm in a C name address pair.
22823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22824
22825 # Transform the output of nm in a C name address pair when lib prefix is needed.
22826 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22827
22828 # Specify filename containing input files for \$NM.
22829 nm_file_list_spec=$lt_nm_file_list_spec
22830
22831 # The root where to search for dependent libraries,and in which our libraries should be installed.
22832 lt_sysroot=$lt_sysroot
22833
22834 # The name of the directory that contains temporary libtool files.
22835 objdir=$objdir
22836
22837 # Used to examine libraries when file_magic_cmd begins with "file".
22838 MAGIC_CMD=$MAGIC_CMD
22839
22840 # Must we lock files when doing compilation?
22841 need_locks=$lt_need_locks
22842
22843 # Manifest tool.
22844 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22845
22846 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22847 DSYMUTIL=$lt_DSYMUTIL
22848
22849 # Tool to change global to local symbols on Mac OS X.
22850 NMEDIT=$lt_NMEDIT
22851
22852 # Tool to manipulate fat objects and archives on Mac OS X.
22853 LIPO=$lt_LIPO
22854
22855 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22856 OTOOL=$lt_OTOOL
22857
22858 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22859 OTOOL64=$lt_OTOOL64
22860
22861 # Old archive suffix (normally "a").
22862 libext=$libext
22863
22864 # Shared library suffix (normally ".so").
22865 shrext_cmds=$lt_shrext_cmds
22866
22867 # The commands to extract the exported symbol list from a shared archive.
22868 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22869
22870 # Variables whose values should be saved in libtool wrapper scripts and
22871 # restored at link time.
22872 variables_saved_for_relink=$lt_variables_saved_for_relink
22873
22874 # Do we need the "lib" prefix for modules?
22875 need_lib_prefix=$need_lib_prefix
22876
22877 # Do we need a version for libraries?
22878 need_version=$need_version
22879
22880 # Library versioning type.
22881 version_type=$version_type
22882
22883 # Shared library runtime path variable.
22884 runpath_var=$runpath_var
22885
22886 # Shared library path variable.
22887 shlibpath_var=$shlibpath_var
22888
22889 # Is shlibpath searched before the hard-coded library search path?
22890 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22891
22892 # Format of library name prefix.
22893 libname_spec=$lt_libname_spec
22894
22895 # List of archive names.  First name is the real one, the rest are links.
22896 # The last name is the one that the linker finds with -lNAME
22897 library_names_spec=$lt_library_names_spec
22898
22899 # The coded name of the library, if different from the real name.
22900 soname_spec=$lt_soname_spec
22901
22902 # Permission mode override for installation of shared libraries.
22903 install_override_mode=$lt_install_override_mode
22904
22905 # Command to use after installation of a shared archive.
22906 postinstall_cmds=$lt_postinstall_cmds
22907
22908 # Command to use after uninstallation of a shared archive.
22909 postuninstall_cmds=$lt_postuninstall_cmds
22910
22911 # Commands used to finish a libtool library installation in a directory.
22912 finish_cmds=$lt_finish_cmds
22913
22914 # As "finish_cmds", except a single script fragment to be evaled but
22915 # not shown.
22916 finish_eval=$lt_finish_eval
22917
22918 # Whether we should hardcode library paths into libraries.
22919 hardcode_into_libs=$hardcode_into_libs
22920
22921 # Compile-time system search path for libraries.
22922 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22923
22924 # Run-time system search path for libraries.
22925 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22926
22927 # Whether dlopen is supported.
22928 dlopen_support=$enable_dlopen
22929
22930 # Whether dlopen of programs is supported.
22931 dlopen_self=$enable_dlopen_self
22932
22933 # Whether dlopen of statically linked programs is supported.
22934 dlopen_self_static=$enable_dlopen_self_static
22935
22936 # Commands to strip libraries.
22937 old_striplib=$lt_old_striplib
22938 striplib=$lt_striplib
22939
22940
22941 # The linker used to build libraries.
22942 LD=$lt_LD
22943
22944 # How to create reloadable object files.
22945 reload_flag=$lt_reload_flag
22946 reload_cmds=$lt_reload_cmds
22947
22948 # Commands used to build an old-style archive.
22949 old_archive_cmds=$lt_old_archive_cmds
22950
22951 # A language specific compiler.
22952 CC=$lt_compiler
22953
22954 # Is the compiler the GNU compiler?
22955 with_gcc=$GCC
22956
22957 # Compiler flag to turn off builtin functions.
22958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22959
22960 # Additional compiler flags for building library objects.
22961 pic_flag=$lt_lt_prog_compiler_pic
22962
22963 # How to pass a linker flag through the compiler.
22964 wl=$lt_lt_prog_compiler_wl
22965
22966 # Compiler flag to prevent dynamic linking.
22967 link_static_flag=$lt_lt_prog_compiler_static
22968
22969 # Does compiler simultaneously support -c and -o options?
22970 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22971
22972 # Whether or not to add -lc for building shared libraries.
22973 build_libtool_need_lc=$archive_cmds_need_lc
22974
22975 # Whether or not to disallow shared libs when runtime libs are static.
22976 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22977
22978 # Compiler flag to allow reflexive dlopens.
22979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22980
22981 # Compiler flag to generate shared objects directly from archives.
22982 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22983
22984 # Whether the compiler copes with passing no objects directly.
22985 compiler_needs_object=$lt_compiler_needs_object
22986
22987 # Create an old-style archive from a shared archive.
22988 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22989
22990 # Create a temporary old-style archive to link instead of a shared archive.
22991 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22992
22993 # Commands used to build a shared archive.
22994 archive_cmds=$lt_archive_cmds
22995 archive_expsym_cmds=$lt_archive_expsym_cmds
22996
22997 # Commands used to build a loadable module if different from building
22998 # a shared archive.
22999 module_cmds=$lt_module_cmds
23000 module_expsym_cmds=$lt_module_expsym_cmds
23001
23002 # Whether we are building with GNU ld or not.
23003 with_gnu_ld=$lt_with_gnu_ld
23004
23005 # Flag that allows shared libraries with undefined symbols to be built.
23006 allow_undefined_flag=$lt_allow_undefined_flag
23007
23008 # Flag that enforces no undefined symbols.
23009 no_undefined_flag=$lt_no_undefined_flag
23010
23011 # Flag to hardcode \$libdir into a binary during linking.
23012 # This must work even if \$libdir does not exist
23013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23014
23015 # Whether we need a single "-rpath" flag with a separated argument.
23016 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23017
23018 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23019 # DIR into the resulting binary.
23020 hardcode_direct=$hardcode_direct
23021
23022 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23023 # DIR into the resulting binary and the resulting library dependency is
23024 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23025 # library is relocated.
23026 hardcode_direct_absolute=$hardcode_direct_absolute
23027
23028 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23029 # into the resulting binary.
23030 hardcode_minus_L=$hardcode_minus_L
23031
23032 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23033 # into the resulting binary.
23034 hardcode_shlibpath_var=$hardcode_shlibpath_var
23035
23036 # Set to "yes" if building a shared library automatically hardcodes DIR
23037 # into the library and all subsequent libraries and executables linked
23038 # against it.
23039 hardcode_automatic=$hardcode_automatic
23040
23041 # Set to yes if linker adds runtime paths of dependent libraries
23042 # to runtime path list.
23043 inherit_rpath=$inherit_rpath
23044
23045 # Whether libtool must link a program against all its dependency libraries.
23046 link_all_deplibs=$link_all_deplibs
23047
23048 # Set to "yes" if exported symbols are required.
23049 always_export_symbols=$always_export_symbols
23050
23051 # The commands to list exported symbols.
23052 export_symbols_cmds=$lt_export_symbols_cmds
23053
23054 # Symbols that should not be listed in the preloaded symbols.
23055 exclude_expsyms=$lt_exclude_expsyms
23056
23057 # Symbols that must always be exported.
23058 include_expsyms=$lt_include_expsyms
23059
23060 # Commands necessary for linking programs (against libraries) with templates.
23061 prelink_cmds=$lt_prelink_cmds
23062
23063 # Commands necessary for finishing linking programs.
23064 postlink_cmds=$lt_postlink_cmds
23065
23066 # Specify filename containing input files.
23067 file_list_spec=$lt_file_list_spec
23068
23069 # How to hardcode a shared library path into an executable.
23070 hardcode_action=$hardcode_action
23071
23072 # ### END LIBTOOL CONFIG
23073
23074 _LT_EOF
23075
23076   case $host_os in
23077   aix3*)
23078     cat <<\_LT_EOF >> "$cfgfile"
23079 # AIX sometimes has problems with the GCC collect2 program.  For some
23080 # reason, if we set the COLLECT_NAMES environment variable, the problems
23081 # vanish in a puff of smoke.
23082 if test "X${COLLECT_NAMES+set}" != Xset; then
23083   COLLECT_NAMES=
23084   export COLLECT_NAMES
23085 fi
23086 _LT_EOF
23087     ;;
23088   esac
23089
23090
23091 ltmain="$ac_aux_dir/ltmain.sh"
23092
23093
23094   # We use sed instead of cat because bash on DJGPP gets confused if
23095   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23096   # text mode, it properly converts lines to CR/LF.  This bash problem
23097   # is reportedly fixed, but why not run on old versions too?
23098   sed '$q' "$ltmain" >> "$cfgfile" \
23099      || (rm -f "$cfgfile"; exit 1)
23100
23101   if test x"$xsi_shell" = xyes; then
23102   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23103 func_dirname ()\
23104 {\
23105 \    case ${1} in\
23106 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23107 \      *  ) func_dirname_result="${3}" ;;\
23108 \    esac\
23109 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23110   && mv -f "$cfgfile.tmp" "$cfgfile" \
23111     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23112 test 0 -eq $? || _lt_function_replace_fail=:
23113
23114
23115   sed -e '/^func_basename ()$/,/^} # func_basename /c\
23116 func_basename ()\
23117 {\
23118 \    func_basename_result="${1##*/}"\
23119 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23120   && mv -f "$cfgfile.tmp" "$cfgfile" \
23121     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23122 test 0 -eq $? || _lt_function_replace_fail=:
23123
23124
23125   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23126 func_dirname_and_basename ()\
23127 {\
23128 \    case ${1} in\
23129 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23130 \      *  ) func_dirname_result="${3}" ;;\
23131 \    esac\
23132 \    func_basename_result="${1##*/}"\
23133 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23134   && mv -f "$cfgfile.tmp" "$cfgfile" \
23135     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23136 test 0 -eq $? || _lt_function_replace_fail=:
23137
23138
23139   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23140 func_stripname ()\
23141 {\
23142 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23143 \    # positional parameters, so assign one to ordinary parameter first.\
23144 \    func_stripname_result=${3}\
23145 \    func_stripname_result=${func_stripname_result#"${1}"}\
23146 \    func_stripname_result=${func_stripname_result%"${2}"}\
23147 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23148   && mv -f "$cfgfile.tmp" "$cfgfile" \
23149     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23150 test 0 -eq $? || _lt_function_replace_fail=:
23151
23152
23153   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23154 func_split_long_opt ()\
23155 {\
23156 \    func_split_long_opt_name=${1%%=*}\
23157 \    func_split_long_opt_arg=${1#*=}\
23158 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23159   && mv -f "$cfgfile.tmp" "$cfgfile" \
23160     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23161 test 0 -eq $? || _lt_function_replace_fail=:
23162
23163
23164   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23165 func_split_short_opt ()\
23166 {\
23167 \    func_split_short_opt_arg=${1#??}\
23168 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23169 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23170   && mv -f "$cfgfile.tmp" "$cfgfile" \
23171     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23172 test 0 -eq $? || _lt_function_replace_fail=:
23173
23174
23175   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23176 func_lo2o ()\
23177 {\
23178 \    case ${1} in\
23179 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23180 \      *)    func_lo2o_result=${1} ;;\
23181 \    esac\
23182 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23183   && mv -f "$cfgfile.tmp" "$cfgfile" \
23184     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23185 test 0 -eq $? || _lt_function_replace_fail=:
23186
23187
23188   sed -e '/^func_xform ()$/,/^} # func_xform /c\
23189 func_xform ()\
23190 {\
23191     func_xform_result=${1%.*}.lo\
23192 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23193   && mv -f "$cfgfile.tmp" "$cfgfile" \
23194     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23195 test 0 -eq $? || _lt_function_replace_fail=:
23196
23197
23198   sed -e '/^func_arith ()$/,/^} # func_arith /c\
23199 func_arith ()\
23200 {\
23201     func_arith_result=$(( $* ))\
23202 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23203   && mv -f "$cfgfile.tmp" "$cfgfile" \
23204     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23205 test 0 -eq $? || _lt_function_replace_fail=:
23206
23207
23208   sed -e '/^func_len ()$/,/^} # func_len /c\
23209 func_len ()\
23210 {\
23211     func_len_result=${#1}\
23212 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23213   && mv -f "$cfgfile.tmp" "$cfgfile" \
23214     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23215 test 0 -eq $? || _lt_function_replace_fail=:
23216
23217 fi
23218
23219 if test x"$lt_shell_append" = xyes; then
23220   sed -e '/^func_append ()$/,/^} # func_append /c\
23221 func_append ()\
23222 {\
23223     eval "${1}+=\\${2}"\
23224 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23225   && mv -f "$cfgfile.tmp" "$cfgfile" \
23226     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23227 test 0 -eq $? || _lt_function_replace_fail=:
23228
23229
23230   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23231 func_append_quoted ()\
23232 {\
23233 \    func_quote_for_eval "${2}"\
23234 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23235 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23236   && mv -f "$cfgfile.tmp" "$cfgfile" \
23237     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23238 test 0 -eq $? || _lt_function_replace_fail=:
23239
23240
23241   # Save a `func_append' function call where possible by direct use of '+='
23242   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23243     && mv -f "$cfgfile.tmp" "$cfgfile" \
23244       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23245   test 0 -eq $? || _lt_function_replace_fail=:
23246 else
23247   # Save a `func_append' function call even when '+=' is not available
23248   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23249     && mv -f "$cfgfile.tmp" "$cfgfile" \
23250       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23251   test 0 -eq $? || _lt_function_replace_fail=:
23252 fi
23253
23254 if test x"$_lt_function_replace_fail" = x":"; then
23255   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23256 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23257 fi
23258
23259
23260    mv -f "$cfgfile" "$ofile" ||
23261     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23262   chmod +x "$ofile"
23263
23264  ;;
23265
23266   esac
23267 done # for ac_tag
23268
23269
23270 as_fn_exit 0
23271 _ACEOF
23272 ac_clean_files=$ac_clean_files_save
23273
23274 test $ac_write_fail = 0 ||
23275   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23276
23277
23278 # configure is writing to config.log, and then calls config.status.
23279 # config.status does its own redirection, appending to config.log.
23280 # Unfortunately, on DOS this fails, as config.log is still kept open
23281 # by configure, so config.status won't be able to write to it; its
23282 # output is simply discarded.  So we exec the FD to /dev/null,
23283 # effectively closing config.log, so it can be properly (re)opened and
23284 # appended to by config.status.  When coming back to configure, we
23285 # need to make the FD available again.
23286 if test "$no_create" != yes; then
23287   ac_cs_success=:
23288   ac_config_status_args=
23289   test "$silent" = yes &&
23290     ac_config_status_args="$ac_config_status_args --quiet"
23291   exec 5>/dev/null
23292   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23293   exec 5>>config.log
23294   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23295   # would make configure fail if this is the last instruction.
23296   $ac_cs_success || as_fn_exit 1
23297 fi
23298 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23299   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23300 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23301 fi
23302
23303
23304 if test "$with_pam" = "yes"; then
23305     case $host in
23306         *-*-hpux*)
23307             if test -f /usr/lib/security/libpam_hpsec.so.1; then
23308                 { $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
23309 $as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
23310                 { $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
23311 $as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
23312             fi
23313             ;;
23314         *-*-linux*)
23315             { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
23316 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
23317             ;;
23318     esac
23319 fi
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417