Imported Upstream version 1.7.6p1
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for sudo 1.7.6p1.
4 #
5 # Report bugs to <http://www.sudo.ws/bugs/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.sudo.ws/bugs/ about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='sudo'
703 PACKAGE_TARNAME='sudo'
704 PACKAGE_VERSION='1.7.6p1'
705 PACKAGE_STRING='sudo 1.7.6p1'
706 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
707 PACKAGE_URL=''
708
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 #  include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 #  include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 ac_subst_vars='LTLIBOBJS
746 KRB5CONFIG
747 LIBOBJS
748 FLEX
749 YFLAGS
750 YACC
751 NROFFPROG
752 TRPROG
753 UNAMEPROG
754 OTOOL64
755 OTOOL
756 LIPO
757 NMEDIT
758 DSYMUTIL
759 lt_ECHO
760 STRIP
761 OBJDUMP
762 LN_S
763 NM
764 ac_ct_DUMPBIN
765 DUMPBIN
766 LD
767 FGREP
768 EGREP
769 GREP
770 SED
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 RANLIB
780 AR
781 CPP
782 OBJEXT
783 EXEEXT
784 ac_ct_CC
785 CC
786 editor
787 secure_path
788 netsvc_conf
789 nsswitch_conf
790 ldap_secret
791 ldap_conf
792 path_info
793 root_sudo
794 insults
795 tty_tickets
796 passwd_tries
797 env_reset
798 env_editor
799 runas_default
800 fqdn
801 badpass_message
802 mailsub
803 mailto
804 mail_no_perms
805 mail_no_host
806 mail_no_user
807 ignore_dot
808 loglen
809 badpri
810 goodpri
811 logfac
812 lecture
813 long_otp_prompt
814 passprompt
815 umask_override
816 sudo_umask
817 password_timeout
818 timeout
819 timedir
820 iolog_dir
821 CONFIGURE_ARGS
822 ZLIB_DEP
823 ZLIB
824 LOGINCAP_USAGE
825 REPLAY
826 LDAP
827 SELINUX_USAGE
828 BSDAUTH_USAGE
829 DONT_LEAK_PATH_INFO
830 INSTALL_NOEXEC
831 noexec_file
832 NOEXECDIR
833 NOEXECFILE
834 mansrcdir
835 mansectform
836 mansectsu
837 devdir
838 SEMAN
839 LCMAN
840 BAMAN
841 DEV
842 SUDOERS_GID
843 SUDOERS_UID
844 SUDOERS_MODE
845 MAN_POSTINSTALL
846 MANTYPE
847 AUTH_OBJS
848 OSDEFS
849 GETGROUPS_LIB
850 AFS_LIBS
851 NET_LIBS
852 SUDO_LIBS
853 SUDO_OBJS
854 SUDO_LDFLAGS
855 COMMON_OBJS
856 LDFLAGS
857 CPPFLAGS
858 PROGS
859 CFLAGS
860 LIBTOOL
861 HAVE_BSM_AUDIT
862 target_alias
863 host_alias
864 build_alias
865 LIBS
866 ECHO_T
867 ECHO_N
868 ECHO_C
869 DEFS
870 mandir
871 localedir
872 libdir
873 psdir
874 pdfdir
875 dvidir
876 htmldir
877 infodir
878 docdir
879 oldincludedir
880 includedir
881 localstatedir
882 sharedstatedir
883 sysconfdir
884 datadir
885 datarootdir
886 libexecdir
887 sbindir
888 bindir
889 program_transform_name
890 prefix
891 exec_prefix
892 PACKAGE_URL
893 PACKAGE_BUGREPORT
894 PACKAGE_STRING
895 PACKAGE_VERSION
896 PACKAGE_TARNAME
897 PACKAGE_NAME
898 PATH_SEPARATOR
899 SHELL'
900 ac_subst_files=''
901 ac_user_opts='
902 enable_option_checking
903 with_otp_only
904 with_alertmail
905 with_devel
906 with_CC
907 with_rpath
908 with_blibpath
909 with_bsm_audit
910 with_linux_audit
911 with_incpath
912 with_libpath
913 with_libraries
914 with_efence
915 with_csops
916 with_passwd
917 with_skey
918 with_opie
919 with_long_otp_prompt
920 with_SecurID
921 with_fwtk
922 with_kerb4
923 with_kerb5
924 with_aixauth
925 with_pam
926 with_AFS
927 with_DCE
928 with_logincap
929 with_bsdauth
930 with_project
931 with_lecture
932 with_logging
933 with_logfac
934 with_goodpri
935 with_badpri
936 with_logpath
937 with_loglen
938 with_ignore_dot
939 with_mail_if_no_user
940 with_mail_if_no_host
941 with_mail_if_noperms
942 with_mailto
943 with_mailsubject
944 with_passprompt
945 with_badpass_message
946 with_fqdn
947 with_timedir
948 with_iologdir
949 with_sendmail
950 with_sudoers_mode
951 with_sudoers_uid
952 with_sudoers_gid
953 with_umask
954 with_umask_override
955 with_runas_default
956 with_exempt
957 with_editor
958 with_env_editor
959 with_passwd_tries
960 with_timeout
961 with_password_timeout
962 with_tty_tickets
963 with_insults
964 with_all_insults
965 with_classic_insults
966 with_csops_insults
967 with_hal_insults
968 with_goons_insults
969 with_nsswitch
970 with_ldap
971 with_ldap_conf_file
972 with_ldap_secret_file
973 with_pc_insults
974 with_secure_path
975 with_interfaces
976 with_stow
977 with_askpass
978 with_libvas
979 with_libvas_rpath
980 enable_authentication
981 enable_root_mailer
982 enable_setreuid
983 enable_setresuid
984 enable_shadow
985 enable_root_sudo
986 enable_log_host
987 enable_noargs_shell
988 enable_shell_sets_home
989 enable_path_info
990 enable_env_debug
991 enable_env_reset
992 enable_warnings
993 enable_admin_flag
994 with_selinux
995 enable_gss_krb5_ccache_name
996 enable_shared
997 enable_static
998 with_pic
999 enable_fast_install
1000 with_gnu_ld
1001 enable_libtool_lock
1002 with_noexec
1003 with_netsvc
1004 enable_sia
1005 enable_largefile
1006 with_pam_login
1007 enable_pam_session
1008 enable_zlib
1009 '
1010       ac_precious_vars='build_alias
1011 host_alias
1012 target_alias
1013 CC
1014 CFLAGS
1015 LDFLAGS
1016 LIBS
1017 CPPFLAGS
1018 CPP
1019 YACC
1020 YFLAGS'
1021
1022
1023 # Initialize some variables set by options.
1024 ac_init_help=
1025 ac_init_version=false
1026 ac_unrecognized_opts=
1027 ac_unrecognized_sep=
1028 # The variables have the same names as the options, with
1029 # dashes changed to underlines.
1030 cache_file=/dev/null
1031 exec_prefix=NONE
1032 no_create=
1033 no_recursion=
1034 prefix=NONE
1035 program_prefix=NONE
1036 program_suffix=NONE
1037 program_transform_name=s,x,x,
1038 silent=
1039 site=
1040 srcdir=
1041 verbose=
1042 x_includes=NONE
1043 x_libraries=NONE
1044
1045 # Installation directory options.
1046 # These are left unexpanded so users can "make install exec_prefix=/foo"
1047 # and all the variables that are supposed to be based on exec_prefix
1048 # by default will actually change.
1049 # Use braces instead of parens because sh, perl, etc. also accept them.
1050 # (The list follows the same order as the GNU Coding Standards.)
1051 bindir='${exec_prefix}/bin'
1052 sbindir='${exec_prefix}/sbin'
1053 libexecdir='${exec_prefix}/libexec'
1054 datarootdir='${prefix}/share'
1055 datadir='${datarootdir}'
1056 sysconfdir='${prefix}/etc'
1057 sharedstatedir='${prefix}/com'
1058 localstatedir='${prefix}/var'
1059 includedir='${prefix}/include'
1060 oldincludedir='/usr/include'
1061 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1062 infodir='${datarootdir}/info'
1063 htmldir='${docdir}'
1064 dvidir='${docdir}'
1065 pdfdir='${docdir}'
1066 psdir='${docdir}'
1067 libdir='${exec_prefix}/lib'
1068 localedir='${datarootdir}/locale'
1069 mandir='${datarootdir}/man'
1070
1071 ac_prev=
1072 ac_dashdash=
1073 for ac_option
1074 do
1075   # If the previous option needs an argument, assign it.
1076   if test -n "$ac_prev"; then
1077     eval $ac_prev=\$ac_option
1078     ac_prev=
1079     continue
1080   fi
1081
1082   case $ac_option in
1083   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1084   *)    ac_optarg=yes ;;
1085   esac
1086
1087   # Accept the important Cygnus configure options, so we can diagnose typos.
1088
1089   case $ac_dashdash$ac_option in
1090   --)
1091     ac_dashdash=yes ;;
1092
1093   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1094     ac_prev=bindir ;;
1095   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1096     bindir=$ac_optarg ;;
1097
1098   -build | --build | --buil | --bui | --bu)
1099     ac_prev=build_alias ;;
1100   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1101     build_alias=$ac_optarg ;;
1102
1103   -cache-file | --cache-file | --cache-fil | --cache-fi \
1104   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1105     ac_prev=cache_file ;;
1106   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1107   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1108     cache_file=$ac_optarg ;;
1109
1110   --config-cache | -C)
1111     cache_file=config.cache ;;
1112
1113   -datadir | --datadir | --datadi | --datad)
1114     ac_prev=datadir ;;
1115   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1116     datadir=$ac_optarg ;;
1117
1118   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1119   | --dataroo | --dataro | --datar)
1120     ac_prev=datarootdir ;;
1121   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1122   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1123     datarootdir=$ac_optarg ;;
1124
1125   -disable-* | --disable-*)
1126     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1127     # Reject names that are not valid shell variable names.
1128     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129       as_fn_error "invalid feature name: $ac_useropt"
1130     ac_useropt_orig=$ac_useropt
1131     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132     case $ac_user_opts in
1133       *"
1134 "enable_$ac_useropt"
1135 "*) ;;
1136       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1137          ac_unrecognized_sep=', ';;
1138     esac
1139     eval enable_$ac_useropt=no ;;
1140
1141   -docdir | --docdir | --docdi | --doc | --do)
1142     ac_prev=docdir ;;
1143   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1144     docdir=$ac_optarg ;;
1145
1146   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1147     ac_prev=dvidir ;;
1148   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1149     dvidir=$ac_optarg ;;
1150
1151   -enable-* | --enable-*)
1152     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155       as_fn_error "invalid feature name: $ac_useropt"
1156     ac_useropt_orig=$ac_useropt
1157     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158     case $ac_user_opts in
1159       *"
1160 "enable_$ac_useropt"
1161 "*) ;;
1162       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1163          ac_unrecognized_sep=', ';;
1164     esac
1165     eval enable_$ac_useropt=\$ac_optarg ;;
1166
1167   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1168   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1169   | --exec | --exe | --ex)
1170     ac_prev=exec_prefix ;;
1171   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1172   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1173   | --exec=* | --exe=* | --ex=*)
1174     exec_prefix=$ac_optarg ;;
1175
1176   -gas | --gas | --ga | --g)
1177     # Obsolete; use --with-gas.
1178     with_gas=yes ;;
1179
1180   -help | --help | --hel | --he | -h)
1181     ac_init_help=long ;;
1182   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1183     ac_init_help=recursive ;;
1184   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1185     ac_init_help=short ;;
1186
1187   -host | --host | --hos | --ho)
1188     ac_prev=host_alias ;;
1189   -host=* | --host=* | --hos=* | --ho=*)
1190     host_alias=$ac_optarg ;;
1191
1192   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1193     ac_prev=htmldir ;;
1194   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1195   | --ht=*)
1196     htmldir=$ac_optarg ;;
1197
1198   -includedir | --includedir | --includedi | --included | --include \
1199   | --includ | --inclu | --incl | --inc)
1200     ac_prev=includedir ;;
1201   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1202   | --includ=* | --inclu=* | --incl=* | --inc=*)
1203     includedir=$ac_optarg ;;
1204
1205   -infodir | --infodir | --infodi | --infod | --info | --inf)
1206     ac_prev=infodir ;;
1207   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1208     infodir=$ac_optarg ;;
1209
1210   -libdir | --libdir | --libdi | --libd)
1211     ac_prev=libdir ;;
1212   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1213     libdir=$ac_optarg ;;
1214
1215   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1216   | --libexe | --libex | --libe)
1217     ac_prev=libexecdir ;;
1218   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1219   | --libexe=* | --libex=* | --libe=*)
1220     libexecdir=$ac_optarg ;;
1221
1222   -localedir | --localedir | --localedi | --localed | --locale)
1223     ac_prev=localedir ;;
1224   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1225     localedir=$ac_optarg ;;
1226
1227   -localstatedir | --localstatedir | --localstatedi | --localstated \
1228   | --localstate | --localstat | --localsta | --localst | --locals)
1229     ac_prev=localstatedir ;;
1230   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1231   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1232     localstatedir=$ac_optarg ;;
1233
1234   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1235     ac_prev=mandir ;;
1236   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1237     mandir=$ac_optarg ;;
1238
1239   -nfp | --nfp | --nf)
1240     # Obsolete; use --without-fp.
1241     with_fp=no ;;
1242
1243   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1244   | --no-cr | --no-c | -n)
1245     no_create=yes ;;
1246
1247   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1248   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1249     no_recursion=yes ;;
1250
1251   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1252   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1253   | --oldin | --oldi | --old | --ol | --o)
1254     ac_prev=oldincludedir ;;
1255   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1256   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1257   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1258     oldincludedir=$ac_optarg ;;
1259
1260   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1261     ac_prev=prefix ;;
1262   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1263     prefix=$ac_optarg ;;
1264
1265   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1266   | --program-pre | --program-pr | --program-p)
1267     ac_prev=program_prefix ;;
1268   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1269   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1270     program_prefix=$ac_optarg ;;
1271
1272   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1273   | --program-suf | --program-su | --program-s)
1274     ac_prev=program_suffix ;;
1275   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1276   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1277     program_suffix=$ac_optarg ;;
1278
1279   -program-transform-name | --program-transform-name \
1280   | --program-transform-nam | --program-transform-na \
1281   | --program-transform-n | --program-transform- \
1282   | --program-transform | --program-transfor \
1283   | --program-transfo | --program-transf \
1284   | --program-trans | --program-tran \
1285   | --progr-tra | --program-tr | --program-t)
1286     ac_prev=program_transform_name ;;
1287   -program-transform-name=* | --program-transform-name=* \
1288   | --program-transform-nam=* | --program-transform-na=* \
1289   | --program-transform-n=* | --program-transform-=* \
1290   | --program-transform=* | --program-transfor=* \
1291   | --program-transfo=* | --program-transf=* \
1292   | --program-trans=* | --program-tran=* \
1293   | --progr-tra=* | --program-tr=* | --program-t=*)
1294     program_transform_name=$ac_optarg ;;
1295
1296   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1297     ac_prev=pdfdir ;;
1298   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1299     pdfdir=$ac_optarg ;;
1300
1301   -psdir | --psdir | --psdi | --psd | --ps)
1302     ac_prev=psdir ;;
1303   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1304     psdir=$ac_optarg ;;
1305
1306   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1307   | -silent | --silent | --silen | --sile | --sil)
1308     silent=yes ;;
1309
1310   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1311     ac_prev=sbindir ;;
1312   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1313   | --sbi=* | --sb=*)
1314     sbindir=$ac_optarg ;;
1315
1316   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318   | --sharedst | --shareds | --shared | --share | --shar \
1319   | --sha | --sh)
1320     ac_prev=sharedstatedir ;;
1321   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1324   | --sha=* | --sh=*)
1325     sharedstatedir=$ac_optarg ;;
1326
1327   -site | --site | --sit)
1328     ac_prev=site ;;
1329   -site=* | --site=* | --sit=*)
1330     site=$ac_optarg ;;
1331
1332   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1333     ac_prev=srcdir ;;
1334   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335     srcdir=$ac_optarg ;;
1336
1337   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338   | --syscon | --sysco | --sysc | --sys | --sy)
1339     ac_prev=sysconfdir ;;
1340   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342     sysconfdir=$ac_optarg ;;
1343
1344   -target | --target | --targe | --targ | --tar | --ta | --t)
1345     ac_prev=target_alias ;;
1346   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347     target_alias=$ac_optarg ;;
1348
1349   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1350     verbose=yes ;;
1351
1352   -version | --version | --versio | --versi | --vers | -V)
1353     ac_init_version=: ;;
1354
1355   -with-* | --with-*)
1356     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357     # Reject names that are not valid shell variable names.
1358     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359       as_fn_error "invalid package name: $ac_useropt"
1360     ac_useropt_orig=$ac_useropt
1361     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362     case $ac_user_opts in
1363       *"
1364 "with_$ac_useropt"
1365 "*) ;;
1366       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1367          ac_unrecognized_sep=', ';;
1368     esac
1369     eval with_$ac_useropt=\$ac_optarg ;;
1370
1371   -without-* | --without-*)
1372     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1373     # Reject names that are not valid shell variable names.
1374     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375       as_fn_error "invalid package name: $ac_useropt"
1376     ac_useropt_orig=$ac_useropt
1377     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378     case $ac_user_opts in
1379       *"
1380 "with_$ac_useropt"
1381 "*) ;;
1382       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1383          ac_unrecognized_sep=', ';;
1384     esac
1385     eval with_$ac_useropt=no ;;
1386
1387   --x)
1388     # Obsolete; use --with-x.
1389     with_x=yes ;;
1390
1391   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392   | --x-incl | --x-inc | --x-in | --x-i)
1393     ac_prev=x_includes ;;
1394   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396     x_includes=$ac_optarg ;;
1397
1398   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400     ac_prev=x_libraries ;;
1401   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403     x_libraries=$ac_optarg ;;
1404
1405   -*) as_fn_error "unrecognized option: \`$ac_option'
1406 Try \`$0 --help' for more information."
1407     ;;
1408
1409   *=*)
1410     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411     # Reject names that are not valid shell variable names.
1412     case $ac_envvar in #(
1413       '' | [0-9]* | *[!_$as_cr_alnum]* )
1414       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1415     esac
1416     eval $ac_envvar=\$ac_optarg
1417     export $ac_envvar ;;
1418
1419   *)
1420     # FIXME: should be removed in autoconf 3.0.
1421     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1425     ;;
1426
1427   esac
1428 done
1429
1430 if test -n "$ac_prev"; then
1431   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432   as_fn_error "missing argument to $ac_option"
1433 fi
1434
1435 if test -n "$ac_unrecognized_opts"; then
1436   case $enable_option_checking in
1437     no) ;;
1438     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1439     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1440   esac
1441 fi
1442
1443 # Check all directory arguments for consistency.
1444 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1445                 datadir sysconfdir sharedstatedir localstatedir includedir \
1446                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1447                 libdir localedir mandir
1448 do
1449   eval ac_val=\$$ac_var
1450   # Remove trailing slashes.
1451   case $ac_val in
1452     */ )
1453       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1454       eval $ac_var=\$ac_val;;
1455   esac
1456   # Be sure to have absolute directory names.
1457   case $ac_val in
1458     [\\/$]* | ?:[\\/]* )  continue;;
1459     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1460   esac
1461   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1462 done
1463
1464 # There might be people who depend on the old broken behavior: `$host'
1465 # used to hold the argument of --host etc.
1466 # FIXME: To remove some day.
1467 build=$build_alias
1468 host=$host_alias
1469 target=$target_alias
1470
1471 # FIXME: To remove some day.
1472 if test "x$host_alias" != x; then
1473   if test "x$build_alias" = x; then
1474     cross_compiling=maybe
1475     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1476     If a cross compiler is detected then cross compile mode will be used." >&2
1477   elif test "x$build_alias" != "x$host_alias"; then
1478     cross_compiling=yes
1479   fi
1480 fi
1481
1482 ac_tool_prefix=
1483 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1484
1485 test "$silent" = yes && exec 6>/dev/null
1486
1487
1488 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di=`ls -di .` &&
1490 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491   as_fn_error "working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493   as_fn_error "pwd does not report name of working directory"
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498   ac_srcdir_defaulted=yes
1499   # Try the directory containing this script, then the parent directory.
1500   ac_confdir=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502          X"$as_myself" : 'X\(//\)[^/]' \| \
1503          X"$as_myself" : 'X\(//\)$' \| \
1504          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)[^/].*/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\).*/{
1519             s//\1/
1520             q
1521           }
1522           s/.*/./; q'`
1523   srcdir=$ac_confdir
1524   if test ! -r "$srcdir/$ac_unique_file"; then
1525     srcdir=..
1526   fi
1527 else
1528   ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1533 fi
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 ac_abs_confdir=`(
1536         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1537         pwd)`
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540   srcdir=.
1541 fi
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1545 case $srcdir in
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 esac
1548 for ac_var in $ac_precious_vars; do
1549   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550   eval ac_env_${ac_var}_value=\$${ac_var}
1551   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553 done
1554
1555 #
1556 # Report the --help message.
1557 #
1558 if test "$ac_init_help" = "long"; then
1559   # Omit some internal or obsolete options to make the list less imposing.
1560   # This message is too long to be a string in the A/UX 3.1 sh.
1561   cat <<_ACEOF
1562 \`configure' configures sudo 1.7.6p1 to adapt to many kinds of systems.
1563
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1565
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE.  See below for descriptions of some of the useful variables.
1568
1569 Defaults for the options are specified in brackets.
1570
1571 Configuration:
1572   -h, --help              display this help and exit
1573       --help=short        display options specific to this package
1574       --help=recursive    display the short help of all the included packages
1575   -V, --version           display version information and exit
1576   -q, --quiet, --silent   do not print \`checking...' messages
1577       --cache-file=FILE   cache test results in FILE [disabled]
1578   -C, --config-cache      alias for \`--cache-file=config.cache'
1579   -n, --no-create         do not create output files
1580       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1581
1582 Installation directories:
1583   --prefix=PREFIX         install architecture-independent files in PREFIX
1584                           [$ac_default_prefix]
1585   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1586                           [PREFIX]
1587
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1592
1593 For better control, use the options below.
1594
1595 Fine tuning of the installation directories:
1596   --bindir=DIR            user executables [EPREFIX/bin]
1597   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1598   --libexecdir=DIR        program executables [EPREFIX/libexec]
1599   --sysconfdir=DIR        read-only single-machine data [/etc]
1600   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1601   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1602   --libdir=DIR            object code libraries [EPREFIX/lib]
1603   --includedir=DIR        C header files [PREFIX/include]
1604   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1605   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1606   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1607   --infodir=DIR           info documentation [DATAROOTDIR/info]
1608   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1609   --mandir=DIR            man documentation [DATAROOTDIR/man]
1610   --docdir=DIR            documentation root [DATAROOTDIR/doc/sudo]
1611   --htmldir=DIR           html documentation [DOCDIR]
1612   --dvidir=DIR            dvi documentation [DOCDIR]
1613   --pdfdir=DIR            pdf documentation [DOCDIR]
1614   --psdir=DIR             ps documentation [DOCDIR]
1615 _ACEOF
1616
1617   cat <<\_ACEOF
1618
1619 System types:
1620   --build=BUILD     configure for building on BUILD [guessed]
1621   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1622 _ACEOF
1623 fi
1624
1625 if test -n "$ac_init_help"; then
1626   case $ac_init_help in
1627      short | recursive ) echo "Configuration of sudo 1.7.6p1:";;
1628    esac
1629   cat <<\_ACEOF
1630
1631 Optional Features:
1632   --disable-option-checking  ignore unrecognized --enable/--with options
1633   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1634   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1635   --disable-authentication
1636                           Do not require authentication by default
1637   --disable-root-mailer   Don't run the mailer as root, run as the user
1638   --disable-setreuid      Don't try to use the setreuid() function
1639   --disable-setresuid     Don't try to use the setresuid() function
1640   --disable-shadow        Never use shadow passwords
1641   --disable-root-sudo     Don't allow root to run sudo
1642   --enable-log-host       Log the hostname in the log file
1643   --enable-noargs-shell   If sudo is given no arguments run a shell
1644   --enable-shell-sets-home
1645                           Set $HOME to target user in shell mode
1646   --disable-path-info     Print 'command not allowed' not 'command not found'
1647   --enable-env-debug      Whether to enable environment debugging.
1648   --enable-env-reset      Whether to enable environment resetting by default.
1649   --enable-warnings       Whether to enable compiler warnings
1650   --enable-admin-flag     Whether to create a Ubuntu-style admin flag file
1651   --enable-gss-krb5-ccache-name
1652                           Use GSS-API to set the Kerberos V cred cache name
1653   --enable-shared[=PKGS]  build shared libraries [default=yes]
1654   --enable-static[=PKGS]  build static libraries [default=yes]
1655   --enable-fast-install[=PKGS]
1656                           optimize for fast installation [default=yes]
1657   --disable-libtool-lock  avoid locking (might break parallel builds)
1658   --disable-sia           Disable SIA on Digital UNIX
1659   --disable-largefile     omit support for large files
1660   --disable-pam-session   Disable PAM session support
1661   --enable-zlib[=PATH]    Whether to enable or disable zlib
1662
1663 Optional Packages:
1664   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1665   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1666   --with-otp-only         deprecated
1667   --with-alertmail        deprecated
1668   --with-devel            add development options
1669   --with-CC               C compiler to use
1670   --with-rpath            pass -R flag in addition to -L for lib paths
1671   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1672   --with-bsm-audit        enable BSM audit support
1673   --with-linux-audit      enable Linux audit support
1674   --with-incpath          additional places to look for include files
1675   --with-libpath          additional places to look for libraries
1676   --with-libraries        additional libraries to link with
1677   --with-efence           link with -lefence for malloc() debugging
1678   --with-csops            add CSOps standard options
1679   --without-passwd        don't use passwd/shadow file for authentication
1680   --with-skey=DIR         enable S/Key support
1681   --with-opie=DIR         enable OPIE support
1682   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1683   --with-SecurID[=DIR]    enable SecurID support
1684   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1685   --with-kerb4[=DIR]      enable Kerberos IV support
1686   --with-kerb5[=DIR]      enable Kerberos V support
1687   --with-aixauth          enable AIX general authentication support
1688   --with-pam              enable PAM support
1689   --with-AFS              enable AFS support
1690   --with-DCE              enable DCE support
1691   --with-logincap         enable BSD login class support
1692   --with-bsdauth          enable BSD authentication support
1693   --with-project          enable Solaris project support
1694   --without-lecture       don't print lecture for first-time sudoer
1695   --with-logging          log via syslog, file, or both
1696   --with-logfac           syslog facility to log with (default is "auth")
1697   --with-goodpri          syslog priority for commands (def is "notice")
1698   --with-badpri           syslog priority for failures (def is "alert")
1699   --with-logpath          path to the sudo log file
1700   --with-loglen           maximum length of a log file line (default is 80)
1701   --with-ignore-dot       ignore '.' in the PATH
1702   --without-mail-if-no-user
1703                           do not send mail if user not in sudoers
1704   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1705   --with-mail-if-noperms  send mail if user not allowed to run command
1706   --with-mailto           who should get sudo mail (default is "root")
1707   --with-mailsubject      subject of sudo mail
1708   --with-passprompt       default password prompt
1709   --with-badpass-message  message the user sees when the password is wrong
1710   --with-fqdn             expect fully qualified hosts in sudoers
1711   --with-timedir          path to the sudo timestamp dir
1712   --with-iologdir=DIR     directory to store sudo I/O log files in
1713   --with-sendmail         set path to sendmail
1714   --without-sendmail      do not send mail at all
1715   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1716   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1717   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1718   --with-umask            umask with which the prog should run (default is
1719                           022)
1720   --without-umask         Preserves the umask of the user invoking sudo.
1721   --with-umask-override   Use the umask specified in sudoers even if it is
1722                           less restrictive than the user's.
1723   --with-runas-default    User to run commands as (default is "root")
1724   --with-exempt=group     no passwd needed for users in this group
1725   --with-editor=path      Default editor for visudo (defaults to vi)
1726   --with-env-editor       Use the environment variable EDITOR for visudo
1727   --with-passwd-tries     number of tries to enter password (default is 3)
1728   --with-timeout          minutes before sudo asks for passwd again (def is 5
1729                           minutes)
1730   --with-password-timeout passwd prompt timeout in minutes (default is 5
1731                           minutes)
1732   --with-tty-tickets      use a different ticket file for each tty
1733   --with-insults          insult the user for entering an incorrect password
1734   --with-all-insults      include all the sudo insult sets
1735   --with-classic-insults  include the insults from the "classic" sudo
1736   --with-csops-insults    include CSOps insults
1737   --with-hal-insults      include 2001-like insults
1738   --with-goons-insults    include the insults from the "Goon Show"
1739   --with-nsswitch[=PATH]  path to nsswitch.conf
1740   --with-ldap[=DIR]       enable LDAP support
1741   --with-ldap-conf-file   path to LDAP configuration file
1742   --with-ldap-secret-file path to LDAP secret password file
1743   --with-pc-insults       replace politically incorrect insults with less
1744                           offensive ones
1745   --with-secure-path      override the user's path with a built-in one
1746   --without-interfaces    don't try to read the ip addr of ether interfaces
1747   --with-stow             properly handle GNU stow packaging
1748   --with-askpass=PATH     Fully qualified pathname of askpass helper
1749   --with-libvas=NAME      Name of the libvas shared library
1750                           (default=libvas.so)
1751   --with-libvas-rpath=PATH
1752                           Path to look for libvas in [default=/opt/quest/lib]
1753   --with-selinux          enable SELinux support
1754   --with-pic              try to use only PIC/non-PIC objects [default=use
1755                           both]
1756   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1757   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1758   --with-netsvc[=PATH]    path to netsvc.conf
1759   --with-pam-login        enable specific PAM session for sudo -i
1760
1761 Some influential environment variables:
1762   CC          C compiler command
1763   CFLAGS      C compiler flags
1764   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1765               nonstandard directory <lib dir>
1766   LIBS        libraries to pass to the linker, e.g. -l<library>
1767   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1768               you have headers in a nonstandard directory <include dir>
1769   CPP         C preprocessor
1770   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1771               the first program found out of: `bison -y', `byacc', `yacc'.
1772   YFLAGS      The list of arguments that will be passed by default to $YACC.
1773               This script will default YFLAGS to the empty string to avoid a
1774               default value of `-d' given by some make applications.
1775
1776 Use these variables to override the choices made by `configure' or to help
1777 it to find libraries and programs with nonstandard names/locations.
1778
1779 Report bugs to <http://www.sudo.ws/bugs/>.
1780 _ACEOF
1781 ac_status=$?
1782 fi
1783
1784 if test "$ac_init_help" = "recursive"; then
1785   # If there are subdirs, report their specific --help.
1786   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1787     test -d "$ac_dir" ||
1788       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1789       continue
1790     ac_builddir=.
1791
1792 case "$ac_dir" in
1793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794 *)
1795   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1796   # A ".." for each directory in $ac_dir_suffix.
1797   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1798   case $ac_top_builddir_sub in
1799   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1800   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1801   esac ;;
1802 esac
1803 ac_abs_top_builddir=$ac_pwd
1804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1805 # for backward compatibility:
1806 ac_top_builddir=$ac_top_build_prefix
1807
1808 case $srcdir in
1809   .)  # We are building in place.
1810     ac_srcdir=.
1811     ac_top_srcdir=$ac_top_builddir_sub
1812     ac_abs_top_srcdir=$ac_pwd ;;
1813   [\\/]* | ?:[\\/]* )  # Absolute name.
1814     ac_srcdir=$srcdir$ac_dir_suffix;
1815     ac_top_srcdir=$srcdir
1816     ac_abs_top_srcdir=$srcdir ;;
1817   *) # Relative name.
1818     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1819     ac_top_srcdir=$ac_top_build_prefix$srcdir
1820     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1821 esac
1822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1823
1824     cd "$ac_dir" || { ac_status=$?; continue; }
1825     # Check for guested configure.
1826     if test -f "$ac_srcdir/configure.gnu"; then
1827       echo &&
1828       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1829     elif test -f "$ac_srcdir/configure"; then
1830       echo &&
1831       $SHELL "$ac_srcdir/configure" --help=recursive
1832     else
1833       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1834     fi || ac_status=$?
1835     cd "$ac_pwd" || { ac_status=$?; break; }
1836   done
1837 fi
1838
1839 test -n "$ac_init_help" && exit $ac_status
1840 if $ac_init_version; then
1841   cat <<\_ACEOF
1842 sudo configure 1.7.6p1
1843 generated by GNU Autoconf 2.65
1844
1845 Copyright (C) 2009 Free Software Foundation, Inc.
1846 This configure script is free software; the Free Software Foundation
1847 gives unlimited permission to copy, distribute and modify it.
1848 _ACEOF
1849   exit
1850 fi
1851
1852 ## ------------------------ ##
1853 ## Autoconf initialization. ##
1854 ## ------------------------ ##
1855
1856 # ac_fn_c_try_compile LINENO
1857 # --------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_c_try_compile ()
1860 {
1861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862   rm -f conftest.$ac_objext
1863   if { { ac_try="$ac_compile"
1864 case "(($ac_try" in
1865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866   *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870   (eval "$ac_compile") 2>conftest.err
1871   ac_status=$?
1872   if test -s conftest.err; then
1873     grep -v '^ *+' conftest.err >conftest.er1
1874     cat conftest.er1 >&5
1875     mv -f conftest.er1 conftest.err
1876   fi
1877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878   test $ac_status = 0; } && {
1879          test -z "$ac_c_werror_flag" ||
1880          test ! -s conftest.err
1881        } && test -s conftest.$ac_objext; then :
1882   ac_retval=0
1883 else
1884   $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887         ac_retval=1
1888 fi
1889   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890   as_fn_set_status $ac_retval
1891
1892 } # ac_fn_c_try_compile
1893
1894 # ac_fn_c_try_link LINENO
1895 # -----------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_c_try_link ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   rm -f conftest.$ac_objext conftest$ac_exeext
1901   if { { ac_try="$ac_link"
1902 case "(($ac_try" in
1903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904   *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908   (eval "$ac_link") 2>conftest.err
1909   ac_status=$?
1910   if test -s conftest.err; then
1911     grep -v '^ *+' conftest.err >conftest.er1
1912     cat conftest.er1 >&5
1913     mv -f conftest.er1 conftest.err
1914   fi
1915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916   test $ac_status = 0; } && {
1917          test -z "$ac_c_werror_flag" ||
1918          test ! -s conftest.err
1919        } && test -s conftest$ac_exeext && {
1920          test "$cross_compiling" = yes ||
1921          $as_test_x conftest$ac_exeext
1922        }; then :
1923   ac_retval=0
1924 else
1925   $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928         ac_retval=1
1929 fi
1930   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932   # interfere with the next link command; also delete a directory that is
1933   # left behind by Apple's compiler.  We do this before executing the actions.
1934   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936   as_fn_set_status $ac_retval
1937
1938 } # ac_fn_c_try_link
1939
1940 # ac_fn_c_try_cpp LINENO
1941 # ----------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_c_try_cpp ()
1944 {
1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946   if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 case "(($ac_try" in
1948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949   *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954   ac_status=$?
1955   if test -s conftest.err; then
1956     grep -v '^ *+' conftest.err >conftest.er1
1957     cat conftest.er1 >&5
1958     mv -f conftest.er1 conftest.err
1959   fi
1960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961   test $ac_status = 0; } >/dev/null && {
1962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1963          test ! -s conftest.err
1964        }; then :
1965   ac_retval=0
1966 else
1967   $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970     ac_retval=1
1971 fi
1972   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973   as_fn_set_status $ac_retval
1974
1975 } # ac_fn_c_try_cpp
1976
1977 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists and can be compiled using the include files in
1980 # INCLUDES, setting the cache variable VAR accordingly.
1981 ac_fn_c_check_header_compile ()
1982 {
1983   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987   $as_echo_n "(cached) " >&6
1988 else
1989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h.  */
1991 $4
1992 #include <$2>
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995   eval "$3=yes"
1996 else
1997   eval "$3=no"
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 fi
2001 eval ac_res=\$$3
2002                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005
2006 } # ac_fn_c_check_header_compile
2007
2008 # ac_fn_c_try_run LINENO
2009 # ----------------------
2010 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2011 # that executables *can* be run.
2012 ac_fn_c_try_run ()
2013 {
2014   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015   if { { ac_try="$ac_link"
2016 case "(($ac_try" in
2017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018   *) ac_try_echo=$ac_try;;
2019 esac
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022   (eval "$ac_link") 2>&5
2023   ac_status=$?
2024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2026   { { case "(($ac_try" in
2027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028   *) ac_try_echo=$ac_try;;
2029 esac
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032   (eval "$ac_try") 2>&5
2033   ac_status=$?
2034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035   test $ac_status = 0; }; }; then :
2036   ac_retval=0
2037 else
2038   $as_echo "$as_me: program exited with status $ac_status" >&5
2039        $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042        ac_retval=$ac_status
2043 fi
2044   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046   as_fn_set_status $ac_retval
2047
2048 } # ac_fn_c_try_run
2049
2050 # ac_fn_c_check_func LINENO FUNC VAR
2051 # ----------------------------------
2052 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2053 ac_fn_c_check_func ()
2054 {
2055   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2059   $as_echo_n "(cached) " >&6
2060 else
2061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2065 #define $2 innocuous_$2
2066
2067 /* System header to define __stub macros and hopefully few prototypes,
2068     which can conflict with char $2 (); below.
2069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2070     <limits.h> exists even on freestanding compilers.  */
2071
2072 #ifdef __STDC__
2073 # include <limits.h>
2074 #else
2075 # include <assert.h>
2076 #endif
2077
2078 #undef $2
2079
2080 /* Override any GCC internal prototype to avoid an error.
2081    Use char because int might match the return type of a GCC
2082    builtin and then its argument prototype would still apply.  */
2083 #ifdef __cplusplus
2084 extern "C"
2085 #endif
2086 char $2 ();
2087 /* The GNU C library defines this for functions which it implements
2088     to always fail with ENOSYS.  Some functions are actually named
2089     something starting with __ and the normal name is an alias.  */
2090 #if defined __stub_$2 || defined __stub___$2
2091 choke me
2092 #endif
2093
2094 int
2095 main ()
2096 {
2097 return $2 ();
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_link "$LINENO"; then :
2103   eval "$3=yes"
2104 else
2105   eval "$3=no"
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext \
2108     conftest$ac_exeext conftest.$ac_ext
2109 fi
2110 eval ac_res=\$$3
2111                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114
2115 } # ac_fn_c_check_func
2116
2117 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2118 # -------------------------------------------------------
2119 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2120 # the include files in INCLUDES and setting the cache variable VAR
2121 # accordingly.
2122 ac_fn_c_check_header_mongrel ()
2123 {
2124   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127 $as_echo_n "checking for $2... " >&6; }
2128 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2129   $as_echo_n "(cached) " >&6
2130 fi
2131 eval ac_res=\$$3
2132                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 else
2135   # Is the header compilable?
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2137 $as_echo_n "checking $2 usability... " >&6; }
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h.  */
2140 $4
2141 #include <$2>
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144   ac_header_compiler=yes
2145 else
2146   ac_header_compiler=no
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2150 $as_echo "$ac_header_compiler" >&6; }
2151
2152 # Is the header present?
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2154 $as_echo_n "checking $2 presence... " >&6; }
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h.  */
2157 #include <$2>
2158 _ACEOF
2159 if ac_fn_c_try_cpp "$LINENO"; then :
2160   ac_header_preproc=yes
2161 else
2162   ac_header_preproc=no
2163 fi
2164 rm -f conftest.err conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2166 $as_echo "$ac_header_preproc" >&6; }
2167
2168 # So?  What about this header?
2169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2170   yes:no: )
2171     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2172 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2173     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2174 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2175     ;;
2176   no:yes:* )
2177     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2178 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2180 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2181     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2182 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2183     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2184 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2185     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2187 ( cat <<\_ASBOX
2188 ## --------------------------------------- ##
2189 ## Report this to http://www.sudo.ws/bugs/ ##
2190 ## --------------------------------------- ##
2191 _ASBOX
2192      ) | sed "s/^/$as_me: WARNING:     /" >&2
2193     ;;
2194 esac
2195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2198   $as_echo_n "(cached) " >&6
2199 else
2200   eval "$3=\$ac_header_compiler"
2201 fi
2202 eval ac_res=\$$3
2203                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 fi
2206   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207
2208 } # ac_fn_c_check_header_mongrel
2209
2210 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2211 # -------------------------------------------
2212 # Tests whether TYPE exists after having included INCLUDES, setting cache
2213 # variable VAR accordingly.
2214 ac_fn_c_check_type ()
2215 {
2216   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2220   $as_echo_n "(cached) " >&6
2221 else
2222   eval "$3=no"
2223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h.  */
2225 $4
2226 int
2227 main ()
2228 {
2229 if (sizeof ($2))
2230          return 0;
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h.  */
2238 $4
2239 int
2240 main ()
2241 {
2242 if (sizeof (($2)))
2243             return 0;
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249
2250 else
2251   eval "$3=yes"
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 fi
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 fi
2257 eval ac_res=\$$3
2258                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261
2262 } # ac_fn_c_check_type
2263
2264 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2265 # --------------------------------------------
2266 # Tries to find the compile-time value of EXPR in a program that includes
2267 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2268 # computed
2269 ac_fn_c_compute_int ()
2270 {
2271   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272   if test "$cross_compiling" = yes; then
2273     # Depending upon the size, compute the lo and hi bounds.
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h.  */
2276 $4
2277 int
2278 main ()
2279 {
2280 static int test_array [1 - 2 * !(($2) >= 0)];
2281 test_array [0] = 0
2282
2283   ;
2284   return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288   ac_lo=0 ac_mid=0
2289   while :; do
2290     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h.  */
2292 $4
2293 int
2294 main ()
2295 {
2296 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2297 test_array [0] = 0
2298
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304   ac_hi=$ac_mid; break
2305 else
2306   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2307                         if test $ac_lo -le $ac_mid; then
2308                           ac_lo= ac_hi=
2309                           break
2310                         fi
2311                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2312 fi
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314   done
2315 else
2316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h.  */
2318 $4
2319 int
2320 main ()
2321 {
2322 static int test_array [1 - 2 * !(($2) < 0)];
2323 test_array [0] = 0
2324
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330   ac_hi=-1 ac_mid=-1
2331   while :; do
2332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h.  */
2334 $4
2335 int
2336 main ()
2337 {
2338 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2339 test_array [0] = 0
2340
2341   ;
2342   return 0;
2343 }
2344 _ACEOF
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346   ac_lo=$ac_mid; break
2347 else
2348   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2349                         if test $ac_mid -le $ac_hi; then
2350                           ac_lo= ac_hi=
2351                           break
2352                         fi
2353                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356   done
2357 else
2358   ac_lo= ac_hi=
2359 fi
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 fi
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 # Binary search between lo and hi bounds.
2364 while test "x$ac_lo" != "x$ac_hi"; do
2365   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h.  */
2368 $4
2369 int
2370 main ()
2371 {
2372 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2373 test_array [0] = 0
2374
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 if ac_fn_c_try_compile "$LINENO"; then :
2380   ac_hi=$ac_mid
2381 else
2382   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2383 fi
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 done
2386 case $ac_lo in #((
2387 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2388 '') ac_retval=1 ;;
2389 esac
2390   else
2391     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h.  */
2393 $4
2394 static long int longval () { return $2; }
2395 static unsigned long int ulongval () { return $2; }
2396 #include <stdio.h>
2397 #include <stdlib.h>
2398 int
2399 main ()
2400 {
2401
2402   FILE *f = fopen ("conftest.val", "w");
2403   if (! f)
2404     return 1;
2405   if (($2) < 0)
2406     {
2407       long int i = longval ();
2408       if (i != ($2))
2409         return 1;
2410       fprintf (f, "%ld", i);
2411     }
2412   else
2413     {
2414       unsigned long int i = ulongval ();
2415       if (i != ($2))
2416         return 1;
2417       fprintf (f, "%lu", i);
2418     }
2419   /* Do not output a trailing newline, as this causes \r\n confusion
2420      on some platforms.  */
2421   return ferror (f) || fclose (f) != 0;
2422
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 if ac_fn_c_try_run "$LINENO"; then :
2428   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2429 else
2430   ac_retval=1
2431 fi
2432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2433   conftest.$ac_objext conftest.beam conftest.$ac_ext
2434 rm -f conftest.val
2435
2436   fi
2437   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438   as_fn_set_status $ac_retval
2439
2440 } # ac_fn_c_compute_int
2441
2442 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2443 # ----------------------------------------------------
2444 # Tries to find if the field MEMBER exists in type AGGR, after including
2445 # INCLUDES, setting cache variable VAR accordingly.
2446 ac_fn_c_check_member ()
2447 {
2448   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2450 $as_echo_n "checking for $2.$3... " >&6; }
2451 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2452   $as_echo_n "(cached) " >&6
2453 else
2454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h.  */
2456 $5
2457 int
2458 main ()
2459 {
2460 static $2 ac_aggr;
2461 if (ac_aggr.$3)
2462 return 0;
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 if ac_fn_c_try_compile "$LINENO"; then :
2468   eval "$4=yes"
2469 else
2470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471 /* end confdefs.h.  */
2472 $5
2473 int
2474 main ()
2475 {
2476 static $2 ac_aggr;
2477 if (sizeof ac_aggr.$3)
2478 return 0;
2479   ;
2480   return 0;
2481 }
2482 _ACEOF
2483 if ac_fn_c_try_compile "$LINENO"; then :
2484   eval "$4=yes"
2485 else
2486   eval "$4=no"
2487 fi
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 fi
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 fi
2492 eval ac_res=\$$4
2493                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2494 $as_echo "$ac_res" >&6; }
2495   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496
2497 } # ac_fn_c_check_member
2498
2499 # ac_fn_c_check_decl LINENO SYMBOL VAR
2500 # ------------------------------------
2501 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2502 ac_fn_c_check_decl ()
2503 {
2504   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2506 $as_echo_n "checking whether $2 is declared... " >&6; }
2507 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508   $as_echo_n "(cached) " >&6
2509 else
2510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h.  */
2512 $4
2513 int
2514 main ()
2515 {
2516 #ifndef $2
2517   (void) $2;
2518 #endif
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525   eval "$3=yes"
2526 else
2527   eval "$3=no"
2528 fi
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2530 fi
2531 eval ac_res=\$$3
2532                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533 $as_echo "$ac_res" >&6; }
2534   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535
2536 } # ac_fn_c_check_decl
2537 cat >config.log <<_ACEOF
2538 This file contains any messages produced by compilers while
2539 running configure, to aid debugging if configure makes a mistake.
2540
2541 It was created by sudo $as_me 1.7.6p1, which was
2542 generated by GNU Autoconf 2.65.  Invocation command line was
2543
2544   $ $0 $@
2545
2546 _ACEOF
2547 exec 5>>config.log
2548 {
2549 cat <<_ASUNAME
2550 ## --------- ##
2551 ## Platform. ##
2552 ## --------- ##
2553
2554 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2555 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2556 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2557 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2558 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2559
2560 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2561 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2562
2563 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2564 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2565 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2566 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2567 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2568 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2569 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2570
2571 _ASUNAME
2572
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   test -z "$as_dir" && as_dir=.
2578     $as_echo "PATH: $as_dir"
2579   done
2580 IFS=$as_save_IFS
2581
2582 } >&5
2583
2584 cat >&5 <<_ACEOF
2585
2586
2587 ## ----------- ##
2588 ## Core tests. ##
2589 ## ----------- ##
2590
2591 _ACEOF
2592
2593
2594 # Keep a trace of the command line.
2595 # Strip out --no-create and --no-recursion so they do not pile up.
2596 # Strip out --silent because we don't want to record it for future runs.
2597 # Also quote any args containing shell meta-characters.
2598 # Make two passes to allow for proper duplicate-argument suppression.
2599 ac_configure_args=
2600 ac_configure_args0=
2601 ac_configure_args1=
2602 ac_must_keep_next=false
2603 for ac_pass in 1 2
2604 do
2605   for ac_arg
2606   do
2607     case $ac_arg in
2608     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2609     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2610     | -silent | --silent | --silen | --sile | --sil)
2611       continue ;;
2612     *\'*)
2613       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2614     esac
2615     case $ac_pass in
2616     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2617     2)
2618       as_fn_append ac_configure_args1 " '$ac_arg'"
2619       if test $ac_must_keep_next = true; then
2620         ac_must_keep_next=false # Got value, back to normal.
2621       else
2622         case $ac_arg in
2623           *=* | --config-cache | -C | -disable-* | --disable-* \
2624           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2625           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2626           | -with-* | --with-* | -without-* | --without-* | --x)
2627             case "$ac_configure_args0 " in
2628               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2629             esac
2630             ;;
2631           -* ) ac_must_keep_next=true ;;
2632         esac
2633       fi
2634       as_fn_append ac_configure_args " '$ac_arg'"
2635       ;;
2636     esac
2637   done
2638 done
2639 { ac_configure_args0=; unset ac_configure_args0;}
2640 { ac_configure_args1=; unset ac_configure_args1;}
2641
2642 # When interrupted or exit'd, cleanup temporary files, and complete
2643 # config.log.  We remove comments because anyway the quotes in there
2644 # would cause problems or look ugly.
2645 # WARNING: Use '\'' to represent an apostrophe within the trap.
2646 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2647 trap 'exit_status=$?
2648   # Save into config.log some information that might help in debugging.
2649   {
2650     echo
2651
2652     cat <<\_ASBOX
2653 ## ---------------- ##
2654 ## Cache variables. ##
2655 ## ---------------- ##
2656 _ASBOX
2657     echo
2658     # The following way of writing the cache mishandles newlines in values,
2659 (
2660   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2661     eval ac_val=\$$ac_var
2662     case $ac_val in #(
2663     *${as_nl}*)
2664       case $ac_var in #(
2665       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2666 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2667       esac
2668       case $ac_var in #(
2669       _ | IFS | as_nl) ;; #(
2670       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2671       *) { eval $ac_var=; unset $ac_var;} ;;
2672       esac ;;
2673     esac
2674   done
2675   (set) 2>&1 |
2676     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2677     *${as_nl}ac_space=\ *)
2678       sed -n \
2679         "s/'\''/'\''\\\\'\'''\''/g;
2680           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2681       ;; #(
2682     *)
2683       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2684       ;;
2685     esac |
2686     sort
2687 )
2688     echo
2689
2690     cat <<\_ASBOX
2691 ## ----------------- ##
2692 ## Output variables. ##
2693 ## ----------------- ##
2694 _ASBOX
2695     echo
2696     for ac_var in $ac_subst_vars
2697     do
2698       eval ac_val=\$$ac_var
2699       case $ac_val in
2700       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2701       esac
2702       $as_echo "$ac_var='\''$ac_val'\''"
2703     done | sort
2704     echo
2705
2706     if test -n "$ac_subst_files"; then
2707       cat <<\_ASBOX
2708 ## ------------------- ##
2709 ## File substitutions. ##
2710 ## ------------------- ##
2711 _ASBOX
2712       echo
2713       for ac_var in $ac_subst_files
2714       do
2715         eval ac_val=\$$ac_var
2716         case $ac_val in
2717         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2718         esac
2719         $as_echo "$ac_var='\''$ac_val'\''"
2720       done | sort
2721       echo
2722     fi
2723
2724     if test -s confdefs.h; then
2725       cat <<\_ASBOX
2726 ## ----------- ##
2727 ## confdefs.h. ##
2728 ## ----------- ##
2729 _ASBOX
2730       echo
2731       cat confdefs.h
2732       echo
2733     fi
2734     test "$ac_signal" != 0 &&
2735       $as_echo "$as_me: caught signal $ac_signal"
2736     $as_echo "$as_me: exit $exit_status"
2737   } >&5
2738   rm -f core *.core core.conftest.* &&
2739     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2740     exit $exit_status
2741 ' 0
2742 for ac_signal in 1 2 13 15; do
2743   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2744 done
2745 ac_signal=0
2746
2747 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2748 rm -f -r conftest* confdefs.h
2749
2750 $as_echo "/* confdefs.h */" > confdefs.h
2751
2752 # Predefined preprocessor variables.
2753
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE_NAME "$PACKAGE_NAME"
2756 _ACEOF
2757
2758 cat >>confdefs.h <<_ACEOF
2759 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2760 _ACEOF
2761
2762 cat >>confdefs.h <<_ACEOF
2763 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2764 _ACEOF
2765
2766 cat >>confdefs.h <<_ACEOF
2767 #define PACKAGE_STRING "$PACKAGE_STRING"
2768 _ACEOF
2769
2770 cat >>confdefs.h <<_ACEOF
2771 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2772 _ACEOF
2773
2774 cat >>confdefs.h <<_ACEOF
2775 #define PACKAGE_URL "$PACKAGE_URL"
2776 _ACEOF
2777
2778
2779 # Let the site file select an alternate cache file if it wants to.
2780 # Prefer an explicitly selected file to automatically selected ones.
2781 ac_site_file1=NONE
2782 ac_site_file2=NONE
2783 if test -n "$CONFIG_SITE"; then
2784   ac_site_file1=$CONFIG_SITE
2785 elif test "x$prefix" != xNONE; then
2786   ac_site_file1=$prefix/share/config.site
2787   ac_site_file2=$prefix/etc/config.site
2788 else
2789   ac_site_file1=$ac_default_prefix/share/config.site
2790   ac_site_file2=$ac_default_prefix/etc/config.site
2791 fi
2792 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2793 do
2794   test "x$ac_site_file" = xNONE && continue
2795   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2796     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2797 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2798     sed 's/^/| /' "$ac_site_file" >&5
2799     . "$ac_site_file"
2800   fi
2801 done
2802
2803 if test -r "$cache_file"; then
2804   # Some versions of bash will fail to source /dev/null (special files
2805   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2806   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2807     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2808 $as_echo "$as_me: loading cache $cache_file" >&6;}
2809     case $cache_file in
2810       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2811       *)                      . "./$cache_file";;
2812     esac
2813   fi
2814 else
2815   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2816 $as_echo "$as_me: creating cache $cache_file" >&6;}
2817   >$cache_file
2818 fi
2819
2820 # Check that the precious variables saved in the cache have kept the same
2821 # value.
2822 ac_cache_corrupted=false
2823 for ac_var in $ac_precious_vars; do
2824   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2825   eval ac_new_set=\$ac_env_${ac_var}_set
2826   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2827   eval ac_new_val=\$ac_env_${ac_var}_value
2828   case $ac_old_set,$ac_new_set in
2829     set,)
2830       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2831 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2832       ac_cache_corrupted=: ;;
2833     ,set)
2834       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2835 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2836       ac_cache_corrupted=: ;;
2837     ,);;
2838     *)
2839       if test "x$ac_old_val" != "x$ac_new_val"; then
2840         # differences in whitespace do not lead to failure.
2841         ac_old_val_w=`echo x $ac_old_val`
2842         ac_new_val_w=`echo x $ac_new_val`
2843         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2844           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2845 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2846           ac_cache_corrupted=:
2847         else
2848           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2849 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2850           eval $ac_var=\$ac_old_val
2851         fi
2852         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2853 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2854         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2855 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2856       fi;;
2857   esac
2858   # Pass precious variables to config.status.
2859   if test "$ac_new_set" = set; then
2860     case $ac_new_val in
2861     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2862     *) ac_arg=$ac_var=$ac_new_val ;;
2863     esac
2864     case " $ac_configure_args " in
2865       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2866       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2867     esac
2868   fi
2869 done
2870 if $ac_cache_corrupted; then
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2874 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2875   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2876 fi
2877 ## -------------------- ##
2878 ## Main body of script. ##
2879 ## -------------------- ##
2880
2881 ac_ext=c
2882 ac_cpp='$CPP $CPPFLAGS'
2883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886
2887
2888 ac_config_headers="$ac_config_headers config.h pathnames.h zlib/zconf.h"
2889
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2891 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
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
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968 #
2969 # Begin initial values for man page substitution
2970 #
2971 iolog_dir=/var/log/sudo-io
2972 timedir=/var/adm/sudo
2973 timeout=5
2974 password_timeout=5
2975 sudo_umask=0022
2976 umask_override=off
2977 passprompt="Password:"
2978 long_otp_prompt=off
2979 lecture=once
2980 logfac=auth
2981 goodpri=notice
2982 badpri=alert
2983 loglen=80
2984 ignore_dot=off
2985 mail_no_user=on
2986 mail_no_host=off
2987 mail_no_perms=off
2988 mailto=root
2989 mailsub="*** SECURITY information for %h ***"
2990 badpass_message="Sorry, try again."
2991 fqdn=off
2992 runas_default=root
2993 env_editor=off
2994 env_reset=on
2995 editor=vi
2996 passwd_tries=3
2997 tty_tickets=on
2998 insults=off
2999 root_sudo=on
3000 path_info=on
3001 ldap_conf=/etc/ldap.conf
3002 ldap_secret=/etc/ldap.secret
3003 netsvc_conf=/etc/netsvc.conf
3004 noexec_file=/usr/local/libexec/sudo_noexec.so
3005 nsswitch_conf=/etc/nsswitch.conf
3006 secure_path="not set"
3007 #
3008 # End initial values for man page substitution
3009 #
3010 INSTALL_NOEXEC=
3011 devdir='$(srcdir)'
3012 PROGS="sudo visudo"
3013 : ${MANTYPE='man'}
3014 : ${mansrcdir='.'}
3015 : ${SUDOERS_MODE='0440'}
3016 : ${SUDOERS_UID='0'}
3017 : ${SUDOERS_GID='0'}
3018 DEV="#"
3019 LDAP="#"
3020 REPLAY="#"
3021 BAMAN=0
3022 LCMAN=0
3023 SEMAN=0
3024 ZLIB=
3025 ZLIB_DEP=
3026 AUTH_OBJS=
3027 AUTH_REG=
3028 AUTH_EXCL=
3029 AUTH_EXCL_DEF=
3030 AUTH_DEF=passwd
3031
3032 CHECKSHADOW=true
3033 shadow_defs=
3034 shadow_funcs=
3035 shadow_libs=
3036 shadow_libs_optional=
3037
3038 CONFIGURE_ARGS="$@"
3039
3040
3041
3042 # Check whether --with-otp-only was given.
3043 if test "${with_otp_only+set}" = set; then :
3044   withval=$with_otp_only; case $with_otp_only in
3045     yes)        with_passwd="no"
3046                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
3047 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
3048                 ;;
3049 esac
3050 fi
3051
3052
3053
3054 # Check whether --with-alertmail was given.
3055 if test "${with_alertmail+set}" = set; then :
3056   withval=$with_alertmail; case $with_alertmail in
3057     *)          with_mailto="$with_alertmail"
3058                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
3059 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
3060                 ;;
3061 esac
3062 fi
3063
3064
3065
3066
3067 # Check whether --with-devel was given.
3068 if test "${with_devel+set}" = set; then :
3069   withval=$with_devel; case $with_devel in
3070     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
3071 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
3072                 PROGS="${PROGS} testsudoers"
3073                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
3074                 DEV=""
3075                 devdir=.
3076                 ;;
3077     no)         ;;
3078     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
3079 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
3080                 ;;
3081 esac
3082 fi
3083
3084
3085
3086 # Check whether --with-CC was given.
3087 if test "${with_CC+set}" = set; then :
3088   withval=$with_CC; case $with_CC in
3089     yes)        as_fn_error "\"must give --with-CC an argument.\"" "$LINENO" 5
3090                 ;;
3091     no)         as_fn_error "\"illegal argument: --without-CC.\"" "$LINENO" 5
3092                 ;;
3093     *)          CC=$with_CC
3094                 ;;
3095 esac
3096 fi
3097
3098
3099
3100 # Check whether --with-rpath was given.
3101 if test "${with_rpath+set}" = set; then :
3102   withval=$with_rpath; case $with_rpath in
3103     yes|no)     ;;
3104     *)          as_fn_error "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3105                 ;;
3106 esac
3107 fi
3108
3109
3110
3111 # Check whether --with-blibpath was given.
3112 if test "${with_blibpath+set}" = set; then :
3113   withval=$with_blibpath; case $with_blibpath in
3114     yes|no)     ;;
3115     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3116 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3117                 ;;
3118 esac
3119 fi
3120
3121
3122
3123 # Check whether --with-bsm-audit was given.
3124 if test "${with_bsm_audit+set}" = set; then :
3125   withval=$with_bsm_audit; case $with_bsm_audit in
3126     yes)        $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3127
3128                 SUDO_LIBS="${SUDO_LIBS} -lbsm"
3129                 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
3130                 ;;
3131     no)         ;;
3132     *)          as_fn_error "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3133                 ;;
3134 esac
3135 fi
3136
3137
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 if test -n "$ac_tool_prefix"; then
3144   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CC+set}" = set; then :
3149   $as_echo_n "(cached) " >&6
3150 else
3151   if test -n "$CC"; then
3152   ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157   IFS=$as_save_IFS
3158   test -z "$as_dir" && as_dir=.
3159     for ac_exec_ext in '' $ac_executable_extensions; do
3160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163     break 2
3164   fi
3165 done
3166   done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3175 else
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181 fi
3182 if test -z "$ac_cv_prog_CC"; then
3183   ac_ct_CC=$CC
3184   # Extract the first word of "gcc", so it can be a program name with args.
3185 set dummy gcc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   if test -n "$ac_ct_CC"; then
3192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199     for ac_exec_ext in '' $ac_executable_extensions; do
3200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201     ac_cv_prog_ac_ct_CC="gcc"
3202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203     break 2
3204   fi
3205 done
3206   done
3207 IFS=$as_save_IFS
3208
3209 fi
3210 fi
3211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3212 if test -n "$ac_ct_CC"; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3214 $as_echo "$ac_ct_CC" >&6; }
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220   if test "x$ac_ct_CC" = x; then
3221     CC=""
3222   else
3223     case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229     CC=$ac_ct_CC
3230   fi
3231 else
3232   CC="$ac_cv_prog_CC"
3233 fi
3234
3235 if test -z "$CC"; then
3236           if test -n "$ac_tool_prefix"; then
3237     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3238 set dummy ${ac_tool_prefix}cc; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_CC+set}" = set; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   if test -n "$CC"; then
3245   ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254     ac_cv_prog_CC="${ac_tool_prefix}cc"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274   fi
3275 fi
3276 if test -z "$CC"; then
3277   # Extract the first word of "cc", so it can be a program name with args.
3278 set dummy cc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_CC+set}" = set; then :
3282   $as_echo_n "(cached) " >&6
3283 else
3284   if test -n "$CC"; then
3285   ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287   ac_prog_rejected=no
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293     for ac_exec_ext in '' $ac_executable_extensions; do
3294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3296        ac_prog_rejected=yes
3297        continue
3298      fi
3299     ac_cv_prog_CC="cc"
3300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304   done
3305 IFS=$as_save_IFS
3306
3307 if test $ac_prog_rejected = yes; then
3308   # We found a bogon in the path, so make sure we never use it.
3309   set dummy $ac_cv_prog_CC
3310   shift
3311   if test $# != 0; then
3312     # We chose a different compiler from the bogus one.
3313     # However, it has the same basename, so the bogon will be chosen
3314     # first if we set CC to just the basename; use the full file name.
3315     shift
3316     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3317   fi
3318 fi
3319 fi
3320 fi
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3325 else
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330
3331 fi
3332 if test -z "$CC"; then
3333   if test -n "$ac_tool_prefix"; then
3334   for ac_prog in cl.exe
3335   do
3336     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if test "${ac_cv_prog_CC+set}" = set; then :
3341   $as_echo_n "(cached) " >&6
3342 else
3343   if test -n "$CC"; then
3344   ac_cv_prog_CC="$CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351     for ac_exec_ext in '' $ac_executable_extensions; do
3352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358   done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3367 else
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373     test -n "$CC" && break
3374   done
3375 fi
3376 if test -z "$CC"; then
3377   ac_ct_CC=$CC
3378   for ac_prog in cl.exe
3379 do
3380   # Extract the first word of "$ac_prog", so it can be a program name with args.
3381 set dummy $ac_prog; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3385   $as_echo_n "(cached) " >&6
3386 else
3387   if test -n "$ac_ct_CC"; then
3388   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395     for ac_exec_ext in '' $ac_executable_extensions; do
3396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397     ac_cv_prog_ac_ct_CC="$ac_prog"
3398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402   done
3403 IFS=$as_save_IFS
3404
3405 fi
3406 fi
3407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3408 if test -n "$ac_ct_CC"; then
3409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3410 $as_echo "$ac_ct_CC" >&6; }
3411 else
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416
3417   test -n "$ac_ct_CC" && break
3418 done
3419
3420   if test "x$ac_ct_CC" = x; then
3421     CC=""
3422   else
3423     case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429     CC=$ac_ct_CC
3430   fi
3431 fi
3432
3433 fi
3434
3435
3436 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error "no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details." "$LINENO" 5; }
3440
3441 # Provide some information about the compiler.
3442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3443 set X $ac_compile
3444 ac_compiler=$2
3445 for ac_option in --version -v -V -qversion; do
3446   { { ac_try="$ac_compiler $ac_option >&5"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3454   ac_status=$?
3455   if test -s conftest.err; then
3456     sed '10a\
3457 ... rest of stderr output deleted ...
3458          10q' conftest.err >conftest.er1
3459     cat conftest.er1 >&5
3460   fi
3461   rm -f conftest.er1 conftest.err
3462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463   test $ac_status = 0; }
3464 done
3465
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 ac_clean_files_save=$ac_clean_files
3478 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3479 # Try to create an executable without -o first, disregard a.out.
3480 # It will help us diagnose broken compilers, and finding out an intuition
3481 # of exeext.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3483 $as_echo_n "checking whether the C compiler works... " >&6; }
3484 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3485
3486 # The possible output files:
3487 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3488
3489 ac_rmfiles=
3490 for ac_file in $ac_files
3491 do
3492   case $ac_file in
3493     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3495   esac
3496 done
3497 rm -f $ac_rmfiles
3498
3499 if { { ac_try="$ac_link_default"
3500 case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506   (eval "$ac_link_default") 2>&5
3507   ac_status=$?
3508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509   test $ac_status = 0; }; then :
3510   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3511 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3512 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3513 # so that the user can short-circuit this test for compilers unknown to
3514 # Autoconf.
3515 for ac_file in $ac_files ''
3516 do
3517   test -f "$ac_file" || continue
3518   case $ac_file in
3519     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3520         ;;
3521     [ab].out )
3522         # We found the default executable, but exeext='' is most
3523         # certainly right.
3524         break;;
3525     *.* )
3526         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3527         then :; else
3528            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3529         fi
3530         # We set ac_cv_exeext here because the later test for it is not
3531         # safe: cross compilers may not add the suffix if given an `-o'
3532         # argument, so we may need to know it at that point already.
3533         # Even if this section looks crufty: it has the advantage of
3534         # actually working.
3535         break;;
3536     * )
3537         break;;
3538   esac
3539 done
3540 test "$ac_cv_exeext" = no && ac_cv_exeext=
3541
3542 else
3543   ac_file=''
3544 fi
3545 if test -z "$ac_file"; then :
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3548 $as_echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 { as_fn_set_status 77
3554 as_fn_error "C compiler cannot create executables
3555 See \`config.log' for more details." "$LINENO" 5; }; }
3556 else
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3558 $as_echo "yes" >&6; }
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3561 $as_echo_n "checking for C compiler default output file name... " >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3563 $as_echo "$ac_file" >&6; }
3564 ac_exeext=$ac_cv_exeext
3565
3566 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3567 ac_clean_files=$ac_clean_files_save
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3569 $as_echo_n "checking for suffix of executables... " >&6; }
3570 if { { ac_try="$ac_link"
3571 case "(($ac_try" in
3572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573   *) ac_try_echo=$ac_try;;
3574 esac
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577   (eval "$ac_link") 2>&5
3578   ac_status=$?
3579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580   test $ac_status = 0; }; then :
3581   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3582 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3583 # work properly (i.e., refer to `conftest.exe'), while it won't with
3584 # `rm'.
3585 for ac_file in conftest.exe conftest conftest.*; do
3586   test -f "$ac_file" || continue
3587   case $ac_file in
3588     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3589     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3590           break;;
3591     * ) break;;
3592   esac
3593 done
3594 else
3595   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error "cannot compute suffix of executables: cannot compile and link
3598 See \`config.log' for more details." "$LINENO" 5; }
3599 fi
3600 rm -f conftest conftest$ac_cv_exeext
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3602 $as_echo "$ac_cv_exeext" >&6; }
3603
3604 rm -f conftest.$ac_ext
3605 EXEEXT=$ac_cv_exeext
3606 ac_exeext=$EXEEXT
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h.  */
3609 #include <stdio.h>
3610 int
3611 main ()
3612 {
3613 FILE *f = fopen ("conftest.out", "w");
3614  return ferror (f) || fclose (f) != 0;
3615
3616   ;
3617   return 0;
3618 }
3619 _ACEOF
3620 ac_clean_files="$ac_clean_files conftest.out"
3621 # Check that the compiler produces executables we can run.  If not, either
3622 # the compiler is broken, or we cross compile.
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3624 $as_echo_n "checking whether we are cross compiling... " >&6; }
3625 if test "$cross_compiling" != yes; then
3626   { { ac_try="$ac_link"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633   (eval "$ac_link") 2>&5
3634   ac_status=$?
3635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636   test $ac_status = 0; }
3637   if { ac_try='./conftest$ac_cv_exeext'
3638   { { case "(($ac_try" in
3639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640   *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644   (eval "$ac_try") 2>&5
3645   ac_status=$?
3646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647   test $ac_status = 0; }; }; then
3648     cross_compiling=no
3649   else
3650     if test "$cross_compiling" = maybe; then
3651         cross_compiling=yes
3652     else
3653         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3655 as_fn_error "cannot run C compiled programs.
3656 If you meant to cross compile, use \`--host'.
3657 See \`config.log' for more details." "$LINENO" 5; }
3658     fi
3659   fi
3660 fi
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3662 $as_echo "$cross_compiling" >&6; }
3663
3664 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3665 ac_clean_files=$ac_clean_files_save
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3667 $as_echo_n "checking for suffix of object files... " >&6; }
3668 if test "${ac_cv_objext+set}" = set; then :
3669   $as_echo_n "(cached) " >&6
3670 else
3671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h.  */
3673
3674 int
3675 main ()
3676 {
3677
3678   ;
3679   return 0;
3680 }
3681 _ACEOF
3682 rm -f conftest.o conftest.obj
3683 if { { ac_try="$ac_compile"
3684 case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690   (eval "$ac_compile") 2>&5
3691   ac_status=$?
3692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693   test $ac_status = 0; }; then :
3694   for ac_file in conftest.o conftest.obj conftest.*; do
3695   test -f "$ac_file" || continue;
3696   case $ac_file in
3697     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3698     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3699        break;;
3700   esac
3701 done
3702 else
3703   $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error "cannot compute suffix of object files: cannot compile
3709 See \`config.log' for more details." "$LINENO" 5; }
3710 fi
3711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3714 $as_echo "$ac_cv_objext" >&6; }
3715 OBJEXT=$ac_cv_objext
3716 ac_objext=$OBJEXT
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3718 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3719 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3720   $as_echo_n "(cached) " >&6
3721 else
3722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h.  */
3724
3725 int
3726 main ()
3727 {
3728 #ifndef __GNUC__
3729        choke me
3730 #endif
3731
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737   ac_compiler_gnu=yes
3738 else
3739   ac_compiler_gnu=no
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3743
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3746 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3747 if test $ac_compiler_gnu = yes; then
3748   GCC=yes
3749 else
3750   GCC=
3751 fi
3752 ac_test_CFLAGS=${CFLAGS+set}
3753 ac_save_CFLAGS=$CFLAGS
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3755 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3756 if test "${ac_cv_prog_cc_g+set}" = set; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   ac_save_c_werror_flag=$ac_c_werror_flag
3760    ac_c_werror_flag=yes
3761    ac_cv_prog_cc_g=no
3762    CFLAGS="-g"
3763    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h.  */
3765
3766 int
3767 main ()
3768 {
3769
3770   ;
3771   return 0;
3772 }
3773 _ACEOF
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775   ac_cv_prog_cc_g=yes
3776 else
3777   CFLAGS=""
3778       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h.  */
3780
3781 int
3782 main ()
3783 {
3784
3785   ;
3786   return 0;
3787 }
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790
3791 else
3792   ac_c_werror_flag=$ac_save_c_werror_flag
3793          CFLAGS="-g"
3794          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h.  */
3796
3797 int
3798 main ()
3799 {
3800
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"; then :
3806   ac_cv_prog_cc_g=yes
3807 fi
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813    ac_c_werror_flag=$ac_save_c_werror_flag
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3816 $as_echo "$ac_cv_prog_cc_g" >&6; }
3817 if test "$ac_test_CFLAGS" = set; then
3818   CFLAGS=$ac_save_CFLAGS
3819 elif test $ac_cv_prog_cc_g = yes; then
3820   if test "$GCC" = yes; then
3821     CFLAGS="-g -O2"
3822   else
3823     CFLAGS="-g"
3824   fi
3825 else
3826   if test "$GCC" = yes; then
3827     CFLAGS="-O2"
3828   else
3829     CFLAGS=
3830   fi
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3833 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3834 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   ac_cv_prog_cc_c89=no
3838 ac_save_CC=$CC
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h.  */
3841 #include <stdarg.h>
3842 #include <stdio.h>
3843 #include <sys/types.h>
3844 #include <sys/stat.h>
3845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3846 struct buf { int x; };
3847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848 static char *e (p, i)
3849      char **p;
3850      int i;
3851 {
3852   return p[i];
3853 }
3854 static char *f (char * (*g) (char **, int), char **p, ...)
3855 {
3856   char *s;
3857   va_list v;
3858   va_start (v,p);
3859   s = g (p, va_arg (v,int));
3860   va_end (v);
3861   return s;
3862 }
3863
3864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3865    function prototypes and stuff, but not '\xHH' hex character constants.
3866    These don't provoke an error unfortunately, instead are silently treated
3867    as 'x'.  The following induces an error, until -std is added to get
3868    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3869    array size at least.  It's necessary to write '\x00'==0 to get something
3870    that's true only with -std.  */
3871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3872
3873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874    inside strings and character constants.  */
3875 #define FOO(x) 'x'
3876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3877
3878 int test (int i, double x);
3879 struct s1 {int (*f) (int a);};
3880 struct s2 {int (*f) (double a);};
3881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3882 int argc;
3883 char **argv;
3884 int
3885 main ()
3886 {
3887 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3888   ;
3889   return 0;
3890 }
3891 _ACEOF
3892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3894 do
3895   CC="$ac_save_CC $ac_arg"
3896   if ac_fn_c_try_compile "$LINENO"; then :
3897   ac_cv_prog_cc_c89=$ac_arg
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext
3900   test "x$ac_cv_prog_cc_c89" != "xno" && break
3901 done
3902 rm -f conftest.$ac_ext
3903 CC=$ac_save_CC
3904
3905 fi
3906 # AC_CACHE_VAL
3907 case "x$ac_cv_prog_cc_c89" in
3908   x)
3909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3910 $as_echo "none needed" >&6; } ;;
3911   xno)
3912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3913 $as_echo "unsupported" >&6; } ;;
3914   *)
3915     CC="$CC $ac_cv_prog_cc_c89"
3916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3917 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3918 esac
3919 if test "x$ac_cv_prog_cc_c89" != xno; then :
3920
3921 fi
3922
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928
3929
3930
3931 # Check whether --with-linux-audit was given.
3932 if test "${with_linux_audit+set}" = set; then :
3933   withval=$with_linux_audit; case $with_linux_audit in
3934     yes)        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h.  */
3936 #include <libaudit.h>
3937 int
3938 main ()
3939 {
3940 int i = AUDIT_USER_CMD; (void)i;
3941   ;
3942   return 0;
3943 }
3944 _ACEOF
3945 if ac_fn_c_try_compile "$LINENO"; then :
3946
3947                     $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3948
3949                     SUDO_LIBS="${SUDO_LIBS} -laudit"
3950                     SUDO_OBJS="${SUDO_OBJS} linux_audit.o"
3951
3952 else
3953
3954                     as_fn_error "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3955
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958                 ;;
3959     no)         ;;
3960     *)          as_fn_error "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3961                 ;;
3962 esac
3963 fi
3964
3965
3966
3967 # Check whether --with-incpath was given.
3968 if test "${with_incpath+set}" = set; then :
3969   withval=$with_incpath; case $with_incpath in
3970     yes)        as_fn_error "\"must give --with-incpath an argument.\"" "$LINENO" 5
3971                 ;;
3972     no)         as_fn_error "\"--without-incpath not supported.\"" "$LINENO" 5
3973                 ;;
3974     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3975 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3976                 for i in ${with_incpath}; do
3977                     CPPFLAGS="${CPPFLAGS} -I${i}"
3978                 done
3979                 ;;
3980 esac
3981 fi
3982
3983
3984
3985 # Check whether --with-libpath was given.
3986 if test "${with_libpath+set}" = set; then :
3987   withval=$with_libpath; case $with_libpath in
3988     yes)        as_fn_error "\"must give --with-libpath an argument.\"" "$LINENO" 5
3989                 ;;
3990     no)         as_fn_error "\"--without-libpath not supported.\"" "$LINENO" 5
3991                 ;;
3992     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3993 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3994                 ;;
3995 esac
3996 fi
3997
3998
3999
4000 # Check whether --with-libraries was given.
4001 if test "${with_libraries+set}" = set; then :
4002   withval=$with_libraries; case $with_libraries in
4003     yes)        as_fn_error "\"must give --with-libraries an argument.\"" "$LINENO" 5
4004                 ;;
4005     no)         as_fn_error "\"--without-libraries not supported.\"" "$LINENO" 5
4006                 ;;
4007     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
4008 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
4009                 ;;
4010 esac
4011 fi
4012
4013
4014
4015 # Check whether --with-efence was given.
4016 if test "${with_efence+set}" = set; then :
4017   withval=$with_efence; case $with_efence in
4018     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
4019 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
4020                 LIBS="${LIBS} -lefence"
4021                 if test -f /usr/local/lib/libefence.a; then
4022                     with_libpath="${with_libpath} /usr/local/lib"
4023                 fi
4024                 ;;
4025     no)         ;;
4026     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
4027 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
4028                 ;;
4029 esac
4030 fi
4031
4032
4033
4034 # Check whether --with-csops was given.
4035 if test "${with_csops+set}" = set; then :
4036   withval=$with_csops; case $with_csops in
4037     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
4038 $as_echo "$as_me: Adding CSOps standard options" >&6;}
4039                 CHECKSIA=false
4040                 with_ignore_dot=yes
4041                 insults=on
4042                 with_classic_insults=yes
4043                 with_csops_insults=yes
4044                 with_env_editor=yes
4045                 : ${mansectsu='8'}
4046                 : ${mansectform='5'}
4047                 ;;
4048     no)         ;;
4049     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
4050 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
4051                 ;;
4052 esac
4053 fi
4054
4055
4056
4057 # Check whether --with-passwd was given.
4058 if test "${with_passwd+set}" = set; then :
4059   withval=$with_passwd; case $with_passwd in
4060     yes|no)     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
4061 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
4062                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
4063 $as_echo "$with_passwd" >&6; }
4064                 AUTH_DEF=""
4065                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
4066                 ;;
4067     *)          as_fn_error "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
4068                 ;;
4069 esac
4070 fi
4071
4072
4073
4074 # Check whether --with-skey was given.
4075 if test "${with_skey+set}" = set; then :
4076   withval=$with_skey; case $with_skey in
4077     no)         ;;
4078     *)          $as_echo "#define HAVE_SKEY 1" >>confdefs.h
4079
4080                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
4081 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
4082                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4083 $as_echo "yes" >&6; }
4084                 AUTH_REG="$AUTH_REG S/Key"
4085                 ;;
4086 esac
4087 fi
4088
4089
4090
4091 # Check whether --with-opie was given.
4092 if test "${with_opie+set}" = set; then :
4093   withval=$with_opie; case $with_opie in
4094     no)         ;;
4095     *)          $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4096
4097                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4098 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4099                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4100 $as_echo "yes" >&6; }
4101                 AUTH_REG="$AUTH_REG NRL_OPIE"
4102                 ;;
4103 esac
4104 fi
4105
4106
4107
4108 # Check whether --with-long-otp-prompt was given.
4109 if test "${with_long_otp_prompt+set}" = set; then :
4110   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4111     yes)        $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4112
4113                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4114 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4115                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4116 $as_echo "yes" >&6; }
4117                 long_otp_prompt=on
4118                 ;;
4119     no)         long_otp_prompt=off
4120                 ;;
4121     *)          as_fn_error "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4122                 ;;
4123 esac
4124 fi
4125
4126
4127
4128 # Check whether --with-SecurID was given.
4129 if test "${with_SecurID+set}" = set; then :
4130   withval=$with_SecurID; case $with_SecurID in
4131     no)         ;;
4132     *)          $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4133
4134                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4135 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4136                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4137 $as_echo "yes" >&6; }
4138                 AUTH_EXCL="$AUTH_EXCL SecurID"
4139                 ;;
4140 esac
4141 fi
4142
4143
4144
4145 # Check whether --with-fwtk was given.
4146 if test "${with_fwtk+set}" = set; then :
4147   withval=$with_fwtk; case $with_fwtk in
4148     no)         ;;
4149     *)          $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4150
4151                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4152 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4153                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4154 $as_echo "yes" >&6; }
4155                 AUTH_EXCL="$AUTH_EXCL FWTK"
4156                 ;;
4157 esac
4158 fi
4159
4160
4161
4162 # Check whether --with-kerb4 was given.
4163 if test "${with_kerb4+set}" = set; then :
4164   withval=$with_kerb4; case $with_kerb4 in
4165     no)         ;;
4166     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
4167 $as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
4168                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169 $as_echo "yes" >&6; }
4170                 AUTH_REG="$AUTH_REG kerb4"
4171                 ;;
4172 esac
4173 fi
4174
4175
4176
4177 # Check whether --with-kerb5 was given.
4178 if test "${with_kerb5+set}" = set; then :
4179   withval=$with_kerb5; case $with_kerb5 in
4180     no)         ;;
4181     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4182 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4183                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4184 $as_echo "yes" >&6; }
4185                 AUTH_REG="$AUTH_REG kerb5"
4186                 ;;
4187 esac
4188 fi
4189
4190
4191
4192 # Check whether --with-aixauth was given.
4193 if test "${with_aixauth+set}" = set; then :
4194   withval=$with_aixauth; case $with_aixauth in
4195     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4196     no)         ;;
4197     *)          as_fn_error "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4198                 ;;
4199 esac
4200 fi
4201
4202
4203
4204 # Check whether --with-pam was given.
4205 if test "${with_pam+set}" = set; then :
4206   withval=$with_pam; case $with_pam in
4207     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
4208     no)         ;;
4209     *)          as_fn_error "\"--with-pam does not take an argument.\"" "$LINENO" 5
4210                 ;;
4211 esac
4212 fi
4213
4214
4215
4216 # Check whether --with-AFS was given.
4217 if test "${with_AFS+set}" = set; then :
4218   withval=$with_AFS; case $with_AFS in
4219     yes)        $as_echo "#define HAVE_AFS 1" >>confdefs.h
4220
4221                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4222 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4223                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4224 $as_echo "yes" >&6; }
4225                 AUTH_REG="$AUTH_REG AFS"
4226                 ;;
4227     no)         ;;
4228     *)          as_fn_error "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4229                 ;;
4230 esac
4231 fi
4232
4233
4234
4235 # Check whether --with-DCE was given.
4236 if test "${with_DCE+set}" = set; then :
4237   withval=$with_DCE; case $with_DCE in
4238     yes)        $as_echo "#define HAVE_DCE 1" >>confdefs.h
4239
4240                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4241 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4242                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243 $as_echo "yes" >&6; }
4244                 AUTH_REG="$AUTH_REG DCE"
4245                 ;;
4246     no)         ;;
4247     *)          as_fn_error "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4248                 ;;
4249 esac
4250 fi
4251
4252
4253
4254 # Check whether --with-logincap was given.
4255 if test "${with_logincap+set}" = set; then :
4256   withval=$with_logincap; case $with_logincap in
4257     yes|no)     ;;
4258     *)          as_fn_error "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4259                 ;;
4260 esac
4261 fi
4262
4263
4264
4265 # Check whether --with-bsdauth was given.
4266 if test "${with_bsdauth+set}" = set; then :
4267   withval=$with_bsdauth; case $with_bsdauth in
4268     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4269     no)         ;;
4270     *)          as_fn_error "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4271                 ;;
4272 esac
4273 fi
4274
4275
4276
4277 # Check whether --with-project was given.
4278 if test "${with_project+set}" = set; then :
4279   withval=$with_project; case $with_project in
4280     yes|no)     ;;
4281     no) ;;
4282     *)          as_fn_error "\"--with-project does not take an argument.\"" "$LINENO" 5
4283                 ;;
4284 esac
4285 fi
4286
4287
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4289 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4290
4291 # Check whether --with-lecture was given.
4292 if test "${with_lecture+set}" = set; then :
4293   withval=$with_lecture; case $with_lecture in
4294     yes|short|always)   lecture=once
4295                 ;;
4296     no|none|never)      lecture=never
4297                 ;;
4298     *)          as_fn_error "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4299                 ;;
4300 esac
4301 fi
4302
4303 if test "$lecture" = "once"; then
4304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4305 $as_echo "yes" >&6; }
4306 else
4307     $as_echo "#define NO_LECTURE 1" >>confdefs.h
4308
4309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4314 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4315
4316 # Check whether --with-logging was given.
4317 if test "${with_logging+set}" = set; then :
4318   withval=$with_logging; case $with_logging in
4319     yes)        as_fn_error "\"must give --with-logging an argument.\"" "$LINENO" 5
4320                 ;;
4321     no)         as_fn_error "\"--without-logging not supported.\"" "$LINENO" 5
4322                 ;;
4323     syslog)     $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4324
4325                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4326 $as_echo "syslog" >&6; }
4327                 ;;
4328     file)       $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4329
4330                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4331 $as_echo "file" >&6; }
4332                 ;;
4333     both)       $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4334
4335                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4336 $as_echo "both" >&6; }
4337                 ;;
4338     *)          as_fn_error "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4339                 ;;
4340 esac
4341 else
4342   $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4344 $as_echo "syslog" >&6; }
4345 fi
4346
4347
4348
4349 # Check whether --with-logfac was given.
4350 if test "${with_logfac+set}" = set; then :
4351   withval=$with_logfac; case $with_logfac in
4352     yes)        as_fn_error "\"must give --with-logfac an argument.\"" "$LINENO" 5
4353                 ;;
4354     no)         as_fn_error "\"--without-logfac not supported.\"" "$LINENO" 5
4355                 ;;
4356     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
4357                 ;;
4358     *)          as_fn_error "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4359                 ;;
4360 esac
4361 fi
4362
4363
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4365 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4366
4367 # Check whether --with-goodpri was given.
4368 if test "${with_goodpri+set}" = set; then :
4369   withval=$with_goodpri; case $with_goodpri in
4370     yes)        as_fn_error "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4371                 ;;
4372     no)         as_fn_error "\"--without-goodpri not supported.\"" "$LINENO" 5
4373                 ;;
4374     alert|crit|debug|emerg|err|info|notice|warning)
4375                 goodpri=$with_goodpri
4376                 ;;
4377     *)          as_fn_error "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4378                 ;;
4379 esac
4380 fi
4381
4382
4383 cat >>confdefs.h <<_ACEOF
4384 #define PRI_SUCCESS "$goodpri"
4385 _ACEOF
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4388 $as_echo "$goodpri" >&6; }
4389
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4391 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4392
4393 # Check whether --with-badpri was given.
4394 if test "${with_badpri+set}" = set; then :
4395   withval=$with_badpri; case $with_badpri in
4396     yes)        as_fn_error "\"must give --with-badpri an argument.\"" "$LINENO" 5
4397                 ;;
4398     no)         as_fn_error "\"--without-badpri not supported.\"" "$LINENO" 5
4399                 ;;
4400     alert|crit|debug|emerg|err|info|notice|warning)
4401                 badpri=$with_badpri
4402                 ;;
4403     *)          as_fn_error "$with_badpri is not a supported syslog priority." "$LINENO" 5
4404                 ;;
4405 esac
4406 fi
4407
4408
4409 cat >>confdefs.h <<_ACEOF
4410 #define PRI_FAILURE "$badpri"
4411 _ACEOF
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4414 $as_echo "$badpri" >&6; }
4415
4416
4417 # Check whether --with-logpath was given.
4418 if test "${with_logpath+set}" = set; then :
4419   withval=$with_logpath; case $with_logpath in
4420     yes)        as_fn_error "\"must give --with-logpath an argument.\"" "$LINENO" 5
4421                 ;;
4422     no)         as_fn_error "\"--without-logpath not supported.\"" "$LINENO" 5
4423                 ;;
4424 esac
4425 fi
4426
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4429 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4430
4431 # Check whether --with-loglen was given.
4432 if test "${with_loglen+set}" = set; then :
4433   withval=$with_loglen; case $with_loglen in
4434     yes)        as_fn_error "\"must give --with-loglen an argument.\"" "$LINENO" 5
4435                 ;;
4436     no)         as_fn_error "\"--without-loglen not supported.\"" "$LINENO" 5
4437                 ;;
4438     [0-9]*)     loglen=$with_loglen
4439                 ;;
4440     *)          as_fn_error "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4441                 ;;
4442 esac
4443 fi
4444
4445
4446 cat >>confdefs.h <<_ACEOF
4447 #define MAXLOGFILELEN $loglen
4448 _ACEOF
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4451 $as_echo "$loglen" >&6; }
4452
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4454 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4455
4456 # Check whether --with-ignore-dot was given.
4457 if test "${with_ignore_dot+set}" = set; then :
4458   withval=$with_ignore_dot; case $with_ignore_dot in
4459     yes)        ignore_dot=on
4460                 ;;
4461     no)         ignore_dot=off
4462                 ;;
4463     *)          as_fn_error "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4464                 ;;
4465 esac
4466 fi
4467
4468 if test "$ignore_dot" = "on"; then
4469     $as_echo "#define IGNORE_DOT_PATH 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 a user is not in sudoers" >&5
4479 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4480
4481 # Check whether --with-mail-if-no-user was given.
4482 if test "${with_mail_if_no_user+set}" = set; then :
4483   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4484     yes)        mail_no_user=on
4485                 ;;
4486     no)         mail_no_user=off
4487                 ;;
4488     *)          as_fn_error "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4489                 ;;
4490 esac
4491 fi
4492
4493 if test "$mail_no_user" = "on"; then
4494     $as_echo "#define SEND_MAIL_WHEN_NO_USER 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 user listed but not for this host" >&5
4504 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4505
4506 # Check whether --with-mail-if-no-host was given.
4507 if test "${with_mail_if_no_host+set}" = set; then :
4508   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4509     yes)        mail_no_host=on
4510                 ;;
4511     no)         mail_no_host=off
4512                 ;;
4513     *)          as_fn_error "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4514                 ;;
4515 esac
4516 fi
4517
4518 if test "$mail_no_host" = "on"; then
4519     $as_echo "#define SEND_MAIL_WHEN_NO_HOST 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 whether to send mail when a user tries a disallowed command" >&5
4529 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4530
4531 # Check whether --with-mail-if-noperms was given.
4532 if test "${with_mail_if_noperms+set}" = set; then :
4533   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4534     yes)        mail_noperms=on
4535                 ;;
4536     no)         mail_noperms=off
4537                 ;;
4538     *)          as_fn_error "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4539                 ;;
4540 esac
4541 fi
4542
4543 if test "$mail_noperms" = "on"; then
4544     $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4545
4546     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4547 $as_echo "yes" >&6; }
4548 else
4549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4554 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4555
4556 # Check whether --with-mailto was given.
4557 if test "${with_mailto+set}" = set; then :
4558   withval=$with_mailto; case $with_mailto in
4559     yes)        as_fn_error "\"must give --with-mailto an argument.\"" "$LINENO" 5
4560                 ;;
4561     no)         as_fn_error "\"--without-mailto not supported.\"" "$LINENO" 5
4562                 ;;
4563     *)          mailto=$with_mailto
4564                 ;;
4565 esac
4566 fi
4567
4568
4569 cat >>confdefs.h <<_ACEOF
4570 #define MAILTO "$mailto"
4571 _ACEOF
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4574 $as_echo "$mailto" >&6; }
4575
4576
4577 # Check whether --with-mailsubject was given.
4578 if test "${with_mailsubject+set}" = set; then :
4579   withval=$with_mailsubject; case $with_mailsubject in
4580     yes)        as_fn_error "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4581                 ;;
4582     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4583 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4584                 ;;
4585     *)          mailsub="$with_mailsubject"
4586                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4587 $as_echo_n "checking sudo mail subject... " >&6; }
4588                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4589 $as_echo "Using alert mail subject: $mailsub" >&6; }
4590                 ;;
4591 esac
4592 fi
4593
4594
4595 cat >>confdefs.h <<_ACEOF
4596 #define MAILSUBJECT "$mailsub"
4597 _ACEOF
4598
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4601 $as_echo_n "checking for bad password prompt... " >&6; }
4602
4603 # Check whether --with-passprompt was given.
4604 if test "${with_passprompt+set}" = set; then :
4605   withval=$with_passprompt; case $with_passprompt in
4606     yes)        as_fn_error "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4607                 ;;
4608     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4609 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4610                 ;;
4611     *)          passprompt="$with_passprompt"
4612 esac
4613 fi
4614
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4616 $as_echo "$passprompt" >&6; }
4617
4618 cat >>confdefs.h <<_ACEOF
4619 #define PASSPROMPT "$passprompt"
4620 _ACEOF
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4624 $as_echo_n "checking for bad password message... " >&6; }
4625
4626 # Check whether --with-badpass-message was given.
4627 if test "${with_badpass_message+set}" = set; then :
4628   withval=$with_badpass_message; case $with_badpass_message in
4629     yes)        as_fn_error "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4630                 ;;
4631     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4632 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4633                 ;;
4634     *)          badpass_message="$with_badpass_message"
4635                 ;;
4636 esac
4637 fi
4638
4639
4640 cat >>confdefs.h <<_ACEOF
4641 #define INCORRECT_PASSWORD "$badpass_message"
4642 _ACEOF
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4645 $as_echo "$badpass_message" >&6; }
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4648 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4649
4650 # Check whether --with-fqdn was given.
4651 if test "${with_fqdn+set}" = set; then :
4652   withval=$with_fqdn; case $with_fqdn in
4653     yes)        fqdn=on
4654                 ;;
4655     no)         fqdn=off
4656                 ;;
4657     *)          as_fn_error "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4658                 ;;
4659 esac
4660 fi
4661
4662 if test "$fqdn" = "on"; then
4663     $as_echo "#define FQDN 1" >>confdefs.h
4664
4665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4666 $as_echo "yes" >&6; }
4667 else
4668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672
4673 # Check whether --with-timedir was given.
4674 if test "${with_timedir+set}" = set; then :
4675   withval=$with_timedir; case $with_timedir in
4676     yes)        as_fn_error "\"must give --with-timedir an argument.\"" "$LINENO" 5
4677                 ;;
4678     no)         as_fn_error "\"--without-timedir not supported.\"" "$LINENO" 5
4679                 ;;
4680 esac
4681 fi
4682
4683
4684
4685 # Check whether --with-iologdir was given.
4686 if test "${with_iologdir+set}" = set; then :
4687   withval=$with_iologdir; case $with_iologdir in
4688     yes)        ;;
4689     no)         ;;
4690 esac
4691 fi
4692
4693
4694
4695 # Check whether --with-sendmail was given.
4696 if test "${with_sendmail+set}" = set; then :
4697   withval=$with_sendmail; case $with_sendmail in
4698     yes)        with_sendmail=""
4699                 ;;
4700     no)         ;;
4701     *)          cat >>confdefs.h <<EOF
4702 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4703 EOF
4704
4705                 ;;
4706 esac
4707 fi
4708
4709
4710
4711 # Check whether --with-sudoers-mode was given.
4712 if test "${with_sudoers_mode+set}" = set; then :
4713   withval=$with_sudoers_mode; case $with_sudoers_mode in
4714     yes)        as_fn_error "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4715                 ;;
4716     no)         as_fn_error "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4717                 ;;
4718     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
4719                 ;;
4720     0*)         SUDOERS_MODE=$with_sudoers_mode
4721                 ;;
4722     *)          as_fn_error "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4723                 ;;
4724 esac
4725 fi
4726
4727
4728
4729 # Check whether --with-sudoers-uid was given.
4730 if test "${with_sudoers_uid+set}" = set; then :
4731   withval=$with_sudoers_uid; case $with_sudoers_uid in
4732     yes)        as_fn_error "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4733                 ;;
4734     no)         as_fn_error "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4735                 ;;
4736     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
4737                 ;;
4738     *)          as_fn_error "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4739                 ;;
4740 esac
4741 fi
4742
4743
4744
4745 # Check whether --with-sudoers-gid was given.
4746 if test "${with_sudoers_gid+set}" = set; then :
4747   withval=$with_sudoers_gid; case $with_sudoers_gid in
4748     yes)        as_fn_error "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4749                 ;;
4750     no)         as_fn_error "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4751                 ;;
4752     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
4753                 ;;
4754     *)          as_fn_error "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4755                 ;;
4756 esac
4757 fi
4758
4759
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4761 $as_echo_n "checking for umask programs should be run with... " >&6; }
4762
4763 # Check whether --with-umask was given.
4764 if test "${with_umask+set}" = set; then :
4765   withval=$with_umask; case $with_umask in
4766     yes)        as_fn_error "\"must give --with-umask an argument.\"" "$LINENO" 5
4767                 ;;
4768     no)         sudo_umask=0777
4769                 ;;
4770     [0-9]*)     sudo_umask=$with_umask
4771                 ;;
4772     *)          as_fn_error "\"you must enter a numeric mask.\"" "$LINENO" 5
4773                 ;;
4774 esac
4775 fi
4776
4777
4778 cat >>confdefs.h <<_ACEOF
4779 #define SUDO_UMASK $sudo_umask
4780 _ACEOF
4781
4782 if test "$sudo_umask" = "0777"; then
4783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4784 $as_echo "user" >&6; }
4785 else
4786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4787 $as_echo "$sudo_umask" >&6; }
4788 fi
4789
4790
4791 # Check whether --with-umask-override was given.
4792 if test "${with_umask_override+set}" = set; then :
4793   withval=$with_umask_override; case $with_umask_override in
4794     yes)        $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4795
4796                 umask_override=on
4797                 ;;
4798     no)         umask_override=off
4799                 ;;
4800     *)          as_fn_error "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4801                 ;;
4802 esac
4803 fi
4804
4805
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4807 $as_echo_n "checking for default user to run commands as... " >&6; }
4808
4809 # Check whether --with-runas-default was given.
4810 if test "${with_runas_default+set}" = set; then :
4811   withval=$with_runas_default; case $with_runas_default in
4812     yes)        as_fn_error "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4813                 ;;
4814     no)         as_fn_error "\"--without-runas-default not supported.\"" "$LINENO" 5
4815                 ;;
4816     *)          runas_default="$with_runas_default"
4817                 ;;
4818 esac
4819 fi
4820
4821
4822 cat >>confdefs.h <<_ACEOF
4823 #define RUNAS_DEFAULT "$runas_default"
4824 _ACEOF
4825
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4827 $as_echo "$runas_default" >&6; }
4828
4829
4830 # Check whether --with-exempt was given.
4831 if test "${with_exempt+set}" = set; then :
4832   withval=$with_exempt; case $with_exempt in
4833     yes)        as_fn_error "\"must give --with-exempt an argument.\"" "$LINENO" 5
4834                 ;;
4835     no)         as_fn_error "\"--without-exempt not supported.\"" "$LINENO" 5
4836                 ;;
4837     *)
4838 cat >>confdefs.h <<_ACEOF
4839 #define EXEMPTGROUP "$with_exempt"
4840 _ACEOF
4841
4842                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4843 $as_echo_n "checking for group to be exempt from password... " >&6; }
4844                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4845 $as_echo "$with_exempt" >&6; }
4846                 ;;
4847 esac
4848 fi
4849
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4852 $as_echo_n "checking for editor that visudo should use... " >&6; }
4853
4854 # Check whether --with-editor was given.
4855 if test "${with_editor+set}" = set; then :
4856   withval=$with_editor; case $with_editor in
4857     yes)        as_fn_error "\"must give --with-editor an argument.\"" "$LINENO" 5
4858                 ;;
4859     no)         as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4860                 ;;
4861     *)
4862 cat >>confdefs.h <<_ACEOF
4863 #define EDITOR "$with_editor"
4864 _ACEOF
4865
4866                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4867 $as_echo "$with_editor" >&6; }
4868                 editor="$with_editor"
4869                 ;;
4870 esac
4871 else
4872   $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4874 $as_echo "vi" >&6; }
4875 fi
4876
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4879 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4880
4881 # Check whether --with-env-editor was given.
4882 if test "${with_env_editor+set}" = set; then :
4883   withval=$with_env_editor; case $with_env_editor in
4884     yes)        env_editor=on
4885                 ;;
4886     no)         env_editor=off
4887                 ;;
4888     *)          as_fn_error "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4889                 ;;
4890 esac
4891 fi
4892
4893 if test "$env_editor" = "on"; then
4894     $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4895
4896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4897 $as_echo "yes" >&6; }
4898 else
4899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 fi
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4904 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4905
4906 # Check whether --with-passwd-tries was given.
4907 if test "${with_passwd_tries+set}" = set; then :
4908   withval=$with_passwd_tries; case $with_passwd_tries in
4909     yes)        ;;
4910     no)         as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4911                 ;;
4912     [1-9]*)     passwd_tries=$with_passwd_tries
4913                 ;;
4914     *)          as_fn_error "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4915                 ;;
4916 esac
4917 fi
4918
4919
4920 cat >>confdefs.h <<_ACEOF
4921 #define TRIES_FOR_PASSWORD $passwd_tries
4922 _ACEOF
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4925 $as_echo "$passwd_tries" >&6; }
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4928 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4929
4930 # Check whether --with-timeout was given.
4931 if test "${with_timeout+set}" = set; then :
4932   withval=$with_timeout; case $with_timeout in
4933     yes)        ;;
4934     no)         timeout=0
4935                 ;;
4936     [0-9]*)     timeout=$with_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 TIMEOUT $timeout
4946 _ACEOF
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4949 $as_echo "$timeout" >&6; }
4950
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4952 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4953
4954 # Check whether --with-password-timeout was given.
4955 if test "${with_password_timeout+set}" = set; then :
4956   withval=$with_password_timeout; case $with_password_timeout in
4957     yes)        ;;
4958     no)         password_timeout=0
4959                 ;;
4960     [0-9]*)     password_timeout=$with_password_timeout
4961                 ;;
4962     *)          as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4963                 ;;
4964 esac
4965 fi
4966
4967
4968 cat >>confdefs.h <<_ACEOF
4969 #define PASSWORD_TIMEOUT $password_timeout
4970 _ACEOF
4971
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4973 $as_echo "$password_timeout" >&6; }
4974
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4976 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4977
4978 # Check whether --with-tty-tickets was given.
4979 if test "${with_tty_tickets+set}" = set; then :
4980   withval=$with_tty_tickets; case $with_tty_tickets in
4981     yes)        tty_tickets=on
4982                 ;;
4983     no)         tty_tickets=off
4984                 ;;
4985     *)          as_fn_error "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4986                 ;;
4987 esac
4988 fi
4989
4990 if test "$tty_tickets" = "off"; then
4991     $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4992
4993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4995 else
4996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4997 $as_echo "yes" >&6; }
4998 fi
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
5001 $as_echo_n "checking whether to include insults... " >&6; }
5002
5003 # Check whether --with-insults was given.
5004 if test "${with_insults+set}" = set; then :
5005   withval=$with_insults; case $with_insults in
5006     yes)        insults=on
5007                 with_classic_insults=yes
5008                 with_csops_insults=yes
5009                 ;;
5010     disabled)   insults=off
5011                 with_classic_insults=yes
5012                 with_csops_insults=yes
5013                 ;;
5014     no)         insults=off
5015                 ;;
5016     *)          as_fn_error "\"--with-insults does not take an argument.\"" "$LINENO" 5
5017                 ;;
5018 esac
5019 fi
5020
5021 if test "$insults" = "on"; then
5022     $as_echo "#define USE_INSULTS 1" >>confdefs.h
5023
5024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025 $as_echo "yes" >&6; }
5026 else
5027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 fi
5030
5031
5032 # Check whether --with-all-insults was given.
5033 if test "${with_all_insults+set}" = set; then :
5034   withval=$with_all_insults; case $with_all_insults in
5035     yes)        with_classic_insults=yes
5036                 with_csops_insults=yes
5037                 with_hal_insults=yes
5038                 with_goons_insults=yes
5039                 ;;
5040     no)         ;;
5041     *)          as_fn_error "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
5042                 ;;
5043 esac
5044 fi
5045
5046
5047
5048 # Check whether --with-classic-insults was given.
5049 if test "${with_classic_insults+set}" = set; then :
5050   withval=$with_classic_insults; case $with_classic_insults in
5051     yes)        $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
5052
5053                 ;;
5054     no)         ;;
5055     *)          as_fn_error "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
5056                 ;;
5057 esac
5058 fi
5059
5060
5061
5062 # Check whether --with-csops-insults was given.
5063 if test "${with_csops_insults+set}" = set; then :
5064   withval=$with_csops_insults; case $with_csops_insults in
5065     yes)        $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
5066
5067                 ;;
5068     no)         ;;
5069     *)          as_fn_error "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
5070                 ;;
5071 esac
5072 fi
5073
5074
5075
5076 # Check whether --with-hal-insults was given.
5077 if test "${with_hal_insults+set}" = set; then :
5078   withval=$with_hal_insults; case $with_hal_insults in
5079     yes)        $as_echo "#define HAL_INSULTS 1" >>confdefs.h
5080
5081                 ;;
5082     no)         ;;
5083     *)          as_fn_error "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
5084                 ;;
5085 esac
5086 fi
5087
5088
5089
5090 # Check whether --with-goons-insults was given.
5091 if test "${with_goons_insults+set}" = set; then :
5092   withval=$with_goons_insults; case $with_goons_insults in
5093     yes)        $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5094
5095                 ;;
5096     no)         ;;
5097     *)          as_fn_error "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5098                 ;;
5099 esac
5100 fi
5101
5102
5103
5104 # Check whether --with-nsswitch was given.
5105 if test "${with_nsswitch+set}" = set; then :
5106   withval=$with_nsswitch; case $with_nsswitch in
5107     no)         ;;
5108     yes)        with_nsswitch="/etc/nsswitch.conf"
5109                 ;;
5110     *)          ;;
5111 esac
5112 fi
5113
5114
5115
5116 # Check whether --with-ldap was given.
5117 if test "${with_ldap+set}" = set; then :
5118   withval=$with_ldap; case $with_ldap in
5119     no)         ;;
5120     *)          $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5121
5122                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5123 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5124                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5125 $as_echo "yes" >&6; }
5126                 ;;
5127 esac
5128 fi
5129
5130
5131
5132 # Check whether --with-ldap-conf-file was given.
5133 if test "${with_ldap_conf_file+set}" = set; then :
5134   withval=$with_ldap_conf_file;
5135 fi
5136
5137 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5138 cat >>confdefs.h <<EOF
5139 #define _PATH_LDAP_CONF "$ldap_conf"
5140 EOF
5141
5142
5143
5144 # Check whether --with-ldap-secret-file was given.
5145 if test "${with_ldap_secret_file+set}" = set; then :
5146   withval=$with_ldap_secret_file;
5147 fi
5148
5149 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5150 cat >>confdefs.h <<EOF
5151 #define _PATH_LDAP_SECRET "$ldap_secret"
5152 EOF
5153
5154
5155
5156 # Check whether --with-pc-insults was given.
5157 if test "${with_pc_insults+set}" = set; then :
5158   withval=$with_pc_insults; case $with_pc_insults in
5159     yes)        $as_echo "#define PC_INSULTS 1" >>confdefs.h
5160
5161                 ;;
5162     no)         ;;
5163     *)          as_fn_error "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5164                 ;;
5165 esac
5166 fi
5167
5168
5169 if test "$insults" = "on"; then
5170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5171 $as_echo_n "checking which insult sets to include... " >&6; }
5172     i=""
5173     test "$with_goons_insults" = "yes" && i="goons ${i}"
5174     test "$with_hal_insults" = "yes" && i="hal ${i}"
5175     test "$with_csops_insults" = "yes" && i="csops ${i}"
5176     test "$with_classic_insults" = "yes" && i="classic ${i}"
5177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5178 $as_echo "$i" >&6; }
5179 fi
5180
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5182 $as_echo_n "checking whether to override the user's path... " >&6; }
5183
5184 # Check whether --with-secure-path was given.
5185 if test "${with_secure_path+set}" = set; then :
5186   withval=$with_secure_path; case $with_secure_path in
5187     yes)        with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5188                 cat >>confdefs.h <<_ACEOF
5189 #define SECURE_PATH "$with_secure_path"
5190 _ACEOF
5191
5192                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5193 $as_echo "$with_secure_path" >&6; }
5194                 secure_path="set to $with_secure_path"
5195                 ;;
5196     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5198                 ;;
5199     *)          cat >>confdefs.h <<_ACEOF
5200 #define SECURE_PATH "$with_secure_path"
5201 _ACEOF
5202
5203                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5204 $as_echo "$with_secure_path" >&6; }
5205                 secure_path="set to F<$with_secure_path>"
5206                 ;;
5207 esac
5208 else
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5211 fi
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5215 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5216
5217 # Check whether --with-interfaces was given.
5218 if test "${with_interfaces+set}" = set; then :
5219   withval=$with_interfaces; case $with_interfaces in
5220     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5221 $as_echo "yes" >&6; }
5222                 ;;
5223     no)         $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5224
5225                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227                 ;;
5228     *)          as_fn_error "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5229                 ;;
5230 esac
5231 else
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5233 $as_echo "yes" >&6; }
5234 fi
5235
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5238 $as_echo_n "checking whether stow should be used... " >&6; }
5239
5240 # Check whether --with-stow was given.
5241 if test "${with_stow+set}" = set; then :
5242   withval=$with_stow; case $with_stow in
5243     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5244 $as_echo "yes" >&6; }
5245                 $as_echo "#define USE_STOW 1" >>confdefs.h
5246
5247                 ;;
5248     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250                 ;;
5251     *)          as_fn_error "\"--with-stow does not take an argument.\"" "$LINENO" 5
5252                 ;;
5253 esac
5254 else
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258
5259
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5261 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5262
5263 # Check whether --with-askpass was given.
5264 if test "${with_askpass+set}" = set; then :
5265   withval=$with_askpass; case $with_askpass in
5266     yes)        as_fn_error "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5267                 ;;
5268     no)         ;;
5269     *)          cat >>confdefs.h <<EOF
5270 #define _PATH_SUDO_ASKPASS "$with_askpass"
5271 EOF
5272
5273                 ;;
5274 esac
5275 else
5276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280
5281
5282 # Check whether --with-libvas was given.
5283 if test "${with_libvas+set}" = set; then :
5284   withval=$with_libvas; case $with_libvas in
5285     yes)        with_libvas=libvas.so
5286                 ;;
5287     no)         ;;
5288     *)
5289 cat >>confdefs.h <<_ACEOF
5290 #define LIBVAS_SO "$with_libvas"
5291 _ACEOF
5292
5293                 ;;
5294 esac
5295 if test X"$with_libvas" != X"no"; then
5296
5297 cat >>confdefs.h <<_ACEOF
5298 #define LIBVAS_SO "$with_libvas"
5299 _ACEOF
5300
5301     $as_echo "#define USING_NONUNIX_GROUPS 1" >>confdefs.h
5302
5303     COMMON_OBJS="$COMMON_OBJS vasgroups.o"
5304
5305 # Check whether --with-libvas-rpath was given.
5306 if test "${with_libvas_rpath+set}" = set; then :
5307   withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
5308 else
5309   LIBVAS_RPATH=/opt/quest/lib
5310 fi
5311
5312                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
5313 $as_echo_n "checking for main in -ldl... " >&6; }
5314 if test "${ac_cv_lib_dl_main+set}" = set; then :
5315   $as_echo_n "(cached) " >&6
5316 else
5317   ac_check_lib_save_LIBS=$LIBS
5318 LIBS="-ldl  $LIBS"
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h.  */
5321
5322
5323 int
5324 main ()
5325 {
5326 return main ();
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_c_try_link "$LINENO"; then :
5332   ac_cv_lib_dl_main=yes
5333 else
5334   ac_cv_lib_dl_main=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext \
5337     conftest$ac_exeext conftest.$ac_ext
5338 LIBS=$ac_check_lib_save_LIBS
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
5341 $as_echo "$ac_cv_lib_dl_main" >&6; }
5342 if test "x$ac_cv_lib_dl_main" = x""yes; then :
5343   cat >>confdefs.h <<_ACEOF
5344 #define HAVE_LIBDL 1
5345 _ACEOF
5346
5347   LIBS="-ldl $LIBS"
5348
5349 fi
5350
5351 fi
5352
5353 fi
5354
5355
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5358 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5359 # Check whether --enable-authentication was given.
5360 if test "${enable_authentication+set}" = set; then :
5361   enableval=$enable_authentication;  case "$enableval" in
5362     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5363 $as_echo "yes" >&6; }
5364                 ;;
5365     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5367                 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5368
5369                 ;;
5370     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5373 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5374                 ;;
5375   esac
5376
5377 else
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5379 $as_echo "yes" >&6; }
5380 fi
5381
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5384 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5385 # Check whether --enable-root-mailer was given.
5386 if test "${enable_root_mailer+set}" = set; then :
5387   enableval=$enable_root_mailer;  case "$enableval" in
5388     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390                 ;;
5391     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392 $as_echo "yes" >&6; }
5393                 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5394
5395                 ;;
5396     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5399 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5400                 ;;
5401   esac
5402
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407
5408
5409 # Check whether --enable-setreuid was given.
5410 if test "${enable_setreuid+set}" = set; then :
5411   enableval=$enable_setreuid;  case "$enableval" in
5412     no)         SKIP_SETREUID=yes
5413                 ;;
5414     *)          ;;
5415   esac
5416
5417 fi
5418
5419
5420 # Check whether --enable-setresuid was given.
5421 if test "${enable_setresuid+set}" = set; then :
5422   enableval=$enable_setresuid;  case "$enableval" in
5423     no)         SKIP_SETRESUID=yes
5424                 ;;
5425     *)          ;;
5426   esac
5427
5428 fi
5429
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5432 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5433 # Check whether --enable-shadow was given.
5434 if test "${enable_shadow+set}" = set; then :
5435   enableval=$enable_shadow;  case "$enableval" in
5436     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5438                 ;;
5439     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5440 $as_echo "yes" >&6; }
5441                 CHECKSHADOW="false"
5442                 ;;
5443     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5445                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5446 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5447                 ;;
5448   esac
5449
5450 else
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5457 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5458 # Check whether --enable-root-sudo was given.
5459 if test "${enable_root_sudo+set}" = set; then :
5460   enableval=$enable_root_sudo;  case "$enableval" in
5461     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462 $as_echo "yes" >&6; }
5463                 ;;
5464     no)         $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5465
5466                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468                 root_sudo=off
5469                 ;;
5470     *)          as_fn_error "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5471                 ;;
5472   esac
5473
5474 else
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 $as_echo "yes" >&6; }
5477 fi
5478
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5481 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5482 # Check whether --enable-log-host was given.
5483 if test "${enable_log_host+set}" = set; then :
5484   enableval=$enable_log_host;  case "$enableval" in
5485     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5486 $as_echo "yes" >&6; }
5487                 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5488
5489                 ;;
5490     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5492                 ;;
5493     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5496 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5497                 ;;
5498   esac
5499
5500 else
5501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5507 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5508 # Check whether --enable-noargs-shell was given.
5509 if test "${enable_noargs_shell+set}" = set; then :
5510   enableval=$enable_noargs_shell;  case "$enableval" in
5511     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5512 $as_echo "yes" >&6; }
5513                 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5514
5515                 ;;
5516     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518                 ;;
5519     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5522 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5523                 ;;
5524   esac
5525
5526 else
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5533 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5534 # Check whether --enable-shell-sets-home was given.
5535 if test "${enable_shell_sets_home+set}" = set; then :
5536   enableval=$enable_shell_sets_home;  case "$enableval" in
5537     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5538 $as_echo "yes" >&6; }
5539                 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5540
5541                 ;;
5542     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544                 ;;
5545     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5548 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5549                 ;;
5550   esac
5551
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5559 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5560 # Check whether --enable-path_info was given.
5561 if test "${enable_path_info+set}" = set; then :
5562   enableval=$enable_path_info;  case "$enableval" in
5563     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565                 ;;
5566     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5567 $as_echo "yes" >&6; }
5568                 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5569
5570                 path_info=off
5571                 ;;
5572     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5575 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5576                 ;;
5577   esac
5578
5579 else
5580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }
5582 fi
5583
5584
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5586 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5587 # Check whether --enable-env_debug was given.
5588 if test "${enable_env_debug+set}" = set; then :
5589   enableval=$enable_env_debug;  case "$enableval" in
5590     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5591 $as_echo "yes" >&6; }
5592                 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5593
5594                 ;;
5595     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5597                 ;;
5598     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5601 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5602                 ;;
5603   esac
5604
5605 else
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5612 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5613 # Check whether --enable-env_reset was given.
5614 if test "${enable_env_reset+set}" = set; then :
5615   enableval=$enable_env_reset;  case "$enableval" in
5616     yes)        env_reset=on
5617                 ;;
5618     no)         env_reset=off
5619                 ;;
5620     *)          env_reset=on
5621                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5622 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5623                 ;;
5624   esac
5625
5626 fi
5627
5628 if test "$env_reset" = "on"; then
5629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5630 $as_echo "yes" >&6; }
5631     $as_echo "#define ENV_RESET TRUE" >>confdefs.h
5632
5633 else
5634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5636     $as_echo "#define ENV_RESET FALSE" >>confdefs.h
5637
5638 fi
5639
5640 # Check whether --enable-warnings was given.
5641 if test "${enable_warnings+set}" = set; then :
5642   enableval=$enable_warnings;  case "$enableval" in
5643     yes)    if test X"$with_devel" != X"yes" -a -n "$GCC"; then
5644                 CFLAGS="${CFLAGS} -Wall"
5645             fi
5646             ;;
5647     no)     ;;
5648     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5649 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5650             ;;
5651   esac
5652
5653 fi
5654
5655
5656 # Check whether --enable-admin-flag was given.
5657 if test "${enable_admin_flag+set}" = set; then :
5658   enableval=$enable_admin_flag;  case "$enableval" in
5659     yes)    $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5660
5661             ;;
5662     no)     ;;
5663     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5664 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5665             ;;
5666   esac
5667
5668 fi
5669
5670
5671
5672 # Check whether --with-selinux was given.
5673 if test "${with_selinux+set}" = set; then :
5674   withval=$with_selinux; case $with_selinux in
5675     yes)        SELINUX_USAGE="[-r role] [-t type] "
5676                 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5677
5678                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5679                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5680                 PROGS="${PROGS} sesh"
5681                 SEMAN=1
5682                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5683 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5684 if test "${ac_cv_lib_selinux_setkeycreatecon+set}" = set; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687   ac_check_lib_save_LIBS=$LIBS
5688 LIBS="-lselinux  $LIBS"
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h.  */
5691
5692 /* Override any GCC internal prototype to avoid an error.
5693    Use char because int might match the return type of a GCC
5694    builtin and then its argument prototype would still apply.  */
5695 #ifdef __cplusplus
5696 extern "C"
5697 #endif
5698 char setkeycreatecon ();
5699 int
5700 main ()
5701 {
5702 return setkeycreatecon ();
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 if ac_fn_c_try_link "$LINENO"; then :
5708   ac_cv_lib_selinux_setkeycreatecon=yes
5709 else
5710   ac_cv_lib_selinux_setkeycreatecon=no
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext \
5713     conftest$ac_exeext conftest.$ac_ext
5714 LIBS=$ac_check_lib_save_LIBS
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5717 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5718 if test "x$ac_cv_lib_selinux_setkeycreatecon" = x""yes; then :
5719   $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5720
5721 fi
5722
5723                 ;;
5724     no)         ;;
5725     *)          as_fn_error "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5726                 ;;
5727 esac
5728 fi
5729
5730
5731 # Check whether --enable-gss_krb5_ccache_name was given.
5732 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5733   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5734 else
5735   check_gss_krb5_ccache_name=no
5736 fi
5737
5738
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5740 $as_echo_n "checking for library containing strerror... " >&6; }
5741 if test "${ac_cv_search_strerror+set}" = set; then :
5742   $as_echo_n "(cached) " >&6
5743 else
5744   ac_func_search_save_LIBS=$LIBS
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h.  */
5747
5748 /* Override any GCC internal prototype to avoid an error.
5749    Use char because int might match the return type of a GCC
5750    builtin and then its argument prototype would still apply.  */
5751 #ifdef __cplusplus
5752 extern "C"
5753 #endif
5754 char strerror ();
5755 int
5756 main ()
5757 {
5758 return strerror ();
5759   ;
5760   return 0;
5761 }
5762 _ACEOF
5763 for ac_lib in '' cposix; do
5764   if test -z "$ac_lib"; then
5765     ac_res="none required"
5766   else
5767     ac_res=-l$ac_lib
5768     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5769   fi
5770   if ac_fn_c_try_link "$LINENO"; then :
5771   ac_cv_search_strerror=$ac_res
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext \
5774     conftest$ac_exeext
5775   if test "${ac_cv_search_strerror+set}" = set; then :
5776   break
5777 fi
5778 done
5779 if test "${ac_cv_search_strerror+set}" = set; then :
5780
5781 else
5782   ac_cv_search_strerror=no
5783 fi
5784 rm conftest.$ac_ext
5785 LIBS=$ac_func_search_save_LIBS
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5788 $as_echo "$ac_cv_search_strerror" >&6; }
5789 ac_res=$ac_cv_search_strerror
5790 if test "$ac_res" != no; then :
5791   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5792
5793 fi
5794
5795 ac_ext=c
5796 ac_cpp='$CPP $CPPFLAGS'
5797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5801 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5802 # On Suns, sometimes $CPP names a directory.
5803 if test -n "$CPP" && test -d "$CPP"; then
5804   CPP=
5805 fi
5806 if test -z "$CPP"; then
5807   if test "${ac_cv_prog_CPP+set}" = set; then :
5808   $as_echo_n "(cached) " >&6
5809 else
5810       # Double quotes because CPP needs to be expanded
5811     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5812     do
5813       ac_preproc_ok=false
5814 for ac_c_preproc_warn_flag in '' yes
5815 do
5816   # Use a header file that comes with gcc, so configuring glibc
5817   # with a fresh cross-compiler works.
5818   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5819   # <limits.h> exists even on freestanding compilers.
5820   # On the NeXT, cc -E runs the code through the compiler's parser,
5821   # not just through cpp. "Syntax error" is here to catch this case.
5822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h.  */
5824 #ifdef __STDC__
5825 # include <limits.h>
5826 #else
5827 # include <assert.h>
5828 #endif
5829                      Syntax error
5830 _ACEOF
5831 if ac_fn_c_try_cpp "$LINENO"; then :
5832
5833 else
5834   # Broken: fails on valid input.
5835 continue
5836 fi
5837 rm -f conftest.err conftest.$ac_ext
5838
5839   # OK, works on sane cases.  Now check whether nonexistent headers
5840   # can be detected and how.
5841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h.  */
5843 #include <ac_nonexistent.h>
5844 _ACEOF
5845 if ac_fn_c_try_cpp "$LINENO"; then :
5846   # Broken: success on invalid input.
5847 continue
5848 else
5849   # Passes both tests.
5850 ac_preproc_ok=:
5851 break
5852 fi
5853 rm -f conftest.err conftest.$ac_ext
5854
5855 done
5856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5857 rm -f conftest.err conftest.$ac_ext
5858 if $ac_preproc_ok; then :
5859   break
5860 fi
5861
5862     done
5863     ac_cv_prog_CPP=$CPP
5864
5865 fi
5866   CPP=$ac_cv_prog_CPP
5867 else
5868   ac_cv_prog_CPP=$CPP
5869 fi
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5871 $as_echo "$CPP" >&6; }
5872 ac_preproc_ok=false
5873 for ac_c_preproc_warn_flag in '' yes
5874 do
5875   # Use a header file that comes with gcc, so configuring glibc
5876   # with a fresh cross-compiler works.
5877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5878   # <limits.h> exists even on freestanding compilers.
5879   # On the NeXT, cc -E runs the code through the compiler's parser,
5880   # not just through cpp. "Syntax error" is here to catch this case.
5881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h.  */
5883 #ifdef __STDC__
5884 # include <limits.h>
5885 #else
5886 # include <assert.h>
5887 #endif
5888                      Syntax error
5889 _ACEOF
5890 if ac_fn_c_try_cpp "$LINENO"; then :
5891
5892 else
5893   # Broken: fails on valid input.
5894 continue
5895 fi
5896 rm -f conftest.err conftest.$ac_ext
5897
5898   # OK, works on sane cases.  Now check whether nonexistent headers
5899   # can be detected and how.
5900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h.  */
5902 #include <ac_nonexistent.h>
5903 _ACEOF
5904 if ac_fn_c_try_cpp "$LINENO"; then :
5905   # Broken: success on invalid input.
5906 continue
5907 else
5908   # Passes both tests.
5909 ac_preproc_ok=:
5910 break
5911 fi
5912 rm -f conftest.err conftest.$ac_ext
5913
5914 done
5915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5916 rm -f conftest.err conftest.$ac_ext
5917 if $ac_preproc_ok; then :
5918
5919 else
5920   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5922 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5923 See \`config.log' for more details." "$LINENO" 5; }
5924 fi
5925
5926 ac_ext=c
5927 ac_cpp='$CPP $CPPFLAGS'
5928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5931
5932 if test -n "$ac_tool_prefix"; then
5933   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}ar; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_AR+set}" = set; then :
5938   $as_echo_n "(cached) " >&6
5939 else
5940   if test -n "$AR"; then
5941   ac_cv_prog_AR="$AR" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946   IFS=$as_save_IFS
5947   test -z "$as_dir" && as_dir=.
5948     for ac_exec_ext in '' $ac_executable_extensions; do
5949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950     ac_cv_prog_AR="${ac_tool_prefix}ar"
5951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952     break 2
5953   fi
5954 done
5955   done
5956 IFS=$as_save_IFS
5957
5958 fi
5959 fi
5960 AR=$ac_cv_prog_AR
5961 if test -n "$AR"; then
5962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5963 $as_echo "$AR" >&6; }
5964 else
5965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968
5969
5970 fi
5971 if test -z "$ac_cv_prog_AR"; then
5972   ac_ct_AR=$AR
5973   # Extract the first word of "ar", so it can be a program name with args.
5974 set dummy ar; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5978   $as_echo_n "(cached) " >&6
5979 else
5980   if test -n "$ac_ct_AR"; then
5981   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988     for ac_exec_ext in '' $ac_executable_extensions; do
5989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990     ac_cv_prog_ac_ct_AR="ar"
5991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992     break 2
5993   fi
5994 done
5995   done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6001 if test -n "$ac_ct_AR"; then
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6003 $as_echo "$ac_ct_AR" >&6; }
6004 else
6005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009   if test "x$ac_ct_AR" = x; then
6010     AR="false"
6011   else
6012     case $cross_compiling:$ac_tool_warned in
6013 yes:)
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6017 esac
6018     AR=$ac_ct_AR
6019   fi
6020 else
6021   AR="$ac_cv_prog_AR"
6022 fi
6023
6024 if test -n "$ac_tool_prefix"; then
6025   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6030   $as_echo_n "(cached) " >&6
6031 else
6032   if test -n "$RANLIB"; then
6033   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040     for ac_exec_ext in '' $ac_executable_extensions; do
6041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044     break 2
6045   fi
6046 done
6047   done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 RANLIB=$ac_cv_prog_RANLIB
6053 if test -n "$RANLIB"; then
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6055 $as_echo "$RANLIB" >&6; }
6056 else
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062 fi
6063 if test -z "$ac_cv_prog_RANLIB"; then
6064   ac_ct_RANLIB=$RANLIB
6065   # Extract the first word of "ranlib", so it can be a program name with args.
6066 set dummy ranlib; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6070   $as_echo_n "(cached) " >&6
6071 else
6072   if test -n "$ac_ct_RANLIB"; then
6073   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080     for ac_exec_ext in '' $ac_executable_extensions; do
6081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082     ac_cv_prog_ac_ct_RANLIB="ranlib"
6083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087   done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6093 if test -n "$ac_ct_RANLIB"; then
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6095 $as_echo "$ac_ct_RANLIB" >&6; }
6096 else
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101   if test "x$ac_ct_RANLIB" = x; then
6102     RANLIB=":"
6103   else
6104     case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110     RANLIB=$ac_ct_RANLIB
6111   fi
6112 else
6113   RANLIB="$ac_cv_prog_RANLIB"
6114 fi
6115
6116 if test X"$AR" = X"false"; then
6117     as_fn_error "the \"ar\" utility is required to build sudo" "$LINENO" 5
6118 fi
6119
6120 ac_aux_dir=
6121 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6122   for ac_t in install-sh install.sh shtool; do
6123     if test -f "$ac_dir/$ac_t"; then
6124       ac_aux_dir=$ac_dir
6125       ac_install_sh="$ac_aux_dir/$ac_t -c"
6126       break 2
6127     fi
6128   done
6129 done
6130 if test -z "$ac_aux_dir"; then
6131   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6132 fi
6133
6134 # These three variables are undocumented and unsupported,
6135 # and are intended to be withdrawn in a future Autoconf release.
6136 # They can cause serious problems if a builder's source tree is in a directory
6137 # whose full name contains unusual characters.
6138 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6139 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6140 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6141
6142
6143 # Make sure we can run config.sub.
6144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6145   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6146
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6148 $as_echo_n "checking build system type... " >&6; }
6149 if test "${ac_cv_build+set}" = set; then :
6150   $as_echo_n "(cached) " >&6
6151 else
6152   ac_build_alias=$build_alias
6153 test "x$ac_build_alias" = x &&
6154   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6155 test "x$ac_build_alias" = x &&
6156   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6158   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6159
6160 fi
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6162 $as_echo "$ac_cv_build" >&6; }
6163 case $ac_cv_build in
6164 *-*-*) ;;
6165 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6166 esac
6167 build=$ac_cv_build
6168 ac_save_IFS=$IFS; IFS='-'
6169 set x $ac_cv_build
6170 shift
6171 build_cpu=$1
6172 build_vendor=$2
6173 shift; shift
6174 # Remember, the first character of IFS is used to create $*,
6175 # except with old shells:
6176 build_os=$*
6177 IFS=$ac_save_IFS
6178 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6179
6180
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6182 $as_echo_n "checking host system type... " >&6; }
6183 if test "${ac_cv_host+set}" = set; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   if test "x$host_alias" = x; then
6187   ac_cv_host=$ac_cv_build
6188 else
6189   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6190     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6191 fi
6192
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6195 $as_echo "$ac_cv_host" >&6; }
6196 case $ac_cv_host in
6197 *-*-*) ;;
6198 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6199 esac
6200 host=$ac_cv_host
6201 ac_save_IFS=$IFS; IFS='-'
6202 set x $ac_cv_host
6203 shift
6204 host_cpu=$1
6205 host_vendor=$2
6206 shift; shift
6207 # Remember, the first character of IFS is used to create $*,
6208 # except with old shells:
6209 host_os=$*
6210 IFS=$ac_save_IFS
6211 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6212
6213
6214
6215
6216 case `pwd` in
6217   *\ * | *\     *)
6218     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6219 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6220 esac
6221
6222
6223
6224 macro_version='2.2.6b'
6225 macro_revision='1.3017'
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239 ltmain="$ac_aux_dir/ltmain.sh"
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6242 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6243 if test "${ac_cv_path_SED+set}" = set; then :
6244   $as_echo_n "(cached) " >&6
6245 else
6246             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6247      for ac_i in 1 2 3 4 5 6 7; do
6248        ac_script="$ac_script$as_nl$ac_script"
6249      done
6250      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6251      { ac_script=; unset ac_script;}
6252      if test -z "$SED"; then
6253   ac_path_SED_found=false
6254   # Loop through the user's path and test for each of PROGNAME-LIST
6255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260     for ac_prog in sed gsed; do
6261     for ac_exec_ext in '' $ac_executable_extensions; do
6262       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6263       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6264 # Check for GNU ac_path_SED and select it if it is found.
6265   # Check for GNU $ac_path_SED
6266 case `"$ac_path_SED" --version 2>&1` in
6267 *GNU*)
6268   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6269 *)
6270   ac_count=0
6271   $as_echo_n 0123456789 >"conftest.in"
6272   while :
6273   do
6274     cat "conftest.in" "conftest.in" >"conftest.tmp"
6275     mv "conftest.tmp" "conftest.in"
6276     cp "conftest.in" "conftest.nl"
6277     $as_echo '' >> "conftest.nl"
6278     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6279     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6280     as_fn_arith $ac_count + 1 && ac_count=$as_val
6281     if test $ac_count -gt ${ac_path_SED_max-0}; then
6282       # Best one so far, save it but keep looking for a better one
6283       ac_cv_path_SED="$ac_path_SED"
6284       ac_path_SED_max=$ac_count
6285     fi
6286     # 10*(2^10) chars as input seems more than enough
6287     test $ac_count -gt 10 && break
6288   done
6289   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6290 esac
6291
6292       $ac_path_SED_found && break 3
6293     done
6294   done
6295   done
6296 IFS=$as_save_IFS
6297   if test -z "$ac_cv_path_SED"; then
6298     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6299   fi
6300 else
6301   ac_cv_path_SED=$SED
6302 fi
6303
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6306 $as_echo "$ac_cv_path_SED" >&6; }
6307  SED="$ac_cv_path_SED"
6308   rm -f conftest.sed
6309
6310 test -z "$SED" && SED=sed
6311 Xsed="$SED -e 1s/^X//"
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6324 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6325 if test "${ac_cv_path_GREP+set}" = set; then :
6326   $as_echo_n "(cached) " >&6
6327 else
6328   if test -z "$GREP"; then
6329   ac_path_GREP_found=false
6330   # Loop through the user's path and test for each of PROGNAME-LIST
6331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6333 do
6334   IFS=$as_save_IFS
6335   test -z "$as_dir" && as_dir=.
6336     for ac_prog in grep ggrep; do
6337     for ac_exec_ext in '' $ac_executable_extensions; do
6338       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6339       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6340 # Check for GNU ac_path_GREP and select it if it is found.
6341   # Check for GNU $ac_path_GREP
6342 case `"$ac_path_GREP" --version 2>&1` in
6343 *GNU*)
6344   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6345 *)
6346   ac_count=0
6347   $as_echo_n 0123456789 >"conftest.in"
6348   while :
6349   do
6350     cat "conftest.in" "conftest.in" >"conftest.tmp"
6351     mv "conftest.tmp" "conftest.in"
6352     cp "conftest.in" "conftest.nl"
6353     $as_echo 'GREP' >> "conftest.nl"
6354     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6355     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6356     as_fn_arith $ac_count + 1 && ac_count=$as_val
6357     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6358       # Best one so far, save it but keep looking for a better one
6359       ac_cv_path_GREP="$ac_path_GREP"
6360       ac_path_GREP_max=$ac_count
6361     fi
6362     # 10*(2^10) chars as input seems more than enough
6363     test $ac_count -gt 10 && break
6364   done
6365   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6366 esac
6367
6368       $ac_path_GREP_found && break 3
6369     done
6370   done
6371   done
6372 IFS=$as_save_IFS
6373   if test -z "$ac_cv_path_GREP"; then
6374     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6375   fi
6376 else
6377   ac_cv_path_GREP=$GREP
6378 fi
6379
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6382 $as_echo "$ac_cv_path_GREP" >&6; }
6383  GREP="$ac_cv_path_GREP"
6384
6385
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6387 $as_echo_n "checking for egrep... " >&6; }
6388 if test "${ac_cv_path_EGREP+set}" = set; then :
6389   $as_echo_n "(cached) " >&6
6390 else
6391   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6392    then ac_cv_path_EGREP="$GREP -E"
6393    else
6394      if test -z "$EGREP"; then
6395   ac_path_EGREP_found=false
6396   # Loop through the user's path and test for each of PROGNAME-LIST
6397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402     for ac_prog in egrep; do
6403     for ac_exec_ext in '' $ac_executable_extensions; do
6404       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6405       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6406 # Check for GNU ac_path_EGREP and select it if it is found.
6407   # Check for GNU $ac_path_EGREP
6408 case `"$ac_path_EGREP" --version 2>&1` in
6409 *GNU*)
6410   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6411 *)
6412   ac_count=0
6413   $as_echo_n 0123456789 >"conftest.in"
6414   while :
6415   do
6416     cat "conftest.in" "conftest.in" >"conftest.tmp"
6417     mv "conftest.tmp" "conftest.in"
6418     cp "conftest.in" "conftest.nl"
6419     $as_echo 'EGREP' >> "conftest.nl"
6420     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6421     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6422     as_fn_arith $ac_count + 1 && ac_count=$as_val
6423     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6424       # Best one so far, save it but keep looking for a better one
6425       ac_cv_path_EGREP="$ac_path_EGREP"
6426       ac_path_EGREP_max=$ac_count
6427     fi
6428     # 10*(2^10) chars as input seems more than enough
6429     test $ac_count -gt 10 && break
6430   done
6431   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6432 esac
6433
6434       $ac_path_EGREP_found && break 3
6435     done
6436   done
6437   done
6438 IFS=$as_save_IFS
6439   if test -z "$ac_cv_path_EGREP"; then
6440     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6441   fi
6442 else
6443   ac_cv_path_EGREP=$EGREP
6444 fi
6445
6446    fi
6447 fi
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6449 $as_echo "$ac_cv_path_EGREP" >&6; }
6450  EGREP="$ac_cv_path_EGREP"
6451
6452
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6454 $as_echo_n "checking for fgrep... " >&6; }
6455 if test "${ac_cv_path_FGREP+set}" = set; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6459    then ac_cv_path_FGREP="$GREP -F"
6460    else
6461      if test -z "$FGREP"; then
6462   ac_path_FGREP_found=false
6463   # Loop through the user's path and test for each of PROGNAME-LIST
6464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469     for ac_prog in fgrep; do
6470     for ac_exec_ext in '' $ac_executable_extensions; do
6471       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6472       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6473 # Check for GNU ac_path_FGREP and select it if it is found.
6474   # Check for GNU $ac_path_FGREP
6475 case `"$ac_path_FGREP" --version 2>&1` in
6476 *GNU*)
6477   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6478 *)
6479   ac_count=0
6480   $as_echo_n 0123456789 >"conftest.in"
6481   while :
6482   do
6483     cat "conftest.in" "conftest.in" >"conftest.tmp"
6484     mv "conftest.tmp" "conftest.in"
6485     cp "conftest.in" "conftest.nl"
6486     $as_echo 'FGREP' >> "conftest.nl"
6487     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6488     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6489     as_fn_arith $ac_count + 1 && ac_count=$as_val
6490     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6491       # Best one so far, save it but keep looking for a better one
6492       ac_cv_path_FGREP="$ac_path_FGREP"
6493       ac_path_FGREP_max=$ac_count
6494     fi
6495     # 10*(2^10) chars as input seems more than enough
6496     test $ac_count -gt 10 && break
6497   done
6498   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6499 esac
6500
6501       $ac_path_FGREP_found && break 3
6502     done
6503   done
6504   done
6505 IFS=$as_save_IFS
6506   if test -z "$ac_cv_path_FGREP"; then
6507     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6508   fi
6509 else
6510   ac_cv_path_FGREP=$FGREP
6511 fi
6512
6513    fi
6514 fi
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6516 $as_echo "$ac_cv_path_FGREP" >&6; }
6517  FGREP="$ac_cv_path_FGREP"
6518
6519
6520 test -z "$GREP" && GREP=grep
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540 # Check whether --with-gnu-ld was given.
6541 if test "${with_gnu_ld+set}" = set; then :
6542   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6543 else
6544   with_gnu_ld=no
6545 fi
6546
6547 ac_prog=ld
6548 if test "$GCC" = yes; then
6549   # Check if gcc -print-prog-name=ld gives a path.
6550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6551 $as_echo_n "checking for ld used by $CC... " >&6; }
6552   case $host in
6553   *-*-mingw*)
6554     # gcc leaves a trailing carriage return which upsets mingw
6555     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6556   *)
6557     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6558   esac
6559   case $ac_prog in
6560     # Accept absolute paths.
6561     [\\/]* | ?:[\\/]*)
6562       re_direlt='/[^/][^/]*/\.\./'
6563       # Canonicalize the pathname of ld
6564       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6565       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6566         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6567       done
6568       test -z "$LD" && LD="$ac_prog"
6569       ;;
6570   "")
6571     # If it fails, then pretend we aren't using GCC.
6572     ac_prog=ld
6573     ;;
6574   *)
6575     # If it is relative, then search for the first ld in PATH.
6576     with_gnu_ld=unknown
6577     ;;
6578   esac
6579 elif test "$with_gnu_ld" = yes; then
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6581 $as_echo_n "checking for GNU ld... " >&6; }
6582 else
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6584 $as_echo_n "checking for non-GNU ld... " >&6; }
6585 fi
6586 if test "${lt_cv_path_LD+set}" = set; then :
6587   $as_echo_n "(cached) " >&6
6588 else
6589   if test -z "$LD"; then
6590   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6591   for ac_dir in $PATH; do
6592     IFS="$lt_save_ifs"
6593     test -z "$ac_dir" && ac_dir=.
6594     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6595       lt_cv_path_LD="$ac_dir/$ac_prog"
6596       # Check to see if the program is GNU ld.  I'd rather use --version,
6597       # but apparently some variants of GNU ld only accept -v.
6598       # Break only if it was the GNU/non-GNU ld that we prefer.
6599       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6600       *GNU* | *'with BFD'*)
6601         test "$with_gnu_ld" != no && break
6602         ;;
6603       *)
6604         test "$with_gnu_ld" != yes && break
6605         ;;
6606       esac
6607     fi
6608   done
6609   IFS="$lt_save_ifs"
6610 else
6611   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6612 fi
6613 fi
6614
6615 LD="$lt_cv_path_LD"
6616 if test -n "$LD"; then
6617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6618 $as_echo "$LD" >&6; }
6619 else
6620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6622 fi
6623 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6625 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6626 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6627   $as_echo_n "(cached) " >&6
6628 else
6629   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6630 case `$LD -v 2>&1 </dev/null` in
6631 *GNU* | *'with BFD'*)
6632   lt_cv_prog_gnu_ld=yes
6633   ;;
6634 *)
6635   lt_cv_prog_gnu_ld=no
6636   ;;
6637 esac
6638 fi
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6640 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6641 with_gnu_ld=$lt_cv_prog_gnu_ld
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6652 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6653 if test "${lt_cv_path_NM+set}" = set; then :
6654   $as_echo_n "(cached) " >&6
6655 else
6656   if test -n "$NM"; then
6657   # Let the user override the test.
6658   lt_cv_path_NM="$NM"
6659 else
6660   lt_nm_to_check="${ac_tool_prefix}nm"
6661   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6662     lt_nm_to_check="$lt_nm_to_check nm"
6663   fi
6664   for lt_tmp_nm in $lt_nm_to_check; do
6665     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6666     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6667       IFS="$lt_save_ifs"
6668       test -z "$ac_dir" && ac_dir=.
6669       tmp_nm="$ac_dir/$lt_tmp_nm"
6670       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6671         # Check to see if the nm accepts a BSD-compat flag.
6672         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6673         #   nm: unknown option "B" ignored
6674         # Tru64's nm complains that /dev/null is an invalid object file
6675         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6676         */dev/null* | *'Invalid file or object type'*)
6677           lt_cv_path_NM="$tmp_nm -B"
6678           break
6679           ;;
6680         *)
6681           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6682           */dev/null*)
6683             lt_cv_path_NM="$tmp_nm -p"
6684             break
6685             ;;
6686           *)
6687             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6688             continue # so that we can try to find one that supports BSD flags
6689             ;;
6690           esac
6691           ;;
6692         esac
6693       fi
6694     done
6695     IFS="$lt_save_ifs"
6696   done
6697   : ${lt_cv_path_NM=no}
6698 fi
6699 fi
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6701 $as_echo "$lt_cv_path_NM" >&6; }
6702 if test "$lt_cv_path_NM" != "no"; then
6703   NM="$lt_cv_path_NM"
6704 else
6705   # Didn't find any BSD compatible name lister, look for dumpbin.
6706   if test -n "$ac_tool_prefix"; then
6707   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6708   do
6709     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   if test -n "$DUMPBIN"; then
6717   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724     for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731   done
6732 IFS=$as_save_IFS
6733
6734 fi
6735 fi
6736 DUMPBIN=$ac_cv_prog_DUMPBIN
6737 if test -n "$DUMPBIN"; then
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6739 $as_echo "$DUMPBIN" >&6; }
6740 else
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6743 fi
6744
6745
6746     test -n "$DUMPBIN" && break
6747   done
6748 fi
6749 if test -z "$DUMPBIN"; then
6750   ac_ct_DUMPBIN=$DUMPBIN
6751   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6752 do
6753   # Extract the first word of "$ac_prog", so it can be a program name with args.
6754 set dummy $ac_prog; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   if test -n "$ac_ct_DUMPBIN"; then
6761   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766   IFS=$as_save_IFS
6767   test -z "$as_dir" && as_dir=.
6768     for ac_exec_ext in '' $ac_executable_extensions; do
6769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772     break 2
6773   fi
6774 done
6775   done
6776 IFS=$as_save_IFS
6777
6778 fi
6779 fi
6780 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6781 if test -n "$ac_ct_DUMPBIN"; then
6782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6783 $as_echo "$ac_ct_DUMPBIN" >&6; }
6784 else
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788
6789
6790   test -n "$ac_ct_DUMPBIN" && break
6791 done
6792
6793   if test "x$ac_ct_DUMPBIN" = x; then
6794     DUMPBIN=":"
6795   else
6796     case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802     DUMPBIN=$ac_ct_DUMPBIN
6803   fi
6804 fi
6805
6806
6807   if test "$DUMPBIN" != ":"; then
6808     NM="$DUMPBIN"
6809   fi
6810 fi
6811 test -z "$NM" && NM=nm
6812
6813
6814
6815
6816
6817
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6819 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6820 if test "${lt_cv_nm_interface+set}" = set; then :
6821   $as_echo_n "(cached) " >&6
6822 else
6823   lt_cv_nm_interface="BSD nm"
6824   echo "int some_variable = 0;" > conftest.$ac_ext
6825   (eval echo "\"\$as_me:6825: $ac_compile\"" >&5)
6826   (eval "$ac_compile" 2>conftest.err)
6827   cat conftest.err >&5
6828   (eval echo "\"\$as_me:6828: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6829   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6830   cat conftest.err >&5
6831   (eval echo "\"\$as_me:6831: output\"" >&5)
6832   cat conftest.out >&5
6833   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6834     lt_cv_nm_interface="MS dumpbin"
6835   fi
6836   rm -f conftest*
6837 fi
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6839 $as_echo "$lt_cv_nm_interface" >&6; }
6840
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6842 $as_echo_n "checking whether ln -s works... " >&6; }
6843 LN_S=$as_ln_s
6844 if test "$LN_S" = "ln -s"; then
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6846 $as_echo "yes" >&6; }
6847 else
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6849 $as_echo "no, using $LN_S" >&6; }
6850 fi
6851
6852 # find the maximum length of command line arguments
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6854 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6855 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6856   $as_echo_n "(cached) " >&6
6857 else
6858     i=0
6859   teststring="ABCD"
6860
6861   case $build_os in
6862   msdosdjgpp*)
6863     # On DJGPP, this test can blow up pretty badly due to problems in libc
6864     # (any single argument exceeding 2000 bytes causes a buffer overrun
6865     # during glob expansion).  Even if it were fixed, the result of this
6866     # check would be larger than it should be.
6867     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6868     ;;
6869
6870   gnu*)
6871     # Under GNU Hurd, this test is not required because there is
6872     # no limit to the length of command line arguments.
6873     # Libtool will interpret -1 as no limit whatsoever
6874     lt_cv_sys_max_cmd_len=-1;
6875     ;;
6876
6877   cygwin* | mingw* | cegcc*)
6878     # On Win9x/ME, this test blows up -- it succeeds, but takes
6879     # about 5 minutes as the teststring grows exponentially.
6880     # Worse, since 9x/ME are not pre-emptively multitasking,
6881     # you end up with a "frozen" computer, even though with patience
6882     # the test eventually succeeds (with a max line length of 256k).
6883     # Instead, let's just punt: use the minimum linelength reported by
6884     # all of the supported platforms: 8192 (on NT/2K/XP).
6885     lt_cv_sys_max_cmd_len=8192;
6886     ;;
6887
6888   amigaos*)
6889     # On AmigaOS with pdksh, this test takes hours, literally.
6890     # So we just punt and use a minimum line length of 8192.
6891     lt_cv_sys_max_cmd_len=8192;
6892     ;;
6893
6894   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6895     # This has been around since 386BSD, at least.  Likely further.
6896     if test -x /sbin/sysctl; then
6897       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6898     elif test -x /usr/sbin/sysctl; then
6899       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6900     else
6901       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6902     fi
6903     # And add a safety zone
6904     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6905     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6906     ;;
6907
6908   interix*)
6909     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6910     lt_cv_sys_max_cmd_len=196608
6911     ;;
6912
6913   osf*)
6914     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6915     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6916     # nice to cause kernel panics so lets avoid the loop below.
6917     # First set a reasonable default.
6918     lt_cv_sys_max_cmd_len=16384
6919     #
6920     if test -x /sbin/sysconfig; then
6921       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6922         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6923       esac
6924     fi
6925     ;;
6926   sco3.2v5*)
6927     lt_cv_sys_max_cmd_len=102400
6928     ;;
6929   sysv5* | sco5v6* | sysv4.2uw2*)
6930     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6931     if test -n "$kargmax"; then
6932       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6933     else
6934       lt_cv_sys_max_cmd_len=32768
6935     fi
6936     ;;
6937   *)
6938     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6939     if test -n "$lt_cv_sys_max_cmd_len"; then
6940       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6941       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6942     else
6943       # Make teststring a little bigger before we do anything with it.
6944       # a 1K string should be a reasonable start.
6945       for i in 1 2 3 4 5 6 7 8 ; do
6946         teststring=$teststring$teststring
6947       done
6948       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6949       # If test is not a shell built-in, we'll probably end up computing a
6950       # maximum length that is only half of the actual maximum length, but
6951       # we can't tell.
6952       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6953                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6954               test $i != 17 # 1/2 MB should be enough
6955       do
6956         i=`expr $i + 1`
6957         teststring=$teststring$teststring
6958       done
6959       # Only check the string length outside the loop.
6960       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6961       teststring=
6962       # Add a significant safety factor because C++ compilers can tack on
6963       # massive amounts of additional arguments before passing them to the
6964       # linker.  It appears as though 1/2 is a usable value.
6965       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6966     fi
6967     ;;
6968   esac
6969
6970 fi
6971
6972 if test -n $lt_cv_sys_max_cmd_len ; then
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6974 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6975 else
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6977 $as_echo "none" >&6; }
6978 fi
6979 max_cmd_len=$lt_cv_sys_max_cmd_len
6980
6981
6982
6983
6984
6985
6986 : ${CP="cp -f"}
6987 : ${MV="mv -f"}
6988 : ${RM="rm -f"}
6989
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6991 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6992 # Try some XSI features
6993 xsi_shell=no
6994 ( _lt_dummy="a/b/c"
6995   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6996       = c,a/b,, \
6997     && eval 'test $(( 1 + 1 )) -eq 2 \
6998     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6999   && xsi_shell=yes
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7001 $as_echo "$xsi_shell" >&6; }
7002
7003
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7005 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7006 lt_shell_append=no
7007 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7008     >/dev/null 2>&1 \
7009   && lt_shell_append=yes
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7011 $as_echo "$lt_shell_append" >&6; }
7012
7013
7014 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7015   lt_unset=unset
7016 else
7017   lt_unset=false
7018 fi
7019
7020
7021
7022
7023
7024 # test EBCDIC or ASCII
7025 case `echo X|tr X '\101'` in
7026  A) # ASCII based system
7027     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7028   lt_SP2NL='tr \040 \012'
7029   lt_NL2SP='tr \015\012 \040\040'
7030   ;;
7031  *) # EBCDIC based system
7032   lt_SP2NL='tr \100 \n'
7033   lt_NL2SP='tr \r\n \100\100'
7034   ;;
7035 esac
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7046 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7047 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7048   $as_echo_n "(cached) " >&6
7049 else
7050   lt_cv_ld_reload_flag='-r'
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7053 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7054 reload_flag=$lt_cv_ld_reload_flag
7055 case $reload_flag in
7056 "" | " "*) ;;
7057 *) reload_flag=" $reload_flag" ;;
7058 esac
7059 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7060 case $host_os in
7061   darwin*)
7062     if test "$GCC" = yes; then
7063       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7064     else
7065       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7066     fi
7067     ;;
7068 esac
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 if test -n "$ac_tool_prefix"; then
7079   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7084   $as_echo_n "(cached) " >&6
7085 else
7086   if test -n "$OBJDUMP"; then
7087   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094     for ac_exec_ext in '' $ac_executable_extensions; do
7095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101   done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 OBJDUMP=$ac_cv_prog_OBJDUMP
7107 if test -n "$OBJDUMP"; then
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7109 $as_echo "$OBJDUMP" >&6; }
7110 else
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115
7116 fi
7117 if test -z "$ac_cv_prog_OBJDUMP"; then
7118   ac_ct_OBJDUMP=$OBJDUMP
7119   # Extract the first word of "objdump", so it can be a program name with args.
7120 set dummy objdump; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7124   $as_echo_n "(cached) " >&6
7125 else
7126   if test -n "$ac_ct_OBJDUMP"; then
7127   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134     for ac_exec_ext in '' $ac_executable_extensions; do
7135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141   done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7147 if test -n "$ac_ct_OBJDUMP"; then
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7149 $as_echo "$ac_ct_OBJDUMP" >&6; }
7150 else
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155   if test "x$ac_ct_OBJDUMP" = x; then
7156     OBJDUMP="false"
7157   else
7158     case $cross_compiling:$ac_tool_warned in
7159 yes:)
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162 ac_tool_warned=yes ;;
7163 esac
7164     OBJDUMP=$ac_ct_OBJDUMP
7165   fi
7166 else
7167   OBJDUMP="$ac_cv_prog_OBJDUMP"
7168 fi
7169
7170 test -z "$OBJDUMP" && OBJDUMP=objdump
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7181 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7182 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7183   $as_echo_n "(cached) " >&6
7184 else
7185   lt_cv_file_magic_cmd='$MAGIC_CMD'
7186 lt_cv_file_magic_test_file=
7187 lt_cv_deplibs_check_method='unknown'
7188 # Need to set the preceding variable on all platforms that support
7189 # interlibrary dependencies.
7190 # 'none' -- dependencies not supported.
7191 # `unknown' -- same as none, but documents that we really don't know.
7192 # 'pass_all' -- all dependencies passed with no checks.
7193 # 'test_compile' -- check by making test program.
7194 # 'file_magic [[regex]]' -- check by looking for files in library path
7195 # which responds to the $file_magic_cmd with a given extended regex.
7196 # If you have `file' or equivalent on your system and you're not sure
7197 # whether `pass_all' will *always* work, you probably want this one.
7198
7199 case $host_os in
7200 aix[4-9]*)
7201   lt_cv_deplibs_check_method=pass_all
7202   ;;
7203
7204 beos*)
7205   lt_cv_deplibs_check_method=pass_all
7206   ;;
7207
7208 bsdi[45]*)
7209   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7210   lt_cv_file_magic_cmd='/usr/bin/file -L'
7211   lt_cv_file_magic_test_file=/shlib/libc.so
7212   ;;
7213
7214 cygwin*)
7215   # func_win32_libid is a shell function defined in ltmain.sh
7216   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7217   lt_cv_file_magic_cmd='func_win32_libid'
7218   ;;
7219
7220 mingw* | pw32*)
7221   # Base MSYS/MinGW do not provide the 'file' command needed by
7222   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7223   # unless we find 'file', for example because we are cross-compiling.
7224   if ( file / ) >/dev/null 2>&1; then
7225     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7226     lt_cv_file_magic_cmd='func_win32_libid'
7227   else
7228     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7229     lt_cv_file_magic_cmd='$OBJDUMP -f'
7230   fi
7231   ;;
7232
7233 cegcc)
7234   # use the weaker test based on 'objdump'. See mingw*.
7235   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7236   lt_cv_file_magic_cmd='$OBJDUMP -f'
7237   ;;
7238
7239 darwin* | rhapsody*)
7240   lt_cv_deplibs_check_method=pass_all
7241   ;;
7242
7243 freebsd* | dragonfly*)
7244   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7245     case $host_cpu in
7246     i*86 )
7247       # Not sure whether the presence of OpenBSD here was a mistake.
7248       # Let's accept both of them until this is cleared up.
7249       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7250       lt_cv_file_magic_cmd=/usr/bin/file
7251       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7252       ;;
7253     esac
7254   else
7255     lt_cv_deplibs_check_method=pass_all
7256   fi
7257   ;;
7258
7259 gnu*)
7260   lt_cv_deplibs_check_method=pass_all
7261   ;;
7262
7263 hpux10.20* | hpux11*)
7264   lt_cv_file_magic_cmd=/usr/bin/file
7265   case $host_cpu in
7266   ia64*)
7267     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7268     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7269     ;;
7270   hppa*64*)
7271     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7272     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7273     ;;
7274   *)
7275     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7276     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7277     ;;
7278   esac
7279   ;;
7280
7281 interix[3-9]*)
7282   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7283   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7284   ;;
7285
7286 irix5* | irix6* | nonstopux*)
7287   case $LD in
7288   *-32|*"-32 ") libmagic=32-bit;;
7289   *-n32|*"-n32 ") libmagic=N32;;
7290   *-64|*"-64 ") libmagic=64-bit;;
7291   *) libmagic=never-match;;
7292   esac
7293   lt_cv_deplibs_check_method=pass_all
7294   ;;
7295
7296 # This must be Linux ELF.
7297 linux* | k*bsd*-gnu)
7298   lt_cv_deplibs_check_method=pass_all
7299   ;;
7300
7301 netbsd*)
7302   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7303     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7304   else
7305     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7306   fi
7307   ;;
7308
7309 newos6*)
7310   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7311   lt_cv_file_magic_cmd=/usr/bin/file
7312   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7313   ;;
7314
7315 *nto* | *qnx*)
7316   lt_cv_deplibs_check_method=pass_all
7317   ;;
7318
7319 openbsd*)
7320   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7321     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7322   else
7323     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7324   fi
7325   ;;
7326
7327 osf3* | osf4* | osf5*)
7328   lt_cv_deplibs_check_method=pass_all
7329   ;;
7330
7331 rdos*)
7332   lt_cv_deplibs_check_method=pass_all
7333   ;;
7334
7335 solaris*)
7336   lt_cv_deplibs_check_method=pass_all
7337   ;;
7338
7339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7340   lt_cv_deplibs_check_method=pass_all
7341   ;;
7342
7343 sysv4 | sysv4.3*)
7344   case $host_vendor in
7345   motorola)
7346     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]'
7347     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7348     ;;
7349   ncr)
7350     lt_cv_deplibs_check_method=pass_all
7351     ;;
7352   sequent)
7353     lt_cv_file_magic_cmd='/bin/file'
7354     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7355     ;;
7356   sni)
7357     lt_cv_file_magic_cmd='/bin/file'
7358     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7359     lt_cv_file_magic_test_file=/lib/libc.so
7360     ;;
7361   siemens)
7362     lt_cv_deplibs_check_method=pass_all
7363     ;;
7364   pc)
7365     lt_cv_deplibs_check_method=pass_all
7366     ;;
7367   esac
7368   ;;
7369
7370 tpf*)
7371   lt_cv_deplibs_check_method=pass_all
7372   ;;
7373 esac
7374
7375 fi
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7377 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7378 file_magic_cmd=$lt_cv_file_magic_cmd
7379 deplibs_check_method=$lt_cv_deplibs_check_method
7380 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393 if test -n "$ac_tool_prefix"; then
7394   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7395 set dummy ${ac_tool_prefix}ar; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if test "${ac_cv_prog_AR+set}" = set; then :
7399   $as_echo_n "(cached) " >&6
7400 else
7401   if test -n "$AR"; then
7402   ac_cv_prog_AR="$AR" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409     for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_prog_AR="${ac_tool_prefix}ar"
7412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416   done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 AR=$ac_cv_prog_AR
7422 if test -n "$AR"; then
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7424 $as_echo "$AR" >&6; }
7425 else
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430
7431 fi
7432 if test -z "$ac_cv_prog_AR"; then
7433   ac_ct_AR=$AR
7434   # Extract the first word of "ar", so it can be a program name with args.
7435 set dummy ar; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   if test -n "$ac_ct_AR"; then
7442   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449     for ac_exec_ext in '' $ac_executable_extensions; do
7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451     ac_cv_prog_ac_ct_AR="ar"
7452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456   done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7462 if test -n "$ac_ct_AR"; then
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7464 $as_echo "$ac_ct_AR" >&6; }
7465 else
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470   if test "x$ac_ct_AR" = x; then
7471     AR="false"
7472   else
7473     case $cross_compiling:$ac_tool_warned in
7474 yes:)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7478 esac
7479     AR=$ac_ct_AR
7480   fi
7481 else
7482   AR="$ac_cv_prog_AR"
7483 fi
7484
7485 test -z "$AR" && AR=ar
7486 test -z "$AR_FLAGS" && AR_FLAGS=cru
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 if test -n "$ac_tool_prefix"; then
7499   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}strip; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if test "${ac_cv_prog_STRIP+set}" = set; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   if test -n "$STRIP"; then
7507   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514     for ac_exec_ext in '' $ac_executable_extensions; do
7515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7516     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521   done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 STRIP=$ac_cv_prog_STRIP
7527 if test -n "$STRIP"; then
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7529 $as_echo "$STRIP" >&6; }
7530 else
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535
7536 fi
7537 if test -z "$ac_cv_prog_STRIP"; then
7538   ac_ct_STRIP=$STRIP
7539   # Extract the first word of "strip", so it can be a program name with args.
7540 set dummy strip; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7544   $as_echo_n "(cached) " >&6
7545 else
7546   if test -n "$ac_ct_STRIP"; then
7547   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552   IFS=$as_save_IFS
7553   test -z "$as_dir" && as_dir=.
7554     for ac_exec_ext in '' $ac_executable_extensions; do
7555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556     ac_cv_prog_ac_ct_STRIP="strip"
7557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558     break 2
7559   fi
7560 done
7561   done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7567 if test -n "$ac_ct_STRIP"; then
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7569 $as_echo "$ac_ct_STRIP" >&6; }
7570 else
7571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575   if test "x$ac_ct_STRIP" = x; then
7576     STRIP=":"
7577   else
7578     case $cross_compiling:$ac_tool_warned in
7579 yes:)
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7583 esac
7584     STRIP=$ac_ct_STRIP
7585   fi
7586 else
7587   STRIP="$ac_cv_prog_STRIP"
7588 fi
7589
7590 test -z "$STRIP" && STRIP=:
7591
7592
7593
7594
7595
7596
7597 if test -n "$ac_tool_prefix"; then
7598   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7603   $as_echo_n "(cached) " >&6
7604 else
7605   if test -n "$RANLIB"; then
7606   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611   IFS=$as_save_IFS
7612   test -z "$as_dir" && as_dir=.
7613     for ac_exec_ext in '' $ac_executable_extensions; do
7614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617     break 2
7618   fi
7619 done
7620   done
7621 IFS=$as_save_IFS
7622
7623 fi
7624 fi
7625 RANLIB=$ac_cv_prog_RANLIB
7626 if test -n "$RANLIB"; then
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7628 $as_echo "$RANLIB" >&6; }
7629 else
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633
7634
7635 fi
7636 if test -z "$ac_cv_prog_RANLIB"; then
7637   ac_ct_RANLIB=$RANLIB
7638   # Extract the first word of "ranlib", so it can be a program name with args.
7639 set dummy ranlib; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   if test -n "$ac_ct_RANLIB"; then
7646   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651   IFS=$as_save_IFS
7652   test -z "$as_dir" && as_dir=.
7653     for ac_exec_ext in '' $ac_executable_extensions; do
7654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655     ac_cv_prog_ac_ct_RANLIB="ranlib"
7656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657     break 2
7658   fi
7659 done
7660   done
7661 IFS=$as_save_IFS
7662
7663 fi
7664 fi
7665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7666 if test -n "$ac_ct_RANLIB"; then
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7668 $as_echo "$ac_ct_RANLIB" >&6; }
7669 else
7670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7672 fi
7673
7674   if test "x$ac_ct_RANLIB" = x; then
7675     RANLIB=":"
7676   else
7677     case $cross_compiling:$ac_tool_warned in
7678 yes:)
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7681 ac_tool_warned=yes ;;
7682 esac
7683     RANLIB=$ac_ct_RANLIB
7684   fi
7685 else
7686   RANLIB="$ac_cv_prog_RANLIB"
7687 fi
7688
7689 test -z "$RANLIB" && RANLIB=:
7690
7691
7692
7693
7694
7695
7696 # Determine commands to create old-style static archives.
7697 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7698 old_postinstall_cmds='chmod 644 $oldlib'
7699 old_postuninstall_cmds=
7700
7701 if test -n "$RANLIB"; then
7702   case $host_os in
7703   openbsd*)
7704     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7705     ;;
7706   *)
7707     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7708     ;;
7709   esac
7710   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7711 fi
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746 # If no C compiler was specified, use CC.
7747 LTCC=${LTCC-"$CC"}
7748
7749 # If no C compiler flags were specified, use CFLAGS.
7750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7751
7752 # Allow CC to be a program name with arguments.
7753 compiler=$CC
7754
7755
7756 # Check for command to grab the raw symbol name followed by C symbol from nm.
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7758 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7759 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762
7763 # These are sane defaults that work on at least a few old systems.
7764 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7765
7766 # Character class describing NM global symbol codes.
7767 symcode='[BCDEGRST]'
7768
7769 # Regexp to match symbols that can be accessed directly from C.
7770 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7771
7772 # Define system-specific variables.
7773 case $host_os in
7774 aix*)
7775   symcode='[BCDT]'
7776   ;;
7777 cygwin* | mingw* | pw32* | cegcc*)
7778   symcode='[ABCDGISTW]'
7779   ;;
7780 hpux*)
7781   if test "$host_cpu" = ia64; then
7782     symcode='[ABCDEGRST]'
7783   fi
7784   ;;
7785 irix* | nonstopux*)
7786   symcode='[BCDEGRST]'
7787   ;;
7788 osf*)
7789   symcode='[BCDEGQRST]'
7790   ;;
7791 solaris*)
7792   symcode='[BDRT]'
7793   ;;
7794 sco3.2v5*)
7795   symcode='[DT]'
7796   ;;
7797 sysv4.2uw2*)
7798   symcode='[DT]'
7799   ;;
7800 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7801   symcode='[ABDT]'
7802   ;;
7803 sysv4)
7804   symcode='[DFNSTU]'
7805   ;;
7806 esac
7807
7808 # If we're using GNU nm, then use its standard symbol codes.
7809 case `$NM -V 2>&1` in
7810 *GNU* | *'with BFD'*)
7811   symcode='[ABCDGIRSTW]' ;;
7812 esac
7813
7814 # Transform an extracted symbol line into a proper C declaration.
7815 # Some systems (esp. on ia64) link data and code symbols differently,
7816 # so use this general approach.
7817 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7818
7819 # Transform an extracted symbol line into symbol name and symbol address
7820 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7821 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'"
7822
7823 # Handle CRLF in mingw tool chain
7824 opt_cr=
7825 case $build_os in
7826 mingw*)
7827   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7828   ;;
7829 esac
7830
7831 # Try without a prefix underscore, then with it.
7832 for ac_symprfx in "" "_"; do
7833
7834   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7835   symxfrm="\\1 $ac_symprfx\\2 \\2"
7836
7837   # Write the raw and C identifiers.
7838   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7839     # Fake it for dumpbin and say T for any non-static function
7840     # and D for any global variable.
7841     # Also find C++ and __fastcall symbols from MSVC++,
7842     # which start with @ or ?.
7843     lt_cv_sys_global_symbol_pipe="$AWK '"\
7844 "     {last_section=section; section=\$ 3};"\
7845 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7846 "     \$ 0!~/External *\|/{next};"\
7847 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7848 "     {if(hide[section]) next};"\
7849 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7850 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7851 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7852 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7853 "     ' prfx=^$ac_symprfx"
7854   else
7855     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7856   fi
7857
7858   # Check to see that the pipe works correctly.
7859   pipe_works=no
7860
7861   rm -f conftest*
7862   cat > conftest.$ac_ext <<_LT_EOF
7863 #ifdef __cplusplus
7864 extern "C" {
7865 #endif
7866 char nm_test_var;
7867 void nm_test_func(void);
7868 void nm_test_func(void){}
7869 #ifdef __cplusplus
7870 }
7871 #endif
7872 int main(){nm_test_var='a';nm_test_func();return(0);}
7873 _LT_EOF
7874
7875   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876   (eval $ac_compile) 2>&5
7877   ac_status=$?
7878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879   test $ac_status = 0; }; then
7880     # Now try to grab the symbols.
7881     nlist=conftest.nm
7882     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7883   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7884   ac_status=$?
7885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7886   test $ac_status = 0; } && test -s "$nlist"; then
7887       # Try sorting and uniquifying the output.
7888       if sort "$nlist" | uniq > "$nlist"T; then
7889         mv -f "$nlist"T "$nlist"
7890       else
7891         rm -f "$nlist"T
7892       fi
7893
7894       # Make sure that we snagged all the symbols we need.
7895       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7896         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7897           cat <<_LT_EOF > conftest.$ac_ext
7898 #ifdef __cplusplus
7899 extern "C" {
7900 #endif
7901
7902 _LT_EOF
7903           # Now generate the symbol file.
7904           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7905
7906           cat <<_LT_EOF >> conftest.$ac_ext
7907
7908 /* The mapping between symbol names and symbols.  */
7909 const struct {
7910   const char *name;
7911   void       *address;
7912 }
7913 lt__PROGRAM__LTX_preloaded_symbols[] =
7914 {
7915   { "@PROGRAM@", (void *) 0 },
7916 _LT_EOF
7917           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7918           cat <<\_LT_EOF >> conftest.$ac_ext
7919   {0, (void *) 0}
7920 };
7921
7922 /* This works around a problem in FreeBSD linker */
7923 #ifdef FREEBSD_WORKAROUND
7924 static const void *lt_preloaded_setup() {
7925   return lt__PROGRAM__LTX_preloaded_symbols;
7926 }
7927 #endif
7928
7929 #ifdef __cplusplus
7930 }
7931 #endif
7932 _LT_EOF
7933           # Now try linking the two files.
7934           mv conftest.$ac_objext conftstm.$ac_objext
7935           lt_save_LIBS="$LIBS"
7936           lt_save_CFLAGS="$CFLAGS"
7937           LIBS="conftstm.$ac_objext"
7938           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7939           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7940   (eval $ac_link) 2>&5
7941   ac_status=$?
7942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7943   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7944             pipe_works=yes
7945           fi
7946           LIBS="$lt_save_LIBS"
7947           CFLAGS="$lt_save_CFLAGS"
7948         else
7949           echo "cannot find nm_test_func in $nlist" >&5
7950         fi
7951       else
7952         echo "cannot find nm_test_var in $nlist" >&5
7953       fi
7954     else
7955       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7956     fi
7957   else
7958     echo "$progname: failed program was:" >&5
7959     cat conftest.$ac_ext >&5
7960   fi
7961   rm -rf conftest* conftst*
7962
7963   # Do not use the global_symbol_pipe unless it works.
7964   if test "$pipe_works" = yes; then
7965     break
7966   else
7967     lt_cv_sys_global_symbol_pipe=
7968   fi
7969 done
7970
7971 fi
7972
7973 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7974   lt_cv_sys_global_symbol_to_cdecl=
7975 fi
7976 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7978 $as_echo "failed" >&6; }
7979 else
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7981 $as_echo "ok" >&6; }
7982 fi
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005 # Check whether --enable-libtool-lock was given.
8006 if test "${enable_libtool_lock+set}" = set; then :
8007   enableval=$enable_libtool_lock;
8008 fi
8009
8010 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8011
8012 # Some flags need to be propagated to the compiler or linker for good
8013 # libtool support.
8014 case $host in
8015 ia64-*-hpux*)
8016   # Find out which ABI we are using.
8017   echo 'int i;' > conftest.$ac_ext
8018   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8019   (eval $ac_compile) 2>&5
8020   ac_status=$?
8021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8022   test $ac_status = 0; }; then
8023     case `/usr/bin/file conftest.$ac_objext` in
8024       *ELF-32*)
8025         HPUX_IA64_MODE="32"
8026         ;;
8027       *ELF-64*)
8028         HPUX_IA64_MODE="64"
8029         ;;
8030     esac
8031   fi
8032   rm -rf conftest*
8033   ;;
8034 *-*-irix6*)
8035   # Find out which ABI we are using.
8036   echo '#line 8036 "configure"' > conftest.$ac_ext
8037   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8038   (eval $ac_compile) 2>&5
8039   ac_status=$?
8040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041   test $ac_status = 0; }; then
8042     if test "$lt_cv_prog_gnu_ld" = yes; then
8043       case `/usr/bin/file conftest.$ac_objext` in
8044         *32-bit*)
8045           LD="${LD-ld} -melf32bsmip"
8046           ;;
8047         *N32*)
8048           LD="${LD-ld} -melf32bmipn32"
8049           ;;
8050         *64-bit*)
8051           LD="${LD-ld} -melf64bmip"
8052         ;;
8053       esac
8054     else
8055       case `/usr/bin/file conftest.$ac_objext` in
8056         *32-bit*)
8057           LD="${LD-ld} -32"
8058           ;;
8059         *N32*)
8060           LD="${LD-ld} -n32"
8061           ;;
8062         *64-bit*)
8063           LD="${LD-ld} -64"
8064           ;;
8065       esac
8066     fi
8067   fi
8068   rm -rf conftest*
8069   ;;
8070
8071 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8072 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8073   # Find out which ABI we are using.
8074   echo 'int i;' > conftest.$ac_ext
8075   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8076   (eval $ac_compile) 2>&5
8077   ac_status=$?
8078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8079   test $ac_status = 0; }; then
8080     case `/usr/bin/file conftest.o` in
8081       *32-bit*)
8082         case $host in
8083           x86_64-*kfreebsd*-gnu)
8084             LD="${LD-ld} -m elf_i386_fbsd"
8085             ;;
8086           x86_64-*linux*)
8087             LD="${LD-ld} -m elf_i386"
8088             ;;
8089           ppc64-*linux*|powerpc64-*linux*)
8090             LD="${LD-ld} -m elf32ppclinux"
8091             ;;
8092           s390x-*linux*)
8093             LD="${LD-ld} -m elf_s390"
8094             ;;
8095           sparc64-*linux*)
8096             LD="${LD-ld} -m elf32_sparc"
8097             ;;
8098         esac
8099         ;;
8100       *64-bit*)
8101         case $host in
8102           x86_64-*kfreebsd*-gnu)
8103             LD="${LD-ld} -m elf_x86_64_fbsd"
8104             ;;
8105           x86_64-*linux*)
8106             LD="${LD-ld} -m elf_x86_64"
8107             ;;
8108           ppc*-*linux*|powerpc*-*linux*)
8109             LD="${LD-ld} -m elf64ppc"
8110             ;;
8111           s390*-*linux*|s390*-*tpf*)
8112             LD="${LD-ld} -m elf64_s390"
8113             ;;
8114           sparc*-*linux*)
8115             LD="${LD-ld} -m elf64_sparc"
8116             ;;
8117         esac
8118         ;;
8119     esac
8120   fi
8121   rm -rf conftest*
8122   ;;
8123
8124 *-*-sco3.2v5*)
8125   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8126   SAVE_CFLAGS="$CFLAGS"
8127   CFLAGS="$CFLAGS -belf"
8128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8129 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8130 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8131   $as_echo_n "(cached) " >&6
8132 else
8133   ac_ext=c
8134 ac_cpp='$CPP $CPPFLAGS'
8135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8138
8139      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h.  */
8141
8142 int
8143 main ()
8144 {
8145
8146   ;
8147   return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_link "$LINENO"; then :
8151   lt_cv_cc_needs_belf=yes
8152 else
8153   lt_cv_cc_needs_belf=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext \
8156     conftest$ac_exeext conftest.$ac_ext
8157      ac_ext=c
8158 ac_cpp='$CPP $CPPFLAGS'
8159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8162
8163 fi
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8165 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8166   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8167     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8168     CFLAGS="$SAVE_CFLAGS"
8169   fi
8170   ;;
8171 sparc*-*solaris*)
8172   # Find out which ABI we are using.
8173   echo 'int i;' > conftest.$ac_ext
8174   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8175   (eval $ac_compile) 2>&5
8176   ac_status=$?
8177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8178   test $ac_status = 0; }; then
8179     case `/usr/bin/file conftest.o` in
8180     *64-bit*)
8181       case $lt_cv_prog_gnu_ld in
8182       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8183       *)
8184         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8185           LD="${LD-ld} -64"
8186         fi
8187         ;;
8188       esac
8189       ;;
8190     esac
8191   fi
8192   rm -rf conftest*
8193   ;;
8194 esac
8195
8196 need_locks="$enable_libtool_lock"
8197
8198
8199   case $host_os in
8200     rhapsody* | darwin*)
8201     if test -n "$ac_tool_prefix"; then
8202   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8203 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8207   $as_echo_n "(cached) " >&6
8208 else
8209   if test -n "$DSYMUTIL"; then
8210   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215   IFS=$as_save_IFS
8216   test -z "$as_dir" && as_dir=.
8217     for ac_exec_ext in '' $ac_executable_extensions; do
8218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221     break 2
8222   fi
8223 done
8224   done
8225 IFS=$as_save_IFS
8226
8227 fi
8228 fi
8229 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8230 if test -n "$DSYMUTIL"; then
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8232 $as_echo "$DSYMUTIL" >&6; }
8233 else
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237
8238
8239 fi
8240 if test -z "$ac_cv_prog_DSYMUTIL"; then
8241   ac_ct_DSYMUTIL=$DSYMUTIL
8242   # Extract the first word of "dsymutil", so it can be a program name with args.
8243 set dummy dsymutil; ac_word=$2
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 $as_echo_n "checking for $ac_word... " >&6; }
8246 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8247   $as_echo_n "(cached) " >&6
8248 else
8249   if test -n "$ac_ct_DSYMUTIL"; then
8250   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8251 else
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253 for as_dir in $PATH
8254 do
8255   IFS=$as_save_IFS
8256   test -z "$as_dir" && as_dir=.
8257     for ac_exec_ext in '' $ac_executable_extensions; do
8258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8259     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261     break 2
8262   fi
8263 done
8264   done
8265 IFS=$as_save_IFS
8266
8267 fi
8268 fi
8269 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8270 if test -n "$ac_ct_DSYMUTIL"; then
8271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8272 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8273 else
8274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 $as_echo "no" >&6; }
8276 fi
8277
8278   if test "x$ac_ct_DSYMUTIL" = x; then
8279     DSYMUTIL=":"
8280   else
8281     case $cross_compiling:$ac_tool_warned in
8282 yes:)
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8285 ac_tool_warned=yes ;;
8286 esac
8287     DSYMUTIL=$ac_ct_DSYMUTIL
8288   fi
8289 else
8290   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8291 fi
8292
8293     if test -n "$ac_tool_prefix"; then
8294   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8295 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8299   $as_echo_n "(cached) " >&6
8300 else
8301   if test -n "$NMEDIT"; then
8302   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307   IFS=$as_save_IFS
8308   test -z "$as_dir" && as_dir=.
8309     for ac_exec_ext in '' $ac_executable_extensions; do
8310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313     break 2
8314   fi
8315 done
8316   done
8317 IFS=$as_save_IFS
8318
8319 fi
8320 fi
8321 NMEDIT=$ac_cv_prog_NMEDIT
8322 if test -n "$NMEDIT"; then
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8324 $as_echo "$NMEDIT" >&6; }
8325 else
8326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 fi
8329
8330
8331 fi
8332 if test -z "$ac_cv_prog_NMEDIT"; then
8333   ac_ct_NMEDIT=$NMEDIT
8334   # Extract the first word of "nmedit", so it can be a program name with args.
8335 set dummy nmedit; ac_word=$2
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337 $as_echo_n "checking for $ac_word... " >&6; }
8338 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8339   $as_echo_n "(cached) " >&6
8340 else
8341   if test -n "$ac_ct_NMEDIT"; then
8342   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8343 else
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8346 do
8347   IFS=$as_save_IFS
8348   test -z "$as_dir" && as_dir=.
8349     for ac_exec_ext in '' $ac_executable_extensions; do
8350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353     break 2
8354   fi
8355 done
8356   done
8357 IFS=$as_save_IFS
8358
8359 fi
8360 fi
8361 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8362 if test -n "$ac_ct_NMEDIT"; then
8363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8364 $as_echo "$ac_ct_NMEDIT" >&6; }
8365 else
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8368 fi
8369
8370   if test "x$ac_ct_NMEDIT" = x; then
8371     NMEDIT=":"
8372   else
8373     case $cross_compiling:$ac_tool_warned in
8374 yes:)
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8377 ac_tool_warned=yes ;;
8378 esac
8379     NMEDIT=$ac_ct_NMEDIT
8380   fi
8381 else
8382   NMEDIT="$ac_cv_prog_NMEDIT"
8383 fi
8384
8385     if test -n "$ac_tool_prefix"; then
8386   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8387 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if test "${ac_cv_prog_LIPO+set}" = set; then :
8391   $as_echo_n "(cached) " >&6
8392 else
8393   if test -n "$LIPO"; then
8394   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399   IFS=$as_save_IFS
8400   test -z "$as_dir" && as_dir=.
8401     for ac_exec_ext in '' $ac_executable_extensions; do
8402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405     break 2
8406   fi
8407 done
8408   done
8409 IFS=$as_save_IFS
8410
8411 fi
8412 fi
8413 LIPO=$ac_cv_prog_LIPO
8414 if test -n "$LIPO"; then
8415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8416 $as_echo "$LIPO" >&6; }
8417 else
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421
8422
8423 fi
8424 if test -z "$ac_cv_prog_LIPO"; then
8425   ac_ct_LIPO=$LIPO
8426   # Extract the first word of "lipo", so it can be a program name with args.
8427 set dummy lipo; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433   if test -n "$ac_ct_LIPO"; then
8434   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8438 do
8439   IFS=$as_save_IFS
8440   test -z "$as_dir" && as_dir=.
8441     for ac_exec_ext in '' $ac_executable_extensions; do
8442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443     ac_cv_prog_ac_ct_LIPO="lipo"
8444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445     break 2
8446   fi
8447 done
8448   done
8449 IFS=$as_save_IFS
8450
8451 fi
8452 fi
8453 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8454 if test -n "$ac_ct_LIPO"; then
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8456 $as_echo "$ac_ct_LIPO" >&6; }
8457 else
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8460 fi
8461
8462   if test "x$ac_ct_LIPO" = x; then
8463     LIPO=":"
8464   else
8465     case $cross_compiling:$ac_tool_warned in
8466 yes:)
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469 ac_tool_warned=yes ;;
8470 esac
8471     LIPO=$ac_ct_LIPO
8472   fi
8473 else
8474   LIPO="$ac_cv_prog_LIPO"
8475 fi
8476
8477     if test -n "$ac_tool_prefix"; then
8478   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8479 set dummy ${ac_tool_prefix}otool; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8483   $as_echo_n "(cached) " >&6
8484 else
8485   if test -n "$OTOOL"; then
8486   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8487 else
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8490 do
8491   IFS=$as_save_IFS
8492   test -z "$as_dir" && as_dir=.
8493     for ac_exec_ext in '' $ac_executable_extensions; do
8494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497     break 2
8498   fi
8499 done
8500   done
8501 IFS=$as_save_IFS
8502
8503 fi
8504 fi
8505 OTOOL=$ac_cv_prog_OTOOL
8506 if test -n "$OTOOL"; then
8507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8508 $as_echo "$OTOOL" >&6; }
8509 else
8510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8512 fi
8513
8514
8515 fi
8516 if test -z "$ac_cv_prog_OTOOL"; then
8517   ac_ct_OTOOL=$OTOOL
8518   # Extract the first word of "otool", so it can be a program name with args.
8519 set dummy otool; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 $as_echo_n "checking for $ac_word... " >&6; }
8522 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8523   $as_echo_n "(cached) " >&6
8524 else
8525   if test -n "$ac_ct_OTOOL"; then
8526   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8527 else
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8530 do
8531   IFS=$as_save_IFS
8532   test -z "$as_dir" && as_dir=.
8533     for ac_exec_ext in '' $ac_executable_extensions; do
8534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8535     ac_cv_prog_ac_ct_OTOOL="otool"
8536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537     break 2
8538   fi
8539 done
8540   done
8541 IFS=$as_save_IFS
8542
8543 fi
8544 fi
8545 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8546 if test -n "$ac_ct_OTOOL"; then
8547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8548 $as_echo "$ac_ct_OTOOL" >&6; }
8549 else
8550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8552 fi
8553
8554   if test "x$ac_ct_OTOOL" = x; then
8555     OTOOL=":"
8556   else
8557     case $cross_compiling:$ac_tool_warned in
8558 yes:)
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8561 ac_tool_warned=yes ;;
8562 esac
8563     OTOOL=$ac_ct_OTOOL
8564   fi
8565 else
8566   OTOOL="$ac_cv_prog_OTOOL"
8567 fi
8568
8569     if test -n "$ac_tool_prefix"; then
8570   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8571 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577   if test -n "$OTOOL64"; then
8578   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8579 else
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8582 do
8583   IFS=$as_save_IFS
8584   test -z "$as_dir" && as_dir=.
8585     for ac_exec_ext in '' $ac_executable_extensions; do
8586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8587     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589     break 2
8590   fi
8591 done
8592   done
8593 IFS=$as_save_IFS
8594
8595 fi
8596 fi
8597 OTOOL64=$ac_cv_prog_OTOOL64
8598 if test -n "$OTOOL64"; then
8599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8600 $as_echo "$OTOOL64" >&6; }
8601 else
8602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8604 fi
8605
8606
8607 fi
8608 if test -z "$ac_cv_prog_OTOOL64"; then
8609   ac_ct_OTOOL64=$OTOOL64
8610   # Extract the first word of "otool64", so it can be a program name with args.
8611 set dummy otool64; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   if test -n "$ac_ct_OTOOL64"; then
8618   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8622 do
8623   IFS=$as_save_IFS
8624   test -z "$as_dir" && as_dir=.
8625     for ac_exec_ext in '' $ac_executable_extensions; do
8626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627     ac_cv_prog_ac_ct_OTOOL64="otool64"
8628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629     break 2
8630   fi
8631 done
8632   done
8633 IFS=$as_save_IFS
8634
8635 fi
8636 fi
8637 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8638 if test -n "$ac_ct_OTOOL64"; then
8639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8640 $as_echo "$ac_ct_OTOOL64" >&6; }
8641 else
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8644 fi
8645
8646   if test "x$ac_ct_OTOOL64" = x; then
8647     OTOOL64=":"
8648   else
8649     case $cross_compiling:$ac_tool_warned in
8650 yes:)
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653 ac_tool_warned=yes ;;
8654 esac
8655     OTOOL64=$ac_ct_OTOOL64
8656   fi
8657 else
8658   OTOOL64="$ac_cv_prog_OTOOL64"
8659 fi
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8688 $as_echo_n "checking for -single_module linker flag... " >&6; }
8689 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8690   $as_echo_n "(cached) " >&6
8691 else
8692   lt_cv_apple_cc_single_mod=no
8693       if test -z "${LT_MULTI_MODULE}"; then
8694         # By default we will add the -single_module flag. You can override
8695         # by either setting the environment variable LT_MULTI_MODULE
8696         # non-empty at configure time, or by adding -multi_module to the
8697         # link flags.
8698         rm -rf libconftest.dylib*
8699         echo "int foo(void){return 1;}" > conftest.c
8700         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8701 -dynamiclib -Wl,-single_module conftest.c" >&5
8702         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8703           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8704         _lt_result=$?
8705         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8706           lt_cv_apple_cc_single_mod=yes
8707         else
8708           cat conftest.err >&5
8709         fi
8710         rm -rf libconftest.dylib*
8711         rm -f conftest.*
8712       fi
8713 fi
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8715 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8717 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8718 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8719   $as_echo_n "(cached) " >&6
8720 else
8721   lt_cv_ld_exported_symbols_list=no
8722       save_LDFLAGS=$LDFLAGS
8723       echo "_main" > conftest.sym
8724       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8725       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h.  */
8727
8728 int
8729 main ()
8730 {
8731
8732   ;
8733   return 0;
8734 }
8735 _ACEOF
8736 if ac_fn_c_try_link "$LINENO"; then :
8737   lt_cv_ld_exported_symbols_list=yes
8738 else
8739   lt_cv_ld_exported_symbols_list=no
8740 fi
8741 rm -f core conftest.err conftest.$ac_objext \
8742     conftest$ac_exeext conftest.$ac_ext
8743         LDFLAGS="$save_LDFLAGS"
8744
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8747 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8748     case $host_os in
8749     rhapsody* | darwin1.[012])
8750       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8751     darwin1.*)
8752       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8753     darwin*) # darwin 5.x on
8754       # if running on 10.5 or later, the deployment target defaults
8755       # to the OS version, if on x86, and 10.4, the deployment
8756       # target defaults to 10.4. Don't you love it?
8757       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8758         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8759           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8760         10.[012]*)
8761           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8762         10.*)
8763           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8764       esac
8765     ;;
8766   esac
8767     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8768       _lt_dar_single_mod='$single_module'
8769     fi
8770     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8771       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8772     else
8773       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8774     fi
8775     if test "$DSYMUTIL" != ":"; then
8776       _lt_dsymutil='~$DSYMUTIL $lib || :'
8777     else
8778       _lt_dsymutil=
8779     fi
8780     ;;
8781   esac
8782
8783
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8785 $as_echo_n "checking for ANSI C header files... " >&6; }
8786 if test "${ac_cv_header_stdc+set}" = set; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h.  */
8791 #include <stdlib.h>
8792 #include <stdarg.h>
8793 #include <string.h>
8794 #include <float.h>
8795
8796 int
8797 main ()
8798 {
8799
8800   ;
8801   return 0;
8802 }
8803 _ACEOF
8804 if ac_fn_c_try_compile "$LINENO"; then :
8805   ac_cv_header_stdc=yes
8806 else
8807   ac_cv_header_stdc=no
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810
8811 if test $ac_cv_header_stdc = yes; then
8812   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h.  */
8815 #include <string.h>
8816
8817 _ACEOF
8818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8819   $EGREP "memchr" >/dev/null 2>&1; then :
8820
8821 else
8822   ac_cv_header_stdc=no
8823 fi
8824 rm -f conftest*
8825
8826 fi
8827
8828 if test $ac_cv_header_stdc = yes; then
8829   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h.  */
8832 #include <stdlib.h>
8833
8834 _ACEOF
8835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8836   $EGREP "free" >/dev/null 2>&1; then :
8837
8838 else
8839   ac_cv_header_stdc=no
8840 fi
8841 rm -f conftest*
8842
8843 fi
8844
8845 if test $ac_cv_header_stdc = yes; then
8846   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8847   if test "$cross_compiling" = yes; then :
8848   :
8849 else
8850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h.  */
8852 #include <ctype.h>
8853 #include <stdlib.h>
8854 #if ((' ' & 0x0FF) == 0x020)
8855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8857 #else
8858 # define ISLOWER(c) \
8859                    (('a' <= (c) && (c) <= 'i') \
8860                      || ('j' <= (c) && (c) <= 'r') \
8861                      || ('s' <= (c) && (c) <= 'z'))
8862 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8863 #endif
8864
8865 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8866 int
8867 main ()
8868 {
8869   int i;
8870   for (i = 0; i < 256; i++)
8871     if (XOR (islower (i), ISLOWER (i))
8872         || toupper (i) != TOUPPER (i))
8873       return 2;
8874   return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_c_try_run "$LINENO"; then :
8878
8879 else
8880   ac_cv_header_stdc=no
8881 fi
8882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8883   conftest.$ac_objext conftest.beam conftest.$ac_ext
8884 fi
8885
8886 fi
8887 fi
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8889 $as_echo "$ac_cv_header_stdc" >&6; }
8890 if test $ac_cv_header_stdc = yes; then
8891
8892 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8893
8894 fi
8895
8896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8897 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8898                   inttypes.h stdint.h unistd.h
8899 do :
8900   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8901 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8902 "
8903 eval as_val=\$$as_ac_Header
8904    if test "x$as_val" = x""yes; then :
8905   cat >>confdefs.h <<_ACEOF
8906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8907 _ACEOF
8908
8909 fi
8910
8911 done
8912
8913
8914 for ac_header in dlfcn.h
8915 do :
8916   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8917 "
8918 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8919   cat >>confdefs.h <<_ACEOF
8920 #define HAVE_DLFCN_H 1
8921 _ACEOF
8922
8923 fi
8924
8925 done
8926
8927
8928
8929 # Set options
8930
8931
8932
8933         enable_dlopen=no
8934
8935
8936   enable_win32_dll=no
8937
8938
8939             # Check whether --enable-shared was given.
8940 if test "${enable_shared+set}" = set; then :
8941   enableval=$enable_shared; p=${PACKAGE-default}
8942     case $enableval in
8943     yes) enable_shared=yes ;;
8944     no) enable_shared=no ;;
8945     *)
8946       enable_shared=no
8947       # Look at the argument we got.  We use all the common list separators.
8948       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8949       for pkg in $enableval; do
8950         IFS="$lt_save_ifs"
8951         if test "X$pkg" = "X$p"; then
8952           enable_shared=yes
8953         fi
8954       done
8955       IFS="$lt_save_ifs"
8956       ;;
8957     esac
8958 else
8959   enable_shared=yes
8960 fi
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970   # Check whether --enable-static was given.
8971 if test "${enable_static+set}" = set; then :
8972   enableval=$enable_static; p=${PACKAGE-default}
8973     case $enableval in
8974     yes) enable_static=yes ;;
8975     no) enable_static=no ;;
8976     *)
8977      enable_static=no
8978       # Look at the argument we got.  We use all the common list separators.
8979       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8980       for pkg in $enableval; do
8981         IFS="$lt_save_ifs"
8982         if test "X$pkg" = "X$p"; then
8983           enable_static=yes
8984         fi
8985       done
8986       IFS="$lt_save_ifs"
8987       ;;
8988     esac
8989 else
8990   enable_static=yes
8991 fi
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002 # Check whether --with-pic was given.
9003 if test "${with_pic+set}" = set; then :
9004   withval=$with_pic; pic_mode="$withval"
9005 else
9006   pic_mode=default
9007 fi
9008
9009
9010 test -z "$pic_mode" && pic_mode=default
9011
9012
9013
9014
9015
9016
9017
9018   # Check whether --enable-fast-install was given.
9019 if test "${enable_fast_install+set}" = set; then :
9020   enableval=$enable_fast_install; p=${PACKAGE-default}
9021     case $enableval in
9022     yes) enable_fast_install=yes ;;
9023     no) enable_fast_install=no ;;
9024     *)
9025       enable_fast_install=no
9026       # Look at the argument we got.  We use all the common list separators.
9027       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9028       for pkg in $enableval; do
9029         IFS="$lt_save_ifs"
9030         if test "X$pkg" = "X$p"; then
9031           enable_fast_install=yes
9032         fi
9033       done
9034       IFS="$lt_save_ifs"
9035       ;;
9036     esac
9037 else
9038   enable_fast_install=yes
9039 fi
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051 # This can be used to rebuild libtool when needed
9052 LIBTOOL_DEPS="$ltmain"
9053
9054 # Always use our own libtool.
9055 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081 test -z "$LN_S" && LN_S="ln -s"
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096 if test -n "${ZSH_VERSION+set}" ; then
9097    setopt NO_GLOB_SUBST
9098 fi
9099
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9101 $as_echo_n "checking for objdir... " >&6; }
9102 if test "${lt_cv_objdir+set}" = set; then :
9103   $as_echo_n "(cached) " >&6
9104 else
9105   rm -f .libs 2>/dev/null
9106 mkdir .libs 2>/dev/null
9107 if test -d .libs; then
9108   lt_cv_objdir=.libs
9109 else
9110   # MS-DOS does not allow filenames that begin with a dot.
9111   lt_cv_objdir=_libs
9112 fi
9113 rmdir .libs 2>/dev/null
9114 fi
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9116 $as_echo "$lt_cv_objdir" >&6; }
9117 objdir=$lt_cv_objdir
9118
9119
9120
9121
9122
9123 cat >>confdefs.h <<_ACEOF
9124 #define LT_OBJDIR "$lt_cv_objdir/"
9125 _ACEOF
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143 case $host_os in
9144 aix3*)
9145   # AIX sometimes has problems with the GCC collect2 program.  For some
9146   # reason, if we set the COLLECT_NAMES environment variable, the problems
9147   # vanish in a puff of smoke.
9148   if test "X${COLLECT_NAMES+set}" != Xset; then
9149     COLLECT_NAMES=
9150     export COLLECT_NAMES
9151   fi
9152   ;;
9153 esac
9154
9155 # Sed substitution that helps us do robust quoting.  It backslashifies
9156 # metacharacters that are still active within double-quoted strings.
9157 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9158
9159 # Same as above, but do not quote variable references.
9160 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9161
9162 # Sed substitution to delay expansion of an escaped shell variable in a
9163 # double_quote_subst'ed string.
9164 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9165
9166 # Sed substitution to delay expansion of an escaped single quote.
9167 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9168
9169 # Sed substitution to avoid accidental globbing in evaled expressions
9170 no_glob_subst='s/\*/\\\*/g'
9171
9172 # Global variables:
9173 ofile=libtool
9174 can_build_shared=yes
9175
9176 # All known linkers require a `.a' archive for static linking (except MSVC,
9177 # which needs '.lib').
9178 libext=a
9179
9180 with_gnu_ld="$lt_cv_prog_gnu_ld"
9181
9182 old_CC="$CC"
9183 old_CFLAGS="$CFLAGS"
9184
9185 # Set sane defaults for various variables
9186 test -z "$CC" && CC=cc
9187 test -z "$LTCC" && LTCC=$CC
9188 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9189 test -z "$LD" && LD=ld
9190 test -z "$ac_objext" && ac_objext=o
9191
9192 for cc_temp in $compiler""; do
9193   case $cc_temp in
9194     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9195     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9196     \-*) ;;
9197     *) break;;
9198   esac
9199 done
9200 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9201
9202
9203 # Only perform the check for file, if the check method requires it
9204 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9205 case $deplibs_check_method in
9206 file_magic*)
9207   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9209 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9210 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9211   $as_echo_n "(cached) " >&6
9212 else
9213   case $MAGIC_CMD in
9214 [\\/*] |  ?:[\\/]*)
9215   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9216   ;;
9217 *)
9218   lt_save_MAGIC_CMD="$MAGIC_CMD"
9219   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9220   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9221   for ac_dir in $ac_dummy; do
9222     IFS="$lt_save_ifs"
9223     test -z "$ac_dir" && ac_dir=.
9224     if test -f $ac_dir/${ac_tool_prefix}file; then
9225       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9226       if test -n "$file_magic_test_file"; then
9227         case $deplibs_check_method in
9228         "file_magic "*)
9229           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9230           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9231           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9232             $EGREP "$file_magic_regex" > /dev/null; then
9233             :
9234           else
9235             cat <<_LT_EOF 1>&2
9236
9237 *** Warning: the command libtool uses to detect shared libraries,
9238 *** $file_magic_cmd, produces output that libtool cannot recognize.
9239 *** The result is that libtool may fail to recognize shared libraries
9240 *** as such.  This will affect the creation of libtool libraries that
9241 *** depend on shared libraries, but programs linked with such libtool
9242 *** libraries will work regardless of this problem.  Nevertheless, you
9243 *** may want to report the problem to your system manager and/or to
9244 *** bug-libtool@gnu.org
9245
9246 _LT_EOF
9247           fi ;;
9248         esac
9249       fi
9250       break
9251     fi
9252   done
9253   IFS="$lt_save_ifs"
9254   MAGIC_CMD="$lt_save_MAGIC_CMD"
9255   ;;
9256 esac
9257 fi
9258
9259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9260 if test -n "$MAGIC_CMD"; then
9261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9262 $as_echo "$MAGIC_CMD" >&6; }
9263 else
9264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265 $as_echo "no" >&6; }
9266 fi
9267
9268
9269
9270
9271
9272 if test -z "$lt_cv_path_MAGIC_CMD"; then
9273   if test -n "$ac_tool_prefix"; then
9274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9275 $as_echo_n "checking for file... " >&6; }
9276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9277   $as_echo_n "(cached) " >&6
9278 else
9279   case $MAGIC_CMD in
9280 [\\/*] |  ?:[\\/]*)
9281   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9282   ;;
9283 *)
9284   lt_save_MAGIC_CMD="$MAGIC_CMD"
9285   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9286   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9287   for ac_dir in $ac_dummy; do
9288     IFS="$lt_save_ifs"
9289     test -z "$ac_dir" && ac_dir=.
9290     if test -f $ac_dir/file; then
9291       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9292       if test -n "$file_magic_test_file"; then
9293         case $deplibs_check_method in
9294         "file_magic "*)
9295           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9296           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9297           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9298             $EGREP "$file_magic_regex" > /dev/null; then
9299             :
9300           else
9301             cat <<_LT_EOF 1>&2
9302
9303 *** Warning: the command libtool uses to detect shared libraries,
9304 *** $file_magic_cmd, produces output that libtool cannot recognize.
9305 *** The result is that libtool may fail to recognize shared libraries
9306 *** as such.  This will affect the creation of libtool libraries that
9307 *** depend on shared libraries, but programs linked with such libtool
9308 *** libraries will work regardless of this problem.  Nevertheless, you
9309 *** may want to report the problem to your system manager and/or to
9310 *** bug-libtool@gnu.org
9311
9312 _LT_EOF
9313           fi ;;
9314         esac
9315       fi
9316       break
9317     fi
9318   done
9319   IFS="$lt_save_ifs"
9320   MAGIC_CMD="$lt_save_MAGIC_CMD"
9321   ;;
9322 esac
9323 fi
9324
9325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9326 if test -n "$MAGIC_CMD"; then
9327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9328 $as_echo "$MAGIC_CMD" >&6; }
9329 else
9330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331 $as_echo "no" >&6; }
9332 fi
9333
9334
9335   else
9336     MAGIC_CMD=:
9337   fi
9338 fi
9339
9340   fi
9341   ;;
9342 esac
9343
9344 # Use C for the default configuration in the libtool script
9345
9346 lt_save_CC="$CC"
9347 ac_ext=c
9348 ac_cpp='$CPP $CPPFLAGS'
9349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9352
9353
9354 # Source file extension for C test sources.
9355 ac_ext=c
9356
9357 # Object file extension for compiled C test sources.
9358 objext=o
9359 objext=$objext
9360
9361 # Code to be used in simple compile tests
9362 lt_simple_compile_test_code="int some_variable = 0;"
9363
9364 # Code to be used in simple link tests
9365 lt_simple_link_test_code='int main(){return(0);}'
9366
9367
9368
9369
9370
9371
9372
9373 # If no C compiler was specified, use CC.
9374 LTCC=${LTCC-"$CC"}
9375
9376 # If no C compiler flags were specified, use CFLAGS.
9377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9378
9379 # Allow CC to be a program name with arguments.
9380 compiler=$CC
9381
9382 # Save the default compiler, since it gets overwritten when the other
9383 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9384 compiler_DEFAULT=$CC
9385
9386 # save warnings/boilerplate of simple test code
9387 ac_outfile=conftest.$ac_objext
9388 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9390 _lt_compiler_boilerplate=`cat conftest.err`
9391 $RM conftest*
9392
9393 ac_outfile=conftest.$ac_objext
9394 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9396 _lt_linker_boilerplate=`cat conftest.err`
9397 $RM -r conftest*
9398
9399
9400 ## CAVEAT EMPTOR:
9401 ## There is no encapsulation within the following macros, do not change
9402 ## the running order or otherwise move them around unless you know exactly
9403 ## what you are doing...
9404 if test -n "$compiler"; then
9405
9406 lt_prog_compiler_no_builtin_flag=
9407
9408 if test "$GCC" = yes; then
9409   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9410
9411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9412 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9413 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9414   $as_echo_n "(cached) " >&6
9415 else
9416   lt_cv_prog_compiler_rtti_exceptions=no
9417    ac_outfile=conftest.$ac_objext
9418    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9419    lt_compiler_flag="-fno-rtti -fno-exceptions"
9420    # Insert the option either (1) after the last *FLAGS variable, or
9421    # (2) before a word containing "conftest.", or (3) at the end.
9422    # Note that $ac_compile itself does not contain backslashes and begins
9423    # with a dollar sign (not a hyphen), so the echo should work correctly.
9424    # The option is referenced via a variable to avoid confusing sed.
9425    lt_compile=`echo "$ac_compile" | $SED \
9426    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9427    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9428    -e 's:$: $lt_compiler_flag:'`
9429    (eval echo "\"\$as_me:9429: $lt_compile\"" >&5)
9430    (eval "$lt_compile" 2>conftest.err)
9431    ac_status=$?
9432    cat conftest.err >&5
9433    echo "$as_me:9433: \$? = $ac_status" >&5
9434    if (exit $ac_status) && test -s "$ac_outfile"; then
9435      # The compiler can only warn and ignore the option if not recognized
9436      # So say no if there are warnings other than the usual output.
9437      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9438      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9439      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9440        lt_cv_prog_compiler_rtti_exceptions=yes
9441      fi
9442    fi
9443    $RM conftest*
9444
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9447 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9448
9449 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9450     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9451 else
9452     :
9453 fi
9454
9455 fi
9456
9457
9458
9459
9460
9461
9462   lt_prog_compiler_wl=
9463 lt_prog_compiler_pic=
9464 lt_prog_compiler_static=
9465
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9467 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9468
9469   if test "$GCC" = yes; then
9470     lt_prog_compiler_wl='-Wl,'
9471     lt_prog_compiler_static='-static'
9472
9473     case $host_os in
9474       aix*)
9475       # All AIX code is PIC.
9476       if test "$host_cpu" = ia64; then
9477         # AIX 5 now supports IA64 processor
9478         lt_prog_compiler_static='-Bstatic'
9479       fi
9480       ;;
9481
9482     amigaos*)
9483       case $host_cpu in
9484       powerpc)
9485             # see comment about AmigaOS4 .so support
9486             lt_prog_compiler_pic='-fPIC'
9487         ;;
9488       m68k)
9489             # FIXME: we need at least 68020 code to build shared libraries, but
9490             # adding the `-m68020' flag to GCC prevents building anything better,
9491             # like `-m68040'.
9492             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9493         ;;
9494       esac
9495       ;;
9496
9497     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9498       # PIC is the default for these OSes.
9499       ;;
9500
9501     mingw* | cygwin* | pw32* | os2* | cegcc*)
9502       # This hack is so that the source file can tell whether it is being
9503       # built for inclusion in a dll (and should export symbols for example).
9504       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9505       # (--disable-auto-import) libraries
9506       lt_prog_compiler_pic='-DDLL_EXPORT'
9507       ;;
9508
9509     darwin* | rhapsody*)
9510       # PIC is the default on this platform
9511       # Common symbols not allowed in MH_DYLIB files
9512       lt_prog_compiler_pic='-fno-common'
9513       ;;
9514
9515     hpux*)
9516       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9517       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9518       # sets the default TLS model and affects inlining.
9519       case $host_cpu in
9520       hppa*64*)
9521         # +Z the default
9522         ;;
9523       *)
9524         lt_prog_compiler_pic='-fPIC'
9525         ;;
9526       esac
9527       ;;
9528
9529     interix[3-9]*)
9530       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9531       # Instead, we relocate shared libraries at runtime.
9532       ;;
9533
9534     msdosdjgpp*)
9535       # Just because we use GCC doesn't mean we suddenly get shared libraries
9536       # on systems that don't support them.
9537       lt_prog_compiler_can_build_shared=no
9538       enable_shared=no
9539       ;;
9540
9541     *nto* | *qnx*)
9542       # QNX uses GNU C++, but need to define -shared option too, otherwise
9543       # it will coredump.
9544       lt_prog_compiler_pic='-fPIC -shared'
9545       ;;
9546
9547     sysv4*MP*)
9548       if test -d /usr/nec; then
9549         lt_prog_compiler_pic=-Kconform_pic
9550       fi
9551       ;;
9552
9553     *)
9554       lt_prog_compiler_pic='-fPIC'
9555       ;;
9556     esac
9557   else
9558     # PORTME Check for flag to pass linker flags through the system compiler.
9559     case $host_os in
9560     aix*)
9561       lt_prog_compiler_wl='-Wl,'
9562       if test "$host_cpu" = ia64; then
9563         # AIX 5 now supports IA64 processor
9564         lt_prog_compiler_static='-Bstatic'
9565       else
9566         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9567       fi
9568       ;;
9569
9570     mingw* | cygwin* | pw32* | os2* | cegcc*)
9571       # This hack is so that the source file can tell whether it is being
9572       # built for inclusion in a dll (and should export symbols for example).
9573       lt_prog_compiler_pic='-DDLL_EXPORT'
9574       ;;
9575
9576     hpux9* | hpux10* | hpux11*)
9577       lt_prog_compiler_wl='-Wl,'
9578       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9579       # not for PA HP-UX.
9580       case $host_cpu in
9581       hppa*64*|ia64*)
9582         # +Z the default
9583         ;;
9584       *)
9585         lt_prog_compiler_pic='+Z'
9586         ;;
9587       esac
9588       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9589       lt_prog_compiler_static='${wl}-a ${wl}archive'
9590       ;;
9591
9592     irix5* | irix6* | nonstopux*)
9593       lt_prog_compiler_wl='-Wl,'
9594       # PIC (with -KPIC) is the default.
9595       lt_prog_compiler_static='-non_shared'
9596       ;;
9597
9598     linux* | k*bsd*-gnu)
9599       case $cc_basename in
9600       # old Intel for x86_64 which still supported -KPIC.
9601       ecc*)
9602         lt_prog_compiler_wl='-Wl,'
9603         lt_prog_compiler_pic='-KPIC'
9604         lt_prog_compiler_static='-static'
9605         ;;
9606       # icc used to be incompatible with GCC.
9607       # ICC 10 doesn't accept -KPIC any more.
9608       icc* | ifort*)
9609         lt_prog_compiler_wl='-Wl,'
9610         lt_prog_compiler_pic='-fPIC'
9611         lt_prog_compiler_static='-static'
9612         ;;
9613       # Lahey Fortran 8.1.
9614       lf95*)
9615         lt_prog_compiler_wl='-Wl,'
9616         lt_prog_compiler_pic='--shared'
9617         lt_prog_compiler_static='--static'
9618         ;;
9619       pgcc* | pgf77* | pgf90* | pgf95*)
9620         # Portland Group compilers (*not* the Pentium gcc compiler,
9621         # which looks to be a dead project)
9622         lt_prog_compiler_wl='-Wl,'
9623         lt_prog_compiler_pic='-fpic'
9624         lt_prog_compiler_static='-Bstatic'
9625         ;;
9626       ccc*)
9627         lt_prog_compiler_wl='-Wl,'
9628         # All Alpha code is PIC.
9629         lt_prog_compiler_static='-non_shared'
9630         ;;
9631       xl*)
9632         # IBM XL C 8.0/Fortran 10.1 on PPC
9633         lt_prog_compiler_wl='-Wl,'
9634         lt_prog_compiler_pic='-qpic'
9635         lt_prog_compiler_static='-qstaticlink'
9636         ;;
9637       *)
9638         case `$CC -V 2>&1 | sed 5q` in
9639         *Sun\ C*)
9640           # Sun C 5.9
9641           lt_prog_compiler_pic='-KPIC'
9642           lt_prog_compiler_static='-Bstatic'
9643           lt_prog_compiler_wl='-Wl,'
9644           ;;
9645         *Sun\ F*)
9646           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9647           lt_prog_compiler_pic='-KPIC'
9648           lt_prog_compiler_static='-Bstatic'
9649           lt_prog_compiler_wl=''
9650           ;;
9651         esac
9652         ;;
9653       esac
9654       ;;
9655
9656     newsos6)
9657       lt_prog_compiler_pic='-KPIC'
9658       lt_prog_compiler_static='-Bstatic'
9659       ;;
9660
9661     *nto* | *qnx*)
9662       # QNX uses GNU C++, but need to define -shared option too, otherwise
9663       # it will coredump.
9664       lt_prog_compiler_pic='-fPIC -shared'
9665       ;;
9666
9667     osf3* | osf4* | osf5*)
9668       lt_prog_compiler_wl='-Wl,'
9669       # All OSF/1 code is PIC.
9670       lt_prog_compiler_static='-non_shared'
9671       ;;
9672
9673     rdos*)
9674       lt_prog_compiler_static='-non_shared'
9675       ;;
9676
9677     solaris*)
9678       lt_prog_compiler_pic='-KPIC'
9679       lt_prog_compiler_static='-Bstatic'
9680       case $cc_basename in
9681       f77* | f90* | f95*)
9682         lt_prog_compiler_wl='-Qoption ld ';;
9683       *)
9684         lt_prog_compiler_wl='-Wl,';;
9685       esac
9686       ;;
9687
9688     sunos4*)
9689       lt_prog_compiler_wl='-Qoption ld '
9690       lt_prog_compiler_pic='-PIC'
9691       lt_prog_compiler_static='-Bstatic'
9692       ;;
9693
9694     sysv4 | sysv4.2uw2* | sysv4.3*)
9695       lt_prog_compiler_wl='-Wl,'
9696       lt_prog_compiler_pic='-KPIC'
9697       lt_prog_compiler_static='-Bstatic'
9698       ;;
9699
9700     sysv4*MP*)
9701       if test -d /usr/nec ;then
9702         lt_prog_compiler_pic='-Kconform_pic'
9703         lt_prog_compiler_static='-Bstatic'
9704       fi
9705       ;;
9706
9707     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9708       lt_prog_compiler_wl='-Wl,'
9709       lt_prog_compiler_pic='-KPIC'
9710       lt_prog_compiler_static='-Bstatic'
9711       ;;
9712
9713     unicos*)
9714       lt_prog_compiler_wl='-Wl,'
9715       lt_prog_compiler_can_build_shared=no
9716       ;;
9717
9718     uts4*)
9719       lt_prog_compiler_pic='-pic'
9720       lt_prog_compiler_static='-Bstatic'
9721       ;;
9722
9723     *)
9724       lt_prog_compiler_can_build_shared=no
9725       ;;
9726     esac
9727   fi
9728
9729 case $host_os in
9730   # For platforms which do not support PIC, -DPIC is meaningless:
9731   *djgpp*)
9732     lt_prog_compiler_pic=
9733     ;;
9734   *)
9735     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9736     ;;
9737 esac
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9739 $as_echo "$lt_prog_compiler_pic" >&6; }
9740
9741
9742
9743
9744
9745
9746 #
9747 # Check to make sure the PIC flag actually works.
9748 #
9749 if test -n "$lt_prog_compiler_pic"; then
9750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9751 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9752 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9753   $as_echo_n "(cached) " >&6
9754 else
9755   lt_cv_prog_compiler_pic_works=no
9756    ac_outfile=conftest.$ac_objext
9757    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9758    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9759    # Insert the option either (1) after the last *FLAGS variable, or
9760    # (2) before a word containing "conftest.", or (3) at the end.
9761    # Note that $ac_compile itself does not contain backslashes and begins
9762    # with a dollar sign (not a hyphen), so the echo should work correctly.
9763    # The option is referenced via a variable to avoid confusing sed.
9764    lt_compile=`echo "$ac_compile" | $SED \
9765    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9766    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9767    -e 's:$: $lt_compiler_flag:'`
9768    (eval echo "\"\$as_me:9768: $lt_compile\"" >&5)
9769    (eval "$lt_compile" 2>conftest.err)
9770    ac_status=$?
9771    cat conftest.err >&5
9772    echo "$as_me:9772: \$? = $ac_status" >&5
9773    if (exit $ac_status) && test -s "$ac_outfile"; then
9774      # The compiler can only warn and ignore the option if not recognized
9775      # So say no if there are warnings other than the usual output.
9776      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9777      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9778      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9779        lt_cv_prog_compiler_pic_works=yes
9780      fi
9781    fi
9782    $RM conftest*
9783
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9786 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9787
9788 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9789     case $lt_prog_compiler_pic in
9790      "" | " "*) ;;
9791      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9792      esac
9793 else
9794     lt_prog_compiler_pic=
9795      lt_prog_compiler_can_build_shared=no
9796 fi
9797
9798 fi
9799
9800
9801
9802
9803
9804
9805 #
9806 # Check to make sure the static flag actually works.
9807 #
9808 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9810 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9811 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9812   $as_echo_n "(cached) " >&6
9813 else
9814   lt_cv_prog_compiler_static_works=no
9815    save_LDFLAGS="$LDFLAGS"
9816    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9817    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9818    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9819      # The linker can only warn and ignore the option if not recognized
9820      # So say no if there are warnings
9821      if test -s conftest.err; then
9822        # Append any errors to the config.log.
9823        cat conftest.err 1>&5
9824        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9825        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9826        if diff conftest.exp conftest.er2 >/dev/null; then
9827          lt_cv_prog_compiler_static_works=yes
9828        fi
9829      else
9830        lt_cv_prog_compiler_static_works=yes
9831      fi
9832    fi
9833    $RM -r conftest*
9834    LDFLAGS="$save_LDFLAGS"
9835
9836 fi
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9838 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9839
9840 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9841     :
9842 else
9843     lt_prog_compiler_static=
9844 fi
9845
9846
9847
9848
9849
9850
9851
9852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9854 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9855   $as_echo_n "(cached) " >&6
9856 else
9857   lt_cv_prog_compiler_c_o=no
9858    $RM -r conftest 2>/dev/null
9859    mkdir conftest
9860    cd conftest
9861    mkdir out
9862    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9863
9864    lt_compiler_flag="-o out/conftest2.$ac_objext"
9865    # Insert the option either (1) after the last *FLAGS variable, or
9866    # (2) before a word containing "conftest.", or (3) at the end.
9867    # Note that $ac_compile itself does not contain backslashes and begins
9868    # with a dollar sign (not a hyphen), so the echo should work correctly.
9869    lt_compile=`echo "$ac_compile" | $SED \
9870    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9871    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9872    -e 's:$: $lt_compiler_flag:'`
9873    (eval echo "\"\$as_me:9873: $lt_compile\"" >&5)
9874    (eval "$lt_compile" 2>out/conftest.err)
9875    ac_status=$?
9876    cat out/conftest.err >&5
9877    echo "$as_me:9877: \$? = $ac_status" >&5
9878    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9879    then
9880      # The compiler can only warn and ignore the option if not recognized
9881      # So say no if there are warnings
9882      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9883      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9884      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9885        lt_cv_prog_compiler_c_o=yes
9886      fi
9887    fi
9888    chmod u+w . 2>&5
9889    $RM conftest*
9890    # SGI C++ compiler will create directory out/ii_files/ for
9891    # template instantiation
9892    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9893    $RM out/* && rmdir out
9894    cd ..
9895    $RM -r conftest
9896    $RM conftest*
9897
9898 fi
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9900 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9901
9902
9903
9904
9905
9906
9907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9909 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9910   $as_echo_n "(cached) " >&6
9911 else
9912   lt_cv_prog_compiler_c_o=no
9913    $RM -r conftest 2>/dev/null
9914    mkdir conftest
9915    cd conftest
9916    mkdir out
9917    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9918
9919    lt_compiler_flag="-o out/conftest2.$ac_objext"
9920    # Insert the option either (1) after the last *FLAGS variable, or
9921    # (2) before a word containing "conftest.", or (3) at the end.
9922    # Note that $ac_compile itself does not contain backslashes and begins
9923    # with a dollar sign (not a hyphen), so the echo should work correctly.
9924    lt_compile=`echo "$ac_compile" | $SED \
9925    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9926    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9927    -e 's:$: $lt_compiler_flag:'`
9928    (eval echo "\"\$as_me:9928: $lt_compile\"" >&5)
9929    (eval "$lt_compile" 2>out/conftest.err)
9930    ac_status=$?
9931    cat out/conftest.err >&5
9932    echo "$as_me:9932: \$? = $ac_status" >&5
9933    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9934    then
9935      # The compiler can only warn and ignore the option if not recognized
9936      # So say no if there are warnings
9937      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9938      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9939      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9940        lt_cv_prog_compiler_c_o=yes
9941      fi
9942    fi
9943    chmod u+w . 2>&5
9944    $RM conftest*
9945    # SGI C++ compiler will create directory out/ii_files/ for
9946    # template instantiation
9947    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9948    $RM out/* && rmdir out
9949    cd ..
9950    $RM -r conftest
9951    $RM conftest*
9952
9953 fi
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9955 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9956
9957
9958
9959
9960 hard_links="nottested"
9961 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9962   # do not overwrite the value of need_locks provided by the user
9963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9964 $as_echo_n "checking if we can lock with hard links... " >&6; }
9965   hard_links=yes
9966   $RM conftest*
9967   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9968   touch conftest.a
9969   ln conftest.a conftest.b 2>&5 || hard_links=no
9970   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9972 $as_echo "$hard_links" >&6; }
9973   if test "$hard_links" = no; then
9974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9975 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9976     need_locks=warn
9977   fi
9978 else
9979   need_locks=no
9980 fi
9981
9982
9983
9984
9985
9986
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9988 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9989
9990   runpath_var=
9991   allow_undefined_flag=
9992   always_export_symbols=no
9993   archive_cmds=
9994   archive_expsym_cmds=
9995   compiler_needs_object=no
9996   enable_shared_with_static_runtimes=no
9997   export_dynamic_flag_spec=
9998   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9999   hardcode_automatic=no
10000   hardcode_direct=no
10001   hardcode_direct_absolute=no
10002   hardcode_libdir_flag_spec=
10003   hardcode_libdir_flag_spec_ld=
10004   hardcode_libdir_separator=
10005   hardcode_minus_L=no
10006   hardcode_shlibpath_var=unsupported
10007   inherit_rpath=no
10008   link_all_deplibs=unknown
10009   module_cmds=
10010   module_expsym_cmds=
10011   old_archive_from_new_cmds=
10012   old_archive_from_expsyms_cmds=
10013   thread_safe_flag_spec=
10014   whole_archive_flag_spec=
10015   # include_expsyms should be a list of space-separated symbols to be *always*
10016   # included in the symbol list
10017   include_expsyms=
10018   # exclude_expsyms can be an extended regexp of symbols to exclude
10019   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10020   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10021   # as well as any symbol that contains `d'.
10022   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10023   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10024   # platforms (ab)use it in PIC code, but their linkers get confused if
10025   # the symbol is explicitly referenced.  Since portable code cannot
10026   # rely on this symbol name, it's probably fine to never include it in
10027   # preloaded symbol tables.
10028   # Exclude shared library initialization/finalization symbols.
10029   extract_expsyms_cmds=
10030
10031   case $host_os in
10032   cygwin* | mingw* | pw32* | cegcc*)
10033     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10034     # When not using gcc, we currently assume that we are using
10035     # Microsoft Visual C++.
10036     if test "$GCC" != yes; then
10037       with_gnu_ld=no
10038     fi
10039     ;;
10040   interix*)
10041     # we just hope/assume this is gcc and not c89 (= MSVC++)
10042     with_gnu_ld=yes
10043     ;;
10044   openbsd*)
10045     with_gnu_ld=no
10046     ;;
10047   esac
10048
10049   ld_shlibs=yes
10050   if test "$with_gnu_ld" = yes; then
10051     # If archive_cmds runs LD, not CC, wlarc should be empty
10052     wlarc='${wl}'
10053
10054     # Set some defaults for GNU ld with shared library support. These
10055     # are reset later if shared libraries are not supported. Putting them
10056     # here allows them to be overridden if necessary.
10057     runpath_var=LD_RUN_PATH
10058     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10059     export_dynamic_flag_spec='${wl}--export-dynamic'
10060     # ancient GNU ld didn't support --whole-archive et. al.
10061     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10062       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10063     else
10064       whole_archive_flag_spec=
10065     fi
10066     supports_anon_versioning=no
10067     case `$LD -v 2>&1` in
10068       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10069       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10070       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10071       *\ 2.11.*) ;; # other 2.11 versions
10072       *) supports_anon_versioning=yes ;;
10073     esac
10074
10075     # See if GNU ld supports shared libraries.
10076     case $host_os in
10077     aix[3-9]*)
10078       # On AIX/PPC, the GNU linker is very broken
10079       if test "$host_cpu" != ia64; then
10080         ld_shlibs=no
10081         cat <<_LT_EOF 1>&2
10082
10083 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10084 *** to be unable to reliably create shared libraries on AIX.
10085 *** Therefore, libtool is disabling shared libraries support.  If you
10086 *** really care for shared libraries, you may want to modify your PATH
10087 *** so that a non-GNU linker is found, and then restart.
10088
10089 _LT_EOF
10090       fi
10091       ;;
10092
10093     amigaos*)
10094       case $host_cpu in
10095       powerpc)
10096             # see comment about AmigaOS4 .so support
10097             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10098             archive_expsym_cmds=''
10099         ;;
10100       m68k)
10101             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)'
10102             hardcode_libdir_flag_spec='-L$libdir'
10103             hardcode_minus_L=yes
10104         ;;
10105       esac
10106       ;;
10107
10108     beos*)
10109       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10110         allow_undefined_flag=unsupported
10111         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10112         # support --undefined.  This deserves some investigation.  FIXME
10113         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10114       else
10115         ld_shlibs=no
10116       fi
10117       ;;
10118
10119     cygwin* | mingw* | pw32* | cegcc*)
10120       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10121       # as there is no search path for DLLs.
10122       hardcode_libdir_flag_spec='-L$libdir'
10123       allow_undefined_flag=unsupported
10124       always_export_symbols=no
10125       enable_shared_with_static_runtimes=yes
10126       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10127
10128       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10129         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10130         # If the export-symbols file already is a .def file (1st line
10131         # is EXPORTS), use it as is; otherwise, prepend...
10132         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10133           cp $export_symbols $output_objdir/$soname.def;
10134         else
10135           echo EXPORTS > $output_objdir/$soname.def;
10136           cat $export_symbols >> $output_objdir/$soname.def;
10137         fi~
10138         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10139       else
10140         ld_shlibs=no
10141       fi
10142       ;;
10143
10144     interix[3-9]*)
10145       hardcode_direct=no
10146       hardcode_shlibpath_var=no
10147       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10148       export_dynamic_flag_spec='${wl}-E'
10149       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10150       # Instead, shared libraries are loaded at an image base (0x10000000 by
10151       # default) and relocated if they conflict, which is a slow very memory
10152       # consuming and fragmenting process.  To avoid this, we pick a random,
10153       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10154       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10155       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10156       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'
10157       ;;
10158
10159     gnu* | linux* | tpf* | k*bsd*-gnu)
10160       tmp_diet=no
10161       if test "$host_os" = linux-dietlibc; then
10162         case $cc_basename in
10163           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10164         esac
10165       fi
10166       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10167          && test "$tmp_diet" = no
10168       then
10169         tmp_addflag=
10170         tmp_sharedflag='-shared'
10171         case $cc_basename,$host_cpu in
10172         pgcc*)                          # Portland Group C compiler
10173           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10174           tmp_addflag=' $pic_flag'
10175           ;;
10176         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10177           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10178           tmp_addflag=' $pic_flag -Mnomain' ;;
10179         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10180           tmp_addflag=' -i_dynamic' ;;
10181         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10182           tmp_addflag=' -i_dynamic -nofor_main' ;;
10183         ifc* | ifort*)                  # Intel Fortran compiler
10184           tmp_addflag=' -nofor_main' ;;
10185         lf95*)                          # Lahey Fortran 8.1
10186           whole_archive_flag_spec=
10187           tmp_sharedflag='--shared' ;;
10188         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10189           tmp_sharedflag='-qmkshrobj'
10190           tmp_addflag= ;;
10191         esac
10192         case `$CC -V 2>&1 | sed 5q` in
10193         *Sun\ C*)                       # Sun C 5.9
10194           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10195           compiler_needs_object=yes
10196           tmp_sharedflag='-G' ;;
10197         *Sun\ F*)                       # Sun Fortran 8.3
10198           tmp_sharedflag='-G' ;;
10199         esac
10200         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201
10202         if test "x$supports_anon_versioning" = xyes; then
10203           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10204             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10205             echo "local: *; };" >> $output_objdir/$libname.ver~
10206             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10207         fi
10208
10209         case $cc_basename in
10210         xlf*)
10211           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10212           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10213           hardcode_libdir_flag_spec=
10214           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10215           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10216           if test "x$supports_anon_versioning" = xyes; then
10217             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10218               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10219               echo "local: *; };" >> $output_objdir/$libname.ver~
10220               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10221           fi
10222           ;;
10223         esac
10224       else
10225         ld_shlibs=no
10226       fi
10227       ;;
10228
10229     netbsd*)
10230       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10231         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10232         wlarc=
10233       else
10234         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10235         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10236       fi
10237       ;;
10238
10239     solaris*)
10240       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10241         ld_shlibs=no
10242         cat <<_LT_EOF 1>&2
10243
10244 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10245 *** create shared libraries on Solaris systems.  Therefore, libtool
10246 *** is disabling shared libraries support.  We urge you to upgrade GNU
10247 *** binutils to release 2.9.1 or newer.  Another option is to modify
10248 *** your PATH or compiler configuration so that the native linker is
10249 *** used, and then restart.
10250
10251 _LT_EOF
10252       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10253         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10255       else
10256         ld_shlibs=no
10257       fi
10258       ;;
10259
10260     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10261       case `$LD -v 2>&1` in
10262         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10263         ld_shlibs=no
10264         cat <<_LT_EOF 1>&2
10265
10266 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10267 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10268 *** is disabling shared libraries support.  We urge you to upgrade GNU
10269 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10270 *** your PATH or compiler configuration so that the native linker is
10271 *** used, and then restart.
10272
10273 _LT_EOF
10274         ;;
10275         *)
10276           # For security reasons, it is highly recommended that you always
10277           # use absolute paths for naming shared libraries, and exclude the
10278           # DT_RUNPATH tag from executables and libraries.  But doing so
10279           # requires that you compile everything twice, which is a pain.
10280           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10281             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10282             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10283             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10284           else
10285             ld_shlibs=no
10286           fi
10287         ;;
10288       esac
10289       ;;
10290
10291     sunos4*)
10292       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10293       wlarc=
10294       hardcode_direct=yes
10295       hardcode_shlibpath_var=no
10296       ;;
10297
10298     *)
10299       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10300         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10301         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10302       else
10303         ld_shlibs=no
10304       fi
10305       ;;
10306     esac
10307
10308     if test "$ld_shlibs" = no; then
10309       runpath_var=
10310       hardcode_libdir_flag_spec=
10311       export_dynamic_flag_spec=
10312       whole_archive_flag_spec=
10313     fi
10314   else
10315     # PORTME fill in a description of your system's linker (not GNU ld)
10316     case $host_os in
10317     aix3*)
10318       allow_undefined_flag=unsupported
10319       always_export_symbols=yes
10320       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'
10321       # Note: this linker hardcodes the directories in LIBPATH if there
10322       # are no directories specified by -L.
10323       hardcode_minus_L=yes
10324       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10325         # Neither direct hardcoding nor static linking is supported with a
10326         # broken collect2.
10327         hardcode_direct=unsupported
10328       fi
10329       ;;
10330
10331     aix[4-9]*)
10332       if test "$host_cpu" = ia64; then
10333         # On IA64, the linker does run time linking by default, so we don't
10334         # have to do anything special.
10335         aix_use_runtimelinking=no
10336         exp_sym_flag='-Bexport'
10337         no_entry_flag=""
10338       else
10339         # If we're using GNU nm, then we don't want the "-C" option.
10340         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10341         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10342           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10343         else
10344           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'
10345         fi
10346         aix_use_runtimelinking=no
10347
10348         # Test if we are trying to use run time linking or normal
10349         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10350         # need to do runtime linking.
10351         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10352           for ld_flag in $LDFLAGS; do
10353           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10354             aix_use_runtimelinking=yes
10355             break
10356           fi
10357           done
10358           ;;
10359         esac
10360
10361         exp_sym_flag='-bexport'
10362         no_entry_flag='-bnoentry'
10363       fi
10364
10365       # When large executables or shared objects are built, AIX ld can
10366       # have problems creating the table of contents.  If linking a library
10367       # or program results in "error TOC overflow" add -mminimal-toc to
10368       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10369       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10370
10371       archive_cmds=''
10372       hardcode_direct=yes
10373       hardcode_direct_absolute=yes
10374       hardcode_libdir_separator=':'
10375       link_all_deplibs=yes
10376       file_list_spec='${wl}-f,'
10377
10378       if test "$GCC" = yes; then
10379         case $host_os in aix4.[012]|aix4.[012].*)
10380         # We only want to do this on AIX 4.2 and lower, the check
10381         # below for broken collect2 doesn't work under 4.3+
10382           collect2name=`${CC} -print-prog-name=collect2`
10383           if test -f "$collect2name" &&
10384            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10385           then
10386           # We have reworked collect2
10387           :
10388           else
10389           # We have old collect2
10390           hardcode_direct=unsupported
10391           # It fails to find uninstalled libraries when the uninstalled
10392           # path is not listed in the libpath.  Setting hardcode_minus_L
10393           # to unsupported forces relinking
10394           hardcode_minus_L=yes
10395           hardcode_libdir_flag_spec='-L$libdir'
10396           hardcode_libdir_separator=
10397           fi
10398           ;;
10399         esac
10400         shared_flag='-shared'
10401         if test "$aix_use_runtimelinking" = yes; then
10402           shared_flag="$shared_flag "'${wl}-G'
10403         fi
10404       else
10405         # not using gcc
10406         if test "$host_cpu" = ia64; then
10407         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10408         # chokes on -Wl,-G. The following line is correct:
10409           shared_flag='-G'
10410         else
10411           if test "$aix_use_runtimelinking" = yes; then
10412             shared_flag='${wl}-G'
10413           else
10414             shared_flag='${wl}-bM:SRE'
10415           fi
10416         fi
10417       fi
10418
10419       export_dynamic_flag_spec='${wl}-bexpall'
10420       # It seems that -bexpall does not export symbols beginning with
10421       # underscore (_), so it is better to generate a list of symbols to export.
10422       always_export_symbols=yes
10423       if test "$aix_use_runtimelinking" = yes; then
10424         # Warning - without using the other runtime loading flags (-brtl),
10425         # -berok will link without error, but may produce a broken library.
10426         allow_undefined_flag='-berok'
10427         # Determine the default libpath from the value encoded in an
10428         # empty executable.
10429         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h.  */
10431
10432 int
10433 main ()
10434 {
10435
10436   ;
10437   return 0;
10438 }
10439 _ACEOF
10440 if ac_fn_c_try_link "$LINENO"; then :
10441
10442 lt_aix_libpath_sed='
10443     /Import File Strings/,/^$/ {
10444         /^0/ {
10445             s/^0  *\(.*\)$/\1/
10446             p
10447         }
10448     }'
10449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10450 # Check for a 64-bit object if we didn't find anything.
10451 if test -z "$aix_libpath"; then
10452   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10453 fi
10454 fi
10455 rm -f core conftest.err conftest.$ac_objext \
10456     conftest$ac_exeext conftest.$ac_ext
10457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10458
10459         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10460         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10461       else
10462         if test "$host_cpu" = ia64; then
10463           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10464           allow_undefined_flag="-z nodefs"
10465           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"
10466         else
10467          # Determine the default libpath from the value encoded in an
10468          # empty executable.
10469          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h.  */
10471
10472 int
10473 main ()
10474 {
10475
10476   ;
10477   return 0;
10478 }
10479 _ACEOF
10480 if ac_fn_c_try_link "$LINENO"; then :
10481
10482 lt_aix_libpath_sed='
10483     /Import File Strings/,/^$/ {
10484         /^0/ {
10485             s/^0  *\(.*\)$/\1/
10486             p
10487         }
10488     }'
10489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 # Check for a 64-bit object if we didn't find anything.
10491 if test -z "$aix_libpath"; then
10492   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10493 fi
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext \
10496     conftest$ac_exeext conftest.$ac_ext
10497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10498
10499          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10500           # Warning - without using the other run time loading flags,
10501           # -berok will link without error, but may produce a broken library.
10502           no_undefined_flag=' ${wl}-bernotok'
10503           allow_undefined_flag=' ${wl}-berok'
10504           # Exported symbols can be pulled into shared objects from archives
10505           whole_archive_flag_spec='$convenience'
10506           archive_cmds_need_lc=yes
10507           # This is similar to how AIX traditionally builds its shared libraries.
10508           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'
10509         fi
10510       fi
10511       ;;
10512
10513     amigaos*)
10514       case $host_cpu in
10515       powerpc)
10516             # see comment about AmigaOS4 .so support
10517             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10518             archive_expsym_cmds=''
10519         ;;
10520       m68k)
10521             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)'
10522             hardcode_libdir_flag_spec='-L$libdir'
10523             hardcode_minus_L=yes
10524         ;;
10525       esac
10526       ;;
10527
10528     bsdi[45]*)
10529       export_dynamic_flag_spec=-rdynamic
10530       ;;
10531
10532     cygwin* | mingw* | pw32* | cegcc*)
10533       # When not using gcc, we currently assume that we are using
10534       # Microsoft Visual C++.
10535       # hardcode_libdir_flag_spec is actually meaningless, as there is
10536       # no search path for DLLs.
10537       hardcode_libdir_flag_spec=' '
10538       allow_undefined_flag=unsupported
10539       # Tell ltmain to make .lib files, not .a files.
10540       libext=lib
10541       # Tell ltmain to make .dll files, not .so files.
10542       shrext_cmds=".dll"
10543       # FIXME: Setting linknames here is a bad hack.
10544       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10545       # The linker will automatically build a .lib file if we build a DLL.
10546       old_archive_from_new_cmds='true'
10547       # FIXME: Should let the user specify the lib program.
10548       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10549       fix_srcfile_path='`cygpath -w "$srcfile"`'
10550       enable_shared_with_static_runtimes=yes
10551       ;;
10552
10553     darwin* | rhapsody*)
10554
10555
10556   archive_cmds_need_lc=no
10557   hardcode_direct=no
10558   hardcode_automatic=yes
10559   hardcode_shlibpath_var=unsupported
10560   whole_archive_flag_spec=''
10561   link_all_deplibs=yes
10562   allow_undefined_flag="$_lt_dar_allow_undefined"
10563   case $cc_basename in
10564      ifort*) _lt_dar_can_shared=yes ;;
10565      *) _lt_dar_can_shared=$GCC ;;
10566   esac
10567   if test "$_lt_dar_can_shared" = "yes"; then
10568     output_verbose_link_cmd=echo
10569     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10570     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10571     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}"
10572     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}"
10573
10574   else
10575   ld_shlibs=no
10576   fi
10577
10578       ;;
10579
10580     dgux*)
10581       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582       hardcode_libdir_flag_spec='-L$libdir'
10583       hardcode_shlibpath_var=no
10584       ;;
10585
10586     freebsd1*)
10587       ld_shlibs=no
10588       ;;
10589
10590     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10591     # support.  Future versions do this automatically, but an explicit c++rt0.o
10592     # does not break anything, and helps significantly (at the cost of a little
10593     # extra space).
10594     freebsd2.2*)
10595       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10596       hardcode_libdir_flag_spec='-R$libdir'
10597       hardcode_direct=yes
10598       hardcode_shlibpath_var=no
10599       ;;
10600
10601     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10602     freebsd2*)
10603       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10604       hardcode_direct=yes
10605       hardcode_minus_L=yes
10606       hardcode_shlibpath_var=no
10607       ;;
10608
10609     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10610     freebsd* | dragonfly*)
10611       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10612       hardcode_libdir_flag_spec='-R$libdir'
10613       hardcode_direct=yes
10614       hardcode_shlibpath_var=no
10615       ;;
10616
10617     hpux9*)
10618       if test "$GCC" = yes; then
10619         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10620       else
10621         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'
10622       fi
10623       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10624       hardcode_libdir_separator=:
10625       hardcode_direct=yes
10626
10627       # hardcode_minus_L: Not really in the search PATH,
10628       # but as the default location of the library.
10629       hardcode_minus_L=yes
10630       export_dynamic_flag_spec='${wl}-E'
10631       ;;
10632
10633     hpux10*)
10634       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10635         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10636       else
10637         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10638       fi
10639       if test "$with_gnu_ld" = no; then
10640         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10641         hardcode_libdir_flag_spec_ld='+b $libdir'
10642         hardcode_libdir_separator=:
10643         hardcode_direct=yes
10644         hardcode_direct_absolute=yes
10645         export_dynamic_flag_spec='${wl}-E'
10646         # hardcode_minus_L: Not really in the search PATH,
10647         # but as the default location of the library.
10648         hardcode_minus_L=yes
10649       fi
10650       ;;
10651
10652     hpux11*)
10653       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10654         case $host_cpu in
10655         hppa*64*)
10656           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10657           ;;
10658         ia64*)
10659           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10660           ;;
10661         *)
10662           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10663           ;;
10664         esac
10665       else
10666         case $host_cpu in
10667         hppa*64*)
10668           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10669           ;;
10670         ia64*)
10671           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10672           ;;
10673         *)
10674           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10675           ;;
10676         esac
10677       fi
10678       if test "$with_gnu_ld" = no; then
10679         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10680         hardcode_libdir_separator=:
10681
10682         case $host_cpu in
10683         hppa*64*|ia64*)
10684           hardcode_direct=no
10685           hardcode_shlibpath_var=no
10686           ;;
10687         *)
10688           hardcode_direct=yes
10689           hardcode_direct_absolute=yes
10690           export_dynamic_flag_spec='${wl}-E'
10691
10692           # hardcode_minus_L: Not really in the search PATH,
10693           # but as the default location of the library.
10694           hardcode_minus_L=yes
10695           ;;
10696         esac
10697       fi
10698       ;;
10699
10700     irix5* | irix6* | nonstopux*)
10701       if test "$GCC" = yes; then
10702         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10703         # Try to use the -exported_symbol ld option, if it does not
10704         # work, assume that -exports_file does not work either and
10705         # implicitly export all symbols.
10706         save_LDFLAGS="$LDFLAGS"
10707         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10708         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h.  */
10710 int foo(void) {}
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10714
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717     conftest$ac_exeext conftest.$ac_ext
10718         LDFLAGS="$save_LDFLAGS"
10719       else
10720         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10721         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10722       fi
10723       archive_cmds_need_lc='no'
10724       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10725       hardcode_libdir_separator=:
10726       inherit_rpath=yes
10727       link_all_deplibs=yes
10728       ;;
10729
10730     netbsd*)
10731       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10732         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10733       else
10734         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10735       fi
10736       hardcode_libdir_flag_spec='-R$libdir'
10737       hardcode_direct=yes
10738       hardcode_shlibpath_var=no
10739       ;;
10740
10741     newsos6)
10742       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10743       hardcode_direct=yes
10744       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10745       hardcode_libdir_separator=:
10746       hardcode_shlibpath_var=no
10747       ;;
10748
10749     *nto* | *qnx*)
10750       ;;
10751
10752     openbsd*)
10753       if test -f /usr/libexec/ld.so; then
10754         hardcode_direct=yes
10755         hardcode_shlibpath_var=no
10756         hardcode_direct_absolute=yes
10757         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10758           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10759           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10760           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10761           export_dynamic_flag_spec='${wl}-E'
10762         else
10763           case $host_os in
10764            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10765              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10766              hardcode_libdir_flag_spec='-R$libdir'
10767              ;;
10768            *)
10769              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10770              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10771              ;;
10772           esac
10773         fi
10774       else
10775         ld_shlibs=no
10776       fi
10777       ;;
10778
10779     os2*)
10780       hardcode_libdir_flag_spec='-L$libdir'
10781       hardcode_minus_L=yes
10782       allow_undefined_flag=unsupported
10783       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'
10784       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10785       ;;
10786
10787     osf3*)
10788       if test "$GCC" = yes; then
10789         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10790         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10791       else
10792         allow_undefined_flag=' -expect_unresolved \*'
10793         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10794       fi
10795       archive_cmds_need_lc='no'
10796       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10797       hardcode_libdir_separator=:
10798       ;;
10799
10800     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10801       if test "$GCC" = yes; then
10802         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10803         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10804         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10805       else
10806         allow_undefined_flag=' -expect_unresolved \*'
10807         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10808         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~
10809         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10810
10811         # Both c and cxx compiler support -rpath directly
10812         hardcode_libdir_flag_spec='-rpath $libdir'
10813       fi
10814       archive_cmds_need_lc='no'
10815       hardcode_libdir_separator=:
10816       ;;
10817
10818     solaris*)
10819       no_undefined_flag=' -z defs'
10820       if test "$GCC" = yes; then
10821         wlarc='${wl}'
10822         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10823         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10824           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10825       else
10826         case `$CC -V 2>&1` in
10827         *"Compilers 5.0"*)
10828           wlarc=''
10829           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10831           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10832           ;;
10833         *)
10834           wlarc='${wl}'
10835           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10836           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10837           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10838           ;;
10839         esac
10840       fi
10841       hardcode_libdir_flag_spec='-R$libdir'
10842       hardcode_shlibpath_var=no
10843       case $host_os in
10844       solaris2.[0-5] | solaris2.[0-5].*) ;;
10845       *)
10846         # The compiler driver will combine and reorder linker options,
10847         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10848         # but is careful enough not to reorder.
10849         # Supported since Solaris 2.6 (maybe 2.5.1?)
10850         if test "$GCC" = yes; then
10851           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10852         else
10853           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10854         fi
10855         ;;
10856       esac
10857       link_all_deplibs=yes
10858       ;;
10859
10860     sunos4*)
10861       if test "x$host_vendor" = xsequent; then
10862         # Use $CC to link under sequent, because it throws in some extra .o
10863         # files that make .init and .fini sections work.
10864         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10865       else
10866         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10867       fi
10868       hardcode_libdir_flag_spec='-L$libdir'
10869       hardcode_direct=yes
10870       hardcode_minus_L=yes
10871       hardcode_shlibpath_var=no
10872       ;;
10873
10874     sysv4)
10875       case $host_vendor in
10876         sni)
10877           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10878           hardcode_direct=yes # is this really true???
10879         ;;
10880         siemens)
10881           ## LD is ld it makes a PLAMLIB
10882           ## CC just makes a GrossModule.
10883           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10884           reload_cmds='$CC -r -o $output$reload_objs'
10885           hardcode_direct=no
10886         ;;
10887         motorola)
10888           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10890         ;;
10891       esac
10892       runpath_var='LD_RUN_PATH'
10893       hardcode_shlibpath_var=no
10894       ;;
10895
10896     sysv4.3*)
10897       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10898       hardcode_shlibpath_var=no
10899       export_dynamic_flag_spec='-Bexport'
10900       ;;
10901
10902     sysv4*MP*)
10903       if test -d /usr/nec; then
10904         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905         hardcode_shlibpath_var=no
10906         runpath_var=LD_RUN_PATH
10907         hardcode_runpath_var=yes
10908         ld_shlibs=yes
10909       fi
10910       ;;
10911
10912     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10913       no_undefined_flag='${wl}-z,text'
10914       archive_cmds_need_lc=no
10915       hardcode_shlibpath_var=no
10916       runpath_var='LD_RUN_PATH'
10917
10918       if test "$GCC" = yes; then
10919         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921       else
10922         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924       fi
10925       ;;
10926
10927     sysv5* | sco3.2v5* | sco5v6*)
10928       # Note: We can NOT use -z defs as we might desire, because we do not
10929       # link with -lc, and that would cause any symbols used from libc to
10930       # always be unresolved, which means just about no library would
10931       # ever link correctly.  If we're not using GNU ld we use -z text
10932       # though, which does catch some bad symbols but isn't as heavy-handed
10933       # as -z defs.
10934       no_undefined_flag='${wl}-z,text'
10935       allow_undefined_flag='${wl}-z,nodefs'
10936       archive_cmds_need_lc=no
10937       hardcode_shlibpath_var=no
10938       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10939       hardcode_libdir_separator=':'
10940       link_all_deplibs=yes
10941       export_dynamic_flag_spec='${wl}-Bexport'
10942       runpath_var='LD_RUN_PATH'
10943
10944       if test "$GCC" = yes; then
10945         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947       else
10948         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950       fi
10951       ;;
10952
10953     uts4*)
10954       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10955       hardcode_libdir_flag_spec='-L$libdir'
10956       hardcode_shlibpath_var=no
10957       ;;
10958
10959     *)
10960       ld_shlibs=no
10961       ;;
10962     esac
10963
10964     if test x$host_vendor = xsni; then
10965       case $host in
10966       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10967         export_dynamic_flag_spec='${wl}-Blargedynsym'
10968         ;;
10969       esac
10970     fi
10971   fi
10972
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10974 $as_echo "$ld_shlibs" >&6; }
10975 test "$ld_shlibs" = no && can_build_shared=no
10976
10977 with_gnu_ld=$with_gnu_ld
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993 #
10994 # Do we need to explicitly link libc?
10995 #
10996 case "x$archive_cmds_need_lc" in
10997 x|xyes)
10998   # Assume -lc should be added
10999   archive_cmds_need_lc=yes
11000
11001   if test "$enable_shared" = yes && test "$GCC" = yes; then
11002     case $archive_cmds in
11003     *'~'*)
11004       # FIXME: we may have to deal with multi-command sequences.
11005       ;;
11006     '$CC '*)
11007       # Test whether the compiler implicitly links with -lc since on some
11008       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11009       # to ld, don't add -lc before -lgcc.
11010       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11011 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11012       $RM conftest*
11013       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11014
11015       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11016   (eval $ac_compile) 2>&5
11017   ac_status=$?
11018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11019   test $ac_status = 0; } 2>conftest.err; then
11020         soname=conftest
11021         lib=conftest
11022         libobjs=conftest.$ac_objext
11023         deplibs=
11024         wl=$lt_prog_compiler_wl
11025         pic_flag=$lt_prog_compiler_pic
11026         compiler_flags=-v
11027         linker_flags=-v
11028         verstring=
11029         output_objdir=.
11030         libname=conftest
11031         lt_save_allow_undefined_flag=$allow_undefined_flag
11032         allow_undefined_flag=
11033         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11034   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11035   ac_status=$?
11036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11037   test $ac_status = 0; }
11038         then
11039           archive_cmds_need_lc=no
11040         else
11041           archive_cmds_need_lc=yes
11042         fi
11043         allow_undefined_flag=$lt_save_allow_undefined_flag
11044       else
11045         cat conftest.err 1>&5
11046       fi
11047       $RM conftest*
11048       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11049 $as_echo "$archive_cmds_need_lc" >&6; }
11050       ;;
11051     esac
11052   fi
11053   ;;
11054 esac
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11213 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11214
11215 if test "$GCC" = yes; then
11216   case $host_os in
11217     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11218     *) lt_awk_arg="/^libraries:/" ;;
11219   esac
11220   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11221   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11222     # if the path contains ";" then we assume it to be the separator
11223     # otherwise default to the standard path separator (i.e. ":") - it is
11224     # assumed that no part of a normal pathname contains ";" but that should
11225     # okay in the real world where ";" in dirpaths is itself problematic.
11226     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11227   else
11228     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11229   fi
11230   # Ok, now we have the path, separated by spaces, we can step through it
11231   # and add multilib dir if necessary.
11232   lt_tmp_lt_search_path_spec=
11233   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11234   for lt_sys_path in $lt_search_path_spec; do
11235     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11236       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11237     else
11238       test -d "$lt_sys_path" && \
11239         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11240     fi
11241   done
11242   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11243 BEGIN {RS=" "; FS="/|\n";} {
11244   lt_foo="";
11245   lt_count=0;
11246   for (lt_i = NF; lt_i > 0; lt_i--) {
11247     if ($lt_i != "" && $lt_i != ".") {
11248       if ($lt_i == "..") {
11249         lt_count++;
11250       } else {
11251         if (lt_count == 0) {
11252           lt_foo="/" $lt_i lt_foo;
11253         } else {
11254           lt_count--;
11255         }
11256       }
11257     }
11258   }
11259   if (lt_foo != "") { lt_freq[lt_foo]++; }
11260   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11261 }'`
11262   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11263 else
11264   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11265 fi
11266 library_names_spec=
11267 libname_spec='lib$name'
11268 soname_spec=
11269 shrext_cmds=".so"
11270 postinstall_cmds=
11271 postuninstall_cmds=
11272 finish_cmds=
11273 finish_eval=
11274 shlibpath_var=
11275 shlibpath_overrides_runpath=unknown
11276 version_type=none
11277 dynamic_linker="$host_os ld.so"
11278 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11279 need_lib_prefix=unknown
11280 hardcode_into_libs=no
11281
11282 # when you set need_version to no, make sure it does not cause -set_version
11283 # flags to be left without arguments
11284 need_version=unknown
11285
11286 case $host_os in
11287 aix3*)
11288   version_type=linux
11289   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11290   shlibpath_var=LIBPATH
11291
11292   # AIX 3 has no versioning support, so we append a major version to the name.
11293   soname_spec='${libname}${release}${shared_ext}$major'
11294   ;;
11295
11296 aix[4-9]*)
11297   version_type=linux
11298   need_lib_prefix=no
11299   need_version=no
11300   hardcode_into_libs=yes
11301   if test "$host_cpu" = ia64; then
11302     # AIX 5 supports IA64
11303     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11304     shlibpath_var=LD_LIBRARY_PATH
11305   else
11306     # With GCC up to 2.95.x, collect2 would create an import file
11307     # for dependence libraries.  The import file would start with
11308     # the line `#! .'.  This would cause the generated library to
11309     # depend on `.', always an invalid library.  This was fixed in
11310     # development snapshots of GCC prior to 3.0.
11311     case $host_os in
11312       aix4 | aix4.[01] | aix4.[01].*)
11313       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11314            echo ' yes '
11315            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11316         :
11317       else
11318         can_build_shared=no
11319       fi
11320       ;;
11321     esac
11322     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11323     # soname into executable. Probably we can add versioning support to
11324     # collect2, so additional links can be useful in future.
11325     if test "$aix_use_runtimelinking" = yes; then
11326       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11327       # instead of lib<name>.a to let people know that these are not
11328       # typical AIX shared libraries.
11329       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11330     else
11331       # We preserve .a as extension for shared libraries through AIX4.2
11332       # and later when we are not doing run time linking.
11333       library_names_spec='${libname}${release}.a $libname.a'
11334       soname_spec='${libname}${release}${shared_ext}$major'
11335     fi
11336     shlibpath_var=LIBPATH
11337   fi
11338   ;;
11339
11340 amigaos*)
11341   case $host_cpu in
11342   powerpc)
11343     # Since July 2007 AmigaOS4 officially supports .so libraries.
11344     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346     ;;
11347   m68k)
11348     library_names_spec='$libname.ixlibrary $libname.a'
11349     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11350     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11351     ;;
11352   esac
11353   ;;
11354
11355 beos*)
11356   library_names_spec='${libname}${shared_ext}'
11357   dynamic_linker="$host_os ld.so"
11358   shlibpath_var=LIBRARY_PATH
11359   ;;
11360
11361 bsdi[45]*)
11362   version_type=linux
11363   need_version=no
11364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11365   soname_spec='${libname}${release}${shared_ext}$major'
11366   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11367   shlibpath_var=LD_LIBRARY_PATH
11368   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11369   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11370   # the default ld.so.conf also contains /usr/contrib/lib and
11371   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11372   # libtool to hard-code these into programs
11373   ;;
11374
11375 cygwin* | mingw* | pw32* | cegcc*)
11376   version_type=windows
11377   shrext_cmds=".dll"
11378   need_version=no
11379   need_lib_prefix=no
11380
11381   case $GCC,$host_os in
11382   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11383     library_names_spec='$libname.dll.a'
11384     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11385     postinstall_cmds='base_file=`basename \${file}`~
11386       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11387       dldir=$destdir/`dirname \$dlpath`~
11388       test -d \$dldir || mkdir -p \$dldir~
11389       $install_prog $dir/$dlname \$dldir/$dlname~
11390       chmod a+x \$dldir/$dlname~
11391       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11392         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11393       fi'
11394     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11395       dlpath=$dir/\$dldll~
11396        $RM \$dlpath'
11397     shlibpath_overrides_runpath=yes
11398
11399     case $host_os in
11400     cygwin*)
11401       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11402       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11403       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11404       ;;
11405     mingw* | cegcc*)
11406       # MinGW DLLs use traditional 'lib' prefix
11407       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11408       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11409       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11410         # It is most probably a Windows format PATH printed by
11411         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11412         # path with ; separators, and with drive letters. We can handle the
11413         # drive letters (cygwin fileutils understands them), so leave them,
11414         # especially as we might pass files found there to a mingw objdump,
11415         # which wouldn't understand a cygwinified path. Ahh.
11416         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11417       else
11418         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11419       fi
11420       ;;
11421     pw32*)
11422       # pw32 DLLs use 'pw' prefix rather than 'lib'
11423       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11424       ;;
11425     esac
11426     ;;
11427
11428   *)
11429     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11430     ;;
11431   esac
11432   dynamic_linker='Win32 ld.exe'
11433   # FIXME: first we should search . and the directory the executable is in
11434   shlibpath_var=PATH
11435   ;;
11436
11437 darwin* | rhapsody*)
11438   dynamic_linker="$host_os dyld"
11439   version_type=darwin
11440   need_lib_prefix=no
11441   need_version=no
11442   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11443   soname_spec='${libname}${release}${major}$shared_ext'
11444   shlibpath_overrides_runpath=yes
11445   shlibpath_var=DYLD_LIBRARY_PATH
11446   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11447
11448   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11449   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11450   ;;
11451
11452 dgux*)
11453   version_type=linux
11454   need_lib_prefix=no
11455   need_version=no
11456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11457   soname_spec='${libname}${release}${shared_ext}$major'
11458   shlibpath_var=LD_LIBRARY_PATH
11459   ;;
11460
11461 freebsd1*)
11462   dynamic_linker=no
11463   ;;
11464
11465 freebsd* | dragonfly*)
11466   # DragonFly does not have aout.  When/if they implement a new
11467   # versioning mechanism, adjust this.
11468   if test -x /usr/bin/objformat; then
11469     objformat=`/usr/bin/objformat`
11470   else
11471     case $host_os in
11472     freebsd[123]*) objformat=aout ;;
11473     *) objformat=elf ;;
11474     esac
11475   fi
11476   version_type=freebsd-$objformat
11477   case $version_type in
11478     freebsd-elf*)
11479       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11480       need_version=no
11481       need_lib_prefix=no
11482       ;;
11483     freebsd-*)
11484       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11485       need_version=yes
11486       ;;
11487   esac
11488   shlibpath_var=LD_LIBRARY_PATH
11489   case $host_os in
11490   freebsd2*)
11491     shlibpath_overrides_runpath=yes
11492     ;;
11493   freebsd3.[01]* | freebsdelf3.[01]*)
11494     shlibpath_overrides_runpath=yes
11495     hardcode_into_libs=yes
11496     ;;
11497   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11498   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11499     shlibpath_overrides_runpath=no
11500     hardcode_into_libs=yes
11501     ;;
11502   *) # from 4.6 on, and DragonFly
11503     shlibpath_overrides_runpath=yes
11504     hardcode_into_libs=yes
11505     ;;
11506   esac
11507   ;;
11508
11509 gnu*)
11510   version_type=linux
11511   need_lib_prefix=no
11512   need_version=no
11513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11514   soname_spec='${libname}${release}${shared_ext}$major'
11515   shlibpath_var=LD_LIBRARY_PATH
11516   hardcode_into_libs=yes
11517   ;;
11518
11519 hpux9* | hpux10* | hpux11*)
11520   # Give a soname corresponding to the major version so that dld.sl refuses to
11521   # link against other versions.
11522   version_type=sunos
11523   need_lib_prefix=no
11524   need_version=no
11525   case $host_cpu in
11526   ia64*)
11527     shrext_cmds='.so'
11528     hardcode_into_libs=yes
11529     dynamic_linker="$host_os dld.so"
11530     shlibpath_var=LD_LIBRARY_PATH
11531     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533     soname_spec='${libname}${release}${shared_ext}$major'
11534     if test "X$HPUX_IA64_MODE" = X32; then
11535       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11536     else
11537       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11538     fi
11539     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11540     ;;
11541   hppa*64*)
11542     shrext_cmds='.sl'
11543     hardcode_into_libs=yes
11544     dynamic_linker="$host_os dld.sl"
11545     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11546     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548     soname_spec='${libname}${release}${shared_ext}$major'
11549     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11550     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11551     ;;
11552   *)
11553     shrext_cmds='.sl'
11554     dynamic_linker="$host_os dld.sl"
11555     shlibpath_var=SHLIB_PATH
11556     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558     soname_spec='${libname}${release}${shared_ext}$major'
11559     ;;
11560   esac
11561   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11562   postinstall_cmds='chmod 555 $lib'
11563   ;;
11564
11565 interix[3-9]*)
11566   version_type=linux
11567   need_lib_prefix=no
11568   need_version=no
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11570   soname_spec='${libname}${release}${shared_ext}$major'
11571   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11572   shlibpath_var=LD_LIBRARY_PATH
11573   shlibpath_overrides_runpath=no
11574   hardcode_into_libs=yes
11575   ;;
11576
11577 irix5* | irix6* | nonstopux*)
11578   case $host_os in
11579     nonstopux*) version_type=nonstopux ;;
11580     *)
11581         if test "$lt_cv_prog_gnu_ld" = yes; then
11582                 version_type=linux
11583         else
11584                 version_type=irix
11585         fi ;;
11586   esac
11587   need_lib_prefix=no
11588   need_version=no
11589   soname_spec='${libname}${release}${shared_ext}$major'
11590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11591   case $host_os in
11592   irix5* | nonstopux*)
11593     libsuff= shlibsuff=
11594     ;;
11595   *)
11596     case $LD in # libtool.m4 will add one of these switches to LD
11597     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11598       libsuff= shlibsuff= libmagic=32-bit;;
11599     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11600       libsuff=32 shlibsuff=N32 libmagic=N32;;
11601     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11602       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11603     *) libsuff= shlibsuff= libmagic=never-match;;
11604     esac
11605     ;;
11606   esac
11607   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11608   shlibpath_overrides_runpath=no
11609   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11610   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11611   hardcode_into_libs=yes
11612   ;;
11613
11614 # No shared lib support for Linux oldld, aout, or coff.
11615 linux*oldld* | linux*aout* | linux*coff*)
11616   dynamic_linker=no
11617   ;;
11618
11619 # This must be Linux ELF.
11620 linux* | k*bsd*-gnu)
11621   version_type=linux
11622   need_lib_prefix=no
11623   need_version=no
11624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11625   soname_spec='${libname}${release}${shared_ext}$major'
11626   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11627   shlibpath_var=LD_LIBRARY_PATH
11628   shlibpath_overrides_runpath=no
11629   # Some binutils ld are patched to set DT_RUNPATH
11630   save_LDFLAGS=$LDFLAGS
11631   save_libdir=$libdir
11632   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11633        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h.  */
11636
11637 int
11638 main ()
11639 {
11640
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 if ac_fn_c_try_link "$LINENO"; then :
11646   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11647   shlibpath_overrides_runpath=yes
11648 fi
11649 fi
11650 rm -f core conftest.err conftest.$ac_objext \
11651     conftest$ac_exeext conftest.$ac_ext
11652   LDFLAGS=$save_LDFLAGS
11653   libdir=$save_libdir
11654
11655   # This implies no fast_install, which is unacceptable.
11656   # Some rework will be needed to allow for fast_install
11657   # before this can be enabled.
11658   hardcode_into_libs=yes
11659
11660   # Append ld.so.conf contents to the search path
11661   if test -f /etc/ld.so.conf; then
11662     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11663     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11664   fi
11665
11666   # We used to test for /lib/ld.so.1 and disable shared libraries on
11667   # powerpc, because MkLinux only supported shared libraries with the
11668   # GNU dynamic linker.  Since this was broken with cross compilers,
11669   # most powerpc-linux boxes support dynamic linking these days and
11670   # people can always --disable-shared, the test was removed, and we
11671   # assume the GNU/Linux dynamic linker is in use.
11672   dynamic_linker='GNU/Linux ld.so'
11673   ;;
11674
11675 netbsd*)
11676   version_type=sunos
11677   need_lib_prefix=no
11678   need_version=no
11679   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11681     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11682     dynamic_linker='NetBSD (a.out) ld.so'
11683   else
11684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11685     soname_spec='${libname}${release}${shared_ext}$major'
11686     dynamic_linker='NetBSD ld.elf_so'
11687   fi
11688   shlibpath_var=LD_LIBRARY_PATH
11689   shlibpath_overrides_runpath=yes
11690   hardcode_into_libs=yes
11691   ;;
11692
11693 newsos6)
11694   version_type=linux
11695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696   shlibpath_var=LD_LIBRARY_PATH
11697   shlibpath_overrides_runpath=yes
11698   ;;
11699
11700 *nto* | *qnx*)
11701   version_type=qnx
11702   need_lib_prefix=no
11703   need_version=no
11704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705   soname_spec='${libname}${release}${shared_ext}$major'
11706   shlibpath_var=LD_LIBRARY_PATH
11707   shlibpath_overrides_runpath=no
11708   hardcode_into_libs=yes
11709   dynamic_linker='ldqnx.so'
11710   ;;
11711
11712 openbsd*)
11713   version_type=sunos
11714   sys_lib_dlsearch_path_spec="/usr/lib"
11715   need_lib_prefix=no
11716   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11717   case $host_os in
11718     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11719     *)                          need_version=no  ;;
11720   esac
11721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11722   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11723   shlibpath_var=LD_LIBRARY_PATH
11724   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11725     case $host_os in
11726       openbsd2.[89] | openbsd2.[89].*)
11727         shlibpath_overrides_runpath=no
11728         ;;
11729       *)
11730         shlibpath_overrides_runpath=yes
11731         ;;
11732       esac
11733   else
11734     shlibpath_overrides_runpath=yes
11735   fi
11736   ;;
11737
11738 os2*)
11739   libname_spec='$name'
11740   shrext_cmds=".dll"
11741   need_lib_prefix=no
11742   library_names_spec='$libname${shared_ext} $libname.a'
11743   dynamic_linker='OS/2 ld.exe'
11744   shlibpath_var=LIBPATH
11745   ;;
11746
11747 osf3* | osf4* | osf5*)
11748   version_type=osf
11749   need_lib_prefix=no
11750   need_version=no
11751   soname_spec='${libname}${release}${shared_ext}$major'
11752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753   shlibpath_var=LD_LIBRARY_PATH
11754   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11755   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11756   ;;
11757
11758 rdos*)
11759   dynamic_linker=no
11760   ;;
11761
11762 solaris*)
11763   version_type=linux
11764   need_lib_prefix=no
11765   need_version=no
11766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11767   soname_spec='${libname}${release}${shared_ext}$major'
11768   shlibpath_var=LD_LIBRARY_PATH
11769   shlibpath_overrides_runpath=yes
11770   hardcode_into_libs=yes
11771   # ldd complains unless libraries are executable
11772   postinstall_cmds='chmod +x $lib'
11773   ;;
11774
11775 sunos4*)
11776   version_type=sunos
11777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11778   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11779   shlibpath_var=LD_LIBRARY_PATH
11780   shlibpath_overrides_runpath=yes
11781   if test "$with_gnu_ld" = yes; then
11782     need_lib_prefix=no
11783   fi
11784   need_version=yes
11785   ;;
11786
11787 sysv4 | sysv4.3*)
11788   version_type=linux
11789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790   soname_spec='${libname}${release}${shared_ext}$major'
11791   shlibpath_var=LD_LIBRARY_PATH
11792   case $host_vendor in
11793     sni)
11794       shlibpath_overrides_runpath=no
11795       need_lib_prefix=no
11796       runpath_var=LD_RUN_PATH
11797       ;;
11798     siemens)
11799       need_lib_prefix=no
11800       ;;
11801     motorola)
11802       need_lib_prefix=no
11803       need_version=no
11804       shlibpath_overrides_runpath=no
11805       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11806       ;;
11807   esac
11808   ;;
11809
11810 sysv4*MP*)
11811   if test -d /usr/nec ;then
11812     version_type=linux
11813     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11814     soname_spec='$libname${shared_ext}.$major'
11815     shlibpath_var=LD_LIBRARY_PATH
11816   fi
11817   ;;
11818
11819 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11820   version_type=freebsd-elf
11821   need_lib_prefix=no
11822   need_version=no
11823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11824   soname_spec='${libname}${release}${shared_ext}$major'
11825   shlibpath_var=LD_LIBRARY_PATH
11826   shlibpath_overrides_runpath=yes
11827   hardcode_into_libs=yes
11828   if test "$with_gnu_ld" = yes; then
11829     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11830   else
11831     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11832     case $host_os in
11833       sco3.2v5*)
11834         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11835         ;;
11836     esac
11837   fi
11838   sys_lib_dlsearch_path_spec='/usr/lib'
11839   ;;
11840
11841 tpf*)
11842   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11843   version_type=linux
11844   need_lib_prefix=no
11845   need_version=no
11846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11847   shlibpath_var=LD_LIBRARY_PATH
11848   shlibpath_overrides_runpath=no
11849   hardcode_into_libs=yes
11850   ;;
11851
11852 uts4*)
11853   version_type=linux
11854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11855   soname_spec='${libname}${release}${shared_ext}$major'
11856   shlibpath_var=LD_LIBRARY_PATH
11857   ;;
11858
11859 *)
11860   dynamic_linker=no
11861   ;;
11862 esac
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11864 $as_echo "$dynamic_linker" >&6; }
11865 test "$dynamic_linker" = no && can_build_shared=no
11866
11867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11868 if test "$GCC" = yes; then
11869   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11870 fi
11871
11872 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11873   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11874 fi
11875 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11876   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11877 fi
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11966 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11967 hardcode_action=
11968 if test -n "$hardcode_libdir_flag_spec" ||
11969    test -n "$runpath_var" ||
11970    test "X$hardcode_automatic" = "Xyes" ; then
11971
11972   # We can hardcode non-existent directories.
11973   if test "$hardcode_direct" != no &&
11974      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11975      # have to relink, otherwise we might link with an installed library
11976      # when we should be linking with a yet-to-be-installed one
11977      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11978      test "$hardcode_minus_L" != no; then
11979     # Linking always hardcodes the temporary library directory.
11980     hardcode_action=relink
11981   else
11982     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11983     hardcode_action=immediate
11984   fi
11985 else
11986   # We cannot hardcode anything, or else we can only hardcode existing
11987   # directories.
11988   hardcode_action=unsupported
11989 fi
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11991 $as_echo "$hardcode_action" >&6; }
11992
11993 if test "$hardcode_action" = relink ||
11994    test "$inherit_rpath" = yes; then
11995   # Fast installation is not supported
11996   enable_fast_install=no
11997 elif test "$shlibpath_overrides_runpath" = yes ||
11998      test "$enable_shared" = no; then
11999   # Fast installation is not necessary
12000   enable_fast_install=needless
12001 fi
12002
12003
12004
12005
12006
12007
12008   if test "x$enable_dlopen" != xyes; then
12009   enable_dlopen=unknown
12010   enable_dlopen_self=unknown
12011   enable_dlopen_self_static=unknown
12012 else
12013   lt_cv_dlopen=no
12014   lt_cv_dlopen_libs=
12015
12016   case $host_os in
12017   beos*)
12018     lt_cv_dlopen="load_add_on"
12019     lt_cv_dlopen_libs=
12020     lt_cv_dlopen_self=yes
12021     ;;
12022
12023   mingw* | pw32* | cegcc*)
12024     lt_cv_dlopen="LoadLibrary"
12025     lt_cv_dlopen_libs=
12026     ;;
12027
12028   cygwin*)
12029     lt_cv_dlopen="dlopen"
12030     lt_cv_dlopen_libs=
12031     ;;
12032
12033   darwin*)
12034   # if libdl is installed we need to link against it
12035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12036 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12037 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12038   $as_echo_n "(cached) " >&6
12039 else
12040   ac_check_lib_save_LIBS=$LIBS
12041 LIBS="-ldl  $LIBS"
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h.  */
12044
12045 /* Override any GCC internal prototype to avoid an error.
12046    Use char because int might match the return type of a GCC
12047    builtin and then its argument prototype would still apply.  */
12048 #ifdef __cplusplus
12049 extern "C"
12050 #endif
12051 char dlopen ();
12052 int
12053 main ()
12054 {
12055 return dlopen ();
12056   ;
12057   return 0;
12058 }
12059 _ACEOF
12060 if ac_fn_c_try_link "$LINENO"; then :
12061   ac_cv_lib_dl_dlopen=yes
12062 else
12063   ac_cv_lib_dl_dlopen=no
12064 fi
12065 rm -f core conftest.err conftest.$ac_objext \
12066     conftest$ac_exeext conftest.$ac_ext
12067 LIBS=$ac_check_lib_save_LIBS
12068 fi
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12070 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12071 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12072   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12073 else
12074
12075     lt_cv_dlopen="dyld"
12076     lt_cv_dlopen_libs=
12077     lt_cv_dlopen_self=yes
12078
12079 fi
12080
12081     ;;
12082
12083   *)
12084     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12085 if test "x$ac_cv_func_shl_load" = x""yes; then :
12086   lt_cv_dlopen="shl_load"
12087 else
12088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12089 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12090 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12091   $as_echo_n "(cached) " >&6
12092 else
12093   ac_check_lib_save_LIBS=$LIBS
12094 LIBS="-ldld  $LIBS"
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h.  */
12097
12098 /* Override any GCC internal prototype to avoid an error.
12099    Use char because int might match the return type of a GCC
12100    builtin and then its argument prototype would still apply.  */
12101 #ifdef __cplusplus
12102 extern "C"
12103 #endif
12104 char shl_load ();
12105 int
12106 main ()
12107 {
12108 return shl_load ();
12109   ;
12110   return 0;
12111 }
12112 _ACEOF
12113 if ac_fn_c_try_link "$LINENO"; then :
12114   ac_cv_lib_dld_shl_load=yes
12115 else
12116   ac_cv_lib_dld_shl_load=no
12117 fi
12118 rm -f core conftest.err conftest.$ac_objext \
12119     conftest$ac_exeext conftest.$ac_ext
12120 LIBS=$ac_check_lib_save_LIBS
12121 fi
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12123 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12124 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12125   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12126 else
12127   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12128 if test "x$ac_cv_func_dlopen" = x""yes; then :
12129   lt_cv_dlopen="dlopen"
12130 else
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12132 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12133 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12134   $as_echo_n "(cached) " >&6
12135 else
12136   ac_check_lib_save_LIBS=$LIBS
12137 LIBS="-ldl  $LIBS"
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h.  */
12140
12141 /* Override any GCC internal prototype to avoid an error.
12142    Use char because int might match the return type of a GCC
12143    builtin and then its argument prototype would still apply.  */
12144 #ifdef __cplusplus
12145 extern "C"
12146 #endif
12147 char dlopen ();
12148 int
12149 main ()
12150 {
12151 return dlopen ();
12152   ;
12153   return 0;
12154 }
12155 _ACEOF
12156 if ac_fn_c_try_link "$LINENO"; then :
12157   ac_cv_lib_dl_dlopen=yes
12158 else
12159   ac_cv_lib_dl_dlopen=no
12160 fi
12161 rm -f core conftest.err conftest.$ac_objext \
12162     conftest$ac_exeext conftest.$ac_ext
12163 LIBS=$ac_check_lib_save_LIBS
12164 fi
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12166 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12167 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12168   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12169 else
12170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12171 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12172 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12173   $as_echo_n "(cached) " >&6
12174 else
12175   ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-lsvld  $LIBS"
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h.  */
12179
12180 /* Override any GCC internal prototype to avoid an error.
12181    Use char because int might match the return type of a GCC
12182    builtin and then its argument prototype would still apply.  */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char dlopen ();
12187 int
12188 main ()
12189 {
12190 return dlopen ();
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_link "$LINENO"; then :
12196   ac_cv_lib_svld_dlopen=yes
12197 else
12198   ac_cv_lib_svld_dlopen=no
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext \
12201     conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12203 fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12205 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12206 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12207   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12208 else
12209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12210 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12211 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12212   $as_echo_n "(cached) " >&6
12213 else
12214   ac_check_lib_save_LIBS=$LIBS
12215 LIBS="-ldld  $LIBS"
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h.  */
12218
12219 /* Override any GCC internal prototype to avoid an error.
12220    Use char because int might match the return type of a GCC
12221    builtin and then its argument prototype would still apply.  */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 char dld_link ();
12226 int
12227 main ()
12228 {
12229 return dld_link ();
12230   ;
12231   return 0;
12232 }
12233 _ACEOF
12234 if ac_fn_c_try_link "$LINENO"; then :
12235   ac_cv_lib_dld_dld_link=yes
12236 else
12237   ac_cv_lib_dld_dld_link=no
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext \
12240     conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12244 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12245 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12246   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12247 fi
12248
12249
12250 fi
12251
12252
12253 fi
12254
12255
12256 fi
12257
12258
12259 fi
12260
12261
12262 fi
12263
12264     ;;
12265   esac
12266
12267   if test "x$lt_cv_dlopen" != xno; then
12268     enable_dlopen=yes
12269   else
12270     enable_dlopen=no
12271   fi
12272
12273   case $lt_cv_dlopen in
12274   dlopen)
12275     save_CPPFLAGS="$CPPFLAGS"
12276     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12277
12278     save_LDFLAGS="$LDFLAGS"
12279     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12280
12281     save_LIBS="$LIBS"
12282     LIBS="$lt_cv_dlopen_libs $LIBS"
12283
12284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12285 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12286 if test "${lt_cv_dlopen_self+set}" = set; then :
12287   $as_echo_n "(cached) " >&6
12288 else
12289           if test "$cross_compiling" = yes; then :
12290   lt_cv_dlopen_self=cross
12291 else
12292   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12293   lt_status=$lt_dlunknown
12294   cat > conftest.$ac_ext <<_LT_EOF
12295 #line 12295 "configure"
12296 #include "confdefs.h"
12297
12298 #if HAVE_DLFCN_H
12299 #include <dlfcn.h>
12300 #endif
12301
12302 #include <stdio.h>
12303
12304 #ifdef RTLD_GLOBAL
12305 #  define LT_DLGLOBAL           RTLD_GLOBAL
12306 #else
12307 #  ifdef DL_GLOBAL
12308 #    define LT_DLGLOBAL         DL_GLOBAL
12309 #  else
12310 #    define LT_DLGLOBAL         0
12311 #  endif
12312 #endif
12313
12314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12315    find out it does not work in some platform. */
12316 #ifndef LT_DLLAZY_OR_NOW
12317 #  ifdef RTLD_LAZY
12318 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12319 #  else
12320 #    ifdef DL_LAZY
12321 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12322 #    else
12323 #      ifdef RTLD_NOW
12324 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12325 #      else
12326 #        ifdef DL_NOW
12327 #          define LT_DLLAZY_OR_NOW      DL_NOW
12328 #        else
12329 #          define LT_DLLAZY_OR_NOW      0
12330 #        endif
12331 #      endif
12332 #    endif
12333 #  endif
12334 #endif
12335
12336 void fnord() { int i=42;}
12337 int main ()
12338 {
12339   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12340   int status = $lt_dlunknown;
12341
12342   if (self)
12343     {
12344       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12345       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12346       /* dlclose (self); */
12347     }
12348   else
12349     puts (dlerror ());
12350
12351   return status;
12352 }
12353 _LT_EOF
12354   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12355   (eval $ac_link) 2>&5
12356   ac_status=$?
12357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12358   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12359     (./conftest; exit; ) >&5 2>/dev/null
12360     lt_status=$?
12361     case x$lt_status in
12362       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12363       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12364       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12365     esac
12366   else :
12367     # compilation failed
12368     lt_cv_dlopen_self=no
12369   fi
12370 fi
12371 rm -fr conftest*
12372
12373
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12376 $as_echo "$lt_cv_dlopen_self" >&6; }
12377
12378     if test "x$lt_cv_dlopen_self" = xyes; then
12379       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12380       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12381 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12382 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12383   $as_echo_n "(cached) " >&6
12384 else
12385           if test "$cross_compiling" = yes; then :
12386   lt_cv_dlopen_self_static=cross
12387 else
12388   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12389   lt_status=$lt_dlunknown
12390   cat > conftest.$ac_ext <<_LT_EOF
12391 #line 12391 "configure"
12392 #include "confdefs.h"
12393
12394 #if HAVE_DLFCN_H
12395 #include <dlfcn.h>
12396 #endif
12397
12398 #include <stdio.h>
12399
12400 #ifdef RTLD_GLOBAL
12401 #  define LT_DLGLOBAL           RTLD_GLOBAL
12402 #else
12403 #  ifdef DL_GLOBAL
12404 #    define LT_DLGLOBAL         DL_GLOBAL
12405 #  else
12406 #    define LT_DLGLOBAL         0
12407 #  endif
12408 #endif
12409
12410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12411    find out it does not work in some platform. */
12412 #ifndef LT_DLLAZY_OR_NOW
12413 #  ifdef RTLD_LAZY
12414 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12415 #  else
12416 #    ifdef DL_LAZY
12417 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12418 #    else
12419 #      ifdef RTLD_NOW
12420 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12421 #      else
12422 #        ifdef DL_NOW
12423 #          define LT_DLLAZY_OR_NOW      DL_NOW
12424 #        else
12425 #          define LT_DLLAZY_OR_NOW      0
12426 #        endif
12427 #      endif
12428 #    endif
12429 #  endif
12430 #endif
12431
12432 void fnord() { int i=42;}
12433 int main ()
12434 {
12435   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12436   int status = $lt_dlunknown;
12437
12438   if (self)
12439     {
12440       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12441       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12442       /* dlclose (self); */
12443     }
12444   else
12445     puts (dlerror ());
12446
12447   return status;
12448 }
12449 _LT_EOF
12450   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12451   (eval $ac_link) 2>&5
12452   ac_status=$?
12453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12454   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12455     (./conftest; exit; ) >&5 2>/dev/null
12456     lt_status=$?
12457     case x$lt_status in
12458       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12459       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12460       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12461     esac
12462   else :
12463     # compilation failed
12464     lt_cv_dlopen_self_static=no
12465   fi
12466 fi
12467 rm -fr conftest*
12468
12469
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12472 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12473     fi
12474
12475     CPPFLAGS="$save_CPPFLAGS"
12476     LDFLAGS="$save_LDFLAGS"
12477     LIBS="$save_LIBS"
12478     ;;
12479   esac
12480
12481   case $lt_cv_dlopen_self in
12482   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12483   *) enable_dlopen_self=unknown ;;
12484   esac
12485
12486   case $lt_cv_dlopen_self_static in
12487   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12488   *) enable_dlopen_self_static=unknown ;;
12489   esac
12490 fi
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508 striplib=
12509 old_striplib=
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12511 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12512 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12513   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12514   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12516 $as_echo "yes" >&6; }
12517 else
12518 # FIXME - insert some real tests, host_os isn't really good enough
12519   case $host_os in
12520   darwin*)
12521     if test -n "$STRIP" ; then
12522       striplib="$STRIP -x"
12523       old_striplib="$STRIP -S"
12524       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12525 $as_echo "yes" >&6; }
12526     else
12527       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528 $as_echo "no" >&6; }
12529     fi
12530     ;;
12531   *)
12532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12534     ;;
12535   esac
12536 fi
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549   # Report which library types will actually be built
12550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12551 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12553 $as_echo "$can_build_shared" >&6; }
12554
12555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12556 $as_echo_n "checking whether to build shared libraries... " >&6; }
12557   test "$can_build_shared" = "no" && enable_shared=no
12558
12559   # On AIX, shared libraries and static libraries use the same namespace, and
12560   # are all built from PIC.
12561   case $host_os in
12562   aix3*)
12563     test "$enable_shared" = yes && enable_static=no
12564     if test -n "$RANLIB"; then
12565       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12566       postinstall_cmds='$RANLIB $lib'
12567     fi
12568     ;;
12569
12570   aix[4-9]*)
12571     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12572       test "$enable_shared" = yes && enable_static=no
12573     fi
12574     ;;
12575   esac
12576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12577 $as_echo "$enable_shared" >&6; }
12578
12579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12580 $as_echo_n "checking whether to build static libraries... " >&6; }
12581   # Make sure either enable_shared or enable_static is yes.
12582   test "$enable_shared" = yes || enable_static=yes
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12584 $as_echo "$enable_static" >&6; }
12585
12586
12587
12588
12589 fi
12590 ac_ext=c
12591 ac_cpp='$CPP $CPPFLAGS'
12592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12595
12596 CC="$lt_save_CC"
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610         ac_config_commands="$ac_config_commands libtool"
12611
12612
12613
12614
12615 # Only expand once:
12616
12617
12618
12619 if test "$enable_shared" = "no"; then
12620     with_noexec=no
12621 else
12622     eval _shrext="$shrext_cmds"
12623 fi
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
12625 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
12626
12627 # Check whether --with-noexec was given.
12628 if test "${with_noexec+set}" = set; then :
12629   withval=$with_noexec; case $with_noexec in
12630     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
12631                 ;;
12632     no)         ;;
12633     *)          ;;
12634 esac
12635 else
12636   with_noexec="$libexecdir/sudo_noexec$_shrext"
12637 fi
12638
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
12640 $as_echo "$with_noexec" >&6; }
12641 NOEXECFILE="sudo_noexec$_shrext"
12642 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
12643
12644 if test X"$with_devel" = X"yes" -a -n "$GCC"; then
12645     CFLAGS="${CFLAGS} -Wall"
12646 fi
12647
12648 # Extract the first word of "uname", so it can be a program name with args.
12649 set dummy uname; ac_word=$2
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651 $as_echo_n "checking for $ac_word... " >&6; }
12652 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then :
12653   $as_echo_n "(cached) " >&6
12654 else
12655   if test -n "$UNAMEPROG"; then
12656   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
12657 else
12658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659 for as_dir in $PATH
12660 do
12661   IFS=$as_save_IFS
12662   test -z "$as_dir" && as_dir=.
12663     for ac_exec_ext in '' $ac_executable_extensions; do
12664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12665     ac_cv_prog_UNAMEPROG="uname"
12666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12667     break 2
12668   fi
12669 done
12670   done
12671 IFS=$as_save_IFS
12672
12673 fi
12674 fi
12675 UNAMEPROG=$ac_cv_prog_UNAMEPROG
12676 if test -n "$UNAMEPROG"; then
12677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
12678 $as_echo "$UNAMEPROG" >&6; }
12679 else
12680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681 $as_echo "no" >&6; }
12682 fi
12683
12684
12685 # Extract the first word of "tr", so it can be a program name with args.
12686 set dummy tr; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if test "${ac_cv_prog_TRPROG+set}" = set; then :
12690   $as_echo_n "(cached) " >&6
12691 else
12692   if test -n "$TRPROG"; then
12693   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
12694 else
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12697 do
12698   IFS=$as_save_IFS
12699   test -z "$as_dir" && as_dir=.
12700     for ac_exec_ext in '' $ac_executable_extensions; do
12701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12702     ac_cv_prog_TRPROG="tr"
12703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704     break 2
12705   fi
12706 done
12707   done
12708 IFS=$as_save_IFS
12709
12710 fi
12711 fi
12712 TRPROG=$ac_cv_prog_TRPROG
12713 if test -n "$TRPROG"; then
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
12715 $as_echo "$TRPROG" >&6; }
12716 else
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719 fi
12720
12721
12722 for ac_prog in nroff mandoc
12723 do
12724   # Extract the first word of "$ac_prog", so it can be a program name with args.
12725 set dummy $ac_prog; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 $as_echo_n "checking for $ac_word... " >&6; }
12728 if test "${ac_cv_prog_NROFFPROG+set}" = set; then :
12729   $as_echo_n "(cached) " >&6
12730 else
12731   if test -n "$NROFFPROG"; then
12732   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
12733 else
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12736 do
12737   IFS=$as_save_IFS
12738   test -z "$as_dir" && as_dir=.
12739     for ac_exec_ext in '' $ac_executable_extensions; do
12740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741     ac_cv_prog_NROFFPROG="$ac_prog"
12742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743     break 2
12744   fi
12745 done
12746   done
12747 IFS=$as_save_IFS
12748
12749 fi
12750 fi
12751 NROFFPROG=$ac_cv_prog_NROFFPROG
12752 if test -n "$NROFFPROG"; then
12753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
12754 $as_echo "$NROFFPROG" >&6; }
12755 else
12756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12758 fi
12759
12760
12761   test -n "$NROFFPROG" && break
12762 done
12763
12764 if test -z "$NROFFPROG"; then
12765     MANTYPE="cat"
12766     mansrcdir='$(srcdir)'
12767 fi
12768
12769 if test -n "$sudo_cv_prev_host"; then
12770     if test "$sudo_cv_prev_host" != "$host"; then
12771         as_fn_error "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
12772     else
12773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
12774 $as_echo_n "checking previous host type... " >&6; }
12775         if test "${sudo_cv_prev_host+set}" = set; then :
12776   $as_echo_n "(cached) " >&6
12777 else
12778   sudo_cv_prev_host="$host"
12779 fi
12780
12781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
12782 $as_echo "$sudo_cv_prev_host" >&6; }
12783     fi
12784 else
12785     # this will produce no output since there is no cached value
12786     if test "${sudo_cv_prev_host+set}" = set; then :
12787   $as_echo_n "(cached) " >&6
12788 else
12789   sudo_cv_prev_host="$host"
12790 fi
12791
12792 fi
12793
12794 if test -n "$host_os"; then
12795     OS=`echo $host_os | sed 's/[0-9].*//'`
12796     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
12797     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
12798 else
12799     OS="unknown"
12800     OSREV=0
12801     OSMAJOR=0
12802 fi
12803
12804 case "$host" in
12805     *-*-sunos4*)
12806                 # getcwd(3) opens a pipe to getpwd(1)!?!
12807                 BROKEN_GETCWD=1
12808
12809                 # system headers lack prototypes but gcc helps...
12810                 if test -n "$GCC"; then
12811                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
12812                 fi
12813
12814                 shadow_funcs="getpwanam issecure"
12815                 ;;
12816     *-*-solaris2*)
12817                 # To get the crypt(3) prototype (so we pass -Wall)
12818                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
12819                 # AFS support needs -lucb
12820                 if test "$with_AFS" = "yes"; then
12821                     AFS_LIBS="-lc -lucb"
12822                 fi
12823                 : ${mansectsu='1m'}
12824                 : ${mansectform='4'}
12825                 : ${with_rpath='yes'}
12826                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12827                 ;;
12828     *-*-aix*)
12829                 # To get all prototypes (so we pass -Wall)
12830                 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
12831                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
12832                 if test X"$with_blibpath" != X"no"; then
12833                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
12834 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
12835                     O_LDFLAGS="$LDFLAGS"
12836                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
12837                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h.  */
12839
12840 int
12841 main ()
12842 {
12843
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 if ac_fn_c_try_link "$LINENO"; then :
12849
12850                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
12851                             blibpath="$with_blibpath"
12852                         elif test -n "$GCC"; then
12853                             blibpath="/usr/lib:/lib:/usr/local/lib"
12854                         else
12855                             blibpath="/usr/lib:/lib"
12856                         fi
12857                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12858 $as_echo "yes" >&6; }
12859
12860 else
12861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12863 fi
12864 rm -f core conftest.err conftest.$ac_objext \
12865     conftest$ac_exeext conftest.$ac_ext
12866                 fi
12867                 LDFLAGS="$O_LDFLAGS"
12868
12869                 # Use authenticate(3) as the default authentication method
12870                 if test X"$with_aixauth" = X""; then
12871                     for ac_func in authenticate
12872 do :
12873   ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
12874 if test "x$ac_cv_func_authenticate" = x""yes; then :
12875   cat >>confdefs.h <<_ACEOF
12876 #define HAVE_AUTHENTICATE 1
12877 _ACEOF
12878  AUTH_EXCL_DEF="AIX_AUTH"
12879 fi
12880 done
12881
12882                 fi
12883
12884                 # AIX analog of nsswitch.conf, enabled by default
12885
12886 # Check whether --with-netsvc was given.
12887 if test "${with_netsvc+set}" = set; then :
12888   withval=$with_netsvc; case $with_netsvc in
12889                     no)         ;;
12890                     yes)        with_netsvc="/etc/netsvc.conf"
12891                                 ;;
12892                     *)          ;;
12893                 esac
12894 fi
12895
12896                 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
12897                     with_netsvc="/etc/netsvc.conf"
12898                 fi
12899
12900                 # AIX-specific functions
12901                 for ac_func in getuserattr setauthdb
12902 do :
12903   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12905 eval as_val=\$$as_ac_var
12906    if test "x$as_val" = x""yes; then :
12907   cat >>confdefs.h <<_ACEOF
12908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12909 _ACEOF
12910
12911 fi
12912 done
12913
12914                 COMMON_OBJS="$COMMON_OBJS aix.o"
12915                 ;;
12916     *-*-hiuxmpp*)
12917                 : ${mansectsu='1m'}
12918                 : ${mansectform='4'}
12919                 ;;
12920     *-*-hpux*)
12921                 # AFS support needs -lBSD
12922                 if test "$with_AFS" = "yes"; then
12923                     AFS_LIBS="-lc -lBSD"
12924                 fi
12925                 : ${mansectsu='1m'}
12926                 : ${mansectform='4'}
12927
12928                 if test -z "$GCC"; then
12929                     # HP-UX bundled compiler can't generate shared objects
12930                     if test "x$ac_cv_prog_cc_c89" = "xno"; then
12931                         with_noexec=no
12932                     fi
12933
12934                     # Use the +DAportable flag on hppa if it is supported
12935                     case "$host_cpu" in
12936                     hppa*)
12937                         _CFLAGS="$CFLAGS"
12938                         CFLAGS="$CFLAGS +DAportable"
12939                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands +DAportable" >&5
12940 $as_echo_n "checking whether $CC understands +DAportable... " >&6; }
12941 if test "${sudo_cv_var_daportable+set}" = set; then :
12942   $as_echo_n "(cached) " >&6
12943 else
12944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h.  */
12946
12947 int
12948 main ()
12949 {
12950
12951   ;
12952   return 0;
12953 }
12954 _ACEOF
12955 if ac_fn_c_try_link "$LINENO"; then :
12956   sudo_cv_var_daportable=yes
12957 else
12958   sudo_cv_var_daportable=no
12959
12960 fi
12961 rm -f core conftest.err conftest.$ac_objext \
12962     conftest$ac_exeext conftest.$ac_ext
12963
12964
12965 fi
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
12967 $as_echo "$sudo_cv_var_daportable" >&6; }
12968                         if test X"$sudo_cv_var_daportable" != X"yes"; then
12969                             CFLAGS="$_CFLAGS"
12970                         fi
12971                         ;;
12972                     esac
12973                 fi
12974
12975                 case "$host" in
12976                         *-*-hpux1-8.*)
12977                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12978
12979
12980                             # Not sure if setuid binaries are safe in < 9.x
12981                             if test -n "$GCC"; then
12982                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12983                             else
12984                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12985                             fi
12986                         ;;
12987                         *-*-hpux9.*)
12988                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12989
12990
12991                             shadow_funcs="getspwuid"
12992
12993                             # DCE support (requires ANSI C compiler)
12994                             if test "$with_DCE" = "yes"; then
12995                                 # order of libs in 9.X is important. -lc_r must be last
12996                                 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12997                                 LIBS="${LIBS} -ldce -lM -lc_r"
12998                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12999                             fi
13000                         ;;
13001                         *-*-hpux10.*)
13002                             shadow_funcs="getprpwnam iscomsec"
13003                             shadow_libs="-lsec"
13004                             # HP-UX 10.20 libc has an incompatible getline
13005                             ac_cv_func_getline="no"
13006                         ;;
13007                         *)
13008                             shadow_funcs="getspnam iscomsec"
13009                             shadow_libs="-lsec"
13010                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13011                         ;;
13012                 esac
13013                 ;;
13014     *-dec-osf*)
13015                 # ignore envariables wrt dynamic lib path
13016                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
13017
13018                 : ${CHECKSIA='true'}
13019                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
13020 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
13021                 # Check whether --enable-sia was given.
13022 if test "${enable_sia+set}" = set; then :
13023   enableval=$enable_sia;  case "$enableval" in
13024                     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13026                                 CHECKSIA=true
13027                                 ;;
13028                     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13029 $as_echo "yes" >&6; }
13030                                 CHECKSIA=false
13031                                 ;;
13032                     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13034                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
13035 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
13036                                 ;;
13037                   esac
13038
13039 else
13040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13042 fi
13043
13044
13045                 shadow_funcs="getprpwnam dispcrypt"
13046                 # OSF/1 4.x and higher need -ldb too
13047                 if test $OSMAJOR -lt 4; then
13048                     shadow_libs="-lsecurity -laud -lm"
13049                 else
13050                     shadow_libs="-lsecurity -ldb -laud -lm"
13051                 fi
13052
13053                 # use SIA by default, if we have it
13054                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
13055
13056                 #
13057                 # Some versions of Digital Unix ship with a broken
13058                 # copy of prot.h, which we need for shadow passwords.
13059                 # XXX - make should remove this as part of distclean
13060                 #
13061                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
13062 $as_echo_n "checking for broken prot.h... " >&6; }
13063                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h.  */
13065
13066 #include <sys/types.h>
13067 #include <sys/security.h>
13068 #include <prot.h>
13069
13070 int
13071 main ()
13072 {
13073 exit(0);
13074   ;
13075   return 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13081 else
13082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
13083 $as_echo "yes, fixing locally" >&6; }
13084                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
13085
13086 fi
13087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13088                 : ${mansectsu='8'}
13089                 : ${mansectform='4'}
13090                 ;;
13091     *-*-irix*)
13092                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
13093                 if test -z "$NROFFPROG"; then
13094                     MAN_POSTINSTALL='   /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
13095                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13096                         if test -d /usr/share/catman/local; then
13097                             mandir="/usr/share/catman/local"
13098                         else
13099                             mandir="/usr/catman/local"
13100                         fi
13101                     fi
13102                 else
13103                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13104                         if test -d "/usr/share/man/local"; then
13105                             mandir="/usr/share/man/local"
13106                         else
13107                             mandir="/usr/man/local"
13108                         fi
13109                     fi
13110                 fi
13111                 # IRIX <= 4 needs -lsun
13112                 if test "$OSMAJOR" -le 4; then
13113                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
13114 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
13115 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
13116   $as_echo_n "(cached) " >&6
13117 else
13118   ac_check_lib_save_LIBS=$LIBS
13119 LIBS="-lsun  $LIBS"
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h.  */
13122
13123 /* Override any GCC internal prototype to avoid an error.
13124    Use char because int might match the return type of a GCC
13125    builtin and then its argument prototype would still apply.  */
13126 #ifdef __cplusplus
13127 extern "C"
13128 #endif
13129 char getpwnam ();
13130 int
13131 main ()
13132 {
13133 return getpwnam ();
13134   ;
13135   return 0;
13136 }
13137 _ACEOF
13138 if ac_fn_c_try_link "$LINENO"; then :
13139   ac_cv_lib_sun_getpwnam=yes
13140 else
13141   ac_cv_lib_sun_getpwnam=no
13142 fi
13143 rm -f core conftest.err conftest.$ac_objext \
13144     conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13146 fi
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
13148 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
13149 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
13150   LIBS="${LIBS} -lsun"
13151 fi
13152
13153                 fi
13154                 : ${mansectsu='1m'}
13155                 : ${mansectform='4'}
13156                 ;;
13157     *-*-linux*|*-*-k*bsd*-gnu)
13158                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13159                 # Some Linux versions need to link with -lshadow
13160                 shadow_funcs="getspnam"
13161                 shadow_libs_optional="-lshadow"
13162                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13163                 ;;
13164     *-convex-bsd*)
13165                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
13166                 if test -z "$GCC"; then
13167                     CFLAGS="${CFLAGS} -D__STDC__"
13168                 fi
13169
13170                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
13171                 shadow_funcs="getprpwnam"
13172                 shadow_libs="-lprot"
13173                 ;;
13174     *-*-ultrix*)
13175                 OS="ultrix"
13176                 shadow_funcs="getauthuid"
13177                 shadow_libs="-lauth"
13178                 ;;
13179     *-*-riscos*)
13180                 LIBS="${LIBS} -lsun -lbsd"
13181                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
13182                 OSDEFS="${OSDEFS} -D_MIPS"
13183                 : ${mansectsu='1m'}
13184                 : ${mansectform='4'}
13185                 ;;
13186     *-*-isc*)
13187                 OSDEFS="${OSDEFS} -D_ISC"
13188                 LIB_CRYPT=1
13189                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
13190                 LIBS="${LIBS} -lcrypt"
13191
13192                 shadow_funcs="getspnam"
13193                 shadow_libs="-lsec"
13194
13195                 : ${mansectsu='1m'}
13196                 : ${mansectform='4'}
13197                 ;;
13198     *-*-sco*|*-sco-*)
13199                 shadow_funcs="getprpwnam"
13200                 shadow_libs="-lprot -lx"
13201                 : ${mansectsu='1m'}
13202                 : ${mansectform='4'}
13203                 ;;
13204     m88k-motorola-sysv*)
13205                 # motorolla's cc (a variant of gcc) does -O but not -O2
13206                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
13207                 : ${mansectsu='1m'}
13208                 : ${mansectform='4'}
13209                 ;;
13210     *-sequent-sysv*)
13211                 shadow_funcs="getspnam"
13212                 shadow_libs="-lsec"
13213                 : ${mansectsu='1m'}
13214                 : ${mansectform='4'}
13215                 : ${with_rpath='yes'}
13216                 ;;
13217     *-ncr-sysv4*|*-ncr-sysvr4*)
13218                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
13219 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
13220 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then :
13221   $as_echo_n "(cached) " >&6
13222 else
13223   ac_check_lib_save_LIBS=$LIBS
13224 LIBS="-lc89  $LIBS"
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h.  */
13227
13228 /* Override any GCC internal prototype to avoid an error.
13229    Use char because int might match the return type of a GCC
13230    builtin and then its argument prototype would still apply.  */
13231 #ifdef __cplusplus
13232 extern "C"
13233 #endif
13234 char strcasecmp ();
13235 int
13236 main ()
13237 {
13238 return strcasecmp ();
13239   ;
13240   return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_c_try_link "$LINENO"; then :
13244   ac_cv_lib_c89_strcasecmp=yes
13245 else
13246   ac_cv_lib_c89_strcasecmp=no
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext \
13249     conftest$ac_exeext conftest.$ac_ext
13250 LIBS=$ac_check_lib_save_LIBS
13251 fi
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
13253 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
13254 if test "x$ac_cv_lib_c89_strcasecmp" = x""yes; then :
13255   $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
13256  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
13257 fi
13258
13259                 : ${mansectsu='1m'}
13260                 : ${mansectform='4'}
13261                 : ${with_rpath='yes'}
13262                 ;;
13263     *-ccur-sysv4*|*-ccur-sysvr4*)
13264                 LIBS="${LIBS} -lgen"
13265                 SUDO_LIBS="${SUDO_LIBS} -lgen"
13266                 : ${mansectsu='1m'}
13267                 : ${mansectform='4'}
13268                 : ${with_rpath='yes'}
13269                 ;;
13270     *-*-bsdi*)
13271                 SKIP_SETREUID=yes
13272                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
13273                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
13274                     case "$OSMAJOR" in
13275                         2|3)    { $as_echo "$as_me:${as_lineno-$LINENO}: using shlicc as CC" >&5
13276 $as_echo "$as_me: using shlicc as CC" >&6;}
13277                                 ac_cv_prog_CC=shlicc
13278                                 CC="$ac_cv_prog_CC"
13279                                 ;;
13280                     esac
13281                 fi
13282                 # Check for newer BSD auth API (just check for >= 3.0?)
13283                 if test -z "$with_bsdauth"; then
13284                     for ac_func in auth_challenge
13285 do :
13286   ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
13287 if test "x$ac_cv_func_auth_challenge" = x""yes; then :
13288   cat >>confdefs.h <<_ACEOF
13289 #define HAVE_AUTH_CHALLENGE 1
13290 _ACEOF
13291  AUTH_EXCL_DEF="BSD_AUTH"
13292 fi
13293 done
13294
13295                 fi
13296                 ;;
13297     *-*-freebsd*)
13298                 # FreeBSD has a real setreuid(2) starting with 2.1 and
13299                 # backported to 2.0.5.  We just take 2.1 and above...
13300                 case "$OSREV" in
13301                 0.*|1.*|2.0*)
13302                     SKIP_SETREUID=yes
13303                     ;;
13304                 esac
13305                 if test "${with_skey-'no'}" = "yes"; then
13306                      SUDO_LIBS="${SUDO_LIBS} -lmd"
13307                 fi
13308                 CHECKSHADOW="false"
13309                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13310                 : ${with_logincap='maybe'}
13311                 ;;
13312     *-*-*openbsd*)
13313                 # OpenBSD has a real setreuid(2) starting with 3.3 but
13314                 # we will use setreuid(2) instead.
13315                 SKIP_SETREUID=yes
13316                 CHECKSHADOW="false"
13317                 # OpenBSD >= 3.0 supports BSD auth
13318                 if test -z "$with_bsdauth"; then
13319                     case "$OSREV" in
13320                     0-2.*)
13321                         ;;
13322                     *)
13323                         AUTH_EXCL_DEF="BSD_AUTH"
13324                         ;;
13325                     esac
13326                 fi
13327                 : ${with_logincap='maybe'}
13328                 ;;
13329     *-*-*netbsd*)
13330                 # NetBSD has a real setreuid(2) starting with 1.3.2
13331                 case "$OSREV" in
13332                 0.9*|1.012*|1.3|1.3.1)
13333                     SKIP_SETREUID=yes
13334                     ;;
13335                 esac
13336                 CHECKSHADOW="false"
13337                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13338                 : ${with_logincap='maybe'}
13339                 ;;
13340     *-*-dragonfly*)
13341                 if test "${with_skey-'no'}" = "yes"; then
13342                      SUDO_LIBS="${SUDO_LIBS} -lmd"
13343                 fi
13344                 CHECKSHADOW="false"
13345                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13346                 : ${with_logincap='yes'}
13347                 ;;
13348     *-*-*bsd*)
13349                 CHECKSHADOW="false"
13350                 ;;
13351     *-*-darwin*)
13352                 # Darwin has a real setreuid(2) starting with 9.0
13353                 if test $OSMAJOR -lt 9; then
13354                     SKIP_SETREUID=yes
13355                 fi
13356                 CHECKSHADOW="false"
13357                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13358                 : ${with_logincap='yes'}
13359                 ;;
13360     *-*-nextstep*)
13361                 # lockf() on is broken on the NeXT -- use flock instead
13362                 ac_cv_func_lockf=no
13363                 ac_cv_func_flock=yes
13364                 ;;
13365     *-*-*sysv4*)
13366                 : ${mansectsu='1m'}
13367                 : ${mansectform='4'}
13368                 : ${with_rpath='yes'}
13369                 ;;
13370     *-*-sysv*)
13371                 : ${mansectsu='1m'}
13372                 : ${mansectform='4'}
13373                 ;;
13374     *-gnu*)
13375                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13376                 ;;
13377 esac
13378
13379 AUTH_REG=${AUTH_REG# }
13380 AUTH_EXCL=${AUTH_EXCL# }
13381 if test -n "$AUTH_EXCL"; then
13382     set -- $AUTH_EXCL
13383     if test $# != 1; then
13384         as_fn_error "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
13385     fi
13386     if test -n "$AUTH_REG"; then
13387         as_fn_error "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
13388     fi
13389 fi
13390 if test X"${with_skey}${with_opie}" = X"yesyes"; then
13391     as_fn_error "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
13392 fi
13393
13394 : ${mansectsu='8'}
13395 : ${mansectform='5'}
13396
13397 if test -n "$with_libpath"; then
13398     for i in ${with_libpath}; do
13399
13400     if test X"$with_rpath" = X"yes"; then
13401         case "$host" in
13402             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
13403                         ;;
13404             *)          LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
13405                         ;;
13406         esac
13407     else
13408         LDFLAGS="${LDFLAGS} -L$i"
13409     fi
13410     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13411         blibpath_add="${blibpath_add}:$i"
13412     fi
13413
13414     done
13415 fi
13416 if test -n "$with_libraries"; then
13417     for i in ${with_libraries}; do
13418         case $i in
13419             -l*)        ;;
13420             *.a)        ;;
13421             *.o)        ;;
13422             *)  i="-l${i}";;
13423         esac
13424         LIBS="${LIBS} ${i}"
13425     done
13426 fi
13427
13428 if test $ac_cv_c_compiler_gnu = yes; then
13429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13430 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13431 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
13432   $as_echo_n "(cached) " >&6
13433 else
13434     ac_pattern="Autoconf.*'x'"
13435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h.  */
13437 #include <sgtty.h>
13438 Autoconf TIOCGETP
13439 _ACEOF
13440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13441   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13442   ac_cv_prog_gcc_traditional=yes
13443 else
13444   ac_cv_prog_gcc_traditional=no
13445 fi
13446 rm -f conftest*
13447
13448
13449   if test $ac_cv_prog_gcc_traditional = no; then
13450     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h.  */
13452 #include <termio.h>
13453 Autoconf TCGETA
13454 _ACEOF
13455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13456   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13457   ac_cv_prog_gcc_traditional=yes
13458 fi
13459 rm -f conftest*
13460
13461   fi
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13464 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13465   if test $ac_cv_prog_gcc_traditional = yes; then
13466     CC="$CC -traditional"
13467   fi
13468 fi
13469
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13471 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13472 if test "${ac_cv_c_const+set}" = set; then :
13473   $as_echo_n "(cached) " >&6
13474 else
13475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h.  */
13477
13478 int
13479 main ()
13480 {
13481 /* FIXME: Include the comments suggested by Paul. */
13482 #ifndef __cplusplus
13483   /* Ultrix mips cc rejects this.  */
13484   typedef int charset[2];
13485   const charset cs;
13486   /* SunOS 4.1.1 cc rejects this.  */
13487   char const *const *pcpcc;
13488   char **ppc;
13489   /* NEC SVR4.0.2 mips cc rejects this.  */
13490   struct point {int x, y;};
13491   static struct point const zero = {0,0};
13492   /* AIX XL C 1.02.0.0 rejects this.
13493      It does not let you subtract one const X* pointer from another in
13494      an arm of an if-expression whose if-part is not a constant
13495      expression */
13496   const char *g = "string";
13497   pcpcc = &g + (g ? g-g : 0);
13498   /* HPUX 7.0 cc rejects these. */
13499   ++pcpcc;
13500   ppc = (char**) pcpcc;
13501   pcpcc = (char const *const *) ppc;
13502   { /* SCO 3.2v4 cc rejects this.  */
13503     char *t;
13504     char const *s = 0 ? (char *) 0 : (char const *) 0;
13505
13506     *t++ = 0;
13507     if (s) return 0;
13508   }
13509   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13510     int x[] = {25, 17};
13511     const int *foo = &x[0];
13512     ++foo;
13513   }
13514   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13515     typedef const int *iptr;
13516     iptr p = 0;
13517     ++p;
13518   }
13519   { /* AIX XL C 1.02.0.0 rejects this saying
13520        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13521     struct s { int j; const int *ap[3]; };
13522     struct s *b; b->j = 5;
13523   }
13524   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13525     const int foo = 10;
13526     if (!foo) return 0;
13527   }
13528   return !cs[0] && !zero.x;
13529 #endif
13530
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 if ac_fn_c_try_compile "$LINENO"; then :
13536   ac_cv_c_const=yes
13537 else
13538   ac_cv_c_const=no
13539 fi
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541 fi
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13543 $as_echo "$ac_cv_c_const" >&6; }
13544 if test $ac_cv_c_const = no; then
13545
13546 $as_echo "#define const /**/" >>confdefs.h
13547
13548 fi
13549
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13551 $as_echo_n "checking for working volatile... " >&6; }
13552 if test "${ac_cv_c_volatile+set}" = set; then :
13553   $as_echo_n "(cached) " >&6
13554 else
13555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h.  */
13557
13558 int
13559 main ()
13560 {
13561
13562 volatile int x;
13563 int * volatile y = (int *) 0;
13564 return !x && !y;
13565   ;
13566   return 0;
13567 }
13568 _ACEOF
13569 if ac_fn_c_try_compile "$LINENO"; then :
13570   ac_cv_c_volatile=yes
13571 else
13572   ac_cv_c_volatile=no
13573 fi
13574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575 fi
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13577 $as_echo "$ac_cv_c_volatile" >&6; }
13578 if test $ac_cv_c_volatile = no; then
13579
13580 $as_echo "#define volatile /**/" >>confdefs.h
13581
13582 fi
13583
13584 for ac_prog in 'bison -y' byacc
13585 do
13586   # Extract the first word of "$ac_prog", so it can be a program name with args.
13587 set dummy $ac_prog; ac_word=$2
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13589 $as_echo_n "checking for $ac_word... " >&6; }
13590 if test "${ac_cv_prog_YACC+set}" = set; then :
13591   $as_echo_n "(cached) " >&6
13592 else
13593   if test -n "$YACC"; then
13594   ac_cv_prog_YACC="$YACC" # Let the user override the test.
13595 else
13596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597 for as_dir in $PATH
13598 do
13599   IFS=$as_save_IFS
13600   test -z "$as_dir" && as_dir=.
13601     for ac_exec_ext in '' $ac_executable_extensions; do
13602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13603     ac_cv_prog_YACC="$ac_prog"
13604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13605     break 2
13606   fi
13607 done
13608   done
13609 IFS=$as_save_IFS
13610
13611 fi
13612 fi
13613 YACC=$ac_cv_prog_YACC
13614 if test -n "$YACC"; then
13615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13616 $as_echo "$YACC" >&6; }
13617 else
13618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619 $as_echo "no" >&6; }
13620 fi
13621
13622
13623   test -n "$YACC" && break
13624 done
13625 test -n "$YACC" || YACC="yacc"
13626
13627 # Extract the first word of "flex", so it can be a program name with args.
13628 set dummy flex; ac_word=$2
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630 $as_echo_n "checking for $ac_word... " >&6; }
13631 if test "${ac_cv_path_FLEX+set}" = set; then :
13632   $as_echo_n "(cached) " >&6
13633 else
13634   case $FLEX in
13635   [\\/]* | ?:[\\/]*)
13636   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13637   ;;
13638   *)
13639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13640 for as_dir in $PATH
13641 do
13642   IFS=$as_save_IFS
13643   test -z "$as_dir" && as_dir=.
13644     for ac_exec_ext in '' $ac_executable_extensions; do
13645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13646     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13648     break 2
13649   fi
13650 done
13651   done
13652 IFS=$as_save_IFS
13653
13654   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13655   ;;
13656 esac
13657 fi
13658 FLEX=$ac_cv_path_FLEX
13659 if test -n "$FLEX"; then
13660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
13661 $as_echo "$FLEX" >&6; }
13662 else
13663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664 $as_echo "no" >&6; }
13665 fi
13666
13667
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
13669 $as_echo_n "checking for mv... " >&6; }
13670 found=no
13671 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
13672     if test -f "$p"; then
13673         found=yes
13674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13675 $as_echo "$p" >&6; }
13676         cat >>confdefs.h <<EOF
13677 #define _PATH_MV "$p"
13678 EOF
13679
13680         break
13681     fi
13682 done
13683 if test X"$found" != X"yes"; then
13684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13685 $as_echo "not found" >&6; }
13686 fi
13687
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
13689 $as_echo_n "checking for bourne shell... " >&6; }
13690 found=no
13691 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
13692     if test -f "$p"; then
13693         found=yes
13694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13695 $as_echo "$p" >&6; }
13696         cat >>confdefs.h <<EOF
13697 #define _PATH_BSHELL "$p"
13698 EOF
13699
13700         break
13701     fi
13702 done
13703 if test X"$found" != X"yes"; then
13704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13705 $as_echo "not found" >&6; }
13706 fi
13707
13708 if test -z "$with_sendmail"; then
13709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
13710 $as_echo_n "checking for sendmail... " >&6; }
13711 found=no
13712 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
13713     if test -f "$p"; then
13714         found=yes
13715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13716 $as_echo "$p" >&6; }
13717         cat >>confdefs.h <<EOF
13718 #define _PATH_SUDO_SENDMAIL "$p"
13719 EOF
13720
13721         break
13722     fi
13723 done
13724 if test X"$found" != X"yes"; then
13725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13726 $as_echo "not found" >&6; }
13727 fi
13728
13729 fi
13730 if test -z "$with_editor"; then
13731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
13732 $as_echo_n "checking for vi... " >&6; }
13733 found=no
13734 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
13735     if test -f "$editor"; then
13736         found=yes
13737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
13738 $as_echo "$editor" >&6; }
13739         cat >>confdefs.h <<EOF
13740 #define _PATH_VI "$editor"
13741 EOF
13742
13743         break
13744     fi
13745 done
13746 if test X"$found" != X"yes"; then
13747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13748 $as_echo "not found" >&6; }
13749 fi
13750
13751 fi
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
13753 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
13754 if test X"$with_logfac" = X""; then
13755     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h.  */
13757 #include <syslog.h>
13758 int
13759 main ()
13760 {
13761 int i = LOG_AUTHPRIV; (void)i;
13762   ;
13763   return 0;
13764 }
13765 _ACEOF
13766 if ac_fn_c_try_compile "$LINENO"; then :
13767   logfac=authpriv
13768 fi
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13770 fi
13771
13772 cat >>confdefs.h <<_ACEOF
13773 #define LOGFAC "$logfac"
13774 _ACEOF
13775
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
13777 $as_echo "$logfac" >&6; }
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13779 $as_echo_n "checking for ANSI C header files... " >&6; }
13780 if test "${ac_cv_header_stdc+set}" = set; then :
13781   $as_echo_n "(cached) " >&6
13782 else
13783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h.  */
13785 #include <stdlib.h>
13786 #include <stdarg.h>
13787 #include <string.h>
13788 #include <float.h>
13789
13790 int
13791 main ()
13792 {
13793
13794   ;
13795   return 0;
13796 }
13797 _ACEOF
13798 if ac_fn_c_try_compile "$LINENO"; then :
13799   ac_cv_header_stdc=yes
13800 else
13801   ac_cv_header_stdc=no
13802 fi
13803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804
13805 if test $ac_cv_header_stdc = yes; then
13806   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h.  */
13809 #include <string.h>
13810
13811 _ACEOF
13812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13813   $EGREP "memchr" >/dev/null 2>&1; then :
13814
13815 else
13816   ac_cv_header_stdc=no
13817 fi
13818 rm -f conftest*
13819
13820 fi
13821
13822 if test $ac_cv_header_stdc = yes; then
13823   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h.  */
13826 #include <stdlib.h>
13827
13828 _ACEOF
13829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13830   $EGREP "free" >/dev/null 2>&1; then :
13831
13832 else
13833   ac_cv_header_stdc=no
13834 fi
13835 rm -f conftest*
13836
13837 fi
13838
13839 if test $ac_cv_header_stdc = yes; then
13840   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13841   if test "$cross_compiling" = yes; then :
13842   :
13843 else
13844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h.  */
13846 #include <ctype.h>
13847 #include <stdlib.h>
13848 #if ((' ' & 0x0FF) == 0x020)
13849 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13850 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13851 #else
13852 # define ISLOWER(c) \
13853                    (('a' <= (c) && (c) <= 'i') \
13854                      || ('j' <= (c) && (c) <= 'r') \
13855                      || ('s' <= (c) && (c) <= 'z'))
13856 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13857 #endif
13858
13859 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13860 int
13861 main ()
13862 {
13863   int i;
13864   for (i = 0; i < 256; i++)
13865     if (XOR (islower (i), ISLOWER (i))
13866         || toupper (i) != TOUPPER (i))
13867       return 2;
13868   return 0;
13869 }
13870 _ACEOF
13871 if ac_fn_c_try_run "$LINENO"; then :
13872
13873 else
13874   ac_cv_header_stdc=no
13875 fi
13876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13877   conftest.$ac_objext conftest.beam conftest.$ac_ext
13878 fi
13879
13880 fi
13881 fi
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13883 $as_echo "$ac_cv_header_stdc" >&6; }
13884 if test $ac_cv_header_stdc = yes; then
13885
13886 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13887
13888 fi
13889
13890 ac_header_dirent=no
13891 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13892   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13894 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13896   $as_echo_n "(cached) " >&6
13897 else
13898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h.  */
13900 #include <sys/types.h>
13901 #include <$ac_hdr>
13902
13903 int
13904 main ()
13905 {
13906 if ((DIR *) 0)
13907 return 0;
13908   ;
13909   return 0;
13910 }
13911 _ACEOF
13912 if ac_fn_c_try_compile "$LINENO"; then :
13913   eval "$as_ac_Header=yes"
13914 else
13915   eval "$as_ac_Header=no"
13916 fi
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 fi
13919 eval ac_res=\$$as_ac_Header
13920                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13921 $as_echo "$ac_res" >&6; }
13922 eval as_val=\$$as_ac_Header
13923    if test "x$as_val" = x""yes; then :
13924   cat >>confdefs.h <<_ACEOF
13925 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13926 _ACEOF
13927
13928 ac_header_dirent=$ac_hdr; break
13929 fi
13930
13931 done
13932 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13933 if test $ac_header_dirent = dirent.h; then
13934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13935 $as_echo_n "checking for library containing opendir... " >&6; }
13936 if test "${ac_cv_search_opendir+set}" = set; then :
13937   $as_echo_n "(cached) " >&6
13938 else
13939   ac_func_search_save_LIBS=$LIBS
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h.  */
13942
13943 /* Override any GCC internal prototype to avoid an error.
13944    Use char because int might match the return type of a GCC
13945    builtin and then its argument prototype would still apply.  */
13946 #ifdef __cplusplus
13947 extern "C"
13948 #endif
13949 char opendir ();
13950 int
13951 main ()
13952 {
13953 return opendir ();
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 for ac_lib in '' dir; do
13959   if test -z "$ac_lib"; then
13960     ac_res="none required"
13961   else
13962     ac_res=-l$ac_lib
13963     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13964   fi
13965   if ac_fn_c_try_link "$LINENO"; then :
13966   ac_cv_search_opendir=$ac_res
13967 fi
13968 rm -f core conftest.err conftest.$ac_objext \
13969     conftest$ac_exeext
13970   if test "${ac_cv_search_opendir+set}" = set; then :
13971   break
13972 fi
13973 done
13974 if test "${ac_cv_search_opendir+set}" = set; then :
13975
13976 else
13977   ac_cv_search_opendir=no
13978 fi
13979 rm conftest.$ac_ext
13980 LIBS=$ac_func_search_save_LIBS
13981 fi
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13983 $as_echo "$ac_cv_search_opendir" >&6; }
13984 ac_res=$ac_cv_search_opendir
13985 if test "$ac_res" != no; then :
13986   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13987
13988 fi
13989
13990 else
13991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13992 $as_echo_n "checking for library containing opendir... " >&6; }
13993 if test "${ac_cv_search_opendir+set}" = set; then :
13994   $as_echo_n "(cached) " >&6
13995 else
13996   ac_func_search_save_LIBS=$LIBS
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h.  */
13999
14000 /* Override any GCC internal prototype to avoid an error.
14001    Use char because int might match the return type of a GCC
14002    builtin and then its argument prototype would still apply.  */
14003 #ifdef __cplusplus
14004 extern "C"
14005 #endif
14006 char opendir ();
14007 int
14008 main ()
14009 {
14010 return opendir ();
14011   ;
14012   return 0;
14013 }
14014 _ACEOF
14015 for ac_lib in '' x; do
14016   if test -z "$ac_lib"; then
14017     ac_res="none required"
14018   else
14019     ac_res=-l$ac_lib
14020     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14021   fi
14022   if ac_fn_c_try_link "$LINENO"; then :
14023   ac_cv_search_opendir=$ac_res
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext \
14026     conftest$ac_exeext
14027   if test "${ac_cv_search_opendir+set}" = set; then :
14028   break
14029 fi
14030 done
14031 if test "${ac_cv_search_opendir+set}" = set; then :
14032
14033 else
14034   ac_cv_search_opendir=no
14035 fi
14036 rm conftest.$ac_ext
14037 LIBS=$ac_func_search_save_LIBS
14038 fi
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14040 $as_echo "$ac_cv_search_opendir" >&6; }
14041 ac_res=$ac_cv_search_opendir
14042 if test "$ac_res" != no; then :
14043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14044
14045 fi
14046
14047 fi
14048
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14050 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14051 if test "${ac_cv_header_time+set}" = set; then :
14052   $as_echo_n "(cached) " >&6
14053 else
14054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h.  */
14056 #include <sys/types.h>
14057 #include <sys/time.h>
14058 #include <time.h>
14059
14060 int
14061 main ()
14062 {
14063 if ((struct tm *) 0)
14064 return 0;
14065   ;
14066   return 0;
14067 }
14068 _ACEOF
14069 if ac_fn_c_try_compile "$LINENO"; then :
14070   ac_cv_header_time=yes
14071 else
14072   ac_cv_header_time=no
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14077 $as_echo "$ac_cv_header_time" >&6; }
14078 if test $ac_cv_header_time = yes; then
14079
14080 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14081
14082 fi
14083
14084 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
14085 do :
14086   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14087 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14088 eval as_val=\$$as_ac_Header
14089    if test "x$as_val" = x""yes; then :
14090   cat >>confdefs.h <<_ACEOF
14091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14092 _ACEOF
14093
14094 fi
14095
14096 done
14097
14098 # Check whether --enable-largefile was given.
14099 if test "${enable_largefile+set}" = set; then :
14100   enableval=$enable_largefile;
14101 fi
14102
14103 if test "$enable_largefile" != no; then
14104
14105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14106 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14107 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
14108   $as_echo_n "(cached) " >&6
14109 else
14110   ac_cv_sys_largefile_CC=no
14111      if test "$GCC" != yes; then
14112        ac_save_CC=$CC
14113        while :; do
14114          # IRIX 6.2 and later do not support large files by default,
14115          # so use the C compiler's -n32 option if that helps.
14116          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h.  */
14118 #include <sys/types.h>
14119  /* Check that off_t can represent 2**63 - 1 correctly.
14120     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14121     since some C++ compilers masquerading as C compilers
14122     incorrectly reject 9223372036854775807.  */
14123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14124   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14125                        && LARGE_OFF_T % 2147483647 == 1)
14126                       ? 1 : -1];
14127 int
14128 main ()
14129 {
14130
14131   ;
14132   return 0;
14133 }
14134 _ACEOF
14135          if ac_fn_c_try_compile "$LINENO"; then :
14136   break
14137 fi
14138 rm -f core conftest.err conftest.$ac_objext
14139          CC="$CC -n32"
14140          if ac_fn_c_try_compile "$LINENO"; then :
14141   ac_cv_sys_largefile_CC=' -n32'; break
14142 fi
14143 rm -f core conftest.err conftest.$ac_objext
14144          break
14145        done
14146        CC=$ac_save_CC
14147        rm -f conftest.$ac_ext
14148     fi
14149 fi
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14151 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14152   if test "$ac_cv_sys_largefile_CC" != no; then
14153     CC=$CC$ac_cv_sys_largefile_CC
14154   fi
14155
14156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14157 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14158 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
14159   $as_echo_n "(cached) " >&6
14160 else
14161   while :; do
14162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h.  */
14164 #include <sys/types.h>
14165  /* Check that off_t can represent 2**63 - 1 correctly.
14166     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14167     since some C++ compilers masquerading as C compilers
14168     incorrectly reject 9223372036854775807.  */
14169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14170   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14171                        && LARGE_OFF_T % 2147483647 == 1)
14172                       ? 1 : -1];
14173 int
14174 main ()
14175 {
14176
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 if ac_fn_c_try_compile "$LINENO"; then :
14182   ac_cv_sys_file_offset_bits=no; break
14183 fi
14184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h.  */
14187 #define _FILE_OFFSET_BITS 64
14188 #include <sys/types.h>
14189  /* Check that off_t can represent 2**63 - 1 correctly.
14190     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14191     since some C++ compilers masquerading as C compilers
14192     incorrectly reject 9223372036854775807.  */
14193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14194   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14195                        && LARGE_OFF_T % 2147483647 == 1)
14196                       ? 1 : -1];
14197 int
14198 main ()
14199 {
14200
14201   ;
14202   return 0;
14203 }
14204 _ACEOF
14205 if ac_fn_c_try_compile "$LINENO"; then :
14206   ac_cv_sys_file_offset_bits=64; break
14207 fi
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209   ac_cv_sys_file_offset_bits=unknown
14210   break
14211 done
14212 fi
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14214 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14215 case $ac_cv_sys_file_offset_bits in #(
14216   no | unknown) ;;
14217   *)
14218 cat >>confdefs.h <<_ACEOF
14219 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14220 _ACEOF
14221 ;;
14222 esac
14223 rm -rf conftest*
14224   if test $ac_cv_sys_file_offset_bits = unknown; then
14225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14226 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14227 if test "${ac_cv_sys_large_files+set}" = set; then :
14228   $as_echo_n "(cached) " >&6
14229 else
14230   while :; do
14231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h.  */
14233 #include <sys/types.h>
14234  /* Check that off_t can represent 2**63 - 1 correctly.
14235     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14236     since some C++ compilers masquerading as C compilers
14237     incorrectly reject 9223372036854775807.  */
14238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14239   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14240                        && LARGE_OFF_T % 2147483647 == 1)
14241                       ? 1 : -1];
14242 int
14243 main ()
14244 {
14245
14246   ;
14247   return 0;
14248 }
14249 _ACEOF
14250 if ac_fn_c_try_compile "$LINENO"; then :
14251   ac_cv_sys_large_files=no; break
14252 fi
14253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h.  */
14256 #define _LARGE_FILES 1
14257 #include <sys/types.h>
14258  /* Check that off_t can represent 2**63 - 1 correctly.
14259     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14260     since some C++ compilers masquerading as C compilers
14261     incorrectly reject 9223372036854775807.  */
14262 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14263   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14264                        && LARGE_OFF_T % 2147483647 == 1)
14265                       ? 1 : -1];
14266 int
14267 main ()
14268 {
14269
14270   ;
14271   return 0;
14272 }
14273 _ACEOF
14274 if ac_fn_c_try_compile "$LINENO"; then :
14275   ac_cv_sys_large_files=1; break
14276 fi
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278   ac_cv_sys_large_files=unknown
14279   break
14280 done
14281 fi
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14283 $as_echo "$ac_cv_sys_large_files" >&6; }
14284 case $ac_cv_sys_large_files in #(
14285   no | unknown) ;;
14286   *)
14287 cat >>confdefs.h <<_ACEOF
14288 #define _LARGE_FILES $ac_cv_sys_large_files
14289 _ACEOF
14290 ;;
14291 esac
14292 rm -rf conftest*
14293   fi
14294 fi
14295
14296 case "$host" in
14297     *-*-hpux11.*)
14298         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
14299 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
14300 if test "${sudo_cv_xopen_source_extended+set}" = set; then :
14301   $as_echo_n "(cached) " >&6
14302 else
14303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h.  */
14305 $ac_includes_default
14306         #include <sys/socket.h>
14307 int
14308 main ()
14309 {
14310
14311   ;
14312   return 0;
14313 }
14314 _ACEOF
14315 if ac_fn_c_try_compile "$LINENO"; then :
14316   sudo_cv_xopen_source_extended=no
14317 else
14318
14319             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h.  */
14321 #define _XOPEN_SOURCE_EXTENDED
14322             $ac_includes_default
14323             #include <sys/socket.h>
14324 int
14325 main ()
14326 {
14327
14328   ;
14329   return 0;
14330 }
14331 _ACEOF
14332 if ac_fn_c_try_compile "$LINENO"; then :
14333   sudo_cv_xopen_source_extended=yes
14334 else
14335   sudo_cv_xopen_source_extended=error
14336 fi
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
14343 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
14344         if test "$sudo_cv_xopen_source_extended" = "yes"; then
14345             OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
14346             cat >>confdefs.h <<\EOF
14347 #define _XOPEN_SOURCE_EXTENDED 1
14348 EOF
14349
14350         fi
14351         ;;
14352 esac
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
14354 $as_echo_n "checking POSIX termios... " >&6; }
14355 if test "${ac_cv_sys_posix_termios+set}" = set; then :
14356   $as_echo_n "(cached) " >&6
14357 else
14358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h.  */
14360 #include <sys/types.h>
14361 #include <unistd.h>
14362 #include <termios.h>
14363
14364 int
14365 main ()
14366 {
14367 /* SunOS 4.0.3 has termios.h but not the library calls.  */
14368    tcgetattr(0, 0);
14369   ;
14370   return 0;
14371 }
14372 _ACEOF
14373 if ac_fn_c_try_link "$LINENO"; then :
14374   ac_cv_sys_posix_termios=yes
14375 else
14376   ac_cv_sys_posix_termios=no
14377 fi
14378 rm -f core conftest.err conftest.$ac_objext \
14379     conftest$ac_exeext conftest.$ac_ext
14380 fi
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
14382 $as_echo "$ac_cv_sys_posix_termios" >&6; }
14383
14384 if test "$ac_cv_sys_posix_termios" = "yes"; then
14385     $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
14386
14387 else
14388     for ac_header in termio.h
14389 do :
14390   ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
14391 if test "x$ac_cv_header_termio_h" = x""yes; then :
14392   cat >>confdefs.h <<_ACEOF
14393 #define HAVE_TERMIO_H 1
14394 _ACEOF
14395
14396 fi
14397
14398 done
14399
14400 fi
14401
14402 maildir=no
14403 if test X"$ac_cv_header_paths_h" = X"yes"; then
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h.  */
14406 $ac_includes_default
14407 #include <paths.h>
14408 int
14409 main ()
14410 {
14411 char *p = _PATH_MAILDIR;
14412   ;
14413   return 0;
14414 }
14415 _ACEOF
14416 if ac_fn_c_try_compile "$LINENO"; then :
14417   maildir=yes
14418 fi
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420 fi
14421 if test $maildir = no; then
14422     # Solaris has maillock.h which defines MAILDIR
14423     for ac_header in maillock.h
14424 do :
14425   ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14426 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14427   cat >>confdefs.h <<_ACEOF
14428 #define HAVE_MAILLOCK_H 1
14429 _ACEOF
14430
14431         cat >>confdefs.h <<\EOF
14432 #define _PATH_MAILDIR MAILDIR
14433 EOF
14434
14435         maildir=yes
14436
14437 fi
14438
14439 done
14440
14441     if test $maildir = no; then
14442         for d in /var/mail /var/spool/mail /usr/spool/mail; do
14443             if test -d "$d"; then
14444                 maildir=yes
14445                 cat >>confdefs.h <<EOF
14446 #define _PATH_MAILDIR "$d"
14447 EOF
14448
14449                 break
14450             fi
14451         done
14452         if test $maildir = no; then
14453             # unable to find mail dir, hope for the best
14454             cat >>confdefs.h <<EOF
14455 #define _PATH_MAILDIR "/var/mail"
14456 EOF
14457
14458         fi
14459     fi
14460 fi
14461
14462 if test ${with_logincap-'no'} != "no"; then
14463     for ac_header in login_cap.h
14464 do :
14465   ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
14466 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
14467   cat >>confdefs.h <<_ACEOF
14468 #define HAVE_LOGIN_CAP_H 1
14469 _ACEOF
14470  LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
14471         case "$OS" in
14472             freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
14473             ;;
14474         esac
14475
14476 fi
14477
14478 done
14479
14480 fi
14481 if test ${with_project-'no'} != "no"; then
14482     ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
14483 if test "x$ac_cv_header_project_h" = x""yes; then :
14484   $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
14485
14486         SUDO_LIBS="${SUDO_LIBS} -lproject"
14487 else
14488   -
14489 fi
14490
14491
14492 fi
14493 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14494 if test "x$ac_cv_type_mode_t" = x""yes; then :
14495
14496 else
14497
14498 cat >>confdefs.h <<_ACEOF
14499 #define mode_t int
14500 _ACEOF
14501
14502 fi
14503
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14505 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14506 if test "${ac_cv_type_uid_t+set}" = set; then :
14507   $as_echo_n "(cached) " >&6
14508 else
14509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h.  */
14511 #include <sys/types.h>
14512
14513 _ACEOF
14514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515   $EGREP "uid_t" >/dev/null 2>&1; then :
14516   ac_cv_type_uid_t=yes
14517 else
14518   ac_cv_type_uid_t=no
14519 fi
14520 rm -f conftest*
14521
14522 fi
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14524 $as_echo "$ac_cv_type_uid_t" >&6; }
14525 if test $ac_cv_type_uid_t = no; then
14526
14527 $as_echo "#define uid_t int" >>confdefs.h
14528
14529
14530 $as_echo "#define gid_t int" >>confdefs.h
14531
14532 fi
14533
14534 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
14535 if test "x$ac_cv_type___signed_char" = x""yes; then :
14536
14537 else
14538   ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
14539 if test "x$ac_cv_type_signed_char" = x""yes; then :
14540   $as_echo "#define __signed signed" >>confdefs.h
14541
14542 else
14543   $as_echo "#define __signed /**/" >>confdefs.h
14544
14545 fi
14546
14547 fi
14548
14549 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
14550 #include <signal.h>
14551 "
14552 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
14553
14554 else
14555   $as_echo "#define sig_atomic_t int" >>confdefs.h
14556
14557 fi
14558
14559 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
14560 #include <signal.h>
14561 "
14562 if test "x$ac_cv_type_sigaction_t" = x""yes; then :
14563
14564 cat >>confdefs.h <<_ACEOF
14565 #define HAVE_SIGACTION_T 1
14566 _ACEOF
14567
14568 $as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
14569
14570 fi
14571
14572 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
14573 #if TIME_WITH_SYS_TIME
14574 # include <sys/time.h>
14575 #endif
14576 #include <time.h>
14577 "
14578 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
14579   $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
14580
14581 fi
14582
14583 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
14584 #include <netinet/in.h>
14585 "
14586 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then :
14587
14588 cat >>confdefs.h <<_ACEOF
14589 #define HAVE_STRUCT_IN6_ADDR 1
14590 _ACEOF
14591
14592 $as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
14593
14594 fi
14595
14596
14597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14598 $as_echo_n "checking for long long int... " >&6; }
14599 if test "${ac_cv_type_long_long_int+set}" = set; then :
14600   $as_echo_n "(cached) " >&6
14601 else
14602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h.  */
14604
14605   /* For now, do not test the preprocessor; as of 2007 there are too many
14606          implementations with broken preprocessors.  Perhaps this can
14607          be revisited in 2012.  In the meantime, code should not expect
14608          #if to work with literals wider than 32 bits.  */
14609       /* Test literals.  */
14610       long long int ll = 9223372036854775807ll;
14611       long long int nll = -9223372036854775807LL;
14612       unsigned long long int ull = 18446744073709551615ULL;
14613       /* Test constant expressions.   */
14614       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14615                      ? 1 : -1)];
14616       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14617                      ? 1 : -1)];
14618       int i = 63;
14619 int
14620 main ()
14621 {
14622 /* Test availability of runtime routines for shift and division.  */
14623       long long int llmax = 9223372036854775807ll;
14624       unsigned long long int ullmax = 18446744073709551615ull;
14625       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14626               | (llmax / ll) | (llmax % ll)
14627               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14628               | (ullmax / ull) | (ullmax % ull));
14629   ;
14630   return 0;
14631 }
14632
14633 _ACEOF
14634 if ac_fn_c_try_link "$LINENO"; then :
14635                         if test "$cross_compiling" = yes; then :
14636   ac_cv_type_long_long_int=yes
14637 else
14638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h.  */
14640 #include <limits.h>
14641                #ifndef LLONG_MAX
14642                # define HALF \
14643                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14644                # define LLONG_MAX (HALF - 1 + HALF)
14645                #endif
14646 int
14647 main ()
14648 {
14649 long long int n = 1;
14650                int i;
14651                for (i = 0; ; i++)
14652                  {
14653                    long long int m = n << i;
14654                    if (m >> i != n)
14655                      return 1;
14656                    if (LLONG_MAX / 2 < m)
14657                      break;
14658                  }
14659                return 0;
14660   ;
14661   return 0;
14662 }
14663 _ACEOF
14664 if ac_fn_c_try_run "$LINENO"; then :
14665   ac_cv_type_long_long_int=yes
14666 else
14667   ac_cv_type_long_long_int=no
14668 fi
14669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14670   conftest.$ac_objext conftest.beam conftest.$ac_ext
14671 fi
14672
14673 else
14674   ac_cv_type_long_long_int=no
14675 fi
14676 rm -f core conftest.err conftest.$ac_objext \
14677     conftest$ac_exeext conftest.$ac_ext
14678 fi
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14680 $as_echo "$ac_cv_type_long_long_int" >&6; }
14681   if test $ac_cv_type_long_long_int = yes; then
14682
14683 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14684
14685   fi
14686
14687 # The cast to long int works around a bug in the HP C Compiler
14688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14690 # This bug is HP SR number 8606223364.
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
14692 $as_echo_n "checking size of long int... " >&6; }
14693 if test "${ac_cv_sizeof_long_int+set}" = set; then :
14694   $as_echo_n "(cached) " >&6
14695 else
14696   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
14697
14698 else
14699   if test "$ac_cv_type_long_int" = yes; then
14700      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14702 { as_fn_set_status 77
14703 as_fn_error "cannot compute sizeof (long int)
14704 See \`config.log' for more details." "$LINENO" 5; }; }
14705    else
14706      ac_cv_sizeof_long_int=0
14707    fi
14708 fi
14709
14710 fi
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
14712 $as_echo "$ac_cv_sizeof_long_int" >&6; }
14713
14714
14715
14716 cat >>confdefs.h <<_ACEOF
14717 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14718 _ACEOF
14719
14720
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14722 $as_echo_n "checking for size_t... " >&6; }
14723 if test "${sudo_cv_type_size_t+set}" = set; then :
14724   $as_echo_n "(cached) " >&6
14725 else
14726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h.  */
14728 #include <sys/types.h>
14729 #include <stdio.h>
14730 #if STDC_HEADERS
14731 #include <stdlib.h>
14732 #endif
14733 #if HAVE_UNISTD_H
14734 #include <unistd.h>
14735 #endif
14736 _ACEOF
14737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14738   $EGREP "size_t" >/dev/null 2>&1; then :
14739   sudo_cv_type_size_t=yes
14740 else
14741   sudo_cv_type_size_t=no
14742 fi
14743 rm -f conftest*
14744
14745 fi
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
14747 $as_echo "$sudo_cv_type_size_t" >&6; }
14748 if test $sudo_cv_type_size_t = no; then
14749
14750 $as_echo "#define size_t int" >>confdefs.h
14751
14752 fi
14753
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14755 $as_echo_n "checking for ssize_t... " >&6; }
14756 if test "${sudo_cv_type_ssize_t+set}" = set; then :
14757   $as_echo_n "(cached) " >&6
14758 else
14759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h.  */
14761 #include <sys/types.h>
14762 #include <stdio.h>
14763 #if STDC_HEADERS
14764 #include <stdlib.h>
14765 #endif
14766 #if HAVE_UNISTD_H
14767 #include <unistd.h>
14768 #endif
14769 _ACEOF
14770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14771   $EGREP "ssize_t" >/dev/null 2>&1; then :
14772   sudo_cv_type_ssize_t=yes
14773 else
14774   sudo_cv_type_ssize_t=no
14775 fi
14776 rm -f conftest*
14777
14778 fi
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
14780 $as_echo "$sudo_cv_type_ssize_t" >&6; }
14781 if test $sudo_cv_type_ssize_t = no; then
14782
14783 $as_echo "#define ssize_t int" >>confdefs.h
14784
14785 fi
14786
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
14788 $as_echo_n "checking for dev_t... " >&6; }
14789 if test "${sudo_cv_type_dev_t+set}" = set; then :
14790   $as_echo_n "(cached) " >&6
14791 else
14792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h.  */
14794 #include <sys/types.h>
14795 #include <stdio.h>
14796 #if STDC_HEADERS
14797 #include <stdlib.h>
14798 #endif
14799 #if HAVE_UNISTD_H
14800 #include <unistd.h>
14801 #endif
14802 _ACEOF
14803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14804   $EGREP "dev_t" >/dev/null 2>&1; then :
14805   sudo_cv_type_dev_t=yes
14806 else
14807   sudo_cv_type_dev_t=no
14808 fi
14809 rm -f conftest*
14810
14811 fi
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
14813 $as_echo "$sudo_cv_type_dev_t" >&6; }
14814 if test $sudo_cv_type_dev_t = no; then
14815
14816 $as_echo "#define dev_t int" >>confdefs.h
14817
14818 fi
14819
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
14821 $as_echo_n "checking for ino_t... " >&6; }
14822 if test "${sudo_cv_type_ino_t+set}" = set; then :
14823   $as_echo_n "(cached) " >&6
14824 else
14825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826 /* end confdefs.h.  */
14827 #include <sys/types.h>
14828 #include <stdio.h>
14829 #if STDC_HEADERS
14830 #include <stdlib.h>
14831 #endif
14832 #if HAVE_UNISTD_H
14833 #include <unistd.h>
14834 #endif
14835 _ACEOF
14836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14837   $EGREP "ino_t" >/dev/null 2>&1; then :
14838   sudo_cv_type_ino_t=yes
14839 else
14840   sudo_cv_type_ino_t=no
14841 fi
14842 rm -f conftest*
14843
14844 fi
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
14846 $as_echo "$sudo_cv_type_ino_t" >&6; }
14847 if test $sudo_cv_type_ino_t = no; then
14848
14849 $as_echo "#define ino_t unsigned int" >>confdefs.h
14850
14851 fi
14852
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
14855 $as_echo_n "checking max length of uid_t... " >&6; }
14856 if test "${sudo_cv_uid_t_len+set}" = set; then :
14857   $as_echo_n "(cached) " >&6
14858 else
14859   rm -f conftestdata
14860 if test "$cross_compiling" = yes; then :
14861   sudo_cv_uid_t_len=10
14862 else
14863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h.  */
14865 #include <stdio.h>
14866 #include <pwd.h>
14867 #include <limits.h>
14868 #include <sys/types.h>
14869 #include <sys/param.h>
14870 main() {
14871   FILE *f;
14872   char b[1024];
14873   uid_t u = (uid_t) -1;
14874
14875   if ((f = fopen("conftestdata", "w")) == NULL)
14876     exit(1);
14877
14878   (void) sprintf(b, "%lu", (unsigned long) u);
14879   (void) fprintf(f, "%d\n", strlen(b));
14880   (void) fclose(f);
14881   exit(0);
14882 }
14883 _ACEOF
14884 if ac_fn_c_try_run "$LINENO"; then :
14885   sudo_cv_uid_t_len=`cat conftestdata`
14886 else
14887   sudo_cv_uid_t_len=10
14888 fi
14889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14890   conftest.$ac_objext conftest.beam conftest.$ac_ext
14891 fi
14892
14893
14894 fi
14895
14896 rm -f conftestdata
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
14898 $as_echo "$sudo_cv_uid_t_len" >&6; }
14899
14900 cat >>confdefs.h <<_ACEOF
14901 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14902 _ACEOF
14903
14904
14905
14906     ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
14907           #include <sys/socket.h>
14908
14909 "
14910 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
14911
14912 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
14913
14914 fi
14915
14916
14917 case "$DEFS" in
14918     *"RETSIGTYPE"*)     ;;
14919     *)                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14920 $as_echo_n "checking return type of signal handlers... " >&6; }
14921 if test "${ac_cv_type_signal+set}" = set; then :
14922   $as_echo_n "(cached) " >&6
14923 else
14924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h.  */
14926 #include <sys/types.h>
14927 #include <signal.h>
14928
14929 int
14930 main ()
14931 {
14932 return *(signal (0, 0)) (0) == 1;
14933   ;
14934   return 0;
14935 }
14936 _ACEOF
14937 if ac_fn_c_try_compile "$LINENO"; then :
14938   ac_cv_type_signal=int
14939 else
14940   ac_cv_type_signal=void
14941 fi
14942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14945 $as_echo "$ac_cv_type_signal" >&6; }
14946
14947 cat >>confdefs.h <<_ACEOF
14948 #define RETSIGTYPE $ac_cv_type_signal
14949 _ACEOF
14950
14951 ;;
14952 esac
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
14954 $as_echo_n "checking type of array argument to getgroups... " >&6; }
14955 if test "${ac_cv_type_getgroups+set}" = set; then :
14956   $as_echo_n "(cached) " >&6
14957 else
14958   if test "$cross_compiling" = yes; then :
14959   ac_cv_type_getgroups=cross
14960 else
14961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h.  */
14963 /* Thanks to Mike Rendell for this test.  */
14964 $ac_includes_default
14965 #define NGID 256
14966 #undef MAX
14967 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14968
14969 int
14970 main ()
14971 {
14972   gid_t gidset[NGID];
14973   int i, n;
14974   union { gid_t gval; long int lval; }  val;
14975
14976   val.lval = -1;
14977   for (i = 0; i < NGID; i++)
14978     gidset[i] = val.gval;
14979   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14980                  gidset);
14981   /* Exit non-zero if getgroups seems to require an array of ints.  This
14982      happens when gid_t is short int but getgroups modifies an array
14983      of ints.  */
14984   return n > 0 && gidset[n] != val.gval;
14985 }
14986 _ACEOF
14987 if ac_fn_c_try_run "$LINENO"; then :
14988   ac_cv_type_getgroups=gid_t
14989 else
14990   ac_cv_type_getgroups=int
14991 fi
14992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14993   conftest.$ac_objext conftest.beam conftest.$ac_ext
14994 fi
14995
14996 if test $ac_cv_type_getgroups = cross; then
14997         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h.  */
14999 #include <unistd.h>
15000
15001 _ACEOF
15002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15003   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
15004   ac_cv_type_getgroups=gid_t
15005 else
15006   ac_cv_type_getgroups=int
15007 fi
15008 rm -f conftest*
15009
15010 fi
15011 fi
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
15013 $as_echo "$ac_cv_type_getgroups" >&6; }
15014
15015 cat >>confdefs.h <<_ACEOF
15016 #define GETGROUPS_T $ac_cv_type_getgroups
15017 _ACEOF
15018
15019
15020 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15021 if test "x$ac_cv_type_size_t" = x""yes; then :
15022
15023 else
15024
15025 cat >>confdefs.h <<_ACEOF
15026 #define size_t unsigned int
15027 _ACEOF
15028
15029 fi
15030
15031 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
15032 if test "x$ac_cv_func_getgroups" = x""yes; then :
15033
15034 fi
15035
15036
15037 # If we don't yet have getgroups, see if it's in -lbsd.
15038 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15039 ac_save_LIBS=$LIBS
15040 if test $ac_cv_func_getgroups = no; then
15041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
15042 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
15043 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
15044   $as_echo_n "(cached) " >&6
15045 else
15046   ac_check_lib_save_LIBS=$LIBS
15047 LIBS="-lbsd  $LIBS"
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h.  */
15050
15051 /* Override any GCC internal prototype to avoid an error.
15052    Use char because int might match the return type of a GCC
15053    builtin and then its argument prototype would still apply.  */
15054 #ifdef __cplusplus
15055 extern "C"
15056 #endif
15057 char getgroups ();
15058 int
15059 main ()
15060 {
15061 return getgroups ();
15062   ;
15063   return 0;
15064 }
15065 _ACEOF
15066 if ac_fn_c_try_link "$LINENO"; then :
15067   ac_cv_lib_bsd_getgroups=yes
15068 else
15069   ac_cv_lib_bsd_getgroups=no
15070 fi
15071 rm -f core conftest.err conftest.$ac_objext \
15072     conftest$ac_exeext conftest.$ac_ext
15073 LIBS=$ac_check_lib_save_LIBS
15074 fi
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
15076 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
15077 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
15078   GETGROUPS_LIB=-lbsd
15079 fi
15080
15081 fi
15082
15083 # Run the program to test the functionality of the system-supplied
15084 # getgroups function only if there is such a function.
15085 if test $ac_cv_func_getgroups = yes; then
15086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
15087 $as_echo_n "checking for working getgroups... " >&6; }
15088 if test "${ac_cv_func_getgroups_works+set}" = set; then :
15089   $as_echo_n "(cached) " >&6
15090 else
15091   if test "$cross_compiling" = yes; then :
15092   ac_cv_func_getgroups_works=no
15093 else
15094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h.  */
15096 $ac_includes_default
15097 int
15098 main ()
15099 {
15100 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
15101        return getgroups (0, 0) == -1;
15102   ;
15103   return 0;
15104 }
15105 _ACEOF
15106 if ac_fn_c_try_run "$LINENO"; then :
15107   ac_cv_func_getgroups_works=yes
15108 else
15109   ac_cv_func_getgroups_works=no
15110 fi
15111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15112   conftest.$ac_objext conftest.beam conftest.$ac_ext
15113 fi
15114
15115
15116 fi
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
15118 $as_echo "$ac_cv_func_getgroups_works" >&6; }
15119 else
15120   ac_cv_func_getgroups_works=no
15121 fi
15122 if test $ac_cv_func_getgroups_works = yes; then
15123
15124 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
15125
15126 fi
15127 LIBS=$ac_save_LIBS
15128
15129 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15130                strftime setrlimit initgroups getgroups fstat gettimeofday \
15131                regcomp setlocale nl_langinfo getaddrinfo setenv \
15132                mbr_check_membership setrlimit64
15133 do :
15134   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15136 eval as_val=\$$as_ac_var
15137    if test "x$as_val" = x""yes; then :
15138   cat >>confdefs.h <<_ACEOF
15139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15140 _ACEOF
15141
15142 fi
15143 done
15144
15145 for ac_func in getline
15146 do :
15147   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
15148 if test "x$ac_cv_func_getline" = x""yes; then :
15149   cat >>confdefs.h <<_ACEOF
15150 #define HAVE_GETLINE 1
15151 _ACEOF
15152
15153 else
15154
15155     case " $LIBOBJS " in
15156   *" getline.$ac_objext "* ) ;;
15157   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
15158  ;;
15159 esac
15160
15161     for ac_func in fgetln
15162 do :
15163   ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
15164 if test "x$ac_cv_func_fgetln" = x""yes; then :
15165   cat >>confdefs.h <<_ACEOF
15166 #define HAVE_FGETLN 1
15167 _ACEOF
15168
15169 fi
15170 done
15171
15172
15173 fi
15174 done
15175
15176 for ac_func in setsid
15177 do :
15178   ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
15179 if test "x$ac_cv_func_setsid" = x""yes; then :
15180   cat >>confdefs.h <<_ACEOF
15181 #define HAVE_SETSID 1
15182 _ACEOF
15183
15184 else
15185
15186     case " $LIBOBJS " in
15187   *" setsid.$ac_objext "* ) ;;
15188   *) LIBOBJS="$LIBOBJS setsid.$ac_objext"
15189  ;;
15190 esac
15191
15192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15193 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15194 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
15195   $as_echo_n "(cached) " >&6
15196 else
15197   if test "$cross_compiling" = yes; then :
15198   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
15199 else
15200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h.  */
15202 $ac_includes_default
15203 int
15204 main ()
15205 {
15206 /* If this system has a BSD-style setpgrp which takes arguments,
15207   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15208   exit successfully. */
15209   return setpgrp (1,1) != -1;
15210   ;
15211   return 0;
15212 }
15213 _ACEOF
15214 if ac_fn_c_try_run "$LINENO"; then :
15215   ac_cv_func_setpgrp_void=no
15216 else
15217   ac_cv_func_setpgrp_void=yes
15218 fi
15219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15220   conftest.$ac_objext conftest.beam conftest.$ac_ext
15221 fi
15222
15223 fi
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15225 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15226 if test $ac_cv_func_setpgrp_void = yes; then
15227
15228 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15229
15230 fi
15231
15232
15233 fi
15234 done
15235
15236
15237 for ac_func in sysctl getutxid getutid
15238 do :
15239   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15241 eval as_val=\$$as_ac_var
15242    if test "x$as_val" = x""yes; then :
15243   cat >>confdefs.h <<_ACEOF
15244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15245 _ACEOF
15246  break
15247 fi
15248 done
15249
15250
15251 for ac_func in openpty
15252 do :
15253   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
15254 if test "x$ac_cv_func_openpty" = x""yes; then :
15255   cat >>confdefs.h <<_ACEOF
15256 #define HAVE_OPENPTY 1
15257 _ACEOF
15258  for ac_header in util.h pty.h
15259 do :
15260   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15261 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15262 eval as_val=\$$as_ac_Header
15263    if test "x$as_val" = x""yes; then :
15264   cat >>confdefs.h <<_ACEOF
15265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15266 _ACEOF
15267  break
15268 fi
15269
15270 done
15271
15272 else
15273
15274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
15275 $as_echo_n "checking for openpty in -lutil... " >&6; }
15276 if test "${ac_cv_lib_util_openpty+set}" = set; then :
15277   $as_echo_n "(cached) " >&6
15278 else
15279   ac_check_lib_save_LIBS=$LIBS
15280 LIBS="-lutil  $LIBS"
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h.  */
15283
15284 /* Override any GCC internal prototype to avoid an error.
15285    Use char because int might match the return type of a GCC
15286    builtin and then its argument prototype would still apply.  */
15287 #ifdef __cplusplus
15288 extern "C"
15289 #endif
15290 char openpty ();
15291 int
15292 main ()
15293 {
15294 return openpty ();
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 if ac_fn_c_try_link "$LINENO"; then :
15300   ac_cv_lib_util_openpty=yes
15301 else
15302   ac_cv_lib_util_openpty=no
15303 fi
15304 rm -f core conftest.err conftest.$ac_objext \
15305     conftest$ac_exeext conftest.$ac_ext
15306 LIBS=$ac_check_lib_save_LIBS
15307 fi
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
15309 $as_echo "$ac_cv_lib_util_openpty" >&6; }
15310 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
15311
15312         for ac_header in util.h pty.h
15313 do :
15314   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15315 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15316 eval as_val=\$$as_ac_Header
15317    if test "x$as_val" = x""yes; then :
15318   cat >>confdefs.h <<_ACEOF
15319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15320 _ACEOF
15321  break
15322 fi
15323
15324 done
15325
15326         SUDO_LIBS="${SUDO_LIBS} -lutil"
15327         $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
15328
15329
15330 else
15331
15332         for ac_func in _getpty
15333 do :
15334   ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
15335 if test "x$ac_cv_func__getpty" = x""yes; then :
15336   cat >>confdefs.h <<_ACEOF
15337 #define HAVE__GETPTY 1
15338 _ACEOF
15339
15340 else
15341
15342             for ac_func in grantpt
15343 do :
15344   ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15345 if test "x$ac_cv_func_grantpt" = x""yes; then :
15346   cat >>confdefs.h <<_ACEOF
15347 #define HAVE_GRANTPT 1
15348 _ACEOF
15349
15350                 for ac_func in posix_openpt
15351 do :
15352   ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
15353 if test "x$ac_cv_func_posix_openpt" = x""yes; then :
15354   cat >>confdefs.h <<_ACEOF
15355 #define HAVE_POSIX_OPENPT 1
15356 _ACEOF
15357
15358 fi
15359 done
15360
15361
15362 else
15363
15364                 for ac_func in revoke
15365 do :
15366   ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
15367 if test "x$ac_cv_func_revoke" = x""yes; then :
15368   cat >>confdefs.h <<_ACEOF
15369 #define HAVE_REVOKE 1
15370 _ACEOF
15371
15372 fi
15373 done
15374
15375
15376 fi
15377 done
15378
15379
15380 fi
15381 done
15382
15383
15384 fi
15385
15386
15387 fi
15388 done
15389
15390 for ac_func in unsetenv
15391 do :
15392   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15393 if test "x$ac_cv_func_unsetenv" = x""yes; then :
15394   cat >>confdefs.h <<_ACEOF
15395 #define HAVE_UNSETENV 1
15396 _ACEOF
15397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
15398 $as_echo_n "checking whether unsetenv returns void... " >&6; }
15399 if test "${sudo_cv_func_unsetenv_void+set}" = set; then :
15400   $as_echo_n "(cached) " >&6
15401 else
15402   if test "$cross_compiling" = yes; then :
15403   sudo_cv_func_unsetenv_void=no
15404 else
15405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h.  */
15407 $ac_includes_default
15408         int unsetenv();
15409
15410 int
15411 main ()
15412 {
15413
15414         return unsetenv("FOO") != 0;
15415
15416   ;
15417   return 0;
15418 }
15419
15420 _ACEOF
15421 if ac_fn_c_try_run "$LINENO"; then :
15422   sudo_cv_func_unsetenv_void=no
15423 else
15424   sudo_cv_func_unsetenv_void=yes
15425 fi
15426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15427   conftest.$ac_objext conftest.beam conftest.$ac_ext
15428 fi
15429
15430 fi
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
15432 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
15433     if test $sudo_cv_func_unsetenv_void = yes; then
15434
15435 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
15436
15437     fi
15438
15439 fi
15440 done
15441
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv has a const argument" >&5
15443 $as_echo_n "checking whether putenv has a const argument... " >&6; }
15444 if test "${sudo_cv_func_putenv_const+set}" = set; then :
15445   $as_echo_n "(cached) " >&6
15446 else
15447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h.  */
15449 $ac_includes_default
15450 int putenv(const char *string) {return 0;}
15451 int
15452 main ()
15453 {
15454
15455   ;
15456   return 0;
15457 }
15458 _ACEOF
15459 if ac_fn_c_try_compile "$LINENO"; then :
15460   sudo_cv_func_putenv_const=yes
15461 else
15462   sudo_cv_func_putenv_const=no
15463 fi
15464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15465
15466 fi
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
15468 $as_echo "$sudo_cv_func_putenv_const" >&6; }
15469   if test $sudo_cv_func_putenv_const = yes; then
15470
15471 $as_echo "#define PUTENV_CONST 1" >>confdefs.h
15472
15473   fi
15474
15475 if test -z "$SKIP_SETRESUID"; then
15476     for ac_func in setresuid
15477 do :
15478   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
15479 if test "x$ac_cv_func_setresuid" = x""yes; then :
15480   cat >>confdefs.h <<_ACEOF
15481 #define HAVE_SETRESUID 1
15482 _ACEOF
15483  SKIP_SETREUID=yes
15484 fi
15485 done
15486
15487 fi
15488 if test -z "$SKIP_SETREUID"; then
15489     for ac_func in setreuid
15490 do :
15491   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
15492 if test "x$ac_cv_func_setreuid" = x""yes; then :
15493   cat >>confdefs.h <<_ACEOF
15494 #define HAVE_SETREUID 1
15495 _ACEOF
15496  SKIP_SETEUID=yes
15497 fi
15498 done
15499
15500 fi
15501 if test -z "$SKIP_SETEUID"; then
15502     for ac_func in seteuid
15503 do :
15504   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
15505 if test "x$ac_cv_func_seteuid" = x""yes; then :
15506   cat >>confdefs.h <<_ACEOF
15507 #define HAVE_SETEUID 1
15508 _ACEOF
15509
15510 fi
15511 done
15512
15513 fi
15514 if test X"$with_interfaces" != X"no"; then
15515     for ac_func in getifaddrs
15516 do :
15517   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
15518 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
15519   cat >>confdefs.h <<_ACEOF
15520 #define HAVE_GETIFADDRS 1
15521 _ACEOF
15522  for ac_func in freeifaddrs
15523 do :
15524   ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
15525 if test "x$ac_cv_func_freeifaddrs" = x""yes; then :
15526   cat >>confdefs.h <<_ACEOF
15527 #define HAVE_FREEIFADDRS 1
15528 _ACEOF
15529
15530 fi
15531 done
15532
15533 fi
15534 done
15535
15536 fi
15537 if test -z "$BROKEN_GETCWD"; then
15538     for ac_func in getcwd
15539 do :
15540   ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15541 if test "x$ac_cv_func_getcwd" = x""yes; then :
15542   cat >>confdefs.h <<_ACEOF
15543 #define HAVE_GETCWD 1
15544 _ACEOF
15545
15546 else
15547   case " $LIBOBJS " in
15548   *" $ac_func.$ac_objext "* ) ;;
15549   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15550  ;;
15551 esac
15552
15553 fi
15554 done
15555
15556
15557 fi
15558 for ac_func in glob
15559 do :
15560   ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
15561 if test "x$ac_cv_func_glob" = x""yes; then :
15562   cat >>confdefs.h <<_ACEOF
15563 #define HAVE_GLOB 1
15564 _ACEOF
15565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15566 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568 /* end confdefs.h.  */
15569 #include <glob.h>
15570 int
15571 main ()
15572 {
15573 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15574   ;
15575   return 0;
15576 }
15577 _ACEOF
15578 if ac_fn_c_try_compile "$LINENO"; then :
15579   $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
15580
15581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15582 $as_echo "yes" >&6; }
15583 else
15584   case " $LIBOBJS " in
15585   *" glob.$ac_objext "* ) ;;
15586   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15587  ;;
15588 esac
15589
15590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15591 $as_echo "no" >&6; }
15592 fi
15593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15594 else
15595   case " $LIBOBJS " in
15596   *" glob.$ac_objext "* ) ;;
15597   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15598  ;;
15599 esac
15600
15601 fi
15602 done
15603
15604 for ac_func in lockf flock
15605 do :
15606   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15607 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15608 eval as_val=\$$as_ac_var
15609    if test "x$as_val" = x""yes; then :
15610   cat >>confdefs.h <<_ACEOF
15611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15612 _ACEOF
15613  break
15614 fi
15615 done
15616
15617 for ac_func in waitpid wait3
15618 do :
15619   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15621 eval as_val=\$$as_ac_var
15622    if test "x$as_val" = x""yes; then :
15623   cat >>confdefs.h <<_ACEOF
15624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15625 _ACEOF
15626  break
15627 fi
15628 done
15629
15630 for ac_func in innetgr _innetgr
15631 do :
15632   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15634 eval as_val=\$$as_ac_var
15635    if test "x$as_val" = x""yes; then :
15636   cat >>confdefs.h <<_ACEOF
15637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15638 _ACEOF
15639  for ac_func in getdomainname
15640 do :
15641   ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
15642 if test "x$ac_cv_func_getdomainname" = x""yes; then :
15643   cat >>confdefs.h <<_ACEOF
15644 #define HAVE_GETDOMAINNAME 1
15645 _ACEOF
15646
15647 fi
15648 done
15649  break
15650 fi
15651 done
15652
15653 for ac_func in utimes
15654 do :
15655   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15656 if test "x$ac_cv_func_utimes" = x""yes; then :
15657   cat >>confdefs.h <<_ACEOF
15658 #define HAVE_UTIMES 1
15659 _ACEOF
15660  for ac_func in futimes futimesat
15661 do :
15662   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15663 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15664 eval as_val=\$$as_ac_var
15665    if test "x$as_val" = x""yes; then :
15666   cat >>confdefs.h <<_ACEOF
15667 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15668 _ACEOF
15669  break
15670 fi
15671 done
15672
15673 else
15674   for ac_func in futime
15675 do :
15676   ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
15677 if test "x$ac_cv_func_futime" = x""yes; then :
15678   cat >>confdefs.h <<_ACEOF
15679 #define HAVE_FUTIME 1
15680 _ACEOF
15681
15682 fi
15683 done
15684  case " $LIBOBJS " in
15685   *" utimes.$ac_objext "* ) ;;
15686   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
15687  ;;
15688 esac
15689
15690 fi
15691 done
15692
15693 for ac_func in killpg
15694 do :
15695   ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
15696 if test "x$ac_cv_func_killpg" = x""yes; then :
15697   cat >>confdefs.h <<_ACEOF
15698 #define HAVE_KILLPG 1
15699 _ACEOF
15700
15701 else
15702   case " $LIBOBJS " in
15703   *" killpg.$ac_objext "* ) ;;
15704   *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
15705  ;;
15706 esac
15707
15708 fi
15709 done
15710
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
15712 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
15713 if test "${sudo_cv_func_fnmatch+set}" = set; then :
15714   $as_echo_n "(cached) " >&6
15715 else
15716   rm -f conftestdata; > conftestdata
15717 if test "$cross_compiling" = yes; then :
15718   sudo_cv_func_fnmatch=no
15719 else
15720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721 /* end confdefs.h.  */
15722 #include <fnmatch.h>
15723 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
15724 _ACEOF
15725 if ac_fn_c_try_run "$LINENO"; then :
15726   sudo_cv_func_fnmatch=yes
15727 else
15728   sudo_cv_func_fnmatch=no
15729 fi
15730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15731   conftest.$ac_objext conftest.beam conftest.$ac_ext
15732 fi
15733
15734 rm -f core core.* *.core
15735 fi
15736
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
15738 $as_echo "$sudo_cv_func_fnmatch" >&6; }
15739 if test $sudo_cv_func_fnmatch = yes; then :
15740   $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
15741
15742 else
15743   case " $LIBOBJS " in
15744   *" fnmatch.$ac_objext "* ) ;;
15745   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
15746  ;;
15747 esac
15748
15749 fi
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
15751 $as_echo_n "checking for isblank... " >&6; }
15752 if test "${sudo_cv_func_isblank+set}" = set; then :
15753   $as_echo_n "(cached) " >&6
15754 else
15755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h.  */
15757 #include <ctype.h>
15758 int
15759 main ()
15760 {
15761 return (isblank('a'));
15762   ;
15763   return 0;
15764 }
15765 _ACEOF
15766 if ac_fn_c_try_link "$LINENO"; then :
15767   sudo_cv_func_isblank=yes
15768 else
15769   sudo_cv_func_isblank=no
15770 fi
15771 rm -f core conftest.err conftest.$ac_objext \
15772     conftest$ac_exeext conftest.$ac_ext
15773 fi
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
15775 $as_echo "$sudo_cv_func_isblank" >&6; }
15776
15777   if test "$sudo_cv_func_isblank" = "yes"; then
15778
15779 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
15780
15781   else
15782     case " $LIBOBJS " in
15783   *" isblank.$ac_objext "* ) ;;
15784   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
15785  ;;
15786 esac
15787
15788   fi
15789
15790 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
15791 do :
15792   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15793 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15794 eval as_val=\$$as_ac_var
15795    if test "x$as_val" = x""yes; then :
15796   cat >>confdefs.h <<_ACEOF
15797 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15798 _ACEOF
15799
15800 else
15801   case " $LIBOBJS " in
15802   *" $ac_func.$ac_objext "* ) ;;
15803   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15804  ;;
15805 esac
15806
15807 fi
15808 done
15809
15810
15811 for ac_func in nanosleep
15812 do :
15813   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
15814 if test "x$ac_cv_func_nanosleep" = x""yes; then :
15815   cat >>confdefs.h <<_ACEOF
15816 #define HAVE_NANOSLEEP 1
15817 _ACEOF
15818
15819 else
15820
15821     # On Solaris, nanosleep is in librt
15822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
15823 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
15824 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
15825   $as_echo_n "(cached) " >&6
15826 else
15827   ac_check_lib_save_LIBS=$LIBS
15828 LIBS="-lrt  $LIBS"
15829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830 /* end confdefs.h.  */
15831
15832 /* Override any GCC internal prototype to avoid an error.
15833    Use char because int might match the return type of a GCC
15834    builtin and then its argument prototype would still apply.  */
15835 #ifdef __cplusplus
15836 extern "C"
15837 #endif
15838 char nanosleep ();
15839 int
15840 main ()
15841 {
15842 return nanosleep ();
15843   ;
15844   return 0;
15845 }
15846 _ACEOF
15847 if ac_fn_c_try_link "$LINENO"; then :
15848   ac_cv_lib_rt_nanosleep=yes
15849 else
15850   ac_cv_lib_rt_nanosleep=no
15851 fi
15852 rm -f core conftest.err conftest.$ac_objext \
15853     conftest$ac_exeext conftest.$ac_ext
15854 LIBS=$ac_check_lib_save_LIBS
15855 fi
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
15857 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
15858 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
15859   LIBS="${LIBS} -lrt"
15860 else
15861   case " $LIBOBJS " in
15862   *" nanosleep.$ac_objext "* ) ;;
15863   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
15864  ;;
15865 esac
15866
15867 fi
15868
15869
15870 fi
15871 done
15872
15873 for ac_func in closefrom
15874 do :
15875   ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
15876 if test "x$ac_cv_func_closefrom" = x""yes; then :
15877   cat >>confdefs.h <<_ACEOF
15878 #define HAVE_CLOSEFROM 1
15879 _ACEOF
15880
15881 else
15882   case " $LIBOBJS " in
15883   *" closefrom.$ac_objext "* ) ;;
15884   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
15885  ;;
15886 esac
15887
15888     ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
15889           #include <fcntl.h>
15890 "
15891 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
15892   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
15893
15894 fi
15895
15896
15897 fi
15898 done
15899
15900 for ac_func in mkstemps
15901 do :
15902   ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
15903 if test "x$ac_cv_func_mkstemps" = x""yes; then :
15904   cat >>confdefs.h <<_ACEOF
15905 #define HAVE_MKSTEMPS 1
15906 _ACEOF
15907
15908 else
15909   SUDO_OBJS="${SUDO_OBJS} mkstemps.o"
15910     for ac_func in random lrand48
15911 do :
15912   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15913 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15914 eval as_val=\$$as_ac_var
15915    if test "x$as_val" = x""yes; then :
15916   cat >>confdefs.h <<_ACEOF
15917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15918 _ACEOF
15919  break
15920 fi
15921 done
15922
15923
15924 fi
15925 done
15926
15927 for ac_func in snprintf vsnprintf asprintf vasprintf
15928 do :
15929   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15931 eval as_val=\$$as_ac_var
15932    if test "x$as_val" = x""yes; then :
15933   cat >>confdefs.h <<_ACEOF
15934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15935 _ACEOF
15936
15937 else
15938   NEED_SNPRINTF=1
15939 fi
15940 done
15941
15942 if test X"$ac_cv_type_struct_timespec" != X"no"; then
15943     ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15944 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
15945   $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
15946
15947         ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
15948 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = x""yes; then :
15949   $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
15950
15951 fi
15952
15953 else
15954   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15955 if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then :
15956   $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
15957
15958 fi
15959
15960 fi
15961
15962 fi
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964 /* end confdefs.h.  */
15965 #include <sys/types.h>
15966 #include <$ac_header_dirent>
15967 int
15968 main ()
15969 {
15970 DIR *d; (void)dirfd(d);
15971   ;
15972   return 0;
15973 }
15974 _ACEOF
15975 if ac_fn_c_try_link "$LINENO"; then :
15976   $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
15977
15978 else
15979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h.  */
15981 #include <sys/types.h>
15982 #include <$ac_header_dirent>
15983 int
15984 main ()
15985 {
15986 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 if ac_fn_c_try_link "$LINENO"; then :
15992   $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
15993
15994 fi
15995 rm -f core conftest.err conftest.$ac_objext \
15996     conftest$ac_exeext conftest.$ac_ext
15997 fi
15998 rm -f core conftest.err conftest.$ac_objext \
15999     conftest$ac_exeext conftest.$ac_ext
16000 if test -n "$NEED_SNPRINTF"; then
16001     case " $LIBOBJS " in
16002   *" snprintf.$ac_objext "* ) ;;
16003   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16004  ;;
16005 esac
16006
16007 fi
16008 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16009 if test "x$ac_cv_func_socket" = x""yes; then :
16010
16011 else
16012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16013 $as_echo_n "checking for socket in -lsocket... " >&6; }
16014 if test "${ac_cv_lib_socket_socket+set}" = set; then :
16015   $as_echo_n "(cached) " >&6
16016 else
16017   ac_check_lib_save_LIBS=$LIBS
16018 LIBS="-lsocket  $LIBS"
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 /* end confdefs.h.  */
16021
16022 /* Override any GCC internal prototype to avoid an error.
16023    Use char because int might match the return type of a GCC
16024    builtin and then its argument prototype would still apply.  */
16025 #ifdef __cplusplus
16026 extern "C"
16027 #endif
16028 char socket ();
16029 int
16030 main ()
16031 {
16032 return socket ();
16033   ;
16034   return 0;
16035 }
16036 _ACEOF
16037 if ac_fn_c_try_link "$LINENO"; then :
16038   ac_cv_lib_socket_socket=yes
16039 else
16040   ac_cv_lib_socket_socket=no
16041 fi
16042 rm -f core conftest.err conftest.$ac_objext \
16043     conftest$ac_exeext conftest.$ac_ext
16044 LIBS=$ac_check_lib_save_LIBS
16045 fi
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16047 $as_echo "$ac_cv_lib_socket_socket" >&6; }
16048 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
16049   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
16050 else
16051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
16052 $as_echo_n "checking for socket in -linet... " >&6; }
16053 if test "${ac_cv_lib_inet_socket+set}" = set; then :
16054   $as_echo_n "(cached) " >&6
16055 else
16056   ac_check_lib_save_LIBS=$LIBS
16057 LIBS="-linet  $LIBS"
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h.  */
16060
16061 /* Override any GCC internal prototype to avoid an error.
16062    Use char because int might match the return type of a GCC
16063    builtin and then its argument prototype would still apply.  */
16064 #ifdef __cplusplus
16065 extern "C"
16066 #endif
16067 char socket ();
16068 int
16069 main ()
16070 {
16071 return socket ();
16072   ;
16073   return 0;
16074 }
16075 _ACEOF
16076 if ac_fn_c_try_link "$LINENO"; then :
16077   ac_cv_lib_inet_socket=yes
16078 else
16079   ac_cv_lib_inet_socket=no
16080 fi
16081 rm -f core conftest.err conftest.$ac_objext \
16082     conftest$ac_exeext conftest.$ac_ext
16083 LIBS=$ac_check_lib_save_LIBS
16084 fi
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
16086 $as_echo "$ac_cv_lib_inet_socket" >&6; }
16087 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
16088   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16089 else
16090   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
16091 $as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16093 $as_echo_n "checking for socket in -lsocket... " >&6; }
16094 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then :
16095   $as_echo_n "(cached) " >&6
16096 else
16097   ac_check_lib_save_LIBS=$LIBS
16098 LIBS="-lsocket -lnsl $LIBS"
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h.  */
16101
16102 /* Override any GCC internal prototype to avoid an error.
16103    Use char because int might match the return type of a GCC
16104    builtin and then its argument prototype would still apply.  */
16105 #ifdef __cplusplus
16106 extern "C"
16107 #endif
16108 char socket ();
16109 int
16110 main ()
16111 {
16112 return socket ();
16113   ;
16114   return 0;
16115 }
16116 _ACEOF
16117 if ac_fn_c_try_link "$LINENO"; then :
16118   ac_cv_lib_socket_socket_lnsl=yes
16119 else
16120   ac_cv_lib_socket_socket_lnsl=no
16121 fi
16122 rm -f core conftest.err conftest.$ac_objext \
16123     conftest$ac_exeext conftest.$ac_ext
16124 LIBS=$ac_check_lib_save_LIBS
16125 fi
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
16127 $as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
16128 if test "x$ac_cv_lib_socket_socket_lnsl" = x""yes; then :
16129   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
16130 fi
16131
16132 fi
16133
16134 fi
16135
16136 fi
16137
16138 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
16139 if test "x$ac_cv_func_inet_addr" = x""yes; then :
16140
16141 else
16142   ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
16143 if test "x$ac_cv_func___inet_addr" = x""yes; then :
16144
16145 else
16146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
16147 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
16148 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
16149   $as_echo_n "(cached) " >&6
16150 else
16151   ac_check_lib_save_LIBS=$LIBS
16152 LIBS="-lnsl  $LIBS"
16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h.  */
16155
16156 /* Override any GCC internal prototype to avoid an error.
16157    Use char because int might match the return type of a GCC
16158    builtin and then its argument prototype would still apply.  */
16159 #ifdef __cplusplus
16160 extern "C"
16161 #endif
16162 char inet_addr ();
16163 int
16164 main ()
16165 {
16166 return inet_addr ();
16167   ;
16168   return 0;
16169 }
16170 _ACEOF
16171 if ac_fn_c_try_link "$LINENO"; then :
16172   ac_cv_lib_nsl_inet_addr=yes
16173 else
16174   ac_cv_lib_nsl_inet_addr=no
16175 fi
16176 rm -f core conftest.err conftest.$ac_objext \
16177     conftest$ac_exeext conftest.$ac_ext
16178 LIBS=$ac_check_lib_save_LIBS
16179 fi
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
16181 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
16182 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
16183   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
16184 else
16185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
16186 $as_echo_n "checking for inet_addr in -linet... " >&6; }
16187 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then :
16188   $as_echo_n "(cached) " >&6
16189 else
16190   ac_check_lib_save_LIBS=$LIBS
16191 LIBS="-linet  $LIBS"
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193 /* end confdefs.h.  */
16194
16195 /* Override any GCC internal prototype to avoid an error.
16196    Use char because int might match the return type of a GCC
16197    builtin and then its argument prototype would still apply.  */
16198 #ifdef __cplusplus
16199 extern "C"
16200 #endif
16201 char inet_addr ();
16202 int
16203 main ()
16204 {
16205 return inet_addr ();
16206   ;
16207   return 0;
16208 }
16209 _ACEOF
16210 if ac_fn_c_try_link "$LINENO"; then :
16211   ac_cv_lib_inet_inet_addr=yes
16212 else
16213   ac_cv_lib_inet_inet_addr=no
16214 fi
16215 rm -f core conftest.err conftest.$ac_objext \
16216     conftest$ac_exeext conftest.$ac_ext
16217 LIBS=$ac_check_lib_save_LIBS
16218 fi
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
16220 $as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
16221 if test "x$ac_cv_lib_inet_inet_addr" = x""yes; then :
16222   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16223 else
16224   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
16225 $as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
16227 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
16228 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then :
16229   $as_echo_n "(cached) " >&6
16230 else
16231   ac_check_lib_save_LIBS=$LIBS
16232 LIBS="-lsocket -lnsl $LIBS"
16233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16234 /* end confdefs.h.  */
16235
16236 /* Override any GCC internal prototype to avoid an error.
16237    Use char because int might match the return type of a GCC
16238    builtin and then its argument prototype would still apply.  */
16239 #ifdef __cplusplus
16240 extern "C"
16241 #endif
16242 char inet_addr ();
16243 int
16244 main ()
16245 {
16246 return inet_addr ();
16247   ;
16248   return 0;
16249 }
16250 _ACEOF
16251 if ac_fn_c_try_link "$LINENO"; then :
16252   ac_cv_lib_socket_inet_addr_lnsl=yes
16253 else
16254   ac_cv_lib_socket_inet_addr_lnsl=no
16255 fi
16256 rm -f core conftest.err conftest.$ac_objext \
16257     conftest$ac_exeext conftest.$ac_ext
16258 LIBS=$ac_check_lib_save_LIBS
16259 fi
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
16261 $as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
16262 if test "x$ac_cv_lib_socket_inet_addr_lnsl" = x""yes; then :
16263   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
16264 fi
16265
16266 fi
16267
16268 fi
16269
16270 fi
16271
16272 fi
16273
16274 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
16275 if test "x$ac_cv_func_syslog" = x""yes; then :
16276
16277 else
16278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
16279 $as_echo_n "checking for syslog in -lsocket... " >&6; }
16280 if test "${ac_cv_lib_socket_syslog+set}" = set; then :
16281   $as_echo_n "(cached) " >&6
16282 else
16283   ac_check_lib_save_LIBS=$LIBS
16284 LIBS="-lsocket  $LIBS"
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h.  */
16287
16288 /* Override any GCC internal prototype to avoid an error.
16289    Use char because int might match the return type of a GCC
16290    builtin and then its argument prototype would still apply.  */
16291 #ifdef __cplusplus
16292 extern "C"
16293 #endif
16294 char syslog ();
16295 int
16296 main ()
16297 {
16298 return syslog ();
16299   ;
16300   return 0;
16301 }
16302 _ACEOF
16303 if ac_fn_c_try_link "$LINENO"; then :
16304   ac_cv_lib_socket_syslog=yes
16305 else
16306   ac_cv_lib_socket_syslog=no
16307 fi
16308 rm -f core conftest.err conftest.$ac_objext \
16309     conftest$ac_exeext conftest.$ac_ext
16310 LIBS=$ac_check_lib_save_LIBS
16311 fi
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
16313 $as_echo "$ac_cv_lib_socket_syslog" >&6; }
16314 if test "x$ac_cv_lib_socket_syslog" = x""yes; then :
16315   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
16316 else
16317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
16318 $as_echo_n "checking for syslog in -lnsl... " >&6; }
16319 if test "${ac_cv_lib_nsl_syslog+set}" = set; then :
16320   $as_echo_n "(cached) " >&6
16321 else
16322   ac_check_lib_save_LIBS=$LIBS
16323 LIBS="-lnsl  $LIBS"
16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h.  */
16326
16327 /* Override any GCC internal prototype to avoid an error.
16328    Use char because int might match the return type of a GCC
16329    builtin and then its argument prototype would still apply.  */
16330 #ifdef __cplusplus
16331 extern "C"
16332 #endif
16333 char syslog ();
16334 int
16335 main ()
16336 {
16337 return syslog ();
16338   ;
16339   return 0;
16340 }
16341 _ACEOF
16342 if ac_fn_c_try_link "$LINENO"; then :
16343   ac_cv_lib_nsl_syslog=yes
16344 else
16345   ac_cv_lib_nsl_syslog=no
16346 fi
16347 rm -f core conftest.err conftest.$ac_objext \
16348     conftest$ac_exeext conftest.$ac_ext
16349 LIBS=$ac_check_lib_save_LIBS
16350 fi
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
16352 $as_echo "$ac_cv_lib_nsl_syslog" >&6; }
16353 if test "x$ac_cv_lib_nsl_syslog" = x""yes; then :
16354   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
16355 else
16356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
16357 $as_echo_n "checking for syslog in -linet... " >&6; }
16358 if test "${ac_cv_lib_inet_syslog+set}" = set; then :
16359   $as_echo_n "(cached) " >&6
16360 else
16361   ac_check_lib_save_LIBS=$LIBS
16362 LIBS="-linet  $LIBS"
16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364 /* end confdefs.h.  */
16365
16366 /* Override any GCC internal prototype to avoid an error.
16367    Use char because int might match the return type of a GCC
16368    builtin and then its argument prototype would still apply.  */
16369 #ifdef __cplusplus
16370 extern "C"
16371 #endif
16372 char syslog ();
16373 int
16374 main ()
16375 {
16376 return syslog ();
16377   ;
16378   return 0;
16379 }
16380 _ACEOF
16381 if ac_fn_c_try_link "$LINENO"; then :
16382   ac_cv_lib_inet_syslog=yes
16383 else
16384   ac_cv_lib_inet_syslog=no
16385 fi
16386 rm -f core conftest.err conftest.$ac_objext \
16387     conftest$ac_exeext conftest.$ac_ext
16388 LIBS=$ac_check_lib_save_LIBS
16389 fi
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
16391 $as_echo "$ac_cv_lib_inet_syslog" >&6; }
16392 if test "x$ac_cv_lib_inet_syslog" = x""yes; then :
16393   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16394 fi
16395
16396 fi
16397
16398 fi
16399
16400 fi
16401
16402 for ac_func in getprogname
16403 do :
16404   ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
16405 if test "x$ac_cv_func_getprogname" = x""yes; then :
16406   cat >>confdefs.h <<_ACEOF
16407 #define HAVE_GETPROGNAME 1
16408 _ACEOF
16409
16410 else
16411
16412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
16413 $as_echo_n "checking for __progname... " >&6; }
16414     if test "${sudo_cv___progname+set}" = set; then :
16415   $as_echo_n "(cached) " >&6
16416 else
16417
16418     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h.  */
16420
16421 int
16422 main ()
16423 {
16424 extern char *__progname; (void)puts(__progname);
16425   ;
16426   return 0;
16427 }
16428 _ACEOF
16429 if ac_fn_c_try_link "$LINENO"; then :
16430   sudo_cv___progname=yes
16431 else
16432   sudo_cv___progname=no
16433 fi
16434 rm -f core conftest.err conftest.$ac_objext \
16435     conftest$ac_exeext conftest.$ac_ext
16436 fi
16437
16438     if test "$sudo_cv___progname" = "yes"; then
16439         $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
16440
16441     else
16442         case " $LIBOBJS " in
16443   *" getprogname.$ac_objext "* ) ;;
16444   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
16445  ;;
16446 esac
16447
16448     fi
16449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
16450 $as_echo "$sudo_cv___progname" >&6; }
16451
16452 fi
16453 done
16454
16455
16456 for ac_func in strsignal
16457 do :
16458   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
16459 if test "x$ac_cv_func_strsignal" = x""yes; then :
16460   cat >>confdefs.h <<_ACEOF
16461 #define HAVE_STRSIGNAL 1
16462 _ACEOF
16463
16464 else
16465
16466     case " $LIBOBJS " in
16467   *" strsignal.$ac_objext "* ) ;;
16468   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
16469  ;;
16470 esac
16471
16472     HAVE_SIGLIST="false"
16473     ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
16474 $ac_includes_default
16475 #include <signal.h>
16476
16477 "
16478 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
16479   ac_have_decl=1
16480 else
16481   ac_have_decl=0
16482 fi
16483
16484 cat >>confdefs.h <<_ACEOF
16485 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16486 _ACEOF
16487 if test $ac_have_decl = 1; then :
16488
16489         HAVE_SIGLIST="true"
16490         break
16491
16492 fi
16493 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
16494 $ac_includes_default
16495 #include <signal.h>
16496
16497 "
16498 if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
16499   ac_have_decl=1
16500 else
16501   ac_have_decl=0
16502 fi
16503
16504 cat >>confdefs.h <<_ACEOF
16505 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
16506 _ACEOF
16507 if test $ac_have_decl = 1; then :
16508
16509         HAVE_SIGLIST="true"
16510         break
16511
16512 fi
16513 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
16514 $ac_includes_default
16515 #include <signal.h>
16516
16517 "
16518 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
16519   ac_have_decl=1
16520 else
16521   ac_have_decl=0
16522 fi
16523
16524 cat >>confdefs.h <<_ACEOF
16525 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16526 _ACEOF
16527 if test $ac_have_decl = 1; then :
16528
16529         HAVE_SIGLIST="true"
16530         break
16531
16532 fi
16533
16534     if test "$HAVE_SIGLIST" != "true"; then
16535         case " $LIBOBJS " in
16536   *" siglist.$ac_objext "* ) ;;
16537   *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
16538  ;;
16539 esac
16540
16541     fi
16542
16543 fi
16544 done
16545
16546
16547 if test ${with_netsvc-"no"} != "no"; then
16548     cat >>confdefs.h <<EOF
16549 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
16550 EOF
16551
16552     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
16553 elif test ${with_nsswitch-"yes"} != "no"; then
16554     cat >>confdefs.h <<EOF
16555 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
16556 EOF
16557
16558     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
16559 fi
16560
16561
16562 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
16563     for auth in $AUTH_EXCL_DEF; do
16564         case $auth in
16565             AIX_AUTH)   with_aixauth=maybe;;
16566             BSD_AUTH)   with_bsdauth=maybe;;
16567             PAM)        with_pam=maybe;;
16568             SIA)        CHECKSIA=true;;
16569         esac
16570     done
16571 fi
16572
16573 if test ${with_pam-"no"} != "no"; then
16574                 case "$LIBS" in
16575         *-ldl*) SUDO_LIBS="${SUDO_LIBS} -lpam"
16576                 ;;
16577         *)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
16578 $as_echo_n "checking for main in -ldl... " >&6; }
16579 if test "${ac_cv_lib_dl_main+set}" = set; then :
16580   $as_echo_n "(cached) " >&6
16581 else
16582   ac_check_lib_save_LIBS=$LIBS
16583 LIBS="-ldl  $LIBS"
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h.  */
16586
16587
16588 int
16589 main ()
16590 {
16591 return main ();
16592   ;
16593   return 0;
16594 }
16595 _ACEOF
16596 if ac_fn_c_try_link "$LINENO"; then :
16597   ac_cv_lib_dl_main=yes
16598 else
16599   ac_cv_lib_dl_main=no
16600 fi
16601 rm -f core conftest.err conftest.$ac_objext \
16602     conftest$ac_exeext conftest.$ac_ext
16603 LIBS=$ac_check_lib_save_LIBS
16604 fi
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
16606 $as_echo "$ac_cv_lib_dl_main" >&6; }
16607 if test "x$ac_cv_lib_dl_main" = x""yes; then :
16608   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
16609 else
16610   SUDO_LIBS="${SUDO_LIBS} -lpam"
16611 fi
16612
16613                 ac_cv_lib_dl=ac_cv_lib_dl_main
16614                 ;;
16615     esac
16616
16617                     for ac_header in security/pam_appl.h pam/pam_appl.h
16618 do :
16619   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16620 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16621 eval as_val=\$$as_ac_Header
16622    if test "x$as_val" = x""yes; then :
16623   cat >>confdefs.h <<_ACEOF
16624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16625 _ACEOF
16626  with_pam=yes; break
16627 fi
16628
16629 done
16630
16631     if test "$with_pam" = "yes"; then
16632         $as_echo "#define HAVE_PAM 1" >>confdefs.h
16633
16634         AUTH_OBJS="$AUTH_OBJS pam.o";
16635         AUTH_EXCL=PAM
16636
16637
16638 # Check whether --with-pam-login was given.
16639 if test "${with_pam_login+set}" = set; then :
16640   withval=$with_pam_login; case $with_pam_login in
16641             yes)        $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
16642
16643                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
16644 $as_echo_n "checking whether to use PAM login... " >&6; }
16645                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16646 $as_echo "yes" >&6; }
16647                         ;;
16648             no)         ;;
16649             *)          as_fn_error "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
16650                         ;;
16651         esac
16652 fi
16653
16654
16655         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
16656 $as_echo_n "checking whether to use PAM session support... " >&6; }
16657         # Check whether --enable-pam_session was given.
16658 if test "${enable_pam_session+set}" = set; then :
16659   enableval=$enable_pam_session;  case "$enableval" in
16660                 yes)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16661 $as_echo "yes" >&6; }
16662                         ;;
16663                 no)             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16664 $as_echo "no" >&6; }
16665
16666 $as_echo "#define NO_PAM_SESSION /**/" >>confdefs.h
16667
16668                             ;;
16669                 *)              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16671                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
16672 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
16673                             ;;
16674             esac
16675 else
16676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16677 $as_echo "yes" >&6; }
16678 fi
16679
16680
16681         case $host in
16682             *-*-linux*|*-*-solaris*)
16683                     # dgettext() may be defined to dgettext_libintl in the
16684                     # header file, so first check that it links w/ additional
16685                     # libs, then try with -lintl
16686                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h.  */
16688 #include <libintl.h>
16689 int
16690 main ()
16691 {
16692 (void)dgettext((char *)0, (char *)0);
16693   ;
16694   return 0;
16695 }
16696 _ACEOF
16697 if ac_fn_c_try_link "$LINENO"; then :
16698   $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16699
16700 else
16701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16702 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16703 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16704   $as_echo_n "(cached) " >&6
16705 else
16706   ac_check_lib_save_LIBS=$LIBS
16707 LIBS="-lintl  $LIBS"
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h.  */
16710
16711 /* Override any GCC internal prototype to avoid an error.
16712    Use char because int might match the return type of a GCC
16713    builtin and then its argument prototype would still apply.  */
16714 #ifdef __cplusplus
16715 extern "C"
16716 #endif
16717 char dgettext ();
16718 int
16719 main ()
16720 {
16721 return dgettext ();
16722   ;
16723   return 0;
16724 }
16725 _ACEOF
16726 if ac_fn_c_try_link "$LINENO"; then :
16727   ac_cv_lib_intl_dgettext=yes
16728 else
16729   ac_cv_lib_intl_dgettext=no
16730 fi
16731 rm -f core conftest.err conftest.$ac_objext \
16732     conftest$ac_exeext conftest.$ac_ext
16733 LIBS=$ac_check_lib_save_LIBS
16734 fi
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16736 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16737 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
16738   LIBS="${LIBS} -lintl"
16739                         $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16740
16741 fi
16742
16743 fi
16744 rm -f core conftest.err conftest.$ac_objext \
16745     conftest$ac_exeext conftest.$ac_ext
16746                     ;;
16747         esac
16748     fi
16749 fi
16750
16751 if test ${with_aixauth-'no'} != "no"; then
16752     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
16753         { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
16754 $as_echo "$as_me: using AIX general authentication" >&6;}
16755         $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
16756
16757         AUTH_OBJS="$AUTH_OBJS aix_auth.o";
16758         SUDO_LIBS="${SUDO_LIBS} -ls"
16759         AUTH_EXCL=AIX_AUTH
16760     fi
16761 fi
16762
16763 if test ${with_bsdauth-'no'} != "no"; then
16764     ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
16765 if test "x$ac_cv_header_bsd_auth_h" = x""yes; then :
16766   $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
16767
16768         AUTH_OBJS="$AUTH_OBJS bsdauth.o"
16769         BSDAUTH_USAGE='[-a auth_type] '
16770         AUTH_EXCL=BSD_AUTH; BAMAN=1
16771 else
16772   as_fn_error "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
16773 fi
16774
16775
16776 fi
16777
16778 if test ${CHECKSIA-'false'} = "true"; then
16779     for ac_func in sia_ses_init
16780 do :
16781   ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
16782 if test "x$ac_cv_func_sia_ses_init" = x""yes; then :
16783   cat >>confdefs.h <<_ACEOF
16784 #define HAVE_SIA_SES_INIT 1
16785 _ACEOF
16786  found=true
16787 else
16788   found=false
16789 fi
16790 done
16791
16792     if test "$found" = "true"; then
16793         AUTH_EXCL=SIA
16794         AUTH_OBJS="$AUTH_OBJS sia.o"
16795     fi
16796 fi
16797
16798 if test ${with_fwtk-'no'} != "no"; then
16799     if test "$with_fwtk" != "yes"; then
16800
16801     if test X"$with_rpath" = X"yes"; then
16802         case "$host" in
16803             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
16804                         ;;
16805             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
16806                         ;;
16807         esac
16808     else
16809         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
16810     fi
16811     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16812         blibpath_add="${blibpath_add}:${with_fwtk}"
16813     fi
16814
16815         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
16816         with_fwtk=yes
16817     fi
16818     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
16819     AUTH_OBJS="$AUTH_OBJS fwtk.o"
16820 fi
16821
16822 if test ${with_SecurID-'no'} != "no"; then
16823     if test "$with_SecurID" != "yes"; then
16824         :
16825     elif test -d /usr/ace/examples; then
16826         with_SecurID=/usr/ace/examples
16827     else
16828         with_SecurID=/usr/ace
16829     fi
16830     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
16831     _LDFLAGS="${LDFLAGS}"
16832
16833     if test X"$with_rpath" = X"yes"; then
16834         case "$host" in
16835             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16836                         ;;
16837             *)          LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16838                         ;;
16839         esac
16840     else
16841         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
16842     fi
16843     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16844         blibpath_add="${blibpath_add}:${with_SecurID}"
16845     fi
16846
16847     #
16848     # Determine whether to use the new or old SecurID API
16849     #
16850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
16851 $as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
16852 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then :
16853   $as_echo_n "(cached) " >&6
16854 else
16855   ac_check_lib_save_LIBS=$LIBS
16856 LIBS="-laceclnt
16857             -lpthread
16858
16859      $LIBS"
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h.  */
16862
16863 /* Override any GCC internal prototype to avoid an error.
16864    Use char because int might match the return type of a GCC
16865    builtin and then its argument prototype would still apply.  */
16866 #ifdef __cplusplus
16867 extern "C"
16868 #endif
16869 char SD_Init ();
16870 int
16871 main ()
16872 {
16873 return SD_Init ();
16874   ;
16875   return 0;
16876 }
16877 _ACEOF
16878 if ac_fn_c_try_link "$LINENO"; then :
16879   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
16880 else
16881   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
16882 fi
16883 rm -f core conftest.err conftest.$ac_objext \
16884     conftest$ac_exeext conftest.$ac_ext
16885 LIBS=$ac_check_lib_save_LIBS
16886 fi
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
16888 $as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
16889 if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = x""yes; then :
16890
16891             AUTH_OBJS="$AUTH_OBJS securid5.o";
16892             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
16893
16894
16895
16896     if test X"$with_rpath" = X"yes"; then
16897         case "$host" in
16898             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16899                         ;;
16900             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16901                         ;;
16902         esac
16903     else
16904         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
16905     fi
16906     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16907         blibpath_add="${blibpath_add}:${with_SecurID}"
16908     fi
16909
16910
16911 else
16912
16913             AUTH_OBJS="$AUTH_OBJS securid.o";
16914             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
16915
16916 fi
16917
16918     LDFLAGS="${_LDFLAGS}"
16919 fi
16920
16921
16922 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
16923     for auth in $AUTH_DEF; do
16924         case $auth in
16925             passwd)     : ${with_passwd='maybe'};;
16926         esac
16927     done
16928 fi
16929
16930 if test ${with_kerb4-'no'} != "no"; then
16931     $as_echo "#define HAVE_KERB4 1" >>confdefs.h
16932
16933                 O_LDFLAGS="$LDFLAGS"
16934     if test "$with_kerb4" = "yes"; then
16935         found=no
16936         O_CPPFLAGS="$CPPFLAGS"
16937         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
16938             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
16939             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 /* end confdefs.h.  */
16941 #include <krb.h>
16942 _ACEOF
16943 if ac_fn_c_try_cpp "$LINENO"; then :
16944   found=yes; break
16945 fi
16946 rm -f conftest.err conftest.$ac_ext
16947         done
16948         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
16949     else
16950
16951     if test X"$with_rpath" = X"yes"; then
16952         case "$host" in
16953             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16954                         ;;
16955             *)          LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16956                         ;;
16957         esac
16958     else
16959         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
16960     fi
16961     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16962         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16963     fi
16964
16965
16966     if test X"$with_rpath" = X"yes"; then
16967         case "$host" in
16968             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16969                         ;;
16970             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16971                         ;;
16972         esac
16973     else
16974         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
16975     fi
16976     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16977         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16978     fi
16979
16980         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
16981         ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16982 if test "x$ac_cv_header_krb_h" = x""yes; then :
16983   found=yes
16984 else
16985   found=no
16986 fi
16987
16988
16989     fi
16990     if test X"$found" = X"no"; then
16991         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
16992 $as_echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
16993     fi
16994
16995                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16996 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16997 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
16998   $as_echo_n "(cached) " >&6
16999 else
17000   ac_check_lib_save_LIBS=$LIBS
17001 LIBS="-ldes  $LIBS"
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h.  */
17004
17005 /* Override any GCC internal prototype to avoid an error.
17006    Use char because int might match the return type of a GCC
17007    builtin and then its argument prototype would still apply.  */
17008 #ifdef __cplusplus
17009 extern "C"
17010 #endif
17011 char des_cbc_encrypt ();
17012 int
17013 main ()
17014 {
17015 return des_cbc_encrypt ();
17016   ;
17017   return 0;
17018 }
17019 _ACEOF
17020 if ac_fn_c_try_link "$LINENO"; then :
17021   ac_cv_lib_des_des_cbc_encrypt=yes
17022 else
17023   ac_cv_lib_des_des_cbc_encrypt=no
17024 fi
17025 rm -f core conftest.err conftest.$ac_objext \
17026     conftest$ac_exeext conftest.$ac_ext
17027 LIBS=$ac_check_lib_save_LIBS
17028 fi
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17030 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17031 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
17032   K4LIBS="-ldes"
17033 else
17034
17035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17036 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17037 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
17038   $as_echo_n "(cached) " >&6
17039 else
17040   ac_check_lib_save_LIBS=$LIBS
17041 LIBS="-ldes425  $LIBS"
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h.  */
17044
17045 /* Override any GCC internal prototype to avoid an error.
17046    Use char because int might match the return type of a GCC
17047    builtin and then its argument prototype would still apply.  */
17048 #ifdef __cplusplus
17049 extern "C"
17050 #endif
17051 char des_cbc_encrypt ();
17052 int
17053 main ()
17054 {
17055 return des_cbc_encrypt ();
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 if ac_fn_c_try_link "$LINENO"; then :
17061   ac_cv_lib_des425_des_cbc_encrypt=yes
17062 else
17063   ac_cv_lib_des425_des_cbc_encrypt=no
17064 fi
17065 rm -f core conftest.err conftest.$ac_objext \
17066     conftest$ac_exeext conftest.$ac_ext
17067 LIBS=$ac_check_lib_save_LIBS
17068 fi
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17070 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17071 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
17072   K4LIBS="-ldes425"
17073 else
17074   K4LIBS=""
17075 fi
17076
17077
17078 fi
17079
17080                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
17081 $as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
17082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h.  */
17084 #include <krb.h>
17085 int
17086 main ()
17087 {
17088 const char *tmp = krb4_version;
17089   ;
17090   return 0;
17091 }
17092 _ACEOF
17093 if ac_fn_c_try_compile "$LINENO"; then :
17094
17095             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17096 $as_echo "yes" >&6; }
17097             K4LIBS="${K4LIBS} -lcom_err"
17098             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
17099 $as_echo_n "checking for main in -lroken... " >&6; }
17100 if test "${ac_cv_lib_roken_main+set}" = set; then :
17101   $as_echo_n "(cached) " >&6
17102 else
17103   ac_check_lib_save_LIBS=$LIBS
17104 LIBS="-lroken  $LIBS"
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h.  */
17107
17108
17109 int
17110 main ()
17111 {
17112 return main ();
17113   ;
17114   return 0;
17115 }
17116 _ACEOF
17117 if ac_fn_c_try_link "$LINENO"; then :
17118   ac_cv_lib_roken_main=yes
17119 else
17120   ac_cv_lib_roken_main=no
17121 fi
17122 rm -f core conftest.err conftest.$ac_objext \
17123     conftest$ac_exeext conftest.$ac_ext
17124 LIBS=$ac_check_lib_save_LIBS
17125 fi
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
17127 $as_echo "$ac_cv_lib_roken_main" >&6; }
17128 if test "x$ac_cv_lib_roken_main" = x""yes; then :
17129   K4LIBS="${K4LIBS} -lroken"
17130 fi
17131
17132
17133 else
17134
17135             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17136 $as_echo "no" >&6; }
17137
17138
17139 fi
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141                 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
17143 $as_echo_n "checking for main in -lkrb... " >&6; }
17144 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17145   $as_echo_n "(cached) " >&6
17146 else
17147   ac_check_lib_save_LIBS=$LIBS
17148 LIBS="-lkrb $K4LIBS $LIBS"
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h.  */
17151
17152
17153 int
17154 main ()
17155 {
17156 return main ();
17157   ;
17158   return 0;
17159 }
17160 _ACEOF
17161 if ac_fn_c_try_link "$LINENO"; then :
17162   eval "$as_ac_Lib=yes"
17163 else
17164   eval "$as_ac_Lib=no"
17165 fi
17166 rm -f core conftest.err conftest.$ac_objext \
17167     conftest$ac_exeext conftest.$ac_ext
17168 LIBS=$ac_check_lib_save_LIBS
17169 fi
17170 eval ac_res=\$$as_ac_Lib
17171                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17172 $as_echo "$ac_res" >&6; }
17173 eval as_val=\$$as_ac_Lib
17174    if test "x$as_val" = x""yes; then :
17175   K4LIBS="-lkrb $K4LIBS"
17176 else
17177
17178         as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
17180 $as_echo_n "checking for main in -lkrb4... " >&6; }
17181 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17182   $as_echo_n "(cached) " >&6
17183 else
17184   ac_check_lib_save_LIBS=$LIBS
17185 LIBS="-lkrb4 $K4LIBS $LIBS"
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h.  */
17188
17189
17190 int
17191 main ()
17192 {
17193 return main ();
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 if ac_fn_c_try_link "$LINENO"; then :
17199   eval "$as_ac_Lib=yes"
17200 else
17201   eval "$as_ac_Lib=no"
17202 fi
17203 rm -f core conftest.err conftest.$ac_objext \
17204     conftest$ac_exeext conftest.$ac_ext
17205 LIBS=$ac_check_lib_save_LIBS
17206 fi
17207 eval ac_res=\$$as_ac_Lib
17208                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17209 $as_echo "$ac_res" >&6; }
17210 eval as_val=\$$as_ac_Lib
17211    if test "x$as_val" = x""yes; then :
17212   K4LIBS="-lkrb4 $K4LIBS"
17213 else
17214   K4LIBS="-lkrb $K4LIBS"
17215             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
17216 $as_echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
17217
17218 fi
17219
17220
17221 fi
17222
17223     LDFLAGS="$O_LDFLAGS"
17224     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
17225     AUTH_OBJS="$AUTH_OBJS kerb4.o"
17226 fi
17227
17228 if test ${with_kerb5-'no'} != "no"; then
17229     # Extract the first word of "krb5-config", so it can be a program name with args.
17230 set dummy krb5-config; ac_word=$2
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17232 $as_echo_n "checking for $ac_word... " >&6; }
17233 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then :
17234   $as_echo_n "(cached) " >&6
17235 else
17236   if test -n "$KRB5CONFIG"; then
17237   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
17238 else
17239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17240 for as_dir in $PATH
17241 do
17242   IFS=$as_save_IFS
17243   test -z "$as_dir" && as_dir=.
17244     for ac_exec_ext in '' $ac_executable_extensions; do
17245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17246     ac_cv_prog_KRB5CONFIG="yes"
17247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17248     break 2
17249   fi
17250 done
17251   done
17252 IFS=$as_save_IFS
17253
17254   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
17255 fi
17256 fi
17257 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
17258 if test -n "$KRB5CONFIG"; then
17259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
17260 $as_echo "$KRB5CONFIG" >&6; }
17261 else
17262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263 $as_echo "no" >&6; }
17264 fi
17265
17266
17267     if test -n "$KRB5CONFIG"; then
17268         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
17269
17270         AUTH_OBJS="$AUTH_OBJS kerb5.o"
17271         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
17272         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
17273                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17274 $as_echo_n "checking whether we are using Heimdal... " >&6; }
17275         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h.  */
17277 #include <krb5.h>
17278 int
17279 main ()
17280 {
17281 const char *tmp = heimdal_version;
17282   ;
17283   return 0;
17284 }
17285 _ACEOF
17286 if ac_fn_c_try_compile "$LINENO"; then :
17287
17288                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17289 $as_echo "yes" >&6; }
17290                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17291
17292
17293 else
17294
17295                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17296 $as_echo "no" >&6; }
17297
17298
17299 fi
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301     fi
17302 fi
17303 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
17304     $as_echo "#define HAVE_KERB5 1" >>confdefs.h
17305
17306                 if test "$with_kerb5" = "yes"; then
17307         found=no
17308         O_CPPFLAGS="$CPPFLAGS"
17309         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
17310             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
17311             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h.  */
17313 #include <krb5.h>
17314 _ACEOF
17315 if ac_fn_c_try_cpp "$LINENO"; then :
17316   found=yes; break
17317 fi
17318 rm -f conftest.err conftest.$ac_ext
17319         done
17320         if test X"$found" = X"no"; then
17321             CPPFLAGS="$O_CPPFLAGS"
17322             { $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
17323 $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;}
17324         fi
17325     else
17326
17327     if test X"$with_rpath" = X"yes"; then
17328         case "$host" in
17329             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
17330                         ;;
17331             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
17332                         ;;
17333         esac
17334     else
17335         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
17336     fi
17337     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17338         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
17339     fi
17340
17341         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
17342     fi
17343
17344                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17345 $as_echo_n "checking whether we are using Heimdal... " >&6; }
17346     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347 /* end confdefs.h.  */
17348 #include <krb5.h>
17349 int
17350 main ()
17351 {
17352 const char *tmp = heimdal_version;
17353   ;
17354   return 0;
17355 }
17356 _ACEOF
17357 if ac_fn_c_try_compile "$LINENO"; then :
17358
17359             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17360 $as_echo "yes" >&6; }
17361             $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17362
17363             # XXX - need to check whether -lcrypo is needed!
17364             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
17365             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
17366 $as_echo_n "checking for main in -lroken... " >&6; }
17367 if test "${ac_cv_lib_roken_main+set}" = set; then :
17368   $as_echo_n "(cached) " >&6
17369 else
17370   ac_check_lib_save_LIBS=$LIBS
17371 LIBS="-lroken  $LIBS"
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h.  */
17374
17375
17376 int
17377 main ()
17378 {
17379 return main ();
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 if ac_fn_c_try_link "$LINENO"; then :
17385   ac_cv_lib_roken_main=yes
17386 else
17387   ac_cv_lib_roken_main=no
17388 fi
17389 rm -f core conftest.err conftest.$ac_objext \
17390     conftest$ac_exeext conftest.$ac_ext
17391 LIBS=$ac_check_lib_save_LIBS
17392 fi
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
17394 $as_echo "$ac_cv_lib_roken_main" >&6; }
17395 if test "x$ac_cv_lib_roken_main" = x""yes; then :
17396   SUDO_LIBS="${SUDO_LIBS} -lroken"
17397 fi
17398
17399
17400 else
17401
17402             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17403 $as_echo "no" >&6; }
17404             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
17405             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
17406 $as_echo_n "checking for main in -lkrb5support... " >&6; }
17407 if test "${ac_cv_lib_krb5support_main+set}" = set; then :
17408   $as_echo_n "(cached) " >&6
17409 else
17410   ac_check_lib_save_LIBS=$LIBS
17411 LIBS="-lkrb5support  $LIBS"
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h.  */
17414
17415
17416 int
17417 main ()
17418 {
17419 return main ();
17420   ;
17421   return 0;
17422 }
17423 _ACEOF
17424 if ac_fn_c_try_link "$LINENO"; then :
17425   ac_cv_lib_krb5support_main=yes
17426 else
17427   ac_cv_lib_krb5support_main=no
17428 fi
17429 rm -f core conftest.err conftest.$ac_objext \
17430     conftest$ac_exeext conftest.$ac_ext
17431 LIBS=$ac_check_lib_save_LIBS
17432 fi
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
17434 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
17435 if test "x$ac_cv_lib_krb5support_main" = x""yes; then :
17436   SUDO_LIBS="${SUDO_LIBS} -lkrb5support"
17437 fi
17438
17439
17440 fi
17441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17442     AUTH_OBJS="$AUTH_OBJS kerb5.o"
17443     _LIBS="$LIBS"
17444     LIBS="${LIBS} ${SUDO_LIBS}"
17445     for ac_func in krb5_verify_user krb5_init_secure_context
17446 do :
17447   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17448 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17449 eval as_val=\$$as_ac_var
17450    if test "x$as_val" = x""yes; then :
17451   cat >>confdefs.h <<_ACEOF
17452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17453 _ACEOF
17454
17455 fi
17456 done
17457
17458     for ac_func in krb5_get_init_creds_opt_alloc
17459 do :
17460   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
17461 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = x""yes; then :
17462   cat >>confdefs.h <<_ACEOF
17463 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
17464 _ACEOF
17465
17466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
17467 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
17468 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then :
17469   $as_echo_n "(cached) " >&6
17470 else
17471
17472                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h.  */
17474 #include <krb5.h>
17475 int
17476 main ()
17477 {
17478 krb5_get_init_creds_opt_free(NULL, NULL);
17479
17480   ;
17481   return 0;
17482 }
17483 _ACEOF
17484 if ac_fn_c_try_compile "$LINENO"; then :
17485   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
17486 else
17487   sudo_cv_krb5_get_init_creds_opt_free_two_args=no
17488
17489 fi
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17491
17492
17493 fi
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
17495 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
17496
17497 fi
17498 done
17499
17500     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
17501         $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
17502
17503     fi
17504     LIBS="$_LIBS"
17505 fi
17506
17507 if test ${with_AFS-'no'} = "yes"; then
17508
17509     # looks like the "standard" place for AFS libs is /usr/afsws/lib
17510     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
17511     for i in $AFSLIBDIRS; do
17512         if test -d ${i}; then
17513
17514     if test X"$with_rpath" = X"yes"; then
17515         case "$host" in
17516             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,+b,$i"
17517                         ;;
17518             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,-R$i"
17519                         ;;
17520         esac
17521     else
17522         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
17523     fi
17524     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17525         blibpath_add="${blibpath_add}:$i"
17526     fi
17527
17528             FOUND_AFSLIBDIR=true
17529         fi
17530     done
17531     if test -z "$FOUND_AFSLIBDIR"; then
17532         { $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 SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5
17533 $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 SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
17534     fi
17535
17536     # Order is important here.  Note that we build AFS_LIBS from right to left
17537     # since AFS_LIBS may be initialized with BSD compat libs that must go last
17538     AFS_LIBS="-laudit ${AFS_LIBS}"
17539     for i in $AFSLIBDIRS; do
17540         if test -f ${i}/util.a; then
17541             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
17542             FOUND_UTIL_A=true
17543             break;
17544         fi
17545     done
17546     if test -z "$FOUND_UTIL_A"; then
17547         AFS_LIBS="-lutil ${AFS_LIBS}"
17548     fi
17549     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
17550
17551     # AFS includes may live in /usr/include on some machines...
17552     for i in /usr/afsws/include; do
17553         if test -d ${i}; then
17554             CPPFLAGS="${CPPFLAGS} -I${i}"
17555             FOUND_AFSINCDIR=true
17556         fi
17557     done
17558
17559     if test -z "$FOUND_AFSLIBDIR"; then
17560         { $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
17561 $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;}
17562     fi
17563
17564     AUTH_OBJS="$AUTH_OBJS afs.o"
17565 fi
17566
17567 if test ${with_DCE-'no'} = "yes"; then
17568     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
17569     SUDO_LIBS="${SUDO_LIBS} -ldce"
17570     AUTH_OBJS="$AUTH_OBJS dce.o"
17571 fi
17572
17573 if test "${with_skey-'no'}" = "yes"; then
17574     O_LDFLAGS="$LDFLAGS"
17575     if test "$with_skey" != "yes"; then
17576         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
17577
17578     if test X"$with_rpath" = X"yes"; then
17579         case "$host" in
17580             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17581                         ;;
17582             *)          LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17583                         ;;
17584         esac
17585     else
17586         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
17587     fi
17588     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17589         blibpath_add="${blibpath_add}:${with_skey}/lib"
17590     fi
17591
17592
17593     if test X"$with_rpath" = X"yes"; then
17594         case "$host" in
17595             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17596                         ;;
17597             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17598                         ;;
17599         esac
17600     else
17601         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
17602     fi
17603     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17604         blibpath_add="${blibpath_add}:${with_skey}/lib"
17605     fi
17606
17607         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h.  */
17609 #include <skey.h>
17610 _ACEOF
17611 if ac_fn_c_try_cpp "$LINENO"; then :
17612   found=yes
17613 else
17614   found=no
17615 fi
17616 rm -f conftest.err conftest.$ac_ext
17617     else
17618         found=no
17619         O_CPPFLAGS="$CPPFLAGS"
17620         for dir in "" "/usr/local" "/usr/contrib"; do
17621             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17622             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h.  */
17624 #include <skey.h>
17625 _ACEOF
17626 if ac_fn_c_try_cpp "$LINENO"; then :
17627   found=yes; break
17628 fi
17629 rm -f conftest.err conftest.$ac_ext
17630         done
17631         if test "$found" = "no" -o -z "$dir"; then
17632             CPPFLAGS="$O_CPPFLAGS"
17633         else
17634
17635     if test X"$with_rpath" = X"yes"; then
17636         case "$host" in
17637             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17638                         ;;
17639             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17640                         ;;
17641         esac
17642     else
17643         LDFLAGS="${LDFLAGS} -L${dir}/lib"
17644     fi
17645     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17646         blibpath_add="${blibpath_add}:${dir}/lib"
17647     fi
17648
17649
17650     if test X"$with_rpath" = X"yes"; then
17651         case "$host" in
17652             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17653                         ;;
17654             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17655                         ;;
17656         esac
17657     else
17658         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17659     fi
17660     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17661         blibpath_add="${blibpath_add}:${dir}/lib"
17662     fi
17663
17664         fi
17665     fi
17666     if test "$found" = "no"; then
17667         { $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
17668 $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;}
17669     fi
17670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
17671 $as_echo_n "checking for main in -lskey... " >&6; }
17672 if test "${ac_cv_lib_skey_main+set}" = set; then :
17673   $as_echo_n "(cached) " >&6
17674 else
17675   ac_check_lib_save_LIBS=$LIBS
17676 LIBS="-lskey  $LIBS"
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h.  */
17679
17680
17681 int
17682 main ()
17683 {
17684 return main ();
17685   ;
17686   return 0;
17687 }
17688 _ACEOF
17689 if ac_fn_c_try_link "$LINENO"; then :
17690   ac_cv_lib_skey_main=yes
17691 else
17692   ac_cv_lib_skey_main=no
17693 fi
17694 rm -f core conftest.err conftest.$ac_objext \
17695     conftest$ac_exeext conftest.$ac_ext
17696 LIBS=$ac_check_lib_save_LIBS
17697 fi
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
17699 $as_echo "$ac_cv_lib_skey_main" >&6; }
17700 if test "x$ac_cv_lib_skey_main" = x""yes; then :
17701   found=yes
17702 else
17703   { $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 SUDO_LDFLAGS" >&5
17704 $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 SUDO_LDFLAGS" >&2;}
17705 fi
17706
17707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
17708 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
17709 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then :
17710   $as_echo_n "(cached) " >&6
17711 else
17712   ac_check_lib_save_LIBS=$LIBS
17713 LIBS="-lskey  $LIBS"
17714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17715 /* end confdefs.h.  */
17716
17717 /* Override any GCC internal prototype to avoid an error.
17718    Use char because int might match the return type of a GCC
17719    builtin and then its argument prototype would still apply.  */
17720 #ifdef __cplusplus
17721 extern "C"
17722 #endif
17723 char skeyaccess ();
17724 int
17725 main ()
17726 {
17727 return skeyaccess ();
17728   ;
17729   return 0;
17730 }
17731 _ACEOF
17732 if ac_fn_c_try_link "$LINENO"; then :
17733   ac_cv_lib_skey_skeyaccess=yes
17734 else
17735   ac_cv_lib_skey_skeyaccess=no
17736 fi
17737 rm -f core conftest.err conftest.$ac_objext \
17738     conftest$ac_exeext conftest.$ac_ext
17739 LIBS=$ac_check_lib_save_LIBS
17740 fi
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
17742 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
17743 if test "x$ac_cv_lib_skey_skeyaccess" = x""yes; then :
17744   $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
17745
17746 fi
17747
17748     LDFLAGS="$O_LDFLAGS"
17749     SUDO_LIBS="${SUDO_LIBS} -lskey"
17750     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17751 fi
17752
17753 if test "${with_opie-'no'}" = "yes"; then
17754     O_LDFLAGS="$LDFLAGS"
17755     if test "$with_opie" != "yes"; then
17756         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
17757
17758     if test X"$with_rpath" = X"yes"; then
17759         case "$host" in
17760             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17761                         ;;
17762             *)          LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17763                         ;;
17764         esac
17765     else
17766         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
17767     fi
17768     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17769         blibpath_add="${blibpath_add}:${with_opie}/lib"
17770     fi
17771
17772
17773     if test X"$with_rpath" = X"yes"; then
17774         case "$host" in
17775             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17776                         ;;
17777             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17778                         ;;
17779         esac
17780     else
17781         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
17782     fi
17783     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17784         blibpath_add="${blibpath_add}:${with_opie}/lib"
17785     fi
17786
17787         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h.  */
17789 #include <opie.h>
17790 _ACEOF
17791 if ac_fn_c_try_cpp "$LINENO"; then :
17792   found=yes
17793 else
17794   found=no
17795 fi
17796 rm -f conftest.err conftest.$ac_ext
17797     else
17798         found=no
17799         O_CPPFLAGS="$CPPFLAGS"
17800         for dir in "" "/usr/local" "/usr/contrib"; do
17801             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17802             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17803 /* end confdefs.h.  */
17804 #include <opie.h>
17805 _ACEOF
17806 if ac_fn_c_try_cpp "$LINENO"; then :
17807   found=yes; break
17808 fi
17809 rm -f conftest.err conftest.$ac_ext
17810         done
17811         if test "$found" = "no" -o -z "$dir"; then
17812             CPPFLAGS="$O_CPPFLAGS"
17813         else
17814
17815     if test X"$with_rpath" = X"yes"; then
17816         case "$host" in
17817             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17818                         ;;
17819             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17820                         ;;
17821         esac
17822     else
17823         LDFLAGS="${LDFLAGS} -L${dir}/lib"
17824     fi
17825     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17826         blibpath_add="${blibpath_add}:${dir}/lib"
17827     fi
17828
17829
17830     if test X"$with_rpath" = X"yes"; then
17831         case "$host" in
17832             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17833                         ;;
17834             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17835                         ;;
17836         esac
17837     else
17838         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17839     fi
17840     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17841         blibpath_add="${blibpath_add}:${dir}/lib"
17842     fi
17843
17844         fi
17845     fi
17846     if test "$found" = "no"; then
17847         { $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
17848 $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;}
17849     fi
17850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
17851 $as_echo_n "checking for main in -lopie... " >&6; }
17852 if test "${ac_cv_lib_opie_main+set}" = set; then :
17853   $as_echo_n "(cached) " >&6
17854 else
17855   ac_check_lib_save_LIBS=$LIBS
17856 LIBS="-lopie  $LIBS"
17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h.  */
17859
17860
17861 int
17862 main ()
17863 {
17864 return main ();
17865   ;
17866   return 0;
17867 }
17868 _ACEOF
17869 if ac_fn_c_try_link "$LINENO"; then :
17870   ac_cv_lib_opie_main=yes
17871 else
17872   ac_cv_lib_opie_main=no
17873 fi
17874 rm -f core conftest.err conftest.$ac_objext \
17875     conftest$ac_exeext conftest.$ac_ext
17876 LIBS=$ac_check_lib_save_LIBS
17877 fi
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
17879 $as_echo "$ac_cv_lib_opie_main" >&6; }
17880 if test "x$ac_cv_lib_opie_main" = x""yes; then :
17881   found=yes
17882 else
17883   { $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 SUDO_LDFLAGS" >&5
17884 $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 SUDO_LDFLAGS" >&2;}
17885 fi
17886
17887     LDFLAGS="$O_LDFLAGS"
17888     SUDO_LIBS="${SUDO_LIBS} -lopie"
17889     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17890 fi
17891
17892 if test ${with_passwd-'no'} != "no"; then
17893                 if test -z "$LIB_CRYPT"; then
17894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
17895 $as_echo_n "checking for library containing crypt... " >&6; }
17896 if test "${ac_cv_search_crypt+set}" = set; then :
17897   $as_echo_n "(cached) " >&6
17898 else
17899   ac_func_search_save_LIBS=$LIBS
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h.  */
17902
17903 /* Override any GCC internal prototype to avoid an error.
17904    Use char because int might match the return type of a GCC
17905    builtin and then its argument prototype would still apply.  */
17906 #ifdef __cplusplus
17907 extern "C"
17908 #endif
17909 char crypt ();
17910 int
17911 main ()
17912 {
17913 return crypt ();
17914   ;
17915   return 0;
17916 }
17917 _ACEOF
17918 for ac_lib in '' crypt crypt_d ufc; do
17919   if test -z "$ac_lib"; then
17920     ac_res="none required"
17921   else
17922     ac_res=-l$ac_lib
17923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17924   fi
17925   if ac_fn_c_try_link "$LINENO"; then :
17926   ac_cv_search_crypt=$ac_res
17927 fi
17928 rm -f core conftest.err conftest.$ac_objext \
17929     conftest$ac_exeext
17930   if test "${ac_cv_search_crypt+set}" = set; then :
17931   break
17932 fi
17933 done
17934 if test "${ac_cv_search_crypt+set}" = set; then :
17935
17936 else
17937   ac_cv_search_crypt=no
17938 fi
17939 rm conftest.$ac_ext
17940 LIBS=$ac_func_search_save_LIBS
17941 fi
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
17943 $as_echo "$ac_cv_search_crypt" >&6; }
17944 ac_res=$ac_cv_search_crypt
17945 if test "$ac_res" != no; then :
17946   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17947   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17948 fi
17949
17950     fi
17951
17952     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
17953         _LIBS="$LIBS"
17954         LIBS="$LIBS $shadow_libs"
17955         found=no
17956         for ac_func in $shadow_funcs
17957 do :
17958   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17959 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17960 eval as_val=\$$as_ac_var
17961    if test "x$as_val" = x""yes; then :
17962   cat >>confdefs.h <<_ACEOF
17963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17964 _ACEOF
17965  found=yes
17966 fi
17967 done
17968
17969         if test "$found" = "yes"; then
17970             SUDO_LIBS="$SUDO_LIBS $shadow_libs"
17971         elif test -n "$shadow_libs_optional"; then
17972             LIBS="$LIBS $shadow_libs_optional"
17973             for ac_func in $shadow_funcs
17974 do :
17975   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17976 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17977 eval as_val=\$$as_ac_var
17978    if test "x$as_val" = x""yes; then :
17979   cat >>confdefs.h <<_ACEOF
17980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17981 _ACEOF
17982  found=yes
17983 fi
17984 done
17985
17986             if test "$found" = "yes"; then
17987                 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
17988             fi
17989         fi
17990         if test "$found" = "yes"; then
17991             case "$shadow_funcs" in
17992                 *getprpwnam*) SECUREWARE=1;;
17993             esac
17994             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
17995         else
17996             LIBS="$_LIBS"
17997         fi
17998         CHECKSHADOW=false
17999     fi
18000     if test "$CHECKSHADOW" = "true"; then
18001         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
18002 $as_echo_n "checking for library containing getspnam... " >&6; }
18003 if test "${ac_cv_search_getspnam+set}" = set; then :
18004   $as_echo_n "(cached) " >&6
18005 else
18006   ac_func_search_save_LIBS=$LIBS
18007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008 /* end confdefs.h.  */
18009
18010 /* Override any GCC internal prototype to avoid an error.
18011    Use char because int might match the return type of a GCC
18012    builtin and then its argument prototype would still apply.  */
18013 #ifdef __cplusplus
18014 extern "C"
18015 #endif
18016 char getspnam ();
18017 int
18018 main ()
18019 {
18020 return getspnam ();
18021   ;
18022   return 0;
18023 }
18024 _ACEOF
18025 for ac_lib in '' gen; do
18026   if test -z "$ac_lib"; then
18027     ac_res="none required"
18028   else
18029     ac_res=-l$ac_lib
18030     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18031   fi
18032   if ac_fn_c_try_link "$LINENO"; then :
18033   ac_cv_search_getspnam=$ac_res
18034 fi
18035 rm -f core conftest.err conftest.$ac_objext \
18036     conftest$ac_exeext
18037   if test "${ac_cv_search_getspnam+set}" = set; then :
18038   break
18039 fi
18040 done
18041 if test "${ac_cv_search_getspnam+set}" = set; then :
18042
18043 else
18044   ac_cv_search_getspnam=no
18045 fi
18046 rm conftest.$ac_ext
18047 LIBS=$ac_func_search_save_LIBS
18048 fi
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
18050 $as_echo "$ac_cv_search_getspnam" >&6; }
18051 ac_res=$ac_cv_search_getspnam
18052 if test "$ac_res" != no; then :
18053   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18054   $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
18055  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
18056 fi
18057
18058     fi
18059     if test "$CHECKSHADOW" = "true"; then
18060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
18061 $as_echo_n "checking for library containing getprpwnam... " >&6; }
18062 if test "${ac_cv_search_getprpwnam+set}" = set; then :
18063   $as_echo_n "(cached) " >&6
18064 else
18065   ac_func_search_save_LIBS=$LIBS
18066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067 /* end confdefs.h.  */
18068
18069 /* Override any GCC internal prototype to avoid an error.
18070    Use char because int might match the return type of a GCC
18071    builtin and then its argument prototype would still apply.  */
18072 #ifdef __cplusplus
18073 extern "C"
18074 #endif
18075 char getprpwnam ();
18076 int
18077 main ()
18078 {
18079 return getprpwnam ();
18080   ;
18081   return 0;
18082 }
18083 _ACEOF
18084 for ac_lib in '' sec security prot; do
18085   if test -z "$ac_lib"; then
18086     ac_res="none required"
18087   else
18088     ac_res=-l$ac_lib
18089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18090   fi
18091   if ac_fn_c_try_link "$LINENO"; then :
18092   ac_cv_search_getprpwnam=$ac_res
18093 fi
18094 rm -f core conftest.err conftest.$ac_objext \
18095     conftest$ac_exeext
18096   if test "${ac_cv_search_getprpwnam+set}" = set; then :
18097   break
18098 fi
18099 done
18100 if test "${ac_cv_search_getprpwnam+set}" = set; then :
18101
18102 else
18103   ac_cv_search_getprpwnam=no
18104 fi
18105 rm conftest.$ac_ext
18106 LIBS=$ac_func_search_save_LIBS
18107 fi
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
18109 $as_echo "$ac_cv_search_getprpwnam" >&6; }
18110 ac_res=$ac_cv_search_getprpwnam
18111 if test "$ac_res" != no; then :
18112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18113   $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
18114  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
18115 fi
18116
18117     fi
18118     if test -n "$SECUREWARE"; then
18119         for ac_func in bigcrypt set_auth_parameters initprivs
18120 do :
18121   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18122 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18123 eval as_val=\$$as_ac_var
18124    if test "x$as_val" = x""yes; then :
18125   cat >>confdefs.h <<_ACEOF
18126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18127 _ACEOF
18128
18129 fi
18130 done
18131
18132         AUTH_OBJS="$AUTH_OBJS secureware.o"
18133     fi
18134 fi
18135
18136 if test ${with_ldap-'no'} != "no"; then
18137     _LDFLAGS="$LDFLAGS"
18138     if test "$with_ldap" != "yes"; then
18139
18140     if test X"$with_rpath" = X"yes"; then
18141         case "$host" in
18142             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
18143                         ;;
18144             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
18145                         ;;
18146         esac
18147     else
18148         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
18149     fi
18150     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
18151         blibpath_add="${blibpath_add}:${with_ldap}/lib"
18152     fi
18153
18154
18155     if test X"$with_rpath" = X"yes"; then
18156         case "$host" in
18157             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
18158                         ;;
18159             *)          LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
18160                         ;;
18161         esac
18162     else
18163         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
18164     fi
18165     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18166         blibpath_add="${blibpath_add}:${with_ldap}/lib"
18167     fi
18168
18169         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
18170         with_ldap=yes
18171     fi
18172     SUDO_OBJS="${SUDO_OBJS} ldap.o"
18173     LDAP=""
18174
18175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
18176 $as_echo_n "checking for LDAP libraries... " >&6; }
18177     LDAP_LIBS=""
18178     _LIBS="$LIBS"
18179     found=no
18180     for l in -lldap -llber '-lssl -lcrypto'; do
18181         LIBS="${LIBS} $l"
18182         LDAP_LIBS="${LDAP_LIBS} $l"
18183         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h.  */
18185 #include <sys/types.h>
18186         #include <lber.h>
18187         #include <ldap.h>
18188 int
18189 main ()
18190 {
18191 (void)ldap_init(0, 0)
18192   ;
18193   return 0;
18194 }
18195 _ACEOF
18196 if ac_fn_c_try_link "$LINENO"; then :
18197   found=yes; break
18198 fi
18199 rm -f core conftest.err conftest.$ac_objext \
18200     conftest$ac_exeext conftest.$ac_ext
18201     done
18202         if test "$found" = "no"; then
18203         LIBS="${_LIBS} -lldap"
18204         LDAP_LIBS="-lldap"
18205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
18206 $as_echo "not found, using -lldap" >&6; }
18207     else
18208         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
18209 $as_echo "$LDAP_LIBS" >&6; }
18210     fi
18211         OLIBS="$LIBS"
18212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
18213 $as_echo_n "checking for library containing ber_set_option... " >&6; }
18214 if test "${ac_cv_search_ber_set_option+set}" = set; then :
18215   $as_echo_n "(cached) " >&6
18216 else
18217   ac_func_search_save_LIBS=$LIBS
18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h.  */
18220
18221 /* Override any GCC internal prototype to avoid an error.
18222    Use char because int might match the return type of a GCC
18223    builtin and then its argument prototype would still apply.  */
18224 #ifdef __cplusplus
18225 extern "C"
18226 #endif
18227 char ber_set_option ();
18228 int
18229 main ()
18230 {
18231 return ber_set_option ();
18232   ;
18233   return 0;
18234 }
18235 _ACEOF
18236 for ac_lib in '' lber; do
18237   if test -z "$ac_lib"; then
18238     ac_res="none required"
18239   else
18240     ac_res=-l$ac_lib
18241     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18242   fi
18243   if ac_fn_c_try_link "$LINENO"; then :
18244   ac_cv_search_ber_set_option=$ac_res
18245 fi
18246 rm -f core conftest.err conftest.$ac_objext \
18247     conftest$ac_exeext
18248   if test "${ac_cv_search_ber_set_option+set}" = set; then :
18249   break
18250 fi
18251 done
18252 if test "${ac_cv_search_ber_set_option+set}" = set; then :
18253
18254 else
18255   ac_cv_search_ber_set_option=no
18256 fi
18257 rm conftest.$ac_ext
18258 LIBS=$ac_func_search_save_LIBS
18259 fi
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
18261 $as_echo "$ac_cv_search_ber_set_option" >&6; }
18262 ac_res=$ac_cv_search_ber_set_option
18263 if test "$ac_res" != no; then :
18264   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18265   found=yes
18266 else
18267   found=no
18268 fi
18269
18270     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
18271         LDAP_LIBS="$LDAP_LIBS -llber"
18272     fi
18273         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
18274 $as_echo_n "checking whether lber.h is needed... " >&6; }
18275     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h.  */
18277 #include <sys/types.h>
18278     #include <ldap.h>
18279 int
18280 main ()
18281 {
18282 (void)ldap_init(0, 0)
18283   ;
18284   return 0;
18285 }
18286 _ACEOF
18287 if ac_fn_c_try_link "$LINENO"; then :
18288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289 $as_echo "no" >&6; }
18290 else
18291
18292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18293 $as_echo "yes" >&6; }
18294     $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
18295
18296 fi
18297 rm -f core conftest.err conftest.$ac_objext \
18298     conftest$ac_exeext conftest.$ac_ext
18299
18300     for ac_header in sasl/sasl.h sasl.h
18301 do :
18302   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18303 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18304 eval as_val=\$$as_ac_Header
18305    if test "x$as_val" = x""yes; then :
18306   cat >>confdefs.h <<_ACEOF
18307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18308 _ACEOF
18309  for ac_func in ldap_sasl_interactive_bind_s
18310 do :
18311   ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
18312 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = x""yes; then :
18313   cat >>confdefs.h <<_ACEOF
18314 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
18315 _ACEOF
18316
18317 fi
18318 done
18319
18320 else
18321   break
18322 fi
18323
18324 done
18325
18326     for ac_header in ldap_ssl.h mps/ldap_ssl.h
18327 do :
18328   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18329 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
18330 "
18331 eval as_val=\$$as_ac_Header
18332    if test "x$as_val" = x""yes; then :
18333   cat >>confdefs.h <<_ACEOF
18334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18335 _ACEOF
18336  break
18337 fi
18338
18339 done
18340
18341     for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
18342 do :
18343   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18344 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18345 eval as_val=\$$as_ac_var
18346    if test "x$as_val" = x""yes; then :
18347   cat >>confdefs.h <<_ACEOF
18348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18349 _ACEOF
18350
18351 fi
18352 done
18353
18354     for ac_func in ldap_search_ext_s ldap_search_st
18355 do :
18356   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18357 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18358 eval as_val=\$$as_ac_var
18359    if test "x$as_val" = x""yes; then :
18360   cat >>confdefs.h <<_ACEOF
18361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18362 _ACEOF
18363  break
18364 fi
18365 done
18366
18367
18368     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
18369         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
18370 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
18371 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then :
18372   $as_echo_n "(cached) " >&6
18373 else
18374   ac_check_lib_save_LIBS=$LIBS
18375 LIBS="-lgssapi  $LIBS"
18376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18377 /* end confdefs.h.  */
18378
18379 /* Override any GCC internal prototype to avoid an error.
18380    Use char because int might match the return type of a GCC
18381    builtin and then its argument prototype would still apply.  */
18382 #ifdef __cplusplus
18383 extern "C"
18384 #endif
18385 char gss_krb5_ccache_name ();
18386 int
18387 main ()
18388 {
18389 return gss_krb5_ccache_name ();
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 if ac_fn_c_try_link "$LINENO"; then :
18395   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
18396 else
18397   ac_cv_lib_gssapi_gss_krb5_ccache_name=no
18398 fi
18399 rm -f core conftest.err conftest.$ac_objext \
18400     conftest$ac_exeext conftest.$ac_ext
18401 LIBS=$ac_check_lib_save_LIBS
18402 fi
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
18404 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
18405 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = x""yes; then :
18406   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18407
18408             LDAP_LIBS="${LDAP_LIBS} -lgssapi"
18409 else
18410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
18411 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
18412 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then :
18413   $as_echo_n "(cached) " >&6
18414 else
18415   ac_check_lib_save_LIBS=$LIBS
18416 LIBS="-lgssapi_krb5  $LIBS"
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h.  */
18419
18420 /* Override any GCC internal prototype to avoid an error.
18421    Use char because int might match the return type of a GCC
18422    builtin and then its argument prototype would still apply.  */
18423 #ifdef __cplusplus
18424 extern "C"
18425 #endif
18426 char gss_krb5_ccache_name ();
18427 int
18428 main ()
18429 {
18430 return gss_krb5_ccache_name ();
18431   ;
18432   return 0;
18433 }
18434 _ACEOF
18435 if ac_fn_c_try_link "$LINENO"; then :
18436   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
18437 else
18438   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
18439 fi
18440 rm -f core conftest.err conftest.$ac_objext \
18441     conftest$ac_exeext conftest.$ac_ext
18442 LIBS=$ac_check_lib_save_LIBS
18443 fi
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
18445 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
18446 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = x""yes; then :
18447   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18448
18449                 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
18450 fi
18451
18452
18453 fi
18454
18455
18456         # gssapi headers may be separate or part of Kerberos V
18457         found=no
18458         O_CPPFLAGS="$CPPFLAGS"
18459         for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
18460             test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18461             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h.  */
18463 #include <gssapi/gssapi.h>
18464 _ACEOF
18465 if ac_fn_c_try_cpp "$LINENO"; then :
18466   found="gssapi/gssapi.h"; break
18467 else
18468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469 /* end confdefs.h.  */
18470 #include <gssapi.h>
18471 _ACEOF
18472 if ac_fn_c_try_cpp "$LINENO"; then :
18473   found="gssapi.h"; break
18474 fi
18475 rm -f conftest.err conftest.$ac_ext
18476 fi
18477 rm -f conftest.err conftest.$ac_ext
18478         done
18479         if test X"$found" != X"no"; then
18480             for ac_header in $found
18481 do :
18482   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18483 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18484 eval as_val=\$$as_ac_Header
18485    if test "x$as_val" = x""yes; then :
18486   cat >>confdefs.h <<_ACEOF
18487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18488 _ACEOF
18489
18490 fi
18491
18492 done
18493
18494             if test X"$found" = X"gssapi/gssapi.h"; then
18495                 for ac_header in gssapi/gssapi_krb5.h
18496 do :
18497   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
18498 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = x""yes; then :
18499   cat >>confdefs.h <<_ACEOF
18500 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
18501 _ACEOF
18502
18503 fi
18504
18505 done
18506
18507             fi
18508         else
18509             CPPFLAGS="$O_CPPFLAGS"
18510             { $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
18511 $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;}
18512         fi
18513     fi
18514
18515     SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
18516     LIBS="$_LIBS"
18517     LDFLAGS="$_LDFLAGS"
18518 fi
18519
18520 if test X"$LIBVAS_RPATH" != X""; then
18521     if test -n "$blibpath"; then
18522         blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
18523     else
18524         case "$host" in
18525             *-*-hpux*)  LDFLAGS="$LDFLAGS -Wl,+b,$LIBVAS_RPATH"
18526                         ;;
18527             *)          LDFLAGS="$LDFLAGS -Wl,-R$LIBVAS_RPATH"
18528                         ;;
18529         esac
18530     fi
18531 fi
18532
18533 if test -n "$blibpath"; then
18534     if test -n "$blibpath_add"; then
18535         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
18536     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
18537         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
18538     fi
18539 fi
18540
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
18542 $as_echo_n "checking for log file location... " >&6; }
18543 if test -n "$with_logpath"; then
18544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
18545 $as_echo "$with_logpath" >&6; }
18546     cat >>confdefs.h <<EOF
18547 #define _PATH_SUDO_LOGFILE "$with_logpath"
18548 EOF
18549
18550 elif test -d "/var/log"; then
18551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
18552 $as_echo "/var/log/sudo.log" >&6; }
18553     cat >>confdefs.h <<\EOF
18554 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
18555 EOF
18556
18557 elif test -d "/var/adm"; then
18558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
18559 $as_echo "/var/adm/sudo.log" >&6; }
18560     cat >>confdefs.h <<\EOF
18561 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
18562 EOF
18563
18564 elif test -d "/usr/adm"; then
18565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
18566 $as_echo "/usr/adm/sudo.log" >&6; }
18567     cat >>confdefs.h <<\EOF
18568 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
18569 EOF
18570
18571 else
18572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
18573 $as_echo "unknown" >&6; }
18574 fi
18575
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
18577 $as_echo_n "checking for timestamp file location... " >&6; }
18578 timedir="$with_timedir"
18579 if test -z "$timedir"; then
18580     for d in /var/db /var/lib /var/adm /usr/adm; do
18581         if test -d "$d"; then
18582             timedir="$d/sudo"
18583             break
18584         fi
18585     done
18586 fi
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
18588 $as_echo "$timedir" >&6; }
18589 cat >>confdefs.h <<EOF
18590 #define _PATH_SUDO_TIMEDIR "$timedir"
18591 EOF
18592
18593
18594
18595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
18596 $as_echo_n "checking for I/O log dir location... " >&6; }
18597     if test "${with_iologdir-yes}" != "yes"; then
18598         iolog_dir="$with_iologdir"
18599     elif test -d "/var/log"; then
18600         iolog_dir="/var/log/sudo-io"
18601     elif test -d "/var/adm"; then
18602         iolog_dir="/var/adm/sudo-io"
18603     else
18604         iolog_dir="/usr/adm/sudo-io"
18605     fi
18606     if test "${with_iologdir}" != "no"; then
18607         cat >>confdefs.h <<EOF
18608 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
18609 EOF
18610
18611     fi
18612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
18613 $as_echo "$iolog_dir" >&6; }
18614
18615
18616 if test "${with_iologdir-yes}" != "no"; then
18617     # Require POSIX job control for I/O log support
18618     for ac_func in tcsetpgrp
18619 do :
18620   ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
18621 if test "x$ac_cv_func_tcsetpgrp" = x""yes; then :
18622   cat >>confdefs.h <<_ACEOF
18623 #define HAVE_TCSETPGRP 1
18624 _ACEOF
18625
18626         SUDO_OBJS="${SUDO_OBJS} exec_pty.o get_pty.o iolog.o"
18627         PROGS="$PROGS sudoreplay"
18628         REPLAY=""
18629
18630         # Check whether --enable-zlib was given.
18631 if test "${enable_zlib+set}" = set; then :
18632   enableval=$enable_zlib;
18633 fi
18634
18635         case ${enable_zlib-"yes"} in
18636             yes)
18637                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18638 $as_echo_n "checking for gzdopen in -lz... " >&6; }
18639 if test "${ac_cv_lib_z_gzdopen+set}" = set; then :
18640   $as_echo_n "(cached) " >&6
18641 else
18642   ac_check_lib_save_LIBS=$LIBS
18643 LIBS="-lz  $LIBS"
18644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645 /* end confdefs.h.  */
18646
18647 /* Override any GCC internal prototype to avoid an error.
18648    Use char because int might match the return type of a GCC
18649    builtin and then its argument prototype would still apply.  */
18650 #ifdef __cplusplus
18651 extern "C"
18652 #endif
18653 char gzdopen ();
18654 int
18655 main ()
18656 {
18657 return gzdopen ();
18658   ;
18659   return 0;
18660 }
18661 _ACEOF
18662 if ac_fn_c_try_link "$LINENO"; then :
18663   ac_cv_lib_z_gzdopen=yes
18664 else
18665   ac_cv_lib_z_gzdopen=no
18666 fi
18667 rm -f core conftest.err conftest.$ac_objext \
18668     conftest$ac_exeext conftest.$ac_ext
18669 LIBS=$ac_check_lib_save_LIBS
18670 fi
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18672 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18673 if test "x$ac_cv_lib_z_gzdopen" = x""yes; then :
18674
18675                     for ac_header in zlib.h
18676 do :
18677   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18678 if test "x$ac_cv_header_zlib_h" = x""yes; then :
18679   cat >>confdefs.h <<_ACEOF
18680 #define HAVE_ZLIB_H 1
18681 _ACEOF
18682  ZLIB="-lz"
18683 else
18684   enable_zlib=builtin
18685 fi
18686
18687 done
18688
18689
18690 fi
18691
18692                 ;;
18693             no)
18694                 ;;
18695             system)
18696                 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18697
18698                 ZLIB="-lz"
18699                 ;;
18700             builtin)
18701                 # handled below
18702                 ;;
18703             *)
18704                 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18705
18706                 CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
18707
18708     if test X"$with_rpath" = X"yes"; then
18709         case "$host" in
18710             *-*-hpux*)  ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
18711                         ;;
18712             *)          ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
18713                         ;;
18714         esac
18715     else
18716         ZLIB="${ZLIB} -L$enable_zlib/lib"
18717     fi
18718     if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
18719         blibpath_add="${blibpath_add}:$enable_zlib/lib"
18720     fi
18721
18722                 ZLIB="${ZLIB} -lz"
18723                 ;;
18724         esac
18725         if test X"$enable_zlib" = X"builtin"; then
18726             $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18727
18728             CPPFLAGS="${CPPFLAGS}"' -I$(srcdir)/zlib'
18729             ZLIB="${ZLIB} libz.a"
18730             ZLIB_DEP=libz.a
18731         fi
18732
18733 else
18734
18735         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&5
18736 $as_echo "$as_me: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&2;}
18737         with_iologdir=no
18738
18739 fi
18740 done
18741
18742 fi
18743
18744 case "$with_passwd" in
18745 yes|maybe)
18746     AUTH_OBJS="$AUTH_OBJS getspwuid.o passwd.o"
18747     ;;
18748 *)
18749     $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
18750
18751     if test -z "$AUTH_OBJS"; then
18752         as_fn_error "no authentication methods defined." "$LINENO" 5
18753     fi
18754     ;;
18755 esac
18756 AUTH_OBJS=${AUTH_OBJS# }
18757 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.o//g' -e 's/getspwuid *//'`
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
18759 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
18760
18761 if test -n "$LIBS"; then
18762     L="$LIBS"
18763     LIBS=
18764     for l in ${L}; do
18765         dupe=0
18766         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
18767             test $l = $sl && dupe=1
18768         done
18769         test $dupe = 0 && LIBS="${LIBS} $l"
18770     done
18771 fi
18772
18773 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
18774
18775 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
18776     oexec_prefix="$exec_prefix"
18777     if test "$exec_prefix" = '$(prefix)'; then
18778         if test "$prefix" = "NONE"; then
18779             exec_prefix="$ac_default_prefix"
18780         else
18781             exec_prefix="$prefix"
18782         fi
18783     fi
18784     if test X"$with_noexec" != X"no"; then
18785         PROGS="${PROGS} libsudo_noexec.la"
18786         INSTALL_NOEXEC="install-noexec"
18787
18788         eval noexec_file="$with_noexec"
18789         cat >>confdefs.h <<EOF
18790 #define _PATH_SUDO_NOEXEC "$noexec_file"
18791 EOF
18792
18793     fi
18794     if test X"$with_selinux" != X"no"; then
18795         eval sesh_file="$libexecdir/sesh"
18796         cat >>confdefs.h <<EOF
18797 #define _PATH_SUDO_SESH "$sesh_file"
18798 EOF
18799
18800     fi
18801     exec_prefix="$oexec_prefix"
18802 fi
18803
18804 if test X"$prefix" = X"NONE"; then
18805     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
18806 else
18807     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
18808 fi
18809 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
18810 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
18811 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
18812 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
18813 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
18814 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
18815 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
18816
18817 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h sudoers"
18818
18819 cat >confcache <<\_ACEOF
18820 # This file is a shell script that caches the results of configure
18821 # tests run on this system so they can be shared between configure
18822 # scripts and configure runs, see configure's option --config-cache.
18823 # It is not useful on other systems.  If it contains results you don't
18824 # want to keep, you may remove or edit it.
18825 #
18826 # config.status only pays attention to the cache file if you give it
18827 # the --recheck option to rerun configure.
18828 #
18829 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18830 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18831 # following values.
18832
18833 _ACEOF
18834
18835 # The following way of writing the cache mishandles newlines in values,
18836 # but we know of no workaround that is simple, portable, and efficient.
18837 # So, we kill variables containing newlines.
18838 # Ultrix sh set writes to stderr and can't be redirected directly,
18839 # and sets the high bit in the cache file unless we assign to the vars.
18840 (
18841   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18842     eval ac_val=\$$ac_var
18843     case $ac_val in #(
18844     *${as_nl}*)
18845       case $ac_var in #(
18846       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18847 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18848       esac
18849       case $ac_var in #(
18850       _ | IFS | as_nl) ;; #(
18851       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18852       *) { eval $ac_var=; unset $ac_var;} ;;
18853       esac ;;
18854     esac
18855   done
18856
18857   (set) 2>&1 |
18858     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18859     *${as_nl}ac_space=\ *)
18860       # `set' does not quote correctly, so add quotes: double-quote
18861       # substitution turns \\\\ into \\, and sed turns \\ into \.
18862       sed -n \
18863         "s/'/'\\\\''/g;
18864           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18865       ;; #(
18866     *)
18867       # `set' quotes correctly as required by POSIX, so do not add quotes.
18868       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18869       ;;
18870     esac |
18871     sort
18872 ) |
18873   sed '
18874      /^ac_cv_env_/b end
18875      t clear
18876      :clear
18877      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18878      t end
18879      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18880      :end' >>confcache
18881 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18882   if test -w "$cache_file"; then
18883     test "x$cache_file" != "x/dev/null" &&
18884       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18885 $as_echo "$as_me: updating cache $cache_file" >&6;}
18886     cat confcache >$cache_file
18887   else
18888     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18889 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18890   fi
18891 fi
18892 rm -f confcache
18893
18894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18895 # Let make expand exec_prefix.
18896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18897
18898 DEFS=-DHAVE_CONFIG_H
18899
18900 ac_libobjs=
18901 ac_ltlibobjs=
18902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18903   # 1. Remove the extension, and $U if already installed.
18904   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18905   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18906   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18907   #    will be set to the directory where LIBOBJS objects are built.
18908   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18909   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18910 done
18911 LIBOBJS=$ac_libobjs
18912
18913 LTLIBOBJS=$ac_ltlibobjs
18914
18915
18916
18917 : ${CONFIG_STATUS=./config.status}
18918 ac_write_fail=0
18919 ac_clean_files_save=$ac_clean_files
18920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18922 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18923 as_write_fail=0
18924 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18925 #! $SHELL
18926 # Generated by $as_me.
18927 # Run this file to recreate the current configuration.
18928 # Compiler output produced by configure, useful for debugging
18929 # configure, is in config.log if it exists.
18930
18931 debug=false
18932 ac_cs_recheck=false
18933 ac_cs_silent=false
18934
18935 SHELL=\${CONFIG_SHELL-$SHELL}
18936 export SHELL
18937 _ASEOF
18938 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18939 ## -------------------- ##
18940 ## M4sh Initialization. ##
18941 ## -------------------- ##
18942
18943 # Be more Bourne compatible
18944 DUALCASE=1; export DUALCASE # for MKS sh
18945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18946   emulate sh
18947   NULLCMD=:
18948   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18949   # is contrary to our usage.  Disable this feature.
18950   alias -g '${1+"$@"}'='"$@"'
18951   setopt NO_GLOB_SUBST
18952 else
18953   case `(set -o) 2>/dev/null` in #(
18954   *posix*) :
18955     set -o posix ;; #(
18956   *) :
18957      ;;
18958 esac
18959 fi
18960
18961
18962 as_nl='
18963 '
18964 export as_nl
18965 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18966 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18967 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18969 # Prefer a ksh shell builtin over an external printf program on Solaris,
18970 # but without wasting forks for bash or zsh.
18971 if test -z "$BASH_VERSION$ZSH_VERSION" \
18972     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18973   as_echo='print -r --'
18974   as_echo_n='print -rn --'
18975 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18976   as_echo='printf %s\n'
18977   as_echo_n='printf %s'
18978 else
18979   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18980     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18981     as_echo_n='/usr/ucb/echo -n'
18982   else
18983     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18984     as_echo_n_body='eval
18985       arg=$1;
18986       case $arg in #(
18987       *"$as_nl"*)
18988         expr "X$arg" : "X\\(.*\\)$as_nl";
18989         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18990       esac;
18991       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18992     '
18993     export as_echo_n_body
18994     as_echo_n='sh -c $as_echo_n_body as_echo'
18995   fi
18996   export as_echo_body
18997   as_echo='sh -c $as_echo_body as_echo'
18998 fi
18999
19000 # The user is always right.
19001 if test "${PATH_SEPARATOR+set}" != set; then
19002   PATH_SEPARATOR=:
19003   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19004     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19005       PATH_SEPARATOR=';'
19006   }
19007 fi
19008
19009
19010 # IFS
19011 # We need space, tab and new line, in precisely that order.  Quoting is
19012 # there to prevent editors from complaining about space-tab.
19013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19014 # splitting by setting IFS to empty value.)
19015 IFS=" ""        $as_nl"
19016
19017 # Find who we are.  Look in the path if we contain no directory separator.
19018 case $0 in #((
19019   *[\\/]* ) as_myself=$0 ;;
19020   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19021 for as_dir in $PATH
19022 do
19023   IFS=$as_save_IFS
19024   test -z "$as_dir" && as_dir=.
19025     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19026   done
19027 IFS=$as_save_IFS
19028
19029      ;;
19030 esac
19031 # We did not find ourselves, most probably we were run as `sh COMMAND'
19032 # in which case we are not to be found in the path.
19033 if test "x$as_myself" = x; then
19034   as_myself=$0
19035 fi
19036 if test ! -f "$as_myself"; then
19037   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19038   exit 1
19039 fi
19040
19041 # Unset variables that we do not need and which cause bugs (e.g. in
19042 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19043 # suppresses any "Segmentation fault" message there.  '((' could
19044 # trigger a bug in pdksh 5.2.14.
19045 for as_var in BASH_ENV ENV MAIL MAILPATH
19046 do eval test x\${$as_var+set} = xset \
19047   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19048 done
19049 PS1='$ '
19050 PS2='> '
19051 PS4='+ '
19052
19053 # NLS nuisances.
19054 LC_ALL=C
19055 export LC_ALL
19056 LANGUAGE=C
19057 export LANGUAGE
19058
19059 # CDPATH.
19060 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19061
19062
19063 # as_fn_error ERROR [LINENO LOG_FD]
19064 # ---------------------------------
19065 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19066 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19067 # script with status $?, using 1 if that was 0.
19068 as_fn_error ()
19069 {
19070   as_status=$?; test $as_status -eq 0 && as_status=1
19071   if test "$3"; then
19072     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19073     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19074   fi
19075   $as_echo "$as_me: error: $1" >&2
19076   as_fn_exit $as_status
19077 } # as_fn_error
19078
19079
19080 # as_fn_set_status STATUS
19081 # -----------------------
19082 # Set $? to STATUS, without forking.
19083 as_fn_set_status ()
19084 {
19085   return $1
19086 } # as_fn_set_status
19087
19088 # as_fn_exit STATUS
19089 # -----------------
19090 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19091 as_fn_exit ()
19092 {
19093   set +e
19094   as_fn_set_status $1
19095   exit $1
19096 } # as_fn_exit
19097
19098 # as_fn_unset VAR
19099 # ---------------
19100 # Portably unset VAR.
19101 as_fn_unset ()
19102 {
19103   { eval $1=; unset $1;}
19104 }
19105 as_unset=as_fn_unset
19106 # as_fn_append VAR VALUE
19107 # ----------------------
19108 # Append the text in VALUE to the end of the definition contained in VAR. Take
19109 # advantage of any shell optimizations that allow amortized linear growth over
19110 # repeated appends, instead of the typical quadratic growth present in naive
19111 # implementations.
19112 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19113   eval 'as_fn_append ()
19114   {
19115     eval $1+=\$2
19116   }'
19117 else
19118   as_fn_append ()
19119   {
19120     eval $1=\$$1\$2
19121   }
19122 fi # as_fn_append
19123
19124 # as_fn_arith ARG...
19125 # ------------------
19126 # Perform arithmetic evaluation on the ARGs, and store the result in the
19127 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19128 # must be portable across $(()) and expr.
19129 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19130   eval 'as_fn_arith ()
19131   {
19132     as_val=$(( $* ))
19133   }'
19134 else
19135   as_fn_arith ()
19136   {
19137     as_val=`expr "$@" || test $? -eq 1`
19138   }
19139 fi # as_fn_arith
19140
19141
19142 if expr a : '\(a\)' >/dev/null 2>&1 &&
19143    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19144   as_expr=expr
19145 else
19146   as_expr=false
19147 fi
19148
19149 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19150   as_basename=basename
19151 else
19152   as_basename=false
19153 fi
19154
19155 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19156   as_dirname=dirname
19157 else
19158   as_dirname=false
19159 fi
19160
19161 as_me=`$as_basename -- "$0" ||
19162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19163          X"$0" : 'X\(//\)$' \| \
19164          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19165 $as_echo X/"$0" |
19166     sed '/^.*\/\([^/][^/]*\)\/*$/{
19167             s//\1/
19168             q
19169           }
19170           /^X\/\(\/\/\)$/{
19171             s//\1/
19172             q
19173           }
19174           /^X\/\(\/\).*/{
19175             s//\1/
19176             q
19177           }
19178           s/.*/./; q'`
19179
19180 # Avoid depending upon Character Ranges.
19181 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19182 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19183 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19184 as_cr_digits='0123456789'
19185 as_cr_alnum=$as_cr_Letters$as_cr_digits
19186
19187 ECHO_C= ECHO_N= ECHO_T=
19188 case `echo -n x` in #(((((
19189 -n*)
19190   case `echo 'xy\c'` in
19191   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19192   xy)  ECHO_C='\c';;
19193   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19194        ECHO_T=' ';;
19195   esac;;
19196 *)
19197   ECHO_N='-n';;
19198 esac
19199
19200 rm -f conf$$ conf$$.exe conf$$.file
19201 if test -d conf$$.dir; then
19202   rm -f conf$$.dir/conf$$.file
19203 else
19204   rm -f conf$$.dir
19205   mkdir conf$$.dir 2>/dev/null
19206 fi
19207 if (echo >conf$$.file) 2>/dev/null; then
19208   if ln -s conf$$.file conf$$ 2>/dev/null; then
19209     as_ln_s='ln -s'
19210     # ... but there are two gotchas:
19211     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19212     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19213     # In both cases, we have to default to `cp -p'.
19214     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19215       as_ln_s='cp -p'
19216   elif ln conf$$.file conf$$ 2>/dev/null; then
19217     as_ln_s=ln
19218   else
19219     as_ln_s='cp -p'
19220   fi
19221 else
19222   as_ln_s='cp -p'
19223 fi
19224 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19225 rmdir conf$$.dir 2>/dev/null
19226
19227
19228 # as_fn_mkdir_p
19229 # -------------
19230 # Create "$as_dir" as a directory, including parents if necessary.
19231 as_fn_mkdir_p ()
19232 {
19233
19234   case $as_dir in #(
19235   -*) as_dir=./$as_dir;;
19236   esac
19237   test -d "$as_dir" || eval $as_mkdir_p || {
19238     as_dirs=
19239     while :; do
19240       case $as_dir in #(
19241       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19242       *) as_qdir=$as_dir;;
19243       esac
19244       as_dirs="'$as_qdir' $as_dirs"
19245       as_dir=`$as_dirname -- "$as_dir" ||
19246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19247          X"$as_dir" : 'X\(//\)[^/]' \| \
19248          X"$as_dir" : 'X\(//\)$' \| \
19249          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19250 $as_echo X"$as_dir" |
19251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19252             s//\1/
19253             q
19254           }
19255           /^X\(\/\/\)[^/].*/{
19256             s//\1/
19257             q
19258           }
19259           /^X\(\/\/\)$/{
19260             s//\1/
19261             q
19262           }
19263           /^X\(\/\).*/{
19264             s//\1/
19265             q
19266           }
19267           s/.*/./; q'`
19268       test -d "$as_dir" && break
19269     done
19270     test -z "$as_dirs" || eval "mkdir $as_dirs"
19271   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19272
19273
19274 } # as_fn_mkdir_p
19275 if mkdir -p . 2>/dev/null; then
19276   as_mkdir_p='mkdir -p "$as_dir"'
19277 else
19278   test -d ./-p && rmdir ./-p
19279   as_mkdir_p=false
19280 fi
19281
19282 if test -x / >/dev/null 2>&1; then
19283   as_test_x='test -x'
19284 else
19285   if ls -dL / >/dev/null 2>&1; then
19286     as_ls_L_option=L
19287   else
19288     as_ls_L_option=
19289   fi
19290   as_test_x='
19291     eval sh -c '\''
19292       if test -d "$1"; then
19293         test -d "$1/.";
19294       else
19295         case $1 in #(
19296         -*)set "./$1";;
19297         esac;
19298         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19299         ???[sx]*):;;*)false;;esac;fi
19300     '\'' sh
19301   '
19302 fi
19303 as_executable_p=$as_test_x
19304
19305 # Sed expression to map a string onto a valid CPP name.
19306 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19307
19308 # Sed expression to map a string onto a valid variable name.
19309 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19310
19311
19312 exec 6>&1
19313 ## ----------------------------------- ##
19314 ## Main body of $CONFIG_STATUS script. ##
19315 ## ----------------------------------- ##
19316 _ASEOF
19317 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19318
19319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19320 # Save the log message, to keep $0 and so on meaningful, and to
19321 # report actual input values of CONFIG_FILES etc. instead of their
19322 # values after options handling.
19323 ac_log="
19324 This file was extended by sudo $as_me 1.7.6p1, which was
19325 generated by GNU Autoconf 2.65.  Invocation command line was
19326
19327   CONFIG_FILES    = $CONFIG_FILES
19328   CONFIG_HEADERS  = $CONFIG_HEADERS
19329   CONFIG_LINKS    = $CONFIG_LINKS
19330   CONFIG_COMMANDS = $CONFIG_COMMANDS
19331   $ $0 $@
19332
19333 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19334 "
19335
19336 _ACEOF
19337
19338 case $ac_config_files in *"
19339 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19340 esac
19341
19342 case $ac_config_headers in *"
19343 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19344 esac
19345
19346
19347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19348 # Files that config.status was made for.
19349 config_files="$ac_config_files"
19350 config_headers="$ac_config_headers"
19351 config_commands="$ac_config_commands"
19352
19353 _ACEOF
19354
19355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19356 ac_cs_usage="\
19357 \`$as_me' instantiates files and other configuration actions
19358 from templates according to the current configuration.  Unless the files
19359 and actions are specified as TAGs, all are instantiated by default.
19360
19361 Usage: $0 [OPTION]... [TAG]...
19362
19363   -h, --help       print this help, then exit
19364   -V, --version    print version number and configuration settings, then exit
19365       --config     print configuration, then exit
19366   -q, --quiet, --silent
19367                    do not print progress messages
19368   -d, --debug      don't remove temporary files
19369       --recheck    update $as_me by reconfiguring in the same conditions
19370       --file=FILE[:TEMPLATE]
19371                    instantiate the configuration file FILE
19372       --header=FILE[:TEMPLATE]
19373                    instantiate the configuration header FILE
19374
19375 Configuration files:
19376 $config_files
19377
19378 Configuration headers:
19379 $config_headers
19380
19381 Configuration commands:
19382 $config_commands
19383
19384 Report bugs to <http://www.sudo.ws/bugs/>."
19385
19386 _ACEOF
19387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19388 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19389 ac_cs_version="\\
19390 sudo config.status 1.7.6p1
19391 configured by $0, generated by GNU Autoconf 2.65,
19392   with options \\"\$ac_cs_config\\"
19393
19394 Copyright (C) 2009 Free Software Foundation, Inc.
19395 This config.status script is free software; the Free Software Foundation
19396 gives unlimited permission to copy, distribute and modify it."
19397
19398 ac_pwd='$ac_pwd'
19399 srcdir='$srcdir'
19400 test -n "\$AWK" || AWK=awk
19401 _ACEOF
19402
19403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19404 # The default lists apply if the user does not specify any file.
19405 ac_need_defaults=:
19406 while test $# != 0
19407 do
19408   case $1 in
19409   --*=*)
19410     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19411     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19412     ac_shift=:
19413     ;;
19414   *)
19415     ac_option=$1
19416     ac_optarg=$2
19417     ac_shift=shift
19418     ;;
19419   esac
19420
19421   case $ac_option in
19422   # Handling of the options.
19423   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19424     ac_cs_recheck=: ;;
19425   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19426     $as_echo "$ac_cs_version"; exit ;;
19427   --config | --confi | --conf | --con | --co | --c )
19428     $as_echo "$ac_cs_config"; exit ;;
19429   --debug | --debu | --deb | --de | --d | -d )
19430     debug=: ;;
19431   --file | --fil | --fi | --f )
19432     $ac_shift
19433     case $ac_optarg in
19434     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19435     esac
19436     as_fn_append CONFIG_FILES " '$ac_optarg'"
19437     ac_need_defaults=false;;
19438   --header | --heade | --head | --hea )
19439     $ac_shift
19440     case $ac_optarg in
19441     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19442     esac
19443     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19444     ac_need_defaults=false;;
19445   --he | --h)
19446     # Conflict between --help and --header
19447     as_fn_error "ambiguous option: \`$1'
19448 Try \`$0 --help' for more information.";;
19449   --help | --hel | -h )
19450     $as_echo "$ac_cs_usage"; exit ;;
19451   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19452   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19453     ac_cs_silent=: ;;
19454
19455   # This is an error.
19456   -*) as_fn_error "unrecognized option: \`$1'
19457 Try \`$0 --help' for more information." ;;
19458
19459   *) as_fn_append ac_config_targets " $1"
19460      ac_need_defaults=false ;;
19461
19462   esac
19463   shift
19464 done
19465
19466 ac_configure_extra_args=
19467
19468 if $ac_cs_silent; then
19469   exec 6>/dev/null
19470   ac_configure_extra_args="$ac_configure_extra_args --silent"
19471 fi
19472
19473 _ACEOF
19474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19475 if \$ac_cs_recheck; then
19476   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19477   shift
19478   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19479   CONFIG_SHELL='$SHELL'
19480   export CONFIG_SHELL
19481   exec "\$@"
19482 fi
19483
19484 _ACEOF
19485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19486 exec 5>>config.log
19487 {
19488   echo
19489   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19490 ## Running $as_me. ##
19491 _ASBOX
19492   $as_echo "$ac_log"
19493 } >&5
19494
19495 _ACEOF
19496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19497 #
19498 # INIT-COMMANDS
19499 #
19500
19501
19502 # The HP-UX ksh and POSIX shell print the target directory to stdout
19503 # if CDPATH is set.
19504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19505
19506 sed_quote_subst='$sed_quote_subst'
19507 double_quote_subst='$double_quote_subst'
19508 delay_variable_subst='$delay_variable_subst'
19509 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19510 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19511 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19512 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19513 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19514 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19515 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19516 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19517 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19518 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19519 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19520 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19521 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19522 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19523 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19524 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19525 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19526 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19527 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19528 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19529 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19530 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19531 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19532 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19533 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19534 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19535 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19536 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19537 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19538 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19539 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19540 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19541 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19542 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19543 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19544 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19545 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19546 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19547 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19548 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19549 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19550 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19551 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19552 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19553 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
19554 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19555 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19556 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19557 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19558 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19559 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19560 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19561 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19562 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19563 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19564 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19565 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19566 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19567 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19568 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19569 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19570 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19571 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19572 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19573 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19574 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19575 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19576 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19577 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19578 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19579 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19580 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19581 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19582 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19583 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19584 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19585 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19586 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19587 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19588 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19589 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19590 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19591 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19592 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19593 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19594 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19595 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19596 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19597 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19598 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19599 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19600 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19601 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19602 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19603 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19604 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19605 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19606 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19607 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19608 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19609 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19610 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19611 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19612 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19613 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19614 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19615 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19616 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19617 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19618 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19619 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19620 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19621 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19622 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19623 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19624 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19625 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19626 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19627
19628 LTCC='$LTCC'
19629 LTCFLAGS='$LTCFLAGS'
19630 compiler='$compiler_DEFAULT'
19631
19632 # Quote evaled strings.
19633 for var in SED \
19634 GREP \
19635 EGREP \
19636 FGREP \
19637 LD \
19638 NM \
19639 LN_S \
19640 lt_SP2NL \
19641 lt_NL2SP \
19642 reload_flag \
19643 OBJDUMP \
19644 deplibs_check_method \
19645 file_magic_cmd \
19646 AR \
19647 AR_FLAGS \
19648 STRIP \
19649 RANLIB \
19650 CC \
19651 CFLAGS \
19652 compiler \
19653 lt_cv_sys_global_symbol_pipe \
19654 lt_cv_sys_global_symbol_to_cdecl \
19655 lt_cv_sys_global_symbol_to_c_name_address \
19656 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19657 SHELL \
19658 ECHO \
19659 lt_prog_compiler_no_builtin_flag \
19660 lt_prog_compiler_wl \
19661 lt_prog_compiler_pic \
19662 lt_prog_compiler_static \
19663 lt_cv_prog_compiler_c_o \
19664 need_locks \
19665 DSYMUTIL \
19666 NMEDIT \
19667 LIPO \
19668 OTOOL \
19669 OTOOL64 \
19670 shrext_cmds \
19671 export_dynamic_flag_spec \
19672 whole_archive_flag_spec \
19673 compiler_needs_object \
19674 with_gnu_ld \
19675 allow_undefined_flag \
19676 no_undefined_flag \
19677 hardcode_libdir_flag_spec \
19678 hardcode_libdir_flag_spec_ld \
19679 hardcode_libdir_separator \
19680 fix_srcfile_path \
19681 exclude_expsyms \
19682 include_expsyms \
19683 file_list_spec \
19684 variables_saved_for_relink \
19685 libname_spec \
19686 library_names_spec \
19687 soname_spec \
19688 finish_eval \
19689 old_striplib \
19690 striplib; do
19691     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19692     *[\\\\\\\`\\"\\\$]*)
19693       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19694       ;;
19695     *)
19696       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19697       ;;
19698     esac
19699 done
19700
19701 # Double-quote double-evaled strings.
19702 for var in reload_cmds \
19703 old_postinstall_cmds \
19704 old_postuninstall_cmds \
19705 old_archive_cmds \
19706 extract_expsyms_cmds \
19707 old_archive_from_new_cmds \
19708 old_archive_from_expsyms_cmds \
19709 archive_cmds \
19710 archive_expsym_cmds \
19711 module_cmds \
19712 module_expsym_cmds \
19713 export_symbols_cmds \
19714 prelink_cmds \
19715 postinstall_cmds \
19716 postuninstall_cmds \
19717 finish_cmds \
19718 sys_lib_search_path_spec \
19719 sys_lib_dlsearch_path_spec; do
19720     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19721     *[\\\\\\\`\\"\\\$]*)
19722       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19723       ;;
19724     *)
19725       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19726       ;;
19727     esac
19728 done
19729
19730 # Fix-up fallback echo if it was mangled by the above quoting rules.
19731 case \$lt_ECHO in
19732 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19733   ;;
19734 esac
19735
19736 ac_aux_dir='$ac_aux_dir'
19737 xsi_shell='$xsi_shell'
19738 lt_shell_append='$lt_shell_append'
19739
19740 # See if we are running on zsh, and set the options which allow our
19741 # commands through without removal of \ escapes INIT.
19742 if test -n "\${ZSH_VERSION+set}" ; then
19743    setopt NO_GLOB_SUBST
19744 fi
19745
19746
19747     PACKAGE='$PACKAGE'
19748     VERSION='$VERSION'
19749     TIMESTAMP='$TIMESTAMP'
19750     RM='$RM'
19751     ofile='$ofile'
19752
19753
19754
19755
19756 _ACEOF
19757
19758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19759
19760 # Handling of arguments.
19761 for ac_config_target in $ac_config_targets
19762 do
19763   case $ac_config_target in
19764     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19765     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
19766     "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
19767     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19768     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19769     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
19770     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
19771     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
19772     "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
19773     "sudoreplay.man") CONFIG_FILES="$CONFIG_FILES sudoreplay.man" ;;
19774     "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
19775     "sudoers") CONFIG_FILES="$CONFIG_FILES sudoers" ;;
19776
19777   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19778   esac
19779 done
19780
19781
19782 # If the user did not use the arguments to specify the items to instantiate,
19783 # then the envvar interface is used.  Set only those that are not.
19784 # We use the long form for the default assignment because of an extremely
19785 # bizarre bug on SunOS 4.1.3.
19786 if $ac_need_defaults; then
19787   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19788   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19789   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19790 fi
19791
19792 # Have a temporary directory for convenience.  Make it in the build tree
19793 # simply because there is no reason against having it here, and in addition,
19794 # creating and moving files from /tmp can sometimes cause problems.
19795 # Hook for its removal unless debugging.
19796 # Note that there is a small window in which the directory will not be cleaned:
19797 # after its creation but before its name has been assigned to `$tmp'.
19798 $debug ||
19799 {
19800   tmp=
19801   trap 'exit_status=$?
19802   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19803 ' 0
19804   trap 'as_fn_exit 1' 1 2 13 15
19805 }
19806 # Create a (secure) tmp directory for tmp files.
19807
19808 {
19809   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19810   test -n "$tmp" && test -d "$tmp"
19811 }  ||
19812 {
19813   tmp=./conf$$-$RANDOM
19814   (umask 077 && mkdir "$tmp")
19815 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19816
19817 # Set up the scripts for CONFIG_FILES section.
19818 # No need to generate them if there are no CONFIG_FILES.
19819 # This happens for instance with `./config.status config.h'.
19820 if test -n "$CONFIG_FILES"; then
19821
19822
19823 ac_cr=`echo X | tr X '\015'`
19824 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19825 # But we know of no other shell where ac_cr would be empty at this
19826 # point, so we can use a bashism as a fallback.
19827 if test "x$ac_cr" = x; then
19828   eval ac_cr=\$\'\\r\'
19829 fi
19830 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19831 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19832   ac_cs_awk_cr='\r'
19833 else
19834   ac_cs_awk_cr=$ac_cr
19835 fi
19836
19837 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19838 _ACEOF
19839
19840
19841 {
19842   echo "cat >conf$$subs.awk <<_ACEOF" &&
19843   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19844   echo "_ACEOF"
19845 } >conf$$subs.sh ||
19846   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19847 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19848 ac_delim='%!_!# '
19849 for ac_last_try in false false false false false :; do
19850   . ./conf$$subs.sh ||
19851     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19852
19853   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19854   if test $ac_delim_n = $ac_delim_num; then
19855     break
19856   elif $ac_last_try; then
19857     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19858   else
19859     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19860   fi
19861 done
19862 rm -f conf$$subs.sh
19863
19864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19865 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19866 _ACEOF
19867 sed -n '
19868 h
19869 s/^/S["/; s/!.*/"]=/
19870 p
19871 g
19872 s/^[^!]*!//
19873 :repl
19874 t repl
19875 s/'"$ac_delim"'$//
19876 t delim
19877 :nl
19878 h
19879 s/\(.\{148\}\)..*/\1/
19880 t more1
19881 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19882 p
19883 n
19884 b repl
19885 :more1
19886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19887 p
19888 g
19889 s/.\{148\}//
19890 t nl
19891 :delim
19892 h
19893 s/\(.\{148\}\)..*/\1/
19894 t more2
19895 s/["\\]/\\&/g; s/^/"/; s/$/"/
19896 p
19897 b
19898 :more2
19899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19900 p
19901 g
19902 s/.\{148\}//
19903 t delim
19904 ' <conf$$subs.awk | sed '
19905 /^[^""]/{
19906   N
19907   s/\n//
19908 }
19909 ' >>$CONFIG_STATUS || ac_write_fail=1
19910 rm -f conf$$subs.awk
19911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19912 _ACAWK
19913 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19914   for (key in S) S_is_set[key] = 1
19915   FS = "\a"
19916
19917 }
19918 {
19919   line = $ 0
19920   nfields = split(line, field, "@")
19921   substed = 0
19922   len = length(field[1])
19923   for (i = 2; i < nfields; i++) {
19924     key = field[i]
19925     keylen = length(key)
19926     if (S_is_set[key]) {
19927       value = S[key]
19928       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19929       len += length(value) + length(field[++i])
19930       substed = 1
19931     } else
19932       len += 1 + keylen
19933   }
19934
19935   print line
19936 }
19937
19938 _ACAWK
19939 _ACEOF
19940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19941 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19942   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19943 else
19944   cat
19945 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19946   || as_fn_error "could not setup config files machinery" "$LINENO" 5
19947 _ACEOF
19948
19949 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19950 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19951 # trailing colons and then remove the whole line if VPATH becomes empty
19952 # (actually we leave an empty line to preserve line numbers).
19953 if test "x$srcdir" = x.; then
19954   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19955 s/:*\$(srcdir):*/:/
19956 s/:*\${srcdir}:*/:/
19957 s/:*@srcdir@:*/:/
19958 s/^\([^=]*=[     ]*\):*/\1/
19959 s/:*$//
19960 s/^[^=]*=[       ]*$//
19961 }'
19962 fi
19963
19964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19965 fi # test -n "$CONFIG_FILES"
19966
19967 # Set up the scripts for CONFIG_HEADERS section.
19968 # No need to generate them if there are no CONFIG_HEADERS.
19969 # This happens for instance with `./config.status Makefile'.
19970 if test -n "$CONFIG_HEADERS"; then
19971 cat >"$tmp/defines.awk" <<\_ACAWK ||
19972 BEGIN {
19973 _ACEOF
19974
19975 # Transform confdefs.h into an awk script `defines.awk', embedded as
19976 # here-document in config.status, that substitutes the proper values into
19977 # config.h.in to produce config.h.
19978
19979 # Create a delimiter string that does not exist in confdefs.h, to ease
19980 # handling of long lines.
19981 ac_delim='%!_!# '
19982 for ac_last_try in false false :; do
19983   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19984   if test -z "$ac_t"; then
19985     break
19986   elif $ac_last_try; then
19987     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19988   else
19989     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19990   fi
19991 done
19992
19993 # For the awk script, D is an array of macro values keyed by name,
19994 # likewise P contains macro parameters if any.  Preserve backslash
19995 # newline sequences.
19996
19997 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19998 sed -n '
19999 s/.\{148\}/&'"$ac_delim"'/g
20000 t rset
20001 :rset
20002 s/^[     ]*#[    ]*define[       ][      ]*/ /
20003 t def
20004 d
20005 :def
20006 s/\\$//
20007 t bsnl
20008 s/["\\]/\\&/g
20009 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20010 D["\1"]=" \3"/p
20011 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20012 d
20013 :bsnl
20014 s/["\\]/\\&/g
20015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20016 D["\1"]=" \3\\\\\\n"\\/p
20017 t cont
20018 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20019 t cont
20020 d
20021 :cont
20022 n
20023 s/.\{148\}/&'"$ac_delim"'/g
20024 t clear
20025 :clear
20026 s/\\$//
20027 t bsnlc
20028 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20029 d
20030 :bsnlc
20031 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20032 b cont
20033 ' <confdefs.h | sed '
20034 s/'"$ac_delim"'/"\\\
20035 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20036
20037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20038   for (key in D) D_is_set[key] = 1
20039   FS = "\a"
20040 }
20041 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20042   line = \$ 0
20043   split(line, arg, " ")
20044   if (arg[1] == "#") {
20045     defundef = arg[2]
20046     mac1 = arg[3]
20047   } else {
20048     defundef = substr(arg[1], 2)
20049     mac1 = arg[2]
20050   }
20051   split(mac1, mac2, "(") #)
20052   macro = mac2[1]
20053   prefix = substr(line, 1, index(line, defundef) - 1)
20054   if (D_is_set[macro]) {
20055     # Preserve the white space surrounding the "#".
20056     print prefix "define", macro P[macro] D[macro]
20057     next
20058   } else {
20059     # Replace #undef with comments.  This is necessary, for example,
20060     # in the case of _POSIX_SOURCE, which is predefined and required
20061     # on some systems where configure will not decide to define it.
20062     if (defundef == "undef") {
20063       print "/*", prefix defundef, macro, "*/"
20064       next
20065     }
20066   }
20067 }
20068 { print }
20069 _ACAWK
20070 _ACEOF
20071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20072   as_fn_error "could not setup config headers machinery" "$LINENO" 5
20073 fi # test -n "$CONFIG_HEADERS"
20074
20075
20076 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20077 shift
20078 for ac_tag
20079 do
20080   case $ac_tag in
20081   :[FHLC]) ac_mode=$ac_tag; continue;;
20082   esac
20083   case $ac_mode$ac_tag in
20084   :[FHL]*:*);;
20085   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20086   :[FH]-) ac_tag=-:-;;
20087   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20088   esac
20089   ac_save_IFS=$IFS
20090   IFS=:
20091   set x $ac_tag
20092   IFS=$ac_save_IFS
20093   shift
20094   ac_file=$1
20095   shift
20096
20097   case $ac_mode in
20098   :L) ac_source=$1;;
20099   :[FH])
20100     ac_file_inputs=
20101     for ac_f
20102     do
20103       case $ac_f in
20104       -) ac_f="$tmp/stdin";;
20105       *) # Look for the file first in the build tree, then in the source tree
20106          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20107          # because $ac_f cannot contain `:'.
20108          test -f "$ac_f" ||
20109            case $ac_f in
20110            [\\/$]*) false;;
20111            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20112            esac ||
20113            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20114       esac
20115       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20116       as_fn_append ac_file_inputs " '$ac_f'"
20117     done
20118
20119     # Let's still pretend it is `configure' which instantiates (i.e., don't
20120     # use $as_me), people would be surprised to read:
20121     #    /* config.h.  Generated by config.status.  */
20122     configure_input='Generated from '`
20123           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20124         `' by configure.'
20125     if test x"$ac_file" != x-; then
20126       configure_input="$ac_file.  $configure_input"
20127       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20128 $as_echo "$as_me: creating $ac_file" >&6;}
20129     fi
20130     # Neutralize special characters interpreted by sed in replacement strings.
20131     case $configure_input in #(
20132     *\&* | *\|* | *\\* )
20133        ac_sed_conf_input=`$as_echo "$configure_input" |
20134        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20135     *) ac_sed_conf_input=$configure_input;;
20136     esac
20137
20138     case $ac_tag in
20139     *:-:* | *:-) cat >"$tmp/stdin" \
20140       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20141     esac
20142     ;;
20143   esac
20144
20145   ac_dir=`$as_dirname -- "$ac_file" ||
20146 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20147          X"$ac_file" : 'X\(//\)[^/]' \| \
20148          X"$ac_file" : 'X\(//\)$' \| \
20149          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20150 $as_echo X"$ac_file" |
20151     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20152             s//\1/
20153             q
20154           }
20155           /^X\(\/\/\)[^/].*/{
20156             s//\1/
20157             q
20158           }
20159           /^X\(\/\/\)$/{
20160             s//\1/
20161             q
20162           }
20163           /^X\(\/\).*/{
20164             s//\1/
20165             q
20166           }
20167           s/.*/./; q'`
20168   as_dir="$ac_dir"; as_fn_mkdir_p
20169   ac_builddir=.
20170
20171 case "$ac_dir" in
20172 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20173 *)
20174   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20175   # A ".." for each directory in $ac_dir_suffix.
20176   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20177   case $ac_top_builddir_sub in
20178   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20179   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20180   esac ;;
20181 esac
20182 ac_abs_top_builddir=$ac_pwd
20183 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20184 # for backward compatibility:
20185 ac_top_builddir=$ac_top_build_prefix
20186
20187 case $srcdir in
20188   .)  # We are building in place.
20189     ac_srcdir=.
20190     ac_top_srcdir=$ac_top_builddir_sub
20191     ac_abs_top_srcdir=$ac_pwd ;;
20192   [\\/]* | ?:[\\/]* )  # Absolute name.
20193     ac_srcdir=$srcdir$ac_dir_suffix;
20194     ac_top_srcdir=$srcdir
20195     ac_abs_top_srcdir=$srcdir ;;
20196   *) # Relative name.
20197     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20198     ac_top_srcdir=$ac_top_build_prefix$srcdir
20199     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20200 esac
20201 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20202
20203
20204   case $ac_mode in
20205   :F)
20206   #
20207   # CONFIG_FILE
20208   #
20209
20210 _ACEOF
20211
20212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20213 # If the template does not know about datarootdir, expand it.
20214 # FIXME: This hack should be removed a few years after 2.60.
20215 ac_datarootdir_hack=; ac_datarootdir_seen=
20216 ac_sed_dataroot='
20217 /datarootdir/ {
20218   p
20219   q
20220 }
20221 /@datadir@/p
20222 /@docdir@/p
20223 /@infodir@/p
20224 /@localedir@/p
20225 /@mandir@/p'
20226 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20227 *datarootdir*) ac_datarootdir_seen=yes;;
20228 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20229   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20230 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20231 _ACEOF
20232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20233   ac_datarootdir_hack='
20234   s&@datadir@&$datadir&g
20235   s&@docdir@&$docdir&g
20236   s&@infodir@&$infodir&g
20237   s&@localedir@&$localedir&g
20238   s&@mandir@&$mandir&g
20239   s&\\\${datarootdir}&$datarootdir&g' ;;
20240 esac
20241 _ACEOF
20242
20243 # Neutralize VPATH when `$srcdir' = `.'.
20244 # Shell code in configure.ac might set extrasub.
20245 # FIXME: do we really want to maintain this feature?
20246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20247 ac_sed_extra="$ac_vpsub
20248 $extrasub
20249 _ACEOF
20250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20251 :t
20252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20253 s|@configure_input@|$ac_sed_conf_input|;t t
20254 s&@top_builddir@&$ac_top_builddir_sub&;t t
20255 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20256 s&@srcdir@&$ac_srcdir&;t t
20257 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20258 s&@top_srcdir@&$ac_top_srcdir&;t t
20259 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20260 s&@builddir@&$ac_builddir&;t t
20261 s&@abs_builddir@&$ac_abs_builddir&;t t
20262 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20263 $ac_datarootdir_hack
20264 "
20265 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20266   || as_fn_error "could not create $ac_file" "$LINENO" 5
20267
20268 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20269   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20270   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20271   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20272 which seems to be undefined.  Please make sure it is defined." >&5
20273 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20274 which seems to be undefined.  Please make sure it is defined." >&2;}
20275
20276   rm -f "$tmp/stdin"
20277   case $ac_file in
20278   -) cat "$tmp/out" && rm -f "$tmp/out";;
20279   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20280   esac \
20281   || as_fn_error "could not create $ac_file" "$LINENO" 5
20282  ;;
20283   :H)
20284   #
20285   # CONFIG_HEADER
20286   #
20287   if test x"$ac_file" != x-; then
20288     {
20289       $as_echo "/* $configure_input  */" \
20290       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20291     } >"$tmp/config.h" \
20292       || as_fn_error "could not create $ac_file" "$LINENO" 5
20293     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20294       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20295 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20296     else
20297       rm -f "$ac_file"
20298       mv "$tmp/config.h" "$ac_file" \
20299         || as_fn_error "could not create $ac_file" "$LINENO" 5
20300     fi
20301   else
20302     $as_echo "/* $configure_input  */" \
20303       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20304       || as_fn_error "could not create -" "$LINENO" 5
20305   fi
20306  ;;
20307
20308   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20309 $as_echo "$as_me: executing $ac_file commands" >&6;}
20310  ;;
20311   esac
20312
20313
20314   case $ac_file$ac_mode in
20315     "libtool":C)
20316
20317     # See if we are running on zsh, and set the options which allow our
20318     # commands through without removal of \ escapes.
20319     if test -n "${ZSH_VERSION+set}" ; then
20320       setopt NO_GLOB_SUBST
20321     fi
20322
20323     cfgfile="${ofile}T"
20324     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20325     $RM "$cfgfile"
20326
20327     cat <<_LT_EOF >> "$cfgfile"
20328 #! $SHELL
20329
20330 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20331 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20332 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20333 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20334 #
20335 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20336 #                 2006, 2007, 2008 Free Software Foundation, Inc.
20337 #   Written by Gordon Matzigkeit, 1996
20338 #
20339 #   This file is part of GNU Libtool.
20340 #
20341 # GNU Libtool is free software; you can redistribute it and/or
20342 # modify it under the terms of the GNU General Public License as
20343 # published by the Free Software Foundation; either version 2 of
20344 # the License, or (at your option) any later version.
20345 #
20346 # As a special exception to the GNU General Public License,
20347 # if you distribute this file as part of a program or library that
20348 # is built using GNU Libtool, you may include this file under the
20349 # same distribution terms that you use for the rest of that program.
20350 #
20351 # GNU Libtool is distributed in the hope that it will be useful,
20352 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20353 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20354 # GNU General Public License for more details.
20355 #
20356 # You should have received a copy of the GNU General Public License
20357 # along with GNU Libtool; see the file COPYING.  If not, a copy
20358 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20359 # obtained by writing to the Free Software Foundation, Inc.,
20360 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20361
20362
20363 # The names of the tagged configurations supported by this script.
20364 available_tags=""
20365
20366 # ### BEGIN LIBTOOL CONFIG
20367
20368 # Which release of libtool.m4 was used?
20369 macro_version=$macro_version
20370 macro_revision=$macro_revision
20371
20372 # Whether or not to build shared libraries.
20373 build_libtool_libs=$enable_shared
20374
20375 # Whether or not to build static libraries.
20376 build_old_libs=$enable_static
20377
20378 # What type of objects to build.
20379 pic_mode=$pic_mode
20380
20381 # Whether or not to optimize for fast installation.
20382 fast_install=$enable_fast_install
20383
20384 # The host system.
20385 host_alias=$host_alias
20386 host=$host
20387 host_os=$host_os
20388
20389 # The build system.
20390 build_alias=$build_alias
20391 build=$build
20392 build_os=$build_os
20393
20394 # A sed program that does not truncate output.
20395 SED=$lt_SED
20396
20397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20398 Xsed="\$SED -e 1s/^X//"
20399
20400 # A grep program that handles long lines.
20401 GREP=$lt_GREP
20402
20403 # An ERE matcher.
20404 EGREP=$lt_EGREP
20405
20406 # A literal string matcher.
20407 FGREP=$lt_FGREP
20408
20409 # A BSD- or MS-compatible name lister.
20410 NM=$lt_NM
20411
20412 # Whether we need soft or hard links.
20413 LN_S=$lt_LN_S
20414
20415 # What is the maximum length of a command?
20416 max_cmd_len=$max_cmd_len
20417
20418 # Object file suffix (normally "o").
20419 objext=$ac_objext
20420
20421 # Executable file suffix (normally "").
20422 exeext=$exeext
20423
20424 # whether the shell understands "unset".
20425 lt_unset=$lt_unset
20426
20427 # turn spaces into newlines.
20428 SP2NL=$lt_lt_SP2NL
20429
20430 # turn newlines into spaces.
20431 NL2SP=$lt_lt_NL2SP
20432
20433 # How to create reloadable object files.
20434 reload_flag=$lt_reload_flag
20435 reload_cmds=$lt_reload_cmds
20436
20437 # An object symbol dumper.
20438 OBJDUMP=$lt_OBJDUMP
20439
20440 # Method to check whether dependent libraries are shared objects.
20441 deplibs_check_method=$lt_deplibs_check_method
20442
20443 # Command to use when deplibs_check_method == "file_magic".
20444 file_magic_cmd=$lt_file_magic_cmd
20445
20446 # The archiver.
20447 AR=$lt_AR
20448 AR_FLAGS=$lt_AR_FLAGS
20449
20450 # A symbol stripping program.
20451 STRIP=$lt_STRIP
20452
20453 # Commands used to install an old-style archive.
20454 RANLIB=$lt_RANLIB
20455 old_postinstall_cmds=$lt_old_postinstall_cmds
20456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20457
20458 # A C compiler.
20459 LTCC=$lt_CC
20460
20461 # LTCC compiler flags.
20462 LTCFLAGS=$lt_CFLAGS
20463
20464 # Take the output of nm and produce a listing of raw symbols and C names.
20465 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20466
20467 # Transform the output of nm in a proper C declaration.
20468 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20469
20470 # Transform the output of nm in a C name address pair.
20471 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20472
20473 # Transform the output of nm in a C name address pair when lib prefix is needed.
20474 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20475
20476 # The name of the directory that contains temporary libtool files.
20477 objdir=$objdir
20478
20479 # Shell to use when invoking shell scripts.
20480 SHELL=$lt_SHELL
20481
20482 # An echo program that does not interpret backslashes.
20483 ECHO=$lt_ECHO
20484
20485 # Used to examine libraries when file_magic_cmd begins with "file".
20486 MAGIC_CMD=$MAGIC_CMD
20487
20488 # Must we lock files when doing compilation?
20489 need_locks=$lt_need_locks
20490
20491 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20492 DSYMUTIL=$lt_DSYMUTIL
20493
20494 # Tool to change global to local symbols on Mac OS X.
20495 NMEDIT=$lt_NMEDIT
20496
20497 # Tool to manipulate fat objects and archives on Mac OS X.
20498 LIPO=$lt_LIPO
20499
20500 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20501 OTOOL=$lt_OTOOL
20502
20503 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20504 OTOOL64=$lt_OTOOL64
20505
20506 # Old archive suffix (normally "a").
20507 libext=$libext
20508
20509 # Shared library suffix (normally ".so").
20510 shrext_cmds=$lt_shrext_cmds
20511
20512 # The commands to extract the exported symbol list from a shared archive.
20513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20514
20515 # Variables whose values should be saved in libtool wrapper scripts and
20516 # restored at link time.
20517 variables_saved_for_relink=$lt_variables_saved_for_relink
20518
20519 # Do we need the "lib" prefix for modules?
20520 need_lib_prefix=$need_lib_prefix
20521
20522 # Do we need a version for libraries?
20523 need_version=$need_version
20524
20525 # Library versioning type.
20526 version_type=$version_type
20527
20528 # Shared library runtime path variable.
20529 runpath_var=$runpath_var
20530
20531 # Shared library path variable.
20532 shlibpath_var=$shlibpath_var
20533
20534 # Is shlibpath searched before the hard-coded library search path?
20535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20536
20537 # Format of library name prefix.
20538 libname_spec=$lt_libname_spec
20539
20540 # List of archive names.  First name is the real one, the rest are links.
20541 # The last name is the one that the linker finds with -lNAME
20542 library_names_spec=$lt_library_names_spec
20543
20544 # The coded name of the library, if different from the real name.
20545 soname_spec=$lt_soname_spec
20546
20547 # Command to use after installation of a shared archive.
20548 postinstall_cmds=$lt_postinstall_cmds
20549
20550 # Command to use after uninstallation of a shared archive.
20551 postuninstall_cmds=$lt_postuninstall_cmds
20552
20553 # Commands used to finish a libtool library installation in a directory.
20554 finish_cmds=$lt_finish_cmds
20555
20556 # As "finish_cmds", except a single script fragment to be evaled but
20557 # not shown.
20558 finish_eval=$lt_finish_eval
20559
20560 # Whether we should hardcode library paths into libraries.
20561 hardcode_into_libs=$hardcode_into_libs
20562
20563 # Compile-time system search path for libraries.
20564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20565
20566 # Run-time system search path for libraries.
20567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20568
20569 # Whether dlopen is supported.
20570 dlopen_support=$enable_dlopen
20571
20572 # Whether dlopen of programs is supported.
20573 dlopen_self=$enable_dlopen_self
20574
20575 # Whether dlopen of statically linked programs is supported.
20576 dlopen_self_static=$enable_dlopen_self_static
20577
20578 # Commands to strip libraries.
20579 old_striplib=$lt_old_striplib
20580 striplib=$lt_striplib
20581
20582
20583 # The linker used to build libraries.
20584 LD=$lt_LD
20585
20586 # Commands used to build an old-style archive.
20587 old_archive_cmds=$lt_old_archive_cmds
20588
20589 # A language specific compiler.
20590 CC=$lt_compiler
20591
20592 # Is the compiler the GNU compiler?
20593 with_gcc=$GCC
20594
20595 # Compiler flag to turn off builtin functions.
20596 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20597
20598 # How to pass a linker flag through the compiler.
20599 wl=$lt_lt_prog_compiler_wl
20600
20601 # Additional compiler flags for building library objects.
20602 pic_flag=$lt_lt_prog_compiler_pic
20603
20604 # Compiler flag to prevent dynamic linking.
20605 link_static_flag=$lt_lt_prog_compiler_static
20606
20607 # Does compiler simultaneously support -c and -o options?
20608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20609
20610 # Whether or not to add -lc for building shared libraries.
20611 build_libtool_need_lc=$archive_cmds_need_lc
20612
20613 # Whether or not to disallow shared libs when runtime libs are static.
20614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20615
20616 # Compiler flag to allow reflexive dlopens.
20617 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20618
20619 # Compiler flag to generate shared objects directly from archives.
20620 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20621
20622 # Whether the compiler copes with passing no objects directly.
20623 compiler_needs_object=$lt_compiler_needs_object
20624
20625 # Create an old-style archive from a shared archive.
20626 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20627
20628 # Create a temporary old-style archive to link instead of a shared archive.
20629 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20630
20631 # Commands used to build a shared archive.
20632 archive_cmds=$lt_archive_cmds
20633 archive_expsym_cmds=$lt_archive_expsym_cmds
20634
20635 # Commands used to build a loadable module if different from building
20636 # a shared archive.
20637 module_cmds=$lt_module_cmds
20638 module_expsym_cmds=$lt_module_expsym_cmds
20639
20640 # Whether we are building with GNU ld or not.
20641 with_gnu_ld=$lt_with_gnu_ld
20642
20643 # Flag that allows shared libraries with undefined symbols to be built.
20644 allow_undefined_flag=$lt_allow_undefined_flag
20645
20646 # Flag that enforces no undefined symbols.
20647 no_undefined_flag=$lt_no_undefined_flag
20648
20649 # Flag to hardcode \$libdir into a binary during linking.
20650 # This must work even if \$libdir does not exist
20651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20652
20653 # If ld is used when linking, flag to hardcode \$libdir into a binary
20654 # during linking.  This must work even if \$libdir does not exist.
20655 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20656
20657 # Whether we need a single "-rpath" flag with a separated argument.
20658 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20659
20660 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20661 # DIR into the resulting binary.
20662 hardcode_direct=$hardcode_direct
20663
20664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20665 # DIR into the resulting binary and the resulting library dependency is
20666 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20667 # library is relocated.
20668 hardcode_direct_absolute=$hardcode_direct_absolute
20669
20670 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20671 # into the resulting binary.
20672 hardcode_minus_L=$hardcode_minus_L
20673
20674 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20675 # into the resulting binary.
20676 hardcode_shlibpath_var=$hardcode_shlibpath_var
20677
20678 # Set to "yes" if building a shared library automatically hardcodes DIR
20679 # into the library and all subsequent libraries and executables linked
20680 # against it.
20681 hardcode_automatic=$hardcode_automatic
20682
20683 # Set to yes if linker adds runtime paths of dependent libraries
20684 # to runtime path list.
20685 inherit_rpath=$inherit_rpath
20686
20687 # Whether libtool must link a program against all its dependency libraries.
20688 link_all_deplibs=$link_all_deplibs
20689
20690 # Fix the shell variable \$srcfile for the compiler.
20691 fix_srcfile_path=$lt_fix_srcfile_path
20692
20693 # Set to "yes" if exported symbols are required.
20694 always_export_symbols=$always_export_symbols
20695
20696 # The commands to list exported symbols.
20697 export_symbols_cmds=$lt_export_symbols_cmds
20698
20699 # Symbols that should not be listed in the preloaded symbols.
20700 exclude_expsyms=$lt_exclude_expsyms
20701
20702 # Symbols that must always be exported.
20703 include_expsyms=$lt_include_expsyms
20704
20705 # Commands necessary for linking programs (against libraries) with templates.
20706 prelink_cmds=$lt_prelink_cmds
20707
20708 # Specify filename containing input files.
20709 file_list_spec=$lt_file_list_spec
20710
20711 # How to hardcode a shared library path into an executable.
20712 hardcode_action=$hardcode_action
20713
20714 # ### END LIBTOOL CONFIG
20715
20716 _LT_EOF
20717
20718   case $host_os in
20719   aix3*)
20720     cat <<\_LT_EOF >> "$cfgfile"
20721 # AIX sometimes has problems with the GCC collect2 program.  For some
20722 # reason, if we set the COLLECT_NAMES environment variable, the problems
20723 # vanish in a puff of smoke.
20724 if test "X${COLLECT_NAMES+set}" != Xset; then
20725   COLLECT_NAMES=
20726   export COLLECT_NAMES
20727 fi
20728 _LT_EOF
20729     ;;
20730   esac
20731
20732
20733 ltmain="$ac_aux_dir/ltmain.sh"
20734
20735
20736   # We use sed instead of cat because bash on DJGPP gets confused if
20737   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20738   # text mode, it properly converts lines to CR/LF.  This bash problem
20739   # is reportedly fixed, but why not run on old versions too?
20740   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20741     || (rm -f "$cfgfile"; exit 1)
20742
20743   case $xsi_shell in
20744   yes)
20745     cat << \_LT_EOF >> "$cfgfile"
20746
20747 # func_dirname file append nondir_replacement
20748 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20749 # otherwise set result to NONDIR_REPLACEMENT.
20750 func_dirname ()
20751 {
20752   case ${1} in
20753     */*) func_dirname_result="${1%/*}${2}" ;;
20754     *  ) func_dirname_result="${3}" ;;
20755   esac
20756 }
20757
20758 # func_basename file
20759 func_basename ()
20760 {
20761   func_basename_result="${1##*/}"
20762 }
20763
20764 # func_dirname_and_basename file append nondir_replacement
20765 # perform func_basename and func_dirname in a single function
20766 # call:
20767 #   dirname:  Compute the dirname of FILE.  If nonempty,
20768 #             add APPEND to the result, otherwise set result
20769 #             to NONDIR_REPLACEMENT.
20770 #             value returned in "$func_dirname_result"
20771 #   basename: Compute filename of FILE.
20772 #             value retuned in "$func_basename_result"
20773 # Implementation must be kept synchronized with func_dirname
20774 # and func_basename. For efficiency, we do not delegate to
20775 # those functions but instead duplicate the functionality here.
20776 func_dirname_and_basename ()
20777 {
20778   case ${1} in
20779     */*) func_dirname_result="${1%/*}${2}" ;;
20780     *  ) func_dirname_result="${3}" ;;
20781   esac
20782   func_basename_result="${1##*/}"
20783 }
20784
20785 # func_stripname prefix suffix name
20786 # strip PREFIX and SUFFIX off of NAME.
20787 # PREFIX and SUFFIX must not contain globbing or regex special
20788 # characters, hashes, percent signs, but SUFFIX may contain a leading
20789 # dot (in which case that matches only a dot).
20790 func_stripname ()
20791 {
20792   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20793   # positional parameters, so assign one to ordinary parameter first.
20794   func_stripname_result=${3}
20795   func_stripname_result=${func_stripname_result#"${1}"}
20796   func_stripname_result=${func_stripname_result%"${2}"}
20797 }
20798
20799 # func_opt_split
20800 func_opt_split ()
20801 {
20802   func_opt_split_opt=${1%%=*}
20803   func_opt_split_arg=${1#*=}
20804 }
20805
20806 # func_lo2o object
20807 func_lo2o ()
20808 {
20809   case ${1} in
20810     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20811     *)    func_lo2o_result=${1} ;;
20812   esac
20813 }
20814
20815 # func_xform libobj-or-source
20816 func_xform ()
20817 {
20818   func_xform_result=${1%.*}.lo
20819 }
20820
20821 # func_arith arithmetic-term...
20822 func_arith ()
20823 {
20824   func_arith_result=$(( $* ))
20825 }
20826
20827 # func_len string
20828 # STRING may not start with a hyphen.
20829 func_len ()
20830 {
20831   func_len_result=${#1}
20832 }
20833
20834 _LT_EOF
20835     ;;
20836   *) # Bourne compatible functions.
20837     cat << \_LT_EOF >> "$cfgfile"
20838
20839 # func_dirname file append nondir_replacement
20840 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20841 # otherwise set result to NONDIR_REPLACEMENT.
20842 func_dirname ()
20843 {
20844   # Extract subdirectory from the argument.
20845   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20846   if test "X$func_dirname_result" = "X${1}"; then
20847     func_dirname_result="${3}"
20848   else
20849     func_dirname_result="$func_dirname_result${2}"
20850   fi
20851 }
20852
20853 # func_basename file
20854 func_basename ()
20855 {
20856   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20857 }
20858
20859
20860 # func_stripname prefix suffix name
20861 # strip PREFIX and SUFFIX off of NAME.
20862 # PREFIX and SUFFIX must not contain globbing or regex special
20863 # characters, hashes, percent signs, but SUFFIX may contain a leading
20864 # dot (in which case that matches only a dot).
20865 # func_strip_suffix prefix name
20866 func_stripname ()
20867 {
20868   case ${2} in
20869     .*) func_stripname_result=`$ECHO "X${3}" \
20870            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20871     *)  func_stripname_result=`$ECHO "X${3}" \
20872            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20873   esac
20874 }
20875
20876 # sed scripts:
20877 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20878 my_sed_long_arg='1s/^-[^=]*=//'
20879
20880 # func_opt_split
20881 func_opt_split ()
20882 {
20883   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20884   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20885 }
20886
20887 # func_lo2o object
20888 func_lo2o ()
20889 {
20890   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20891 }
20892
20893 # func_xform libobj-or-source
20894 func_xform ()
20895 {
20896   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20897 }
20898
20899 # func_arith arithmetic-term...
20900 func_arith ()
20901 {
20902   func_arith_result=`expr "$@"`
20903 }
20904
20905 # func_len string
20906 # STRING may not start with a hyphen.
20907 func_len ()
20908 {
20909   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20910 }
20911
20912 _LT_EOF
20913 esac
20914
20915 case $lt_shell_append in
20916   yes)
20917     cat << \_LT_EOF >> "$cfgfile"
20918
20919 # func_append var value
20920 # Append VALUE to the end of shell variable VAR.
20921 func_append ()
20922 {
20923   eval "$1+=\$2"
20924 }
20925 _LT_EOF
20926     ;;
20927   *)
20928     cat << \_LT_EOF >> "$cfgfile"
20929
20930 # func_append var value
20931 # Append VALUE to the end of shell variable VAR.
20932 func_append ()
20933 {
20934   eval "$1=\$$1\$2"
20935 }
20936
20937 _LT_EOF
20938     ;;
20939   esac
20940
20941
20942   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20943     || (rm -f "$cfgfile"; exit 1)
20944
20945   mv -f "$cfgfile" "$ofile" ||
20946     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20947   chmod +x "$ofile"
20948
20949  ;;
20950
20951   esac
20952 done # for ac_tag
20953
20954
20955 as_fn_exit 0
20956 _ACEOF
20957 ac_clean_files=$ac_clean_files_save
20958
20959 test $ac_write_fail = 0 ||
20960   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20961
20962
20963 # configure is writing to config.log, and then calls config.status.
20964 # config.status does its own redirection, appending to config.log.
20965 # Unfortunately, on DOS this fails, as config.log is still kept open
20966 # by configure, so config.status won't be able to write to it; its
20967 # output is simply discarded.  So we exec the FD to /dev/null,
20968 # effectively closing config.log, so it can be properly (re)opened and
20969 # appended to by config.status.  When coming back to configure, we
20970 # need to make the FD available again.
20971 if test "$no_create" != yes; then
20972   ac_cs_success=:
20973   ac_config_status_args=
20974   test "$silent" = yes &&
20975     ac_config_status_args="$ac_config_status_args --quiet"
20976   exec 5>/dev/null
20977   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20978   exec 5>>config.log
20979   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20980   # would make configure fail if this is the last instruction.
20981   $ac_cs_success || as_fn_exit $?
20982 fi
20983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20984   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20986 fi
20987
20988
20989 if test "$with_pam" = "yes"; then
20990     case $host in
20991         *-*-linux*)
20992             { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
20993 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
20994             ;;
20995     esac
20996 fi
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085