Imported Upstream version 1.7.4p6
[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.4p6.
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.4p6'
705 PACKAGE_STRING='sudo 1.7.4p6'
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_editor
798 runas_default
799 fqdn
800 badpass_message
801 mailsub
802 mailto
803 mail_no_perms
804 mail_no_host
805 mail_no_user
806 ignore_dot
807 loglen
808 badpri
809 goodpri
810 logfac
811 lecture
812 long_otp_prompt
813 passprompt
814 sudo_umask
815 password_timeout
816 timeout
817 timedir
818 CONFIGURE_ARGS
819 ZLIB
820 LOGINCAP_USAGE
821 REPLAY
822 LDAP
823 SELINUX_USAGE
824 BSDAUTH_USAGE
825 DONT_LEAK_PATH_INFO
826 INSTALL_NOEXEC
827 noexec_file
828 NOEXECDIR
829 NOEXECFILE
830 mansrcdir
831 mansectform
832 mansectsu
833 devdir
834 SEMAN
835 LCMAN
836 BAMAN
837 DEV
838 SUDOERS_GID
839 SUDOERS_UID
840 SUDOERS_MODE
841 MAN_POSTINSTALL
842 MANTYPE
843 AUTH_OBJS
844 OSDEFS
845 GETGROUPS_LIB
846 AFS_LIBS
847 NET_LIBS
848 SUDO_LIBS
849 SUDO_OBJS
850 SUDO_LDFLAGS
851 COMMON_OBJS
852 LDFLAGS
853 CPPFLAGS
854 PROGS
855 CFLAGS
856 LIBTOOL
857 HAVE_BSM_AUDIT
858 target_alias
859 host_alias
860 build_alias
861 LIBS
862 ECHO_T
863 ECHO_N
864 ECHO_C
865 DEFS
866 mandir
867 localedir
868 libdir
869 psdir
870 pdfdir
871 dvidir
872 htmldir
873 infodir
874 docdir
875 oldincludedir
876 includedir
877 localstatedir
878 sharedstatedir
879 sysconfdir
880 datadir
881 datarootdir
882 libexecdir
883 sbindir
884 bindir
885 program_transform_name
886 prefix
887 exec_prefix
888 PACKAGE_URL
889 PACKAGE_BUGREPORT
890 PACKAGE_STRING
891 PACKAGE_VERSION
892 PACKAGE_TARNAME
893 PACKAGE_NAME
894 PATH_SEPARATOR
895 SHELL'
896 ac_subst_files=''
897 ac_user_opts='
898 enable_option_checking
899 with_otp_only
900 with_alertmail
901 with_devel
902 with_CC
903 with_rpath
904 with_blibpath
905 with_bsm_audit
906 with_linux_audit
907 with_incpath
908 with_libpath
909 with_libraries
910 with_efence
911 with_csops
912 with_passwd
913 with_skey
914 with_opie
915 with_long_otp_prompt
916 with_SecurID
917 with_fwtk
918 with_kerb4
919 with_kerb5
920 with_aixauth
921 with_pam
922 with_AFS
923 with_DCE
924 with_logincap
925 with_bsdauth
926 with_project
927 with_lecture
928 with_logging
929 with_logfac
930 with_goodpri
931 with_badpri
932 with_logpath
933 with_loglen
934 with_ignore_dot
935 with_mail_if_no_user
936 with_mail_if_no_host
937 with_mail_if_noperms
938 with_mailto
939 with_mailsubject
940 with_passprompt
941 with_badpass_message
942 with_fqdn
943 with_timedir
944 with_iologdir
945 with_sendmail
946 with_sudoers_mode
947 with_sudoers_uid
948 with_sudoers_gid
949 with_umask
950 with_runas_default
951 with_exempt
952 with_editor
953 with_env_editor
954 with_passwd_tries
955 with_timeout
956 with_password_timeout
957 with_tty_tickets
958 with_insults
959 with_all_insults
960 with_classic_insults
961 with_csops_insults
962 with_hal_insults
963 with_goons_insults
964 with_nsswitch
965 with_ldap
966 with_ldap_conf_file
967 with_ldap_secret_file
968 with_pc_insults
969 with_secure_path
970 with_interfaces
971 with_stow
972 with_askpass
973 with_libvas
974 with_libvas_rpath
975 enable_authentication
976 enable_root_mailer
977 enable_setreuid
978 enable_setresuid
979 enable_shadow
980 enable_root_sudo
981 enable_log_host
982 enable_noargs_shell
983 enable_shell_sets_home
984 enable_path_info
985 enable_env_debug
986 enable_warnings
987 enable_admin_flag
988 with_selinux
989 enable_gss_krb5_ccache_name
990 enable_shared
991 enable_static
992 with_pic
993 enable_fast_install
994 with_gnu_ld
995 enable_libtool_lock
996 with_noexec
997 with_netsvc
998 enable_sia
999 with_pam_login
1000 enable_pam_session
1001 enable_zlib
1002 '
1003       ac_precious_vars='build_alias
1004 host_alias
1005 target_alias
1006 CC
1007 CFLAGS
1008 LDFLAGS
1009 LIBS
1010 CPPFLAGS
1011 CPP
1012 YACC
1013 YFLAGS'
1014
1015
1016 # Initialize some variables set by options.
1017 ac_init_help=
1018 ac_init_version=false
1019 ac_unrecognized_opts=
1020 ac_unrecognized_sep=
1021 # The variables have the same names as the options, with
1022 # dashes changed to underlines.
1023 cache_file=/dev/null
1024 exec_prefix=NONE
1025 no_create=
1026 no_recursion=
1027 prefix=NONE
1028 program_prefix=NONE
1029 program_suffix=NONE
1030 program_transform_name=s,x,x,
1031 silent=
1032 site=
1033 srcdir=
1034 verbose=
1035 x_includes=NONE
1036 x_libraries=NONE
1037
1038 # Installation directory options.
1039 # These are left unexpanded so users can "make install exec_prefix=/foo"
1040 # and all the variables that are supposed to be based on exec_prefix
1041 # by default will actually change.
1042 # Use braces instead of parens because sh, perl, etc. also accept them.
1043 # (The list follows the same order as the GNU Coding Standards.)
1044 bindir='${exec_prefix}/bin'
1045 sbindir='${exec_prefix}/sbin'
1046 libexecdir='${exec_prefix}/libexec'
1047 datarootdir='${prefix}/share'
1048 datadir='${datarootdir}'
1049 sysconfdir='${prefix}/etc'
1050 sharedstatedir='${prefix}/com'
1051 localstatedir='${prefix}/var'
1052 includedir='${prefix}/include'
1053 oldincludedir='/usr/include'
1054 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1055 infodir='${datarootdir}/info'
1056 htmldir='${docdir}'
1057 dvidir='${docdir}'
1058 pdfdir='${docdir}'
1059 psdir='${docdir}'
1060 libdir='${exec_prefix}/lib'
1061 localedir='${datarootdir}/locale'
1062 mandir='${datarootdir}/man'
1063
1064 ac_prev=
1065 ac_dashdash=
1066 for ac_option
1067 do
1068   # If the previous option needs an argument, assign it.
1069   if test -n "$ac_prev"; then
1070     eval $ac_prev=\$ac_option
1071     ac_prev=
1072     continue
1073   fi
1074
1075   case $ac_option in
1076   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1077   *)    ac_optarg=yes ;;
1078   esac
1079
1080   # Accept the important Cygnus configure options, so we can diagnose typos.
1081
1082   case $ac_dashdash$ac_option in
1083   --)
1084     ac_dashdash=yes ;;
1085
1086   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1087     ac_prev=bindir ;;
1088   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1089     bindir=$ac_optarg ;;
1090
1091   -build | --build | --buil | --bui | --bu)
1092     ac_prev=build_alias ;;
1093   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1094     build_alias=$ac_optarg ;;
1095
1096   -cache-file | --cache-file | --cache-fil | --cache-fi \
1097   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1098     ac_prev=cache_file ;;
1099   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1100   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1101     cache_file=$ac_optarg ;;
1102
1103   --config-cache | -C)
1104     cache_file=config.cache ;;
1105
1106   -datadir | --datadir | --datadi | --datad)
1107     ac_prev=datadir ;;
1108   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1109     datadir=$ac_optarg ;;
1110
1111   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1112   | --dataroo | --dataro | --datar)
1113     ac_prev=datarootdir ;;
1114   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1115   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1116     datarootdir=$ac_optarg ;;
1117
1118   -disable-* | --disable-*)
1119     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1120     # Reject names that are not valid shell variable names.
1121     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122       as_fn_error "invalid feature name: $ac_useropt"
1123     ac_useropt_orig=$ac_useropt
1124     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125     case $ac_user_opts in
1126       *"
1127 "enable_$ac_useropt"
1128 "*) ;;
1129       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1130          ac_unrecognized_sep=', ';;
1131     esac
1132     eval enable_$ac_useropt=no ;;
1133
1134   -docdir | --docdir | --docdi | --doc | --do)
1135     ac_prev=docdir ;;
1136   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1137     docdir=$ac_optarg ;;
1138
1139   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1140     ac_prev=dvidir ;;
1141   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1142     dvidir=$ac_optarg ;;
1143
1144   -enable-* | --enable-*)
1145     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148       as_fn_error "invalid feature name: $ac_useropt"
1149     ac_useropt_orig=$ac_useropt
1150     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151     case $ac_user_opts in
1152       *"
1153 "enable_$ac_useropt"
1154 "*) ;;
1155       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1156          ac_unrecognized_sep=', ';;
1157     esac
1158     eval enable_$ac_useropt=\$ac_optarg ;;
1159
1160   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1161   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1162   | --exec | --exe | --ex)
1163     ac_prev=exec_prefix ;;
1164   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1165   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1166   | --exec=* | --exe=* | --ex=*)
1167     exec_prefix=$ac_optarg ;;
1168
1169   -gas | --gas | --ga | --g)
1170     # Obsolete; use --with-gas.
1171     with_gas=yes ;;
1172
1173   -help | --help | --hel | --he | -h)
1174     ac_init_help=long ;;
1175   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1176     ac_init_help=recursive ;;
1177   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1178     ac_init_help=short ;;
1179
1180   -host | --host | --hos | --ho)
1181     ac_prev=host_alias ;;
1182   -host=* | --host=* | --hos=* | --ho=*)
1183     host_alias=$ac_optarg ;;
1184
1185   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1186     ac_prev=htmldir ;;
1187   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1188   | --ht=*)
1189     htmldir=$ac_optarg ;;
1190
1191   -includedir | --includedir | --includedi | --included | --include \
1192   | --includ | --inclu | --incl | --inc)
1193     ac_prev=includedir ;;
1194   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1195   | --includ=* | --inclu=* | --incl=* | --inc=*)
1196     includedir=$ac_optarg ;;
1197
1198   -infodir | --infodir | --infodi | --infod | --info | --inf)
1199     ac_prev=infodir ;;
1200   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1201     infodir=$ac_optarg ;;
1202
1203   -libdir | --libdir | --libdi | --libd)
1204     ac_prev=libdir ;;
1205   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1206     libdir=$ac_optarg ;;
1207
1208   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1209   | --libexe | --libex | --libe)
1210     ac_prev=libexecdir ;;
1211   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1212   | --libexe=* | --libex=* | --libe=*)
1213     libexecdir=$ac_optarg ;;
1214
1215   -localedir | --localedir | --localedi | --localed | --locale)
1216     ac_prev=localedir ;;
1217   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1218     localedir=$ac_optarg ;;
1219
1220   -localstatedir | --localstatedir | --localstatedi | --localstated \
1221   | --localstate | --localstat | --localsta | --localst | --locals)
1222     ac_prev=localstatedir ;;
1223   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1224   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1225     localstatedir=$ac_optarg ;;
1226
1227   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1228     ac_prev=mandir ;;
1229   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1230     mandir=$ac_optarg ;;
1231
1232   -nfp | --nfp | --nf)
1233     # Obsolete; use --without-fp.
1234     with_fp=no ;;
1235
1236   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1237   | --no-cr | --no-c | -n)
1238     no_create=yes ;;
1239
1240   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1241   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1242     no_recursion=yes ;;
1243
1244   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1245   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1246   | --oldin | --oldi | --old | --ol | --o)
1247     ac_prev=oldincludedir ;;
1248   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1249   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1250   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1251     oldincludedir=$ac_optarg ;;
1252
1253   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1254     ac_prev=prefix ;;
1255   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1256     prefix=$ac_optarg ;;
1257
1258   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1259   | --program-pre | --program-pr | --program-p)
1260     ac_prev=program_prefix ;;
1261   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1262   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1263     program_prefix=$ac_optarg ;;
1264
1265   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1266   | --program-suf | --program-su | --program-s)
1267     ac_prev=program_suffix ;;
1268   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1269   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1270     program_suffix=$ac_optarg ;;
1271
1272   -program-transform-name | --program-transform-name \
1273   | --program-transform-nam | --program-transform-na \
1274   | --program-transform-n | --program-transform- \
1275   | --program-transform | --program-transfor \
1276   | --program-transfo | --program-transf \
1277   | --program-trans | --program-tran \
1278   | --progr-tra | --program-tr | --program-t)
1279     ac_prev=program_transform_name ;;
1280   -program-transform-name=* | --program-transform-name=* \
1281   | --program-transform-nam=* | --program-transform-na=* \
1282   | --program-transform-n=* | --program-transform-=* \
1283   | --program-transform=* | --program-transfor=* \
1284   | --program-transfo=* | --program-transf=* \
1285   | --program-trans=* | --program-tran=* \
1286   | --progr-tra=* | --program-tr=* | --program-t=*)
1287     program_transform_name=$ac_optarg ;;
1288
1289   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1290     ac_prev=pdfdir ;;
1291   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1292     pdfdir=$ac_optarg ;;
1293
1294   -psdir | --psdir | --psdi | --psd | --ps)
1295     ac_prev=psdir ;;
1296   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1297     psdir=$ac_optarg ;;
1298
1299   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1300   | -silent | --silent | --silen | --sile | --sil)
1301     silent=yes ;;
1302
1303   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1304     ac_prev=sbindir ;;
1305   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1306   | --sbi=* | --sb=*)
1307     sbindir=$ac_optarg ;;
1308
1309   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1310   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1311   | --sharedst | --shareds | --shared | --share | --shar \
1312   | --sha | --sh)
1313     ac_prev=sharedstatedir ;;
1314   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1315   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1316   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1317   | --sha=* | --sh=*)
1318     sharedstatedir=$ac_optarg ;;
1319
1320   -site | --site | --sit)
1321     ac_prev=site ;;
1322   -site=* | --site=* | --sit=*)
1323     site=$ac_optarg ;;
1324
1325   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1326     ac_prev=srcdir ;;
1327   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1328     srcdir=$ac_optarg ;;
1329
1330   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1331   | --syscon | --sysco | --sysc | --sys | --sy)
1332     ac_prev=sysconfdir ;;
1333   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1334   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1335     sysconfdir=$ac_optarg ;;
1336
1337   -target | --target | --targe | --targ | --tar | --ta | --t)
1338     ac_prev=target_alias ;;
1339   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1340     target_alias=$ac_optarg ;;
1341
1342   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1343     verbose=yes ;;
1344
1345   -version | --version | --versio | --versi | --vers | -V)
1346     ac_init_version=: ;;
1347
1348   -with-* | --with-*)
1349     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1350     # Reject names that are not valid shell variable names.
1351     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352       as_fn_error "invalid package name: $ac_useropt"
1353     ac_useropt_orig=$ac_useropt
1354     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355     case $ac_user_opts in
1356       *"
1357 "with_$ac_useropt"
1358 "*) ;;
1359       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1360          ac_unrecognized_sep=', ';;
1361     esac
1362     eval with_$ac_useropt=\$ac_optarg ;;
1363
1364   -without-* | --without-*)
1365     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1366     # Reject names that are not valid shell variable names.
1367     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368       as_fn_error "invalid package name: $ac_useropt"
1369     ac_useropt_orig=$ac_useropt
1370     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1371     case $ac_user_opts in
1372       *"
1373 "with_$ac_useropt"
1374 "*) ;;
1375       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1376          ac_unrecognized_sep=', ';;
1377     esac
1378     eval with_$ac_useropt=no ;;
1379
1380   --x)
1381     # Obsolete; use --with-x.
1382     with_x=yes ;;
1383
1384   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1385   | --x-incl | --x-inc | --x-in | --x-i)
1386     ac_prev=x_includes ;;
1387   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1388   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1389     x_includes=$ac_optarg ;;
1390
1391   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1392   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1393     ac_prev=x_libraries ;;
1394   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1395   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1396     x_libraries=$ac_optarg ;;
1397
1398   -*) as_fn_error "unrecognized option: \`$ac_option'
1399 Try \`$0 --help' for more information."
1400     ;;
1401
1402   *=*)
1403     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1404     # Reject names that are not valid shell variable names.
1405     case $ac_envvar in #(
1406       '' | [0-9]* | *[!_$as_cr_alnum]* )
1407       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1408     esac
1409     eval $ac_envvar=\$ac_optarg
1410     export $ac_envvar ;;
1411
1412   *)
1413     # FIXME: should be removed in autoconf 3.0.
1414     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1415     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1416       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1417     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1418     ;;
1419
1420   esac
1421 done
1422
1423 if test -n "$ac_prev"; then
1424   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1425   as_fn_error "missing argument to $ac_option"
1426 fi
1427
1428 if test -n "$ac_unrecognized_opts"; then
1429   case $enable_option_checking in
1430     no) ;;
1431     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1432     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1433   esac
1434 fi
1435
1436 # Check all directory arguments for consistency.
1437 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1438                 datadir sysconfdir sharedstatedir localstatedir includedir \
1439                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1440                 libdir localedir mandir
1441 do
1442   eval ac_val=\$$ac_var
1443   # Remove trailing slashes.
1444   case $ac_val in
1445     */ )
1446       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1447       eval $ac_var=\$ac_val;;
1448   esac
1449   # Be sure to have absolute directory names.
1450   case $ac_val in
1451     [\\/$]* | ?:[\\/]* )  continue;;
1452     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1453   esac
1454   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1455 done
1456
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1460 build=$build_alias
1461 host=$host_alias
1462 target=$target_alias
1463
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466   if test "x$build_alias" = x; then
1467     cross_compiling=maybe
1468     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469     If a cross compiler is detected then cross compile mode will be used." >&2
1470   elif test "x$build_alias" != "x$host_alias"; then
1471     cross_compiling=yes
1472   fi
1473 fi
1474
1475 ac_tool_prefix=
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477
1478 test "$silent" = yes && exec 6>/dev/null
1479
1480
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484   as_fn_error "working directory cannot be determined"
1485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486   as_fn_error "pwd does not report name of working directory"
1487
1488
1489 # Find the source files, if location was not specified.
1490 if test -z "$srcdir"; then
1491   ac_srcdir_defaulted=yes
1492   # Try the directory containing this script, then the parent directory.
1493   ac_confdir=`$as_dirname -- "$as_myself" ||
1494 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1495          X"$as_myself" : 'X\(//\)[^/]' \| \
1496          X"$as_myself" : 'X\(//\)$' \| \
1497          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1498 $as_echo X"$as_myself" |
1499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\/\)[^/].*/{
1504             s//\1/
1505             q
1506           }
1507           /^X\(\/\/\)$/{
1508             s//\1/
1509             q
1510           }
1511           /^X\(\/\).*/{
1512             s//\1/
1513             q
1514           }
1515           s/.*/./; q'`
1516   srcdir=$ac_confdir
1517   if test ! -r "$srcdir/$ac_unique_file"; then
1518     srcdir=..
1519   fi
1520 else
1521   ac_srcdir_defaulted=no
1522 fi
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1524   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1525   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1526 fi
1527 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1528 ac_abs_confdir=`(
1529         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1530         pwd)`
1531 # When building in place, set srcdir=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1533   srcdir=.
1534 fi
1535 # Remove unnecessary trailing slashes from srcdir.
1536 # Double slashes in file names in object file debugging info
1537 # mess up M-x gdb in Emacs.
1538 case $srcdir in
1539 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1540 esac
1541 for ac_var in $ac_precious_vars; do
1542   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543   eval ac_env_${ac_var}_value=\$${ac_var}
1544   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1546 done
1547
1548 #
1549 # Report the --help message.
1550 #
1551 if test "$ac_init_help" = "long"; then
1552   # Omit some internal or obsolete options to make the list less imposing.
1553   # This message is too long to be a string in the A/UX 3.1 sh.
1554   cat <<_ACEOF
1555 \`configure' configures sudo 1.7.4p6 to adapt to many kinds of systems.
1556
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1558
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE.  See below for descriptions of some of the useful variables.
1561
1562 Defaults for the options are specified in brackets.
1563
1564 Configuration:
1565   -h, --help              display this help and exit
1566       --help=short        display options specific to this package
1567       --help=recursive    display the short help of all the included packages
1568   -V, --version           display version information and exit
1569   -q, --quiet, --silent   do not print \`checking...' messages
1570       --cache-file=FILE   cache test results in FILE [disabled]
1571   -C, --config-cache      alias for \`--cache-file=config.cache'
1572   -n, --no-create         do not create output files
1573       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1574
1575 Installation directories:
1576   --prefix=PREFIX         install architecture-independent files in PREFIX
1577                           [$ac_default_prefix]
1578   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1579                           [PREFIX]
1580
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1585
1586 For better control, use the options below.
1587
1588 Fine tuning of the installation directories:
1589   --bindir=DIR            user executables [EPREFIX/bin]
1590   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1591   --libexecdir=DIR        program executables [EPREFIX/libexec]
1592   --sysconfdir=DIR        read-only single-machine data [/etc]
1593   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1594   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1595   --libdir=DIR            object code libraries [EPREFIX/lib]
1596   --includedir=DIR        C header files [PREFIX/include]
1597   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1598   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1599   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1600   --infodir=DIR           info documentation [DATAROOTDIR/info]
1601   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1602   --mandir=DIR            man documentation [DATAROOTDIR/man]
1603   --docdir=DIR            documentation root [DATAROOTDIR/doc/sudo]
1604   --htmldir=DIR           html documentation [DOCDIR]
1605   --dvidir=DIR            dvi documentation [DOCDIR]
1606   --pdfdir=DIR            pdf documentation [DOCDIR]
1607   --psdir=DIR             ps documentation [DOCDIR]
1608 _ACEOF
1609
1610   cat <<\_ACEOF
1611
1612 System types:
1613   --build=BUILD     configure for building on BUILD [guessed]
1614   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1615 _ACEOF
1616 fi
1617
1618 if test -n "$ac_init_help"; then
1619   case $ac_init_help in
1620      short | recursive ) echo "Configuration of sudo 1.7.4p6:";;
1621    esac
1622   cat <<\_ACEOF
1623
1624 Optional Features:
1625   --disable-option-checking  ignore unrecognized --enable/--with options
1626   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1627   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1628   --disable-authentication
1629                           Do not require authentication by default
1630   --disable-root-mailer   Don't run the mailer as root, run as the user
1631   --disable-setreuid      Don't try to use the setreuid() function
1632   --disable-setresuid     Don't try to use the setresuid() function
1633   --disable-shadow        Never use shadow passwords
1634   --disable-root-sudo     Don't allow root to run sudo
1635   --enable-log-host       Log the hostname in the log file
1636   --enable-noargs-shell   If sudo is given no arguments run a shell
1637   --enable-shell-sets-home
1638                           Set $HOME to target user in shell mode
1639   --disable-path-info     Print 'command not allowed' not 'command not found'
1640   --enable-env-debug      Whether to enable environment debugging.
1641   --enable-warnings       Whether to enable compiler warnings
1642   --enable-admin-flag     Whether to create a Ubuntu-style admin flag file
1643   --enable-gss-krb5-ccache-name
1644                           Use GSS-API to set the Kerberos V cred cache name
1645   --enable-shared[=PKGS]  build shared libraries [default=yes]
1646   --enable-static[=PKGS]  build static libraries [default=yes]
1647   --enable-fast-install[=PKGS]
1648                           optimize for fast installation [default=yes]
1649   --disable-libtool-lock  avoid locking (might break parallel builds)
1650   --disable-sia           Disable SIA on Digital UNIX
1651   --disable-pam-session   Disable PAM session support
1652   --enable-zlib[=PATH]    Whether to enable or disable zlib
1653
1654 Optional Packages:
1655   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1656   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1657   --with-otp-only         deprecated
1658   --with-alertmail        deprecated
1659   --with-devel            add development options
1660   --with-CC               C compiler to use
1661   --with-rpath            pass -R flag in addition to -L for lib paths
1662   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1663   --with-bsm-audit        enable BSM audit support
1664   --with-linux-audit      enable Linux audit support
1665   --with-incpath          additional places to look for include files
1666   --with-libpath          additional places to look for libraries
1667   --with-libraries        additional libraries to link with
1668   --with-efence           link with -lefence for malloc() debugging
1669   --with-csops            add CSOps standard options
1670   --without-passwd        don't use passwd/shadow file for authentication
1671   --with-skey=DIR         enable S/Key support
1672   --with-opie=DIR         enable OPIE support
1673   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1674   --with-SecurID[=DIR]    enable SecurID support
1675   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1676   --with-kerb4[=DIR]      enable Kerberos IV support
1677   --with-kerb5[=DIR]      enable Kerberos V support
1678   --with-aixauth          enable AIX general authentication support
1679   --with-pam              enable PAM support
1680   --with-AFS              enable AFS support
1681   --with-DCE              enable DCE support
1682   --with-logincap         enable BSD login class support
1683   --with-bsdauth          enable BSD authentication support
1684   --with-project          enable Solaris project support
1685   --without-lecture       don't print lecture for first-time sudoer
1686   --with-logging          log via syslog, file, or both
1687   --with-logfac           syslog facility to log with (default is "auth")
1688   --with-goodpri          syslog priority for commands (def is "notice")
1689   --with-badpri           syslog priority for failures (def is "alert")
1690   --with-logpath          path to the sudo log file
1691   --with-loglen           maximum length of a log file line (default is 80)
1692   --with-ignore-dot       ignore '.' in the PATH
1693   --without-mail-if-no-user
1694                           do not send mail if user not in sudoers
1695   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1696   --with-mail-if-noperms  send mail if user not allowed to run command
1697   --with-mailto           who should get sudo mail (default is "root")
1698   --with-mailsubject      subject of sudo mail
1699   --with-passprompt       default password prompt
1700   --with-badpass-message  message the user sees when the password is wrong
1701   --with-fqdn             expect fully qualified hosts in sudoers
1702   --with-timedir          path to the sudo timestamp dir
1703   --with-iologdir=DIR     directory to store sudo I/O log files in
1704   --with-sendmail         set path to sendmail
1705   --without-sendmail      do not send mail at all
1706   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1707   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1708   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1709   --with-umask            umask with which the prog should run (default is
1710                           022)
1711   --without-umask         Preserves the umask of the user invoking sudo.
1712   --with-runas-default    User to run commands as (default is "root")
1713   --with-exempt=group     no passwd needed for users in this group
1714   --with-editor=path      Default editor for visudo (defaults to vi)
1715   --with-env-editor       Use the environment variable EDITOR for visudo
1716   --with-passwd-tries     number of tries to enter password (default is 3)
1717   --with-timeout          minutes before sudo asks for passwd again (def is 5
1718                           minutes)
1719   --with-password-timeout passwd prompt timeout in minutes (default is 5
1720                           minutes)
1721   --with-tty-tickets      use a different ticket file for each tty
1722   --with-insults          insult the user for entering an incorrect password
1723   --with-all-insults      include all the sudo insult sets
1724   --with-classic-insults  include the insults from the "classic" sudo
1725   --with-csops-insults    include CSOps insults
1726   --with-hal-insults      include 2001-like insults
1727   --with-goons-insults    include the insults from the "Goon Show"
1728   --with-nsswitch[=PATH]  path to nsswitch.conf
1729   --with-ldap[=DIR]       enable LDAP support
1730   --with-ldap-conf-file   path to LDAP configuration file
1731   --with-ldap-secret-file path to LDAP secret password file
1732   --with-pc-insults       replace politically incorrect insults with less
1733                           offensive ones
1734   --with-secure-path      override the user's path with a built-in one
1735   --without-interfaces    don't try to read the ip addr of ether interfaces
1736   --with-stow             properly handle GNU stow packaging
1737   --with-askpass=PATH     Fully qualified pathname of askpass helper
1738   --with-libvas=NAME      Name of the libvas shared library
1739                           (default=libvas.so)
1740   --with-libvas-rpath=PATH
1741                           Path to look for libvas in [default=/opt/quest/lib]
1742   --with-selinux          enable SELinux support
1743   --with-pic              try to use only PIC/non-PIC objects [default=use
1744                           both]
1745   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1746   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1747   --with-netsvc[=PATH]    path to netsvc.conf
1748   --with-pam-login        enable specific PAM session for sudo -i
1749
1750 Some influential environment variables:
1751   CC          C compiler command
1752   CFLAGS      C compiler flags
1753   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1754               nonstandard directory <lib dir>
1755   LIBS        libraries to pass to the linker, e.g. -l<library>
1756   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1757               you have headers in a nonstandard directory <include dir>
1758   CPP         C preprocessor
1759   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1760               the first program found out of: `bison -y', `byacc', `yacc'.
1761   YFLAGS      The list of arguments that will be passed by default to $YACC.
1762               This script will default YFLAGS to the empty string to avoid a
1763               default value of `-d' given by some make applications.
1764
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1767
1768 Report bugs to <http://www.sudo.ws/bugs/>.
1769 _ACEOF
1770 ac_status=$?
1771 fi
1772
1773 if test "$ac_init_help" = "recursive"; then
1774   # If there are subdirs, report their specific --help.
1775   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776     test -d "$ac_dir" ||
1777       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1778       continue
1779     ac_builddir=.
1780
1781 case "$ac_dir" in
1782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 *)
1784   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785   # A ".." for each directory in $ac_dir_suffix.
1786   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787   case $ac_top_builddir_sub in
1788   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790   esac ;;
1791 esac
1792 ac_abs_top_builddir=$ac_pwd
1793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794 # for backward compatibility:
1795 ac_top_builddir=$ac_top_build_prefix
1796
1797 case $srcdir in
1798   .)  # We are building in place.
1799     ac_srcdir=.
1800     ac_top_srcdir=$ac_top_builddir_sub
1801     ac_abs_top_srcdir=$ac_pwd ;;
1802   [\\/]* | ?:[\\/]* )  # Absolute name.
1803     ac_srcdir=$srcdir$ac_dir_suffix;
1804     ac_top_srcdir=$srcdir
1805     ac_abs_top_srcdir=$srcdir ;;
1806   *) # Relative name.
1807     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808     ac_top_srcdir=$ac_top_build_prefix$srcdir
1809     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1810 esac
1811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1812
1813     cd "$ac_dir" || { ac_status=$?; continue; }
1814     # Check for guested configure.
1815     if test -f "$ac_srcdir/configure.gnu"; then
1816       echo &&
1817       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818     elif test -f "$ac_srcdir/configure"; then
1819       echo &&
1820       $SHELL "$ac_srcdir/configure" --help=recursive
1821     else
1822       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1823     fi || ac_status=$?
1824     cd "$ac_pwd" || { ac_status=$?; break; }
1825   done
1826 fi
1827
1828 test -n "$ac_init_help" && exit $ac_status
1829 if $ac_init_version; then
1830   cat <<\_ACEOF
1831 sudo configure 1.7.4p6
1832 generated by GNU Autoconf 2.65
1833
1834 Copyright (C) 2009 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1837 _ACEOF
1838   exit
1839 fi
1840
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1844
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   rm -f conftest.$ac_objext
1852   if { { ac_try="$ac_compile"
1853 case "(($ac_try" in
1854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855   *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859   (eval "$ac_compile") 2>conftest.err
1860   ac_status=$?
1861   if test -s conftest.err; then
1862     grep -v '^ *+' conftest.err >conftest.er1
1863     cat conftest.er1 >&5
1864     mv -f conftest.er1 conftest.err
1865   fi
1866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867   test $ac_status = 0; } && {
1868          test -z "$ac_c_werror_flag" ||
1869          test ! -s conftest.err
1870        } && test -s conftest.$ac_objext; then :
1871   ac_retval=0
1872 else
1873   $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876         ac_retval=1
1877 fi
1878   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879   as_fn_set_status $ac_retval
1880
1881 } # ac_fn_c_try_compile
1882
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_link ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   rm -f conftest.$ac_objext conftest$ac_exeext
1890   if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893   *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897   (eval "$ac_link") 2>conftest.err
1898   ac_status=$?
1899   if test -s conftest.err; then
1900     grep -v '^ *+' conftest.err >conftest.er1
1901     cat conftest.er1 >&5
1902     mv -f conftest.er1 conftest.err
1903   fi
1904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905   test $ac_status = 0; } && {
1906          test -z "$ac_c_werror_flag" ||
1907          test ! -s conftest.err
1908        } && test -s conftest$ac_exeext && {
1909          test "$cross_compiling" = yes ||
1910          $as_test_x conftest$ac_exeext
1911        }; then :
1912   ac_retval=0
1913 else
1914   $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917         ac_retval=1
1918 fi
1919   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921   # interfere with the next link command; also delete a directory that is
1922   # left behind by Apple's compiler.  We do this before executing the actions.
1923   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925   as_fn_set_status $ac_retval
1926
1927 } # ac_fn_c_try_link
1928
1929 # ac_fn_c_try_cpp LINENO
1930 # ----------------------
1931 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_c_try_cpp ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   if { { ac_try="$ac_cpp conftest.$ac_ext"
1936 case "(($ac_try" in
1937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938   *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1943   ac_status=$?
1944   if test -s conftest.err; then
1945     grep -v '^ *+' conftest.err >conftest.er1
1946     cat conftest.er1 >&5
1947     mv -f conftest.er1 conftest.err
1948   fi
1949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950   test $ac_status = 0; } >/dev/null && {
1951          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1952          test ! -s conftest.err
1953        }; then :
1954   ac_retval=0
1955 else
1956   $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959     ac_retval=1
1960 fi
1961   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962   as_fn_set_status $ac_retval
1963
1964 } # ac_fn_c_try_cpp
1965
1966 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists and can be compiled using the include files in
1969 # INCLUDES, setting the cache variable VAR accordingly.
1970 ac_fn_c_check_header_compile ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1976   $as_echo_n "(cached) " >&6
1977 else
1978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h.  */
1980 $4
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984   eval "$3=yes"
1985 else
1986   eval "$3=no"
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 fi
1990 eval ac_res=\$$3
1991                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1994
1995 } # ac_fn_c_check_header_compile
1996
1997 # ac_fn_c_try_run LINENO
1998 # ----------------------
1999 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2000 # that executables *can* be run.
2001 ac_fn_c_try_run ()
2002 {
2003   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004   if { { ac_try="$ac_link"
2005 case "(($ac_try" in
2006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007   *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011   (eval "$ac_link") 2>&5
2012   ac_status=$?
2013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2015   { { case "(($ac_try" in
2016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017   *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021   (eval "$ac_try") 2>&5
2022   ac_status=$?
2023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024   test $ac_status = 0; }; }; then :
2025   ac_retval=0
2026 else
2027   $as_echo "$as_me: program exited with status $ac_status" >&5
2028        $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2030
2031        ac_retval=$ac_status
2032 fi
2033   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035   as_fn_set_status $ac_retval
2036
2037 } # ac_fn_c_try_run
2038
2039 # ac_fn_c_check_func LINENO FUNC VAR
2040 # ----------------------------------
2041 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2042 ac_fn_c_check_func ()
2043 {
2044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2048   $as_echo_n "(cached) " >&6
2049 else
2050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h.  */
2052 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2054 #define $2 innocuous_$2
2055
2056 /* System header to define __stub macros and hopefully few prototypes,
2057     which can conflict with char $2 (); below.
2058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059     <limits.h> exists even on freestanding compilers.  */
2060
2061 #ifdef __STDC__
2062 # include <limits.h>
2063 #else
2064 # include <assert.h>
2065 #endif
2066
2067 #undef $2
2068
2069 /* Override any GCC internal prototype to avoid an error.
2070    Use char because int might match the return type of a GCC
2071    builtin and then its argument prototype would still apply.  */
2072 #ifdef __cplusplus
2073 extern "C"
2074 #endif
2075 char $2 ();
2076 /* The GNU C library defines this for functions which it implements
2077     to always fail with ENOSYS.  Some functions are actually named
2078     something starting with __ and the normal name is an alias.  */
2079 #if defined __stub_$2 || defined __stub___$2
2080 choke me
2081 #endif
2082
2083 int
2084 main ()
2085 {
2086 return $2 ();
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_link "$LINENO"; then :
2092   eval "$3=yes"
2093 else
2094   eval "$3=no"
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext \
2097     conftest$ac_exeext conftest.$ac_ext
2098 fi
2099 eval ac_res=\$$3
2100                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103
2104 } # ac_fn_c_check_func
2105
2106 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2107 # -------------------------------------------------------
2108 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2109 # the include files in INCLUDES and setting the cache variable VAR
2110 # accordingly.
2111 ac_fn_c_check_header_mongrel ()
2112 {
2113   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118   $as_echo_n "(cached) " >&6
2119 fi
2120 eval ac_res=\$$3
2121                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 else
2124   # Is the header compilable?
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2126 $as_echo_n "checking $2 usability... " >&6; }
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h.  */
2129 $4
2130 #include <$2>
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133   ac_header_compiler=yes
2134 else
2135   ac_header_compiler=no
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2139 $as_echo "$ac_header_compiler" >&6; }
2140
2141 # Is the header present?
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2143 $as_echo_n "checking $2 presence... " >&6; }
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h.  */
2146 #include <$2>
2147 _ACEOF
2148 if ac_fn_c_try_cpp "$LINENO"; then :
2149   ac_header_preproc=yes
2150 else
2151   ac_header_preproc=no
2152 fi
2153 rm -f conftest.err conftest.$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2155 $as_echo "$ac_header_preproc" >&6; }
2156
2157 # So?  What about this header?
2158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2159   yes:no: )
2160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2161 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2162     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2164     ;;
2165   no:yes:* )
2166     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2167 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2168     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2169 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2170     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2171 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2172     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2173 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2174     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2175 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2176 ( cat <<\_ASBOX
2177 ## --------------------------------------- ##
2178 ## Report this to http://www.sudo.ws/bugs/ ##
2179 ## --------------------------------------- ##
2180 _ASBOX
2181      ) | sed "s/^/$as_me: WARNING:     /" >&2
2182     ;;
2183 esac
2184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187   $as_echo_n "(cached) " >&6
2188 else
2189   eval "$3=\$ac_header_compiler"
2190 fi
2191 eval ac_res=\$$3
2192                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 fi
2195   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196
2197 } # ac_fn_c_check_header_mongrel
2198
2199 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2200 # -------------------------------------------
2201 # Tests whether TYPE exists after having included INCLUDES, setting cache
2202 # variable VAR accordingly.
2203 ac_fn_c_check_type ()
2204 {
2205   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209   $as_echo_n "(cached) " >&6
2210 else
2211   eval "$3=no"
2212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h.  */
2214 $4
2215 int
2216 main ()
2217 {
2218 if (sizeof ($2))
2219          return 0;
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h.  */
2227 $4
2228 int
2229 main ()
2230 {
2231 if (sizeof (($2)))
2232             return 0;
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238
2239 else
2240   eval "$3=yes"
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 eval ac_res=\$$3
2247                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250
2251 } # ac_fn_c_check_type
2252
2253 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2254 # --------------------------------------------
2255 # Tries to find the compile-time value of EXPR in a program that includes
2256 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2257 # computed
2258 ac_fn_c_compute_int ()
2259 {
2260   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261   if test "$cross_compiling" = yes; then
2262     # Depending upon the size, compute the lo and hi bounds.
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h.  */
2265 $4
2266 int
2267 main ()
2268 {
2269 static int test_array [1 - 2 * !(($2) >= 0)];
2270 test_array [0] = 0
2271
2272   ;
2273   return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2277   ac_lo=0 ac_mid=0
2278   while :; do
2279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h.  */
2281 $4
2282 int
2283 main ()
2284 {
2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2286 test_array [0] = 0
2287
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293   ac_hi=$ac_mid; break
2294 else
2295   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2296                         if test $ac_lo -le $ac_mid; then
2297                           ac_lo= ac_hi=
2298                           break
2299                         fi
2300                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2301 fi
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303   done
2304 else
2305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h.  */
2307 $4
2308 int
2309 main ()
2310 {
2311 static int test_array [1 - 2 * !(($2) < 0)];
2312 test_array [0] = 0
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 if ac_fn_c_try_compile "$LINENO"; then :
2319   ac_hi=-1 ac_mid=-1
2320   while :; do
2321     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h.  */
2323 $4
2324 int
2325 main ()
2326 {
2327 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2328 test_array [0] = 0
2329
2330   ;
2331   return 0;
2332 }
2333 _ACEOF
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335   ac_lo=$ac_mid; break
2336 else
2337   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2338                         if test $ac_mid -le $ac_hi; then
2339                           ac_lo= ac_hi=
2340                           break
2341                         fi
2342                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345   done
2346 else
2347   ac_lo= ac_hi=
2348 fi
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 fi
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 # Binary search between lo and hi bounds.
2353 while test "x$ac_lo" != "x$ac_hi"; do
2354   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h.  */
2357 $4
2358 int
2359 main ()
2360 {
2361 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2362 test_array [0] = 0
2363
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 if ac_fn_c_try_compile "$LINENO"; then :
2369   ac_hi=$ac_mid
2370 else
2371   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2372 fi
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 done
2375 case $ac_lo in #((
2376 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2377 '') ac_retval=1 ;;
2378 esac
2379   else
2380     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h.  */
2382 $4
2383 static long int longval () { return $2; }
2384 static unsigned long int ulongval () { return $2; }
2385 #include <stdio.h>
2386 #include <stdlib.h>
2387 int
2388 main ()
2389 {
2390
2391   FILE *f = fopen ("conftest.val", "w");
2392   if (! f)
2393     return 1;
2394   if (($2) < 0)
2395     {
2396       long int i = longval ();
2397       if (i != ($2))
2398         return 1;
2399       fprintf (f, "%ld", i);
2400     }
2401   else
2402     {
2403       unsigned long int i = ulongval ();
2404       if (i != ($2))
2405         return 1;
2406       fprintf (f, "%lu", i);
2407     }
2408   /* Do not output a trailing newline, as this causes \r\n confusion
2409      on some platforms.  */
2410   return ferror (f) || fclose (f) != 0;
2411
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 if ac_fn_c_try_run "$LINENO"; then :
2417   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2418 else
2419   ac_retval=1
2420 fi
2421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2422   conftest.$ac_objext conftest.beam conftest.$ac_ext
2423 rm -f conftest.val
2424
2425   fi
2426   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2427   as_fn_set_status $ac_retval
2428
2429 } # ac_fn_c_compute_int
2430
2431 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2432 # ----------------------------------------------------
2433 # Tries to find if the field MEMBER exists in type AGGR, after including
2434 # INCLUDES, setting cache variable VAR accordingly.
2435 ac_fn_c_check_member ()
2436 {
2437   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2439 $as_echo_n "checking for $2.$3... " >&6; }
2440 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2441   $as_echo_n "(cached) " >&6
2442 else
2443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h.  */
2445 $5
2446 int
2447 main ()
2448 {
2449 static $2 ac_aggr;
2450 if (ac_aggr.$3)
2451 return 0;
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457   eval "$4=yes"
2458 else
2459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h.  */
2461 $5
2462 int
2463 main ()
2464 {
2465 static $2 ac_aggr;
2466 if (sizeof ac_aggr.$3)
2467 return 0;
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 if ac_fn_c_try_compile "$LINENO"; then :
2473   eval "$4=yes"
2474 else
2475   eval "$4=no"
2476 fi
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 fi
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 fi
2481 eval ac_res=\$$4
2482                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2483 $as_echo "$ac_res" >&6; }
2484   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2485
2486 } # ac_fn_c_check_member
2487
2488 # ac_fn_c_check_decl LINENO SYMBOL VAR
2489 # ------------------------------------
2490 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2491 ac_fn_c_check_decl ()
2492 {
2493   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2495 $as_echo_n "checking whether $2 is declared... " >&6; }
2496 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2497   $as_echo_n "(cached) " >&6
2498 else
2499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h.  */
2501 $4
2502 int
2503 main ()
2504 {
2505 #ifndef $2
2506   (void) $2;
2507 #endif
2508
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 if ac_fn_c_try_compile "$LINENO"; then :
2514   eval "$3=yes"
2515 else
2516   eval "$3=no"
2517 fi
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 fi
2520 eval ac_res=\$$3
2521                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2524
2525 } # ac_fn_c_check_decl
2526 cat >config.log <<_ACEOF
2527 This file contains any messages produced by compilers while
2528 running configure, to aid debugging if configure makes a mistake.
2529
2530 It was created by sudo $as_me 1.7.4p6, which was
2531 generated by GNU Autoconf 2.65.  Invocation command line was
2532
2533   $ $0 $@
2534
2535 _ACEOF
2536 exec 5>>config.log
2537 {
2538 cat <<_ASUNAME
2539 ## --------- ##
2540 ## Platform. ##
2541 ## --------- ##
2542
2543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2548
2549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2550 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2551
2552 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2553 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2555 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2556 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2557 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2558 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2559
2560 _ASUNAME
2561
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567     $as_echo "PATH: $as_dir"
2568   done
2569 IFS=$as_save_IFS
2570
2571 } >&5
2572
2573 cat >&5 <<_ACEOF
2574
2575
2576 ## ----------- ##
2577 ## Core tests. ##
2578 ## ----------- ##
2579
2580 _ACEOF
2581
2582
2583 # Keep a trace of the command line.
2584 # Strip out --no-create and --no-recursion so they do not pile up.
2585 # Strip out --silent because we don't want to record it for future runs.
2586 # Also quote any args containing shell meta-characters.
2587 # Make two passes to allow for proper duplicate-argument suppression.
2588 ac_configure_args=
2589 ac_configure_args0=
2590 ac_configure_args1=
2591 ac_must_keep_next=false
2592 for ac_pass in 1 2
2593 do
2594   for ac_arg
2595   do
2596     case $ac_arg in
2597     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2598     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2599     | -silent | --silent | --silen | --sile | --sil)
2600       continue ;;
2601     *\'*)
2602       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2603     esac
2604     case $ac_pass in
2605     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2606     2)
2607       as_fn_append ac_configure_args1 " '$ac_arg'"
2608       if test $ac_must_keep_next = true; then
2609         ac_must_keep_next=false # Got value, back to normal.
2610       else
2611         case $ac_arg in
2612           *=* | --config-cache | -C | -disable-* | --disable-* \
2613           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2614           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2615           | -with-* | --with-* | -without-* | --without-* | --x)
2616             case "$ac_configure_args0 " in
2617               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2618             esac
2619             ;;
2620           -* ) ac_must_keep_next=true ;;
2621         esac
2622       fi
2623       as_fn_append ac_configure_args " '$ac_arg'"
2624       ;;
2625     esac
2626   done
2627 done
2628 { ac_configure_args0=; unset ac_configure_args0;}
2629 { ac_configure_args1=; unset ac_configure_args1;}
2630
2631 # When interrupted or exit'd, cleanup temporary files, and complete
2632 # config.log.  We remove comments because anyway the quotes in there
2633 # would cause problems or look ugly.
2634 # WARNING: Use '\'' to represent an apostrophe within the trap.
2635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2636 trap 'exit_status=$?
2637   # Save into config.log some information that might help in debugging.
2638   {
2639     echo
2640
2641     cat <<\_ASBOX
2642 ## ---------------- ##
2643 ## Cache variables. ##
2644 ## ---------------- ##
2645 _ASBOX
2646     echo
2647     # The following way of writing the cache mishandles newlines in values,
2648 (
2649   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2650     eval ac_val=\$$ac_var
2651     case $ac_val in #(
2652     *${as_nl}*)
2653       case $ac_var in #(
2654       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2655 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2656       esac
2657       case $ac_var in #(
2658       _ | IFS | as_nl) ;; #(
2659       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2660       *) { eval $ac_var=; unset $ac_var;} ;;
2661       esac ;;
2662     esac
2663   done
2664   (set) 2>&1 |
2665     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2666     *${as_nl}ac_space=\ *)
2667       sed -n \
2668         "s/'\''/'\''\\\\'\'''\''/g;
2669           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2670       ;; #(
2671     *)
2672       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2673       ;;
2674     esac |
2675     sort
2676 )
2677     echo
2678
2679     cat <<\_ASBOX
2680 ## ----------------- ##
2681 ## Output variables. ##
2682 ## ----------------- ##
2683 _ASBOX
2684     echo
2685     for ac_var in $ac_subst_vars
2686     do
2687       eval ac_val=\$$ac_var
2688       case $ac_val in
2689       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2690       esac
2691       $as_echo "$ac_var='\''$ac_val'\''"
2692     done | sort
2693     echo
2694
2695     if test -n "$ac_subst_files"; then
2696       cat <<\_ASBOX
2697 ## ------------------- ##
2698 ## File substitutions. ##
2699 ## ------------------- ##
2700 _ASBOX
2701       echo
2702       for ac_var in $ac_subst_files
2703       do
2704         eval ac_val=\$$ac_var
2705         case $ac_val in
2706         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2707         esac
2708         $as_echo "$ac_var='\''$ac_val'\''"
2709       done | sort
2710       echo
2711     fi
2712
2713     if test -s confdefs.h; then
2714       cat <<\_ASBOX
2715 ## ----------- ##
2716 ## confdefs.h. ##
2717 ## ----------- ##
2718 _ASBOX
2719       echo
2720       cat confdefs.h
2721       echo
2722     fi
2723     test "$ac_signal" != 0 &&
2724       $as_echo "$as_me: caught signal $ac_signal"
2725     $as_echo "$as_me: exit $exit_status"
2726   } >&5
2727   rm -f core *.core core.conftest.* &&
2728     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2729     exit $exit_status
2730 ' 0
2731 for ac_signal in 1 2 13 15; do
2732   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2733 done
2734 ac_signal=0
2735
2736 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2737 rm -f -r conftest* confdefs.h
2738
2739 $as_echo "/* confdefs.h */" > confdefs.h
2740
2741 # Predefined preprocessor variables.
2742
2743 cat >>confdefs.h <<_ACEOF
2744 #define PACKAGE_NAME "$PACKAGE_NAME"
2745 _ACEOF
2746
2747 cat >>confdefs.h <<_ACEOF
2748 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2749 _ACEOF
2750
2751 cat >>confdefs.h <<_ACEOF
2752 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2753 _ACEOF
2754
2755 cat >>confdefs.h <<_ACEOF
2756 #define PACKAGE_STRING "$PACKAGE_STRING"
2757 _ACEOF
2758
2759 cat >>confdefs.h <<_ACEOF
2760 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2761 _ACEOF
2762
2763 cat >>confdefs.h <<_ACEOF
2764 #define PACKAGE_URL "$PACKAGE_URL"
2765 _ACEOF
2766
2767
2768 # Let the site file select an alternate cache file if it wants to.
2769 # Prefer an explicitly selected file to automatically selected ones.
2770 ac_site_file1=NONE
2771 ac_site_file2=NONE
2772 if test -n "$CONFIG_SITE"; then
2773   ac_site_file1=$CONFIG_SITE
2774 elif test "x$prefix" != xNONE; then
2775   ac_site_file1=$prefix/share/config.site
2776   ac_site_file2=$prefix/etc/config.site
2777 else
2778   ac_site_file1=$ac_default_prefix/share/config.site
2779   ac_site_file2=$ac_default_prefix/etc/config.site
2780 fi
2781 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2782 do
2783   test "x$ac_site_file" = xNONE && continue
2784   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2785     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2786 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2787     sed 's/^/| /' "$ac_site_file" >&5
2788     . "$ac_site_file"
2789   fi
2790 done
2791
2792 if test -r "$cache_file"; then
2793   # Some versions of bash will fail to source /dev/null (special files
2794   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2795   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2796     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2797 $as_echo "$as_me: loading cache $cache_file" >&6;}
2798     case $cache_file in
2799       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2800       *)                      . "./$cache_file";;
2801     esac
2802   fi
2803 else
2804   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2805 $as_echo "$as_me: creating cache $cache_file" >&6;}
2806   >$cache_file
2807 fi
2808
2809 # Check that the precious variables saved in the cache have kept the same
2810 # value.
2811 ac_cache_corrupted=false
2812 for ac_var in $ac_precious_vars; do
2813   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2814   eval ac_new_set=\$ac_env_${ac_var}_set
2815   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2816   eval ac_new_val=\$ac_env_${ac_var}_value
2817   case $ac_old_set,$ac_new_set in
2818     set,)
2819       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2820 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2821       ac_cache_corrupted=: ;;
2822     ,set)
2823       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2824 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2825       ac_cache_corrupted=: ;;
2826     ,);;
2827     *)
2828       if test "x$ac_old_val" != "x$ac_new_val"; then
2829         # differences in whitespace do not lead to failure.
2830         ac_old_val_w=`echo x $ac_old_val`
2831         ac_new_val_w=`echo x $ac_new_val`
2832         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2833           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2834 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2835           ac_cache_corrupted=:
2836         else
2837           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2838 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2839           eval $ac_var=\$ac_old_val
2840         fi
2841         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2842 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2843         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2844 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2845       fi;;
2846   esac
2847   # Pass precious variables to config.status.
2848   if test "$ac_new_set" = set; then
2849     case $ac_new_val in
2850     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2851     *) ac_arg=$ac_var=$ac_new_val ;;
2852     esac
2853     case " $ac_configure_args " in
2854       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2855       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2856     esac
2857   fi
2858 done
2859 if $ac_cache_corrupted; then
2860   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2863 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2864   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2865 fi
2866 ## -------------------- ##
2867 ## Main body of script. ##
2868 ## -------------------- ##
2869
2870 ac_ext=c
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875
2876
2877 ac_config_headers="$ac_config_headers config.h pathnames.h"
2878
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2880 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
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 # Begin initial values for man page substitution
2956 #
2957 timedir=/var/adm/sudo
2958 timeout=5
2959 password_timeout=5
2960 sudo_umask=0022
2961 passprompt="Password:"
2962 long_otp_prompt=off
2963 lecture=once
2964 logfac=auth
2965 goodpri=notice
2966 badpri=alert
2967 loglen=80
2968 ignore_dot=off
2969 mail_no_user=on
2970 mail_no_host=off
2971 mail_no_perms=off
2972 mailto=root
2973 mailsub="*** SECURITY information for %h ***"
2974 badpass_message="Sorry, try again."
2975 fqdn=off
2976 runas_default=root
2977 env_editor=off
2978 editor=vi
2979 passwd_tries=3
2980 tty_tickets=on
2981 insults=off
2982 root_sudo=on
2983 path_info=on
2984 ldap_conf=/etc/ldap.conf
2985 ldap_secret=/etc/ldap.secret
2986 netsvc_conf=/etc/netsvc.conf
2987 noexec_file=/usr/local/libexec/sudo_noexec.so
2988 nsswitch_conf=/etc/nsswitch.conf
2989 secure_path="not set"
2990 #
2991 # End initial values for man page substitution
2992 #
2993 INSTALL_NOEXEC=
2994 devdir='$(srcdir)'
2995 PROGS="sudo visudo"
2996 : ${MANTYPE='man'}
2997 : ${mansrcdir='.'}
2998 : ${SUDOERS_MODE='0440'}
2999 : ${SUDOERS_UID='0'}
3000 : ${SUDOERS_GID='0'}
3001 DEV="#"
3002 LDAP="#"
3003 REPLAY="#"
3004 BAMAN=0
3005 LCMAN=0
3006 SEMAN=0
3007 ZLIB=
3008 AUTH_OBJS=
3009 AUTH_REG=
3010 AUTH_EXCL=
3011 AUTH_EXCL_DEF=
3012 AUTH_DEF=passwd
3013
3014 CHECKSHADOW=true
3015 shadow_defs=
3016 shadow_funcs=
3017 shadow_libs=
3018 shadow_libs_optional=
3019
3020 CONFIGURE_ARGS="$@"
3021
3022
3023
3024 # Check whether --with-otp-only was given.
3025 if test "${with_otp_only+set}" = set; then :
3026   withval=$with_otp_only; case $with_otp_only in
3027     yes)        with_passwd="no"
3028                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
3029 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
3030                 ;;
3031 esac
3032 fi
3033
3034
3035
3036 # Check whether --with-alertmail was given.
3037 if test "${with_alertmail+set}" = set; then :
3038   withval=$with_alertmail; case $with_alertmail in
3039     *)          with_mailto="$with_alertmail"
3040                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
3041 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
3042                 ;;
3043 esac
3044 fi
3045
3046
3047
3048
3049 # Check whether --with-devel was given.
3050 if test "${with_devel+set}" = set; then :
3051   withval=$with_devel; case $with_devel in
3052     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
3053 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
3054                 PROGS="${PROGS} testsudoers"
3055                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
3056                 DEV=""
3057                 devdir=.
3058                 ;;
3059     no)         ;;
3060     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
3061 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
3062                 ;;
3063 esac
3064 fi
3065
3066 if test X"$with_devel" != X"yes"; then
3067     ac_cv_prog_cc_g=no
3068 fi
3069
3070
3071 # Check whether --with-CC was given.
3072 if test "${with_CC+set}" = set; then :
3073   withval=$with_CC; case $with_CC in
3074     yes)        as_fn_error "\"must give --with-CC an argument.\"" "$LINENO" 5
3075                 ;;
3076     no)         as_fn_error "\"illegal argument: --without-CC.\"" "$LINENO" 5
3077                 ;;
3078     *)          CC=$with_CC
3079                 ;;
3080 esac
3081 fi
3082
3083
3084
3085 # Check whether --with-rpath was given.
3086 if test "${with_rpath+set}" = set; then :
3087   withval=$with_rpath; case $with_rpath in
3088     yes|no)     ;;
3089     *)          as_fn_error "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3090                 ;;
3091 esac
3092 fi
3093
3094
3095
3096 # Check whether --with-blibpath was given.
3097 if test "${with_blibpath+set}" = set; then :
3098   withval=$with_blibpath; case $with_blibpath in
3099     yes|no)     ;;
3100     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3101 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3102                 ;;
3103 esac
3104 fi
3105
3106
3107
3108 # Check whether --with-bsm-audit was given.
3109 if test "${with_bsm_audit+set}" = set; then :
3110   withval=$with_bsm_audit; case $with_bsm_audit in
3111     yes)        $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3112
3113                 SUDO_LIBS="${SUDO_LIBS} -lbsm"
3114                 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
3115                 ;;
3116     no)         ;;
3117     *)          as_fn_error "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3118                 ;;
3119 esac
3120 fi
3121
3122
3123 ac_ext=c
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 if test -n "$ac_tool_prefix"; then
3129   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3130 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if test "${ac_cv_prog_CC+set}" = set; then :
3134   $as_echo_n "(cached) " >&6
3135 else
3136   if test -n "$CC"; then
3137   ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142   IFS=$as_save_IFS
3143   test -z "$as_dir" && as_dir=.
3144     for ac_exec_ext in '' $ac_executable_extensions; do
3145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148     break 2
3149   fi
3150 done
3151   done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3160 else
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165
3166 fi
3167 if test -z "$ac_cv_prog_CC"; then
3168   ac_ct_CC=$CC
3169   # Extract the first word of "gcc", so it can be a program name with args.
3170 set dummy gcc; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3174   $as_echo_n "(cached) " >&6
3175 else
3176   if test -n "$ac_ct_CC"; then
3177   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182   IFS=$as_save_IFS
3183   test -z "$as_dir" && as_dir=.
3184     for ac_exec_ext in '' $ac_executable_extensions; do
3185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3186     ac_cv_prog_ac_ct_CC="gcc"
3187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188     break 2
3189   fi
3190 done
3191   done
3192 IFS=$as_save_IFS
3193
3194 fi
3195 fi
3196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3197 if test -n "$ac_ct_CC"; then
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3199 $as_echo "$ac_ct_CC" >&6; }
3200 else
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205   if test "x$ac_ct_CC" = x; then
3206     CC=""
3207   else
3208     case $cross_compiling:$ac_tool_warned in
3209 yes:)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3213 esac
3214     CC=$ac_ct_CC
3215   fi
3216 else
3217   CC="$ac_cv_prog_CC"
3218 fi
3219
3220 if test -z "$CC"; then
3221           if test -n "$ac_tool_prefix"; then
3222     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3223 set dummy ${ac_tool_prefix}cc; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if test "${ac_cv_prog_CC+set}" = set; then :
3227   $as_echo_n "(cached) " >&6
3228 else
3229   if test -n "$CC"; then
3230   ac_cv_prog_CC="$CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235   IFS=$as_save_IFS
3236   test -z "$as_dir" && as_dir=.
3237     for ac_exec_ext in '' $ac_executable_extensions; do
3238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239     ac_cv_prog_CC="${ac_tool_prefix}cc"
3240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241     break 2
3242   fi
3243 done
3244   done
3245 IFS=$as_save_IFS
3246
3247 fi
3248 fi
3249 CC=$ac_cv_prog_CC
3250 if test -n "$CC"; then
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3252 $as_echo "$CC" >&6; }
3253 else
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 fi
3257
3258
3259   fi
3260 fi
3261 if test -z "$CC"; then
3262   # Extract the first word of "cc", so it can be a program name with args.
3263 set dummy cc; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if test "${ac_cv_prog_CC+set}" = set; then :
3267   $as_echo_n "(cached) " >&6
3268 else
3269   if test -n "$CC"; then
3270   ac_cv_prog_CC="$CC" # Let the user override the test.
3271 else
3272   ac_prog_rejected=no
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276   IFS=$as_save_IFS
3277   test -z "$as_dir" && as_dir=.
3278     for ac_exec_ext in '' $ac_executable_extensions; do
3279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3281        ac_prog_rejected=yes
3282        continue
3283      fi
3284     ac_cv_prog_CC="cc"
3285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286     break 2
3287   fi
3288 done
3289   done
3290 IFS=$as_save_IFS
3291
3292 if test $ac_prog_rejected = yes; then
3293   # We found a bogon in the path, so make sure we never use it.
3294   set dummy $ac_cv_prog_CC
3295   shift
3296   if test $# != 0; then
3297     # We chose a different compiler from the bogus one.
3298     # However, it has the same basename, so the bogon will be chosen
3299     # first if we set CC to just the basename; use the full file name.
3300     shift
3301     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3302   fi
3303 fi
3304 fi
3305 fi
3306 CC=$ac_cv_prog_CC
3307 if test -n "$CC"; then
3308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309 $as_echo "$CC" >&6; }
3310 else
3311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 fi
3314
3315
3316 fi
3317 if test -z "$CC"; then
3318   if test -n "$ac_tool_prefix"; then
3319   for ac_prog in cl.exe
3320   do
3321     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if test "${ac_cv_prog_CC+set}" = set; then :
3326   $as_echo_n "(cached) " >&6
3327 else
3328   if test -n "$CC"; then
3329   ac_cv_prog_CC="$CC" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334   IFS=$as_save_IFS
3335   test -z "$as_dir" && as_dir=.
3336     for ac_exec_ext in '' $ac_executable_extensions; do
3337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340     break 2
3341   fi
3342 done
3343   done
3344 IFS=$as_save_IFS
3345
3346 fi
3347 fi
3348 CC=$ac_cv_prog_CC
3349 if test -n "$CC"; then
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3352 else
3353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3355 fi
3356
3357
3358     test -n "$CC" && break
3359   done
3360 fi
3361 if test -z "$CC"; then
3362   ac_ct_CC=$CC
3363   for ac_prog in cl.exe
3364 do
3365   # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy $ac_prog; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3370   $as_echo_n "(cached) " >&6
3371 else
3372   if test -n "$ac_ct_CC"; then
3373   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380     for ac_exec_ext in '' $ac_executable_extensions; do
3381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382     ac_cv_prog_ac_ct_CC="$ac_prog"
3383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387   done
3388 IFS=$as_save_IFS
3389
3390 fi
3391 fi
3392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3393 if test -n "$ac_ct_CC"; then
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3395 $as_echo "$ac_ct_CC" >&6; }
3396 else
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 fi
3400
3401
3402   test -n "$ac_ct_CC" && break
3403 done
3404
3405   if test "x$ac_ct_CC" = x; then
3406     CC=""
3407   else
3408     case $cross_compiling:$ac_tool_warned in
3409 yes:)
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412 ac_tool_warned=yes ;;
3413 esac
3414     CC=$ac_ct_CC
3415   fi
3416 fi
3417
3418 fi
3419
3420
3421 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error "no acceptable C compiler found in \$PATH
3424 See \`config.log' for more details." "$LINENO" 5; }
3425
3426 # Provide some information about the compiler.
3427 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3428 set X $ac_compile
3429 ac_compiler=$2
3430 for ac_option in --version -v -V -qversion; do
3431   { { ac_try="$ac_compiler $ac_option >&5"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3439   ac_status=$?
3440   if test -s conftest.err; then
3441     sed '10a\
3442 ... rest of stderr output deleted ...
3443          10q' conftest.err >conftest.er1
3444     cat conftest.er1 >&5
3445   fi
3446   rm -f conftest.er1 conftest.err
3447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448   test $ac_status = 0; }
3449 done
3450
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h.  */
3453
3454 int
3455 main ()
3456 {
3457
3458   ;
3459   return 0;
3460 }
3461 _ACEOF
3462 ac_clean_files_save=$ac_clean_files
3463 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3464 # Try to create an executable without -o first, disregard a.out.
3465 # It will help us diagnose broken compilers, and finding out an intuition
3466 # of exeext.
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3468 $as_echo_n "checking whether the C compiler works... " >&6; }
3469 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3470
3471 # The possible output files:
3472 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3473
3474 ac_rmfiles=
3475 for ac_file in $ac_files
3476 do
3477   case $ac_file in
3478     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3479     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3480   esac
3481 done
3482 rm -f $ac_rmfiles
3483
3484 if { { ac_try="$ac_link_default"
3485 case "(($ac_try" in
3486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487   *) ac_try_echo=$ac_try;;
3488 esac
3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490 $as_echo "$ac_try_echo"; } >&5
3491   (eval "$ac_link_default") 2>&5
3492   ac_status=$?
3493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494   test $ac_status = 0; }; then :
3495   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3496 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3497 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3498 # so that the user can short-circuit this test for compilers unknown to
3499 # Autoconf.
3500 for ac_file in $ac_files ''
3501 do
3502   test -f "$ac_file" || continue
3503   case $ac_file in
3504     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3505         ;;
3506     [ab].out )
3507         # We found the default executable, but exeext='' is most
3508         # certainly right.
3509         break;;
3510     *.* )
3511         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3512         then :; else
3513            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3514         fi
3515         # We set ac_cv_exeext here because the later test for it is not
3516         # safe: cross compilers may not add the suffix if given an `-o'
3517         # argument, so we may need to know it at that point already.
3518         # Even if this section looks crufty: it has the advantage of
3519         # actually working.
3520         break;;
3521     * )
3522         break;;
3523   esac
3524 done
3525 test "$ac_cv_exeext" = no && ac_cv_exeext=
3526
3527 else
3528   ac_file=''
3529 fi
3530 if test -z "$ac_file"; then :
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3533 $as_echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3535
3536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538 { as_fn_set_status 77
3539 as_fn_error "C compiler cannot create executables
3540 See \`config.log' for more details." "$LINENO" 5; }; }
3541 else
3542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3543 $as_echo "yes" >&6; }
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3546 $as_echo_n "checking for C compiler default output file name... " >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3548 $as_echo "$ac_file" >&6; }
3549 ac_exeext=$ac_cv_exeext
3550
3551 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3552 ac_clean_files=$ac_clean_files_save
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3554 $as_echo_n "checking for suffix of executables... " >&6; }
3555 if { { ac_try="$ac_link"
3556 case "(($ac_try" in
3557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558   *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562   (eval "$ac_link") 2>&5
3563   ac_status=$?
3564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565   test $ac_status = 0; }; then :
3566   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3567 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3568 # work properly (i.e., refer to `conftest.exe'), while it won't with
3569 # `rm'.
3570 for ac_file in conftest.exe conftest conftest.*; do
3571   test -f "$ac_file" || continue
3572   case $ac_file in
3573     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3574     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3575           break;;
3576     * ) break;;
3577   esac
3578 done
3579 else
3580   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error "cannot compute suffix of executables: cannot compile and link
3583 See \`config.log' for more details." "$LINENO" 5; }
3584 fi
3585 rm -f conftest conftest$ac_cv_exeext
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3587 $as_echo "$ac_cv_exeext" >&6; }
3588
3589 rm -f conftest.$ac_ext
3590 EXEEXT=$ac_cv_exeext
3591 ac_exeext=$EXEEXT
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h.  */
3594 #include <stdio.h>
3595 int
3596 main ()
3597 {
3598 FILE *f = fopen ("conftest.out", "w");
3599  return ferror (f) || fclose (f) != 0;
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 ac_clean_files="$ac_clean_files conftest.out"
3606 # Check that the compiler produces executables we can run.  If not, either
3607 # the compiler is broken, or we cross compile.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3609 $as_echo_n "checking whether we are cross compiling... " >&6; }
3610 if test "$cross_compiling" != yes; then
3611   { { ac_try="$ac_link"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618   (eval "$ac_link") 2>&5
3619   ac_status=$?
3620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621   test $ac_status = 0; }
3622   if { ac_try='./conftest$ac_cv_exeext'
3623   { { case "(($ac_try" in
3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625   *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629   (eval "$ac_try") 2>&5
3630   ac_status=$?
3631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632   test $ac_status = 0; }; }; then
3633     cross_compiling=no
3634   else
3635     if test "$cross_compiling" = maybe; then
3636         cross_compiling=yes
3637     else
3638         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error "cannot run C compiled programs.
3641 If you meant to cross compile, use \`--host'.
3642 See \`config.log' for more details." "$LINENO" 5; }
3643     fi
3644   fi
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3647 $as_echo "$cross_compiling" >&6; }
3648
3649 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3650 ac_clean_files=$ac_clean_files_save
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3652 $as_echo_n "checking for suffix of object files... " >&6; }
3653 if test "${ac_cv_objext+set}" = set; then :
3654   $as_echo_n "(cached) " >&6
3655 else
3656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h.  */
3658
3659 int
3660 main ()
3661 {
3662
3663   ;
3664   return 0;
3665 }
3666 _ACEOF
3667 rm -f conftest.o conftest.obj
3668 if { { ac_try="$ac_compile"
3669 case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675   (eval "$ac_compile") 2>&5
3676   ac_status=$?
3677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678   test $ac_status = 0; }; then :
3679   for ac_file in conftest.o conftest.obj conftest.*; do
3680   test -f "$ac_file" || continue;
3681   case $ac_file in
3682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3683     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3684        break;;
3685   esac
3686 done
3687 else
3688   $as_echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error "cannot compute suffix of object files: cannot compile
3694 See \`config.log' for more details." "$LINENO" 5; }
3695 fi
3696 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3697 fi
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3699 $as_echo "$ac_cv_objext" >&6; }
3700 OBJEXT=$ac_cv_objext
3701 ac_objext=$OBJEXT
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3703 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3704 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709
3710 int
3711 main ()
3712 {
3713 #ifndef __GNUC__
3714        choke me
3715 #endif
3716
3717   ;
3718   return 0;
3719 }
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722   ac_compiler_gnu=yes
3723 else
3724   ac_compiler_gnu=no
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3728
3729 fi
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3731 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3732 if test $ac_compiler_gnu = yes; then
3733   GCC=yes
3734 else
3735   GCC=
3736 fi
3737 ac_test_CFLAGS=${CFLAGS+set}
3738 ac_save_CFLAGS=$CFLAGS
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3740 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3741 if test "${ac_cv_prog_cc_g+set}" = set; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   ac_save_c_werror_flag=$ac_c_werror_flag
3745    ac_c_werror_flag=yes
3746    ac_cv_prog_cc_g=no
3747    CFLAGS="-g"
3748    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h.  */
3750
3751 int
3752 main ()
3753 {
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760   ac_cv_prog_cc_g=yes
3761 else
3762   CFLAGS=""
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
3776 else
3777   ac_c_werror_flag=$ac_save_c_werror_flag
3778          CFLAGS="-g"
3779          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h.  */
3781
3782 int
3783 main ()
3784 {
3785
3786   ;
3787   return 0;
3788 }
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791   ac_cv_prog_cc_g=yes
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 fi
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798    ac_c_werror_flag=$ac_save_c_werror_flag
3799 fi
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3801 $as_echo "$ac_cv_prog_cc_g" >&6; }
3802 if test "$ac_test_CFLAGS" = set; then
3803   CFLAGS=$ac_save_CFLAGS
3804 elif test $ac_cv_prog_cc_g = yes; then
3805   if test "$GCC" = yes; then
3806     CFLAGS="-g -O2"
3807   else
3808     CFLAGS="-g"
3809   fi
3810 else
3811   if test "$GCC" = yes; then
3812     CFLAGS="-O2"
3813   else
3814     CFLAGS=
3815   fi
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3818 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3819 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3820   $as_echo_n "(cached) " >&6
3821 else
3822   ac_cv_prog_cc_c89=no
3823 ac_save_CC=$CC
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h.  */
3826 #include <stdarg.h>
3827 #include <stdio.h>
3828 #include <sys/types.h>
3829 #include <sys/stat.h>
3830 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3831 struct buf { int x; };
3832 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3833 static char *e (p, i)
3834      char **p;
3835      int i;
3836 {
3837   return p[i];
3838 }
3839 static char *f (char * (*g) (char **, int), char **p, ...)
3840 {
3841   char *s;
3842   va_list v;
3843   va_start (v,p);
3844   s = g (p, va_arg (v,int));
3845   va_end (v);
3846   return s;
3847 }
3848
3849 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3850    function prototypes and stuff, but not '\xHH' hex character constants.
3851    These don't provoke an error unfortunately, instead are silently treated
3852    as 'x'.  The following induces an error, until -std is added to get
3853    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3854    array size at least.  It's necessary to write '\x00'==0 to get something
3855    that's true only with -std.  */
3856 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3857
3858 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3859    inside strings and character constants.  */
3860 #define FOO(x) 'x'
3861 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3862
3863 int test (int i, double x);
3864 struct s1 {int (*f) (int a);};
3865 struct s2 {int (*f) (double a);};
3866 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3867 int argc;
3868 char **argv;
3869 int
3870 main ()
3871 {
3872 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3873   ;
3874   return 0;
3875 }
3876 _ACEOF
3877 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3878         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3879 do
3880   CC="$ac_save_CC $ac_arg"
3881   if ac_fn_c_try_compile "$LINENO"; then :
3882   ac_cv_prog_cc_c89=$ac_arg
3883 fi
3884 rm -f core conftest.err conftest.$ac_objext
3885   test "x$ac_cv_prog_cc_c89" != "xno" && break
3886 done
3887 rm -f conftest.$ac_ext
3888 CC=$ac_save_CC
3889
3890 fi
3891 # AC_CACHE_VAL
3892 case "x$ac_cv_prog_cc_c89" in
3893   x)
3894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3895 $as_echo "none needed" >&6; } ;;
3896   xno)
3897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3898 $as_echo "unsupported" >&6; } ;;
3899   *)
3900     CC="$CC $ac_cv_prog_cc_c89"
3901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3902 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3903 esac
3904 if test "x$ac_cv_prog_cc_c89" != xno; then :
3905
3906 fi
3907
3908 ac_ext=c
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913
3914
3915
3916 # Check whether --with-linux-audit was given.
3917 if test "${with_linux_audit+set}" = set; then :
3918   withval=$with_linux_audit; case $with_linux_audit in
3919     yes)
3920                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h.  */
3922 #include <libaudit.h>
3923 int
3924 main ()
3925 {
3926 int i = AUDIT_USER_CMD; (void)i;
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932
3933                     $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3934
3935                     SUDO_LIBS="${SUDO_LIBS} -laudit"
3936                     SUDO_OBJS="${SUDO_OBJS} linux_audit.o"
3937
3938 else
3939
3940                     as_fn_error "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3941
3942 fi
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944                 ;;
3945     no)         ;;
3946     *)          as_fn_error "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3947                 ;;
3948 esac
3949 fi
3950
3951
3952
3953 # Check whether --with-incpath was given.
3954 if test "${with_incpath+set}" = set; then :
3955   withval=$with_incpath; case $with_incpath in
3956     yes)        as_fn_error "\"must give --with-incpath an argument.\"" "$LINENO" 5
3957                 ;;
3958     no)         as_fn_error "\"--without-incpath not supported.\"" "$LINENO" 5
3959                 ;;
3960     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3961 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3962                 for i in ${with_incpath}; do
3963                     CPPFLAGS="${CPPFLAGS} -I${i}"
3964                 done
3965                 ;;
3966 esac
3967 fi
3968
3969
3970
3971 # Check whether --with-libpath was given.
3972 if test "${with_libpath+set}" = set; then :
3973   withval=$with_libpath; case $with_libpath in
3974     yes)        as_fn_error "\"must give --with-libpath an argument.\"" "$LINENO" 5
3975                 ;;
3976     no)         as_fn_error "\"--without-libpath not supported.\"" "$LINENO" 5
3977                 ;;
3978     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3979 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3980                 ;;
3981 esac
3982 fi
3983
3984
3985
3986 # Check whether --with-libraries was given.
3987 if test "${with_libraries+set}" = set; then :
3988   withval=$with_libraries; case $with_libraries in
3989     yes)        as_fn_error "\"must give --with-libraries an argument.\"" "$LINENO" 5
3990                 ;;
3991     no)         as_fn_error "\"--without-libraries not supported.\"" "$LINENO" 5
3992                 ;;
3993     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3994 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3995                 ;;
3996 esac
3997 fi
3998
3999
4000
4001 # Check whether --with-efence was given.
4002 if test "${with_efence+set}" = set; then :
4003   withval=$with_efence; case $with_efence in
4004     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
4005 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
4006                 LIBS="${LIBS} -lefence"
4007                 if test -f /usr/local/lib/libefence.a; then
4008                     with_libpath="${with_libpath} /usr/local/lib"
4009                 fi
4010                 ;;
4011     no)         ;;
4012     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
4013 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
4014                 ;;
4015 esac
4016 fi
4017
4018
4019
4020 # Check whether --with-csops was given.
4021 if test "${with_csops+set}" = set; then :
4022   withval=$with_csops; case $with_csops in
4023     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
4024 $as_echo "$as_me: Adding CSOps standard options" >&6;}
4025                 CHECKSIA=false
4026                 with_ignore_dot=yes
4027                 insults=on
4028                 with_classic_insults=yes
4029                 with_csops_insults=yes
4030                 with_env_editor=yes
4031                 : ${mansectsu='8'}
4032                 : ${mansectform='5'}
4033                 ;;
4034     no)         ;;
4035     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
4036 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
4037                 ;;
4038 esac
4039 fi
4040
4041
4042
4043 # Check whether --with-passwd was given.
4044 if test "${with_passwd+set}" = set; then :
4045   withval=$with_passwd; case $with_passwd in
4046     yes|no)     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
4047 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
4048                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
4049 $as_echo "$with_passwd" >&6; }
4050                 AUTH_DEF=""
4051                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
4052                 ;;
4053     *)          as_fn_error "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
4054                 ;;
4055 esac
4056 fi
4057
4058
4059
4060 # Check whether --with-skey was given.
4061 if test "${with_skey+set}" = set; then :
4062   withval=$with_skey; case $with_skey in
4063     no)         with_skey=""
4064                 ;;
4065     *)          $as_echo "#define HAVE_SKEY 1" >>confdefs.h
4066
4067                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
4068 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
4069                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4070 $as_echo "yes" >&6; }
4071                 AUTH_REG="$AUTH_REG S/Key"
4072                 ;;
4073 esac
4074 fi
4075
4076
4077
4078 # Check whether --with-opie was given.
4079 if test "${with_opie+set}" = set; then :
4080   withval=$with_opie; case $with_opie in
4081     no)         with_opie=""
4082                 ;;
4083     *)          $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4084
4085                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4086 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4087                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4088 $as_echo "yes" >&6; }
4089                 AUTH_REG="$AUTH_REG NRL_OPIE"
4090                 ;;
4091 esac
4092 fi
4093
4094
4095
4096 # Check whether --with-long-otp-prompt was given.
4097 if test "${with_long_otp_prompt+set}" = set; then :
4098   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4099     yes)        $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4100
4101                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4102 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4103                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4104 $as_echo "yes" >&6; }
4105                 long_otp_prompt=on
4106                 ;;
4107     no)         long_otp_prompt=off
4108                 ;;
4109     *)          as_fn_error "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4110                 ;;
4111 esac
4112 fi
4113
4114
4115
4116 # Check whether --with-SecurID was given.
4117 if test "${with_SecurID+set}" = set; then :
4118   withval=$with_SecurID; case $with_SecurID in
4119     no)         with_SecurID="";;
4120     *)          $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4121
4122                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4123 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4124                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4125 $as_echo "yes" >&6; }
4126                 AUTH_EXCL="$AUTH_EXCL SecurID"
4127                 ;;
4128 esac
4129 fi
4130
4131
4132
4133 # Check whether --with-fwtk was given.
4134 if test "${with_fwtk+set}" = set; then :
4135   withval=$with_fwtk; case $with_fwtk in
4136     no)         with_fwtk="";;
4137     *)          $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4138
4139                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4140 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4141                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4142 $as_echo "yes" >&6; }
4143                 AUTH_EXCL="$AUTH_EXCL FWTK"
4144                 ;;
4145 esac
4146 fi
4147
4148
4149
4150 # Check whether --with-kerb4 was given.
4151 if test "${with_kerb4+set}" = set; then :
4152   withval=$with_kerb4; case $with_kerb4 in
4153     no)         with_kerb4="";;
4154     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
4155 $as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
4156                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4157 $as_echo "yes" >&6; }
4158                 AUTH_REG="$AUTH_REG kerb4"
4159                 ;;
4160 esac
4161 fi
4162
4163
4164
4165 # Check whether --with-kerb5 was given.
4166 if test "${with_kerb5+set}" = set; then :
4167   withval=$with_kerb5; case $with_kerb5 in
4168     no)         with_kerb5="";;
4169     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4170 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4171                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4172 $as_echo "yes" >&6; }
4173                 AUTH_REG="$AUTH_REG kerb5"
4174                 ;;
4175 esac
4176 fi
4177
4178
4179
4180 # Check whether --with-aixauth was given.
4181 if test "${with_aixauth+set}" = set; then :
4182   withval=$with_aixauth; case $with_aixauth in
4183     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4184     no)         ;;
4185     *)          as_fn_error "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4186                 ;;
4187 esac
4188 fi
4189
4190
4191
4192 # Check whether --with-pam was given.
4193 if test "${with_pam+set}" = set; then :
4194   withval=$with_pam; case $with_pam in
4195     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
4196     no)         ;;
4197     *)          as_fn_error "\"--with-pam does not take an argument.\"" "$LINENO" 5
4198                 ;;
4199 esac
4200 fi
4201
4202
4203
4204 # Check whether --with-AFS was given.
4205 if test "${with_AFS+set}" = set; then :
4206   withval=$with_AFS; case $with_AFS in
4207     yes)        $as_echo "#define HAVE_AFS 1" >>confdefs.h
4208
4209                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4210 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4211                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4212 $as_echo "yes" >&6; }
4213                 AUTH_REG="$AUTH_REG AFS"
4214                 ;;
4215     no)         ;;
4216     *)          as_fn_error "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4217                 ;;
4218 esac
4219 fi
4220
4221
4222
4223 # Check whether --with-DCE was given.
4224 if test "${with_DCE+set}" = set; then :
4225   withval=$with_DCE; case $with_DCE in
4226     yes)        $as_echo "#define HAVE_DCE 1" >>confdefs.h
4227
4228                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4229 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4230                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4231 $as_echo "yes" >&6; }
4232                 AUTH_REG="$AUTH_REG DCE"
4233                 ;;
4234     no)         ;;
4235     *)          as_fn_error "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4236                 ;;
4237 esac
4238 fi
4239
4240
4241
4242 # Check whether --with-logincap was given.
4243 if test "${with_logincap+set}" = set; then :
4244   withval=$with_logincap; case $with_logincap in
4245     yes|no)     ;;
4246     *)          as_fn_error "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4247                 ;;
4248 esac
4249 fi
4250
4251
4252
4253 # Check whether --with-bsdauth was given.
4254 if test "${with_bsdauth+set}" = set; then :
4255   withval=$with_bsdauth; case $with_bsdauth in
4256     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4257     no)         ;;
4258     *)          as_fn_error "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4259                 ;;
4260 esac
4261 fi
4262
4263
4264
4265 # Check whether --with-project was given.
4266 if test "${with_project+set}" = set; then :
4267   withval=$with_project; case $with_project in
4268     yes|no)     ;;
4269     no) ;;
4270     *)          as_fn_error "\"--with-project does not take an argument.\"" "$LINENO" 5
4271                 ;;
4272 esac
4273 fi
4274
4275
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4277 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4278
4279 # Check whether --with-lecture was given.
4280 if test "${with_lecture+set}" = set; then :
4281   withval=$with_lecture; case $with_lecture in
4282     yes|short|always)   lecture=once
4283                 ;;
4284     no|none|never)      lecture=never
4285                 ;;
4286     *)          as_fn_error "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4287                 ;;
4288 esac
4289 fi
4290
4291 if test "$lecture" = "once"; then
4292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4293 $as_echo "yes" >&6; }
4294 else
4295     $as_echo "#define NO_LECTURE 1" >>confdefs.h
4296
4297     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 fi
4300
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4302 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4303
4304 # Check whether --with-logging was given.
4305 if test "${with_logging+set}" = set; then :
4306   withval=$with_logging; case $with_logging in
4307     yes)        as_fn_error "\"must give --with-logging an argument.\"" "$LINENO" 5
4308                 ;;
4309     no)         as_fn_error "\"--without-logging not supported.\"" "$LINENO" 5
4310                 ;;
4311     syslog)     $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4312
4313                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4314 $as_echo "syslog" >&6; }
4315                 ;;
4316     file)       $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4317
4318                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4319 $as_echo "file" >&6; }
4320                 ;;
4321     both)       $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4322
4323                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4324 $as_echo "both" >&6; }
4325                 ;;
4326     *)          as_fn_error "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4327                 ;;
4328 esac
4329 else
4330   $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4332 $as_echo "syslog" >&6; }
4333 fi
4334
4335
4336
4337 # Check whether --with-logfac was given.
4338 if test "${with_logfac+set}" = set; then :
4339   withval=$with_logfac; case $with_logfac in
4340     yes)        as_fn_error "\"must give --with-logfac an argument.\"" "$LINENO" 5
4341                 ;;
4342     no)         as_fn_error "\"--without-logfac not supported.\"" "$LINENO" 5
4343                 ;;
4344     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
4345                 ;;
4346     *)          as_fn_error "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4347                 ;;
4348 esac
4349 fi
4350
4351
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4353 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4354
4355 # Check whether --with-goodpri was given.
4356 if test "${with_goodpri+set}" = set; then :
4357   withval=$with_goodpri; case $with_goodpri in
4358     yes)        as_fn_error "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4359                 ;;
4360     no)         as_fn_error "\"--without-goodpri not supported.\"" "$LINENO" 5
4361                 ;;
4362     alert|crit|debug|emerg|err|info|notice|warning)
4363                 goodpri=$with_goodpri
4364                 ;;
4365     *)          as_fn_error "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4366                 ;;
4367 esac
4368 fi
4369
4370
4371 cat >>confdefs.h <<_ACEOF
4372 #define PRI_SUCCESS "$goodpri"
4373 _ACEOF
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4376 $as_echo "$goodpri" >&6; }
4377
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4379 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4380
4381 # Check whether --with-badpri was given.
4382 if test "${with_badpri+set}" = set; then :
4383   withval=$with_badpri; case $with_badpri in
4384     yes)        as_fn_error "\"must give --with-badpri an argument.\"" "$LINENO" 5
4385                 ;;
4386     no)         as_fn_error "\"--without-badpri not supported.\"" "$LINENO" 5
4387                 ;;
4388     alert|crit|debug|emerg|err|info|notice|warning)
4389                 badpri=$with_badpri
4390                 ;;
4391     *)          as_fn_error "$with_badpri is not a supported syslog priority." "$LINENO" 5
4392                 ;;
4393 esac
4394 fi
4395
4396
4397 cat >>confdefs.h <<_ACEOF
4398 #define PRI_FAILURE "$badpri"
4399 _ACEOF
4400
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4402 $as_echo "$badpri" >&6; }
4403
4404
4405 # Check whether --with-logpath was given.
4406 if test "${with_logpath+set}" = set; then :
4407   withval=$with_logpath; case $with_logpath in
4408     yes)        as_fn_error "\"must give --with-logpath an argument.\"" "$LINENO" 5
4409                 ;;
4410     no)         as_fn_error "\"--without-logpath not supported.\"" "$LINENO" 5
4411                 ;;
4412 esac
4413 fi
4414
4415
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4417 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4418
4419 # Check whether --with-loglen was given.
4420 if test "${with_loglen+set}" = set; then :
4421   withval=$with_loglen; case $with_loglen in
4422     yes)        as_fn_error "\"must give --with-loglen an argument.\"" "$LINENO" 5
4423                 ;;
4424     no)         as_fn_error "\"--without-loglen not supported.\"" "$LINENO" 5
4425                 ;;
4426     [0-9]*)     loglen=$with_loglen
4427                 ;;
4428     *)          as_fn_error "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4429                 ;;
4430 esac
4431 fi
4432
4433
4434 cat >>confdefs.h <<_ACEOF
4435 #define MAXLOGFILELEN $loglen
4436 _ACEOF
4437
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4439 $as_echo "$loglen" >&6; }
4440
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4442 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4443
4444 # Check whether --with-ignore-dot was given.
4445 if test "${with_ignore_dot+set}" = set; then :
4446   withval=$with_ignore_dot; case $with_ignore_dot in
4447     yes)        ignore_dot=on
4448                 ;;
4449     no)         ignore_dot=off
4450                 ;;
4451     *)          as_fn_error "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4452                 ;;
4453 esac
4454 fi
4455
4456 if test "$ignore_dot" = "on"; then
4457     $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4458
4459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460 $as_echo "yes" >&6; }
4461 else
4462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4464 fi
4465
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4467 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4468
4469 # Check whether --with-mail-if-no-user was given.
4470 if test "${with_mail_if_no_user+set}" = set; then :
4471   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4472     yes)        mail_no_user=on
4473                 ;;
4474     no)         mail_no_user=off
4475                 ;;
4476     *)          as_fn_error "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4477                 ;;
4478 esac
4479 fi
4480
4481 if test "$mail_no_user" = "on"; then
4482     $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4483
4484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4485 $as_echo "yes" >&6; }
4486 else
4487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 fi
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4492 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4493
4494 # Check whether --with-mail-if-no-host was given.
4495 if test "${with_mail_if_no_host+set}" = set; then :
4496   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4497     yes)        mail_no_host=on
4498                 ;;
4499     no)         mail_no_host=off
4500                 ;;
4501     *)          as_fn_error "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4502                 ;;
4503 esac
4504 fi
4505
4506 if test "$mail_no_host" = "on"; then
4507     $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4508
4509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510 $as_echo "yes" >&6; }
4511 else
4512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4514 fi
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4517 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4518
4519 # Check whether --with-mail-if-noperms was given.
4520 if test "${with_mail_if_noperms+set}" = set; then :
4521   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4522     yes)        mail_noperms=on
4523                 ;;
4524     no)         mail_noperms=off
4525                 ;;
4526     *)          as_fn_error "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4527                 ;;
4528 esac
4529 fi
4530
4531 if test "$mail_noperms" = "on"; then
4532     $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4533
4534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535 $as_echo "yes" >&6; }
4536 else
4537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4539 fi
4540
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4542 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4543
4544 # Check whether --with-mailto was given.
4545 if test "${with_mailto+set}" = set; then :
4546   withval=$with_mailto; case $with_mailto in
4547     yes)        as_fn_error "\"must give --with-mailto an argument.\"" "$LINENO" 5
4548                 ;;
4549     no)         as_fn_error "\"--without-mailto not supported.\"" "$LINENO" 5
4550                 ;;
4551     *)          mailto=$with_mailto
4552                 ;;
4553 esac
4554 fi
4555
4556
4557 cat >>confdefs.h <<_ACEOF
4558 #define MAILTO "$mailto"
4559 _ACEOF
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4562 $as_echo "$mailto" >&6; }
4563
4564
4565 # Check whether --with-mailsubject was given.
4566 if test "${with_mailsubject+set}" = set; then :
4567   withval=$with_mailsubject; case $with_mailsubject in
4568     yes)        as_fn_error "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4569                 ;;
4570     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4571 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4572                 ;;
4573     *)          mailsub="$with_mailsubject"
4574                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4575 $as_echo_n "checking sudo mail subject... " >&6; }
4576                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4577 $as_echo "Using alert mail subject: $mailsub" >&6; }
4578                 ;;
4579 esac
4580 fi
4581
4582
4583 cat >>confdefs.h <<_ACEOF
4584 #define MAILSUBJECT "$mailsub"
4585 _ACEOF
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4589 $as_echo_n "checking for bad password prompt... " >&6; }
4590
4591 # Check whether --with-passprompt was given.
4592 if test "${with_passprompt+set}" = set; then :
4593   withval=$with_passprompt; case $with_passprompt in
4594     yes)        as_fn_error "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4595                 ;;
4596     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4597 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4598                 ;;
4599     *)          passprompt="$with_passprompt"
4600 esac
4601 fi
4602
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4604 $as_echo "$passprompt" >&6; }
4605
4606 cat >>confdefs.h <<_ACEOF
4607 #define PASSPROMPT "$passprompt"
4608 _ACEOF
4609
4610
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4612 $as_echo_n "checking for bad password message... " >&6; }
4613
4614 # Check whether --with-badpass-message was given.
4615 if test "${with_badpass_message+set}" = set; then :
4616   withval=$with_badpass_message; case $with_badpass_message in
4617     yes)        as_fn_error "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4618                 ;;
4619     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4620 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4621                 ;;
4622     *)          badpass_message="$with_badpass_message"
4623                 ;;
4624 esac
4625 fi
4626
4627
4628 cat >>confdefs.h <<_ACEOF
4629 #define INCORRECT_PASSWORD "$badpass_message"
4630 _ACEOF
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4633 $as_echo "$badpass_message" >&6; }
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4636 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4637
4638 # Check whether --with-fqdn was given.
4639 if test "${with_fqdn+set}" = set; then :
4640   withval=$with_fqdn; case $with_fqdn in
4641     yes)        fqdn=on
4642                 ;;
4643     no)         fqdn=off
4644                 ;;
4645     *)          as_fn_error "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4646                 ;;
4647 esac
4648 fi
4649
4650 if test "$fqdn" = "on"; then
4651     $as_echo "#define FQDN 1" >>confdefs.h
4652
4653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4654 $as_echo "yes" >&6; }
4655 else
4656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4658 fi
4659
4660
4661 # Check whether --with-timedir was given.
4662 if test "${with_timedir+set}" = set; then :
4663   withval=$with_timedir; case $with_timedir in
4664     yes)        as_fn_error "\"must give --with-timedir an argument.\"" "$LINENO" 5
4665                 ;;
4666     no)         as_fn_error "\"--without-timedir not supported.\"" "$LINENO" 5
4667                 ;;
4668 esac
4669 fi
4670
4671
4672
4673 # Check whether --with-iologdir was given.
4674 if test "${with_iologdir+set}" = set; then :
4675   withval=$with_iologdir; case $with_iologdir in
4676     yes)        ;;
4677     no)         ;;
4678 esac
4679 fi
4680
4681
4682
4683 # Check whether --with-sendmail was given.
4684 if test "${with_sendmail+set}" = set; then :
4685   withval=$with_sendmail; case $with_sendmail in
4686     yes)        with_sendmail=""
4687                 ;;
4688     no)         ;;
4689     *)          cat >>confdefs.h <<EOF
4690 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4691 EOF
4692
4693                 ;;
4694 esac
4695 fi
4696
4697
4698
4699 # Check whether --with-sudoers-mode was given.
4700 if test "${with_sudoers_mode+set}" = set; then :
4701   withval=$with_sudoers_mode; case $with_sudoers_mode in
4702     yes)        as_fn_error "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4703                 ;;
4704     no)         as_fn_error "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4705                 ;;
4706     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
4707                 ;;
4708     0*)         SUDOERS_MODE=$with_sudoers_mode
4709                 ;;
4710     *)          as_fn_error "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4711                 ;;
4712 esac
4713 fi
4714
4715
4716
4717 # Check whether --with-sudoers-uid was given.
4718 if test "${with_sudoers_uid+set}" = set; then :
4719   withval=$with_sudoers_uid; case $with_sudoers_uid in
4720     yes)        as_fn_error "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4721                 ;;
4722     no)         as_fn_error "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4723                 ;;
4724     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
4725                 ;;
4726     *)          as_fn_error "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4727                 ;;
4728 esac
4729 fi
4730
4731
4732
4733 # Check whether --with-sudoers-gid was given.
4734 if test "${with_sudoers_gid+set}" = set; then :
4735   withval=$with_sudoers_gid; case $with_sudoers_gid in
4736     yes)        as_fn_error "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4737                 ;;
4738     no)         as_fn_error "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4739                 ;;
4740     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
4741                 ;;
4742     *)          as_fn_error "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4743                 ;;
4744 esac
4745 fi
4746
4747
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4749 $as_echo_n "checking for umask programs should be run with... " >&6; }
4750
4751 # Check whether --with-umask was given.
4752 if test "${with_umask+set}" = set; then :
4753   withval=$with_umask; case $with_umask in
4754     yes)        as_fn_error "\"must give --with-umask an argument.\"" "$LINENO" 5
4755                 ;;
4756     no)         sudo_umask=0777
4757                 ;;
4758     [0-9]*)     sudo_umask=$with_umask
4759                 ;;
4760     *)          as_fn_error "\"you must enter a numeric mask.\"" "$LINENO" 5
4761                 ;;
4762 esac
4763 fi
4764
4765
4766 cat >>confdefs.h <<_ACEOF
4767 #define SUDO_UMASK $sudo_umask
4768 _ACEOF
4769
4770 if test "$sudo_umask" = "0777"; then
4771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4772 $as_echo "user" >&6; }
4773 else
4774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4775 $as_echo "$sudo_umask" >&6; }
4776 fi
4777
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4779 $as_echo_n "checking for default user to run commands as... " >&6; }
4780
4781 # Check whether --with-runas-default was given.
4782 if test "${with_runas_default+set}" = set; then :
4783   withval=$with_runas_default; case $with_runas_default in
4784     yes)        as_fn_error "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4785                 ;;
4786     no)         as_fn_error "\"--without-runas-default not supported.\"" "$LINENO" 5
4787                 ;;
4788     *)          runas_default="$with_runas_default"
4789                 ;;
4790 esac
4791 fi
4792
4793
4794 cat >>confdefs.h <<_ACEOF
4795 #define RUNAS_DEFAULT "$runas_default"
4796 _ACEOF
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4799 $as_echo "$runas_default" >&6; }
4800
4801
4802 # Check whether --with-exempt was given.
4803 if test "${with_exempt+set}" = set; then :
4804   withval=$with_exempt; case $with_exempt in
4805     yes)        as_fn_error "\"must give --with-exempt an argument.\"" "$LINENO" 5
4806                 ;;
4807     no)         as_fn_error "\"--without-exempt not supported.\"" "$LINENO" 5
4808                 ;;
4809     *)
4810 cat >>confdefs.h <<_ACEOF
4811 #define EXEMPTGROUP "$with_exempt"
4812 _ACEOF
4813
4814                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4815 $as_echo_n "checking for group to be exempt from password... " >&6; }
4816                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4817 $as_echo "$with_exempt" >&6; }
4818                 ;;
4819 esac
4820 fi
4821
4822
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4824 $as_echo_n "checking for editor that visudo should use... " >&6; }
4825
4826 # Check whether --with-editor was given.
4827 if test "${with_editor+set}" = set; then :
4828   withval=$with_editor; case $with_editor in
4829     yes)        as_fn_error "\"must give --with-editor an argument.\"" "$LINENO" 5
4830                 ;;
4831     no)         as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4832                 ;;
4833     *)
4834 cat >>confdefs.h <<_ACEOF
4835 #define EDITOR "$with_editor"
4836 _ACEOF
4837
4838                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4839 $as_echo "$with_editor" >&6; }
4840                 editor="$with_editor"
4841                 ;;
4842 esac
4843 else
4844   $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4846 $as_echo "vi" >&6; }
4847 fi
4848
4849
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4851 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4852
4853 # Check whether --with-env-editor was given.
4854 if test "${with_env_editor+set}" = set; then :
4855   withval=$with_env_editor; case $with_env_editor in
4856     yes)        env_editor=on
4857                 ;;
4858     no)         env_editor=off
4859                 ;;
4860     *)          as_fn_error "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4861                 ;;
4862 esac
4863 fi
4864
4865 if test "$env_editor" = "on"; then
4866     $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4867
4868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4869 $as_echo "yes" >&6; }
4870 else
4871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4873 fi
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4876 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4877
4878 # Check whether --with-passwd-tries was given.
4879 if test "${with_passwd_tries+set}" = set; then :
4880   withval=$with_passwd_tries; case $with_passwd_tries in
4881     yes)        ;;
4882     no)         as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4883                 ;;
4884     [1-9]*)     passwd_tries=$with_passwd_tries
4885                 ;;
4886     *)          as_fn_error "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4887                 ;;
4888 esac
4889 fi
4890
4891
4892 cat >>confdefs.h <<_ACEOF
4893 #define TRIES_FOR_PASSWORD $passwd_tries
4894 _ACEOF
4895
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4897 $as_echo "$passwd_tries" >&6; }
4898
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4900 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4901
4902 # Check whether --with-timeout was given.
4903 if test "${with_timeout+set}" = set; then :
4904   withval=$with_timeout; case $with_timeout in
4905     yes)        ;;
4906     no)         timeout=0
4907                 ;;
4908     [0-9]*)     timeout=$with_timeout
4909                 ;;
4910     *)          as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4911                 ;;
4912 esac
4913 fi
4914
4915
4916 cat >>confdefs.h <<_ACEOF
4917 #define TIMEOUT $timeout
4918 _ACEOF
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4921 $as_echo "$timeout" >&6; }
4922
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4924 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4925
4926 # Check whether --with-password-timeout was given.
4927 if test "${with_password_timeout+set}" = set; then :
4928   withval=$with_password_timeout; case $with_password_timeout in
4929     yes)        ;;
4930     no)         password_timeout=0
4931                 ;;
4932     [0-9]*)     password_timeout=$with_password_timeout
4933                 ;;
4934     *)          as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4935                 ;;
4936 esac
4937 fi
4938
4939
4940 cat >>confdefs.h <<_ACEOF
4941 #define PASSWORD_TIMEOUT $password_timeout
4942 _ACEOF
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4945 $as_echo "$password_timeout" >&6; }
4946
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4948 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4949
4950 # Check whether --with-tty-tickets was given.
4951 if test "${with_tty_tickets+set}" = set; then :
4952   withval=$with_tty_tickets; case $with_tty_tickets in
4953     yes)        tty_tickets=on
4954                 ;;
4955     no)         tty_tickets=off
4956                 ;;
4957     *)          as_fn_error "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4958                 ;;
4959 esac
4960 fi
4961
4962 if test "$tty_tickets" = "off"; then
4963     $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4964
4965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4967 else
4968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4969 $as_echo "yes" >&6; }
4970 fi
4971
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4973 $as_echo_n "checking whether to include insults... " >&6; }
4974
4975 # Check whether --with-insults was given.
4976 if test "${with_insults+set}" = set; then :
4977   withval=$with_insults; case $with_insults in
4978     yes)        insults=on
4979                 with_classic_insults=yes
4980                 with_csops_insults=yes
4981                 ;;
4982     disabled)   insults=off
4983                 with_classic_insults=yes
4984                 with_csops_insults=yes
4985                 ;;
4986     no)         insults=off
4987                 ;;
4988     *)          as_fn_error "\"--with-insults does not take an argument.\"" "$LINENO" 5
4989                 ;;
4990 esac
4991 fi
4992
4993 if test "$insults" = "on"; then
4994     $as_echo "#define USE_INSULTS 1" >>confdefs.h
4995
4996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4997 $as_echo "yes" >&6; }
4998 else
4999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5001 fi
5002
5003
5004 # Check whether --with-all-insults was given.
5005 if test "${with_all_insults+set}" = set; then :
5006   withval=$with_all_insults; case $with_all_insults in
5007     yes)        with_classic_insults=yes
5008                 with_csops_insults=yes
5009                 with_hal_insults=yes
5010                 with_goons_insults=yes
5011                 ;;
5012     no)         ;;
5013     *)          as_fn_error "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
5014                 ;;
5015 esac
5016 fi
5017
5018
5019
5020 # Check whether --with-classic-insults was given.
5021 if test "${with_classic_insults+set}" = set; then :
5022   withval=$with_classic_insults; case $with_classic_insults in
5023     yes)        $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
5024
5025                 ;;
5026     no)         ;;
5027     *)          as_fn_error "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
5028                 ;;
5029 esac
5030 fi
5031
5032
5033
5034 # Check whether --with-csops-insults was given.
5035 if test "${with_csops_insults+set}" = set; then :
5036   withval=$with_csops_insults; case $with_csops_insults in
5037     yes)        $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
5038
5039                 ;;
5040     no)         ;;
5041     *)          as_fn_error "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
5042                 ;;
5043 esac
5044 fi
5045
5046
5047
5048 # Check whether --with-hal-insults was given.
5049 if test "${with_hal_insults+set}" = set; then :
5050   withval=$with_hal_insults; case $with_hal_insults in
5051     yes)        $as_echo "#define HAL_INSULTS 1" >>confdefs.h
5052
5053                 ;;
5054     no)         ;;
5055     *)          as_fn_error "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
5056                 ;;
5057 esac
5058 fi
5059
5060
5061
5062 # Check whether --with-goons-insults was given.
5063 if test "${with_goons_insults+set}" = set; then :
5064   withval=$with_goons_insults; case $with_goons_insults in
5065     yes)        $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5066
5067                 ;;
5068     no)         ;;
5069     *)          as_fn_error "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5070                 ;;
5071 esac
5072 fi
5073
5074
5075
5076 # Check whether --with-nsswitch was given.
5077 if test "${with_nsswitch+set}" = set; then :
5078   withval=$with_nsswitch; case $with_nsswitch in
5079     no)         ;;
5080     yes)        with_nsswitch="/etc/nsswitch.conf"
5081                 ;;
5082     *)          ;;
5083 esac
5084 fi
5085
5086
5087
5088 # Check whether --with-ldap was given.
5089 if test "${with_ldap+set}" = set; then :
5090   withval=$with_ldap; case $with_ldap in
5091     no)         ;;
5092     *)          $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5093
5094                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5095 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5096                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097 $as_echo "yes" >&6; }
5098                 ;;
5099 esac
5100 fi
5101
5102
5103
5104 # Check whether --with-ldap-conf-file was given.
5105 if test "${with_ldap_conf_file+set}" = set; then :
5106   withval=$with_ldap_conf_file;
5107 fi
5108
5109 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5110 cat >>confdefs.h <<EOF
5111 #define _PATH_LDAP_CONF "$ldap_conf"
5112 EOF
5113
5114
5115
5116 # Check whether --with-ldap-secret-file was given.
5117 if test "${with_ldap_secret_file+set}" = set; then :
5118   withval=$with_ldap_secret_file;
5119 fi
5120
5121 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5122 cat >>confdefs.h <<EOF
5123 #define _PATH_LDAP_SECRET "$ldap_secret"
5124 EOF
5125
5126
5127
5128 # Check whether --with-pc-insults was given.
5129 if test "${with_pc_insults+set}" = set; then :
5130   withval=$with_pc_insults; case $with_pc_insults in
5131     yes)        $as_echo "#define PC_INSULTS 1" >>confdefs.h
5132
5133                 ;;
5134     no)         ;;
5135     *)          as_fn_error "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5136                 ;;
5137 esac
5138 fi
5139
5140
5141 if test "$insults" = "on"; then
5142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5143 $as_echo_n "checking which insult sets to include... " >&6; }
5144     i=""
5145     test "$with_goons_insults" = "yes" && i="goons ${i}"
5146     test "$with_hal_insults" = "yes" && i="hal ${i}"
5147     test "$with_csops_insults" = "yes" && i="csops ${i}"
5148     test "$with_classic_insults" = "yes" && i="classic ${i}"
5149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5150 $as_echo "$i" >&6; }
5151 fi
5152
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5154 $as_echo_n "checking whether to override the user's path... " >&6; }
5155
5156 # Check whether --with-secure-path was given.
5157 if test "${with_secure_path+set}" = set; then :
5158   withval=$with_secure_path; case $with_secure_path in
5159     yes)        with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5160                 cat >>confdefs.h <<_ACEOF
5161 #define SECURE_PATH "$with_secure_path"
5162 _ACEOF
5163
5164                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5165 $as_echo "$with_secure_path" >&6; }
5166                 secure_path="set to $with_secure_path"
5167                 ;;
5168     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5170                 ;;
5171     *)          cat >>confdefs.h <<_ACEOF
5172 #define SECURE_PATH "$with_secure_path"
5173 _ACEOF
5174
5175                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5176 $as_echo "$with_secure_path" >&6; }
5177                 secure_path="set to F<$with_secure_path>"
5178                 ;;
5179 esac
5180 else
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5183 fi
5184
5185
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5187 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5188
5189 # Check whether --with-interfaces was given.
5190 if test "${with_interfaces+set}" = set; then :
5191   withval=$with_interfaces; case $with_interfaces in
5192     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5193 $as_echo "yes" >&6; }
5194                 ;;
5195     no)         $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5196
5197                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199                 ;;
5200     *)          as_fn_error "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5201                 ;;
5202 esac
5203 else
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205 $as_echo "yes" >&6; }
5206 fi
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5210 $as_echo_n "checking whether stow should be used... " >&6; }
5211
5212 # Check whether --with-stow was given.
5213 if test "${with_stow+set}" = set; then :
5214   withval=$with_stow; case $with_stow in
5215     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5216 $as_echo "yes" >&6; }
5217                 $as_echo "#define USE_STOW 1" >>confdefs.h
5218
5219                 ;;
5220     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222                 ;;
5223     *)          as_fn_error "\"--with-stow does not take an argument.\"" "$LINENO" 5
5224                 ;;
5225 esac
5226 else
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5233 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5234
5235 # Check whether --with-askpass was given.
5236 if test "${with_askpass+set}" = set; then :
5237   withval=$with_askpass; case $with_askpass in
5238     yes)        as_fn_error "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5239                 ;;
5240     no)         ;;
5241     *)          cat >>confdefs.h <<EOF
5242 #define _PATH_SUDO_ASKPASS "$with_askpass"
5243 EOF
5244
5245                 ;;
5246 esac
5247 else
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5251
5252
5253
5254 # Check whether --with-libvas was given.
5255 if test "${with_libvas+set}" = set; then :
5256   withval=$with_libvas; case $with_libvas in
5257     yes)        with_libvas=libvas.so
5258                 ;;
5259     no)         ;;
5260     *)
5261 cat >>confdefs.h <<_ACEOF
5262 #define LIBVAS_SO "$with_libvas"
5263 _ACEOF
5264
5265                 ;;
5266 esac
5267 if test X"$with_libvas" != X"no"; then
5268
5269 cat >>confdefs.h <<_ACEOF
5270 #define LIBVAS_SO "$with_libvas"
5271 _ACEOF
5272
5273     $as_echo "#define USING_NONUNIX_GROUPS 1" >>confdefs.h
5274
5275     COMMON_OBJS="$COMMON_OBJS vasgroups.o"
5276
5277 # Check whether --with-libvas-rpath was given.
5278 if test "${with_libvas_rpath+set}" = set; then :
5279   withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
5280 else
5281   LIBVAS_RPATH=/opt/quest/lib
5282 fi
5283
5284                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
5285 $as_echo_n "checking for main in -ldl... " >&6; }
5286 if test "${ac_cv_lib_dl_main+set}" = set; then :
5287   $as_echo_n "(cached) " >&6
5288 else
5289   ac_check_lib_save_LIBS=$LIBS
5290 LIBS="-ldl  $LIBS"
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h.  */
5293
5294
5295 int
5296 main ()
5297 {
5298 return main ();
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 if ac_fn_c_try_link "$LINENO"; then :
5304   ac_cv_lib_dl_main=yes
5305 else
5306   ac_cv_lib_dl_main=no
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext \
5309     conftest$ac_exeext conftest.$ac_ext
5310 LIBS=$ac_check_lib_save_LIBS
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
5313 $as_echo "$ac_cv_lib_dl_main" >&6; }
5314 if test "x$ac_cv_lib_dl_main" = x""yes; then :
5315   cat >>confdefs.h <<_ACEOF
5316 #define HAVE_LIBDL 1
5317 _ACEOF
5318
5319   LIBS="-ldl $LIBS"
5320
5321 fi
5322
5323 fi
5324
5325 fi
5326
5327
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5330 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5331 # Check whether --enable-authentication was given.
5332 if test "${enable_authentication+set}" = set; then :
5333   enableval=$enable_authentication;  case "$enableval" in
5334     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335 $as_echo "yes" >&6; }
5336                 ;;
5337     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339                 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5340
5341                 ;;
5342     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5345 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5346                 ;;
5347   esac
5348
5349 else
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5352 fi
5353
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5356 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5357 # Check whether --enable-root-mailer was given.
5358 if test "${enable_root_mailer+set}" = set; then :
5359   enableval=$enable_root_mailer;  case "$enableval" in
5360     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362                 ;;
5363     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5364 $as_echo "yes" >&6; }
5365                 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5366
5367                 ;;
5368     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5371 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5372                 ;;
5373   esac
5374
5375 else
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 fi
5379
5380
5381 # Check whether --enable-setreuid was given.
5382 if test "${enable_setreuid+set}" = set; then :
5383   enableval=$enable_setreuid;  case "$enableval" in
5384     no)         SKIP_SETREUID=yes
5385                 ;;
5386     *)          ;;
5387   esac
5388
5389 fi
5390
5391
5392 # Check whether --enable-setresuid was given.
5393 if test "${enable_setresuid+set}" = set; then :
5394   enableval=$enable_setresuid;  case "$enableval" in
5395     no)         SKIP_SETRESUID=yes
5396                 ;;
5397     *)          ;;
5398   esac
5399
5400 fi
5401
5402
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5404 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5405 # Check whether --enable-shadow was given.
5406 if test "${enable_shadow+set}" = set; then :
5407   enableval=$enable_shadow;  case "$enableval" in
5408     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5410                 ;;
5411     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412 $as_echo "yes" >&6; }
5413                 CHECKSHADOW="false"
5414                 ;;
5415     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5418 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5419                 ;;
5420   esac
5421
5422 else
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5425 fi
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5429 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5430 # Check whether --enable-root-sudo was given.
5431 if test "${enable_root_sudo+set}" = set; then :
5432   enableval=$enable_root_sudo;  case "$enableval" in
5433     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5434 $as_echo "yes" >&6; }
5435                 ;;
5436     no)         $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5437
5438                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440                 root_sudo=off
5441                 ;;
5442     *)          as_fn_error "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5443                 ;;
5444   esac
5445
5446 else
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448 $as_echo "yes" >&6; }
5449 fi
5450
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5453 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5454 # Check whether --enable-log-host was given.
5455 if test "${enable_log_host+set}" = set; then :
5456   enableval=$enable_log_host;  case "$enableval" in
5457     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458 $as_echo "yes" >&6; }
5459                 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5460
5461                 ;;
5462     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464                 ;;
5465     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5468 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5469                 ;;
5470   esac
5471
5472 else
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5479 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5480 # Check whether --enable-noargs-shell was given.
5481 if test "${enable_noargs_shell+set}" = set; then :
5482   enableval=$enable_noargs_shell;  case "$enableval" in
5483     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5484 $as_echo "yes" >&6; }
5485                 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5486
5487                 ;;
5488     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490                 ;;
5491     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5494 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5495                 ;;
5496   esac
5497
5498 else
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5501 fi
5502
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5505 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5506 # Check whether --enable-shell-sets-home was given.
5507 if test "${enable_shell_sets_home+set}" = set; then :
5508   enableval=$enable_shell_sets_home;  case "$enableval" in
5509     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5510 $as_echo "yes" >&6; }
5511                 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5512
5513                 ;;
5514     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516                 ;;
5517     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5520 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5521                 ;;
5522   esac
5523
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5531 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5532 # Check whether --enable-path_info was given.
5533 if test "${enable_path_info+set}" = set; then :
5534   enableval=$enable_path_info;  case "$enableval" in
5535     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537                 ;;
5538     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540                 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5541
5542                 path_info=off
5543                 ;;
5544     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5547 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5548                 ;;
5549   esac
5550
5551 else
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5554 fi
5555
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5558 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5559 # Check whether --enable-env_debug was given.
5560 if test "${enable_env_debug+set}" = set; then :
5561   enableval=$enable_env_debug;  case "$enableval" in
5562     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563 $as_echo "yes" >&6; }
5564                 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5565
5566                 ;;
5567     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5569                 ;;
5570     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5573 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5574                 ;;
5575   esac
5576
5577 else
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581
5582
5583 # Check whether --enable-warnings was given.
5584 if test "${enable_warnings+set}" = set; then :
5585   enableval=$enable_warnings;  case "$enableval" in
5586     yes)    if test X"$with_devel" != X"yes" -a -n "$GCC"; then
5587                 CFLAGS="${CFLAGS} -Wall"
5588             fi
5589             ;;
5590     no)     ;;
5591     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5592 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5593             ;;
5594   esac
5595
5596 fi
5597
5598
5599 # Check whether --enable-admin-flag was given.
5600 if test "${enable_admin_flag+set}" = set; then :
5601   enableval=$enable_admin_flag;  case "$enableval" in
5602     yes)    $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5603
5604             ;;
5605     no)     ;;
5606     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5607 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5608             ;;
5609   esac
5610
5611 fi
5612
5613
5614
5615 # Check whether --with-selinux was given.
5616 if test "${with_selinux+set}" = set; then :
5617   withval=$with_selinux; case $with_selinux in
5618     yes)        SELINUX_USAGE="[-r role] [-t type] "
5619                 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5620
5621                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5622                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5623                 PROGS="${PROGS} sesh"
5624                 SEMAN=1
5625                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5626 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5627 if test "${ac_cv_lib_selinux_setkeycreatecon+set}" = set; then :
5628   $as_echo_n "(cached) " >&6
5629 else
5630   ac_check_lib_save_LIBS=$LIBS
5631 LIBS="-lselinux  $LIBS"
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h.  */
5634
5635 /* Override any GCC internal prototype to avoid an error.
5636    Use char because int might match the return type of a GCC
5637    builtin and then its argument prototype would still apply.  */
5638 #ifdef __cplusplus
5639 extern "C"
5640 #endif
5641 char setkeycreatecon ();
5642 int
5643 main ()
5644 {
5645 return setkeycreatecon ();
5646   ;
5647   return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_c_try_link "$LINENO"; then :
5651   ac_cv_lib_selinux_setkeycreatecon=yes
5652 else
5653   ac_cv_lib_selinux_setkeycreatecon=no
5654 fi
5655 rm -f core conftest.err conftest.$ac_objext \
5656     conftest$ac_exeext conftest.$ac_ext
5657 LIBS=$ac_check_lib_save_LIBS
5658 fi
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5660 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5661 if test "x$ac_cv_lib_selinux_setkeycreatecon" = x""yes; then :
5662   $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5663
5664 fi
5665
5666                 ;;
5667     no)         ;;
5668     *)          as_fn_error "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5669                 ;;
5670 esac
5671 fi
5672
5673
5674 # Check whether --enable-gss_krb5_ccache_name was given.
5675 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5676   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5677 else
5678   check_gss_krb5_ccache_name=no
5679 fi
5680
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5683 $as_echo_n "checking for library containing strerror... " >&6; }
5684 if test "${ac_cv_search_strerror+set}" = set; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687   ac_func_search_save_LIBS=$LIBS
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h.  */
5690
5691 /* Override any GCC internal prototype to avoid an error.
5692    Use char because int might match the return type of a GCC
5693    builtin and then its argument prototype would still apply.  */
5694 #ifdef __cplusplus
5695 extern "C"
5696 #endif
5697 char strerror ();
5698 int
5699 main ()
5700 {
5701 return strerror ();
5702   ;
5703   return 0;
5704 }
5705 _ACEOF
5706 for ac_lib in '' cposix; do
5707   if test -z "$ac_lib"; then
5708     ac_res="none required"
5709   else
5710     ac_res=-l$ac_lib
5711     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5712   fi
5713   if ac_fn_c_try_link "$LINENO"; then :
5714   ac_cv_search_strerror=$ac_res
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext \
5717     conftest$ac_exeext
5718   if test "${ac_cv_search_strerror+set}" = set; then :
5719   break
5720 fi
5721 done
5722 if test "${ac_cv_search_strerror+set}" = set; then :
5723
5724 else
5725   ac_cv_search_strerror=no
5726 fi
5727 rm conftest.$ac_ext
5728 LIBS=$ac_func_search_save_LIBS
5729 fi
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5731 $as_echo "$ac_cv_search_strerror" >&6; }
5732 ac_res=$ac_cv_search_strerror
5733 if test "$ac_res" != no; then :
5734   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5735
5736 fi
5737
5738 ac_ext=c
5739 ac_cpp='$CPP $CPPFLAGS'
5740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5744 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5745 # On Suns, sometimes $CPP names a directory.
5746 if test -n "$CPP" && test -d "$CPP"; then
5747   CPP=
5748 fi
5749 if test -z "$CPP"; then
5750   if test "${ac_cv_prog_CPP+set}" = set; then :
5751   $as_echo_n "(cached) " >&6
5752 else
5753       # Double quotes because CPP needs to be expanded
5754     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5755     do
5756       ac_preproc_ok=false
5757 for ac_c_preproc_warn_flag in '' yes
5758 do
5759   # Use a header file that comes with gcc, so configuring glibc
5760   # with a fresh cross-compiler works.
5761   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5762   # <limits.h> exists even on freestanding compilers.
5763   # On the NeXT, cc -E runs the code through the compiler's parser,
5764   # not just through cpp. "Syntax error" is here to catch this case.
5765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h.  */
5767 #ifdef __STDC__
5768 # include <limits.h>
5769 #else
5770 # include <assert.h>
5771 #endif
5772                      Syntax error
5773 _ACEOF
5774 if ac_fn_c_try_cpp "$LINENO"; then :
5775
5776 else
5777   # Broken: fails on valid input.
5778 continue
5779 fi
5780 rm -f conftest.err conftest.$ac_ext
5781
5782   # OK, works on sane cases.  Now check whether nonexistent headers
5783   # can be detected and how.
5784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h.  */
5786 #include <ac_nonexistent.h>
5787 _ACEOF
5788 if ac_fn_c_try_cpp "$LINENO"; then :
5789   # Broken: success on invalid input.
5790 continue
5791 else
5792   # Passes both tests.
5793 ac_preproc_ok=:
5794 break
5795 fi
5796 rm -f conftest.err conftest.$ac_ext
5797
5798 done
5799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5800 rm -f conftest.err conftest.$ac_ext
5801 if $ac_preproc_ok; then :
5802   break
5803 fi
5804
5805     done
5806     ac_cv_prog_CPP=$CPP
5807
5808 fi
5809   CPP=$ac_cv_prog_CPP
5810 else
5811   ac_cv_prog_CPP=$CPP
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5814 $as_echo "$CPP" >&6; }
5815 ac_preproc_ok=false
5816 for ac_c_preproc_warn_flag in '' yes
5817 do
5818   # Use a header file that comes with gcc, so configuring glibc
5819   # with a fresh cross-compiler works.
5820   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5821   # <limits.h> exists even on freestanding compilers.
5822   # On the NeXT, cc -E runs the code through the compiler's parser,
5823   # not just through cpp. "Syntax error" is here to catch this case.
5824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h.  */
5826 #ifdef __STDC__
5827 # include <limits.h>
5828 #else
5829 # include <assert.h>
5830 #endif
5831                      Syntax error
5832 _ACEOF
5833 if ac_fn_c_try_cpp "$LINENO"; then :
5834
5835 else
5836   # Broken: fails on valid input.
5837 continue
5838 fi
5839 rm -f conftest.err conftest.$ac_ext
5840
5841   # OK, works on sane cases.  Now check whether nonexistent headers
5842   # can be detected and how.
5843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h.  */
5845 #include <ac_nonexistent.h>
5846 _ACEOF
5847 if ac_fn_c_try_cpp "$LINENO"; then :
5848   # Broken: success on invalid input.
5849 continue
5850 else
5851   # Passes both tests.
5852 ac_preproc_ok=:
5853 break
5854 fi
5855 rm -f conftest.err conftest.$ac_ext
5856
5857 done
5858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5859 rm -f conftest.err conftest.$ac_ext
5860 if $ac_preproc_ok; then :
5861
5862 else
5863   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5865 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5866 See \`config.log' for more details." "$LINENO" 5; }
5867 fi
5868
5869 ac_ext=c
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874
5875 if test -n "$ac_tool_prefix"; then
5876   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5877 set dummy ${ac_tool_prefix}ar; ac_word=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if test "${ac_cv_prog_AR+set}" = set; then :
5881   $as_echo_n "(cached) " >&6
5882 else
5883   if test -n "$AR"; then
5884   ac_cv_prog_AR="$AR" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889   IFS=$as_save_IFS
5890   test -z "$as_dir" && as_dir=.
5891     for ac_exec_ext in '' $ac_executable_extensions; do
5892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893     ac_cv_prog_AR="${ac_tool_prefix}ar"
5894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895     break 2
5896   fi
5897 done
5898   done
5899 IFS=$as_save_IFS
5900
5901 fi
5902 fi
5903 AR=$ac_cv_prog_AR
5904 if test -n "$AR"; then
5905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5906 $as_echo "$AR" >&6; }
5907 else
5908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5910 fi
5911
5912
5913 fi
5914 if test -z "$ac_cv_prog_AR"; then
5915   ac_ct_AR=$AR
5916   # Extract the first word of "ar", so it can be a program name with args.
5917 set dummy ar; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5921   $as_echo_n "(cached) " >&6
5922 else
5923   if test -n "$ac_ct_AR"; then
5924   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929   IFS=$as_save_IFS
5930   test -z "$as_dir" && as_dir=.
5931     for ac_exec_ext in '' $ac_executable_extensions; do
5932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933     ac_cv_prog_ac_ct_AR="ar"
5934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935     break 2
5936   fi
5937 done
5938   done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5944 if test -n "$ac_ct_AR"; then
5945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5946 $as_echo "$ac_ct_AR" >&6; }
5947 else
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5950 fi
5951
5952   if test "x$ac_ct_AR" = x; then
5953     AR="false"
5954   else
5955     case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961     AR=$ac_ct_AR
5962   fi
5963 else
5964   AR="$ac_cv_prog_AR"
5965 fi
5966
5967 if test -n "$ac_tool_prefix"; then
5968   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   if test -n "$RANLIB"; then
5976   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981   IFS=$as_save_IFS
5982   test -z "$as_dir" && as_dir=.
5983     for ac_exec_ext in '' $ac_executable_extensions; do
5984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987     break 2
5988   fi
5989 done
5990   done
5991 IFS=$as_save_IFS
5992
5993 fi
5994 fi
5995 RANLIB=$ac_cv_prog_RANLIB
5996 if test -n "$RANLIB"; then
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5998 $as_echo "$RANLIB" >&6; }
5999 else
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6002 fi
6003
6004
6005 fi
6006 if test -z "$ac_cv_prog_RANLIB"; then
6007   ac_ct_RANLIB=$RANLIB
6008   # Extract the first word of "ranlib", so it can be a program name with args.
6009 set dummy ranlib; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6013   $as_echo_n "(cached) " >&6
6014 else
6015   if test -n "$ac_ct_RANLIB"; then
6016   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021   IFS=$as_save_IFS
6022   test -z "$as_dir" && as_dir=.
6023     for ac_exec_ext in '' $ac_executable_extensions; do
6024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025     ac_cv_prog_ac_ct_RANLIB="ranlib"
6026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027     break 2
6028   fi
6029 done
6030   done
6031 IFS=$as_save_IFS
6032
6033 fi
6034 fi
6035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6036 if test -n "$ac_ct_RANLIB"; then
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6038 $as_echo "$ac_ct_RANLIB" >&6; }
6039 else
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6042 fi
6043
6044   if test "x$ac_ct_RANLIB" = x; then
6045     RANLIB=":"
6046   else
6047     case $cross_compiling:$ac_tool_warned in
6048 yes:)
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051 ac_tool_warned=yes ;;
6052 esac
6053     RANLIB=$ac_ct_RANLIB
6054   fi
6055 else
6056   RANLIB="$ac_cv_prog_RANLIB"
6057 fi
6058
6059
6060 ac_aux_dir=
6061 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6062   for ac_t in install-sh install.sh shtool; do
6063     if test -f "$ac_dir/$ac_t"; then
6064       ac_aux_dir=$ac_dir
6065       ac_install_sh="$ac_aux_dir/$ac_t -c"
6066       break 2
6067     fi
6068   done
6069 done
6070 if test -z "$ac_aux_dir"; then
6071   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6072 fi
6073
6074 # These three variables are undocumented and unsupported,
6075 # and are intended to be withdrawn in a future Autoconf release.
6076 # They can cause serious problems if a builder's source tree is in a directory
6077 # whose full name contains unusual characters.
6078 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6079 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6080 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6081
6082
6083 # Make sure we can run config.sub.
6084 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6085   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6086
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6088 $as_echo_n "checking build system type... " >&6; }
6089 if test "${ac_cv_build+set}" = set; then :
6090   $as_echo_n "(cached) " >&6
6091 else
6092   ac_build_alias=$build_alias
6093 test "x$ac_build_alias" = x &&
6094   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6095 test "x$ac_build_alias" = x &&
6096   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6097 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6098   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6099
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6102 $as_echo "$ac_cv_build" >&6; }
6103 case $ac_cv_build in
6104 *-*-*) ;;
6105 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6106 esac
6107 build=$ac_cv_build
6108 ac_save_IFS=$IFS; IFS='-'
6109 set x $ac_cv_build
6110 shift
6111 build_cpu=$1
6112 build_vendor=$2
6113 shift; shift
6114 # Remember, the first character of IFS is used to create $*,
6115 # except with old shells:
6116 build_os=$*
6117 IFS=$ac_save_IFS
6118 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6119
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6122 $as_echo_n "checking host system type... " >&6; }
6123 if test "${ac_cv_host+set}" = set; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   if test "x$host_alias" = x; then
6127   ac_cv_host=$ac_cv_build
6128 else
6129   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6130     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6131 fi
6132
6133 fi
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6135 $as_echo "$ac_cv_host" >&6; }
6136 case $ac_cv_host in
6137 *-*-*) ;;
6138 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6139 esac
6140 host=$ac_cv_host
6141 ac_save_IFS=$IFS; IFS='-'
6142 set x $ac_cv_host
6143 shift
6144 host_cpu=$1
6145 host_vendor=$2
6146 shift; shift
6147 # Remember, the first character of IFS is used to create $*,
6148 # except with old shells:
6149 host_os=$*
6150 IFS=$ac_save_IFS
6151 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6152
6153
6154
6155
6156 case `pwd` in
6157   *\ * | *\     *)
6158     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6159 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6160 esac
6161
6162
6163
6164 macro_version='2.2.6b'
6165 macro_revision='1.3017'
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179 ltmain="$ac_aux_dir/ltmain.sh"
6180
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6182 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6183 if test "${ac_cv_path_SED+set}" = set; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6187      for ac_i in 1 2 3 4 5 6 7; do
6188        ac_script="$ac_script$as_nl$ac_script"
6189      done
6190      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6191      { ac_script=; unset ac_script;}
6192      if test -z "$SED"; then
6193   ac_path_SED_found=false
6194   # Loop through the user's path and test for each of PROGNAME-LIST
6195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198   IFS=$as_save_IFS
6199   test -z "$as_dir" && as_dir=.
6200     for ac_prog in sed gsed; do
6201     for ac_exec_ext in '' $ac_executable_extensions; do
6202       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6203       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6204 # Check for GNU ac_path_SED and select it if it is found.
6205   # Check for GNU $ac_path_SED
6206 case `"$ac_path_SED" --version 2>&1` in
6207 *GNU*)
6208   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6209 *)
6210   ac_count=0
6211   $as_echo_n 0123456789 >"conftest.in"
6212   while :
6213   do
6214     cat "conftest.in" "conftest.in" >"conftest.tmp"
6215     mv "conftest.tmp" "conftest.in"
6216     cp "conftest.in" "conftest.nl"
6217     $as_echo '' >> "conftest.nl"
6218     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6219     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6220     as_fn_arith $ac_count + 1 && ac_count=$as_val
6221     if test $ac_count -gt ${ac_path_SED_max-0}; then
6222       # Best one so far, save it but keep looking for a better one
6223       ac_cv_path_SED="$ac_path_SED"
6224       ac_path_SED_max=$ac_count
6225     fi
6226     # 10*(2^10) chars as input seems more than enough
6227     test $ac_count -gt 10 && break
6228   done
6229   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6230 esac
6231
6232       $ac_path_SED_found && break 3
6233     done
6234   done
6235   done
6236 IFS=$as_save_IFS
6237   if test -z "$ac_cv_path_SED"; then
6238     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6239   fi
6240 else
6241   ac_cv_path_SED=$SED
6242 fi
6243
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6246 $as_echo "$ac_cv_path_SED" >&6; }
6247  SED="$ac_cv_path_SED"
6248   rm -f conftest.sed
6249
6250 test -z "$SED" && SED=sed
6251 Xsed="$SED -e 1s/^X//"
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6264 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6265 if test "${ac_cv_path_GREP+set}" = set; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   if test -z "$GREP"; then
6269   ac_path_GREP_found=false
6270   # Loop through the user's path and test for each of PROGNAME-LIST
6271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6273 do
6274   IFS=$as_save_IFS
6275   test -z "$as_dir" && as_dir=.
6276     for ac_prog in grep ggrep; do
6277     for ac_exec_ext in '' $ac_executable_extensions; do
6278       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6279       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6280 # Check for GNU ac_path_GREP and select it if it is found.
6281   # Check for GNU $ac_path_GREP
6282 case `"$ac_path_GREP" --version 2>&1` in
6283 *GNU*)
6284   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6285 *)
6286   ac_count=0
6287   $as_echo_n 0123456789 >"conftest.in"
6288   while :
6289   do
6290     cat "conftest.in" "conftest.in" >"conftest.tmp"
6291     mv "conftest.tmp" "conftest.in"
6292     cp "conftest.in" "conftest.nl"
6293     $as_echo 'GREP' >> "conftest.nl"
6294     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6295     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6296     as_fn_arith $ac_count + 1 && ac_count=$as_val
6297     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6298       # Best one so far, save it but keep looking for a better one
6299       ac_cv_path_GREP="$ac_path_GREP"
6300       ac_path_GREP_max=$ac_count
6301     fi
6302     # 10*(2^10) chars as input seems more than enough
6303     test $ac_count -gt 10 && break
6304   done
6305   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6306 esac
6307
6308       $ac_path_GREP_found && break 3
6309     done
6310   done
6311   done
6312 IFS=$as_save_IFS
6313   if test -z "$ac_cv_path_GREP"; then
6314     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6315   fi
6316 else
6317   ac_cv_path_GREP=$GREP
6318 fi
6319
6320 fi
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6322 $as_echo "$ac_cv_path_GREP" >&6; }
6323  GREP="$ac_cv_path_GREP"
6324
6325
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6327 $as_echo_n "checking for egrep... " >&6; }
6328 if test "${ac_cv_path_EGREP+set}" = set; then :
6329   $as_echo_n "(cached) " >&6
6330 else
6331   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6332    then ac_cv_path_EGREP="$GREP -E"
6333    else
6334      if test -z "$EGREP"; then
6335   ac_path_EGREP_found=false
6336   # Loop through the user's path and test for each of PROGNAME-LIST
6337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6339 do
6340   IFS=$as_save_IFS
6341   test -z "$as_dir" && as_dir=.
6342     for ac_prog in egrep; do
6343     for ac_exec_ext in '' $ac_executable_extensions; do
6344       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6345       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6346 # Check for GNU ac_path_EGREP and select it if it is found.
6347   # Check for GNU $ac_path_EGREP
6348 case `"$ac_path_EGREP" --version 2>&1` in
6349 *GNU*)
6350   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6351 *)
6352   ac_count=0
6353   $as_echo_n 0123456789 >"conftest.in"
6354   while :
6355   do
6356     cat "conftest.in" "conftest.in" >"conftest.tmp"
6357     mv "conftest.tmp" "conftest.in"
6358     cp "conftest.in" "conftest.nl"
6359     $as_echo 'EGREP' >> "conftest.nl"
6360     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6361     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6362     as_fn_arith $ac_count + 1 && ac_count=$as_val
6363     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6364       # Best one so far, save it but keep looking for a better one
6365       ac_cv_path_EGREP="$ac_path_EGREP"
6366       ac_path_EGREP_max=$ac_count
6367     fi
6368     # 10*(2^10) chars as input seems more than enough
6369     test $ac_count -gt 10 && break
6370   done
6371   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6372 esac
6373
6374       $ac_path_EGREP_found && break 3
6375     done
6376   done
6377   done
6378 IFS=$as_save_IFS
6379   if test -z "$ac_cv_path_EGREP"; then
6380     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6381   fi
6382 else
6383   ac_cv_path_EGREP=$EGREP
6384 fi
6385
6386    fi
6387 fi
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6389 $as_echo "$ac_cv_path_EGREP" >&6; }
6390  EGREP="$ac_cv_path_EGREP"
6391
6392
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6394 $as_echo_n "checking for fgrep... " >&6; }
6395 if test "${ac_cv_path_FGREP+set}" = set; then :
6396   $as_echo_n "(cached) " >&6
6397 else
6398   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6399    then ac_cv_path_FGREP="$GREP -F"
6400    else
6401      if test -z "$FGREP"; then
6402   ac_path_FGREP_found=false
6403   # Loop through the user's path and test for each of PROGNAME-LIST
6404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409     for ac_prog in fgrep; do
6410     for ac_exec_ext in '' $ac_executable_extensions; do
6411       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6412       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6413 # Check for GNU ac_path_FGREP and select it if it is found.
6414   # Check for GNU $ac_path_FGREP
6415 case `"$ac_path_FGREP" --version 2>&1` in
6416 *GNU*)
6417   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6418 *)
6419   ac_count=0
6420   $as_echo_n 0123456789 >"conftest.in"
6421   while :
6422   do
6423     cat "conftest.in" "conftest.in" >"conftest.tmp"
6424     mv "conftest.tmp" "conftest.in"
6425     cp "conftest.in" "conftest.nl"
6426     $as_echo 'FGREP' >> "conftest.nl"
6427     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6428     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6429     as_fn_arith $ac_count + 1 && ac_count=$as_val
6430     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6431       # Best one so far, save it but keep looking for a better one
6432       ac_cv_path_FGREP="$ac_path_FGREP"
6433       ac_path_FGREP_max=$ac_count
6434     fi
6435     # 10*(2^10) chars as input seems more than enough
6436     test $ac_count -gt 10 && break
6437   done
6438   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6439 esac
6440
6441       $ac_path_FGREP_found && break 3
6442     done
6443   done
6444   done
6445 IFS=$as_save_IFS
6446   if test -z "$ac_cv_path_FGREP"; then
6447     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6448   fi
6449 else
6450   ac_cv_path_FGREP=$FGREP
6451 fi
6452
6453    fi
6454 fi
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6456 $as_echo "$ac_cv_path_FGREP" >&6; }
6457  FGREP="$ac_cv_path_FGREP"
6458
6459
6460 test -z "$GREP" && GREP=grep
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480 # Check whether --with-gnu-ld was given.
6481 if test "${with_gnu_ld+set}" = set; then :
6482   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6483 else
6484   with_gnu_ld=no
6485 fi
6486
6487 ac_prog=ld
6488 if test "$GCC" = yes; then
6489   # Check if gcc -print-prog-name=ld gives a path.
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6491 $as_echo_n "checking for ld used by $CC... " >&6; }
6492   case $host in
6493   *-*-mingw*)
6494     # gcc leaves a trailing carriage return which upsets mingw
6495     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6496   *)
6497     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6498   esac
6499   case $ac_prog in
6500     # Accept absolute paths.
6501     [\\/]* | ?:[\\/]*)
6502       re_direlt='/[^/][^/]*/\.\./'
6503       # Canonicalize the pathname of ld
6504       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6505       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6506         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6507       done
6508       test -z "$LD" && LD="$ac_prog"
6509       ;;
6510   "")
6511     # If it fails, then pretend we aren't using GCC.
6512     ac_prog=ld
6513     ;;
6514   *)
6515     # If it is relative, then search for the first ld in PATH.
6516     with_gnu_ld=unknown
6517     ;;
6518   esac
6519 elif test "$with_gnu_ld" = yes; then
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6521 $as_echo_n "checking for GNU ld... " >&6; }
6522 else
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6524 $as_echo_n "checking for non-GNU ld... " >&6; }
6525 fi
6526 if test "${lt_cv_path_LD+set}" = set; then :
6527   $as_echo_n "(cached) " >&6
6528 else
6529   if test -z "$LD"; then
6530   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6531   for ac_dir in $PATH; do
6532     IFS="$lt_save_ifs"
6533     test -z "$ac_dir" && ac_dir=.
6534     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6535       lt_cv_path_LD="$ac_dir/$ac_prog"
6536       # Check to see if the program is GNU ld.  I'd rather use --version,
6537       # but apparently some variants of GNU ld only accept -v.
6538       # Break only if it was the GNU/non-GNU ld that we prefer.
6539       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6540       *GNU* | *'with BFD'*)
6541         test "$with_gnu_ld" != no && break
6542         ;;
6543       *)
6544         test "$with_gnu_ld" != yes && break
6545         ;;
6546       esac
6547     fi
6548   done
6549   IFS="$lt_save_ifs"
6550 else
6551   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6552 fi
6553 fi
6554
6555 LD="$lt_cv_path_LD"
6556 if test -n "$LD"; then
6557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6558 $as_echo "$LD" >&6; }
6559 else
6560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6565 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6566 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6570 case `$LD -v 2>&1 </dev/null` in
6571 *GNU* | *'with BFD'*)
6572   lt_cv_prog_gnu_ld=yes
6573   ;;
6574 *)
6575   lt_cv_prog_gnu_ld=no
6576   ;;
6577 esac
6578 fi
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6580 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6581 with_gnu_ld=$lt_cv_prog_gnu_ld
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6592 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6593 if test "${lt_cv_path_NM+set}" = set; then :
6594   $as_echo_n "(cached) " >&6
6595 else
6596   if test -n "$NM"; then
6597   # Let the user override the test.
6598   lt_cv_path_NM="$NM"
6599 else
6600   lt_nm_to_check="${ac_tool_prefix}nm"
6601   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6602     lt_nm_to_check="$lt_nm_to_check nm"
6603   fi
6604   for lt_tmp_nm in $lt_nm_to_check; do
6605     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6606     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6607       IFS="$lt_save_ifs"
6608       test -z "$ac_dir" && ac_dir=.
6609       tmp_nm="$ac_dir/$lt_tmp_nm"
6610       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6611         # Check to see if the nm accepts a BSD-compat flag.
6612         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6613         #   nm: unknown option "B" ignored
6614         # Tru64's nm complains that /dev/null is an invalid object file
6615         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6616         */dev/null* | *'Invalid file or object type'*)
6617           lt_cv_path_NM="$tmp_nm -B"
6618           break
6619           ;;
6620         *)
6621           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6622           */dev/null*)
6623             lt_cv_path_NM="$tmp_nm -p"
6624             break
6625             ;;
6626           *)
6627             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6628             continue # so that we can try to find one that supports BSD flags
6629             ;;
6630           esac
6631           ;;
6632         esac
6633       fi
6634     done
6635     IFS="$lt_save_ifs"
6636   done
6637   : ${lt_cv_path_NM=no}
6638 fi
6639 fi
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6641 $as_echo "$lt_cv_path_NM" >&6; }
6642 if test "$lt_cv_path_NM" != "no"; then
6643   NM="$lt_cv_path_NM"
6644 else
6645   # Didn't find any BSD compatible name lister, look for dumpbin.
6646   if test -n "$ac_tool_prefix"; then
6647   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6648   do
6649     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6654   $as_echo_n "(cached) " >&6
6655 else
6656   if test -n "$DUMPBIN"; then
6657   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662   IFS=$as_save_IFS
6663   test -z "$as_dir" && as_dir=.
6664     for ac_exec_ext in '' $ac_executable_extensions; do
6665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668     break 2
6669   fi
6670 done
6671   done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 DUMPBIN=$ac_cv_prog_DUMPBIN
6677 if test -n "$DUMPBIN"; then
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6679 $as_echo "$DUMPBIN" >&6; }
6680 else
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 fi
6684
6685
6686     test -n "$DUMPBIN" && break
6687   done
6688 fi
6689 if test -z "$DUMPBIN"; then
6690   ac_ct_DUMPBIN=$DUMPBIN
6691   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6692 do
6693   # Extract the first word of "$ac_prog", so it can be a program name with args.
6694 set dummy $ac_prog; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6698   $as_echo_n "(cached) " >&6
6699 else
6700   if test -n "$ac_ct_DUMPBIN"; then
6701   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708     for ac_exec_ext in '' $ac_executable_extensions; do
6709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715   done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6721 if test -n "$ac_ct_DUMPBIN"; then
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6723 $as_echo "$ac_ct_DUMPBIN" >&6; }
6724 else
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729
6730   test -n "$ac_ct_DUMPBIN" && break
6731 done
6732
6733   if test "x$ac_ct_DUMPBIN" = x; then
6734     DUMPBIN=":"
6735   else
6736     case $cross_compiling:$ac_tool_warned in
6737 yes:)
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6740 ac_tool_warned=yes ;;
6741 esac
6742     DUMPBIN=$ac_ct_DUMPBIN
6743   fi
6744 fi
6745
6746
6747   if test "$DUMPBIN" != ":"; then
6748     NM="$DUMPBIN"
6749   fi
6750 fi
6751 test -z "$NM" && NM=nm
6752
6753
6754
6755
6756
6757
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6759 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6760 if test "${lt_cv_nm_interface+set}" = set; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   lt_cv_nm_interface="BSD nm"
6764   echo "int some_variable = 0;" > conftest.$ac_ext
6765   (eval echo "\"\$as_me:6765: $ac_compile\"" >&5)
6766   (eval "$ac_compile" 2>conftest.err)
6767   cat conftest.err >&5
6768   (eval echo "\"\$as_me:6768: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6769   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6770   cat conftest.err >&5
6771   (eval echo "\"\$as_me:6771: output\"" >&5)
6772   cat conftest.out >&5
6773   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6774     lt_cv_nm_interface="MS dumpbin"
6775   fi
6776   rm -f conftest*
6777 fi
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6779 $as_echo "$lt_cv_nm_interface" >&6; }
6780
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6782 $as_echo_n "checking whether ln -s works... " >&6; }
6783 LN_S=$as_ln_s
6784 if test "$LN_S" = "ln -s"; then
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6786 $as_echo "yes" >&6; }
6787 else
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6789 $as_echo "no, using $LN_S" >&6; }
6790 fi
6791
6792 # find the maximum length of command line arguments
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6794 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6795 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6796   $as_echo_n "(cached) " >&6
6797 else
6798     i=0
6799   teststring="ABCD"
6800
6801   case $build_os in
6802   msdosdjgpp*)
6803     # On DJGPP, this test can blow up pretty badly due to problems in libc
6804     # (any single argument exceeding 2000 bytes causes a buffer overrun
6805     # during glob expansion).  Even if it were fixed, the result of this
6806     # check would be larger than it should be.
6807     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6808     ;;
6809
6810   gnu*)
6811     # Under GNU Hurd, this test is not required because there is
6812     # no limit to the length of command line arguments.
6813     # Libtool will interpret -1 as no limit whatsoever
6814     lt_cv_sys_max_cmd_len=-1;
6815     ;;
6816
6817   cygwin* | mingw* | cegcc*)
6818     # On Win9x/ME, this test blows up -- it succeeds, but takes
6819     # about 5 minutes as the teststring grows exponentially.
6820     # Worse, since 9x/ME are not pre-emptively multitasking,
6821     # you end up with a "frozen" computer, even though with patience
6822     # the test eventually succeeds (with a max line length of 256k).
6823     # Instead, let's just punt: use the minimum linelength reported by
6824     # all of the supported platforms: 8192 (on NT/2K/XP).
6825     lt_cv_sys_max_cmd_len=8192;
6826     ;;
6827
6828   amigaos*)
6829     # On AmigaOS with pdksh, this test takes hours, literally.
6830     # So we just punt and use a minimum line length of 8192.
6831     lt_cv_sys_max_cmd_len=8192;
6832     ;;
6833
6834   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6835     # This has been around since 386BSD, at least.  Likely further.
6836     if test -x /sbin/sysctl; then
6837       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6838     elif test -x /usr/sbin/sysctl; then
6839       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6840     else
6841       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6842     fi
6843     # And add a safety zone
6844     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6845     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6846     ;;
6847
6848   interix*)
6849     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6850     lt_cv_sys_max_cmd_len=196608
6851     ;;
6852
6853   osf*)
6854     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6855     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6856     # nice to cause kernel panics so lets avoid the loop below.
6857     # First set a reasonable default.
6858     lt_cv_sys_max_cmd_len=16384
6859     #
6860     if test -x /sbin/sysconfig; then
6861       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6862         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6863       esac
6864     fi
6865     ;;
6866   sco3.2v5*)
6867     lt_cv_sys_max_cmd_len=102400
6868     ;;
6869   sysv5* | sco5v6* | sysv4.2uw2*)
6870     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6871     if test -n "$kargmax"; then
6872       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6873     else
6874       lt_cv_sys_max_cmd_len=32768
6875     fi
6876     ;;
6877   *)
6878     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6879     if test -n "$lt_cv_sys_max_cmd_len"; then
6880       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6881       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6882     else
6883       # Make teststring a little bigger before we do anything with it.
6884       # a 1K string should be a reasonable start.
6885       for i in 1 2 3 4 5 6 7 8 ; do
6886         teststring=$teststring$teststring
6887       done
6888       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6889       # If test is not a shell built-in, we'll probably end up computing a
6890       # maximum length that is only half of the actual maximum length, but
6891       # we can't tell.
6892       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6893                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6894               test $i != 17 # 1/2 MB should be enough
6895       do
6896         i=`expr $i + 1`
6897         teststring=$teststring$teststring
6898       done
6899       # Only check the string length outside the loop.
6900       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6901       teststring=
6902       # Add a significant safety factor because C++ compilers can tack on
6903       # massive amounts of additional arguments before passing them to the
6904       # linker.  It appears as though 1/2 is a usable value.
6905       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6906     fi
6907     ;;
6908   esac
6909
6910 fi
6911
6912 if test -n $lt_cv_sys_max_cmd_len ; then
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6914 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6915 else
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6917 $as_echo "none" >&6; }
6918 fi
6919 max_cmd_len=$lt_cv_sys_max_cmd_len
6920
6921
6922
6923
6924
6925
6926 : ${CP="cp -f"}
6927 : ${MV="mv -f"}
6928 : ${RM="rm -f"}
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6931 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6932 # Try some XSI features
6933 xsi_shell=no
6934 ( _lt_dummy="a/b/c"
6935   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6936       = c,a/b,, \
6937     && eval 'test $(( 1 + 1 )) -eq 2 \
6938     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6939   && xsi_shell=yes
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6941 $as_echo "$xsi_shell" >&6; }
6942
6943
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6946 lt_shell_append=no
6947 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6948     >/dev/null 2>&1 \
6949   && lt_shell_append=yes
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6951 $as_echo "$lt_shell_append" >&6; }
6952
6953
6954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6955   lt_unset=unset
6956 else
6957   lt_unset=false
6958 fi
6959
6960
6961
6962
6963
6964 # test EBCDIC or ASCII
6965 case `echo X|tr X '\101'` in
6966  A) # ASCII based system
6967     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6968   lt_SP2NL='tr \040 \012'
6969   lt_NL2SP='tr \015\012 \040\040'
6970   ;;
6971  *) # EBCDIC based system
6972   lt_SP2NL='tr \100 \n'
6973   lt_NL2SP='tr \r\n \100\100'
6974   ;;
6975 esac
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6986 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6987 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6988   $as_echo_n "(cached) " >&6
6989 else
6990   lt_cv_ld_reload_flag='-r'
6991 fi
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6993 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6994 reload_flag=$lt_cv_ld_reload_flag
6995 case $reload_flag in
6996 "" | " "*) ;;
6997 *) reload_flag=" $reload_flag" ;;
6998 esac
6999 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7000 case $host_os in
7001   darwin*)
7002     if test "$GCC" = yes; then
7003       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7004     else
7005       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7006     fi
7007     ;;
7008 esac
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018 if test -n "$ac_tool_prefix"; then
7019   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7020 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   if test -n "$OBJDUMP"; then
7027   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034     for ac_exec_ext in '' $ac_executable_extensions; do
7035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041   done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 OBJDUMP=$ac_cv_prog_OBJDUMP
7047 if test -n "$OBJDUMP"; then
7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7049 $as_echo "$OBJDUMP" >&6; }
7050 else
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054
7055
7056 fi
7057 if test -z "$ac_cv_prog_OBJDUMP"; then
7058   ac_ct_OBJDUMP=$OBJDUMP
7059   # Extract the first word of "objdump", so it can be a program name with args.
7060 set dummy objdump; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7064   $as_echo_n "(cached) " >&6
7065 else
7066   if test -n "$ac_ct_OBJDUMP"; then
7067   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074     for ac_exec_ext in '' $ac_executable_extensions; do
7075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081   done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7087 if test -n "$ac_ct_OBJDUMP"; then
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7089 $as_echo "$ac_ct_OBJDUMP" >&6; }
7090 else
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7094
7095   if test "x$ac_ct_OBJDUMP" = x; then
7096     OBJDUMP="false"
7097   else
7098     case $cross_compiling:$ac_tool_warned in
7099 yes:)
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102 ac_tool_warned=yes ;;
7103 esac
7104     OBJDUMP=$ac_ct_OBJDUMP
7105   fi
7106 else
7107   OBJDUMP="$ac_cv_prog_OBJDUMP"
7108 fi
7109
7110 test -z "$OBJDUMP" && OBJDUMP=objdump
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7121 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7122 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7123   $as_echo_n "(cached) " >&6
7124 else
7125   lt_cv_file_magic_cmd='$MAGIC_CMD'
7126 lt_cv_file_magic_test_file=
7127 lt_cv_deplibs_check_method='unknown'
7128 # Need to set the preceding variable on all platforms that support
7129 # interlibrary dependencies.
7130 # 'none' -- dependencies not supported.
7131 # `unknown' -- same as none, but documents that we really don't know.
7132 # 'pass_all' -- all dependencies passed with no checks.
7133 # 'test_compile' -- check by making test program.
7134 # 'file_magic [[regex]]' -- check by looking for files in library path
7135 # which responds to the $file_magic_cmd with a given extended regex.
7136 # If you have `file' or equivalent on your system and you're not sure
7137 # whether `pass_all' will *always* work, you probably want this one.
7138
7139 case $host_os in
7140 aix[4-9]*)
7141   lt_cv_deplibs_check_method=pass_all
7142   ;;
7143
7144 beos*)
7145   lt_cv_deplibs_check_method=pass_all
7146   ;;
7147
7148 bsdi[45]*)
7149   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7150   lt_cv_file_magic_cmd='/usr/bin/file -L'
7151   lt_cv_file_magic_test_file=/shlib/libc.so
7152   ;;
7153
7154 cygwin*)
7155   # func_win32_libid is a shell function defined in ltmain.sh
7156   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7157   lt_cv_file_magic_cmd='func_win32_libid'
7158   ;;
7159
7160 mingw* | pw32*)
7161   # Base MSYS/MinGW do not provide the 'file' command needed by
7162   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7163   # unless we find 'file', for example because we are cross-compiling.
7164   if ( file / ) >/dev/null 2>&1; then
7165     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7166     lt_cv_file_magic_cmd='func_win32_libid'
7167   else
7168     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7169     lt_cv_file_magic_cmd='$OBJDUMP -f'
7170   fi
7171   ;;
7172
7173 cegcc)
7174   # use the weaker test based on 'objdump'. See mingw*.
7175   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7176   lt_cv_file_magic_cmd='$OBJDUMP -f'
7177   ;;
7178
7179 darwin* | rhapsody*)
7180   lt_cv_deplibs_check_method=pass_all
7181   ;;
7182
7183 freebsd* | dragonfly*)
7184   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7185     case $host_cpu in
7186     i*86 )
7187       # Not sure whether the presence of OpenBSD here was a mistake.
7188       # Let's accept both of them until this is cleared up.
7189       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7190       lt_cv_file_magic_cmd=/usr/bin/file
7191       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7192       ;;
7193     esac
7194   else
7195     lt_cv_deplibs_check_method=pass_all
7196   fi
7197   ;;
7198
7199 gnu*)
7200   lt_cv_deplibs_check_method=pass_all
7201   ;;
7202
7203 hpux10.20* | hpux11*)
7204   lt_cv_file_magic_cmd=/usr/bin/file
7205   case $host_cpu in
7206   ia64*)
7207     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7208     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7209     ;;
7210   hppa*64*)
7211     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]'
7212     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7213     ;;
7214   *)
7215     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7216     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7217     ;;
7218   esac
7219   ;;
7220
7221 interix[3-9]*)
7222   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7223   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7224   ;;
7225
7226 irix5* | irix6* | nonstopux*)
7227   case $LD in
7228   *-32|*"-32 ") libmagic=32-bit;;
7229   *-n32|*"-n32 ") libmagic=N32;;
7230   *-64|*"-64 ") libmagic=64-bit;;
7231   *) libmagic=never-match;;
7232   esac
7233   lt_cv_deplibs_check_method=pass_all
7234   ;;
7235
7236 # This must be Linux ELF.
7237 linux* | k*bsd*-gnu)
7238   lt_cv_deplibs_check_method=pass_all
7239   ;;
7240
7241 netbsd*)
7242   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7243     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7244   else
7245     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7246   fi
7247   ;;
7248
7249 newos6*)
7250   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7251   lt_cv_file_magic_cmd=/usr/bin/file
7252   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7253   ;;
7254
7255 *nto* | *qnx*)
7256   lt_cv_deplibs_check_method=pass_all
7257   ;;
7258
7259 openbsd*)
7260   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7261     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7262   else
7263     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7264   fi
7265   ;;
7266
7267 osf3* | osf4* | osf5*)
7268   lt_cv_deplibs_check_method=pass_all
7269   ;;
7270
7271 rdos*)
7272   lt_cv_deplibs_check_method=pass_all
7273   ;;
7274
7275 solaris*)
7276   lt_cv_deplibs_check_method=pass_all
7277   ;;
7278
7279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7280   lt_cv_deplibs_check_method=pass_all
7281   ;;
7282
7283 sysv4 | sysv4.3*)
7284   case $host_vendor in
7285   motorola)
7286     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]'
7287     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7288     ;;
7289   ncr)
7290     lt_cv_deplibs_check_method=pass_all
7291     ;;
7292   sequent)
7293     lt_cv_file_magic_cmd='/bin/file'
7294     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7295     ;;
7296   sni)
7297     lt_cv_file_magic_cmd='/bin/file'
7298     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7299     lt_cv_file_magic_test_file=/lib/libc.so
7300     ;;
7301   siemens)
7302     lt_cv_deplibs_check_method=pass_all
7303     ;;
7304   pc)
7305     lt_cv_deplibs_check_method=pass_all
7306     ;;
7307   esac
7308   ;;
7309
7310 tpf*)
7311   lt_cv_deplibs_check_method=pass_all
7312   ;;
7313 esac
7314
7315 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7317 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7318 file_magic_cmd=$lt_cv_file_magic_cmd
7319 deplibs_check_method=$lt_cv_deplibs_check_method
7320 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 if test -n "$ac_tool_prefix"; then
7334   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}ar; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_AR+set}" = set; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if test -n "$AR"; then
7342   ac_cv_prog_AR="$AR" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351     ac_cv_prog_AR="${ac_tool_prefix}ar"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 AR=$ac_cv_prog_AR
7362 if test -n "$AR"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7364 $as_echo "$AR" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 fi
7372 if test -z "$ac_cv_prog_AR"; then
7373   ac_ct_AR=$AR
7374   # Extract the first word of "ar", so it can be a program name with args.
7375 set dummy ar; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   if test -n "$ac_ct_AR"; then
7382   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389     for ac_exec_ext in '' $ac_executable_extensions; do
7390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391     ac_cv_prog_ac_ct_AR="ar"
7392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396   done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7402 if test -n "$ac_ct_AR"; then
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7404 $as_echo "$ac_ct_AR" >&6; }
7405 else
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410   if test "x$ac_ct_AR" = x; then
7411     AR="false"
7412   else
7413     case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7418 esac
7419     AR=$ac_ct_AR
7420   fi
7421 else
7422   AR="$ac_cv_prog_AR"
7423 fi
7424
7425 test -z "$AR" && AR=ar
7426 test -z "$AR_FLAGS" && AR_FLAGS=cru
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438 if test -n "$ac_tool_prefix"; then
7439   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}strip; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_STRIP+set}" = set; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   if test -n "$STRIP"; then
7447   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454     for ac_exec_ext in '' $ac_executable_extensions; do
7455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461   done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 STRIP=$ac_cv_prog_STRIP
7467 if test -n "$STRIP"; then
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7469 $as_echo "$STRIP" >&6; }
7470 else
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475
7476 fi
7477 if test -z "$ac_cv_prog_STRIP"; then
7478   ac_ct_STRIP=$STRIP
7479   # Extract the first word of "strip", so it can be a program name with args.
7480 set dummy strip; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   if test -n "$ac_ct_STRIP"; then
7487   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7488 else
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
7492   IFS=$as_save_IFS
7493   test -z "$as_dir" && as_dir=.
7494     for ac_exec_ext in '' $ac_executable_extensions; do
7495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496     ac_cv_prog_ac_ct_STRIP="strip"
7497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498     break 2
7499   fi
7500 done
7501   done
7502 IFS=$as_save_IFS
7503
7504 fi
7505 fi
7506 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7507 if test -n "$ac_ct_STRIP"; then
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7509 $as_echo "$ac_ct_STRIP" >&6; }
7510 else
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7513 fi
7514
7515   if test "x$ac_ct_STRIP" = x; then
7516     STRIP=":"
7517   else
7518     case $cross_compiling:$ac_tool_warned in
7519 yes:)
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522 ac_tool_warned=yes ;;
7523 esac
7524     STRIP=$ac_ct_STRIP
7525   fi
7526 else
7527   STRIP="$ac_cv_prog_STRIP"
7528 fi
7529
7530 test -z "$STRIP" && STRIP=:
7531
7532
7533
7534
7535
7536
7537 if test -n "$ac_tool_prefix"; then
7538   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7539 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7543   $as_echo_n "(cached) " >&6
7544 else
7545   if test -n "$RANLIB"; then
7546   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553     for ac_exec_ext in '' $ac_executable_extensions; do
7554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560   done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 RANLIB=$ac_cv_prog_RANLIB
7566 if test -n "$RANLIB"; then
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7568 $as_echo "$RANLIB" >&6; }
7569 else
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574
7575 fi
7576 if test -z "$ac_cv_prog_RANLIB"; then
7577   ac_ct_RANLIB=$RANLIB
7578   # Extract the first word of "ranlib", so it can be a program name with args.
7579 set dummy ranlib; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   if test -n "$ac_ct_RANLIB"; then
7586   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593     for ac_exec_ext in '' $ac_executable_extensions; do
7594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595     ac_cv_prog_ac_ct_RANLIB="ranlib"
7596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600   done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7606 if test -n "$ac_ct_RANLIB"; then
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7608 $as_echo "$ac_ct_RANLIB" >&6; }
7609 else
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613
7614   if test "x$ac_ct_RANLIB" = x; then
7615     RANLIB=":"
7616   else
7617     case $cross_compiling:$ac_tool_warned in
7618 yes:)
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621 ac_tool_warned=yes ;;
7622 esac
7623     RANLIB=$ac_ct_RANLIB
7624   fi
7625 else
7626   RANLIB="$ac_cv_prog_RANLIB"
7627 fi
7628
7629 test -z "$RANLIB" && RANLIB=:
7630
7631
7632
7633
7634
7635
7636 # Determine commands to create old-style static archives.
7637 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7638 old_postinstall_cmds='chmod 644 $oldlib'
7639 old_postuninstall_cmds=
7640
7641 if test -n "$RANLIB"; then
7642   case $host_os in
7643   openbsd*)
7644     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7645     ;;
7646   *)
7647     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7648     ;;
7649   esac
7650   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7651 fi
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686 # If no C compiler was specified, use CC.
7687 LTCC=${LTCC-"$CC"}
7688
7689 # If no C compiler flags were specified, use CFLAGS.
7690 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7691
7692 # Allow CC to be a program name with arguments.
7693 compiler=$CC
7694
7695
7696 # Check for command to grab the raw symbol name followed by C symbol from nm.
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7698 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7699 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7700   $as_echo_n "(cached) " >&6
7701 else
7702
7703 # These are sane defaults that work on at least a few old systems.
7704 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7705
7706 # Character class describing NM global symbol codes.
7707 symcode='[BCDEGRST]'
7708
7709 # Regexp to match symbols that can be accessed directly from C.
7710 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7711
7712 # Define system-specific variables.
7713 case $host_os in
7714 aix*)
7715   symcode='[BCDT]'
7716   ;;
7717 cygwin* | mingw* | pw32* | cegcc*)
7718   symcode='[ABCDGISTW]'
7719   ;;
7720 hpux*)
7721   if test "$host_cpu" = ia64; then
7722     symcode='[ABCDEGRST]'
7723   fi
7724   ;;
7725 irix* | nonstopux*)
7726   symcode='[BCDEGRST]'
7727   ;;
7728 osf*)
7729   symcode='[BCDEGQRST]'
7730   ;;
7731 solaris*)
7732   symcode='[BDRT]'
7733   ;;
7734 sco3.2v5*)
7735   symcode='[DT]'
7736   ;;
7737 sysv4.2uw2*)
7738   symcode='[DT]'
7739   ;;
7740 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7741   symcode='[ABDT]'
7742   ;;
7743 sysv4)
7744   symcode='[DFNSTU]'
7745   ;;
7746 esac
7747
7748 # If we're using GNU nm, then use its standard symbol codes.
7749 case `$NM -V 2>&1` in
7750 *GNU* | *'with BFD'*)
7751   symcode='[ABCDGIRSTW]' ;;
7752 esac
7753
7754 # Transform an extracted symbol line into a proper C declaration.
7755 # Some systems (esp. on ia64) link data and code symbols differently,
7756 # so use this general approach.
7757 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7758
7759 # Transform an extracted symbol line into symbol name and symbol address
7760 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7761 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'"
7762
7763 # Handle CRLF in mingw tool chain
7764 opt_cr=
7765 case $build_os in
7766 mingw*)
7767   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7768   ;;
7769 esac
7770
7771 # Try without a prefix underscore, then with it.
7772 for ac_symprfx in "" "_"; do
7773
7774   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7775   symxfrm="\\1 $ac_symprfx\\2 \\2"
7776
7777   # Write the raw and C identifiers.
7778   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7779     # Fake it for dumpbin and say T for any non-static function
7780     # and D for any global variable.
7781     # Also find C++ and __fastcall symbols from MSVC++,
7782     # which start with @ or ?.
7783     lt_cv_sys_global_symbol_pipe="$AWK '"\
7784 "     {last_section=section; section=\$ 3};"\
7785 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7786 "     \$ 0!~/External *\|/{next};"\
7787 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7788 "     {if(hide[section]) next};"\
7789 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7790 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7791 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7792 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7793 "     ' prfx=^$ac_symprfx"
7794   else
7795     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7796   fi
7797
7798   # Check to see that the pipe works correctly.
7799   pipe_works=no
7800
7801   rm -f conftest*
7802   cat > conftest.$ac_ext <<_LT_EOF
7803 #ifdef __cplusplus
7804 extern "C" {
7805 #endif
7806 char nm_test_var;
7807 void nm_test_func(void);
7808 void nm_test_func(void){}
7809 #ifdef __cplusplus
7810 }
7811 #endif
7812 int main(){nm_test_var='a';nm_test_func();return(0);}
7813 _LT_EOF
7814
7815   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7816   (eval $ac_compile) 2>&5
7817   ac_status=$?
7818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819   test $ac_status = 0; }; then
7820     # Now try to grab the symbols.
7821     nlist=conftest.nm
7822     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7823   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7824   ac_status=$?
7825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826   test $ac_status = 0; } && test -s "$nlist"; then
7827       # Try sorting and uniquifying the output.
7828       if sort "$nlist" | uniq > "$nlist"T; then
7829         mv -f "$nlist"T "$nlist"
7830       else
7831         rm -f "$nlist"T
7832       fi
7833
7834       # Make sure that we snagged all the symbols we need.
7835       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7836         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7837           cat <<_LT_EOF > conftest.$ac_ext
7838 #ifdef __cplusplus
7839 extern "C" {
7840 #endif
7841
7842 _LT_EOF
7843           # Now generate the symbol file.
7844           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7845
7846           cat <<_LT_EOF >> conftest.$ac_ext
7847
7848 /* The mapping between symbol names and symbols.  */
7849 const struct {
7850   const char *name;
7851   void       *address;
7852 }
7853 lt__PROGRAM__LTX_preloaded_symbols[] =
7854 {
7855   { "@PROGRAM@", (void *) 0 },
7856 _LT_EOF
7857           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7858           cat <<\_LT_EOF >> conftest.$ac_ext
7859   {0, (void *) 0}
7860 };
7861
7862 /* This works around a problem in FreeBSD linker */
7863 #ifdef FREEBSD_WORKAROUND
7864 static const void *lt_preloaded_setup() {
7865   return lt__PROGRAM__LTX_preloaded_symbols;
7866 }
7867 #endif
7868
7869 #ifdef __cplusplus
7870 }
7871 #endif
7872 _LT_EOF
7873           # Now try linking the two files.
7874           mv conftest.$ac_objext conftstm.$ac_objext
7875           lt_save_LIBS="$LIBS"
7876           lt_save_CFLAGS="$CFLAGS"
7877           LIBS="conftstm.$ac_objext"
7878           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7879           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7880   (eval $ac_link) 2>&5
7881   ac_status=$?
7882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7884             pipe_works=yes
7885           fi
7886           LIBS="$lt_save_LIBS"
7887           CFLAGS="$lt_save_CFLAGS"
7888         else
7889           echo "cannot find nm_test_func in $nlist" >&5
7890         fi
7891       else
7892         echo "cannot find nm_test_var in $nlist" >&5
7893       fi
7894     else
7895       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7896     fi
7897   else
7898     echo "$progname: failed program was:" >&5
7899     cat conftest.$ac_ext >&5
7900   fi
7901   rm -rf conftest* conftst*
7902
7903   # Do not use the global_symbol_pipe unless it works.
7904   if test "$pipe_works" = yes; then
7905     break
7906   else
7907     lt_cv_sys_global_symbol_pipe=
7908   fi
7909 done
7910
7911 fi
7912
7913 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7914   lt_cv_sys_global_symbol_to_cdecl=
7915 fi
7916 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7918 $as_echo "failed" >&6; }
7919 else
7920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7921 $as_echo "ok" >&6; }
7922 fi
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945 # Check whether --enable-libtool-lock was given.
7946 if test "${enable_libtool_lock+set}" = set; then :
7947   enableval=$enable_libtool_lock;
7948 fi
7949
7950 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7951
7952 # Some flags need to be propagated to the compiler or linker for good
7953 # libtool support.
7954 case $host in
7955 ia64-*-hpux*)
7956   # Find out which ABI we are using.
7957   echo 'int i;' > conftest.$ac_ext
7958   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7959   (eval $ac_compile) 2>&5
7960   ac_status=$?
7961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962   test $ac_status = 0; }; then
7963     case `/usr/bin/file conftest.$ac_objext` in
7964       *ELF-32*)
7965         HPUX_IA64_MODE="32"
7966         ;;
7967       *ELF-64*)
7968         HPUX_IA64_MODE="64"
7969         ;;
7970     esac
7971   fi
7972   rm -rf conftest*
7973   ;;
7974 *-*-irix6*)
7975   # Find out which ABI we are using.
7976   echo '#line 7976 "configure"' > conftest.$ac_ext
7977   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7978   (eval $ac_compile) 2>&5
7979   ac_status=$?
7980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7981   test $ac_status = 0; }; then
7982     if test "$lt_cv_prog_gnu_ld" = yes; then
7983       case `/usr/bin/file conftest.$ac_objext` in
7984         *32-bit*)
7985           LD="${LD-ld} -melf32bsmip"
7986           ;;
7987         *N32*)
7988           LD="${LD-ld} -melf32bmipn32"
7989           ;;
7990         *64-bit*)
7991           LD="${LD-ld} -melf64bmip"
7992         ;;
7993       esac
7994     else
7995       case `/usr/bin/file conftest.$ac_objext` in
7996         *32-bit*)
7997           LD="${LD-ld} -32"
7998           ;;
7999         *N32*)
8000           LD="${LD-ld} -n32"
8001           ;;
8002         *64-bit*)
8003           LD="${LD-ld} -64"
8004           ;;
8005       esac
8006     fi
8007   fi
8008   rm -rf conftest*
8009   ;;
8010
8011 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8012 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8013   # Find out which ABI we are using.
8014   echo 'int i;' > conftest.$ac_ext
8015   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8016   (eval $ac_compile) 2>&5
8017   ac_status=$?
8018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8019   test $ac_status = 0; }; then
8020     case `/usr/bin/file conftest.o` in
8021       *32-bit*)
8022         case $host in
8023           x86_64-*kfreebsd*-gnu)
8024             LD="${LD-ld} -m elf_i386_fbsd"
8025             ;;
8026           x86_64-*linux*)
8027             LD="${LD-ld} -m elf_i386"
8028             ;;
8029           ppc64-*linux*|powerpc64-*linux*)
8030             LD="${LD-ld} -m elf32ppclinux"
8031             ;;
8032           s390x-*linux*)
8033             LD="${LD-ld} -m elf_s390"
8034             ;;
8035           sparc64-*linux*)
8036             LD="${LD-ld} -m elf32_sparc"
8037             ;;
8038         esac
8039         ;;
8040       *64-bit*)
8041         case $host in
8042           x86_64-*kfreebsd*-gnu)
8043             LD="${LD-ld} -m elf_x86_64_fbsd"
8044             ;;
8045           x86_64-*linux*)
8046             LD="${LD-ld} -m elf_x86_64"
8047             ;;
8048           ppc*-*linux*|powerpc*-*linux*)
8049             LD="${LD-ld} -m elf64ppc"
8050             ;;
8051           s390*-*linux*|s390*-*tpf*)
8052             LD="${LD-ld} -m elf64_s390"
8053             ;;
8054           sparc*-*linux*)
8055             LD="${LD-ld} -m elf64_sparc"
8056             ;;
8057         esac
8058         ;;
8059     esac
8060   fi
8061   rm -rf conftest*
8062   ;;
8063
8064 *-*-sco3.2v5*)
8065   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8066   SAVE_CFLAGS="$CFLAGS"
8067   CFLAGS="$CFLAGS -belf"
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8069 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8070 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8071   $as_echo_n "(cached) " >&6
8072 else
8073   ac_ext=c
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8078
8079      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h.  */
8081
8082 int
8083 main ()
8084 {
8085
8086   ;
8087   return 0;
8088 }
8089 _ACEOF
8090 if ac_fn_c_try_link "$LINENO"; then :
8091   lt_cv_cc_needs_belf=yes
8092 else
8093   lt_cv_cc_needs_belf=no
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext \
8096     conftest$ac_exeext conftest.$ac_ext
8097      ac_ext=c
8098 ac_cpp='$CPP $CPPFLAGS'
8099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8102
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8105 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8106   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8107     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8108     CFLAGS="$SAVE_CFLAGS"
8109   fi
8110   ;;
8111 sparc*-*solaris*)
8112   # Find out which ABI we are using.
8113   echo 'int i;' > conftest.$ac_ext
8114   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8115   (eval $ac_compile) 2>&5
8116   ac_status=$?
8117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8118   test $ac_status = 0; }; then
8119     case `/usr/bin/file conftest.o` in
8120     *64-bit*)
8121       case $lt_cv_prog_gnu_ld in
8122       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8123       *)
8124         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8125           LD="${LD-ld} -64"
8126         fi
8127         ;;
8128       esac
8129       ;;
8130     esac
8131   fi
8132   rm -rf conftest*
8133   ;;
8134 esac
8135
8136 need_locks="$enable_libtool_lock"
8137
8138
8139   case $host_os in
8140     rhapsody* | darwin*)
8141     if test -n "$ac_tool_prefix"; then
8142   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8143 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145 $as_echo_n "checking for $ac_word... " >&6; }
8146 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8147   $as_echo_n "(cached) " >&6
8148 else
8149   if test -n "$DSYMUTIL"; then
8150   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8154 do
8155   IFS=$as_save_IFS
8156   test -z "$as_dir" && as_dir=.
8157     for ac_exec_ext in '' $ac_executable_extensions; do
8158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161     break 2
8162   fi
8163 done
8164   done
8165 IFS=$as_save_IFS
8166
8167 fi
8168 fi
8169 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8170 if test -n "$DSYMUTIL"; then
8171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8172 $as_echo "$DSYMUTIL" >&6; }
8173 else
8174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8176 fi
8177
8178
8179 fi
8180 if test -z "$ac_cv_prog_DSYMUTIL"; then
8181   ac_ct_DSYMUTIL=$DSYMUTIL
8182   # Extract the first word of "dsymutil", so it can be a program name with args.
8183 set dummy dsymutil; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8187   $as_echo_n "(cached) " >&6
8188 else
8189   if test -n "$ac_ct_DSYMUTIL"; then
8190   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8191 else
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195   IFS=$as_save_IFS
8196   test -z "$as_dir" && as_dir=.
8197     for ac_exec_ext in '' $ac_executable_extensions; do
8198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8199     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201     break 2
8202   fi
8203 done
8204   done
8205 IFS=$as_save_IFS
8206
8207 fi
8208 fi
8209 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8210 if test -n "$ac_ct_DSYMUTIL"; then
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8212 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8213 else
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8216 fi
8217
8218   if test "x$ac_ct_DSYMUTIL" = x; then
8219     DSYMUTIL=":"
8220   else
8221     case $cross_compiling:$ac_tool_warned in
8222 yes:)
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8225 ac_tool_warned=yes ;;
8226 esac
8227     DSYMUTIL=$ac_ct_DSYMUTIL
8228   fi
8229 else
8230   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8231 fi
8232
8233     if test -n "$ac_tool_prefix"; then
8234   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8235 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237 $as_echo_n "checking for $ac_word... " >&6; }
8238 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8239   $as_echo_n "(cached) " >&6
8240 else
8241   if test -n "$NMEDIT"; then
8242   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8243 else
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8246 do
8247   IFS=$as_save_IFS
8248   test -z "$as_dir" && as_dir=.
8249     for ac_exec_ext in '' $ac_executable_extensions; do
8250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8251     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253     break 2
8254   fi
8255 done
8256   done
8257 IFS=$as_save_IFS
8258
8259 fi
8260 fi
8261 NMEDIT=$ac_cv_prog_NMEDIT
8262 if test -n "$NMEDIT"; then
8263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8264 $as_echo "$NMEDIT" >&6; }
8265 else
8266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8268 fi
8269
8270
8271 fi
8272 if test -z "$ac_cv_prog_NMEDIT"; then
8273   ac_ct_NMEDIT=$NMEDIT
8274   # Extract the first word of "nmedit", so it can be a program name with args.
8275 set dummy nmedit; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8279   $as_echo_n "(cached) " >&6
8280 else
8281   if test -n "$ac_ct_NMEDIT"; then
8282   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8283 else
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287   IFS=$as_save_IFS
8288   test -z "$as_dir" && as_dir=.
8289     for ac_exec_ext in '' $ac_executable_extensions; do
8290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293     break 2
8294   fi
8295 done
8296   done
8297 IFS=$as_save_IFS
8298
8299 fi
8300 fi
8301 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8302 if test -n "$ac_ct_NMEDIT"; then
8303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8304 $as_echo "$ac_ct_NMEDIT" >&6; }
8305 else
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8308 fi
8309
8310   if test "x$ac_ct_NMEDIT" = x; then
8311     NMEDIT=":"
8312   else
8313     case $cross_compiling:$ac_tool_warned in
8314 yes:)
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8317 ac_tool_warned=yes ;;
8318 esac
8319     NMEDIT=$ac_ct_NMEDIT
8320   fi
8321 else
8322   NMEDIT="$ac_cv_prog_NMEDIT"
8323 fi
8324
8325     if test -n "$ac_tool_prefix"; then
8326   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8327 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if test "${ac_cv_prog_LIPO+set}" = set; then :
8331   $as_echo_n "(cached) " >&6
8332 else
8333   if test -n "$LIPO"; then
8334   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8335 else
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 for as_dir in $PATH
8338 do
8339   IFS=$as_save_IFS
8340   test -z "$as_dir" && as_dir=.
8341     for ac_exec_ext in '' $ac_executable_extensions; do
8342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8343     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345     break 2
8346   fi
8347 done
8348   done
8349 IFS=$as_save_IFS
8350
8351 fi
8352 fi
8353 LIPO=$ac_cv_prog_LIPO
8354 if test -n "$LIPO"; then
8355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8356 $as_echo "$LIPO" >&6; }
8357 else
8358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8360 fi
8361
8362
8363 fi
8364 if test -z "$ac_cv_prog_LIPO"; then
8365   ac_ct_LIPO=$LIPO
8366   # Extract the first word of "lipo", so it can be a program name with args.
8367 set dummy lipo; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8371   $as_echo_n "(cached) " >&6
8372 else
8373   if test -n "$ac_ct_LIPO"; then
8374   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8378 do
8379   IFS=$as_save_IFS
8380   test -z "$as_dir" && as_dir=.
8381     for ac_exec_ext in '' $ac_executable_extensions; do
8382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383     ac_cv_prog_ac_ct_LIPO="lipo"
8384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385     break 2
8386   fi
8387 done
8388   done
8389 IFS=$as_save_IFS
8390
8391 fi
8392 fi
8393 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8394 if test -n "$ac_ct_LIPO"; then
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8396 $as_echo "$ac_ct_LIPO" >&6; }
8397 else
8398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400 fi
8401
8402   if test "x$ac_ct_LIPO" = x; then
8403     LIPO=":"
8404   else
8405     case $cross_compiling:$ac_tool_warned in
8406 yes:)
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8409 ac_tool_warned=yes ;;
8410 esac
8411     LIPO=$ac_ct_LIPO
8412   fi
8413 else
8414   LIPO="$ac_cv_prog_LIPO"
8415 fi
8416
8417     if test -n "$ac_tool_prefix"; then
8418   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8419 set dummy ${ac_tool_prefix}otool; ac_word=$2
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421 $as_echo_n "checking for $ac_word... " >&6; }
8422 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8423   $as_echo_n "(cached) " >&6
8424 else
8425   if test -n "$OTOOL"; then
8426   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8427 else
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 for as_dir in $PATH
8430 do
8431   IFS=$as_save_IFS
8432   test -z "$as_dir" && as_dir=.
8433     for ac_exec_ext in '' $ac_executable_extensions; do
8434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8435     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8437     break 2
8438   fi
8439 done
8440   done
8441 IFS=$as_save_IFS
8442
8443 fi
8444 fi
8445 OTOOL=$ac_cv_prog_OTOOL
8446 if test -n "$OTOOL"; then
8447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8448 $as_echo "$OTOOL" >&6; }
8449 else
8450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8452 fi
8453
8454
8455 fi
8456 if test -z "$ac_cv_prog_OTOOL"; then
8457   ac_ct_OTOOL=$OTOOL
8458   # Extract the first word of "otool", so it can be a program name with args.
8459 set dummy otool; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8463   $as_echo_n "(cached) " >&6
8464 else
8465   if test -n "$ac_ct_OTOOL"; then
8466   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8470 do
8471   IFS=$as_save_IFS
8472   test -z "$as_dir" && as_dir=.
8473     for ac_exec_ext in '' $ac_executable_extensions; do
8474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8475     ac_cv_prog_ac_ct_OTOOL="otool"
8476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477     break 2
8478   fi
8479 done
8480   done
8481 IFS=$as_save_IFS
8482
8483 fi
8484 fi
8485 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8486 if test -n "$ac_ct_OTOOL"; then
8487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8488 $as_echo "$ac_ct_OTOOL" >&6; }
8489 else
8490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8492 fi
8493
8494   if test "x$ac_ct_OTOOL" = x; then
8495     OTOOL=":"
8496   else
8497     case $cross_compiling:$ac_tool_warned in
8498 yes:)
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8501 ac_tool_warned=yes ;;
8502 esac
8503     OTOOL=$ac_ct_OTOOL
8504   fi
8505 else
8506   OTOOL="$ac_cv_prog_OTOOL"
8507 fi
8508
8509     if test -n "$ac_tool_prefix"; then
8510   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8511 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8515   $as_echo_n "(cached) " >&6
8516 else
8517   if test -n "$OTOOL64"; then
8518   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8519 else
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523   IFS=$as_save_IFS
8524   test -z "$as_dir" && as_dir=.
8525     for ac_exec_ext in '' $ac_executable_extensions; do
8526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529     break 2
8530   fi
8531 done
8532   done
8533 IFS=$as_save_IFS
8534
8535 fi
8536 fi
8537 OTOOL64=$ac_cv_prog_OTOOL64
8538 if test -n "$OTOOL64"; then
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8540 $as_echo "$OTOOL64" >&6; }
8541 else
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8544 fi
8545
8546
8547 fi
8548 if test -z "$ac_cv_prog_OTOOL64"; then
8549   ac_ct_OTOOL64=$OTOOL64
8550   # Extract the first word of "otool64", so it can be a program name with args.
8551 set dummy otool64; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8555   $as_echo_n "(cached) " >&6
8556 else
8557   if test -n "$ac_ct_OTOOL64"; then
8558   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8559 else
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8562 do
8563   IFS=$as_save_IFS
8564   test -z "$as_dir" && as_dir=.
8565     for ac_exec_ext in '' $ac_executable_extensions; do
8566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567     ac_cv_prog_ac_ct_OTOOL64="otool64"
8568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569     break 2
8570   fi
8571 done
8572   done
8573 IFS=$as_save_IFS
8574
8575 fi
8576 fi
8577 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8578 if test -n "$ac_ct_OTOOL64"; then
8579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8580 $as_echo "$ac_ct_OTOOL64" >&6; }
8581 else
8582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8584 fi
8585
8586   if test "x$ac_ct_OTOOL64" = x; then
8587     OTOOL64=":"
8588   else
8589     case $cross_compiling:$ac_tool_warned in
8590 yes:)
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8593 ac_tool_warned=yes ;;
8594 esac
8595     OTOOL64=$ac_ct_OTOOL64
8596   fi
8597 else
8598   OTOOL64="$ac_cv_prog_OTOOL64"
8599 fi
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8628 $as_echo_n "checking for -single_module linker flag... " >&6; }
8629 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8630   $as_echo_n "(cached) " >&6
8631 else
8632   lt_cv_apple_cc_single_mod=no
8633       if test -z "${LT_MULTI_MODULE}"; then
8634         # By default we will add the -single_module flag. You can override
8635         # by either setting the environment variable LT_MULTI_MODULE
8636         # non-empty at configure time, or by adding -multi_module to the
8637         # link flags.
8638         rm -rf libconftest.dylib*
8639         echo "int foo(void){return 1;}" > conftest.c
8640         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8641 -dynamiclib -Wl,-single_module conftest.c" >&5
8642         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8643           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8644         _lt_result=$?
8645         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8646           lt_cv_apple_cc_single_mod=yes
8647         else
8648           cat conftest.err >&5
8649         fi
8650         rm -rf libconftest.dylib*
8651         rm -f conftest.*
8652       fi
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8655 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8657 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8658 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8659   $as_echo_n "(cached) " >&6
8660 else
8661   lt_cv_ld_exported_symbols_list=no
8662       save_LDFLAGS=$LDFLAGS
8663       echo "_main" > conftest.sym
8664       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8665       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h.  */
8667
8668 int
8669 main ()
8670 {
8671
8672   ;
8673   return 0;
8674 }
8675 _ACEOF
8676 if ac_fn_c_try_link "$LINENO"; then :
8677   lt_cv_ld_exported_symbols_list=yes
8678 else
8679   lt_cv_ld_exported_symbols_list=no
8680 fi
8681 rm -f core conftest.err conftest.$ac_objext \
8682     conftest$ac_exeext conftest.$ac_ext
8683         LDFLAGS="$save_LDFLAGS"
8684
8685 fi
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8687 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8688     case $host_os in
8689     rhapsody* | darwin1.[012])
8690       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8691     darwin1.*)
8692       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8693     darwin*) # darwin 5.x on
8694       # if running on 10.5 or later, the deployment target defaults
8695       # to the OS version, if on x86, and 10.4, the deployment
8696       # target defaults to 10.4. Don't you love it?
8697       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8698         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8699           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8700         10.[012]*)
8701           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8702         10.*)
8703           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8704       esac
8705     ;;
8706   esac
8707     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8708       _lt_dar_single_mod='$single_module'
8709     fi
8710     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8711       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8712     else
8713       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8714     fi
8715     if test "$DSYMUTIL" != ":"; then
8716       _lt_dsymutil='~$DSYMUTIL $lib || :'
8717     else
8718       _lt_dsymutil=
8719     fi
8720     ;;
8721   esac
8722
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8725 $as_echo_n "checking for ANSI C header files... " >&6; }
8726 if test "${ac_cv_header_stdc+set}" = set; then :
8727   $as_echo_n "(cached) " >&6
8728 else
8729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h.  */
8731 #include <stdlib.h>
8732 #include <stdarg.h>
8733 #include <string.h>
8734 #include <float.h>
8735
8736 int
8737 main ()
8738 {
8739
8740   ;
8741   return 0;
8742 }
8743 _ACEOF
8744 if ac_fn_c_try_compile "$LINENO"; then :
8745   ac_cv_header_stdc=yes
8746 else
8747   ac_cv_header_stdc=no
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750
8751 if test $ac_cv_header_stdc = yes; then
8752   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h.  */
8755 #include <string.h>
8756
8757 _ACEOF
8758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8759   $EGREP "memchr" >/dev/null 2>&1; then :
8760
8761 else
8762   ac_cv_header_stdc=no
8763 fi
8764 rm -f conftest*
8765
8766 fi
8767
8768 if test $ac_cv_header_stdc = yes; then
8769   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h.  */
8772 #include <stdlib.h>
8773
8774 _ACEOF
8775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8776   $EGREP "free" >/dev/null 2>&1; then :
8777
8778 else
8779   ac_cv_header_stdc=no
8780 fi
8781 rm -f conftest*
8782
8783 fi
8784
8785 if test $ac_cv_header_stdc = yes; then
8786   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8787   if test "$cross_compiling" = yes; then :
8788   :
8789 else
8790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h.  */
8792 #include <ctype.h>
8793 #include <stdlib.h>
8794 #if ((' ' & 0x0FF) == 0x020)
8795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8797 #else
8798 # define ISLOWER(c) \
8799                    (('a' <= (c) && (c) <= 'i') \
8800                      || ('j' <= (c) && (c) <= 'r') \
8801                      || ('s' <= (c) && (c) <= 'z'))
8802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8803 #endif
8804
8805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8806 int
8807 main ()
8808 {
8809   int i;
8810   for (i = 0; i < 256; i++)
8811     if (XOR (islower (i), ISLOWER (i))
8812         || toupper (i) != TOUPPER (i))
8813       return 2;
8814   return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_run "$LINENO"; then :
8818
8819 else
8820   ac_cv_header_stdc=no
8821 fi
8822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8823   conftest.$ac_objext conftest.beam conftest.$ac_ext
8824 fi
8825
8826 fi
8827 fi
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8829 $as_echo "$ac_cv_header_stdc" >&6; }
8830 if test $ac_cv_header_stdc = yes; then
8831
8832 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8833
8834 fi
8835
8836 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8837 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8838                   inttypes.h stdint.h unistd.h
8839 do :
8840   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8841 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8842 "
8843 eval as_val=\$$as_ac_Header
8844    if test "x$as_val" = x""yes; then :
8845   cat >>confdefs.h <<_ACEOF
8846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8847 _ACEOF
8848
8849 fi
8850
8851 done
8852
8853
8854 for ac_header in dlfcn.h
8855 do :
8856   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8857 "
8858 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8859   cat >>confdefs.h <<_ACEOF
8860 #define HAVE_DLFCN_H 1
8861 _ACEOF
8862
8863 fi
8864
8865 done
8866
8867
8868
8869 # Set options
8870
8871
8872
8873         enable_dlopen=no
8874
8875
8876   enable_win32_dll=no
8877
8878
8879             # Check whether --enable-shared was given.
8880 if test "${enable_shared+set}" = set; then :
8881   enableval=$enable_shared; p=${PACKAGE-default}
8882     case $enableval in
8883     yes) enable_shared=yes ;;
8884     no) enable_shared=no ;;
8885     *)
8886       enable_shared=no
8887       # Look at the argument we got.  We use all the common list separators.
8888       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8889       for pkg in $enableval; do
8890         IFS="$lt_save_ifs"
8891         if test "X$pkg" = "X$p"; then
8892           enable_shared=yes
8893         fi
8894       done
8895       IFS="$lt_save_ifs"
8896       ;;
8897     esac
8898 else
8899   enable_shared=yes
8900 fi
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910   # Check whether --enable-static was given.
8911 if test "${enable_static+set}" = set; then :
8912   enableval=$enable_static; p=${PACKAGE-default}
8913     case $enableval in
8914     yes) enable_static=yes ;;
8915     no) enable_static=no ;;
8916     *)
8917      enable_static=no
8918       # Look at the argument we got.  We use all the common list separators.
8919       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8920       for pkg in $enableval; do
8921         IFS="$lt_save_ifs"
8922         if test "X$pkg" = "X$p"; then
8923           enable_static=yes
8924         fi
8925       done
8926       IFS="$lt_save_ifs"
8927       ;;
8928     esac
8929 else
8930   enable_static=yes
8931 fi
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942 # Check whether --with-pic was given.
8943 if test "${with_pic+set}" = set; then :
8944   withval=$with_pic; pic_mode="$withval"
8945 else
8946   pic_mode=default
8947 fi
8948
8949
8950 test -z "$pic_mode" && pic_mode=default
8951
8952
8953
8954
8955
8956
8957
8958   # Check whether --enable-fast-install was given.
8959 if test "${enable_fast_install+set}" = set; then :
8960   enableval=$enable_fast_install; p=${PACKAGE-default}
8961     case $enableval in
8962     yes) enable_fast_install=yes ;;
8963     no) enable_fast_install=no ;;
8964     *)
8965       enable_fast_install=no
8966       # Look at the argument we got.  We use all the common list separators.
8967       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8968       for pkg in $enableval; do
8969         IFS="$lt_save_ifs"
8970         if test "X$pkg" = "X$p"; then
8971           enable_fast_install=yes
8972         fi
8973       done
8974       IFS="$lt_save_ifs"
8975       ;;
8976     esac
8977 else
8978   enable_fast_install=yes
8979 fi
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991 # This can be used to rebuild libtool when needed
8992 LIBTOOL_DEPS="$ltmain"
8993
8994 # Always use our own libtool.
8995 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021 test -z "$LN_S" && LN_S="ln -s"
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036 if test -n "${ZSH_VERSION+set}" ; then
9037    setopt NO_GLOB_SUBST
9038 fi
9039
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9041 $as_echo_n "checking for objdir... " >&6; }
9042 if test "${lt_cv_objdir+set}" = set; then :
9043   $as_echo_n "(cached) " >&6
9044 else
9045   rm -f .libs 2>/dev/null
9046 mkdir .libs 2>/dev/null
9047 if test -d .libs; then
9048   lt_cv_objdir=.libs
9049 else
9050   # MS-DOS does not allow filenames that begin with a dot.
9051   lt_cv_objdir=_libs
9052 fi
9053 rmdir .libs 2>/dev/null
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9056 $as_echo "$lt_cv_objdir" >&6; }
9057 objdir=$lt_cv_objdir
9058
9059
9060
9061
9062
9063 cat >>confdefs.h <<_ACEOF
9064 #define LT_OBJDIR "$lt_cv_objdir/"
9065 _ACEOF
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083 case $host_os in
9084 aix3*)
9085   # AIX sometimes has problems with the GCC collect2 program.  For some
9086   # reason, if we set the COLLECT_NAMES environment variable, the problems
9087   # vanish in a puff of smoke.
9088   if test "X${COLLECT_NAMES+set}" != Xset; then
9089     COLLECT_NAMES=
9090     export COLLECT_NAMES
9091   fi
9092   ;;
9093 esac
9094
9095 # Sed substitution that helps us do robust quoting.  It backslashifies
9096 # metacharacters that are still active within double-quoted strings.
9097 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9098
9099 # Same as above, but do not quote variable references.
9100 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9101
9102 # Sed substitution to delay expansion of an escaped shell variable in a
9103 # double_quote_subst'ed string.
9104 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9105
9106 # Sed substitution to delay expansion of an escaped single quote.
9107 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9108
9109 # Sed substitution to avoid accidental globbing in evaled expressions
9110 no_glob_subst='s/\*/\\\*/g'
9111
9112 # Global variables:
9113 ofile=libtool
9114 can_build_shared=yes
9115
9116 # All known linkers require a `.a' archive for static linking (except MSVC,
9117 # which needs '.lib').
9118 libext=a
9119
9120 with_gnu_ld="$lt_cv_prog_gnu_ld"
9121
9122 old_CC="$CC"
9123 old_CFLAGS="$CFLAGS"
9124
9125 # Set sane defaults for various variables
9126 test -z "$CC" && CC=cc
9127 test -z "$LTCC" && LTCC=$CC
9128 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9129 test -z "$LD" && LD=ld
9130 test -z "$ac_objext" && ac_objext=o
9131
9132 for cc_temp in $compiler""; do
9133   case $cc_temp in
9134     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9135     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9136     \-*) ;;
9137     *) break;;
9138   esac
9139 done
9140 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9141
9142
9143 # Only perform the check for file, if the check method requires it
9144 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9145 case $deplibs_check_method in
9146 file_magic*)
9147   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9149 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9150 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9151   $as_echo_n "(cached) " >&6
9152 else
9153   case $MAGIC_CMD in
9154 [\\/*] |  ?:[\\/]*)
9155   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9156   ;;
9157 *)
9158   lt_save_MAGIC_CMD="$MAGIC_CMD"
9159   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9160   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9161   for ac_dir in $ac_dummy; do
9162     IFS="$lt_save_ifs"
9163     test -z "$ac_dir" && ac_dir=.
9164     if test -f $ac_dir/${ac_tool_prefix}file; then
9165       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9166       if test -n "$file_magic_test_file"; then
9167         case $deplibs_check_method in
9168         "file_magic "*)
9169           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9170           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9171           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9172             $EGREP "$file_magic_regex" > /dev/null; then
9173             :
9174           else
9175             cat <<_LT_EOF 1>&2
9176
9177 *** Warning: the command libtool uses to detect shared libraries,
9178 *** $file_magic_cmd, produces output that libtool cannot recognize.
9179 *** The result is that libtool may fail to recognize shared libraries
9180 *** as such.  This will affect the creation of libtool libraries that
9181 *** depend on shared libraries, but programs linked with such libtool
9182 *** libraries will work regardless of this problem.  Nevertheless, you
9183 *** may want to report the problem to your system manager and/or to
9184 *** bug-libtool@gnu.org
9185
9186 _LT_EOF
9187           fi ;;
9188         esac
9189       fi
9190       break
9191     fi
9192   done
9193   IFS="$lt_save_ifs"
9194   MAGIC_CMD="$lt_save_MAGIC_CMD"
9195   ;;
9196 esac
9197 fi
9198
9199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9200 if test -n "$MAGIC_CMD"; then
9201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9202 $as_echo "$MAGIC_CMD" >&6; }
9203 else
9204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9206 fi
9207
9208
9209
9210
9211
9212 if test -z "$lt_cv_path_MAGIC_CMD"; then
9213   if test -n "$ac_tool_prefix"; then
9214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9215 $as_echo_n "checking for file... " >&6; }
9216 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9217   $as_echo_n "(cached) " >&6
9218 else
9219   case $MAGIC_CMD in
9220 [\\/*] |  ?:[\\/]*)
9221   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9222   ;;
9223 *)
9224   lt_save_MAGIC_CMD="$MAGIC_CMD"
9225   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9226   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9227   for ac_dir in $ac_dummy; do
9228     IFS="$lt_save_ifs"
9229     test -z "$ac_dir" && ac_dir=.
9230     if test -f $ac_dir/file; then
9231       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9232       if test -n "$file_magic_test_file"; then
9233         case $deplibs_check_method in
9234         "file_magic "*)
9235           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9236           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9237           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9238             $EGREP "$file_magic_regex" > /dev/null; then
9239             :
9240           else
9241             cat <<_LT_EOF 1>&2
9242
9243 *** Warning: the command libtool uses to detect shared libraries,
9244 *** $file_magic_cmd, produces output that libtool cannot recognize.
9245 *** The result is that libtool may fail to recognize shared libraries
9246 *** as such.  This will affect the creation of libtool libraries that
9247 *** depend on shared libraries, but programs linked with such libtool
9248 *** libraries will work regardless of this problem.  Nevertheless, you
9249 *** may want to report the problem to your system manager and/or to
9250 *** bug-libtool@gnu.org
9251
9252 _LT_EOF
9253           fi ;;
9254         esac
9255       fi
9256       break
9257     fi
9258   done
9259   IFS="$lt_save_ifs"
9260   MAGIC_CMD="$lt_save_MAGIC_CMD"
9261   ;;
9262 esac
9263 fi
9264
9265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9266 if test -n "$MAGIC_CMD"; then
9267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9268 $as_echo "$MAGIC_CMD" >&6; }
9269 else
9270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9272 fi
9273
9274
9275   else
9276     MAGIC_CMD=:
9277   fi
9278 fi
9279
9280   fi
9281   ;;
9282 esac
9283
9284 # Use C for the default configuration in the libtool script
9285
9286 lt_save_CC="$CC"
9287 ac_ext=c
9288 ac_cpp='$CPP $CPPFLAGS'
9289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9292
9293
9294 # Source file extension for C test sources.
9295 ac_ext=c
9296
9297 # Object file extension for compiled C test sources.
9298 objext=o
9299 objext=$objext
9300
9301 # Code to be used in simple compile tests
9302 lt_simple_compile_test_code="int some_variable = 0;"
9303
9304 # Code to be used in simple link tests
9305 lt_simple_link_test_code='int main(){return(0);}'
9306
9307
9308
9309
9310
9311
9312
9313 # If no C compiler was specified, use CC.
9314 LTCC=${LTCC-"$CC"}
9315
9316 # If no C compiler flags were specified, use CFLAGS.
9317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9318
9319 # Allow CC to be a program name with arguments.
9320 compiler=$CC
9321
9322 # Save the default compiler, since it gets overwritten when the other
9323 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9324 compiler_DEFAULT=$CC
9325
9326 # save warnings/boilerplate of simple test code
9327 ac_outfile=conftest.$ac_objext
9328 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9329 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9330 _lt_compiler_boilerplate=`cat conftest.err`
9331 $RM conftest*
9332
9333 ac_outfile=conftest.$ac_objext
9334 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9335 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9336 _lt_linker_boilerplate=`cat conftest.err`
9337 $RM -r conftest*
9338
9339
9340 ## CAVEAT EMPTOR:
9341 ## There is no encapsulation within the following macros, do not change
9342 ## the running order or otherwise move them around unless you know exactly
9343 ## what you are doing...
9344 if test -n "$compiler"; then
9345
9346 lt_prog_compiler_no_builtin_flag=
9347
9348 if test "$GCC" = yes; then
9349   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9350
9351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9352 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9353 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9354   $as_echo_n "(cached) " >&6
9355 else
9356   lt_cv_prog_compiler_rtti_exceptions=no
9357    ac_outfile=conftest.$ac_objext
9358    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9359    lt_compiler_flag="-fno-rtti -fno-exceptions"
9360    # Insert the option either (1) after the last *FLAGS variable, or
9361    # (2) before a word containing "conftest.", or (3) at the end.
9362    # Note that $ac_compile itself does not contain backslashes and begins
9363    # with a dollar sign (not a hyphen), so the echo should work correctly.
9364    # The option is referenced via a variable to avoid confusing sed.
9365    lt_compile=`echo "$ac_compile" | $SED \
9366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9368    -e 's:$: $lt_compiler_flag:'`
9369    (eval echo "\"\$as_me:9369: $lt_compile\"" >&5)
9370    (eval "$lt_compile" 2>conftest.err)
9371    ac_status=$?
9372    cat conftest.err >&5
9373    echo "$as_me:9373: \$? = $ac_status" >&5
9374    if (exit $ac_status) && test -s "$ac_outfile"; then
9375      # The compiler can only warn and ignore the option if not recognized
9376      # So say no if there are warnings other than the usual output.
9377      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9378      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9379      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9380        lt_cv_prog_compiler_rtti_exceptions=yes
9381      fi
9382    fi
9383    $RM conftest*
9384
9385 fi
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9387 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9388
9389 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9390     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9391 else
9392     :
9393 fi
9394
9395 fi
9396
9397
9398
9399
9400
9401
9402   lt_prog_compiler_wl=
9403 lt_prog_compiler_pic=
9404 lt_prog_compiler_static=
9405
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9407 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9408
9409   if test "$GCC" = yes; then
9410     lt_prog_compiler_wl='-Wl,'
9411     lt_prog_compiler_static='-static'
9412
9413     case $host_os in
9414       aix*)
9415       # All AIX code is PIC.
9416       if test "$host_cpu" = ia64; then
9417         # AIX 5 now supports IA64 processor
9418         lt_prog_compiler_static='-Bstatic'
9419       fi
9420       ;;
9421
9422     amigaos*)
9423       case $host_cpu in
9424       powerpc)
9425             # see comment about AmigaOS4 .so support
9426             lt_prog_compiler_pic='-fPIC'
9427         ;;
9428       m68k)
9429             # FIXME: we need at least 68020 code to build shared libraries, but
9430             # adding the `-m68020' flag to GCC prevents building anything better,
9431             # like `-m68040'.
9432             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9433         ;;
9434       esac
9435       ;;
9436
9437     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9438       # PIC is the default for these OSes.
9439       ;;
9440
9441     mingw* | cygwin* | pw32* | os2* | cegcc*)
9442       # This hack is so that the source file can tell whether it is being
9443       # built for inclusion in a dll (and should export symbols for example).
9444       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9445       # (--disable-auto-import) libraries
9446       lt_prog_compiler_pic='-DDLL_EXPORT'
9447       ;;
9448
9449     darwin* | rhapsody*)
9450       # PIC is the default on this platform
9451       # Common symbols not allowed in MH_DYLIB files
9452       lt_prog_compiler_pic='-fno-common'
9453       ;;
9454
9455     hpux*)
9456       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9457       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9458       # sets the default TLS model and affects inlining.
9459       case $host_cpu in
9460       hppa*64*)
9461         # +Z the default
9462         ;;
9463       *)
9464         lt_prog_compiler_pic='-fPIC'
9465         ;;
9466       esac
9467       ;;
9468
9469     interix[3-9]*)
9470       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9471       # Instead, we relocate shared libraries at runtime.
9472       ;;
9473
9474     msdosdjgpp*)
9475       # Just because we use GCC doesn't mean we suddenly get shared libraries
9476       # on systems that don't support them.
9477       lt_prog_compiler_can_build_shared=no
9478       enable_shared=no
9479       ;;
9480
9481     *nto* | *qnx*)
9482       # QNX uses GNU C++, but need to define -shared option too, otherwise
9483       # it will coredump.
9484       lt_prog_compiler_pic='-fPIC -shared'
9485       ;;
9486
9487     sysv4*MP*)
9488       if test -d /usr/nec; then
9489         lt_prog_compiler_pic=-Kconform_pic
9490       fi
9491       ;;
9492
9493     *)
9494       lt_prog_compiler_pic='-fPIC'
9495       ;;
9496     esac
9497   else
9498     # PORTME Check for flag to pass linker flags through the system compiler.
9499     case $host_os in
9500     aix*)
9501       lt_prog_compiler_wl='-Wl,'
9502       if test "$host_cpu" = ia64; then
9503         # AIX 5 now supports IA64 processor
9504         lt_prog_compiler_static='-Bstatic'
9505       else
9506         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9507       fi
9508       ;;
9509
9510     mingw* | cygwin* | pw32* | os2* | cegcc*)
9511       # This hack is so that the source file can tell whether it is being
9512       # built for inclusion in a dll (and should export symbols for example).
9513       lt_prog_compiler_pic='-DDLL_EXPORT'
9514       ;;
9515
9516     hpux9* | hpux10* | hpux11*)
9517       lt_prog_compiler_wl='-Wl,'
9518       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9519       # not for PA HP-UX.
9520       case $host_cpu in
9521       hppa*64*|ia64*)
9522         # +Z the default
9523         ;;
9524       *)
9525         lt_prog_compiler_pic='+Z'
9526         ;;
9527       esac
9528       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9529       lt_prog_compiler_static='${wl}-a ${wl}archive'
9530       ;;
9531
9532     irix5* | irix6* | nonstopux*)
9533       lt_prog_compiler_wl='-Wl,'
9534       # PIC (with -KPIC) is the default.
9535       lt_prog_compiler_static='-non_shared'
9536       ;;
9537
9538     linux* | k*bsd*-gnu)
9539       case $cc_basename in
9540       # old Intel for x86_64 which still supported -KPIC.
9541       ecc*)
9542         lt_prog_compiler_wl='-Wl,'
9543         lt_prog_compiler_pic='-KPIC'
9544         lt_prog_compiler_static='-static'
9545         ;;
9546       # icc used to be incompatible with GCC.
9547       # ICC 10 doesn't accept -KPIC any more.
9548       icc* | ifort*)
9549         lt_prog_compiler_wl='-Wl,'
9550         lt_prog_compiler_pic='-fPIC'
9551         lt_prog_compiler_static='-static'
9552         ;;
9553       # Lahey Fortran 8.1.
9554       lf95*)
9555         lt_prog_compiler_wl='-Wl,'
9556         lt_prog_compiler_pic='--shared'
9557         lt_prog_compiler_static='--static'
9558         ;;
9559       pgcc* | pgf77* | pgf90* | pgf95*)
9560         # Portland Group compilers (*not* the Pentium gcc compiler,
9561         # which looks to be a dead project)
9562         lt_prog_compiler_wl='-Wl,'
9563         lt_prog_compiler_pic='-fpic'
9564         lt_prog_compiler_static='-Bstatic'
9565         ;;
9566       ccc*)
9567         lt_prog_compiler_wl='-Wl,'
9568         # All Alpha code is PIC.
9569         lt_prog_compiler_static='-non_shared'
9570         ;;
9571       xl*)
9572         # IBM XL C 8.0/Fortran 10.1 on PPC
9573         lt_prog_compiler_wl='-Wl,'
9574         lt_prog_compiler_pic='-qpic'
9575         lt_prog_compiler_static='-qstaticlink'
9576         ;;
9577       *)
9578         case `$CC -V 2>&1 | sed 5q` in
9579         *Sun\ C*)
9580           # Sun C 5.9
9581           lt_prog_compiler_pic='-KPIC'
9582           lt_prog_compiler_static='-Bstatic'
9583           lt_prog_compiler_wl='-Wl,'
9584           ;;
9585         *Sun\ F*)
9586           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9587           lt_prog_compiler_pic='-KPIC'
9588           lt_prog_compiler_static='-Bstatic'
9589           lt_prog_compiler_wl=''
9590           ;;
9591         esac
9592         ;;
9593       esac
9594       ;;
9595
9596     newsos6)
9597       lt_prog_compiler_pic='-KPIC'
9598       lt_prog_compiler_static='-Bstatic'
9599       ;;
9600
9601     *nto* | *qnx*)
9602       # QNX uses GNU C++, but need to define -shared option too, otherwise
9603       # it will coredump.
9604       lt_prog_compiler_pic='-fPIC -shared'
9605       ;;
9606
9607     osf3* | osf4* | osf5*)
9608       lt_prog_compiler_wl='-Wl,'
9609       # All OSF/1 code is PIC.
9610       lt_prog_compiler_static='-non_shared'
9611       ;;
9612
9613     rdos*)
9614       lt_prog_compiler_static='-non_shared'
9615       ;;
9616
9617     solaris*)
9618       lt_prog_compiler_pic='-KPIC'
9619       lt_prog_compiler_static='-Bstatic'
9620       case $cc_basename in
9621       f77* | f90* | f95*)
9622         lt_prog_compiler_wl='-Qoption ld ';;
9623       *)
9624         lt_prog_compiler_wl='-Wl,';;
9625       esac
9626       ;;
9627
9628     sunos4*)
9629       lt_prog_compiler_wl='-Qoption ld '
9630       lt_prog_compiler_pic='-PIC'
9631       lt_prog_compiler_static='-Bstatic'
9632       ;;
9633
9634     sysv4 | sysv4.2uw2* | sysv4.3*)
9635       lt_prog_compiler_wl='-Wl,'
9636       lt_prog_compiler_pic='-KPIC'
9637       lt_prog_compiler_static='-Bstatic'
9638       ;;
9639
9640     sysv4*MP*)
9641       if test -d /usr/nec ;then
9642         lt_prog_compiler_pic='-Kconform_pic'
9643         lt_prog_compiler_static='-Bstatic'
9644       fi
9645       ;;
9646
9647     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9648       lt_prog_compiler_wl='-Wl,'
9649       lt_prog_compiler_pic='-KPIC'
9650       lt_prog_compiler_static='-Bstatic'
9651       ;;
9652
9653     unicos*)
9654       lt_prog_compiler_wl='-Wl,'
9655       lt_prog_compiler_can_build_shared=no
9656       ;;
9657
9658     uts4*)
9659       lt_prog_compiler_pic='-pic'
9660       lt_prog_compiler_static='-Bstatic'
9661       ;;
9662
9663     *)
9664       lt_prog_compiler_can_build_shared=no
9665       ;;
9666     esac
9667   fi
9668
9669 case $host_os in
9670   # For platforms which do not support PIC, -DPIC is meaningless:
9671   *djgpp*)
9672     lt_prog_compiler_pic=
9673     ;;
9674   *)
9675     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9676     ;;
9677 esac
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9679 $as_echo "$lt_prog_compiler_pic" >&6; }
9680
9681
9682
9683
9684
9685
9686 #
9687 # Check to make sure the PIC flag actually works.
9688 #
9689 if test -n "$lt_prog_compiler_pic"; then
9690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9691 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9692 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9693   $as_echo_n "(cached) " >&6
9694 else
9695   lt_cv_prog_compiler_pic_works=no
9696    ac_outfile=conftest.$ac_objext
9697    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9698    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9699    # Insert the option either (1) after the last *FLAGS variable, or
9700    # (2) before a word containing "conftest.", or (3) at the end.
9701    # Note that $ac_compile itself does not contain backslashes and begins
9702    # with a dollar sign (not a hyphen), so the echo should work correctly.
9703    # The option is referenced via a variable to avoid confusing sed.
9704    lt_compile=`echo "$ac_compile" | $SED \
9705    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9706    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9707    -e 's:$: $lt_compiler_flag:'`
9708    (eval echo "\"\$as_me:9708: $lt_compile\"" >&5)
9709    (eval "$lt_compile" 2>conftest.err)
9710    ac_status=$?
9711    cat conftest.err >&5
9712    echo "$as_me:9712: \$? = $ac_status" >&5
9713    if (exit $ac_status) && test -s "$ac_outfile"; then
9714      # The compiler can only warn and ignore the option if not recognized
9715      # So say no if there are warnings other than the usual output.
9716      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9717      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9718      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9719        lt_cv_prog_compiler_pic_works=yes
9720      fi
9721    fi
9722    $RM conftest*
9723
9724 fi
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9726 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9727
9728 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9729     case $lt_prog_compiler_pic in
9730      "" | " "*) ;;
9731      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9732      esac
9733 else
9734     lt_prog_compiler_pic=
9735      lt_prog_compiler_can_build_shared=no
9736 fi
9737
9738 fi
9739
9740
9741
9742
9743
9744
9745 #
9746 # Check to make sure the static flag actually works.
9747 #
9748 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9750 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9751 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9752   $as_echo_n "(cached) " >&6
9753 else
9754   lt_cv_prog_compiler_static_works=no
9755    save_LDFLAGS="$LDFLAGS"
9756    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9757    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9758    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9759      # The linker can only warn and ignore the option if not recognized
9760      # So say no if there are warnings
9761      if test -s conftest.err; then
9762        # Append any errors to the config.log.
9763        cat conftest.err 1>&5
9764        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9765        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9766        if diff conftest.exp conftest.er2 >/dev/null; then
9767          lt_cv_prog_compiler_static_works=yes
9768        fi
9769      else
9770        lt_cv_prog_compiler_static_works=yes
9771      fi
9772    fi
9773    $RM -r conftest*
9774    LDFLAGS="$save_LDFLAGS"
9775
9776 fi
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9778 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9779
9780 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9781     :
9782 else
9783     lt_prog_compiler_static=
9784 fi
9785
9786
9787
9788
9789
9790
9791
9792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9794 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9795   $as_echo_n "(cached) " >&6
9796 else
9797   lt_cv_prog_compiler_c_o=no
9798    $RM -r conftest 2>/dev/null
9799    mkdir conftest
9800    cd conftest
9801    mkdir out
9802    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9803
9804    lt_compiler_flag="-o out/conftest2.$ac_objext"
9805    # Insert the option either (1) after the last *FLAGS variable, or
9806    # (2) before a word containing "conftest.", or (3) at the end.
9807    # Note that $ac_compile itself does not contain backslashes and begins
9808    # with a dollar sign (not a hyphen), so the echo should work correctly.
9809    lt_compile=`echo "$ac_compile" | $SED \
9810    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9811    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9812    -e 's:$: $lt_compiler_flag:'`
9813    (eval echo "\"\$as_me:9813: $lt_compile\"" >&5)
9814    (eval "$lt_compile" 2>out/conftest.err)
9815    ac_status=$?
9816    cat out/conftest.err >&5
9817    echo "$as_me:9817: \$? = $ac_status" >&5
9818    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9819    then
9820      # The compiler can only warn and ignore the option if not recognized
9821      # So say no if there are warnings
9822      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9823      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9824      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9825        lt_cv_prog_compiler_c_o=yes
9826      fi
9827    fi
9828    chmod u+w . 2>&5
9829    $RM conftest*
9830    # SGI C++ compiler will create directory out/ii_files/ for
9831    # template instantiation
9832    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9833    $RM out/* && rmdir out
9834    cd ..
9835    $RM -r conftest
9836    $RM conftest*
9837
9838 fi
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9840 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9841
9842
9843
9844
9845
9846
9847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9850   $as_echo_n "(cached) " >&6
9851 else
9852   lt_cv_prog_compiler_c_o=no
9853    $RM -r conftest 2>/dev/null
9854    mkdir conftest
9855    cd conftest
9856    mkdir out
9857    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9858
9859    lt_compiler_flag="-o out/conftest2.$ac_objext"
9860    # Insert the option either (1) after the last *FLAGS variable, or
9861    # (2) before a word containing "conftest.", or (3) at the end.
9862    # Note that $ac_compile itself does not contain backslashes and begins
9863    # with a dollar sign (not a hyphen), so the echo should work correctly.
9864    lt_compile=`echo "$ac_compile" | $SED \
9865    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9866    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9867    -e 's:$: $lt_compiler_flag:'`
9868    (eval echo "\"\$as_me:9868: $lt_compile\"" >&5)
9869    (eval "$lt_compile" 2>out/conftest.err)
9870    ac_status=$?
9871    cat out/conftest.err >&5
9872    echo "$as_me:9872: \$? = $ac_status" >&5
9873    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9874    then
9875      # The compiler can only warn and ignore the option if not recognized
9876      # So say no if there are warnings
9877      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9878      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9879      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9880        lt_cv_prog_compiler_c_o=yes
9881      fi
9882    fi
9883    chmod u+w . 2>&5
9884    $RM conftest*
9885    # SGI C++ compiler will create directory out/ii_files/ for
9886    # template instantiation
9887    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9888    $RM out/* && rmdir out
9889    cd ..
9890    $RM -r conftest
9891    $RM conftest*
9892
9893 fi
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9895 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9896
9897
9898
9899
9900 hard_links="nottested"
9901 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9902   # do not overwrite the value of need_locks provided by the user
9903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9904 $as_echo_n "checking if we can lock with hard links... " >&6; }
9905   hard_links=yes
9906   $RM conftest*
9907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9908   touch conftest.a
9909   ln conftest.a conftest.b 2>&5 || hard_links=no
9910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9912 $as_echo "$hard_links" >&6; }
9913   if test "$hard_links" = no; then
9914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9915 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9916     need_locks=warn
9917   fi
9918 else
9919   need_locks=no
9920 fi
9921
9922
9923
9924
9925
9926
9927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9928 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9929
9930   runpath_var=
9931   allow_undefined_flag=
9932   always_export_symbols=no
9933   archive_cmds=
9934   archive_expsym_cmds=
9935   compiler_needs_object=no
9936   enable_shared_with_static_runtimes=no
9937   export_dynamic_flag_spec=
9938   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9939   hardcode_automatic=no
9940   hardcode_direct=no
9941   hardcode_direct_absolute=no
9942   hardcode_libdir_flag_spec=
9943   hardcode_libdir_flag_spec_ld=
9944   hardcode_libdir_separator=
9945   hardcode_minus_L=no
9946   hardcode_shlibpath_var=unsupported
9947   inherit_rpath=no
9948   link_all_deplibs=unknown
9949   module_cmds=
9950   module_expsym_cmds=
9951   old_archive_from_new_cmds=
9952   old_archive_from_expsyms_cmds=
9953   thread_safe_flag_spec=
9954   whole_archive_flag_spec=
9955   # include_expsyms should be a list of space-separated symbols to be *always*
9956   # included in the symbol list
9957   include_expsyms=
9958   # exclude_expsyms can be an extended regexp of symbols to exclude
9959   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9960   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9961   # as well as any symbol that contains `d'.
9962   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9963   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9964   # platforms (ab)use it in PIC code, but their linkers get confused if
9965   # the symbol is explicitly referenced.  Since portable code cannot
9966   # rely on this symbol name, it's probably fine to never include it in
9967   # preloaded symbol tables.
9968   # Exclude shared library initialization/finalization symbols.
9969   extract_expsyms_cmds=
9970
9971   case $host_os in
9972   cygwin* | mingw* | pw32* | cegcc*)
9973     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9974     # When not using gcc, we currently assume that we are using
9975     # Microsoft Visual C++.
9976     if test "$GCC" != yes; then
9977       with_gnu_ld=no
9978     fi
9979     ;;
9980   interix*)
9981     # we just hope/assume this is gcc and not c89 (= MSVC++)
9982     with_gnu_ld=yes
9983     ;;
9984   openbsd*)
9985     with_gnu_ld=no
9986     ;;
9987   esac
9988
9989   ld_shlibs=yes
9990   if test "$with_gnu_ld" = yes; then
9991     # If archive_cmds runs LD, not CC, wlarc should be empty
9992     wlarc='${wl}'
9993
9994     # Set some defaults for GNU ld with shared library support. These
9995     # are reset later if shared libraries are not supported. Putting them
9996     # here allows them to be overridden if necessary.
9997     runpath_var=LD_RUN_PATH
9998     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9999     export_dynamic_flag_spec='${wl}--export-dynamic'
10000     # ancient GNU ld didn't support --whole-archive et. al.
10001     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10002       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10003     else
10004       whole_archive_flag_spec=
10005     fi
10006     supports_anon_versioning=no
10007     case `$LD -v 2>&1` in
10008       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10009       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10010       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10011       *\ 2.11.*) ;; # other 2.11 versions
10012       *) supports_anon_versioning=yes ;;
10013     esac
10014
10015     # See if GNU ld supports shared libraries.
10016     case $host_os in
10017     aix[3-9]*)
10018       # On AIX/PPC, the GNU linker is very broken
10019       if test "$host_cpu" != ia64; then
10020         ld_shlibs=no
10021         cat <<_LT_EOF 1>&2
10022
10023 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10024 *** to be unable to reliably create shared libraries on AIX.
10025 *** Therefore, libtool is disabling shared libraries support.  If you
10026 *** really care for shared libraries, you may want to modify your PATH
10027 *** so that a non-GNU linker is found, and then restart.
10028
10029 _LT_EOF
10030       fi
10031       ;;
10032
10033     amigaos*)
10034       case $host_cpu in
10035       powerpc)
10036             # see comment about AmigaOS4 .so support
10037             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10038             archive_expsym_cmds=''
10039         ;;
10040       m68k)
10041             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)'
10042             hardcode_libdir_flag_spec='-L$libdir'
10043             hardcode_minus_L=yes
10044         ;;
10045       esac
10046       ;;
10047
10048     beos*)
10049       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10050         allow_undefined_flag=unsupported
10051         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10052         # support --undefined.  This deserves some investigation.  FIXME
10053         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10054       else
10055         ld_shlibs=no
10056       fi
10057       ;;
10058
10059     cygwin* | mingw* | pw32* | cegcc*)
10060       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10061       # as there is no search path for DLLs.
10062       hardcode_libdir_flag_spec='-L$libdir'
10063       allow_undefined_flag=unsupported
10064       always_export_symbols=no
10065       enable_shared_with_static_runtimes=yes
10066       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10067
10068       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10069         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10070         # If the export-symbols file already is a .def file (1st line
10071         # is EXPORTS), use it as is; otherwise, prepend...
10072         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10073           cp $export_symbols $output_objdir/$soname.def;
10074         else
10075           echo EXPORTS > $output_objdir/$soname.def;
10076           cat $export_symbols >> $output_objdir/$soname.def;
10077         fi~
10078         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10079       else
10080         ld_shlibs=no
10081       fi
10082       ;;
10083
10084     interix[3-9]*)
10085       hardcode_direct=no
10086       hardcode_shlibpath_var=no
10087       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10088       export_dynamic_flag_spec='${wl}-E'
10089       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10090       # Instead, shared libraries are loaded at an image base (0x10000000 by
10091       # default) and relocated if they conflict, which is a slow very memory
10092       # consuming and fragmenting process.  To avoid this, we pick a random,
10093       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10094       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10095       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10096       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'
10097       ;;
10098
10099     gnu* | linux* | tpf* | k*bsd*-gnu)
10100       tmp_diet=no
10101       if test "$host_os" = linux-dietlibc; then
10102         case $cc_basename in
10103           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10104         esac
10105       fi
10106       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10107          && test "$tmp_diet" = no
10108       then
10109         tmp_addflag=
10110         tmp_sharedflag='-shared'
10111         case $cc_basename,$host_cpu in
10112         pgcc*)                          # Portland Group C compiler
10113           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'
10114           tmp_addflag=' $pic_flag'
10115           ;;
10116         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10117           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'
10118           tmp_addflag=' $pic_flag -Mnomain' ;;
10119         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10120           tmp_addflag=' -i_dynamic' ;;
10121         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10122           tmp_addflag=' -i_dynamic -nofor_main' ;;
10123         ifc* | ifort*)                  # Intel Fortran compiler
10124           tmp_addflag=' -nofor_main' ;;
10125         lf95*)                          # Lahey Fortran 8.1
10126           whole_archive_flag_spec=
10127           tmp_sharedflag='--shared' ;;
10128         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10129           tmp_sharedflag='-qmkshrobj'
10130           tmp_addflag= ;;
10131         esac
10132         case `$CC -V 2>&1 | sed 5q` in
10133         *Sun\ C*)                       # Sun C 5.9
10134           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'
10135           compiler_needs_object=yes
10136           tmp_sharedflag='-G' ;;
10137         *Sun\ F*)                       # Sun Fortran 8.3
10138           tmp_sharedflag='-G' ;;
10139         esac
10140         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10141
10142         if test "x$supports_anon_versioning" = xyes; then
10143           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10144             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10145             echo "local: *; };" >> $output_objdir/$libname.ver~
10146             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10147         fi
10148
10149         case $cc_basename in
10150         xlf*)
10151           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10152           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10153           hardcode_libdir_flag_spec=
10154           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10155           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10156           if test "x$supports_anon_versioning" = xyes; then
10157             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10158               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10159               echo "local: *; };" >> $output_objdir/$libname.ver~
10160               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10161           fi
10162           ;;
10163         esac
10164       else
10165         ld_shlibs=no
10166       fi
10167       ;;
10168
10169     netbsd*)
10170       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10171         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10172         wlarc=
10173       else
10174         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10175         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10176       fi
10177       ;;
10178
10179     solaris*)
10180       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10181         ld_shlibs=no
10182         cat <<_LT_EOF 1>&2
10183
10184 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10185 *** create shared libraries on Solaris systems.  Therefore, libtool
10186 *** is disabling shared libraries support.  We urge you to upgrade GNU
10187 *** binutils to release 2.9.1 or newer.  Another option is to modify
10188 *** your PATH or compiler configuration so that the native linker is
10189 *** used, and then restart.
10190
10191 _LT_EOF
10192       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10193         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10194         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10195       else
10196         ld_shlibs=no
10197       fi
10198       ;;
10199
10200     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10201       case `$LD -v 2>&1` in
10202         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10203         ld_shlibs=no
10204         cat <<_LT_EOF 1>&2
10205
10206 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10207 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10208 *** is disabling shared libraries support.  We urge you to upgrade GNU
10209 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10210 *** your PATH or compiler configuration so that the native linker is
10211 *** used, and then restart.
10212
10213 _LT_EOF
10214         ;;
10215         *)
10216           # For security reasons, it is highly recommended that you always
10217           # use absolute paths for naming shared libraries, and exclude the
10218           # DT_RUNPATH tag from executables and libraries.  But doing so
10219           # requires that you compile everything twice, which is a pain.
10220           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10221             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10222             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10223             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10224           else
10225             ld_shlibs=no
10226           fi
10227         ;;
10228       esac
10229       ;;
10230
10231     sunos4*)
10232       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10233       wlarc=
10234       hardcode_direct=yes
10235       hardcode_shlibpath_var=no
10236       ;;
10237
10238     *)
10239       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10240         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10241         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10242       else
10243         ld_shlibs=no
10244       fi
10245       ;;
10246     esac
10247
10248     if test "$ld_shlibs" = no; then
10249       runpath_var=
10250       hardcode_libdir_flag_spec=
10251       export_dynamic_flag_spec=
10252       whole_archive_flag_spec=
10253     fi
10254   else
10255     # PORTME fill in a description of your system's linker (not GNU ld)
10256     case $host_os in
10257     aix3*)
10258       allow_undefined_flag=unsupported
10259       always_export_symbols=yes
10260       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'
10261       # Note: this linker hardcodes the directories in LIBPATH if there
10262       # are no directories specified by -L.
10263       hardcode_minus_L=yes
10264       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10265         # Neither direct hardcoding nor static linking is supported with a
10266         # broken collect2.
10267         hardcode_direct=unsupported
10268       fi
10269       ;;
10270
10271     aix[4-9]*)
10272       if test "$host_cpu" = ia64; then
10273         # On IA64, the linker does run time linking by default, so we don't
10274         # have to do anything special.
10275         aix_use_runtimelinking=no
10276         exp_sym_flag='-Bexport'
10277         no_entry_flag=""
10278       else
10279         # If we're using GNU nm, then we don't want the "-C" option.
10280         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10281         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10282           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'
10283         else
10284           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'
10285         fi
10286         aix_use_runtimelinking=no
10287
10288         # Test if we are trying to use run time linking or normal
10289         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10290         # need to do runtime linking.
10291         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10292           for ld_flag in $LDFLAGS; do
10293           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10294             aix_use_runtimelinking=yes
10295             break
10296           fi
10297           done
10298           ;;
10299         esac
10300
10301         exp_sym_flag='-bexport'
10302         no_entry_flag='-bnoentry'
10303       fi
10304
10305       # When large executables or shared objects are built, AIX ld can
10306       # have problems creating the table of contents.  If linking a library
10307       # or program results in "error TOC overflow" add -mminimal-toc to
10308       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10309       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10310
10311       archive_cmds=''
10312       hardcode_direct=yes
10313       hardcode_direct_absolute=yes
10314       hardcode_libdir_separator=':'
10315       link_all_deplibs=yes
10316       file_list_spec='${wl}-f,'
10317
10318       if test "$GCC" = yes; then
10319         case $host_os in aix4.[012]|aix4.[012].*)
10320         # We only want to do this on AIX 4.2 and lower, the check
10321         # below for broken collect2 doesn't work under 4.3+
10322           collect2name=`${CC} -print-prog-name=collect2`
10323           if test -f "$collect2name" &&
10324            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10325           then
10326           # We have reworked collect2
10327           :
10328           else
10329           # We have old collect2
10330           hardcode_direct=unsupported
10331           # It fails to find uninstalled libraries when the uninstalled
10332           # path is not listed in the libpath.  Setting hardcode_minus_L
10333           # to unsupported forces relinking
10334           hardcode_minus_L=yes
10335           hardcode_libdir_flag_spec='-L$libdir'
10336           hardcode_libdir_separator=
10337           fi
10338           ;;
10339         esac
10340         shared_flag='-shared'
10341         if test "$aix_use_runtimelinking" = yes; then
10342           shared_flag="$shared_flag "'${wl}-G'
10343         fi
10344       else
10345         # not using gcc
10346         if test "$host_cpu" = ia64; then
10347         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10348         # chokes on -Wl,-G. The following line is correct:
10349           shared_flag='-G'
10350         else
10351           if test "$aix_use_runtimelinking" = yes; then
10352             shared_flag='${wl}-G'
10353           else
10354             shared_flag='${wl}-bM:SRE'
10355           fi
10356         fi
10357       fi
10358
10359       export_dynamic_flag_spec='${wl}-bexpall'
10360       # It seems that -bexpall does not export symbols beginning with
10361       # underscore (_), so it is better to generate a list of symbols to export.
10362       always_export_symbols=yes
10363       if test "$aix_use_runtimelinking" = yes; then
10364         # Warning - without using the other runtime loading flags (-brtl),
10365         # -berok will link without error, but may produce a broken library.
10366         allow_undefined_flag='-berok'
10367         # Determine the default libpath from the value encoded in an
10368         # empty executable.
10369         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h.  */
10371
10372 int
10373 main ()
10374 {
10375
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 if ac_fn_c_try_link "$LINENO"; then :
10381
10382 lt_aix_libpath_sed='
10383     /Import File Strings/,/^$/ {
10384         /^0/ {
10385             s/^0  *\(.*\)$/\1/
10386             p
10387         }
10388     }'
10389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10390 # Check for a 64-bit object if we didn't find anything.
10391 if test -z "$aix_libpath"; then
10392   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10393 fi
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext \
10396     conftest$ac_exeext conftest.$ac_ext
10397 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10398
10399         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10400         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"
10401       else
10402         if test "$host_cpu" = ia64; then
10403           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10404           allow_undefined_flag="-z nodefs"
10405           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"
10406         else
10407          # Determine the default libpath from the value encoded in an
10408          # empty executable.
10409          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h.  */
10411
10412 int
10413 main ()
10414 {
10415
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"; then :
10421
10422 lt_aix_libpath_sed='
10423     /Import File Strings/,/^$/ {
10424         /^0/ {
10425             s/^0  *\(.*\)$/\1/
10426             p
10427         }
10428     }'
10429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10430 # Check for a 64-bit object if we didn't find anything.
10431 if test -z "$aix_libpath"; then
10432   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10433 fi
10434 fi
10435 rm -f core conftest.err conftest.$ac_objext \
10436     conftest$ac_exeext conftest.$ac_ext
10437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10438
10439          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10440           # Warning - without using the other run time loading flags,
10441           # -berok will link without error, but may produce a broken library.
10442           no_undefined_flag=' ${wl}-bernotok'
10443           allow_undefined_flag=' ${wl}-berok'
10444           # Exported symbols can be pulled into shared objects from archives
10445           whole_archive_flag_spec='$convenience'
10446           archive_cmds_need_lc=yes
10447           # This is similar to how AIX traditionally builds its shared libraries.
10448           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'
10449         fi
10450       fi
10451       ;;
10452
10453     amigaos*)
10454       case $host_cpu in
10455       powerpc)
10456             # see comment about AmigaOS4 .so support
10457             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10458             archive_expsym_cmds=''
10459         ;;
10460       m68k)
10461             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)'
10462             hardcode_libdir_flag_spec='-L$libdir'
10463             hardcode_minus_L=yes
10464         ;;
10465       esac
10466       ;;
10467
10468     bsdi[45]*)
10469       export_dynamic_flag_spec=-rdynamic
10470       ;;
10471
10472     cygwin* | mingw* | pw32* | cegcc*)
10473       # When not using gcc, we currently assume that we are using
10474       # Microsoft Visual C++.
10475       # hardcode_libdir_flag_spec is actually meaningless, as there is
10476       # no search path for DLLs.
10477       hardcode_libdir_flag_spec=' '
10478       allow_undefined_flag=unsupported
10479       # Tell ltmain to make .lib files, not .a files.
10480       libext=lib
10481       # Tell ltmain to make .dll files, not .so files.
10482       shrext_cmds=".dll"
10483       # FIXME: Setting linknames here is a bad hack.
10484       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10485       # The linker will automatically build a .lib file if we build a DLL.
10486       old_archive_from_new_cmds='true'
10487       # FIXME: Should let the user specify the lib program.
10488       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10489       fix_srcfile_path='`cygpath -w "$srcfile"`'
10490       enable_shared_with_static_runtimes=yes
10491       ;;
10492
10493     darwin* | rhapsody*)
10494
10495
10496   archive_cmds_need_lc=no
10497   hardcode_direct=no
10498   hardcode_automatic=yes
10499   hardcode_shlibpath_var=unsupported
10500   whole_archive_flag_spec=''
10501   link_all_deplibs=yes
10502   allow_undefined_flag="$_lt_dar_allow_undefined"
10503   case $cc_basename in
10504      ifort*) _lt_dar_can_shared=yes ;;
10505      *) _lt_dar_can_shared=$GCC ;;
10506   esac
10507   if test "$_lt_dar_can_shared" = "yes"; then
10508     output_verbose_link_cmd=echo
10509     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10510     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10511     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}"
10512     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}"
10513
10514   else
10515   ld_shlibs=no
10516   fi
10517
10518       ;;
10519
10520     dgux*)
10521       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10522       hardcode_libdir_flag_spec='-L$libdir'
10523       hardcode_shlibpath_var=no
10524       ;;
10525
10526     freebsd1*)
10527       ld_shlibs=no
10528       ;;
10529
10530     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10531     # support.  Future versions do this automatically, but an explicit c++rt0.o
10532     # does not break anything, and helps significantly (at the cost of a little
10533     # extra space).
10534     freebsd2.2*)
10535       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10536       hardcode_libdir_flag_spec='-R$libdir'
10537       hardcode_direct=yes
10538       hardcode_shlibpath_var=no
10539       ;;
10540
10541     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10542     freebsd2*)
10543       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10544       hardcode_direct=yes
10545       hardcode_minus_L=yes
10546       hardcode_shlibpath_var=no
10547       ;;
10548
10549     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10550     freebsd* | dragonfly*)
10551       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10552       hardcode_libdir_flag_spec='-R$libdir'
10553       hardcode_direct=yes
10554       hardcode_shlibpath_var=no
10555       ;;
10556
10557     hpux9*)
10558       if test "$GCC" = yes; then
10559         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'
10560       else
10561         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'
10562       fi
10563       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10564       hardcode_libdir_separator=:
10565       hardcode_direct=yes
10566
10567       # hardcode_minus_L: Not really in the search PATH,
10568       # but as the default location of the library.
10569       hardcode_minus_L=yes
10570       export_dynamic_flag_spec='${wl}-E'
10571       ;;
10572
10573     hpux10*)
10574       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10575         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10576       else
10577         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10578       fi
10579       if test "$with_gnu_ld" = no; then
10580         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10581         hardcode_libdir_flag_spec_ld='+b $libdir'
10582         hardcode_libdir_separator=:
10583         hardcode_direct=yes
10584         hardcode_direct_absolute=yes
10585         export_dynamic_flag_spec='${wl}-E'
10586         # hardcode_minus_L: Not really in the search PATH,
10587         # but as the default location of the library.
10588         hardcode_minus_L=yes
10589       fi
10590       ;;
10591
10592     hpux11*)
10593       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10594         case $host_cpu in
10595         hppa*64*)
10596           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10597           ;;
10598         ia64*)
10599           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10600           ;;
10601         *)
10602           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10603           ;;
10604         esac
10605       else
10606         case $host_cpu in
10607         hppa*64*)
10608           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10609           ;;
10610         ia64*)
10611           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10612           ;;
10613         *)
10614           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10615           ;;
10616         esac
10617       fi
10618       if test "$with_gnu_ld" = no; then
10619         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10620         hardcode_libdir_separator=:
10621
10622         case $host_cpu in
10623         hppa*64*|ia64*)
10624           hardcode_direct=no
10625           hardcode_shlibpath_var=no
10626           ;;
10627         *)
10628           hardcode_direct=yes
10629           hardcode_direct_absolute=yes
10630           export_dynamic_flag_spec='${wl}-E'
10631
10632           # hardcode_minus_L: Not really in the search PATH,
10633           # but as the default location of the library.
10634           hardcode_minus_L=yes
10635           ;;
10636         esac
10637       fi
10638       ;;
10639
10640     irix5* | irix6* | nonstopux*)
10641       if test "$GCC" = yes; then
10642         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'
10643         # Try to use the -exported_symbol ld option, if it does not
10644         # work, assume that -exports_file does not work either and
10645         # implicitly export all symbols.
10646         save_LDFLAGS="$LDFLAGS"
10647         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10648         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h.  */
10650 int foo(void) {}
10651 _ACEOF
10652 if ac_fn_c_try_link "$LINENO"; then :
10653   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'
10654
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext \
10657     conftest$ac_exeext conftest.$ac_ext
10658         LDFLAGS="$save_LDFLAGS"
10659       else
10660         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'
10661         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'
10662       fi
10663       archive_cmds_need_lc='no'
10664       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10665       hardcode_libdir_separator=:
10666       inherit_rpath=yes
10667       link_all_deplibs=yes
10668       ;;
10669
10670     netbsd*)
10671       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10672         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10673       else
10674         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10675       fi
10676       hardcode_libdir_flag_spec='-R$libdir'
10677       hardcode_direct=yes
10678       hardcode_shlibpath_var=no
10679       ;;
10680
10681     newsos6)
10682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10683       hardcode_direct=yes
10684       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10685       hardcode_libdir_separator=:
10686       hardcode_shlibpath_var=no
10687       ;;
10688
10689     *nto* | *qnx*)
10690       ;;
10691
10692     openbsd*)
10693       if test -f /usr/libexec/ld.so; then
10694         hardcode_direct=yes
10695         hardcode_shlibpath_var=no
10696         hardcode_direct_absolute=yes
10697         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10698           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10699           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10700           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10701           export_dynamic_flag_spec='${wl}-E'
10702         else
10703           case $host_os in
10704            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10705              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10706              hardcode_libdir_flag_spec='-R$libdir'
10707              ;;
10708            *)
10709              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10710              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10711              ;;
10712           esac
10713         fi
10714       else
10715         ld_shlibs=no
10716       fi
10717       ;;
10718
10719     os2*)
10720       hardcode_libdir_flag_spec='-L$libdir'
10721       hardcode_minus_L=yes
10722       allow_undefined_flag=unsupported
10723       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'
10724       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10725       ;;
10726
10727     osf3*)
10728       if test "$GCC" = yes; then
10729         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10730         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'
10731       else
10732         allow_undefined_flag=' -expect_unresolved \*'
10733         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'
10734       fi
10735       archive_cmds_need_lc='no'
10736       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10737       hardcode_libdir_separator=:
10738       ;;
10739
10740     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10741       if test "$GCC" = yes; then
10742         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10743         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'
10744         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10745       else
10746         allow_undefined_flag=' -expect_unresolved \*'
10747         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'
10748         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~
10749         $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'
10750
10751         # Both c and cxx compiler support -rpath directly
10752         hardcode_libdir_flag_spec='-rpath $libdir'
10753       fi
10754       archive_cmds_need_lc='no'
10755       hardcode_libdir_separator=:
10756       ;;
10757
10758     solaris*)
10759       no_undefined_flag=' -z defs'
10760       if test "$GCC" = yes; then
10761         wlarc='${wl}'
10762         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10763         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10764           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10765       else
10766         case `$CC -V 2>&1` in
10767         *"Compilers 5.0"*)
10768           wlarc=''
10769           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10771           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10772           ;;
10773         *)
10774           wlarc='${wl}'
10775           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10776           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10777           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10778           ;;
10779         esac
10780       fi
10781       hardcode_libdir_flag_spec='-R$libdir'
10782       hardcode_shlibpath_var=no
10783       case $host_os in
10784       solaris2.[0-5] | solaris2.[0-5].*) ;;
10785       *)
10786         # The compiler driver will combine and reorder linker options,
10787         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10788         # but is careful enough not to reorder.
10789         # Supported since Solaris 2.6 (maybe 2.5.1?)
10790         if test "$GCC" = yes; then
10791           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10792         else
10793           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10794         fi
10795         ;;
10796       esac
10797       link_all_deplibs=yes
10798       ;;
10799
10800     sunos4*)
10801       if test "x$host_vendor" = xsequent; then
10802         # Use $CC to link under sequent, because it throws in some extra .o
10803         # files that make .init and .fini sections work.
10804         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10805       else
10806         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10807       fi
10808       hardcode_libdir_flag_spec='-L$libdir'
10809       hardcode_direct=yes
10810       hardcode_minus_L=yes
10811       hardcode_shlibpath_var=no
10812       ;;
10813
10814     sysv4)
10815       case $host_vendor in
10816         sni)
10817           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818           hardcode_direct=yes # is this really true???
10819         ;;
10820         siemens)
10821           ## LD is ld it makes a PLAMLIB
10822           ## CC just makes a GrossModule.
10823           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10824           reload_cmds='$CC -r -o $output$reload_objs'
10825           hardcode_direct=no
10826         ;;
10827         motorola)
10828           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10830         ;;
10831       esac
10832       runpath_var='LD_RUN_PATH'
10833       hardcode_shlibpath_var=no
10834       ;;
10835
10836     sysv4.3*)
10837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10838       hardcode_shlibpath_var=no
10839       export_dynamic_flag_spec='-Bexport'
10840       ;;
10841
10842     sysv4*MP*)
10843       if test -d /usr/nec; then
10844         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10845         hardcode_shlibpath_var=no
10846         runpath_var=LD_RUN_PATH
10847         hardcode_runpath_var=yes
10848         ld_shlibs=yes
10849       fi
10850       ;;
10851
10852     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10853       no_undefined_flag='${wl}-z,text'
10854       archive_cmds_need_lc=no
10855       hardcode_shlibpath_var=no
10856       runpath_var='LD_RUN_PATH'
10857
10858       if test "$GCC" = yes; then
10859         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10860         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10861       else
10862         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10863         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10864       fi
10865       ;;
10866
10867     sysv5* | sco3.2v5* | sco5v6*)
10868       # Note: We can NOT use -z defs as we might desire, because we do not
10869       # link with -lc, and that would cause any symbols used from libc to
10870       # always be unresolved, which means just about no library would
10871       # ever link correctly.  If we're not using GNU ld we use -z text
10872       # though, which does catch some bad symbols but isn't as heavy-handed
10873       # as -z defs.
10874       no_undefined_flag='${wl}-z,text'
10875       allow_undefined_flag='${wl}-z,nodefs'
10876       archive_cmds_need_lc=no
10877       hardcode_shlibpath_var=no
10878       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10879       hardcode_libdir_separator=':'
10880       link_all_deplibs=yes
10881       export_dynamic_flag_spec='${wl}-Bexport'
10882       runpath_var='LD_RUN_PATH'
10883
10884       if test "$GCC" = yes; then
10885         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10886         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10887       else
10888         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10889         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10890       fi
10891       ;;
10892
10893     uts4*)
10894       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10895       hardcode_libdir_flag_spec='-L$libdir'
10896       hardcode_shlibpath_var=no
10897       ;;
10898
10899     *)
10900       ld_shlibs=no
10901       ;;
10902     esac
10903
10904     if test x$host_vendor = xsni; then
10905       case $host in
10906       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10907         export_dynamic_flag_spec='${wl}-Blargedynsym'
10908         ;;
10909       esac
10910     fi
10911   fi
10912
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10914 $as_echo "$ld_shlibs" >&6; }
10915 test "$ld_shlibs" = no && can_build_shared=no
10916
10917 with_gnu_ld=$with_gnu_ld
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933 #
10934 # Do we need to explicitly link libc?
10935 #
10936 case "x$archive_cmds_need_lc" in
10937 x|xyes)
10938   # Assume -lc should be added
10939   archive_cmds_need_lc=yes
10940
10941   if test "$enable_shared" = yes && test "$GCC" = yes; then
10942     case $archive_cmds in
10943     *'~'*)
10944       # FIXME: we may have to deal with multi-command sequences.
10945       ;;
10946     '$CC '*)
10947       # Test whether the compiler implicitly links with -lc since on some
10948       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10949       # to ld, don't add -lc before -lgcc.
10950       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10951 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10952       $RM conftest*
10953       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10954
10955       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10956   (eval $ac_compile) 2>&5
10957   ac_status=$?
10958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959   test $ac_status = 0; } 2>conftest.err; then
10960         soname=conftest
10961         lib=conftest
10962         libobjs=conftest.$ac_objext
10963         deplibs=
10964         wl=$lt_prog_compiler_wl
10965         pic_flag=$lt_prog_compiler_pic
10966         compiler_flags=-v
10967         linker_flags=-v
10968         verstring=
10969         output_objdir=.
10970         libname=conftest
10971         lt_save_allow_undefined_flag=$allow_undefined_flag
10972         allow_undefined_flag=
10973         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10974   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10975   ac_status=$?
10976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10977   test $ac_status = 0; }
10978         then
10979           archive_cmds_need_lc=no
10980         else
10981           archive_cmds_need_lc=yes
10982         fi
10983         allow_undefined_flag=$lt_save_allow_undefined_flag
10984       else
10985         cat conftest.err 1>&5
10986       fi
10987       $RM conftest*
10988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10989 $as_echo "$archive_cmds_need_lc" >&6; }
10990       ;;
10991     esac
10992   fi
10993   ;;
10994 esac
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11153 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11154
11155 if test "$GCC" = yes; then
11156   case $host_os in
11157     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11158     *) lt_awk_arg="/^libraries:/" ;;
11159   esac
11160   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11161   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11162     # if the path contains ";" then we assume it to be the separator
11163     # otherwise default to the standard path separator (i.e. ":") - it is
11164     # assumed that no part of a normal pathname contains ";" but that should
11165     # okay in the real world where ";" in dirpaths is itself problematic.
11166     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11167   else
11168     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11169   fi
11170   # Ok, now we have the path, separated by spaces, we can step through it
11171   # and add multilib dir if necessary.
11172   lt_tmp_lt_search_path_spec=
11173   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11174   for lt_sys_path in $lt_search_path_spec; do
11175     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11176       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11177     else
11178       test -d "$lt_sys_path" && \
11179         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11180     fi
11181   done
11182   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11183 BEGIN {RS=" "; FS="/|\n";} {
11184   lt_foo="";
11185   lt_count=0;
11186   for (lt_i = NF; lt_i > 0; lt_i--) {
11187     if ($lt_i != "" && $lt_i != ".") {
11188       if ($lt_i == "..") {
11189         lt_count++;
11190       } else {
11191         if (lt_count == 0) {
11192           lt_foo="/" $lt_i lt_foo;
11193         } else {
11194           lt_count--;
11195         }
11196       }
11197     }
11198   }
11199   if (lt_foo != "") { lt_freq[lt_foo]++; }
11200   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11201 }'`
11202   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11203 else
11204   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11205 fi
11206 library_names_spec=
11207 libname_spec='lib$name'
11208 soname_spec=
11209 shrext_cmds=".so"
11210 postinstall_cmds=
11211 postuninstall_cmds=
11212 finish_cmds=
11213 finish_eval=
11214 shlibpath_var=
11215 shlibpath_overrides_runpath=unknown
11216 version_type=none
11217 dynamic_linker="$host_os ld.so"
11218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11219 need_lib_prefix=unknown
11220 hardcode_into_libs=no
11221
11222 # when you set need_version to no, make sure it does not cause -set_version
11223 # flags to be left without arguments
11224 need_version=unknown
11225
11226 case $host_os in
11227 aix3*)
11228   version_type=linux
11229   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11230   shlibpath_var=LIBPATH
11231
11232   # AIX 3 has no versioning support, so we append a major version to the name.
11233   soname_spec='${libname}${release}${shared_ext}$major'
11234   ;;
11235
11236 aix[4-9]*)
11237   version_type=linux
11238   need_lib_prefix=no
11239   need_version=no
11240   hardcode_into_libs=yes
11241   if test "$host_cpu" = ia64; then
11242     # AIX 5 supports IA64
11243     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11244     shlibpath_var=LD_LIBRARY_PATH
11245   else
11246     # With GCC up to 2.95.x, collect2 would create an import file
11247     # for dependence libraries.  The import file would start with
11248     # the line `#! .'.  This would cause the generated library to
11249     # depend on `.', always an invalid library.  This was fixed in
11250     # development snapshots of GCC prior to 3.0.
11251     case $host_os in
11252       aix4 | aix4.[01] | aix4.[01].*)
11253       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11254            echo ' yes '
11255            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11256         :
11257       else
11258         can_build_shared=no
11259       fi
11260       ;;
11261     esac
11262     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11263     # soname into executable. Probably we can add versioning support to
11264     # collect2, so additional links can be useful in future.
11265     if test "$aix_use_runtimelinking" = yes; then
11266       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11267       # instead of lib<name>.a to let people know that these are not
11268       # typical AIX shared libraries.
11269       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270     else
11271       # We preserve .a as extension for shared libraries through AIX4.2
11272       # and later when we are not doing run time linking.
11273       library_names_spec='${libname}${release}.a $libname.a'
11274       soname_spec='${libname}${release}${shared_ext}$major'
11275     fi
11276     shlibpath_var=LIBPATH
11277   fi
11278   ;;
11279
11280 amigaos*)
11281   case $host_cpu in
11282   powerpc)
11283     # Since July 2007 AmigaOS4 officially supports .so libraries.
11284     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11286     ;;
11287   m68k)
11288     library_names_spec='$libname.ixlibrary $libname.a'
11289     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11290     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'
11291     ;;
11292   esac
11293   ;;
11294
11295 beos*)
11296   library_names_spec='${libname}${shared_ext}'
11297   dynamic_linker="$host_os ld.so"
11298   shlibpath_var=LIBRARY_PATH
11299   ;;
11300
11301 bsdi[45]*)
11302   version_type=linux
11303   need_version=no
11304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305   soname_spec='${libname}${release}${shared_ext}$major'
11306   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11307   shlibpath_var=LD_LIBRARY_PATH
11308   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11309   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11310   # the default ld.so.conf also contains /usr/contrib/lib and
11311   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11312   # libtool to hard-code these into programs
11313   ;;
11314
11315 cygwin* | mingw* | pw32* | cegcc*)
11316   version_type=windows
11317   shrext_cmds=".dll"
11318   need_version=no
11319   need_lib_prefix=no
11320
11321   case $GCC,$host_os in
11322   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11323     library_names_spec='$libname.dll.a'
11324     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11325     postinstall_cmds='base_file=`basename \${file}`~
11326       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11327       dldir=$destdir/`dirname \$dlpath`~
11328       test -d \$dldir || mkdir -p \$dldir~
11329       $install_prog $dir/$dlname \$dldir/$dlname~
11330       chmod a+x \$dldir/$dlname~
11331       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11332         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11333       fi'
11334     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11335       dlpath=$dir/\$dldll~
11336        $RM \$dlpath'
11337     shlibpath_overrides_runpath=yes
11338
11339     case $host_os in
11340     cygwin*)
11341       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11342       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11343       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11344       ;;
11345     mingw* | cegcc*)
11346       # MinGW DLLs use traditional 'lib' prefix
11347       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11348       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11349       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11350         # It is most probably a Windows format PATH printed by
11351         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11352         # path with ; separators, and with drive letters. We can handle the
11353         # drive letters (cygwin fileutils understands them), so leave them,
11354         # especially as we might pass files found there to a mingw objdump,
11355         # which wouldn't understand a cygwinified path. Ahh.
11356         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11357       else
11358         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11359       fi
11360       ;;
11361     pw32*)
11362       # pw32 DLLs use 'pw' prefix rather than 'lib'
11363       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11364       ;;
11365     esac
11366     ;;
11367
11368   *)
11369     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11370     ;;
11371   esac
11372   dynamic_linker='Win32 ld.exe'
11373   # FIXME: first we should search . and the directory the executable is in
11374   shlibpath_var=PATH
11375   ;;
11376
11377 darwin* | rhapsody*)
11378   dynamic_linker="$host_os dyld"
11379   version_type=darwin
11380   need_lib_prefix=no
11381   need_version=no
11382   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11383   soname_spec='${libname}${release}${major}$shared_ext'
11384   shlibpath_overrides_runpath=yes
11385   shlibpath_var=DYLD_LIBRARY_PATH
11386   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11387
11388   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11389   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11390   ;;
11391
11392 dgux*)
11393   version_type=linux
11394   need_lib_prefix=no
11395   need_version=no
11396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11397   soname_spec='${libname}${release}${shared_ext}$major'
11398   shlibpath_var=LD_LIBRARY_PATH
11399   ;;
11400
11401 freebsd1*)
11402   dynamic_linker=no
11403   ;;
11404
11405 freebsd* | dragonfly*)
11406   # DragonFly does not have aout.  When/if they implement a new
11407   # versioning mechanism, adjust this.
11408   if test -x /usr/bin/objformat; then
11409     objformat=`/usr/bin/objformat`
11410   else
11411     case $host_os in
11412     freebsd[123]*) objformat=aout ;;
11413     *) objformat=elf ;;
11414     esac
11415   fi
11416   version_type=freebsd-$objformat
11417   case $version_type in
11418     freebsd-elf*)
11419       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11420       need_version=no
11421       need_lib_prefix=no
11422       ;;
11423     freebsd-*)
11424       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11425       need_version=yes
11426       ;;
11427   esac
11428   shlibpath_var=LD_LIBRARY_PATH
11429   case $host_os in
11430   freebsd2*)
11431     shlibpath_overrides_runpath=yes
11432     ;;
11433   freebsd3.[01]* | freebsdelf3.[01]*)
11434     shlibpath_overrides_runpath=yes
11435     hardcode_into_libs=yes
11436     ;;
11437   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11438   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11439     shlibpath_overrides_runpath=no
11440     hardcode_into_libs=yes
11441     ;;
11442   *) # from 4.6 on, and DragonFly
11443     shlibpath_overrides_runpath=yes
11444     hardcode_into_libs=yes
11445     ;;
11446   esac
11447   ;;
11448
11449 gnu*)
11450   version_type=linux
11451   need_lib_prefix=no
11452   need_version=no
11453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11454   soname_spec='${libname}${release}${shared_ext}$major'
11455   shlibpath_var=LD_LIBRARY_PATH
11456   hardcode_into_libs=yes
11457   ;;
11458
11459 hpux9* | hpux10* | hpux11*)
11460   # Give a soname corresponding to the major version so that dld.sl refuses to
11461   # link against other versions.
11462   version_type=sunos
11463   need_lib_prefix=no
11464   need_version=no
11465   case $host_cpu in
11466   ia64*)
11467     shrext_cmds='.so'
11468     hardcode_into_libs=yes
11469     dynamic_linker="$host_os dld.so"
11470     shlibpath_var=LD_LIBRARY_PATH
11471     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473     soname_spec='${libname}${release}${shared_ext}$major'
11474     if test "X$HPUX_IA64_MODE" = X32; then
11475       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11476     else
11477       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11478     fi
11479     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11480     ;;
11481   hppa*64*)
11482     shrext_cmds='.sl'
11483     hardcode_into_libs=yes
11484     dynamic_linker="$host_os dld.sl"
11485     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11486     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11487     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488     soname_spec='${libname}${release}${shared_ext}$major'
11489     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11490     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11491     ;;
11492   *)
11493     shrext_cmds='.sl'
11494     dynamic_linker="$host_os dld.sl"
11495     shlibpath_var=SHLIB_PATH
11496     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11497     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498     soname_spec='${libname}${release}${shared_ext}$major'
11499     ;;
11500   esac
11501   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11502   postinstall_cmds='chmod 555 $lib'
11503   ;;
11504
11505 interix[3-9]*)
11506   version_type=linux
11507   need_lib_prefix=no
11508   need_version=no
11509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11510   soname_spec='${libname}${release}${shared_ext}$major'
11511   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11512   shlibpath_var=LD_LIBRARY_PATH
11513   shlibpath_overrides_runpath=no
11514   hardcode_into_libs=yes
11515   ;;
11516
11517 irix5* | irix6* | nonstopux*)
11518   case $host_os in
11519     nonstopux*) version_type=nonstopux ;;
11520     *)
11521         if test "$lt_cv_prog_gnu_ld" = yes; then
11522                 version_type=linux
11523         else
11524                 version_type=irix
11525         fi ;;
11526   esac
11527   need_lib_prefix=no
11528   need_version=no
11529   soname_spec='${libname}${release}${shared_ext}$major'
11530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11531   case $host_os in
11532   irix5* | nonstopux*)
11533     libsuff= shlibsuff=
11534     ;;
11535   *)
11536     case $LD in # libtool.m4 will add one of these switches to LD
11537     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11538       libsuff= shlibsuff= libmagic=32-bit;;
11539     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11540       libsuff=32 shlibsuff=N32 libmagic=N32;;
11541     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11542       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11543     *) libsuff= shlibsuff= libmagic=never-match;;
11544     esac
11545     ;;
11546   esac
11547   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11548   shlibpath_overrides_runpath=no
11549   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11550   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11551   hardcode_into_libs=yes
11552   ;;
11553
11554 # No shared lib support for Linux oldld, aout, or coff.
11555 linux*oldld* | linux*aout* | linux*coff*)
11556   dynamic_linker=no
11557   ;;
11558
11559 # This must be Linux ELF.
11560 linux* | k*bsd*-gnu)
11561   version_type=linux
11562   need_lib_prefix=no
11563   need_version=no
11564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565   soname_spec='${libname}${release}${shared_ext}$major'
11566   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11567   shlibpath_var=LD_LIBRARY_PATH
11568   shlibpath_overrides_runpath=no
11569   # Some binutils ld are patched to set DT_RUNPATH
11570   save_LDFLAGS=$LDFLAGS
11571   save_libdir=$libdir
11572   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11573        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h.  */
11576
11577 int
11578 main ()
11579 {
11580
11581   ;
11582   return 0;
11583 }
11584 _ACEOF
11585 if ac_fn_c_try_link "$LINENO"; then :
11586   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11587   shlibpath_overrides_runpath=yes
11588 fi
11589 fi
11590 rm -f core conftest.err conftest.$ac_objext \
11591     conftest$ac_exeext conftest.$ac_ext
11592   LDFLAGS=$save_LDFLAGS
11593   libdir=$save_libdir
11594
11595   # This implies no fast_install, which is unacceptable.
11596   # Some rework will be needed to allow for fast_install
11597   # before this can be enabled.
11598   hardcode_into_libs=yes
11599
11600   # Append ld.so.conf contents to the search path
11601   if test -f /etc/ld.so.conf; then
11602     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' ' '`
11603     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11604   fi
11605
11606   # We used to test for /lib/ld.so.1 and disable shared libraries on
11607   # powerpc, because MkLinux only supported shared libraries with the
11608   # GNU dynamic linker.  Since this was broken with cross compilers,
11609   # most powerpc-linux boxes support dynamic linking these days and
11610   # people can always --disable-shared, the test was removed, and we
11611   # assume the GNU/Linux dynamic linker is in use.
11612   dynamic_linker='GNU/Linux ld.so'
11613   ;;
11614
11615 netbsd*)
11616   version_type=sunos
11617   need_lib_prefix=no
11618   need_version=no
11619   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11621     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11622     dynamic_linker='NetBSD (a.out) ld.so'
11623   else
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     dynamic_linker='NetBSD ld.elf_so'
11627   fi
11628   shlibpath_var=LD_LIBRARY_PATH
11629   shlibpath_overrides_runpath=yes
11630   hardcode_into_libs=yes
11631   ;;
11632
11633 newsos6)
11634   version_type=linux
11635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636   shlibpath_var=LD_LIBRARY_PATH
11637   shlibpath_overrides_runpath=yes
11638   ;;
11639
11640 *nto* | *qnx*)
11641   version_type=qnx
11642   need_lib_prefix=no
11643   need_version=no
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645   soname_spec='${libname}${release}${shared_ext}$major'
11646   shlibpath_var=LD_LIBRARY_PATH
11647   shlibpath_overrides_runpath=no
11648   hardcode_into_libs=yes
11649   dynamic_linker='ldqnx.so'
11650   ;;
11651
11652 openbsd*)
11653   version_type=sunos
11654   sys_lib_dlsearch_path_spec="/usr/lib"
11655   need_lib_prefix=no
11656   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11657   case $host_os in
11658     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11659     *)                          need_version=no  ;;
11660   esac
11661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11662   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11663   shlibpath_var=LD_LIBRARY_PATH
11664   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11665     case $host_os in
11666       openbsd2.[89] | openbsd2.[89].*)
11667         shlibpath_overrides_runpath=no
11668         ;;
11669       *)
11670         shlibpath_overrides_runpath=yes
11671         ;;
11672       esac
11673   else
11674     shlibpath_overrides_runpath=yes
11675   fi
11676   ;;
11677
11678 os2*)
11679   libname_spec='$name'
11680   shrext_cmds=".dll"
11681   need_lib_prefix=no
11682   library_names_spec='$libname${shared_ext} $libname.a'
11683   dynamic_linker='OS/2 ld.exe'
11684   shlibpath_var=LIBPATH
11685   ;;
11686
11687 osf3* | osf4* | osf5*)
11688   version_type=osf
11689   need_lib_prefix=no
11690   need_version=no
11691   soname_spec='${libname}${release}${shared_ext}$major'
11692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693   shlibpath_var=LD_LIBRARY_PATH
11694   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11695   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11696   ;;
11697
11698 rdos*)
11699   dynamic_linker=no
11700   ;;
11701
11702 solaris*)
11703   version_type=linux
11704   need_lib_prefix=no
11705   need_version=no
11706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707   soname_spec='${libname}${release}${shared_ext}$major'
11708   shlibpath_var=LD_LIBRARY_PATH
11709   shlibpath_overrides_runpath=yes
11710   hardcode_into_libs=yes
11711   # ldd complains unless libraries are executable
11712   postinstall_cmds='chmod +x $lib'
11713   ;;
11714
11715 sunos4*)
11716   version_type=sunos
11717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11718   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11719   shlibpath_var=LD_LIBRARY_PATH
11720   shlibpath_overrides_runpath=yes
11721   if test "$with_gnu_ld" = yes; then
11722     need_lib_prefix=no
11723   fi
11724   need_version=yes
11725   ;;
11726
11727 sysv4 | sysv4.3*)
11728   version_type=linux
11729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730   soname_spec='${libname}${release}${shared_ext}$major'
11731   shlibpath_var=LD_LIBRARY_PATH
11732   case $host_vendor in
11733     sni)
11734       shlibpath_overrides_runpath=no
11735       need_lib_prefix=no
11736       runpath_var=LD_RUN_PATH
11737       ;;
11738     siemens)
11739       need_lib_prefix=no
11740       ;;
11741     motorola)
11742       need_lib_prefix=no
11743       need_version=no
11744       shlibpath_overrides_runpath=no
11745       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11746       ;;
11747   esac
11748   ;;
11749
11750 sysv4*MP*)
11751   if test -d /usr/nec ;then
11752     version_type=linux
11753     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11754     soname_spec='$libname${shared_ext}.$major'
11755     shlibpath_var=LD_LIBRARY_PATH
11756   fi
11757   ;;
11758
11759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11760   version_type=freebsd-elf
11761   need_lib_prefix=no
11762   need_version=no
11763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11764   soname_spec='${libname}${release}${shared_ext}$major'
11765   shlibpath_var=LD_LIBRARY_PATH
11766   shlibpath_overrides_runpath=yes
11767   hardcode_into_libs=yes
11768   if test "$with_gnu_ld" = yes; then
11769     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11770   else
11771     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11772     case $host_os in
11773       sco3.2v5*)
11774         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11775         ;;
11776     esac
11777   fi
11778   sys_lib_dlsearch_path_spec='/usr/lib'
11779   ;;
11780
11781 tpf*)
11782   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11783   version_type=linux
11784   need_lib_prefix=no
11785   need_version=no
11786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787   shlibpath_var=LD_LIBRARY_PATH
11788   shlibpath_overrides_runpath=no
11789   hardcode_into_libs=yes
11790   ;;
11791
11792 uts4*)
11793   version_type=linux
11794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795   soname_spec='${libname}${release}${shared_ext}$major'
11796   shlibpath_var=LD_LIBRARY_PATH
11797   ;;
11798
11799 *)
11800   dynamic_linker=no
11801   ;;
11802 esac
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11804 $as_echo "$dynamic_linker" >&6; }
11805 test "$dynamic_linker" = no && can_build_shared=no
11806
11807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11808 if test "$GCC" = yes; then
11809   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11810 fi
11811
11812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11813   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11814 fi
11815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11816   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11817 fi
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11906 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11907 hardcode_action=
11908 if test -n "$hardcode_libdir_flag_spec" ||
11909    test -n "$runpath_var" ||
11910    test "X$hardcode_automatic" = "Xyes" ; then
11911
11912   # We can hardcode non-existent directories.
11913   if test "$hardcode_direct" != no &&
11914      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11915      # have to relink, otherwise we might link with an installed library
11916      # when we should be linking with a yet-to-be-installed one
11917      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11918      test "$hardcode_minus_L" != no; then
11919     # Linking always hardcodes the temporary library directory.
11920     hardcode_action=relink
11921   else
11922     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11923     hardcode_action=immediate
11924   fi
11925 else
11926   # We cannot hardcode anything, or else we can only hardcode existing
11927   # directories.
11928   hardcode_action=unsupported
11929 fi
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11931 $as_echo "$hardcode_action" >&6; }
11932
11933 if test "$hardcode_action" = relink ||
11934    test "$inherit_rpath" = yes; then
11935   # Fast installation is not supported
11936   enable_fast_install=no
11937 elif test "$shlibpath_overrides_runpath" = yes ||
11938      test "$enable_shared" = no; then
11939   # Fast installation is not necessary
11940   enable_fast_install=needless
11941 fi
11942
11943
11944
11945
11946
11947
11948   if test "x$enable_dlopen" != xyes; then
11949   enable_dlopen=unknown
11950   enable_dlopen_self=unknown
11951   enable_dlopen_self_static=unknown
11952 else
11953   lt_cv_dlopen=no
11954   lt_cv_dlopen_libs=
11955
11956   case $host_os in
11957   beos*)
11958     lt_cv_dlopen="load_add_on"
11959     lt_cv_dlopen_libs=
11960     lt_cv_dlopen_self=yes
11961     ;;
11962
11963   mingw* | pw32* | cegcc*)
11964     lt_cv_dlopen="LoadLibrary"
11965     lt_cv_dlopen_libs=
11966     ;;
11967
11968   cygwin*)
11969     lt_cv_dlopen="dlopen"
11970     lt_cv_dlopen_libs=
11971     ;;
11972
11973   darwin*)
11974   # if libdl is installed we need to link against it
11975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11977 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11978   $as_echo_n "(cached) " >&6
11979 else
11980   ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ldl  $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h.  */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986    Use char because int might match the return type of a GCC
11987    builtin and then its argument prototype would still apply.  */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char dlopen ();
11992 int
11993 main ()
11994 {
11995 return dlopen ();
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001   ac_cv_lib_dl_dlopen=yes
12002 else
12003   ac_cv_lib_dl_dlopen=no
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext \
12006     conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12012   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12013 else
12014
12015     lt_cv_dlopen="dyld"
12016     lt_cv_dlopen_libs=
12017     lt_cv_dlopen_self=yes
12018
12019 fi
12020
12021     ;;
12022
12023   *)
12024     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12025 if test "x$ac_cv_func_shl_load" = x""yes; then :
12026   lt_cv_dlopen="shl_load"
12027 else
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12029 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12030 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12031   $as_echo_n "(cached) " >&6
12032 else
12033   ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-ldld  $LIBS"
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h.  */
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039    Use char because int might match the return type of a GCC
12040    builtin and then its argument prototype would still apply.  */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char shl_load ();
12045 int
12046 main ()
12047 {
12048 return shl_load ();
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054   ac_cv_lib_dld_shl_load=yes
12055 else
12056   ac_cv_lib_dld_shl_load=no
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext \
12059     conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12063 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12064 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12065   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12066 else
12067   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12068 if test "x$ac_cv_func_dlopen" = x""yes; then :
12069   lt_cv_dlopen="dlopen"
12070 else
12071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12074   $as_echo_n "(cached) " >&6
12075 else
12076   ac_check_lib_save_LIBS=$LIBS
12077 LIBS="-ldl  $LIBS"
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h.  */
12080
12081 /* Override any GCC internal prototype to avoid an error.
12082    Use char because int might match the return type of a GCC
12083    builtin and then its argument prototype would still apply.  */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 char dlopen ();
12088 int
12089 main ()
12090 {
12091 return dlopen ();
12092   ;
12093   return 0;
12094 }
12095 _ACEOF
12096 if ac_fn_c_try_link "$LINENO"; then :
12097   ac_cv_lib_dl_dlopen=yes
12098 else
12099   ac_cv_lib_dl_dlopen=no
12100 fi
12101 rm -f core conftest.err conftest.$ac_objext \
12102     conftest$ac_exeext conftest.$ac_ext
12103 LIBS=$ac_check_lib_save_LIBS
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12107 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12108   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12109 else
12110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12111 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12113   $as_echo_n "(cached) " >&6
12114 else
12115   ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lsvld  $LIBS"
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h.  */
12119
12120 /* Override any GCC internal prototype to avoid an error.
12121    Use char because int might match the return type of a GCC
12122    builtin and then its argument prototype would still apply.  */
12123 #ifdef __cplusplus
12124 extern "C"
12125 #endif
12126 char dlopen ();
12127 int
12128 main ()
12129 {
12130 return dlopen ();
12131   ;
12132   return 0;
12133 }
12134 _ACEOF
12135 if ac_fn_c_try_link "$LINENO"; then :
12136   ac_cv_lib_svld_dlopen=yes
12137 else
12138   ac_cv_lib_svld_dlopen=no
12139 fi
12140 rm -f core conftest.err conftest.$ac_objext \
12141     conftest$ac_exeext conftest.$ac_ext
12142 LIBS=$ac_check_lib_save_LIBS
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12145 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12146 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12147   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12148 else
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12150 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12151 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12152   $as_echo_n "(cached) " >&6
12153 else
12154   ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-ldld  $LIBS"
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h.  */
12158
12159 /* Override any GCC internal prototype to avoid an error.
12160    Use char because int might match the return type of a GCC
12161    builtin and then its argument prototype would still apply.  */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 char dld_link ();
12166 int
12167 main ()
12168 {
12169 return dld_link ();
12170   ;
12171   return 0;
12172 }
12173 _ACEOF
12174 if ac_fn_c_try_link "$LINENO"; then :
12175   ac_cv_lib_dld_dld_link=yes
12176 else
12177   ac_cv_lib_dld_dld_link=no
12178 fi
12179 rm -f core conftest.err conftest.$ac_objext \
12180     conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12182 fi
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12184 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12185 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12186   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12187 fi
12188
12189
12190 fi
12191
12192
12193 fi
12194
12195
12196 fi
12197
12198
12199 fi
12200
12201
12202 fi
12203
12204     ;;
12205   esac
12206
12207   if test "x$lt_cv_dlopen" != xno; then
12208     enable_dlopen=yes
12209   else
12210     enable_dlopen=no
12211   fi
12212
12213   case $lt_cv_dlopen in
12214   dlopen)
12215     save_CPPFLAGS="$CPPFLAGS"
12216     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12217
12218     save_LDFLAGS="$LDFLAGS"
12219     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12220
12221     save_LIBS="$LIBS"
12222     LIBS="$lt_cv_dlopen_libs $LIBS"
12223
12224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12225 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12226 if test "${lt_cv_dlopen_self+set}" = set; then :
12227   $as_echo_n "(cached) " >&6
12228 else
12229           if test "$cross_compiling" = yes; then :
12230   lt_cv_dlopen_self=cross
12231 else
12232   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233   lt_status=$lt_dlunknown
12234   cat > conftest.$ac_ext <<_LT_EOF
12235 #line 12235 "configure"
12236 #include "confdefs.h"
12237
12238 #if HAVE_DLFCN_H
12239 #include <dlfcn.h>
12240 #endif
12241
12242 #include <stdio.h>
12243
12244 #ifdef RTLD_GLOBAL
12245 #  define LT_DLGLOBAL           RTLD_GLOBAL
12246 #else
12247 #  ifdef DL_GLOBAL
12248 #    define LT_DLGLOBAL         DL_GLOBAL
12249 #  else
12250 #    define LT_DLGLOBAL         0
12251 #  endif
12252 #endif
12253
12254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255    find out it does not work in some platform. */
12256 #ifndef LT_DLLAZY_OR_NOW
12257 #  ifdef RTLD_LAZY
12258 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12259 #  else
12260 #    ifdef DL_LAZY
12261 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12262 #    else
12263 #      ifdef RTLD_NOW
12264 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12265 #      else
12266 #        ifdef DL_NOW
12267 #          define LT_DLLAZY_OR_NOW      DL_NOW
12268 #        else
12269 #          define LT_DLLAZY_OR_NOW      0
12270 #        endif
12271 #      endif
12272 #    endif
12273 #  endif
12274 #endif
12275
12276 void fnord() { int i=42;}
12277 int main ()
12278 {
12279   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12280   int status = $lt_dlunknown;
12281
12282   if (self)
12283     {
12284       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12285       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12286       /* dlclose (self); */
12287     }
12288   else
12289     puts (dlerror ());
12290
12291   return status;
12292 }
12293 _LT_EOF
12294   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12295   (eval $ac_link) 2>&5
12296   ac_status=$?
12297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12298   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12299     (./conftest; exit; ) >&5 2>/dev/null
12300     lt_status=$?
12301     case x$lt_status in
12302       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12303       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12304       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12305     esac
12306   else :
12307     # compilation failed
12308     lt_cv_dlopen_self=no
12309   fi
12310 fi
12311 rm -fr conftest*
12312
12313
12314 fi
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12316 $as_echo "$lt_cv_dlopen_self" >&6; }
12317
12318     if test "x$lt_cv_dlopen_self" = xyes; then
12319       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12320       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12321 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12322 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325           if test "$cross_compiling" = yes; then :
12326   lt_cv_dlopen_self_static=cross
12327 else
12328   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12329   lt_status=$lt_dlunknown
12330   cat > conftest.$ac_ext <<_LT_EOF
12331 #line 12331 "configure"
12332 #include "confdefs.h"
12333
12334 #if HAVE_DLFCN_H
12335 #include <dlfcn.h>
12336 #endif
12337
12338 #include <stdio.h>
12339
12340 #ifdef RTLD_GLOBAL
12341 #  define LT_DLGLOBAL           RTLD_GLOBAL
12342 #else
12343 #  ifdef DL_GLOBAL
12344 #    define LT_DLGLOBAL         DL_GLOBAL
12345 #  else
12346 #    define LT_DLGLOBAL         0
12347 #  endif
12348 #endif
12349
12350 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12351    find out it does not work in some platform. */
12352 #ifndef LT_DLLAZY_OR_NOW
12353 #  ifdef RTLD_LAZY
12354 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12355 #  else
12356 #    ifdef DL_LAZY
12357 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12358 #    else
12359 #      ifdef RTLD_NOW
12360 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12361 #      else
12362 #        ifdef DL_NOW
12363 #          define LT_DLLAZY_OR_NOW      DL_NOW
12364 #        else
12365 #          define LT_DLLAZY_OR_NOW      0
12366 #        endif
12367 #      endif
12368 #    endif
12369 #  endif
12370 #endif
12371
12372 void fnord() { int i=42;}
12373 int main ()
12374 {
12375   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12376   int status = $lt_dlunknown;
12377
12378   if (self)
12379     {
12380       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12381       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12382       /* dlclose (self); */
12383     }
12384   else
12385     puts (dlerror ());
12386
12387   return status;
12388 }
12389 _LT_EOF
12390   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12391   (eval $ac_link) 2>&5
12392   ac_status=$?
12393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12394   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12395     (./conftest; exit; ) >&5 2>/dev/null
12396     lt_status=$?
12397     case x$lt_status in
12398       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12399       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12400       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12401     esac
12402   else :
12403     # compilation failed
12404     lt_cv_dlopen_self_static=no
12405   fi
12406 fi
12407 rm -fr conftest*
12408
12409
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12412 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12413     fi
12414
12415     CPPFLAGS="$save_CPPFLAGS"
12416     LDFLAGS="$save_LDFLAGS"
12417     LIBS="$save_LIBS"
12418     ;;
12419   esac
12420
12421   case $lt_cv_dlopen_self in
12422   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12423   *) enable_dlopen_self=unknown ;;
12424   esac
12425
12426   case $lt_cv_dlopen_self_static in
12427   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12428   *) enable_dlopen_self_static=unknown ;;
12429   esac
12430 fi
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448 striplib=
12449 old_striplib=
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12451 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12452 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12453   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12454   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12456 $as_echo "yes" >&6; }
12457 else
12458 # FIXME - insert some real tests, host_os isn't really good enough
12459   case $host_os in
12460   darwin*)
12461     if test -n "$STRIP" ; then
12462       striplib="$STRIP -x"
12463       old_striplib="$STRIP -S"
12464       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12465 $as_echo "yes" >&6; }
12466     else
12467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12469     fi
12470     ;;
12471   *)
12472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12474     ;;
12475   esac
12476 fi
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489   # Report which library types will actually be built
12490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12491 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12493 $as_echo "$can_build_shared" >&6; }
12494
12495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12496 $as_echo_n "checking whether to build shared libraries... " >&6; }
12497   test "$can_build_shared" = "no" && enable_shared=no
12498
12499   # On AIX, shared libraries and static libraries use the same namespace, and
12500   # are all built from PIC.
12501   case $host_os in
12502   aix3*)
12503     test "$enable_shared" = yes && enable_static=no
12504     if test -n "$RANLIB"; then
12505       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12506       postinstall_cmds='$RANLIB $lib'
12507     fi
12508     ;;
12509
12510   aix[4-9]*)
12511     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12512       test "$enable_shared" = yes && enable_static=no
12513     fi
12514     ;;
12515   esac
12516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12517 $as_echo "$enable_shared" >&6; }
12518
12519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12520 $as_echo_n "checking whether to build static libraries... " >&6; }
12521   # Make sure either enable_shared or enable_static is yes.
12522   test "$enable_shared" = yes || enable_static=yes
12523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12524 $as_echo "$enable_static" >&6; }
12525
12526
12527
12528
12529 fi
12530 ac_ext=c
12531 ac_cpp='$CPP $CPPFLAGS'
12532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12535
12536 CC="$lt_save_CC"
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550         ac_config_commands="$ac_config_commands libtool"
12551
12552
12553
12554
12555 # Only expand once:
12556
12557
12558
12559 if test "$enable_shared" = "no"; then
12560     with_noexec=no
12561 else
12562     eval _shrext="$shrext_cmds"
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
12565 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
12566
12567 # Check whether --with-noexec was given.
12568 if test "${with_noexec+set}" = set; then :
12569   withval=$with_noexec; case $with_noexec in
12570     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
12571                 ;;
12572     no)         ;;
12573     *)          ;;
12574 esac
12575 else
12576   with_noexec="$libexecdir/sudo_noexec$_shrext"
12577 fi
12578
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
12580 $as_echo "$with_noexec" >&6; }
12581 NOEXECFILE="sudo_noexec$_shrext"
12582 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
12583
12584 if test X"$with_devel" = X"yes" -a -n "$GCC"; then
12585     CFLAGS="${CFLAGS} -Wall"
12586 fi
12587
12588 # Extract the first word of "uname", so it can be a program name with args.
12589 set dummy uname; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then :
12593   $as_echo_n "(cached) " >&6
12594 else
12595   if test -n "$UNAMEPROG"; then
12596   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
12597 else
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12600 do
12601   IFS=$as_save_IFS
12602   test -z "$as_dir" && as_dir=.
12603     for ac_exec_ext in '' $ac_executable_extensions; do
12604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12605     ac_cv_prog_UNAMEPROG="uname"
12606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607     break 2
12608   fi
12609 done
12610   done
12611 IFS=$as_save_IFS
12612
12613 fi
12614 fi
12615 UNAMEPROG=$ac_cv_prog_UNAMEPROG
12616 if test -n "$UNAMEPROG"; then
12617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
12618 $as_echo "$UNAMEPROG" >&6; }
12619 else
12620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622 fi
12623
12624
12625 # Extract the first word of "tr", so it can be a program name with args.
12626 set dummy tr; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if test "${ac_cv_prog_TRPROG+set}" = set; then :
12630   $as_echo_n "(cached) " >&6
12631 else
12632   if test -n "$TRPROG"; then
12633   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
12634 else
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12637 do
12638   IFS=$as_save_IFS
12639   test -z "$as_dir" && as_dir=.
12640     for ac_exec_ext in '' $ac_executable_extensions; do
12641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12642     ac_cv_prog_TRPROG="tr"
12643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644     break 2
12645   fi
12646 done
12647   done
12648 IFS=$as_save_IFS
12649
12650 fi
12651 fi
12652 TRPROG=$ac_cv_prog_TRPROG
12653 if test -n "$TRPROG"; then
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
12655 $as_echo "$TRPROG" >&6; }
12656 else
12657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12659 fi
12660
12661
12662 for ac_prog in nroff mandoc
12663 do
12664   # Extract the first word of "$ac_prog", so it can be a program name with args.
12665 set dummy $ac_prog; ac_word=$2
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667 $as_echo_n "checking for $ac_word... " >&6; }
12668 if test "${ac_cv_prog_NROFFPROG+set}" = set; then :
12669   $as_echo_n "(cached) " >&6
12670 else
12671   if test -n "$NROFFPROG"; then
12672   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
12673 else
12674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 for as_dir in $PATH
12676 do
12677   IFS=$as_save_IFS
12678   test -z "$as_dir" && as_dir=.
12679     for ac_exec_ext in '' $ac_executable_extensions; do
12680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12681     ac_cv_prog_NROFFPROG="$ac_prog"
12682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683     break 2
12684   fi
12685 done
12686   done
12687 IFS=$as_save_IFS
12688
12689 fi
12690 fi
12691 NROFFPROG=$ac_cv_prog_NROFFPROG
12692 if test -n "$NROFFPROG"; then
12693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
12694 $as_echo "$NROFFPROG" >&6; }
12695 else
12696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12698 fi
12699
12700
12701   test -n "$NROFFPROG" && break
12702 done
12703
12704 if test -z "$NROFFPROG"; then
12705     MANTYPE="cat"
12706     mansrcdir='$(srcdir)'
12707 fi
12708
12709 if test -n "$sudo_cv_prev_host"; then
12710     if test "$sudo_cv_prev_host" != "$host"; then
12711         as_fn_error "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
12712     else
12713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
12714 $as_echo_n "checking previous host type... " >&6; }
12715         if test "${sudo_cv_prev_host+set}" = set; then :
12716   $as_echo_n "(cached) " >&6
12717 else
12718   sudo_cv_prev_host="$host"
12719 fi
12720
12721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
12722 $as_echo "$sudo_cv_prev_host" >&6; }
12723     fi
12724 else
12725     # this will produce no output since there is no cached value
12726     if test "${sudo_cv_prev_host+set}" = set; then :
12727   $as_echo_n "(cached) " >&6
12728 else
12729   sudo_cv_prev_host="$host"
12730 fi
12731
12732 fi
12733
12734 if test -n "$host_os"; then
12735     OS=`echo $host_os | sed 's/[0-9].*//'`
12736     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
12737     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
12738 else
12739     OS="unknown"
12740     OSREV=0
12741     OSMAJOR=0
12742 fi
12743
12744 case "$host" in
12745     *-*-sunos4*)
12746                 # getcwd(3) opens a pipe to getpwd(1)!?!
12747                 BROKEN_GETCWD=1
12748
12749                 # system headers lack prototypes but gcc helps...
12750                 if test -n "$GCC"; then
12751                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
12752                 fi
12753
12754                 shadow_funcs="getpwanam issecure"
12755                 ;;
12756     *-*-solaris2*)
12757                 # To get the crypt(3) prototype (so we pass -Wall)
12758                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
12759                 # AFS support needs -lucb
12760                 if test "$with_AFS" = "yes"; then
12761                     AFS_LIBS="-lc -lucb"
12762                 fi
12763                 : ${mansectsu='1m'}
12764                 : ${mansectform='4'}
12765                 : ${with_rpath='yes'}
12766                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12767                 ;;
12768     *-*-aix*)
12769                 # To get all prototypes (so we pass -Wall)
12770                 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
12771                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
12772                 if test X"$with_blibpath" != X"no"; then
12773                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
12774 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
12775                     O_LDFLAGS="$LDFLAGS"
12776                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
12777                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h.  */
12779
12780 int
12781 main ()
12782 {
12783
12784   ;
12785   return 0;
12786 }
12787 _ACEOF
12788 if ac_fn_c_try_link "$LINENO"; then :
12789
12790                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
12791                             blibpath="$with_blibpath"
12792                         elif test -n "$GCC"; then
12793                             blibpath="/usr/lib:/lib:/usr/local/lib"
12794                         else
12795                             blibpath="/usr/lib:/lib"
12796                         fi
12797                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12798 $as_echo "yes" >&6; }
12799
12800 else
12801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802 $as_echo "no" >&6; }
12803 fi
12804 rm -f core conftest.err conftest.$ac_objext \
12805     conftest$ac_exeext conftest.$ac_ext
12806                 fi
12807                 LDFLAGS="$O_LDFLAGS"
12808
12809                 # Use authenticate(3) as the default authentication method
12810                 if test X"$with_aixauth" = X""; then
12811                     for ac_func in authenticate
12812 do :
12813   ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
12814 if test "x$ac_cv_func_authenticate" = x""yes; then :
12815   cat >>confdefs.h <<_ACEOF
12816 #define HAVE_AUTHENTICATE 1
12817 _ACEOF
12818  AUTH_EXCL_DEF="AIX_AUTH"
12819 fi
12820 done
12821
12822                 fi
12823
12824                 # AIX analog of nsswitch.conf, enabled by default
12825
12826 # Check whether --with-netsvc was given.
12827 if test "${with_netsvc+set}" = set; then :
12828   withval=$with_netsvc; case $with_netsvc in
12829                     no)         ;;
12830                     yes)        with_netsvc="/etc/netsvc.conf"
12831                                 ;;
12832                     *)          ;;
12833                 esac
12834 fi
12835
12836                 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
12837                     with_netsvc="/etc/netsvc.conf"
12838                 fi
12839
12840                 # AIX-specific functions
12841                 for ac_func in getuserattr setauthdb
12842 do :
12843   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12844 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12845 eval as_val=\$$as_ac_var
12846    if test "x$as_val" = x""yes; then :
12847   cat >>confdefs.h <<_ACEOF
12848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12849 _ACEOF
12850
12851 fi
12852 done
12853
12854                 COMMON_OBJS="$COMMON_OBJS aix.o"
12855                 ;;
12856     *-*-hiuxmpp*)
12857                 : ${mansectsu='1m'}
12858                 : ${mansectform='4'}
12859                 ;;
12860     *-*-hpux*)
12861                 # AFS support needs -lBSD
12862                 if test "$with_AFS" = "yes"; then
12863                     AFS_LIBS="-lc -lBSD"
12864                 fi
12865                 : ${mansectsu='1m'}
12866                 : ${mansectform='4'}
12867
12868                 if test -z "$GCC"; then
12869                     # HP-UX bundled compiler can't generate shared objects
12870                     if -z "$pic_flag"; then
12871                         with_noexec=no
12872                     fi
12873
12874                     # Use the +DAportable flag on hppa if it is supported
12875                     case "$host_cpu" in
12876                     hppa*)
12877                         _CFLAGS="$CFLAGS"
12878                         CFLAGS="$CFLAGS +DAportable"
12879                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands +DAportable" >&5
12880 $as_echo_n "checking whether $CC understands +DAportable... " >&6; }
12881 if test "${sudo_cv_var_daportable+set}" = set; then :
12882   $as_echo_n "(cached) " >&6
12883 else
12884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h.  */
12886
12887 int
12888 main ()
12889 {
12890
12891   ;
12892   return 0;
12893 }
12894 _ACEOF
12895 if ac_fn_c_try_link "$LINENO"; then :
12896   sudo_cv_var_daportable=yes
12897 else
12898   sudo_cv_var_daportable=no
12899
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext \
12902     conftest$ac_exeext conftest.$ac_ext
12903
12904
12905 fi
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
12907 $as_echo "$sudo_cv_var_daportable" >&6; }
12908                         if test X"$sudo_cv_var_daportable" != X"yes"; then
12909                             CFLAGS="$_CFLAGS"
12910                         fi
12911                         ;;
12912                     esac
12913                 fi
12914
12915                 case "$host" in
12916                         *-*-hpux1-8.*)
12917                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12918
12919
12920                             # Not sure if setuid binaries are safe in < 9.x
12921                             if test -n "$GCC"; then
12922                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12923                             else
12924                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12925                             fi
12926                         ;;
12927                         *-*-hpux9.*)
12928                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12929
12930
12931                             shadow_funcs="getspwuid"
12932
12933                             # DCE support (requires ANSI C compiler)
12934                             if test "$with_DCE" = "yes"; then
12935                                 # order of libs in 9.X is important. -lc_r must be last
12936                                 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12937                                 LIBS="${LIBS} -ldce -lM -lc_r"
12938                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12939                             fi
12940                         ;;
12941                         *-*-hpux10.*)
12942                             shadow_funcs="getprpwnam iscomsec"
12943                             shadow_libs="-lsec"
12944                         ;;
12945                         *)
12946                             shadow_funcs="getspnam iscomsec"
12947                             shadow_libs="-lsec"
12948                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12949                         ;;
12950                 esac
12951                 ;;
12952     *-dec-osf*)
12953                 # ignore envariables wrt dynamic lib path
12954                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
12955
12956                 : ${CHECKSIA='true'}
12957                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
12958 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
12959                 # Check whether --enable-sia was given.
12960 if test "${enable_sia+set}" = set; then :
12961   enableval=$enable_sia;  case "$enableval" in
12962                     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12964                                 CHECKSIA=true
12965                                 ;;
12966                     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12967 $as_echo "yes" >&6; }
12968                                 CHECKSIA=false
12969                                 ;;
12970                     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12972                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12973 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12974                                 ;;
12975                   esac
12976
12977 else
12978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12980 fi
12981
12982
12983                 shadow_funcs="getprpwnam dispcrypt"
12984                 # OSF/1 4.x and higher need -ldb too
12985                 if test $OSMAJOR -lt 4; then
12986                     shadow_libs="-lsecurity -laud -lm"
12987                 else
12988                     shadow_libs="-lsecurity -ldb -laud -lm"
12989                 fi
12990
12991                 # use SIA by default, if we have it
12992                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
12993
12994                 #
12995                 # Some versions of Digital Unix ship with a broken
12996                 # copy of prot.h, which we need for shadow passwords.
12997                 # XXX - make should remove this as part of distclean
12998                 #
12999                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
13000 $as_echo_n "checking for broken prot.h... " >&6; }
13001                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h.  */
13003
13004 #include <sys/types.h>
13005 #include <sys/security.h>
13006 #include <prot.h>
13007
13008 int
13009 main ()
13010 {
13011 exit(0);
13012   ;
13013   return 0;
13014 }
13015 _ACEOF
13016 if ac_fn_c_try_compile "$LINENO"; then :
13017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13019 else
13020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
13021 $as_echo "yes, fixing locally" >&6; }
13022                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
13023
13024 fi
13025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13026                 : ${mansectsu='8'}
13027                 : ${mansectform='4'}
13028                 ;;
13029     *-*-irix*)
13030                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
13031                 if test -z "$NROFFPROG"; then
13032                     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)'
13033                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13034                         if test -d /usr/share/catman/local; then
13035                             mandir="/usr/share/catman/local"
13036                         else
13037                             mandir="/usr/catman/local"
13038                         fi
13039                     fi
13040                 else
13041                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13042                         if test -d "/usr/share/man/local"; then
13043                             mandir="/usr/share/man/local"
13044                         else
13045                             mandir="/usr/man/local"
13046                         fi
13047                     fi
13048                 fi
13049                 # IRIX <= 4 needs -lsun
13050                 if test "$OSMAJOR" -le 4; then
13051                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
13052 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
13053 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
13054   $as_echo_n "(cached) " >&6
13055 else
13056   ac_check_lib_save_LIBS=$LIBS
13057 LIBS="-lsun  $LIBS"
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h.  */
13060
13061 /* Override any GCC internal prototype to avoid an error.
13062    Use char because int might match the return type of a GCC
13063    builtin and then its argument prototype would still apply.  */
13064 #ifdef __cplusplus
13065 extern "C"
13066 #endif
13067 char getpwnam ();
13068 int
13069 main ()
13070 {
13071 return getpwnam ();
13072   ;
13073   return 0;
13074 }
13075 _ACEOF
13076 if ac_fn_c_try_link "$LINENO"; then :
13077   ac_cv_lib_sun_getpwnam=yes
13078 else
13079   ac_cv_lib_sun_getpwnam=no
13080 fi
13081 rm -f core conftest.err conftest.$ac_objext \
13082     conftest$ac_exeext conftest.$ac_ext
13083 LIBS=$ac_check_lib_save_LIBS
13084 fi
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
13086 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
13087 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
13088   LIBS="${LIBS} -lsun"
13089 fi
13090
13091                 fi
13092                 : ${mansectsu='1m'}
13093                 : ${mansectform='4'}
13094                 ;;
13095     *-*-linux*|*-*-k*bsd*-gnu)
13096                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13097                 # Some Linux versions need to link with -lshadow
13098                 shadow_funcs="getspnam"
13099                 shadow_libs_optional="-lshadow"
13100                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13101                 ;;
13102     *-convex-bsd*)
13103                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
13104                 if test -z "$GCC"; then
13105                     CFLAGS="${CFLAGS} -D__STDC__"
13106                 fi
13107
13108                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
13109                 shadow_funcs="getprpwnam"
13110                 shadow_libs="-lprot"
13111                 ;;
13112     *-*-ultrix*)
13113                 OS="ultrix"
13114                 shadow_funcs="getauthuid"
13115                 shadow_libs="-lauth"
13116                 ;;
13117     *-*-riscos*)
13118                 LIBS="${LIBS} -lsun -lbsd"
13119                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
13120                 OSDEFS="${OSDEFS} -D_MIPS"
13121                 : ${mansectsu='1m'}
13122                 : ${mansectform='4'}
13123                 ;;
13124     *-*-isc*)
13125                 OSDEFS="${OSDEFS} -D_ISC"
13126                 LIB_CRYPT=1
13127                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
13128                 LIBS="${LIBS} -lcrypt"
13129
13130                 shadow_funcs="getspnam"
13131                 shadow_libs="-lsec"
13132
13133                 : ${mansectsu='1m'}
13134                 : ${mansectform='4'}
13135                 ;;
13136     *-*-sco*|*-sco-*)
13137                 shadow_funcs="getprpwnam"
13138                 shadow_libs="-lprot -lx"
13139                 : ${mansectsu='1m'}
13140                 : ${mansectform='4'}
13141                 ;;
13142     m88k-motorola-sysv*)
13143                 # motorolla's cc (a variant of gcc) does -O but not -O2
13144                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
13145                 : ${mansectsu='1m'}
13146                 : ${mansectform='4'}
13147                 ;;
13148     *-sequent-sysv*)
13149                 shadow_funcs="getspnam"
13150                 shadow_libs="-lsec"
13151                 : ${mansectsu='1m'}
13152                 : ${mansectform='4'}
13153                 : ${with_rpath='yes'}
13154                 ;;
13155     *-ncr-sysv4*|*-ncr-sysvr4*)
13156                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
13157 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
13158 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then :
13159   $as_echo_n "(cached) " >&6
13160 else
13161   ac_check_lib_save_LIBS=$LIBS
13162 LIBS="-lc89  $LIBS"
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h.  */
13165
13166 /* Override any GCC internal prototype to avoid an error.
13167    Use char because int might match the return type of a GCC
13168    builtin and then its argument prototype would still apply.  */
13169 #ifdef __cplusplus
13170 extern "C"
13171 #endif
13172 char strcasecmp ();
13173 int
13174 main ()
13175 {
13176 return strcasecmp ();
13177   ;
13178   return 0;
13179 }
13180 _ACEOF
13181 if ac_fn_c_try_link "$LINENO"; then :
13182   ac_cv_lib_c89_strcasecmp=yes
13183 else
13184   ac_cv_lib_c89_strcasecmp=no
13185 fi
13186 rm -f core conftest.err conftest.$ac_objext \
13187     conftest$ac_exeext conftest.$ac_ext
13188 LIBS=$ac_check_lib_save_LIBS
13189 fi
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
13191 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
13192 if test "x$ac_cv_lib_c89_strcasecmp" = x""yes; then :
13193   $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
13194  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
13195 fi
13196
13197                 : ${mansectsu='1m'}
13198                 : ${mansectform='4'}
13199                 : ${with_rpath='yes'}
13200                 ;;
13201     *-ccur-sysv4*|*-ccur-sysvr4*)
13202                 LIBS="${LIBS} -lgen"
13203                 SUDO_LIBS="${SUDO_LIBS} -lgen"
13204                 : ${mansectsu='1m'}
13205                 : ${mansectform='4'}
13206                 : ${with_rpath='yes'}
13207                 ;;
13208     *-*-bsdi*)
13209                 SKIP_SETREUID=yes
13210                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
13211                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
13212                     case "$OSMAJOR" in
13213                         2|3)    { $as_echo "$as_me:${as_lineno-$LINENO}: using shlicc as CC" >&5
13214 $as_echo "$as_me: using shlicc as CC" >&6;}
13215                                 ac_cv_prog_CC=shlicc
13216                                 CC="$ac_cv_prog_CC"
13217                                 ;;
13218                     esac
13219                 fi
13220                 # Check for newer BSD auth API (just check for >= 3.0?)
13221                 if test -z "$with_bsdauth"; then
13222                     for ac_func in auth_challenge
13223 do :
13224   ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
13225 if test "x$ac_cv_func_auth_challenge" = x""yes; then :
13226   cat >>confdefs.h <<_ACEOF
13227 #define HAVE_AUTH_CHALLENGE 1
13228 _ACEOF
13229  AUTH_EXCL_DEF="BSD_AUTH"
13230 fi
13231 done
13232
13233                 fi
13234                 ;;
13235     *-*-freebsd*)
13236                 # FreeBSD has a real setreuid(2) starting with 2.1 and
13237                 # backported to 2.0.5.  We just take 2.1 and above...
13238                 case "$OSREV" in
13239                 0.*|1.*|2.0*)
13240                     SKIP_SETREUID=yes
13241                     ;;
13242                 esac
13243                 if test "$with_skey" = "yes"; then
13244                      SUDO_LIBS="${SUDO_LIBS} -lmd"
13245                 fi
13246                 CHECKSHADOW="false"
13247                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13248                 : ${with_logincap='maybe'}
13249                 ;;
13250     *-*-*openbsd*)
13251                 # OpenBSD has a real setreuid(2) starting with 3.3 but
13252                 # we will use setreuid(2) instead.
13253                 SKIP_SETREUID=yes
13254                 CHECKSHADOW="false"
13255                 # OpenBSD >= 3.0 supports BSD auth
13256                 if test -z "$with_bsdauth"; then
13257                     case "$OSREV" in
13258                     0-2.*)
13259                         ;;
13260                     *)
13261                         AUTH_EXCL_DEF="BSD_AUTH"
13262                         ;;
13263                     esac
13264                 fi
13265                 : ${with_logincap='maybe'}
13266                 ;;
13267     *-*-*netbsd*)
13268                 # NetBSD has a real setreuid(2) starting with 1.3.2
13269                 case "$OSREV" in
13270                 0.9*|1.012*|1.3|1.3.1)
13271                     SKIP_SETREUID=yes
13272                     ;;
13273                 esac
13274                 CHECKSHADOW="false"
13275                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13276                 : ${with_logincap='maybe'}
13277                 ;;
13278     *-*-dragonfly*)
13279                 if test "$with_skey" = "yes"; then
13280                      SUDO_LIBS="${SUDO_LIBS} -lmd"
13281                 fi
13282                 CHECKSHADOW="false"
13283                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13284                 : ${with_logincap='yes'}
13285                 ;;
13286     *-*-*bsd*)
13287                 CHECKSHADOW="false"
13288                 ;;
13289     *-*-darwin*)
13290                 # Darwin has a real setreuid(2) starting with 9.0
13291                 if test $OSMAJOR -lt 9; then
13292                     SKIP_SETREUID=yes
13293                 fi
13294                 CHECKSHADOW="false"
13295                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13296                 : ${with_logincap='yes'}
13297                 ;;
13298     *-*-nextstep*)
13299                 # lockf() on is broken on the NeXT -- use flock instead
13300                 ac_cv_func_lockf=no
13301                 ac_cv_func_flock=yes
13302                 ;;
13303     *-*-*sysv4*)
13304                 : ${mansectsu='1m'}
13305                 : ${mansectform='4'}
13306                 : ${with_rpath='yes'}
13307                 ;;
13308     *-*-sysv*)
13309                 : ${mansectsu='1m'}
13310                 : ${mansectform='4'}
13311                 ;;
13312     *-gnu*)
13313                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13314                 ;;
13315 esac
13316
13317 AUTH_REG=${AUTH_REG# }
13318 AUTH_EXCL=${AUTH_EXCL# }
13319 if test -n "$AUTH_EXCL"; then
13320     set -- $AUTH_EXCL
13321     if test $# != 1; then
13322         as_fn_error "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
13323     fi
13324     if test -n "$AUTH_REG"; then
13325         as_fn_error "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
13326     fi
13327 fi
13328 if test X"${with_skey}${with_opie}" = X"yesyes"; then
13329     as_fn_error "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
13330 fi
13331
13332 : ${mansectsu='8'}
13333 : ${mansectform='5'}
13334
13335 if test -n "$with_libpath"; then
13336     for i in ${with_libpath}; do
13337
13338     if test X"$with_rpath" = X"yes"; then
13339         case "$host" in
13340             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
13341                         ;;
13342             *)          LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
13343                         ;;
13344         esac
13345     else
13346         LDFLAGS="${LDFLAGS} -L$i"
13347     fi
13348     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13349         blibpath_add="${blibpath_add}:$i"
13350     fi
13351
13352     done
13353 fi
13354 if test -n "$with_libraries"; then
13355     for i in ${with_libraries}; do
13356         case $i in
13357             -l*)        ;;
13358             *.a)        ;;
13359             *.o)        ;;
13360             *)  i="-l${i}";;
13361         esac
13362         LIBS="${LIBS} ${i}"
13363     done
13364 fi
13365
13366 if test $ac_cv_c_compiler_gnu = yes; then
13367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13368 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13369 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
13370   $as_echo_n "(cached) " >&6
13371 else
13372     ac_pattern="Autoconf.*'x'"
13373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h.  */
13375 #include <sgtty.h>
13376 Autoconf TIOCGETP
13377 _ACEOF
13378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13379   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13380   ac_cv_prog_gcc_traditional=yes
13381 else
13382   ac_cv_prog_gcc_traditional=no
13383 fi
13384 rm -f conftest*
13385
13386
13387   if test $ac_cv_prog_gcc_traditional = no; then
13388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h.  */
13390 #include <termio.h>
13391 Autoconf TCGETA
13392 _ACEOF
13393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13394   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13395   ac_cv_prog_gcc_traditional=yes
13396 fi
13397 rm -f conftest*
13398
13399   fi
13400 fi
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13402 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13403   if test $ac_cv_prog_gcc_traditional = yes; then
13404     CC="$CC -traditional"
13405   fi
13406 fi
13407
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13409 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13410 if test "${ac_cv_c_const+set}" = set; then :
13411   $as_echo_n "(cached) " >&6
13412 else
13413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h.  */
13415
13416 int
13417 main ()
13418 {
13419 /* FIXME: Include the comments suggested by Paul. */
13420 #ifndef __cplusplus
13421   /* Ultrix mips cc rejects this.  */
13422   typedef int charset[2];
13423   const charset cs;
13424   /* SunOS 4.1.1 cc rejects this.  */
13425   char const *const *pcpcc;
13426   char **ppc;
13427   /* NEC SVR4.0.2 mips cc rejects this.  */
13428   struct point {int x, y;};
13429   static struct point const zero = {0,0};
13430   /* AIX XL C 1.02.0.0 rejects this.
13431      It does not let you subtract one const X* pointer from another in
13432      an arm of an if-expression whose if-part is not a constant
13433      expression */
13434   const char *g = "string";
13435   pcpcc = &g + (g ? g-g : 0);
13436   /* HPUX 7.0 cc rejects these. */
13437   ++pcpcc;
13438   ppc = (char**) pcpcc;
13439   pcpcc = (char const *const *) ppc;
13440   { /* SCO 3.2v4 cc rejects this.  */
13441     char *t;
13442     char const *s = 0 ? (char *) 0 : (char const *) 0;
13443
13444     *t++ = 0;
13445     if (s) return 0;
13446   }
13447   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13448     int x[] = {25, 17};
13449     const int *foo = &x[0];
13450     ++foo;
13451   }
13452   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13453     typedef const int *iptr;
13454     iptr p = 0;
13455     ++p;
13456   }
13457   { /* AIX XL C 1.02.0.0 rejects this saying
13458        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13459     struct s { int j; const int *ap[3]; };
13460     struct s *b; b->j = 5;
13461   }
13462   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13463     const int foo = 10;
13464     if (!foo) return 0;
13465   }
13466   return !cs[0] && !zero.x;
13467 #endif
13468
13469   ;
13470   return 0;
13471 }
13472 _ACEOF
13473 if ac_fn_c_try_compile "$LINENO"; then :
13474   ac_cv_c_const=yes
13475 else
13476   ac_cv_c_const=no
13477 fi
13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479 fi
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13481 $as_echo "$ac_cv_c_const" >&6; }
13482 if test $ac_cv_c_const = no; then
13483
13484 $as_echo "#define const /**/" >>confdefs.h
13485
13486 fi
13487
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13489 $as_echo_n "checking for working volatile... " >&6; }
13490 if test "${ac_cv_c_volatile+set}" = set; then :
13491   $as_echo_n "(cached) " >&6
13492 else
13493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h.  */
13495
13496 int
13497 main ()
13498 {
13499
13500 volatile int x;
13501 int * volatile y = (int *) 0;
13502 return !x && !y;
13503   ;
13504   return 0;
13505 }
13506 _ACEOF
13507 if ac_fn_c_try_compile "$LINENO"; then :
13508   ac_cv_c_volatile=yes
13509 else
13510   ac_cv_c_volatile=no
13511 fi
13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13513 fi
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13515 $as_echo "$ac_cv_c_volatile" >&6; }
13516 if test $ac_cv_c_volatile = no; then
13517
13518 $as_echo "#define volatile /**/" >>confdefs.h
13519
13520 fi
13521
13522 for ac_prog in 'bison -y' byacc
13523 do
13524   # Extract the first word of "$ac_prog", so it can be a program name with args.
13525 set dummy $ac_prog; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if test "${ac_cv_prog_YACC+set}" = set; then :
13529   $as_echo_n "(cached) " >&6
13530 else
13531   if test -n "$YACC"; then
13532   ac_cv_prog_YACC="$YACC" # Let the user override the test.
13533 else
13534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13536 do
13537   IFS=$as_save_IFS
13538   test -z "$as_dir" && as_dir=.
13539     for ac_exec_ext in '' $ac_executable_extensions; do
13540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13541     ac_cv_prog_YACC="$ac_prog"
13542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543     break 2
13544   fi
13545 done
13546   done
13547 IFS=$as_save_IFS
13548
13549 fi
13550 fi
13551 YACC=$ac_cv_prog_YACC
13552 if test -n "$YACC"; then
13553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13554 $as_echo "$YACC" >&6; }
13555 else
13556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557 $as_echo "no" >&6; }
13558 fi
13559
13560
13561   test -n "$YACC" && break
13562 done
13563 test -n "$YACC" || YACC="yacc"
13564
13565 # Extract the first word of "flex", so it can be a program name with args.
13566 set dummy flex; ac_word=$2
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568 $as_echo_n "checking for $ac_word... " >&6; }
13569 if test "${ac_cv_path_FLEX+set}" = set; then :
13570   $as_echo_n "(cached) " >&6
13571 else
13572   case $FLEX in
13573   [\\/]* | ?:[\\/]*)
13574   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13575   ;;
13576   *)
13577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13579 do
13580   IFS=$as_save_IFS
13581   test -z "$as_dir" && as_dir=.
13582     for ac_exec_ext in '' $ac_executable_extensions; do
13583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13584     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13586     break 2
13587   fi
13588 done
13589   done
13590 IFS=$as_save_IFS
13591
13592   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13593   ;;
13594 esac
13595 fi
13596 FLEX=$ac_cv_path_FLEX
13597 if test -n "$FLEX"; then
13598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
13599 $as_echo "$FLEX" >&6; }
13600 else
13601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603 fi
13604
13605
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
13607 $as_echo_n "checking for mv... " >&6; }
13608 found=no
13609 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
13610     if test -f "$p"; then
13611         found=yes
13612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13613 $as_echo "$p" >&6; }
13614         cat >>confdefs.h <<EOF
13615 #define _PATH_MV "$p"
13616 EOF
13617
13618         break
13619     fi
13620 done
13621 if test X"$found" != X"yes"; then
13622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13623 $as_echo "not found" >&6; }
13624 fi
13625
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
13627 $as_echo_n "checking for bourne shell... " >&6; }
13628 found=no
13629 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
13630     if test -f "$p"; then
13631         found=yes
13632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13633 $as_echo "$p" >&6; }
13634         cat >>confdefs.h <<EOF
13635 #define _PATH_BSHELL "$p"
13636 EOF
13637
13638         break
13639     fi
13640 done
13641 if test X"$found" != X"yes"; then
13642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13643 $as_echo "not found" >&6; }
13644 fi
13645
13646 if test -z "$with_sendmail"; then
13647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
13648 $as_echo_n "checking for sendmail... " >&6; }
13649 found=no
13650 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
13651     if test -f "$p"; then
13652         found=yes
13653         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13654 $as_echo "$p" >&6; }
13655         cat >>confdefs.h <<EOF
13656 #define _PATH_SUDO_SENDMAIL "$p"
13657 EOF
13658
13659         break
13660     fi
13661 done
13662 if test X"$found" != X"yes"; then
13663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13664 $as_echo "not found" >&6; }
13665 fi
13666
13667 fi
13668 if test -z "$with_editor"; then
13669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
13670 $as_echo_n "checking for vi... " >&6; }
13671 found=no
13672 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
13673     if test -f "$editor"; then
13674         found=yes
13675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
13676 $as_echo "$editor" >&6; }
13677         cat >>confdefs.h <<EOF
13678 #define _PATH_VI "$editor"
13679 EOF
13680
13681         break
13682     fi
13683 done
13684 if test X"$found" != X"yes"; then
13685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13686 $as_echo "not found" >&6; }
13687 fi
13688
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
13691 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
13692 if test X"$with_logfac" = X""; then
13693     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h.  */
13695 #include <syslog.h>
13696 int
13697 main ()
13698 {
13699 int i = LOG_AUTHPRIV; (void)i;
13700   ;
13701   return 0;
13702 }
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705   logfac=authpriv
13706 fi
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 fi
13709
13710 cat >>confdefs.h <<_ACEOF
13711 #define LOGFAC "$logfac"
13712 _ACEOF
13713
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
13715 $as_echo "$logfac" >&6; }
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13717 $as_echo_n "checking for ANSI C header files... " >&6; }
13718 if test "${ac_cv_header_stdc+set}" = set; then :
13719   $as_echo_n "(cached) " >&6
13720 else
13721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h.  */
13723 #include <stdlib.h>
13724 #include <stdarg.h>
13725 #include <string.h>
13726 #include <float.h>
13727
13728 int
13729 main ()
13730 {
13731
13732   ;
13733   return 0;
13734 }
13735 _ACEOF
13736 if ac_fn_c_try_compile "$LINENO"; then :
13737   ac_cv_header_stdc=yes
13738 else
13739   ac_cv_header_stdc=no
13740 fi
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742
13743 if test $ac_cv_header_stdc = yes; then
13744   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h.  */
13747 #include <string.h>
13748
13749 _ACEOF
13750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13751   $EGREP "memchr" >/dev/null 2>&1; then :
13752
13753 else
13754   ac_cv_header_stdc=no
13755 fi
13756 rm -f conftest*
13757
13758 fi
13759
13760 if test $ac_cv_header_stdc = yes; then
13761   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h.  */
13764 #include <stdlib.h>
13765
13766 _ACEOF
13767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13768   $EGREP "free" >/dev/null 2>&1; then :
13769
13770 else
13771   ac_cv_header_stdc=no
13772 fi
13773 rm -f conftest*
13774
13775 fi
13776
13777 if test $ac_cv_header_stdc = yes; then
13778   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13779   if test "$cross_compiling" = yes; then :
13780   :
13781 else
13782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h.  */
13784 #include <ctype.h>
13785 #include <stdlib.h>
13786 #if ((' ' & 0x0FF) == 0x020)
13787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13789 #else
13790 # define ISLOWER(c) \
13791                    (('a' <= (c) && (c) <= 'i') \
13792                      || ('j' <= (c) && (c) <= 'r') \
13793                      || ('s' <= (c) && (c) <= 'z'))
13794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13795 #endif
13796
13797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13798 int
13799 main ()
13800 {
13801   int i;
13802   for (i = 0; i < 256; i++)
13803     if (XOR (islower (i), ISLOWER (i))
13804         || toupper (i) != TOUPPER (i))
13805       return 2;
13806   return 0;
13807 }
13808 _ACEOF
13809 if ac_fn_c_try_run "$LINENO"; then :
13810
13811 else
13812   ac_cv_header_stdc=no
13813 fi
13814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13815   conftest.$ac_objext conftest.beam conftest.$ac_ext
13816 fi
13817
13818 fi
13819 fi
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13821 $as_echo "$ac_cv_header_stdc" >&6; }
13822 if test $ac_cv_header_stdc = yes; then
13823
13824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13825
13826 fi
13827
13828 ac_header_dirent=no
13829 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13830   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13832 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13834   $as_echo_n "(cached) " >&6
13835 else
13836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h.  */
13838 #include <sys/types.h>
13839 #include <$ac_hdr>
13840
13841 int
13842 main ()
13843 {
13844 if ((DIR *) 0)
13845 return 0;
13846   ;
13847   return 0;
13848 }
13849 _ACEOF
13850 if ac_fn_c_try_compile "$LINENO"; then :
13851   eval "$as_ac_Header=yes"
13852 else
13853   eval "$as_ac_Header=no"
13854 fi
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 fi
13857 eval ac_res=\$$as_ac_Header
13858                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13859 $as_echo "$ac_res" >&6; }
13860 eval as_val=\$$as_ac_Header
13861    if test "x$as_val" = x""yes; then :
13862   cat >>confdefs.h <<_ACEOF
13863 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13864 _ACEOF
13865
13866 ac_header_dirent=$ac_hdr; break
13867 fi
13868
13869 done
13870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13871 if test $ac_header_dirent = dirent.h; then
13872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13873 $as_echo_n "checking for library containing opendir... " >&6; }
13874 if test "${ac_cv_search_opendir+set}" = set; then :
13875   $as_echo_n "(cached) " >&6
13876 else
13877   ac_func_search_save_LIBS=$LIBS
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h.  */
13880
13881 /* Override any GCC internal prototype to avoid an error.
13882    Use char because int might match the return type of a GCC
13883    builtin and then its argument prototype would still apply.  */
13884 #ifdef __cplusplus
13885 extern "C"
13886 #endif
13887 char opendir ();
13888 int
13889 main ()
13890 {
13891 return opendir ();
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 for ac_lib in '' dir; do
13897   if test -z "$ac_lib"; then
13898     ac_res="none required"
13899   else
13900     ac_res=-l$ac_lib
13901     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13902   fi
13903   if ac_fn_c_try_link "$LINENO"; then :
13904   ac_cv_search_opendir=$ac_res
13905 fi
13906 rm -f core conftest.err conftest.$ac_objext \
13907     conftest$ac_exeext
13908   if test "${ac_cv_search_opendir+set}" = set; then :
13909   break
13910 fi
13911 done
13912 if test "${ac_cv_search_opendir+set}" = set; then :
13913
13914 else
13915   ac_cv_search_opendir=no
13916 fi
13917 rm conftest.$ac_ext
13918 LIBS=$ac_func_search_save_LIBS
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13921 $as_echo "$ac_cv_search_opendir" >&6; }
13922 ac_res=$ac_cv_search_opendir
13923 if test "$ac_res" != no; then :
13924   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13925
13926 fi
13927
13928 else
13929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13930 $as_echo_n "checking for library containing opendir... " >&6; }
13931 if test "${ac_cv_search_opendir+set}" = set; then :
13932   $as_echo_n "(cached) " >&6
13933 else
13934   ac_func_search_save_LIBS=$LIBS
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h.  */
13937
13938 /* Override any GCC internal prototype to avoid an error.
13939    Use char because int might match the return type of a GCC
13940    builtin and then its argument prototype would still apply.  */
13941 #ifdef __cplusplus
13942 extern "C"
13943 #endif
13944 char opendir ();
13945 int
13946 main ()
13947 {
13948 return opendir ();
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953 for ac_lib in '' x; do
13954   if test -z "$ac_lib"; then
13955     ac_res="none required"
13956   else
13957     ac_res=-l$ac_lib
13958     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13959   fi
13960   if ac_fn_c_try_link "$LINENO"; then :
13961   ac_cv_search_opendir=$ac_res
13962 fi
13963 rm -f core conftest.err conftest.$ac_objext \
13964     conftest$ac_exeext
13965   if test "${ac_cv_search_opendir+set}" = set; then :
13966   break
13967 fi
13968 done
13969 if test "${ac_cv_search_opendir+set}" = set; then :
13970
13971 else
13972   ac_cv_search_opendir=no
13973 fi
13974 rm conftest.$ac_ext
13975 LIBS=$ac_func_search_save_LIBS
13976 fi
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13978 $as_echo "$ac_cv_search_opendir" >&6; }
13979 ac_res=$ac_cv_search_opendir
13980 if test "$ac_res" != no; then :
13981   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13982
13983 fi
13984
13985 fi
13986
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13988 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13989 if test "${ac_cv_header_time+set}" = set; then :
13990   $as_echo_n "(cached) " >&6
13991 else
13992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h.  */
13994 #include <sys/types.h>
13995 #include <sys/time.h>
13996 #include <time.h>
13997
13998 int
13999 main ()
14000 {
14001 if ((struct tm *) 0)
14002 return 0;
14003   ;
14004   return 0;
14005 }
14006 _ACEOF
14007 if ac_fn_c_try_compile "$LINENO"; then :
14008   ac_cv_header_time=yes
14009 else
14010   ac_cv_header_time=no
14011 fi
14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14013 fi
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14015 $as_echo "$ac_cv_header_time" >&6; }
14016 if test $ac_cv_header_time = yes; then
14017
14018 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14019
14020 fi
14021
14022 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h
14023 do :
14024   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14025 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14026 eval as_val=\$$as_ac_Header
14027    if test "x$as_val" = x""yes; then :
14028   cat >>confdefs.h <<_ACEOF
14029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14030 _ACEOF
14031
14032 fi
14033
14034 done
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
14037 $as_echo_n "checking POSIX termios... " >&6; }
14038 if test "${ac_cv_sys_posix_termios+set}" = set; then :
14039   $as_echo_n "(cached) " >&6
14040 else
14041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h.  */
14043 #include <sys/types.h>
14044 #include <unistd.h>
14045 #include <termios.h>
14046
14047 int
14048 main ()
14049 {
14050 /* SunOS 4.0.3 has termios.h but not the library calls.  */
14051    tcgetattr(0, 0);
14052   ;
14053   return 0;
14054 }
14055 _ACEOF
14056 if ac_fn_c_try_link "$LINENO"; then :
14057   ac_cv_sys_posix_termios=yes
14058 else
14059   ac_cv_sys_posix_termios=no
14060 fi
14061 rm -f core conftest.err conftest.$ac_objext \
14062     conftest$ac_exeext conftest.$ac_ext
14063 fi
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
14065 $as_echo "$ac_cv_sys_posix_termios" >&6; }
14066
14067 if test "$ac_cv_sys_posix_termios" = "yes"; then
14068     $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
14069
14070 else
14071     for ac_header in termio.h
14072 do :
14073   ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
14074 if test "x$ac_cv_header_termio_h" = x""yes; then :
14075   cat >>confdefs.h <<_ACEOF
14076 #define HAVE_TERMIO_H 1
14077 _ACEOF
14078
14079 fi
14080
14081 done
14082
14083 fi
14084
14085 maildir=no
14086 if test X"$ac_cv_header_paths_h" = X"yes"; then
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h.  */
14089 $ac_includes_default
14090 #include <paths.h>
14091 int main() {char *p = _PATH_MAILDIR;}
14092 int
14093 main ()
14094 {
14095
14096   ;
14097   return 0;
14098 }
14099 _ACEOF
14100 if ac_fn_c_try_compile "$LINENO"; then :
14101   maildir=yes
14102 fi
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104 fi
14105 if test $maildir = no; then
14106     # Solaris has maillock.h which defines MAILDIR
14107     for ac_header in maillock.h
14108 do :
14109   ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14110 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14111   cat >>confdefs.h <<_ACEOF
14112 #define HAVE_MAILLOCK_H 1
14113 _ACEOF
14114
14115         cat >>confdefs.h <<\EOF
14116 #define _PATH_MAILDIR MAILDIR
14117 EOF
14118
14119         maildir=yes
14120
14121 fi
14122
14123 done
14124
14125     if test $maildir = no; then
14126         for d in /var/mail /var/spool/mail /usr/spool/mail; do
14127             if test -d "$d"; then
14128                 maildir=yes
14129                 cat >>confdefs.h <<EOF
14130 #define _PATH_MAILDIR "$d"
14131 EOF
14132
14133                 break
14134             fi
14135         done
14136         if test $maildir = no; then
14137             # unable to find mail dir, hope for the best
14138             cat >>confdefs.h <<EOF
14139 #define _PATH_MAILDIR "/var/mail"
14140 EOF
14141
14142         fi
14143     fi
14144 fi
14145
14146 if test ${with_logincap-'no'} != "no"; then
14147     for ac_header in login_cap.h
14148 do :
14149   ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
14150 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
14151   cat >>confdefs.h <<_ACEOF
14152 #define HAVE_LOGIN_CAP_H 1
14153 _ACEOF
14154  LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
14155         case "$OS" in
14156             freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
14157             ;;
14158         esac
14159
14160 fi
14161
14162 done
14163
14164 fi
14165 if test ${with_project-'no'} != "no"; then
14166     ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
14167 if test "x$ac_cv_header_project_h" = x""yes; then :
14168   $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
14169
14170         SUDO_LIBS="${SUDO_LIBS} -lproject"
14171 else
14172   -
14173 fi
14174
14175
14176 fi
14177 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14178 if test "x$ac_cv_type_mode_t" = x""yes; then :
14179
14180 else
14181
14182 cat >>confdefs.h <<_ACEOF
14183 #define mode_t int
14184 _ACEOF
14185
14186 fi
14187
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14189 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14190 if test "${ac_cv_type_uid_t+set}" = set; then :
14191   $as_echo_n "(cached) " >&6
14192 else
14193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h.  */
14195 #include <sys/types.h>
14196
14197 _ACEOF
14198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14199   $EGREP "uid_t" >/dev/null 2>&1; then :
14200   ac_cv_type_uid_t=yes
14201 else
14202   ac_cv_type_uid_t=no
14203 fi
14204 rm -f conftest*
14205
14206 fi
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14208 $as_echo "$ac_cv_type_uid_t" >&6; }
14209 if test $ac_cv_type_uid_t = no; then
14210
14211 $as_echo "#define uid_t int" >>confdefs.h
14212
14213
14214 $as_echo "#define gid_t int" >>confdefs.h
14215
14216 fi
14217
14218 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
14219 if test "x$ac_cv_type___signed_char" = x""yes; then :
14220
14221 else
14222   ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
14223 if test "x$ac_cv_type_signed_char" = x""yes; then :
14224   $as_echo "#define __signed signed" >>confdefs.h
14225
14226 else
14227   $as_echo "#define __signed /**/" >>confdefs.h
14228
14229 fi
14230
14231 fi
14232
14233 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
14234 #include <signal.h>
14235 "
14236 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
14237
14238 else
14239   $as_echo "#define sig_atomic_t int" >>confdefs.h
14240
14241 fi
14242
14243 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
14244 #include <signal.h>
14245 "
14246 if test "x$ac_cv_type_sigaction_t" = x""yes; then :
14247
14248 cat >>confdefs.h <<_ACEOF
14249 #define HAVE_SIGACTION_T 1
14250 _ACEOF
14251
14252 $as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
14253
14254 fi
14255
14256 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
14257 #if TIME_WITH_SYS_TIME
14258 # include <sys/time.h>
14259 #endif
14260 #include <time.h>
14261 "
14262 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
14263   $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
14264
14265 fi
14266
14267 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
14268 #include <netinet/in.h>
14269 "
14270 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then :
14271
14272 cat >>confdefs.h <<_ACEOF
14273 #define HAVE_STRUCT_IN6_ADDR 1
14274 _ACEOF
14275
14276 $as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
14277
14278 fi
14279
14280
14281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14282 $as_echo_n "checking for long long int... " >&6; }
14283 if test "${ac_cv_type_long_long_int+set}" = set; then :
14284   $as_echo_n "(cached) " >&6
14285 else
14286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h.  */
14288
14289   /* For now, do not test the preprocessor; as of 2007 there are too many
14290          implementations with broken preprocessors.  Perhaps this can
14291          be revisited in 2012.  In the meantime, code should not expect
14292          #if to work with literals wider than 32 bits.  */
14293       /* Test literals.  */
14294       long long int ll = 9223372036854775807ll;
14295       long long int nll = -9223372036854775807LL;
14296       unsigned long long int ull = 18446744073709551615ULL;
14297       /* Test constant expressions.   */
14298       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14299                      ? 1 : -1)];
14300       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14301                      ? 1 : -1)];
14302       int i = 63;
14303 int
14304 main ()
14305 {
14306 /* Test availability of runtime routines for shift and division.  */
14307       long long int llmax = 9223372036854775807ll;
14308       unsigned long long int ullmax = 18446744073709551615ull;
14309       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14310               | (llmax / ll) | (llmax % ll)
14311               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14312               | (ullmax / ull) | (ullmax % ull));
14313   ;
14314   return 0;
14315 }
14316
14317 _ACEOF
14318 if ac_fn_c_try_link "$LINENO"; then :
14319                         if test "$cross_compiling" = yes; then :
14320   ac_cv_type_long_long_int=yes
14321 else
14322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h.  */
14324 #include <limits.h>
14325                #ifndef LLONG_MAX
14326                # define HALF \
14327                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14328                # define LLONG_MAX (HALF - 1 + HALF)
14329                #endif
14330 int
14331 main ()
14332 {
14333 long long int n = 1;
14334                int i;
14335                for (i = 0; ; i++)
14336                  {
14337                    long long int m = n << i;
14338                    if (m >> i != n)
14339                      return 1;
14340                    if (LLONG_MAX / 2 < m)
14341                      break;
14342                  }
14343                return 0;
14344   ;
14345   return 0;
14346 }
14347 _ACEOF
14348 if ac_fn_c_try_run "$LINENO"; then :
14349   ac_cv_type_long_long_int=yes
14350 else
14351   ac_cv_type_long_long_int=no
14352 fi
14353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14354   conftest.$ac_objext conftest.beam conftest.$ac_ext
14355 fi
14356
14357 else
14358   ac_cv_type_long_long_int=no
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext \
14361     conftest$ac_exeext conftest.$ac_ext
14362 fi
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14364 $as_echo "$ac_cv_type_long_long_int" >&6; }
14365   if test $ac_cv_type_long_long_int = yes; then
14366
14367 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14368
14369   fi
14370
14371 # The cast to long int works around a bug in the HP C Compiler
14372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14374 # This bug is HP SR number 8606223364.
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
14376 $as_echo_n "checking size of long int... " >&6; }
14377 if test "${ac_cv_sizeof_long_int+set}" = set; then :
14378   $as_echo_n "(cached) " >&6
14379 else
14380   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
14381
14382 else
14383   if test "$ac_cv_type_long_int" = yes; then
14384      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14386 { as_fn_set_status 77
14387 as_fn_error "cannot compute sizeof (long int)
14388 See \`config.log' for more details." "$LINENO" 5; }; }
14389    else
14390      ac_cv_sizeof_long_int=0
14391    fi
14392 fi
14393
14394 fi
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
14396 $as_echo "$ac_cv_sizeof_long_int" >&6; }
14397
14398
14399
14400 cat >>confdefs.h <<_ACEOF
14401 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14402 _ACEOF
14403
14404
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14406 $as_echo_n "checking for size_t... " >&6; }
14407 if test "${sudo_cv_type_size_t+set}" = set; then :
14408   $as_echo_n "(cached) " >&6
14409 else
14410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h.  */
14412 #include <sys/types.h>
14413 #include <stdio.h>
14414 #if STDC_HEADERS
14415 #include <stdlib.h>
14416 #endif
14417 #if HAVE_UNISTD_H
14418 #include <unistd.h>
14419 #endif
14420 _ACEOF
14421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14422   $EGREP "size_t" >/dev/null 2>&1; then :
14423   sudo_cv_type_size_t=yes
14424 else
14425   sudo_cv_type_size_t=no
14426 fi
14427 rm -f conftest*
14428
14429 fi
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
14431 $as_echo "$sudo_cv_type_size_t" >&6; }
14432 if test $sudo_cv_type_size_t = no; then
14433
14434 $as_echo "#define size_t int" >>confdefs.h
14435
14436 fi
14437
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14439 $as_echo_n "checking for ssize_t... " >&6; }
14440 if test "${sudo_cv_type_ssize_t+set}" = set; then :
14441   $as_echo_n "(cached) " >&6
14442 else
14443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h.  */
14445 #include <sys/types.h>
14446 #include <stdio.h>
14447 #if STDC_HEADERS
14448 #include <stdlib.h>
14449 #endif
14450 #if HAVE_UNISTD_H
14451 #include <unistd.h>
14452 #endif
14453 _ACEOF
14454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14455   $EGREP "ssize_t" >/dev/null 2>&1; then :
14456   sudo_cv_type_ssize_t=yes
14457 else
14458   sudo_cv_type_ssize_t=no
14459 fi
14460 rm -f conftest*
14461
14462 fi
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
14464 $as_echo "$sudo_cv_type_ssize_t" >&6; }
14465 if test $sudo_cv_type_ssize_t = no; then
14466
14467 $as_echo "#define ssize_t int" >>confdefs.h
14468
14469 fi
14470
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
14472 $as_echo_n "checking for dev_t... " >&6; }
14473 if test "${sudo_cv_type_dev_t+set}" = set; then :
14474   $as_echo_n "(cached) " >&6
14475 else
14476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h.  */
14478 #include <sys/types.h>
14479 #include <stdio.h>
14480 #if STDC_HEADERS
14481 #include <stdlib.h>
14482 #endif
14483 #if HAVE_UNISTD_H
14484 #include <unistd.h>
14485 #endif
14486 _ACEOF
14487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14488   $EGREP "dev_t" >/dev/null 2>&1; then :
14489   sudo_cv_type_dev_t=yes
14490 else
14491   sudo_cv_type_dev_t=no
14492 fi
14493 rm -f conftest*
14494
14495 fi
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
14497 $as_echo "$sudo_cv_type_dev_t" >&6; }
14498 if test $sudo_cv_type_dev_t = no; then
14499
14500 $as_echo "#define dev_t int" >>confdefs.h
14501
14502 fi
14503
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
14505 $as_echo_n "checking for ino_t... " >&6; }
14506 if test "${sudo_cv_type_ino_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 #include <stdio.h>
14513 #if STDC_HEADERS
14514 #include <stdlib.h>
14515 #endif
14516 #if HAVE_UNISTD_H
14517 #include <unistd.h>
14518 #endif
14519 _ACEOF
14520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14521   $EGREP "ino_t" >/dev/null 2>&1; then :
14522   sudo_cv_type_ino_t=yes
14523 else
14524   sudo_cv_type_ino_t=no
14525 fi
14526 rm -f conftest*
14527
14528 fi
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
14530 $as_echo "$sudo_cv_type_ino_t" >&6; }
14531 if test $sudo_cv_type_ino_t = no; then
14532
14533 $as_echo "#define ino_t unsigned int" >>confdefs.h
14534
14535 fi
14536
14537
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
14539 $as_echo_n "checking max length of uid_t... " >&6; }
14540 if test "${sudo_cv_uid_t_len+set}" = set; then :
14541   $as_echo_n "(cached) " >&6
14542 else
14543   rm -f conftestdata
14544 if test "$cross_compiling" = yes; then :
14545   sudo_cv_uid_t_len=10
14546 else
14547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h.  */
14549 #include <stdio.h>
14550 #include <pwd.h>
14551 #include <limits.h>
14552 #include <sys/types.h>
14553 #include <sys/param.h>
14554 main() {
14555   FILE *f;
14556   char b[1024];
14557   uid_t u = (uid_t) -1;
14558
14559   if ((f = fopen("conftestdata", "w")) == NULL)
14560     exit(1);
14561
14562   (void) sprintf(b, "%lu", (unsigned long) u);
14563   (void) fprintf(f, "%d\n", strlen(b));
14564   (void) fclose(f);
14565   exit(0);
14566 }
14567 _ACEOF
14568 if ac_fn_c_try_run "$LINENO"; then :
14569   sudo_cv_uid_t_len=`cat conftestdata`
14570 else
14571   sudo_cv_uid_t_len=10
14572 fi
14573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14574   conftest.$ac_objext conftest.beam conftest.$ac_ext
14575 fi
14576
14577
14578 fi
14579
14580 rm -f conftestdata
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
14582 $as_echo "$sudo_cv_uid_t_len" >&6; }
14583
14584 cat >>confdefs.h <<_ACEOF
14585 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14586 _ACEOF
14587
14588
14589
14590     ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
14591           #include <sys/socket.h>
14592
14593 "
14594 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
14595
14596 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
14597
14598 fi
14599
14600
14601 case "$DEFS" in
14602     *"RETSIGTYPE"*)     ;;
14603     *)                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14604 $as_echo_n "checking return type of signal handlers... " >&6; }
14605 if test "${ac_cv_type_signal+set}" = set; then :
14606   $as_echo_n "(cached) " >&6
14607 else
14608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h.  */
14610 #include <sys/types.h>
14611 #include <signal.h>
14612
14613 int
14614 main ()
14615 {
14616 return *(signal (0, 0)) (0) == 1;
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 if ac_fn_c_try_compile "$LINENO"; then :
14622   ac_cv_type_signal=int
14623 else
14624   ac_cv_type_signal=void
14625 fi
14626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14629 $as_echo "$ac_cv_type_signal" >&6; }
14630
14631 cat >>confdefs.h <<_ACEOF
14632 #define RETSIGTYPE $ac_cv_type_signal
14633 _ACEOF
14634
14635 ;;
14636 esac
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
14638 $as_echo_n "checking type of array argument to getgroups... " >&6; }
14639 if test "${ac_cv_type_getgroups+set}" = set; then :
14640   $as_echo_n "(cached) " >&6
14641 else
14642   if test "$cross_compiling" = yes; then :
14643   ac_cv_type_getgroups=cross
14644 else
14645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h.  */
14647 /* Thanks to Mike Rendell for this test.  */
14648 $ac_includes_default
14649 #define NGID 256
14650 #undef MAX
14651 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14652
14653 int
14654 main ()
14655 {
14656   gid_t gidset[NGID];
14657   int i, n;
14658   union { gid_t gval; long int lval; }  val;
14659
14660   val.lval = -1;
14661   for (i = 0; i < NGID; i++)
14662     gidset[i] = val.gval;
14663   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14664                  gidset);
14665   /* Exit non-zero if getgroups seems to require an array of ints.  This
14666      happens when gid_t is short int but getgroups modifies an array
14667      of ints.  */
14668   return n > 0 && gidset[n] != val.gval;
14669 }
14670 _ACEOF
14671 if ac_fn_c_try_run "$LINENO"; then :
14672   ac_cv_type_getgroups=gid_t
14673 else
14674   ac_cv_type_getgroups=int
14675 fi
14676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14677   conftest.$ac_objext conftest.beam conftest.$ac_ext
14678 fi
14679
14680 if test $ac_cv_type_getgroups = cross; then
14681         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h.  */
14683 #include <unistd.h>
14684
14685 _ACEOF
14686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14687   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
14688   ac_cv_type_getgroups=gid_t
14689 else
14690   ac_cv_type_getgroups=int
14691 fi
14692 rm -f conftest*
14693
14694 fi
14695 fi
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
14697 $as_echo "$ac_cv_type_getgroups" >&6; }
14698
14699 cat >>confdefs.h <<_ACEOF
14700 #define GETGROUPS_T $ac_cv_type_getgroups
14701 _ACEOF
14702
14703
14704 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14705 if test "x$ac_cv_type_size_t" = x""yes; then :
14706
14707 else
14708
14709 cat >>confdefs.h <<_ACEOF
14710 #define size_t unsigned int
14711 _ACEOF
14712
14713 fi
14714
14715 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
14716 if test "x$ac_cv_func_getgroups" = x""yes; then :
14717
14718 fi
14719
14720
14721 # If we don't yet have getgroups, see if it's in -lbsd.
14722 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
14723 ac_save_LIBS=$LIBS
14724 if test $ac_cv_func_getgroups = no; then
14725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
14726 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
14727 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
14728   $as_echo_n "(cached) " >&6
14729 else
14730   ac_check_lib_save_LIBS=$LIBS
14731 LIBS="-lbsd  $LIBS"
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h.  */
14734
14735 /* Override any GCC internal prototype to avoid an error.
14736    Use char because int might match the return type of a GCC
14737    builtin and then its argument prototype would still apply.  */
14738 #ifdef __cplusplus
14739 extern "C"
14740 #endif
14741 char getgroups ();
14742 int
14743 main ()
14744 {
14745 return getgroups ();
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 if ac_fn_c_try_link "$LINENO"; then :
14751   ac_cv_lib_bsd_getgroups=yes
14752 else
14753   ac_cv_lib_bsd_getgroups=no
14754 fi
14755 rm -f core conftest.err conftest.$ac_objext \
14756     conftest$ac_exeext conftest.$ac_ext
14757 LIBS=$ac_check_lib_save_LIBS
14758 fi
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
14760 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
14761 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
14762   GETGROUPS_LIB=-lbsd
14763 fi
14764
14765 fi
14766
14767 # Run the program to test the functionality of the system-supplied
14768 # getgroups function only if there is such a function.
14769 if test $ac_cv_func_getgroups = yes; then
14770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
14771 $as_echo_n "checking for working getgroups... " >&6; }
14772 if test "${ac_cv_func_getgroups_works+set}" = set; then :
14773   $as_echo_n "(cached) " >&6
14774 else
14775   if test "$cross_compiling" = yes; then :
14776   ac_cv_func_getgroups_works=no
14777 else
14778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h.  */
14780 $ac_includes_default
14781 int
14782 main ()
14783 {
14784 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
14785        return getgroups (0, 0) == -1;
14786   ;
14787   return 0;
14788 }
14789 _ACEOF
14790 if ac_fn_c_try_run "$LINENO"; then :
14791   ac_cv_func_getgroups_works=yes
14792 else
14793   ac_cv_func_getgroups_works=no
14794 fi
14795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14796   conftest.$ac_objext conftest.beam conftest.$ac_ext
14797 fi
14798
14799
14800 fi
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
14802 $as_echo "$ac_cv_func_getgroups_works" >&6; }
14803 else
14804   ac_cv_func_getgroups_works=no
14805 fi
14806 if test $ac_cv_func_getgroups_works = yes; then
14807
14808 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
14809
14810 fi
14811 LIBS=$ac_save_LIBS
14812
14813 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
14814                strftime setrlimit initgroups getgroups fstat gettimeofday \
14815                regcomp setlocale getaddrinfo setenv vhangup \
14816                mbr_check_membership setrlimit64
14817 do :
14818   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14820 eval as_val=\$$as_ac_var
14821    if test "x$as_val" = x""yes; then :
14822   cat >>confdefs.h <<_ACEOF
14823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14824 _ACEOF
14825
14826 fi
14827 done
14828
14829 for ac_func in getline
14830 do :
14831   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14832 if test "x$ac_cv_func_getline" = x""yes; then :
14833   cat >>confdefs.h <<_ACEOF
14834 #define HAVE_GETLINE 1
14835 _ACEOF
14836
14837 else
14838
14839     case " $LIBOBJS " in
14840   *" getline.$ac_objext "* ) ;;
14841   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14842  ;;
14843 esac
14844
14845     for ac_func in fgetln
14846 do :
14847   ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
14848 if test "x$ac_cv_func_fgetln" = x""yes; then :
14849   cat >>confdefs.h <<_ACEOF
14850 #define HAVE_FGETLN 1
14851 _ACEOF
14852
14853 fi
14854 done
14855
14856
14857 fi
14858 done
14859
14860 for ac_func in setsid
14861 do :
14862   ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
14863 if test "x$ac_cv_func_setsid" = x""yes; then :
14864   cat >>confdefs.h <<_ACEOF
14865 #define HAVE_SETSID 1
14866 _ACEOF
14867
14868 else
14869
14870     case " $LIBOBJS " in
14871   *" setsid.$ac_objext "* ) ;;
14872   *) LIBOBJS="$LIBOBJS setsid.$ac_objext"
14873  ;;
14874 esac
14875
14876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14877 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14878 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14879   $as_echo_n "(cached) " >&6
14880 else
14881   if test "$cross_compiling" = yes; then :
14882   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
14883 else
14884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h.  */
14886 $ac_includes_default
14887 int
14888 main ()
14889 {
14890 /* If this system has a BSD-style setpgrp which takes arguments,
14891   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14892   exit successfully. */
14893   return setpgrp (1,1) != -1;
14894   ;
14895   return 0;
14896 }
14897 _ACEOF
14898 if ac_fn_c_try_run "$LINENO"; then :
14899   ac_cv_func_setpgrp_void=no
14900 else
14901   ac_cv_func_setpgrp_void=yes
14902 fi
14903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14904   conftest.$ac_objext conftest.beam conftest.$ac_ext
14905 fi
14906
14907 fi
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14909 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14910 if test $ac_cv_func_setpgrp_void = yes; then
14911
14912 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14913
14914 fi
14915
14916
14917 fi
14918 done
14919
14920
14921 for ac_func in sysctl getutid getutxid
14922 do :
14923   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14925 eval as_val=\$$as_ac_var
14926    if test "x$as_val" = x""yes; then :
14927   cat >>confdefs.h <<_ACEOF
14928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14929 _ACEOF
14930  break
14931 fi
14932 done
14933
14934
14935 for ac_func in openpty
14936 do :
14937   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
14938 if test "x$ac_cv_func_openpty" = x""yes; then :
14939   cat >>confdefs.h <<_ACEOF
14940 #define HAVE_OPENPTY 1
14941 _ACEOF
14942  for ac_header in util.h pty.h
14943 do :
14944   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14946 eval as_val=\$$as_ac_Header
14947    if test "x$as_val" = x""yes; then :
14948   cat >>confdefs.h <<_ACEOF
14949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14950 _ACEOF
14951  break
14952 fi
14953
14954 done
14955
14956 else
14957
14958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
14959 $as_echo_n "checking for openpty in -lutil... " >&6; }
14960 if test "${ac_cv_lib_util_openpty+set}" = set; then :
14961   $as_echo_n "(cached) " >&6
14962 else
14963   ac_check_lib_save_LIBS=$LIBS
14964 LIBS="-lutil  $LIBS"
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h.  */
14967
14968 /* Override any GCC internal prototype to avoid an error.
14969    Use char because int might match the return type of a GCC
14970    builtin and then its argument prototype would still apply.  */
14971 #ifdef __cplusplus
14972 extern "C"
14973 #endif
14974 char openpty ();
14975 int
14976 main ()
14977 {
14978 return openpty ();
14979   ;
14980   return 0;
14981 }
14982 _ACEOF
14983 if ac_fn_c_try_link "$LINENO"; then :
14984   ac_cv_lib_util_openpty=yes
14985 else
14986   ac_cv_lib_util_openpty=no
14987 fi
14988 rm -f core conftest.err conftest.$ac_objext \
14989     conftest$ac_exeext conftest.$ac_ext
14990 LIBS=$ac_check_lib_save_LIBS
14991 fi
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
14993 $as_echo "$ac_cv_lib_util_openpty" >&6; }
14994 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
14995
14996         for ac_header in util.h pty.h
14997 do :
14998   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14999 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15000 eval as_val=\$$as_ac_Header
15001    if test "x$as_val" = x""yes; then :
15002   cat >>confdefs.h <<_ACEOF
15003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15004 _ACEOF
15005  break
15006 fi
15007
15008 done
15009
15010         SUDO_LIBS="${SUDO_LIBS} -lutil"
15011         $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
15012
15013
15014 else
15015
15016         for ac_func in _getpty
15017 do :
15018   ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
15019 if test "x$ac_cv_func__getpty" = x""yes; then :
15020   cat >>confdefs.h <<_ACEOF
15021 #define HAVE__GETPTY 1
15022 _ACEOF
15023
15024 else
15025
15026             for ac_func in grantpt
15027 do :
15028   ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15029 if test "x$ac_cv_func_grantpt" = x""yes; then :
15030   cat >>confdefs.h <<_ACEOF
15031 #define HAVE_GRANTPT 1
15032 _ACEOF
15033
15034                 for ac_func in posix_openpt
15035 do :
15036   ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
15037 if test "x$ac_cv_func_posix_openpt" = x""yes; then :
15038   cat >>confdefs.h <<_ACEOF
15039 #define HAVE_POSIX_OPENPT 1
15040 _ACEOF
15041
15042 fi
15043 done
15044
15045
15046 else
15047
15048                 for ac_func in revoke
15049 do :
15050   ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
15051 if test "x$ac_cv_func_revoke" = x""yes; then :
15052   cat >>confdefs.h <<_ACEOF
15053 #define HAVE_REVOKE 1
15054 _ACEOF
15055
15056 fi
15057 done
15058
15059
15060 fi
15061 done
15062
15063
15064 fi
15065 done
15066
15067
15068 fi
15069
15070
15071 fi
15072 done
15073
15074 for ac_func in unsetenv
15075 do :
15076   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15077 if test "x$ac_cv_func_unsetenv" = x""yes; then :
15078   cat >>confdefs.h <<_ACEOF
15079 #define HAVE_UNSETENV 1
15080 _ACEOF
15081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
15082 $as_echo_n "checking whether unsetenv returns void... " >&6; }
15083 if test "${sudo_cv_func_unsetenv_void+set}" = set; then :
15084   $as_echo_n "(cached) " >&6
15085 else
15086   if test "$cross_compiling" = yes; then :
15087   sudo_cv_func_unsetenv_void=no
15088 else
15089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h.  */
15091 $ac_includes_default
15092         int unsetenv();
15093
15094 int
15095 main ()
15096 {
15097
15098         return unsetenv("FOO") != 0;
15099
15100   ;
15101   return 0;
15102 }
15103
15104 _ACEOF
15105 if ac_fn_c_try_run "$LINENO"; then :
15106   sudo_cv_func_unsetenv_void=no
15107 else
15108   sudo_cv_func_unsetenv_void=yes
15109 fi
15110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15111   conftest.$ac_objext conftest.beam conftest.$ac_ext
15112 fi
15113
15114 fi
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
15116 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
15117     if test $sudo_cv_func_unsetenv_void = yes; then
15118
15119 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
15120
15121     fi
15122
15123 fi
15124 done
15125
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv has a const argument" >&5
15127 $as_echo_n "checking whether putenv has a const argument... " >&6; }
15128 if test "${sudo_cv_func_putenv_const+set}" = set; then :
15129   $as_echo_n "(cached) " >&6
15130 else
15131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h.  */
15133 $ac_includes_default
15134 int putenv(const char *string) {return 0;}
15135 int
15136 main ()
15137 {
15138
15139   ;
15140   return 0;
15141 }
15142 _ACEOF
15143 if ac_fn_c_try_compile "$LINENO"; then :
15144   sudo_cv_func_putenv_const=yes
15145 else
15146   sudo_cv_func_putenv_const=no
15147 fi
15148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15149
15150 fi
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
15152 $as_echo "$sudo_cv_func_putenv_const" >&6; }
15153   if test $sudo_cv_func_putenv_const = yes; then
15154
15155 $as_echo "#define PUTENV_CONST 1" >>confdefs.h
15156
15157   fi
15158
15159 if test -z "$SKIP_SETRESUID"; then
15160     for ac_func in setresuid
15161 do :
15162   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
15163 if test "x$ac_cv_func_setresuid" = x""yes; then :
15164   cat >>confdefs.h <<_ACEOF
15165 #define HAVE_SETRESUID 1
15166 _ACEOF
15167  SKIP_SETREUID=yes
15168 fi
15169 done
15170
15171 fi
15172 if test -z "$SKIP_SETREUID"; then
15173     for ac_func in setreuid
15174 do :
15175   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
15176 if test "x$ac_cv_func_setreuid" = x""yes; then :
15177   cat >>confdefs.h <<_ACEOF
15178 #define HAVE_SETREUID 1
15179 _ACEOF
15180  SKIP_SETEUID=yes
15181 fi
15182 done
15183
15184 fi
15185 if test -z "$SKIP_SETEUID"; then
15186     for ac_func in seteuid
15187 do :
15188   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
15189 if test "x$ac_cv_func_seteuid" = x""yes; then :
15190   cat >>confdefs.h <<_ACEOF
15191 #define HAVE_SETEUID 1
15192 _ACEOF
15193
15194 fi
15195 done
15196
15197 fi
15198 if test X"$with_interfaces" != X"no"; then
15199     for ac_func in getifaddrs
15200 do :
15201   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
15202 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
15203   cat >>confdefs.h <<_ACEOF
15204 #define HAVE_GETIFADDRS 1
15205 _ACEOF
15206  for ac_func in freeifaddrs
15207 do :
15208   ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
15209 if test "x$ac_cv_func_freeifaddrs" = x""yes; then :
15210   cat >>confdefs.h <<_ACEOF
15211 #define HAVE_FREEIFADDRS 1
15212 _ACEOF
15213
15214 fi
15215 done
15216
15217 fi
15218 done
15219
15220 fi
15221 if test -z "$BROKEN_GETCWD"; then
15222     for ac_func in getcwd
15223 do :
15224   ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15225 if test "x$ac_cv_func_getcwd" = x""yes; then :
15226   cat >>confdefs.h <<_ACEOF
15227 #define HAVE_GETCWD 1
15228 _ACEOF
15229
15230 else
15231   case " $LIBOBJS " in
15232   *" $ac_func.$ac_objext "* ) ;;
15233   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15234  ;;
15235 esac
15236
15237 fi
15238 done
15239
15240
15241 fi
15242 for ac_func in glob
15243 do :
15244   ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
15245 if test "x$ac_cv_func_glob" = x""yes; then :
15246   cat >>confdefs.h <<_ACEOF
15247 #define HAVE_GLOB 1
15248 _ACEOF
15249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15250 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
15251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h.  */
15253 #include <glob.h>
15254 int
15255 main ()
15256 {
15257 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15258   ;
15259   return 0;
15260 }
15261 _ACEOF
15262 if ac_fn_c_try_compile "$LINENO"; then :
15263   $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
15264
15265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15266 $as_echo "yes" >&6; }
15267 else
15268   case " $LIBOBJS " in
15269   *" glob.$ac_objext "* ) ;;
15270   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15271  ;;
15272 esac
15273
15274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15275 $as_echo "no" >&6; }
15276 fi
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 else
15279   case " $LIBOBJS " in
15280   *" glob.$ac_objext "* ) ;;
15281   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15282  ;;
15283 esac
15284
15285 fi
15286 done
15287
15288 for ac_func in lockf flock
15289 do :
15290   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15291 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15292 eval as_val=\$$as_ac_var
15293    if test "x$as_val" = x""yes; then :
15294   cat >>confdefs.h <<_ACEOF
15295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15296 _ACEOF
15297  break
15298 fi
15299 done
15300
15301 for ac_func in waitpid wait3
15302 do :
15303   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15305 eval as_val=\$$as_ac_var
15306    if test "x$as_val" = x""yes; then :
15307   cat >>confdefs.h <<_ACEOF
15308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15309 _ACEOF
15310  break
15311 fi
15312 done
15313
15314 for ac_func in innetgr _innetgr
15315 do :
15316   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15317 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15318 eval as_val=\$$as_ac_var
15319    if test "x$as_val" = x""yes; then :
15320   cat >>confdefs.h <<_ACEOF
15321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15322 _ACEOF
15323  for ac_func in getdomainname
15324 do :
15325   ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
15326 if test "x$ac_cv_func_getdomainname" = x""yes; then :
15327   cat >>confdefs.h <<_ACEOF
15328 #define HAVE_GETDOMAINNAME 1
15329 _ACEOF
15330
15331 fi
15332 done
15333  break
15334 fi
15335 done
15336
15337 for ac_func in utimes
15338 do :
15339   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15340 if test "x$ac_cv_func_utimes" = x""yes; then :
15341   cat >>confdefs.h <<_ACEOF
15342 #define HAVE_UTIMES 1
15343 _ACEOF
15344  for ac_func in futimes futimesat
15345 do :
15346   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15347 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15348 eval as_val=\$$as_ac_var
15349    if test "x$as_val" = x""yes; then :
15350   cat >>confdefs.h <<_ACEOF
15351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15352 _ACEOF
15353  break
15354 fi
15355 done
15356
15357 else
15358   for ac_func in futime
15359 do :
15360   ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
15361 if test "x$ac_cv_func_futime" = x""yes; then :
15362   cat >>confdefs.h <<_ACEOF
15363 #define HAVE_FUTIME 1
15364 _ACEOF
15365
15366 fi
15367 done
15368  case " $LIBOBJS " in
15369   *" utimes.$ac_objext "* ) ;;
15370   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
15371  ;;
15372 esac
15373
15374 fi
15375 done
15376
15377 for ac_func in killpg
15378 do :
15379   ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
15380 if test "x$ac_cv_func_killpg" = x""yes; then :
15381   cat >>confdefs.h <<_ACEOF
15382 #define HAVE_KILLPG 1
15383 _ACEOF
15384
15385 else
15386   case " $LIBOBJS " in
15387   *" killpg.$ac_objext "* ) ;;
15388   *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
15389  ;;
15390 esac
15391
15392 fi
15393 done
15394
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
15396 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
15397 if test "${sudo_cv_func_fnmatch+set}" = set; then :
15398   $as_echo_n "(cached) " >&6
15399 else
15400   rm -f conftestdata; > conftestdata
15401 if test "$cross_compiling" = yes; then :
15402   sudo_cv_func_fnmatch=no
15403 else
15404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h.  */
15406 #include <fnmatch.h>
15407 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
15408 _ACEOF
15409 if ac_fn_c_try_run "$LINENO"; then :
15410   sudo_cv_func_fnmatch=yes
15411 else
15412   sudo_cv_func_fnmatch=no
15413 fi
15414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15415   conftest.$ac_objext conftest.beam conftest.$ac_ext
15416 fi
15417
15418 rm -f core core.* *.core
15419 fi
15420
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
15422 $as_echo "$sudo_cv_func_fnmatch" >&6; }
15423 if test $sudo_cv_func_fnmatch = yes; then :
15424   $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
15425
15426 else
15427   case " $LIBOBJS " in
15428   *" fnmatch.$ac_objext "* ) ;;
15429   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
15430  ;;
15431 esac
15432
15433 fi
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
15435 $as_echo_n "checking for isblank... " >&6; }
15436 if test "${sudo_cv_func_isblank+set}" = set; then :
15437   $as_echo_n "(cached) " >&6
15438 else
15439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h.  */
15441 #include <ctype.h>
15442 int
15443 main ()
15444 {
15445 return (isblank('a'));
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 if ac_fn_c_try_link "$LINENO"; then :
15451   sudo_cv_func_isblank=yes
15452 else
15453   sudo_cv_func_isblank=no
15454 fi
15455 rm -f core conftest.err conftest.$ac_objext \
15456     conftest$ac_exeext conftest.$ac_ext
15457 fi
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
15459 $as_echo "$sudo_cv_func_isblank" >&6; }
15460
15461   if test "$sudo_cv_func_isblank" = "yes"; then
15462
15463 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
15464
15465   else
15466     case " $LIBOBJS " in
15467   *" isblank.$ac_objext "* ) ;;
15468   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
15469  ;;
15470 esac
15471
15472   fi
15473
15474 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
15475 do :
15476   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15477 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15478 eval as_val=\$$as_ac_var
15479    if test "x$as_val" = x""yes; then :
15480   cat >>confdefs.h <<_ACEOF
15481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15482 _ACEOF
15483
15484 else
15485   case " $LIBOBJS " in
15486   *" $ac_func.$ac_objext "* ) ;;
15487   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15488  ;;
15489 esac
15490
15491 fi
15492 done
15493
15494
15495 for ac_func in nanosleep
15496 do :
15497   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
15498 if test "x$ac_cv_func_nanosleep" = x""yes; then :
15499   cat >>confdefs.h <<_ACEOF
15500 #define HAVE_NANOSLEEP 1
15501 _ACEOF
15502
15503 else
15504
15505     # On Solaris, nanosleep is in librt
15506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
15507 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
15508 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
15509   $as_echo_n "(cached) " >&6
15510 else
15511   ac_check_lib_save_LIBS=$LIBS
15512 LIBS="-lrt  $LIBS"
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h.  */
15515
15516 /* Override any GCC internal prototype to avoid an error.
15517    Use char because int might match the return type of a GCC
15518    builtin and then its argument prototype would still apply.  */
15519 #ifdef __cplusplus
15520 extern "C"
15521 #endif
15522 char nanosleep ();
15523 int
15524 main ()
15525 {
15526 return nanosleep ();
15527   ;
15528   return 0;
15529 }
15530 _ACEOF
15531 if ac_fn_c_try_link "$LINENO"; then :
15532   ac_cv_lib_rt_nanosleep=yes
15533 else
15534   ac_cv_lib_rt_nanosleep=no
15535 fi
15536 rm -f core conftest.err conftest.$ac_objext \
15537     conftest$ac_exeext conftest.$ac_ext
15538 LIBS=$ac_check_lib_save_LIBS
15539 fi
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
15541 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
15542 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
15543   LIBS="${LIBS} -lrt"
15544 else
15545   case " $LIBOBJS " in
15546   *" nanosleep.$ac_objext "* ) ;;
15547   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
15548  ;;
15549 esac
15550
15551 fi
15552
15553
15554 fi
15555 done
15556
15557 for ac_func in closefrom
15558 do :
15559   ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
15560 if test "x$ac_cv_func_closefrom" = x""yes; then :
15561   cat >>confdefs.h <<_ACEOF
15562 #define HAVE_CLOSEFROM 1
15563 _ACEOF
15564
15565 else
15566   case " $LIBOBJS " in
15567   *" closefrom.$ac_objext "* ) ;;
15568   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
15569  ;;
15570 esac
15571
15572     ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
15573           #include <fcntl.h>
15574 "
15575 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
15576   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
15577
15578 fi
15579
15580
15581 fi
15582 done
15583
15584 for ac_func in mkstemps
15585 do :
15586   ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
15587 if test "x$ac_cv_func_mkstemps" = x""yes; then :
15588   cat >>confdefs.h <<_ACEOF
15589 #define HAVE_MKSTEMPS 1
15590 _ACEOF
15591
15592 else
15593   SUDO_OBJS="${SUDO_OBJS} mkstemps.o"
15594     for ac_func in random lrand48
15595 do :
15596   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15598 eval as_val=\$$as_ac_var
15599    if test "x$as_val" = x""yes; then :
15600   cat >>confdefs.h <<_ACEOF
15601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15602 _ACEOF
15603  break
15604 fi
15605 done
15606
15607
15608 fi
15609 done
15610
15611 for ac_func in snprintf vsnprintf asprintf vasprintf
15612 do :
15613   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15615 eval as_val=\$$as_ac_var
15616    if test "x$as_val" = x""yes; then :
15617   cat >>confdefs.h <<_ACEOF
15618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15619 _ACEOF
15620
15621 else
15622   NEED_SNPRINTF=1
15623 fi
15624 done
15625
15626 if test X"$ac_cv_type_struct_timespec" != X"no"; then
15627     ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15628 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
15629   $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
15630
15631         ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
15632 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = x""yes; then :
15633   $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
15634
15635 fi
15636
15637 else
15638   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15639 if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then :
15640   $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
15641
15642 fi
15643
15644 fi
15645
15646 fi
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h.  */
15649 #include <sys/types.h>
15650 #include <$ac_header_dirent>
15651 int
15652 main ()
15653 {
15654 DIR *d; (void)dirfd(d);
15655   ;
15656   return 0;
15657 }
15658 _ACEOF
15659 if ac_fn_c_try_link "$LINENO"; then :
15660   $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
15661
15662 else
15663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h.  */
15665 #include <sys/types.h>
15666 #include <$ac_header_dirent>
15667 int
15668 main ()
15669 {
15670 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
15671   ;
15672   return 0;
15673 }
15674 _ACEOF
15675 if ac_fn_c_try_link "$LINENO"; then :
15676   $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
15677
15678 fi
15679 rm -f core conftest.err conftest.$ac_objext \
15680     conftest$ac_exeext conftest.$ac_ext
15681 fi
15682 rm -f core conftest.err conftest.$ac_objext \
15683     conftest$ac_exeext conftest.$ac_ext
15684 if test -n "$NEED_SNPRINTF"; then
15685     case " $LIBOBJS " in
15686   *" snprintf.$ac_objext "* ) ;;
15687   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15688  ;;
15689 esac
15690
15691 fi
15692 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15693 if test "x$ac_cv_func_socket" = x""yes; then :
15694
15695 else
15696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15697 $as_echo_n "checking for socket in -lsocket... " >&6; }
15698 if test "${ac_cv_lib_socket_socket+set}" = set; then :
15699   $as_echo_n "(cached) " >&6
15700 else
15701   ac_check_lib_save_LIBS=$LIBS
15702 LIBS="-lsocket  $LIBS"
15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h.  */
15705
15706 /* Override any GCC internal prototype to avoid an error.
15707    Use char because int might match the return type of a GCC
15708    builtin and then its argument prototype would still apply.  */
15709 #ifdef __cplusplus
15710 extern "C"
15711 #endif
15712 char socket ();
15713 int
15714 main ()
15715 {
15716 return socket ();
15717   ;
15718   return 0;
15719 }
15720 _ACEOF
15721 if ac_fn_c_try_link "$LINENO"; then :
15722   ac_cv_lib_socket_socket=yes
15723 else
15724   ac_cv_lib_socket_socket=no
15725 fi
15726 rm -f core conftest.err conftest.$ac_objext \
15727     conftest$ac_exeext conftest.$ac_ext
15728 LIBS=$ac_check_lib_save_LIBS
15729 fi
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15731 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15732 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
15733   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
15734 else
15735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
15736 $as_echo_n "checking for socket in -linet... " >&6; }
15737 if test "${ac_cv_lib_inet_socket+set}" = set; then :
15738   $as_echo_n "(cached) " >&6
15739 else
15740   ac_check_lib_save_LIBS=$LIBS
15741 LIBS="-linet  $LIBS"
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h.  */
15744
15745 /* Override any GCC internal prototype to avoid an error.
15746    Use char because int might match the return type of a GCC
15747    builtin and then its argument prototype would still apply.  */
15748 #ifdef __cplusplus
15749 extern "C"
15750 #endif
15751 char socket ();
15752 int
15753 main ()
15754 {
15755 return socket ();
15756   ;
15757   return 0;
15758 }
15759 _ACEOF
15760 if ac_fn_c_try_link "$LINENO"; then :
15761   ac_cv_lib_inet_socket=yes
15762 else
15763   ac_cv_lib_inet_socket=no
15764 fi
15765 rm -f core conftest.err conftest.$ac_objext \
15766     conftest$ac_exeext conftest.$ac_ext
15767 LIBS=$ac_check_lib_save_LIBS
15768 fi
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
15770 $as_echo "$ac_cv_lib_inet_socket" >&6; }
15771 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
15772   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
15773 else
15774   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
15775 $as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15777 $as_echo_n "checking for socket in -lsocket... " >&6; }
15778 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then :
15779   $as_echo_n "(cached) " >&6
15780 else
15781   ac_check_lib_save_LIBS=$LIBS
15782 LIBS="-lsocket -lnsl $LIBS"
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h.  */
15785
15786 /* Override any GCC internal prototype to avoid an error.
15787    Use char because int might match the return type of a GCC
15788    builtin and then its argument prototype would still apply.  */
15789 #ifdef __cplusplus
15790 extern "C"
15791 #endif
15792 char socket ();
15793 int
15794 main ()
15795 {
15796 return socket ();
15797   ;
15798   return 0;
15799 }
15800 _ACEOF
15801 if ac_fn_c_try_link "$LINENO"; then :
15802   ac_cv_lib_socket_socket_lnsl=yes
15803 else
15804   ac_cv_lib_socket_socket_lnsl=no
15805 fi
15806 rm -f core conftest.err conftest.$ac_objext \
15807     conftest$ac_exeext conftest.$ac_ext
15808 LIBS=$ac_check_lib_save_LIBS
15809 fi
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
15811 $as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
15812 if test "x$ac_cv_lib_socket_socket_lnsl" = x""yes; then :
15813   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
15814 fi
15815
15816 fi
15817
15818 fi
15819
15820 fi
15821
15822 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
15823 if test "x$ac_cv_func_inet_addr" = x""yes; then :
15824
15825 else
15826   ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
15827 if test "x$ac_cv_func___inet_addr" = x""yes; then :
15828
15829 else
15830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
15831 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
15832 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
15833   $as_echo_n "(cached) " >&6
15834 else
15835   ac_check_lib_save_LIBS=$LIBS
15836 LIBS="-lnsl  $LIBS"
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h.  */
15839
15840 /* Override any GCC internal prototype to avoid an error.
15841    Use char because int might match the return type of a GCC
15842    builtin and then its argument prototype would still apply.  */
15843 #ifdef __cplusplus
15844 extern "C"
15845 #endif
15846 char inet_addr ();
15847 int
15848 main ()
15849 {
15850 return inet_addr ();
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 if ac_fn_c_try_link "$LINENO"; then :
15856   ac_cv_lib_nsl_inet_addr=yes
15857 else
15858   ac_cv_lib_nsl_inet_addr=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext \
15861     conftest$ac_exeext conftest.$ac_ext
15862 LIBS=$ac_check_lib_save_LIBS
15863 fi
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
15865 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
15866 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
15867   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
15868 else
15869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
15870 $as_echo_n "checking for inet_addr in -linet... " >&6; }
15871 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then :
15872   $as_echo_n "(cached) " >&6
15873 else
15874   ac_check_lib_save_LIBS=$LIBS
15875 LIBS="-linet  $LIBS"
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h.  */
15878
15879 /* Override any GCC internal prototype to avoid an error.
15880    Use char because int might match the return type of a GCC
15881    builtin and then its argument prototype would still apply.  */
15882 #ifdef __cplusplus
15883 extern "C"
15884 #endif
15885 char inet_addr ();
15886 int
15887 main ()
15888 {
15889 return inet_addr ();
15890   ;
15891   return 0;
15892 }
15893 _ACEOF
15894 if ac_fn_c_try_link "$LINENO"; then :
15895   ac_cv_lib_inet_inet_addr=yes
15896 else
15897   ac_cv_lib_inet_inet_addr=no
15898 fi
15899 rm -f core conftest.err conftest.$ac_objext \
15900     conftest$ac_exeext conftest.$ac_ext
15901 LIBS=$ac_check_lib_save_LIBS
15902 fi
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
15904 $as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
15905 if test "x$ac_cv_lib_inet_inet_addr" = x""yes; then :
15906   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
15907 else
15908   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
15909 $as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
15911 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
15912 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then :
15913   $as_echo_n "(cached) " >&6
15914 else
15915   ac_check_lib_save_LIBS=$LIBS
15916 LIBS="-lsocket -lnsl $LIBS"
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h.  */
15919
15920 /* Override any GCC internal prototype to avoid an error.
15921    Use char because int might match the return type of a GCC
15922    builtin and then its argument prototype would still apply.  */
15923 #ifdef __cplusplus
15924 extern "C"
15925 #endif
15926 char inet_addr ();
15927 int
15928 main ()
15929 {
15930 return inet_addr ();
15931   ;
15932   return 0;
15933 }
15934 _ACEOF
15935 if ac_fn_c_try_link "$LINENO"; then :
15936   ac_cv_lib_socket_inet_addr_lnsl=yes
15937 else
15938   ac_cv_lib_socket_inet_addr_lnsl=no
15939 fi
15940 rm -f core conftest.err conftest.$ac_objext \
15941     conftest$ac_exeext conftest.$ac_ext
15942 LIBS=$ac_check_lib_save_LIBS
15943 fi
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
15945 $as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
15946 if test "x$ac_cv_lib_socket_inet_addr_lnsl" = x""yes; then :
15947   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
15948 fi
15949
15950 fi
15951
15952 fi
15953
15954 fi
15955
15956 fi
15957
15958 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
15959 if test "x$ac_cv_func_syslog" = x""yes; then :
15960
15961 else
15962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
15963 $as_echo_n "checking for syslog in -lsocket... " >&6; }
15964 if test "${ac_cv_lib_socket_syslog+set}" = set; then :
15965   $as_echo_n "(cached) " >&6
15966 else
15967   ac_check_lib_save_LIBS=$LIBS
15968 LIBS="-lsocket  $LIBS"
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h.  */
15971
15972 /* Override any GCC internal prototype to avoid an error.
15973    Use char because int might match the return type of a GCC
15974    builtin and then its argument prototype would still apply.  */
15975 #ifdef __cplusplus
15976 extern "C"
15977 #endif
15978 char syslog ();
15979 int
15980 main ()
15981 {
15982 return syslog ();
15983   ;
15984   return 0;
15985 }
15986 _ACEOF
15987 if ac_fn_c_try_link "$LINENO"; then :
15988   ac_cv_lib_socket_syslog=yes
15989 else
15990   ac_cv_lib_socket_syslog=no
15991 fi
15992 rm -f core conftest.err conftest.$ac_objext \
15993     conftest$ac_exeext conftest.$ac_ext
15994 LIBS=$ac_check_lib_save_LIBS
15995 fi
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
15997 $as_echo "$ac_cv_lib_socket_syslog" >&6; }
15998 if test "x$ac_cv_lib_socket_syslog" = x""yes; then :
15999   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
16000 else
16001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
16002 $as_echo_n "checking for syslog in -lnsl... " >&6; }
16003 if test "${ac_cv_lib_nsl_syslog+set}" = set; then :
16004   $as_echo_n "(cached) " >&6
16005 else
16006   ac_check_lib_save_LIBS=$LIBS
16007 LIBS="-lnsl  $LIBS"
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h.  */
16010
16011 /* Override any GCC internal prototype to avoid an error.
16012    Use char because int might match the return type of a GCC
16013    builtin and then its argument prototype would still apply.  */
16014 #ifdef __cplusplus
16015 extern "C"
16016 #endif
16017 char syslog ();
16018 int
16019 main ()
16020 {
16021 return syslog ();
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 if ac_fn_c_try_link "$LINENO"; then :
16027   ac_cv_lib_nsl_syslog=yes
16028 else
16029   ac_cv_lib_nsl_syslog=no
16030 fi
16031 rm -f core conftest.err conftest.$ac_objext \
16032     conftest$ac_exeext conftest.$ac_ext
16033 LIBS=$ac_check_lib_save_LIBS
16034 fi
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
16036 $as_echo "$ac_cv_lib_nsl_syslog" >&6; }
16037 if test "x$ac_cv_lib_nsl_syslog" = x""yes; then :
16038   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
16039 else
16040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
16041 $as_echo_n "checking for syslog in -linet... " >&6; }
16042 if test "${ac_cv_lib_inet_syslog+set}" = set; then :
16043   $as_echo_n "(cached) " >&6
16044 else
16045   ac_check_lib_save_LIBS=$LIBS
16046 LIBS="-linet  $LIBS"
16047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048 /* end confdefs.h.  */
16049
16050 /* Override any GCC internal prototype to avoid an error.
16051    Use char because int might match the return type of a GCC
16052    builtin and then its argument prototype would still apply.  */
16053 #ifdef __cplusplus
16054 extern "C"
16055 #endif
16056 char syslog ();
16057 int
16058 main ()
16059 {
16060 return syslog ();
16061   ;
16062   return 0;
16063 }
16064 _ACEOF
16065 if ac_fn_c_try_link "$LINENO"; then :
16066   ac_cv_lib_inet_syslog=yes
16067 else
16068   ac_cv_lib_inet_syslog=no
16069 fi
16070 rm -f core conftest.err conftest.$ac_objext \
16071     conftest$ac_exeext conftest.$ac_ext
16072 LIBS=$ac_check_lib_save_LIBS
16073 fi
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
16075 $as_echo "$ac_cv_lib_inet_syslog" >&6; }
16076 if test "x$ac_cv_lib_inet_syslog" = x""yes; then :
16077   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16078 fi
16079
16080 fi
16081
16082 fi
16083
16084 fi
16085
16086 for ac_func in getprogname
16087 do :
16088   ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
16089 if test "x$ac_cv_func_getprogname" = x""yes; then :
16090   cat >>confdefs.h <<_ACEOF
16091 #define HAVE_GETPROGNAME 1
16092 _ACEOF
16093
16094 else
16095
16096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
16097 $as_echo_n "checking for __progname... " >&6; }
16098     if test "${sudo_cv___progname+set}" = set; then :
16099   $as_echo_n "(cached) " >&6
16100 else
16101
16102     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h.  */
16104
16105 int
16106 main ()
16107 {
16108 extern char *__progname; (void)puts(__progname);
16109   ;
16110   return 0;
16111 }
16112 _ACEOF
16113 if ac_fn_c_try_link "$LINENO"; then :
16114   sudo_cv___progname=yes
16115 else
16116   sudo_cv___progname=no
16117 fi
16118 rm -f core conftest.err conftest.$ac_objext \
16119     conftest$ac_exeext conftest.$ac_ext
16120 fi
16121
16122     if test "$sudo_cv___progname" = "yes"; then
16123         $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
16124
16125     else
16126         case " $LIBOBJS " in
16127   *" getprogname.$ac_objext "* ) ;;
16128   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
16129  ;;
16130 esac
16131
16132     fi
16133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
16134 $as_echo "$sudo_cv___progname" >&6; }
16135
16136 fi
16137 done
16138
16139
16140 for ac_func in strsignal
16141 do :
16142   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
16143 if test "x$ac_cv_func_strsignal" = x""yes; then :
16144   cat >>confdefs.h <<_ACEOF
16145 #define HAVE_STRSIGNAL 1
16146 _ACEOF
16147
16148 else
16149
16150     case " $LIBOBJS " in
16151   *" strsignal.$ac_objext "* ) ;;
16152   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
16153  ;;
16154 esac
16155
16156     HAVE_SIGLIST="false"
16157     ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
16158 $ac_includes_default
16159 #include <signal.h>
16160
16161 "
16162 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
16163   ac_have_decl=1
16164 else
16165   ac_have_decl=0
16166 fi
16167
16168 cat >>confdefs.h <<_ACEOF
16169 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16170 _ACEOF
16171 if test $ac_have_decl = 1; then :
16172
16173         HAVE_SIGLIST="true"
16174         break
16175
16176 fi
16177 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
16178 $ac_includes_default
16179 #include <signal.h>
16180
16181 "
16182 if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
16183   ac_have_decl=1
16184 else
16185   ac_have_decl=0
16186 fi
16187
16188 cat >>confdefs.h <<_ACEOF
16189 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
16190 _ACEOF
16191 if test $ac_have_decl = 1; then :
16192
16193         HAVE_SIGLIST="true"
16194         break
16195
16196 fi
16197 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
16198 $ac_includes_default
16199 #include <signal.h>
16200
16201 "
16202 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
16203   ac_have_decl=1
16204 else
16205   ac_have_decl=0
16206 fi
16207
16208 cat >>confdefs.h <<_ACEOF
16209 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16210 _ACEOF
16211 if test $ac_have_decl = 1; then :
16212
16213         HAVE_SIGLIST="true"
16214         break
16215
16216 fi
16217
16218     if test "$HAVE_SIGLIST" != "true"; then
16219         case " $LIBOBJS " in
16220   *" siglist.$ac_objext "* ) ;;
16221   *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
16222  ;;
16223 esac
16224
16225     fi
16226
16227 fi
16228 done
16229
16230
16231 if test ${with_netsvc-"no"} != "no"; then
16232     cat >>confdefs.h <<EOF
16233 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
16234 EOF
16235
16236     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
16237 elif test ${with_nsswitch-"yes"} != "no"; then
16238     cat >>confdefs.h <<EOF
16239 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
16240 EOF
16241
16242     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
16243 fi
16244
16245
16246 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
16247     for auth in $AUTH_EXCL_DEF; do
16248         case $auth in
16249             AIX_AUTH)   with_aixauth=maybe;;
16250             BSD_AUTH)   with_bsdauth=maybe;;
16251             PAM)        with_pam=maybe;;
16252             SIA)        CHECKSIA=true;;
16253         esac
16254     done
16255 fi
16256
16257 if test ${with_pam-"no"} != "no"; then
16258                 case "$LIBS" in
16259         *-ldl*) SUDO_LIBS="${SUDO_LIBS} -lpam"
16260                 ;;
16261         *)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
16262 $as_echo_n "checking for main in -ldl... " >&6; }
16263 if test "${ac_cv_lib_dl_main+set}" = set; then :
16264   $as_echo_n "(cached) " >&6
16265 else
16266   ac_check_lib_save_LIBS=$LIBS
16267 LIBS="-ldl  $LIBS"
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h.  */
16270
16271
16272 int
16273 main ()
16274 {
16275 return main ();
16276   ;
16277   return 0;
16278 }
16279 _ACEOF
16280 if ac_fn_c_try_link "$LINENO"; then :
16281   ac_cv_lib_dl_main=yes
16282 else
16283   ac_cv_lib_dl_main=no
16284 fi
16285 rm -f core conftest.err conftest.$ac_objext \
16286     conftest$ac_exeext conftest.$ac_ext
16287 LIBS=$ac_check_lib_save_LIBS
16288 fi
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
16290 $as_echo "$ac_cv_lib_dl_main" >&6; }
16291 if test "x$ac_cv_lib_dl_main" = x""yes; then :
16292   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
16293 else
16294   SUDO_LIBS="${SUDO_LIBS} -lpam"
16295 fi
16296
16297                 ac_cv_lib_dl=ac_cv_lib_dl_main
16298                 ;;
16299     esac
16300
16301                     for ac_header in security/pam_appl.h pam/pam_appl.h
16302 do :
16303   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16304 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16305 eval as_val=\$$as_ac_Header
16306    if test "x$as_val" = x""yes; then :
16307   cat >>confdefs.h <<_ACEOF
16308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16309 _ACEOF
16310  with_pam=yes; break
16311 fi
16312
16313 done
16314
16315     if test "$with_pam" = "yes"; then
16316         $as_echo "#define HAVE_PAM 1" >>confdefs.h
16317
16318         AUTH_OBJS="$AUTH_OBJS pam.o";
16319         AUTH_EXCL=PAM
16320
16321
16322 # Check whether --with-pam-login was given.
16323 if test "${with_pam_login+set}" = set; then :
16324   withval=$with_pam_login; case $with_pam_login in
16325             yes)        $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
16326
16327                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
16328 $as_echo_n "checking whether to use PAM login... " >&6; }
16329                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16330 $as_echo "yes" >&6; }
16331                         ;;
16332             no)         ;;
16333             *)          as_fn_error "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
16334                         ;;
16335         esac
16336 fi
16337
16338
16339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
16340 $as_echo_n "checking whether to use PAM session support... " >&6; }
16341         # Check whether --enable-pam_session was given.
16342 if test "${enable_pam_session+set}" = set; then :
16343   enableval=$enable_pam_session;  case "$enableval" in
16344                 yes)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16345 $as_echo "yes" >&6; }
16346                         ;;
16347                 no)             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348 $as_echo "no" >&6; }
16349
16350 $as_echo "#define NO_PAM_SESSION /**/" >>confdefs.h
16351
16352                             ;;
16353                 *)              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16354 $as_echo "no" >&6; }
16355                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
16356 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
16357                             ;;
16358             esac
16359 else
16360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16361 $as_echo "yes" >&6; }
16362 fi
16363
16364
16365         case $host in
16366             *-*-linux*|*-*-solaris*)
16367                     # dgettext() may be defined to dgettext_libintl in the
16368                     # header file, so first check that it links w/ additional
16369                     # libs, then try with -lintl
16370                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16371 /* end confdefs.h.  */
16372 #include <libintl.h>
16373 int
16374 main ()
16375 {
16376 (void)dgettext((char *)0, (char *)0);
16377   ;
16378   return 0;
16379 }
16380 _ACEOF
16381 if ac_fn_c_try_link "$LINENO"; then :
16382   $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16383
16384 else
16385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16386 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16387 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16388   $as_echo_n "(cached) " >&6
16389 else
16390   ac_check_lib_save_LIBS=$LIBS
16391 LIBS="-lintl  $LIBS"
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h.  */
16394
16395 /* Override any GCC internal prototype to avoid an error.
16396    Use char because int might match the return type of a GCC
16397    builtin and then its argument prototype would still apply.  */
16398 #ifdef __cplusplus
16399 extern "C"
16400 #endif
16401 char dgettext ();
16402 int
16403 main ()
16404 {
16405 return dgettext ();
16406   ;
16407   return 0;
16408 }
16409 _ACEOF
16410 if ac_fn_c_try_link "$LINENO"; then :
16411   ac_cv_lib_intl_dgettext=yes
16412 else
16413   ac_cv_lib_intl_dgettext=no
16414 fi
16415 rm -f core conftest.err conftest.$ac_objext \
16416     conftest$ac_exeext conftest.$ac_ext
16417 LIBS=$ac_check_lib_save_LIBS
16418 fi
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16420 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16421 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
16422   LIBS="${LIBS} -lintl"
16423                         $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16424
16425 fi
16426
16427 fi
16428 rm -f core conftest.err conftest.$ac_objext \
16429     conftest$ac_exeext conftest.$ac_ext
16430                     ;;
16431         esac
16432     fi
16433 fi
16434
16435 if test ${with_aixauth-'no'} != "no"; then
16436     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
16437         { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
16438 $as_echo "$as_me: using AIX general authentication" >&6;}
16439         $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
16440
16441         AUTH_OBJS="$AUTH_OBJS aix_auth.o";
16442         SUDO_LIBS="${SUDO_LIBS} -ls"
16443         AUTH_EXCL=AIX_AUTH
16444     fi
16445 fi
16446
16447 if test ${with_bsdauth-'no'} != "no"; then
16448     ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
16449 if test "x$ac_cv_header_bsd_auth_h" = x""yes; then :
16450   $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
16451
16452         AUTH_OBJS="$AUTH_OBJS bsdauth.o"
16453         BSDAUTH_USAGE='[-a auth_type] '
16454         AUTH_EXCL=BSD_AUTH; BAMAN=1
16455 else
16456   as_fn_error "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
16457 fi
16458
16459
16460 fi
16461
16462 if test ${CHECKSIA-'false'} = "true"; then
16463     for ac_func in sia_ses_init
16464 do :
16465   ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
16466 if test "x$ac_cv_func_sia_ses_init" = x""yes; then :
16467   cat >>confdefs.h <<_ACEOF
16468 #define HAVE_SIA_SES_INIT 1
16469 _ACEOF
16470  found=true
16471 else
16472   found=false
16473 fi
16474 done
16475
16476     if test "$found" = "true"; then
16477         AUTH_EXCL=SIA
16478         AUTH_OBJS="$AUTH_OBJS sia.o"
16479     fi
16480 fi
16481
16482 if test ${with_fwtk-'no'} != "no"; then
16483     if test "$with_fwtk" != "yes"; then
16484
16485     if test X"$with_rpath" = X"yes"; then
16486         case "$host" in
16487             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
16488                         ;;
16489             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
16490                         ;;
16491         esac
16492     else
16493         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
16494     fi
16495     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16496         blibpath_add="${blibpath_add}:${with_fwtk}"
16497     fi
16498
16499         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
16500         with_fwtk=yes
16501     fi
16502     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
16503     AUTH_OBJS="$AUTH_OBJS fwtk.o"
16504 fi
16505
16506 if test ${with_SecurID-'no'} != "no"; then
16507     if test "$with_SecurID" != "yes"; then
16508         :
16509     elif test -d /usr/ace/examples; then
16510         with_SecurID=/usr/ace/examples
16511     else
16512         with_SecurID=/usr/ace
16513     fi
16514     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
16515     _LDFLAGS="${LDFLAGS}"
16516
16517     if test X"$with_rpath" = X"yes"; then
16518         case "$host" in
16519             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16520                         ;;
16521             *)          LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16522                         ;;
16523         esac
16524     else
16525         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
16526     fi
16527     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16528         blibpath_add="${blibpath_add}:${with_SecurID}"
16529     fi
16530
16531     #
16532     # Determine whether to use the new or old SecurID API
16533     #
16534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
16535 $as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
16536 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then :
16537   $as_echo_n "(cached) " >&6
16538 else
16539   ac_check_lib_save_LIBS=$LIBS
16540 LIBS="-laceclnt
16541             -lpthread
16542
16543      $LIBS"
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h.  */
16546
16547 /* Override any GCC internal prototype to avoid an error.
16548    Use char because int might match the return type of a GCC
16549    builtin and then its argument prototype would still apply.  */
16550 #ifdef __cplusplus
16551 extern "C"
16552 #endif
16553 char SD_Init ();
16554 int
16555 main ()
16556 {
16557 return SD_Init ();
16558   ;
16559   return 0;
16560 }
16561 _ACEOF
16562 if ac_fn_c_try_link "$LINENO"; then :
16563   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
16564 else
16565   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
16566 fi
16567 rm -f core conftest.err conftest.$ac_objext \
16568     conftest$ac_exeext conftest.$ac_ext
16569 LIBS=$ac_check_lib_save_LIBS
16570 fi
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
16572 $as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
16573 if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = x""yes; then :
16574
16575             AUTH_OBJS="$AUTH_OBJS securid5.o";
16576             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
16577
16578
16579
16580     if test X"$with_rpath" = X"yes"; then
16581         case "$host" in
16582             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16583                         ;;
16584             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16585                         ;;
16586         esac
16587     else
16588         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
16589     fi
16590     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16591         blibpath_add="${blibpath_add}:${with_SecurID}"
16592     fi
16593
16594
16595 else
16596
16597             AUTH_OBJS="$AUTH_OBJS securid.o";
16598             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
16599
16600 fi
16601
16602     LDFLAGS="${_LDFLAGS}"
16603 fi
16604
16605
16606 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
16607     for auth in $AUTH_DEF; do
16608         case $auth in
16609             passwd)     : ${with_passwd='maybe'};;
16610         esac
16611     done
16612 fi
16613
16614 if test ${with_kerb4-'no'} != "no"; then
16615     $as_echo "#define HAVE_KERB4 1" >>confdefs.h
16616
16617                 O_LDFLAGS="$LDFLAGS"
16618     if test "$with_kerb4" = "yes"; then
16619         found=no
16620         O_CPPFLAGS="$CPPFLAGS"
16621         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
16622             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
16623             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h.  */
16625 #include <krb.h>
16626 _ACEOF
16627 if ac_fn_c_try_cpp "$LINENO"; then :
16628   found=yes; break
16629 fi
16630 rm -f conftest.err conftest.$ac_ext
16631         done
16632         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
16633     else
16634
16635     if test X"$with_rpath" = X"yes"; then
16636         case "$host" in
16637             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16638                         ;;
16639             *)          LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16640                         ;;
16641         esac
16642     else
16643         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
16644     fi
16645     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16646         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16647     fi
16648
16649
16650     if test X"$with_rpath" = X"yes"; then
16651         case "$host" in
16652             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16653                         ;;
16654             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16655                         ;;
16656         esac
16657     else
16658         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
16659     fi
16660     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16661         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16662     fi
16663
16664         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
16665         ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16666 if test "x$ac_cv_header_krb_h" = x""yes; then :
16667   found=yes
16668 else
16669   found=no
16670 fi
16671
16672
16673     fi
16674     if test X"$found" = X"no"; then
16675         { $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
16676 $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;}
16677     fi
16678
16679                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16680 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16681 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
16682   $as_echo_n "(cached) " >&6
16683 else
16684   ac_check_lib_save_LIBS=$LIBS
16685 LIBS="-ldes  $LIBS"
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h.  */
16688
16689 /* Override any GCC internal prototype to avoid an error.
16690    Use char because int might match the return type of a GCC
16691    builtin and then its argument prototype would still apply.  */
16692 #ifdef __cplusplus
16693 extern "C"
16694 #endif
16695 char des_cbc_encrypt ();
16696 int
16697 main ()
16698 {
16699 return des_cbc_encrypt ();
16700   ;
16701   return 0;
16702 }
16703 _ACEOF
16704 if ac_fn_c_try_link "$LINENO"; then :
16705   ac_cv_lib_des_des_cbc_encrypt=yes
16706 else
16707   ac_cv_lib_des_des_cbc_encrypt=no
16708 fi
16709 rm -f core conftest.err conftest.$ac_objext \
16710     conftest$ac_exeext conftest.$ac_ext
16711 LIBS=$ac_check_lib_save_LIBS
16712 fi
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16714 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16715 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
16716   K4LIBS="-ldes"
16717 else
16718
16719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16720 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16721 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
16722   $as_echo_n "(cached) " >&6
16723 else
16724   ac_check_lib_save_LIBS=$LIBS
16725 LIBS="-ldes425  $LIBS"
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h.  */
16728
16729 /* Override any GCC internal prototype to avoid an error.
16730    Use char because int might match the return type of a GCC
16731    builtin and then its argument prototype would still apply.  */
16732 #ifdef __cplusplus
16733 extern "C"
16734 #endif
16735 char des_cbc_encrypt ();
16736 int
16737 main ()
16738 {
16739 return des_cbc_encrypt ();
16740   ;
16741   return 0;
16742 }
16743 _ACEOF
16744 if ac_fn_c_try_link "$LINENO"; then :
16745   ac_cv_lib_des425_des_cbc_encrypt=yes
16746 else
16747   ac_cv_lib_des425_des_cbc_encrypt=no
16748 fi
16749 rm -f core conftest.err conftest.$ac_objext \
16750     conftest$ac_exeext conftest.$ac_ext
16751 LIBS=$ac_check_lib_save_LIBS
16752 fi
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16754 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16755 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
16756   K4LIBS="-ldes425"
16757 else
16758   K4LIBS=""
16759 fi
16760
16761
16762 fi
16763
16764                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
16765 $as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
16766     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h.  */
16768 #include <krb.h>
16769 int
16770 main ()
16771 {
16772 const char *tmp = krb4_version;
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 if ac_fn_c_try_compile "$LINENO"; then :
16778
16779             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16780 $as_echo "yes" >&6; }
16781             K4LIBS="${K4LIBS} -lcom_err"
16782             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
16783 $as_echo_n "checking for main in -lroken... " >&6; }
16784 if test "${ac_cv_lib_roken_main+set}" = set; then :
16785   $as_echo_n "(cached) " >&6
16786 else
16787   ac_check_lib_save_LIBS=$LIBS
16788 LIBS="-lroken  $LIBS"
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h.  */
16791
16792
16793 int
16794 main ()
16795 {
16796 return main ();
16797   ;
16798   return 0;
16799 }
16800 _ACEOF
16801 if ac_fn_c_try_link "$LINENO"; then :
16802   ac_cv_lib_roken_main=yes
16803 else
16804   ac_cv_lib_roken_main=no
16805 fi
16806 rm -f core conftest.err conftest.$ac_objext \
16807     conftest$ac_exeext conftest.$ac_ext
16808 LIBS=$ac_check_lib_save_LIBS
16809 fi
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
16811 $as_echo "$ac_cv_lib_roken_main" >&6; }
16812 if test "x$ac_cv_lib_roken_main" = x""yes; then :
16813   K4LIBS="${K4LIBS} -lroken"
16814 fi
16815
16816
16817 else
16818
16819             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16820 $as_echo "no" >&6; }
16821
16822
16823 fi
16824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825                 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
16827 $as_echo_n "checking for main in -lkrb... " >&6; }
16828 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16829   $as_echo_n "(cached) " >&6
16830 else
16831   ac_check_lib_save_LIBS=$LIBS
16832 LIBS="-lkrb $K4LIBS $LIBS"
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h.  */
16835
16836
16837 int
16838 main ()
16839 {
16840 return main ();
16841   ;
16842   return 0;
16843 }
16844 _ACEOF
16845 if ac_fn_c_try_link "$LINENO"; then :
16846   eval "$as_ac_Lib=yes"
16847 else
16848   eval "$as_ac_Lib=no"
16849 fi
16850 rm -f core conftest.err conftest.$ac_objext \
16851     conftest$ac_exeext conftest.$ac_ext
16852 LIBS=$ac_check_lib_save_LIBS
16853 fi
16854 eval ac_res=\$$as_ac_Lib
16855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16856 $as_echo "$ac_res" >&6; }
16857 eval as_val=\$$as_ac_Lib
16858    if test "x$as_val" = x""yes; then :
16859   K4LIBS="-lkrb $K4LIBS"
16860 else
16861
16862         as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
16864 $as_echo_n "checking for main in -lkrb4... " >&6; }
16865 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16866   $as_echo_n "(cached) " >&6
16867 else
16868   ac_check_lib_save_LIBS=$LIBS
16869 LIBS="-lkrb4 $K4LIBS $LIBS"
16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h.  */
16872
16873
16874 int
16875 main ()
16876 {
16877 return main ();
16878   ;
16879   return 0;
16880 }
16881 _ACEOF
16882 if ac_fn_c_try_link "$LINENO"; then :
16883   eval "$as_ac_Lib=yes"
16884 else
16885   eval "$as_ac_Lib=no"
16886 fi
16887 rm -f core conftest.err conftest.$ac_objext \
16888     conftest$ac_exeext conftest.$ac_ext
16889 LIBS=$ac_check_lib_save_LIBS
16890 fi
16891 eval ac_res=\$$as_ac_Lib
16892                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16893 $as_echo "$ac_res" >&6; }
16894 eval as_val=\$$as_ac_Lib
16895    if test "x$as_val" = x""yes; then :
16896   K4LIBS="-lkrb4 $K4LIBS"
16897 else
16898   K4LIBS="-lkrb $K4LIBS"
16899             { $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
16900 $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;}
16901
16902 fi
16903
16904
16905 fi
16906
16907     LDFLAGS="$O_LDFLAGS"
16908     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
16909     AUTH_OBJS="$AUTH_OBJS kerb4.o"
16910 fi
16911
16912 if test ${with_kerb5-'no'} != "no"; then
16913     # Extract the first word of "krb5-config", so it can be a program name with args.
16914 set dummy krb5-config; ac_word=$2
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16916 $as_echo_n "checking for $ac_word... " >&6; }
16917 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then :
16918   $as_echo_n "(cached) " >&6
16919 else
16920   if test -n "$KRB5CONFIG"; then
16921   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
16922 else
16923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16924 for as_dir in $PATH
16925 do
16926   IFS=$as_save_IFS
16927   test -z "$as_dir" && as_dir=.
16928     for ac_exec_ext in '' $ac_executable_extensions; do
16929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16930     ac_cv_prog_KRB5CONFIG="yes"
16931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16932     break 2
16933   fi
16934 done
16935   done
16936 IFS=$as_save_IFS
16937
16938   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
16939 fi
16940 fi
16941 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
16942 if test -n "$KRB5CONFIG"; then
16943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
16944 $as_echo "$KRB5CONFIG" >&6; }
16945 else
16946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 $as_echo "no" >&6; }
16948 fi
16949
16950
16951     if test -n "$KRB5CONFIG"; then
16952         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
16953
16954         AUTH_OBJS="$AUTH_OBJS kerb5.o"
16955         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
16956         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
16957                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16958 $as_echo_n "checking whether we are using Heimdal... " >&6; }
16959         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16960 /* end confdefs.h.  */
16961 #include <krb5.h>
16962 int
16963 main ()
16964 {
16965 const char *tmp = heimdal_version;
16966   ;
16967   return 0;
16968 }
16969 _ACEOF
16970 if ac_fn_c_try_compile "$LINENO"; then :
16971
16972                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16973 $as_echo "yes" >&6; }
16974                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
16975
16976
16977 else
16978
16979                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16980 $as_echo "no" >&6; }
16981
16982
16983 fi
16984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16985     fi
16986 fi
16987 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
16988     $as_echo "#define HAVE_KERB5 1" >>confdefs.h
16989
16990                 if test "$with_kerb5" = "yes"; then
16991         found=no
16992         O_CPPFLAGS="$CPPFLAGS"
16993         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
16994             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
16995             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h.  */
16997 #include <krb5.h>
16998 _ACEOF
16999 if ac_fn_c_try_cpp "$LINENO"; then :
17000   found=yes; break
17001 fi
17002 rm -f conftest.err conftest.$ac_ext
17003         done
17004         if test X"$found" = X"no"; then
17005             CPPFLAGS="$O_CPPFLAGS"
17006             { $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
17007 $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;}
17008         fi
17009     else
17010
17011     if test X"$with_rpath" = X"yes"; then
17012         case "$host" in
17013             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
17014                         ;;
17015             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
17016                         ;;
17017         esac
17018     else
17019         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
17020     fi
17021     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17022         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
17023     fi
17024
17025         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
17026     fi
17027
17028                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17029 $as_echo_n "checking whether we are using Heimdal... " >&6; }
17030     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h.  */
17032 #include <krb5.h>
17033 int
17034 main ()
17035 {
17036 const char *tmp = heimdal_version;
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 if ac_fn_c_try_compile "$LINENO"; then :
17042
17043             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17044 $as_echo "yes" >&6; }
17045             $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17046
17047             # XXX - need to check whether -lcrypo is needed!
17048             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
17049             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
17050 $as_echo_n "checking for main in -lroken... " >&6; }
17051 if test "${ac_cv_lib_roken_main+set}" = set; then :
17052   $as_echo_n "(cached) " >&6
17053 else
17054   ac_check_lib_save_LIBS=$LIBS
17055 LIBS="-lroken  $LIBS"
17056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17057 /* end confdefs.h.  */
17058
17059
17060 int
17061 main ()
17062 {
17063 return main ();
17064   ;
17065   return 0;
17066 }
17067 _ACEOF
17068 if ac_fn_c_try_link "$LINENO"; then :
17069   ac_cv_lib_roken_main=yes
17070 else
17071   ac_cv_lib_roken_main=no
17072 fi
17073 rm -f core conftest.err conftest.$ac_objext \
17074     conftest$ac_exeext conftest.$ac_ext
17075 LIBS=$ac_check_lib_save_LIBS
17076 fi
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
17078 $as_echo "$ac_cv_lib_roken_main" >&6; }
17079 if test "x$ac_cv_lib_roken_main" = x""yes; then :
17080   SUDO_LIBS="${SUDO_LIBS} -lroken"
17081 fi
17082
17083
17084 else
17085
17086             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17087 $as_echo "no" >&6; }
17088             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
17089             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
17090 $as_echo_n "checking for main in -lkrb5support... " >&6; }
17091 if test "${ac_cv_lib_krb5support_main+set}" = set; then :
17092   $as_echo_n "(cached) " >&6
17093 else
17094   ac_check_lib_save_LIBS=$LIBS
17095 LIBS="-lkrb5support  $LIBS"
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h.  */
17098
17099
17100 int
17101 main ()
17102 {
17103 return main ();
17104   ;
17105   return 0;
17106 }
17107 _ACEOF
17108 if ac_fn_c_try_link "$LINENO"; then :
17109   ac_cv_lib_krb5support_main=yes
17110 else
17111   ac_cv_lib_krb5support_main=no
17112 fi
17113 rm -f core conftest.err conftest.$ac_objext \
17114     conftest$ac_exeext conftest.$ac_ext
17115 LIBS=$ac_check_lib_save_LIBS
17116 fi
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
17118 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
17119 if test "x$ac_cv_lib_krb5support_main" = x""yes; then :
17120   SUDO_LIBS="${SUDO_LIBS} -lkrb5support"
17121 fi
17122
17123
17124 fi
17125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126     AUTH_OBJS="$AUTH_OBJS kerb5.o"
17127     _LIBS="$LIBS"
17128     LIBS="${LIBS} ${SUDO_LIBS}"
17129     for ac_func in krb5_verify_user krb5_init_secure_context
17130 do :
17131   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17133 eval as_val=\$$as_ac_var
17134    if test "x$as_val" = x""yes; then :
17135   cat >>confdefs.h <<_ACEOF
17136 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17137 _ACEOF
17138
17139 fi
17140 done
17141
17142     for ac_func in krb5_get_init_creds_opt_alloc
17143 do :
17144   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
17145 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = x""yes; then :
17146   cat >>confdefs.h <<_ACEOF
17147 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
17148 _ACEOF
17149
17150         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
17151 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
17152 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then :
17153   $as_echo_n "(cached) " >&6
17154 else
17155
17156                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h.  */
17158 #include <krb5.h>
17159 int
17160 main ()
17161 {
17162 krb5_get_init_creds_opt_free(NULL, NULL);
17163
17164   ;
17165   return 0;
17166 }
17167 _ACEOF
17168 if ac_fn_c_try_compile "$LINENO"; then :
17169   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
17170 else
17171   sudo_cv_krb5_get_init_creds_opt_free_two_args=no
17172
17173 fi
17174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175
17176
17177 fi
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
17179 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
17180
17181 fi
17182 done
17183
17184     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
17185         $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
17186
17187     fi
17188     LIBS="$_LIBS"
17189 fi
17190
17191 if test ${with_AFS-'no'} = "yes"; then
17192
17193     # looks like the "standard" place for AFS libs is /usr/afsws/lib
17194     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
17195     for i in $AFSLIBDIRS; do
17196         if test -d ${i}; then
17197
17198     if test X"$with_rpath" = X"yes"; then
17199         case "$host" in
17200             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,+b,$i"
17201                         ;;
17202             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,-R$i"
17203                         ;;
17204         esac
17205     else
17206         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
17207     fi
17208     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17209         blibpath_add="${blibpath_add}:$i"
17210     fi
17211
17212             FOUND_AFSLIBDIR=true
17213         fi
17214     done
17215     if test -z "$FOUND_AFSLIBDIR"; then
17216         { $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
17217 $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;}
17218     fi
17219
17220     # Order is important here.  Note that we build AFS_LIBS from right to left
17221     # since AFS_LIBS may be initialized with BSD compat libs that must go last
17222     AFS_LIBS="-laudit ${AFS_LIBS}"
17223     for i in $AFSLIBDIRS; do
17224         if test -f ${i}/util.a; then
17225             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
17226             FOUND_UTIL_A=true
17227             break;
17228         fi
17229     done
17230     if test -z "$FOUND_UTIL_A"; then
17231         AFS_LIBS="-lutil ${AFS_LIBS}"
17232     fi
17233     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
17234
17235     # AFS includes may live in /usr/include on some machines...
17236     for i in /usr/afsws/include; do
17237         if test -d ${i}; then
17238             CPPFLAGS="${CPPFLAGS} -I${i}"
17239             FOUND_AFSINCDIR=true
17240         fi
17241     done
17242
17243     if test -z "$FOUND_AFSLIBDIR"; then
17244         { $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
17245 $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;}
17246     fi
17247
17248     AUTH_OBJS="$AUTH_OBJS afs.o"
17249 fi
17250
17251 if test ${with_DCE-'no'} = "yes"; then
17252     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
17253     SUDO_LIBS="${SUDO_LIBS} -ldce"
17254     AUTH_OBJS="$AUTH_OBJS dce.o"
17255 fi
17256
17257 if test ${with_skey-'no'} = "yes"; then
17258     O_LDFLAGS="$LDFLAGS"
17259     if test "$with_skey" != "yes"; then
17260         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
17261
17262     if test X"$with_rpath" = X"yes"; then
17263         case "$host" in
17264             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17265                         ;;
17266             *)          LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17267                         ;;
17268         esac
17269     else
17270         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
17271     fi
17272     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17273         blibpath_add="${blibpath_add}:${with_skey}/lib"
17274     fi
17275
17276
17277     if test X"$with_rpath" = X"yes"; then
17278         case "$host" in
17279             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17280                         ;;
17281             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17282                         ;;
17283         esac
17284     else
17285         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
17286     fi
17287     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17288         blibpath_add="${blibpath_add}:${with_skey}/lib"
17289     fi
17290
17291         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292 /* end confdefs.h.  */
17293 #include <skey.h>
17294 _ACEOF
17295 if ac_fn_c_try_cpp "$LINENO"; then :
17296   found=yes
17297 else
17298   found=no
17299 fi
17300 rm -f conftest.err conftest.$ac_ext
17301     else
17302         found=no
17303         O_CPPFLAGS="$CPPFLAGS"
17304         for dir in "" "/usr/local" "/usr/contrib"; do
17305             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17306             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17307 /* end confdefs.h.  */
17308 #include <skey.h>
17309 _ACEOF
17310 if ac_fn_c_try_cpp "$LINENO"; then :
17311   found=yes; break
17312 fi
17313 rm -f conftest.err conftest.$ac_ext
17314         done
17315         if test "$found" = "no" -o -z "$dir"; then
17316             CPPFLAGS="$O_CPPFLAGS"
17317         else
17318
17319     if test X"$with_rpath" = X"yes"; then
17320         case "$host" in
17321             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17322                         ;;
17323             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17324                         ;;
17325         esac
17326     else
17327         LDFLAGS="${LDFLAGS} -L${dir}/lib"
17328     fi
17329     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17330         blibpath_add="${blibpath_add}:${dir}/lib"
17331     fi
17332
17333
17334     if test X"$with_rpath" = X"yes"; then
17335         case "$host" in
17336             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17337                         ;;
17338             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17339                         ;;
17340         esac
17341     else
17342         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17343     fi
17344     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17345         blibpath_add="${blibpath_add}:${dir}/lib"
17346     fi
17347
17348         fi
17349     fi
17350     if test "$found" = "no"; then
17351         { $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
17352 $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;}
17353     fi
17354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
17355 $as_echo_n "checking for main in -lskey... " >&6; }
17356 if test "${ac_cv_lib_skey_main+set}" = set; then :
17357   $as_echo_n "(cached) " >&6
17358 else
17359   ac_check_lib_save_LIBS=$LIBS
17360 LIBS="-lskey  $LIBS"
17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h.  */
17363
17364
17365 int
17366 main ()
17367 {
17368 return main ();
17369   ;
17370   return 0;
17371 }
17372 _ACEOF
17373 if ac_fn_c_try_link "$LINENO"; then :
17374   ac_cv_lib_skey_main=yes
17375 else
17376   ac_cv_lib_skey_main=no
17377 fi
17378 rm -f core conftest.err conftest.$ac_objext \
17379     conftest$ac_exeext conftest.$ac_ext
17380 LIBS=$ac_check_lib_save_LIBS
17381 fi
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
17383 $as_echo "$ac_cv_lib_skey_main" >&6; }
17384 if test "x$ac_cv_lib_skey_main" = x""yes; then :
17385   found=yes
17386 else
17387   { $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
17388 $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;}
17389 fi
17390
17391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
17392 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
17393 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then :
17394   $as_echo_n "(cached) " >&6
17395 else
17396   ac_check_lib_save_LIBS=$LIBS
17397 LIBS="-lskey  $LIBS"
17398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17399 /* end confdefs.h.  */
17400
17401 /* Override any GCC internal prototype to avoid an error.
17402    Use char because int might match the return type of a GCC
17403    builtin and then its argument prototype would still apply.  */
17404 #ifdef __cplusplus
17405 extern "C"
17406 #endif
17407 char skeyaccess ();
17408 int
17409 main ()
17410 {
17411 return skeyaccess ();
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 if ac_fn_c_try_link "$LINENO"; then :
17417   ac_cv_lib_skey_skeyaccess=yes
17418 else
17419   ac_cv_lib_skey_skeyaccess=no
17420 fi
17421 rm -f core conftest.err conftest.$ac_objext \
17422     conftest$ac_exeext conftest.$ac_ext
17423 LIBS=$ac_check_lib_save_LIBS
17424 fi
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
17426 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
17427 if test "x$ac_cv_lib_skey_skeyaccess" = x""yes; then :
17428   $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
17429
17430 fi
17431
17432     LDFLAGS="$O_LDFLAGS"
17433     SUDO_LIBS="${SUDO_LIBS} -lskey"
17434     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17435 fi
17436
17437 if test ${with_opie-'no'} = "yes"; then
17438     O_LDFLAGS="$LDFLAGS"
17439     if test "$with_opie" != "yes"; then
17440         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
17441
17442     if test X"$with_rpath" = X"yes"; then
17443         case "$host" in
17444             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17445                         ;;
17446             *)          LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17447                         ;;
17448         esac
17449     else
17450         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
17451     fi
17452     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17453         blibpath_add="${blibpath_add}:${with_opie}/lib"
17454     fi
17455
17456
17457     if test X"$with_rpath" = X"yes"; then
17458         case "$host" in
17459             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17460                         ;;
17461             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17462                         ;;
17463         esac
17464     else
17465         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
17466     fi
17467     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17468         blibpath_add="${blibpath_add}:${with_opie}/lib"
17469     fi
17470
17471         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h.  */
17473 #include <opie.h>
17474 _ACEOF
17475 if ac_fn_c_try_cpp "$LINENO"; then :
17476   found=yes
17477 else
17478   found=no
17479 fi
17480 rm -f conftest.err conftest.$ac_ext
17481     else
17482         found=no
17483         O_CPPFLAGS="$CPPFLAGS"
17484         for dir in "" "/usr/local" "/usr/contrib"; do
17485             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17486             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487 /* end confdefs.h.  */
17488 #include <opie.h>
17489 _ACEOF
17490 if ac_fn_c_try_cpp "$LINENO"; then :
17491   found=yes; break
17492 fi
17493 rm -f conftest.err conftest.$ac_ext
17494         done
17495         if test "$found" = "no" -o -z "$dir"; then
17496             CPPFLAGS="$O_CPPFLAGS"
17497         else
17498
17499     if test X"$with_rpath" = X"yes"; then
17500         case "$host" in
17501             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17502                         ;;
17503             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17504                         ;;
17505         esac
17506     else
17507         LDFLAGS="${LDFLAGS} -L${dir}/lib"
17508     fi
17509     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17510         blibpath_add="${blibpath_add}:${dir}/lib"
17511     fi
17512
17513
17514     if test X"$with_rpath" = X"yes"; then
17515         case "$host" in
17516             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17517                         ;;
17518             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17519                         ;;
17520         esac
17521     else
17522         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17523     fi
17524     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17525         blibpath_add="${blibpath_add}:${dir}/lib"
17526     fi
17527
17528         fi
17529     fi
17530     if test "$found" = "no"; then
17531         { $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
17532 $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;}
17533     fi
17534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
17535 $as_echo_n "checking for main in -lopie... " >&6; }
17536 if test "${ac_cv_lib_opie_main+set}" = set; then :
17537   $as_echo_n "(cached) " >&6
17538 else
17539   ac_check_lib_save_LIBS=$LIBS
17540 LIBS="-lopie  $LIBS"
17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h.  */
17543
17544
17545 int
17546 main ()
17547 {
17548 return main ();
17549   ;
17550   return 0;
17551 }
17552 _ACEOF
17553 if ac_fn_c_try_link "$LINENO"; then :
17554   ac_cv_lib_opie_main=yes
17555 else
17556   ac_cv_lib_opie_main=no
17557 fi
17558 rm -f core conftest.err conftest.$ac_objext \
17559     conftest$ac_exeext conftest.$ac_ext
17560 LIBS=$ac_check_lib_save_LIBS
17561 fi
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
17563 $as_echo "$ac_cv_lib_opie_main" >&6; }
17564 if test "x$ac_cv_lib_opie_main" = x""yes; then :
17565   found=yes
17566 else
17567   { $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
17568 $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;}
17569 fi
17570
17571     LDFLAGS="$O_LDFLAGS"
17572     SUDO_LIBS="${SUDO_LIBS} -lopie"
17573     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17574 fi
17575
17576 if test ${with_passwd-'no'} != "no"; then
17577                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
17578         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
17579 $as_echo_n "checking for library containing crypt... " >&6; }
17580 if test "${ac_cv_search_crypt+set}" = set; then :
17581   $as_echo_n "(cached) " >&6
17582 else
17583   ac_func_search_save_LIBS=$LIBS
17584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17585 /* end confdefs.h.  */
17586
17587 /* Override any GCC internal prototype to avoid an error.
17588    Use char because int might match the return type of a GCC
17589    builtin and then its argument prototype would still apply.  */
17590 #ifdef __cplusplus
17591 extern "C"
17592 #endif
17593 char crypt ();
17594 int
17595 main ()
17596 {
17597 return crypt ();
17598   ;
17599   return 0;
17600 }
17601 _ACEOF
17602 for ac_lib in '' crypt crypt_d ufc; do
17603   if test -z "$ac_lib"; then
17604     ac_res="none required"
17605   else
17606     ac_res=-l$ac_lib
17607     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17608   fi
17609   if ac_fn_c_try_link "$LINENO"; then :
17610   ac_cv_search_crypt=$ac_res
17611 fi
17612 rm -f core conftest.err conftest.$ac_objext \
17613     conftest$ac_exeext
17614   if test "${ac_cv_search_crypt+set}" = set; then :
17615   break
17616 fi
17617 done
17618 if test "${ac_cv_search_crypt+set}" = set; then :
17619
17620 else
17621   ac_cv_search_crypt=no
17622 fi
17623 rm conftest.$ac_ext
17624 LIBS=$ac_func_search_save_LIBS
17625 fi
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
17627 $as_echo "$ac_cv_search_crypt" >&6; }
17628 ac_res=$ac_cv_search_crypt
17629 if test "$ac_res" != no; then :
17630   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17631   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17632 fi
17633
17634     fi
17635
17636     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
17637         _LIBS="$LIBS"
17638         LIBS="$LIBS $shadow_libs"
17639         found=no
17640         for ac_func in $shadow_funcs
17641 do :
17642   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17644 eval as_val=\$$as_ac_var
17645    if test "x$as_val" = x""yes; then :
17646   cat >>confdefs.h <<_ACEOF
17647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17648 _ACEOF
17649  found=yes
17650 fi
17651 done
17652
17653         if test "$found" = "yes"; then
17654             SUDO_LIBS="$SUDO_LIBS $shadow_libs"
17655         elif test -n "$shadow_libs_optional"; then
17656             LIBS="$LIBS $shadow_libs_optional"
17657             for ac_func in $shadow_funcs
17658 do :
17659   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17661 eval as_val=\$$as_ac_var
17662    if test "x$as_val" = x""yes; then :
17663   cat >>confdefs.h <<_ACEOF
17664 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17665 _ACEOF
17666  found=yes
17667 fi
17668 done
17669
17670             if test "$found" = "yes"; then
17671                 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
17672             fi
17673         fi
17674         if test "$found" = "yes"; then
17675             case "$shadow_funcs" in
17676                 *getprpwnam*) SECUREWARE=1;;
17677             esac
17678             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
17679         else
17680             LIBS="$_LIBS"
17681         fi
17682         CHECKSHADOW=false
17683     fi
17684     if test "$CHECKSHADOW" = "true"; then
17685         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
17686 $as_echo_n "checking for library containing getspnam... " >&6; }
17687 if test "${ac_cv_search_getspnam+set}" = set; then :
17688   $as_echo_n "(cached) " >&6
17689 else
17690   ac_func_search_save_LIBS=$LIBS
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h.  */
17693
17694 /* Override any GCC internal prototype to avoid an error.
17695    Use char because int might match the return type of a GCC
17696    builtin and then its argument prototype would still apply.  */
17697 #ifdef __cplusplus
17698 extern "C"
17699 #endif
17700 char getspnam ();
17701 int
17702 main ()
17703 {
17704 return getspnam ();
17705   ;
17706   return 0;
17707 }
17708 _ACEOF
17709 for ac_lib in '' gen; do
17710   if test -z "$ac_lib"; then
17711     ac_res="none required"
17712   else
17713     ac_res=-l$ac_lib
17714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17715   fi
17716   if ac_fn_c_try_link "$LINENO"; then :
17717   ac_cv_search_getspnam=$ac_res
17718 fi
17719 rm -f core conftest.err conftest.$ac_objext \
17720     conftest$ac_exeext
17721   if test "${ac_cv_search_getspnam+set}" = set; then :
17722   break
17723 fi
17724 done
17725 if test "${ac_cv_search_getspnam+set}" = set; then :
17726
17727 else
17728   ac_cv_search_getspnam=no
17729 fi
17730 rm conftest.$ac_ext
17731 LIBS=$ac_func_search_save_LIBS
17732 fi
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
17734 $as_echo "$ac_cv_search_getspnam" >&6; }
17735 ac_res=$ac_cv_search_getspnam
17736 if test "$ac_res" != no; then :
17737   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17738   $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
17739  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17740 fi
17741
17742     fi
17743     if test "$CHECKSHADOW" = "true"; then
17744         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
17745 $as_echo_n "checking for library containing getprpwnam... " >&6; }
17746 if test "${ac_cv_search_getprpwnam+set}" = set; then :
17747   $as_echo_n "(cached) " >&6
17748 else
17749   ac_func_search_save_LIBS=$LIBS
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h.  */
17752
17753 /* Override any GCC internal prototype to avoid an error.
17754    Use char because int might match the return type of a GCC
17755    builtin and then its argument prototype would still apply.  */
17756 #ifdef __cplusplus
17757 extern "C"
17758 #endif
17759 char getprpwnam ();
17760 int
17761 main ()
17762 {
17763 return getprpwnam ();
17764   ;
17765   return 0;
17766 }
17767 _ACEOF
17768 for ac_lib in '' sec security prot; do
17769   if test -z "$ac_lib"; then
17770     ac_res="none required"
17771   else
17772     ac_res=-l$ac_lib
17773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17774   fi
17775   if ac_fn_c_try_link "$LINENO"; then :
17776   ac_cv_search_getprpwnam=$ac_res
17777 fi
17778 rm -f core conftest.err conftest.$ac_objext \
17779     conftest$ac_exeext
17780   if test "${ac_cv_search_getprpwnam+set}" = set; then :
17781   break
17782 fi
17783 done
17784 if test "${ac_cv_search_getprpwnam+set}" = set; then :
17785
17786 else
17787   ac_cv_search_getprpwnam=no
17788 fi
17789 rm conftest.$ac_ext
17790 LIBS=$ac_func_search_save_LIBS
17791 fi
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
17793 $as_echo "$ac_cv_search_getprpwnam" >&6; }
17794 ac_res=$ac_cv_search_getprpwnam
17795 if test "$ac_res" != no; then :
17796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17797   $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
17798  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17799 fi
17800
17801     fi
17802     if test -n "$SECUREWARE"; then
17803         for ac_func in bigcrypt set_auth_parameters initprivs
17804 do :
17805   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17806 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17807 eval as_val=\$$as_ac_var
17808    if test "x$as_val" = x""yes; then :
17809   cat >>confdefs.h <<_ACEOF
17810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17811 _ACEOF
17812
17813 fi
17814 done
17815
17816         AUTH_OBJS="$AUTH_OBJS secureware.o"
17817     fi
17818 fi
17819
17820 if test ${with_ldap-'no'} != "no"; then
17821     _LDFLAGS="$LDFLAGS"
17822     if test "$with_ldap" != "yes"; then
17823
17824     if test X"$with_rpath" = X"yes"; then
17825         case "$host" in
17826             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
17827                         ;;
17828             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
17829                         ;;
17830         esac
17831     else
17832         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
17833     fi
17834     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17835         blibpath_add="${blibpath_add}:${with_ldap}/lib"
17836     fi
17837
17838
17839     if test X"$with_rpath" = X"yes"; then
17840         case "$host" in
17841             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
17842                         ;;
17843             *)          LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
17844                         ;;
17845         esac
17846     else
17847         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
17848     fi
17849     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17850         blibpath_add="${blibpath_add}:${with_ldap}/lib"
17851     fi
17852
17853         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
17854         with_ldap=yes
17855     fi
17856     SUDO_OBJS="${SUDO_OBJS} ldap.o"
17857     LDAP=""
17858
17859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
17860 $as_echo_n "checking for LDAP libraries... " >&6; }
17861     LDAP_LIBS=""
17862     _LIBS="$LIBS"
17863     found=no
17864     for l in -lldap -llber '-lssl -lcrypto'; do
17865         LIBS="${LIBS} $l"
17866         LDAP_LIBS="${LDAP_LIBS} $l"
17867         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868 /* end confdefs.h.  */
17869 #include <sys/types.h>
17870         #include <lber.h>
17871         #include <ldap.h>
17872 int
17873 main ()
17874 {
17875 (void)ldap_init(0, 0)
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 if ac_fn_c_try_link "$LINENO"; then :
17881   found=yes; break
17882 fi
17883 rm -f core conftest.err conftest.$ac_objext \
17884     conftest$ac_exeext conftest.$ac_ext
17885     done
17886         if test "$found" = "no"; then
17887         LIBS="${_LIBS} -lldap"
17888         LDAP_LIBS="-lldap"
17889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
17890 $as_echo "not found, using -lldap" >&6; }
17891     else
17892         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
17893 $as_echo "$LDAP_LIBS" >&6; }
17894     fi
17895         OLIBS="$LIBS"
17896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
17897 $as_echo_n "checking for library containing ber_set_option... " >&6; }
17898 if test "${ac_cv_search_ber_set_option+set}" = set; then :
17899   $as_echo_n "(cached) " >&6
17900 else
17901   ac_func_search_save_LIBS=$LIBS
17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h.  */
17904
17905 /* Override any GCC internal prototype to avoid an error.
17906    Use char because int might match the return type of a GCC
17907    builtin and then its argument prototype would still apply.  */
17908 #ifdef __cplusplus
17909 extern "C"
17910 #endif
17911 char ber_set_option ();
17912 int
17913 main ()
17914 {
17915 return ber_set_option ();
17916   ;
17917   return 0;
17918 }
17919 _ACEOF
17920 for ac_lib in '' lber; do
17921   if test -z "$ac_lib"; then
17922     ac_res="none required"
17923   else
17924     ac_res=-l$ac_lib
17925     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17926   fi
17927   if ac_fn_c_try_link "$LINENO"; then :
17928   ac_cv_search_ber_set_option=$ac_res
17929 fi
17930 rm -f core conftest.err conftest.$ac_objext \
17931     conftest$ac_exeext
17932   if test "${ac_cv_search_ber_set_option+set}" = set; then :
17933   break
17934 fi
17935 done
17936 if test "${ac_cv_search_ber_set_option+set}" = set; then :
17937
17938 else
17939   ac_cv_search_ber_set_option=no
17940 fi
17941 rm conftest.$ac_ext
17942 LIBS=$ac_func_search_save_LIBS
17943 fi
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
17945 $as_echo "$ac_cv_search_ber_set_option" >&6; }
17946 ac_res=$ac_cv_search_ber_set_option
17947 if test "$ac_res" != no; then :
17948   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17949   found=yes
17950 else
17951   found=no
17952 fi
17953
17954     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
17955         LDAP_LIBS="$LDAP_LIBS -llber"
17956     fi
17957         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
17958 $as_echo_n "checking whether lber.h is needed... " >&6; }
17959     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h.  */
17961 #include <sys/types.h>
17962     #include <ldap.h>
17963 int
17964 main ()
17965 {
17966 (void)ldap_init(0, 0)
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 if ac_fn_c_try_link "$LINENO"; then :
17972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17973 $as_echo "no" >&6; }
17974 else
17975
17976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17977 $as_echo "yes" >&6; }
17978     $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
17979
17980 fi
17981 rm -f core conftest.err conftest.$ac_objext \
17982     conftest$ac_exeext conftest.$ac_ext
17983
17984     for ac_header in sasl/sasl.h sasl.h
17985 do :
17986   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17987 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17988 eval as_val=\$$as_ac_Header
17989    if test "x$as_val" = x""yes; then :
17990   cat >>confdefs.h <<_ACEOF
17991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17992 _ACEOF
17993  for ac_func in ldap_sasl_interactive_bind_s
17994 do :
17995   ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
17996 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = x""yes; then :
17997   cat >>confdefs.h <<_ACEOF
17998 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
17999 _ACEOF
18000
18001 fi
18002 done
18003
18004 else
18005   break
18006 fi
18007
18008 done
18009
18010     for ac_header in ldap_ssl.h mps/ldap_ssl.h
18011 do :
18012   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18013 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
18014 "
18015 eval as_val=\$$as_ac_Header
18016    if test "x$as_val" = x""yes; then :
18017   cat >>confdefs.h <<_ACEOF
18018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18019 _ACEOF
18020  break
18021 fi
18022
18023 done
18024
18025     for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
18026 do :
18027   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18029 eval as_val=\$$as_ac_var
18030    if test "x$as_val" = x""yes; then :
18031   cat >>confdefs.h <<_ACEOF
18032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18033 _ACEOF
18034
18035 fi
18036 done
18037
18038
18039     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
18040         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
18041 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
18042 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then :
18043   $as_echo_n "(cached) " >&6
18044 else
18045   ac_check_lib_save_LIBS=$LIBS
18046 LIBS="-lgssapi  $LIBS"
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h.  */
18049
18050 /* Override any GCC internal prototype to avoid an error.
18051    Use char because int might match the return type of a GCC
18052    builtin and then its argument prototype would still apply.  */
18053 #ifdef __cplusplus
18054 extern "C"
18055 #endif
18056 char gss_krb5_ccache_name ();
18057 int
18058 main ()
18059 {
18060 return gss_krb5_ccache_name ();
18061   ;
18062   return 0;
18063 }
18064 _ACEOF
18065 if ac_fn_c_try_link "$LINENO"; then :
18066   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
18067 else
18068   ac_cv_lib_gssapi_gss_krb5_ccache_name=no
18069 fi
18070 rm -f core conftest.err conftest.$ac_objext \
18071     conftest$ac_exeext conftest.$ac_ext
18072 LIBS=$ac_check_lib_save_LIBS
18073 fi
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
18075 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
18076 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = x""yes; then :
18077   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18078
18079             LDAP_LIBS="${LDAP_LIBS} -lgssapi"
18080 else
18081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
18082 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
18083 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then :
18084   $as_echo_n "(cached) " >&6
18085 else
18086   ac_check_lib_save_LIBS=$LIBS
18087 LIBS="-lgssapi_krb5  $LIBS"
18088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h.  */
18090
18091 /* Override any GCC internal prototype to avoid an error.
18092    Use char because int might match the return type of a GCC
18093    builtin and then its argument prototype would still apply.  */
18094 #ifdef __cplusplus
18095 extern "C"
18096 #endif
18097 char gss_krb5_ccache_name ();
18098 int
18099 main ()
18100 {
18101 return gss_krb5_ccache_name ();
18102   ;
18103   return 0;
18104 }
18105 _ACEOF
18106 if ac_fn_c_try_link "$LINENO"; then :
18107   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
18108 else
18109   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
18110 fi
18111 rm -f core conftest.err conftest.$ac_objext \
18112     conftest$ac_exeext conftest.$ac_ext
18113 LIBS=$ac_check_lib_save_LIBS
18114 fi
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
18116 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
18117 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = x""yes; then :
18118   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18119
18120                 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
18121 fi
18122
18123
18124 fi
18125
18126
18127         # gssapi headers may be separate or part of Kerberos V
18128         found=no
18129         O_CPPFLAGS="$CPPFLAGS"
18130         for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
18131             test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18132             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h.  */
18134 #include <gssapi/gssapi.h>
18135 _ACEOF
18136 if ac_fn_c_try_cpp "$LINENO"; then :
18137   found="gssapi/gssapi.h"; break
18138 else
18139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h.  */
18141 #include <gssapi.h>
18142 _ACEOF
18143 if ac_fn_c_try_cpp "$LINENO"; then :
18144   found="gssapi.h"; break
18145 fi
18146 rm -f conftest.err conftest.$ac_ext
18147 fi
18148 rm -f conftest.err conftest.$ac_ext
18149         done
18150         if test X"$found" != X"no"; then
18151             for ac_header in $found
18152 do :
18153   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18154 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18155 eval as_val=\$$as_ac_Header
18156    if test "x$as_val" = x""yes; then :
18157   cat >>confdefs.h <<_ACEOF
18158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18159 _ACEOF
18160
18161 fi
18162
18163 done
18164
18165             if test X"$found" = X"gssapi/gssapi.h"; then
18166                 for ac_header in gssapi/gssapi_krb5.h
18167 do :
18168   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
18169 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = x""yes; then :
18170   cat >>confdefs.h <<_ACEOF
18171 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
18172 _ACEOF
18173
18174 fi
18175
18176 done
18177
18178             fi
18179         else
18180             CPPFLAGS="$O_CPPFLAGS"
18181             { $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
18182 $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;}
18183         fi
18184     fi
18185
18186     SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
18187     LIBS="$_LIBS"
18188     LDFLAGS="$_LDFLAGS"
18189 fi
18190
18191 if test X"$LIBVAS_RPATH" != X""; then
18192     if test -n "$blibpath"; then
18193         blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
18194     else
18195         case "$host" in
18196             *-*-hpux*)  LDFLAGS="$LDFLAGS -Wl,+b,$LIBVAS_RPATH"
18197                         ;;
18198             *)          LDFLAGS="$LDFLAGS -Wl,-R$LIBVAS_RPATH"
18199                         ;;
18200         esac
18201     fi
18202 fi
18203
18204 if test -n "$blibpath"; then
18205     if test -n "$blibpath_add"; then
18206         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
18207     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
18208         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
18209     fi
18210 fi
18211
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
18213 $as_echo_n "checking for log file location... " >&6; }
18214 if test -n "$with_logpath"; then
18215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
18216 $as_echo "$with_logpath" >&6; }
18217     cat >>confdefs.h <<EOF
18218 #define _PATH_SUDO_LOGFILE "$with_logpath"
18219 EOF
18220
18221 elif test -d "/var/log"; then
18222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
18223 $as_echo "/var/log/sudo.log" >&6; }
18224     cat >>confdefs.h <<\EOF
18225 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
18226 EOF
18227
18228 elif test -d "/var/adm"; then
18229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
18230 $as_echo "/var/adm/sudo.log" >&6; }
18231     cat >>confdefs.h <<\EOF
18232 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
18233 EOF
18234
18235 elif test -d "/usr/adm"; then
18236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
18237 $as_echo "/usr/adm/sudo.log" >&6; }
18238     cat >>confdefs.h <<\EOF
18239 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
18240 EOF
18241
18242 else
18243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
18244 $as_echo "unknown" >&6; }
18245 fi
18246
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
18248 $as_echo_n "checking for timestamp file location... " >&6; }
18249 timedir="$with_timedir"
18250 if test -z "$timedir"; then
18251     for d in /var/db /var/lib /var/adm /usr/adm; do
18252         if test -d "$d"; then
18253             timedir="$d/sudo"
18254             break
18255         fi
18256     done
18257 fi
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
18259 $as_echo "$timedir" >&6; }
18260 cat >>confdefs.h <<EOF
18261 #define _PATH_SUDO_TIMEDIR "$timedir"
18262 EOF
18263
18264
18265
18266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
18267 $as_echo_n "checking for I/O log dir location... " >&6; }
18268     if test "${with_iologdir-yes}" != "yes"; then
18269         :
18270     elif test -d "/var/log"; then
18271         with_iologdir="/var/log/sudo-io"
18272     elif test -d "/var/adm"; then
18273         with_iologdir="/var/adm/sudo-io"
18274     else
18275         with_iologdir="/usr/adm/sudo-io"
18276     fi
18277     if test "${with_iologdir-yes}" != "no"; then
18278         cat >>confdefs.h <<EOF
18279 #define _PATH_SUDO_IO_LOGDIR "$with_iologdir"
18280 EOF
18281
18282     fi
18283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_iologdir" >&5
18284 $as_echo "$with_iologdir" >&6; }
18285
18286
18287 if test "${with_iologdir-yes}" != "no"; then
18288     # Require POSIX job control for I/O log support
18289     for ac_func in tcsetpgrp
18290 do :
18291   ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
18292 if test "x$ac_cv_func_tcsetpgrp" = x""yes; then :
18293   cat >>confdefs.h <<_ACEOF
18294 #define HAVE_TCSETPGRP 1
18295 _ACEOF
18296
18297         SUDO_OBJS="${SUDO_OBJS} exec_pty.o get_pty.o iolog.o"
18298         PROGS="$PROGS sudoreplay"
18299         REPLAY=""
18300
18301         # Check whether --enable-zlib was given.
18302 if test "${enable_zlib+set}" = set; then :
18303   enableval=$enable_zlib;  case "$enable_zlib" in
18304             yes)    $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18305
18306                     ZLIB="-lz"
18307                     ;;
18308             no)     ;;
18309             *)      $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18310
18311                     CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
18312
18313     if test X"$with_rpath" = X"yes"; then
18314         case "$host" in
18315             *-*-hpux*)  ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
18316                         ;;
18317             *)          ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
18318                         ;;
18319         esac
18320     else
18321         ZLIB="${ZLIB} -L$enable_zlib/lib"
18322     fi
18323     if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
18324         blibpath_add="${blibpath_add}:$enable_zlib/lib"
18325     fi
18326
18327                     ZLIB="${ZLIB} -lz"
18328                     ;;
18329           esac
18330
18331 fi
18332
18333         if test X"$enable_zlib" = X""; then
18334             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18335 $as_echo_n "checking for gzdopen in -lz... " >&6; }
18336 if test "${ac_cv_lib_z_gzdopen+set}" = set; then :
18337   $as_echo_n "(cached) " >&6
18338 else
18339   ac_check_lib_save_LIBS=$LIBS
18340 LIBS="-lz  $LIBS"
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h.  */
18343
18344 /* Override any GCC internal prototype to avoid an error.
18345    Use char because int might match the return type of a GCC
18346    builtin and then its argument prototype would still apply.  */
18347 #ifdef __cplusplus
18348 extern "C"
18349 #endif
18350 char gzdopen ();
18351 int
18352 main ()
18353 {
18354 return gzdopen ();
18355   ;
18356   return 0;
18357 }
18358 _ACEOF
18359 if ac_fn_c_try_link "$LINENO"; then :
18360   ac_cv_lib_z_gzdopen=yes
18361 else
18362   ac_cv_lib_z_gzdopen=no
18363 fi
18364 rm -f core conftest.err conftest.$ac_objext \
18365     conftest$ac_exeext conftest.$ac_ext
18366 LIBS=$ac_check_lib_save_LIBS
18367 fi
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18369 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18370 if test "x$ac_cv_lib_z_gzdopen" = x""yes; then :
18371
18372                 for ac_header in zlib.h
18373 do :
18374   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18375 if test "x$ac_cv_header_zlib_h" = x""yes; then :
18376   cat >>confdefs.h <<_ACEOF
18377 #define HAVE_ZLIB_H 1
18378 _ACEOF
18379  ZLIB="-lz"
18380 fi
18381
18382 done
18383
18384
18385 fi
18386
18387         fi
18388
18389 else
18390
18391         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&5
18392 $as_echo "$as_me: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&2;}
18393         with_iologdir=no
18394
18395 fi
18396 done
18397
18398 fi
18399
18400 case "$with_passwd" in
18401 yes|maybe)
18402     AUTH_OBJS="$AUTH_OBJS passwd.o"
18403     ;;
18404 *)
18405     $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
18406
18407     if test -z "$AUTH_OBJS"; then
18408         as_fn_error "no authentication methods defined." "$LINENO" 5
18409     fi
18410     ;;
18411 esac
18412 AUTH_OBJS=${AUTH_OBJS# }
18413 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
18415 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
18416
18417 if test -n "$LIBS"; then
18418     L="$LIBS"
18419     LIBS=
18420     for l in ${L}; do
18421         dupe=0
18422         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
18423             test $l = $sl && dupe=1
18424         done
18425         test $dupe = 0 && LIBS="${LIBS} $l"
18426     done
18427 fi
18428
18429 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
18430
18431 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
18432     oexec_prefix="$exec_prefix"
18433     if test "$exec_prefix" = '$(prefix)'; then
18434         if test "$prefix" = "NONE"; then
18435             exec_prefix="$ac_default_prefix"
18436         else
18437             exec_prefix="$prefix"
18438         fi
18439     fi
18440     if test X"$with_noexec" != X"no"; then
18441         PROGS="${PROGS} libsudo_noexec.la"
18442         INSTALL_NOEXEC="install-noexec"
18443
18444         eval noexec_file="$with_noexec"
18445         cat >>confdefs.h <<EOF
18446 #define _PATH_SUDO_NOEXEC "$noexec_file"
18447 EOF
18448
18449     fi
18450     if test X"$with_selinux" != X"no"; then
18451         eval sesh_file="$libexecdir/sesh"
18452         cat >>confdefs.h <<EOF
18453 #define _PATH_SUDO_SESH "$sesh_file"
18454 EOF
18455
18456     fi
18457     exec_prefix="$oexec_prefix"
18458 fi
18459
18460 if test X"$prefix" = X"NONE"; then
18461     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
18462 else
18463     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
18464 fi
18465 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
18466 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
18467 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
18468 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
18469 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
18470 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
18471 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
18472
18473 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h sudoers"
18474
18475 cat >confcache <<\_ACEOF
18476 # This file is a shell script that caches the results of configure
18477 # tests run on this system so they can be shared between configure
18478 # scripts and configure runs, see configure's option --config-cache.
18479 # It is not useful on other systems.  If it contains results you don't
18480 # want to keep, you may remove or edit it.
18481 #
18482 # config.status only pays attention to the cache file if you give it
18483 # the --recheck option to rerun configure.
18484 #
18485 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18486 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18487 # following values.
18488
18489 _ACEOF
18490
18491 # The following way of writing the cache mishandles newlines in values,
18492 # but we know of no workaround that is simple, portable, and efficient.
18493 # So, we kill variables containing newlines.
18494 # Ultrix sh set writes to stderr and can't be redirected directly,
18495 # and sets the high bit in the cache file unless we assign to the vars.
18496 (
18497   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18498     eval ac_val=\$$ac_var
18499     case $ac_val in #(
18500     *${as_nl}*)
18501       case $ac_var in #(
18502       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18503 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18504       esac
18505       case $ac_var in #(
18506       _ | IFS | as_nl) ;; #(
18507       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18508       *) { eval $ac_var=; unset $ac_var;} ;;
18509       esac ;;
18510     esac
18511   done
18512
18513   (set) 2>&1 |
18514     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18515     *${as_nl}ac_space=\ *)
18516       # `set' does not quote correctly, so add quotes: double-quote
18517       # substitution turns \\\\ into \\, and sed turns \\ into \.
18518       sed -n \
18519         "s/'/'\\\\''/g;
18520           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18521       ;; #(
18522     *)
18523       # `set' quotes correctly as required by POSIX, so do not add quotes.
18524       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18525       ;;
18526     esac |
18527     sort
18528 ) |
18529   sed '
18530      /^ac_cv_env_/b end
18531      t clear
18532      :clear
18533      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18534      t end
18535      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18536      :end' >>confcache
18537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18538   if test -w "$cache_file"; then
18539     test "x$cache_file" != "x/dev/null" &&
18540       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18541 $as_echo "$as_me: updating cache $cache_file" >&6;}
18542     cat confcache >$cache_file
18543   else
18544     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18545 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18546   fi
18547 fi
18548 rm -f confcache
18549
18550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18551 # Let make expand exec_prefix.
18552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18553
18554 DEFS=-DHAVE_CONFIG_H
18555
18556 ac_libobjs=
18557 ac_ltlibobjs=
18558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18559   # 1. Remove the extension, and $U if already installed.
18560   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18561   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18562   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18563   #    will be set to the directory where LIBOBJS objects are built.
18564   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18565   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18566 done
18567 LIBOBJS=$ac_libobjs
18568
18569 LTLIBOBJS=$ac_ltlibobjs
18570
18571
18572
18573 : ${CONFIG_STATUS=./config.status}
18574 ac_write_fail=0
18575 ac_clean_files_save=$ac_clean_files
18576 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18578 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18579 as_write_fail=0
18580 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18581 #! $SHELL
18582 # Generated by $as_me.
18583 # Run this file to recreate the current configuration.
18584 # Compiler output produced by configure, useful for debugging
18585 # configure, is in config.log if it exists.
18586
18587 debug=false
18588 ac_cs_recheck=false
18589 ac_cs_silent=false
18590
18591 SHELL=\${CONFIG_SHELL-$SHELL}
18592 export SHELL
18593 _ASEOF
18594 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18595 ## -------------------- ##
18596 ## M4sh Initialization. ##
18597 ## -------------------- ##
18598
18599 # Be more Bourne compatible
18600 DUALCASE=1; export DUALCASE # for MKS sh
18601 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18602   emulate sh
18603   NULLCMD=:
18604   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18605   # is contrary to our usage.  Disable this feature.
18606   alias -g '${1+"$@"}'='"$@"'
18607   setopt NO_GLOB_SUBST
18608 else
18609   case `(set -o) 2>/dev/null` in #(
18610   *posix*) :
18611     set -o posix ;; #(
18612   *) :
18613      ;;
18614 esac
18615 fi
18616
18617
18618 as_nl='
18619 '
18620 export as_nl
18621 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18622 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18623 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18624 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18625 # Prefer a ksh shell builtin over an external printf program on Solaris,
18626 # but without wasting forks for bash or zsh.
18627 if test -z "$BASH_VERSION$ZSH_VERSION" \
18628     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18629   as_echo='print -r --'
18630   as_echo_n='print -rn --'
18631 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18632   as_echo='printf %s\n'
18633   as_echo_n='printf %s'
18634 else
18635   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18636     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18637     as_echo_n='/usr/ucb/echo -n'
18638   else
18639     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18640     as_echo_n_body='eval
18641       arg=$1;
18642       case $arg in #(
18643       *"$as_nl"*)
18644         expr "X$arg" : "X\\(.*\\)$as_nl";
18645         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18646       esac;
18647       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18648     '
18649     export as_echo_n_body
18650     as_echo_n='sh -c $as_echo_n_body as_echo'
18651   fi
18652   export as_echo_body
18653   as_echo='sh -c $as_echo_body as_echo'
18654 fi
18655
18656 # The user is always right.
18657 if test "${PATH_SEPARATOR+set}" != set; then
18658   PATH_SEPARATOR=:
18659   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18660     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18661       PATH_SEPARATOR=';'
18662   }
18663 fi
18664
18665
18666 # IFS
18667 # We need space, tab and new line, in precisely that order.  Quoting is
18668 # there to prevent editors from complaining about space-tab.
18669 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18670 # splitting by setting IFS to empty value.)
18671 IFS=" ""        $as_nl"
18672
18673 # Find who we are.  Look in the path if we contain no directory separator.
18674 case $0 in #((
18675   *[\\/]* ) as_myself=$0 ;;
18676   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18677 for as_dir in $PATH
18678 do
18679   IFS=$as_save_IFS
18680   test -z "$as_dir" && as_dir=.
18681     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18682   done
18683 IFS=$as_save_IFS
18684
18685      ;;
18686 esac
18687 # We did not find ourselves, most probably we were run as `sh COMMAND'
18688 # in which case we are not to be found in the path.
18689 if test "x$as_myself" = x; then
18690   as_myself=$0
18691 fi
18692 if test ! -f "$as_myself"; then
18693   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18694   exit 1
18695 fi
18696
18697 # Unset variables that we do not need and which cause bugs (e.g. in
18698 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18699 # suppresses any "Segmentation fault" message there.  '((' could
18700 # trigger a bug in pdksh 5.2.14.
18701 for as_var in BASH_ENV ENV MAIL MAILPATH
18702 do eval test x\${$as_var+set} = xset \
18703   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18704 done
18705 PS1='$ '
18706 PS2='> '
18707 PS4='+ '
18708
18709 # NLS nuisances.
18710 LC_ALL=C
18711 export LC_ALL
18712 LANGUAGE=C
18713 export LANGUAGE
18714
18715 # CDPATH.
18716 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18717
18718
18719 # as_fn_error ERROR [LINENO LOG_FD]
18720 # ---------------------------------
18721 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18722 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18723 # script with status $?, using 1 if that was 0.
18724 as_fn_error ()
18725 {
18726   as_status=$?; test $as_status -eq 0 && as_status=1
18727   if test "$3"; then
18728     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18729     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18730   fi
18731   $as_echo "$as_me: error: $1" >&2
18732   as_fn_exit $as_status
18733 } # as_fn_error
18734
18735
18736 # as_fn_set_status STATUS
18737 # -----------------------
18738 # Set $? to STATUS, without forking.
18739 as_fn_set_status ()
18740 {
18741   return $1
18742 } # as_fn_set_status
18743
18744 # as_fn_exit STATUS
18745 # -----------------
18746 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18747 as_fn_exit ()
18748 {
18749   set +e
18750   as_fn_set_status $1
18751   exit $1
18752 } # as_fn_exit
18753
18754 # as_fn_unset VAR
18755 # ---------------
18756 # Portably unset VAR.
18757 as_fn_unset ()
18758 {
18759   { eval $1=; unset $1;}
18760 }
18761 as_unset=as_fn_unset
18762 # as_fn_append VAR VALUE
18763 # ----------------------
18764 # Append the text in VALUE to the end of the definition contained in VAR. Take
18765 # advantage of any shell optimizations that allow amortized linear growth over
18766 # repeated appends, instead of the typical quadratic growth present in naive
18767 # implementations.
18768 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18769   eval 'as_fn_append ()
18770   {
18771     eval $1+=\$2
18772   }'
18773 else
18774   as_fn_append ()
18775   {
18776     eval $1=\$$1\$2
18777   }
18778 fi # as_fn_append
18779
18780 # as_fn_arith ARG...
18781 # ------------------
18782 # Perform arithmetic evaluation on the ARGs, and store the result in the
18783 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18784 # must be portable across $(()) and expr.
18785 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18786   eval 'as_fn_arith ()
18787   {
18788     as_val=$(( $* ))
18789   }'
18790 else
18791   as_fn_arith ()
18792   {
18793     as_val=`expr "$@" || test $? -eq 1`
18794   }
18795 fi # as_fn_arith
18796
18797
18798 if expr a : '\(a\)' >/dev/null 2>&1 &&
18799    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18800   as_expr=expr
18801 else
18802   as_expr=false
18803 fi
18804
18805 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18806   as_basename=basename
18807 else
18808   as_basename=false
18809 fi
18810
18811 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18812   as_dirname=dirname
18813 else
18814   as_dirname=false
18815 fi
18816
18817 as_me=`$as_basename -- "$0" ||
18818 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18819          X"$0" : 'X\(//\)$' \| \
18820          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18821 $as_echo X/"$0" |
18822     sed '/^.*\/\([^/][^/]*\)\/*$/{
18823             s//\1/
18824             q
18825           }
18826           /^X\/\(\/\/\)$/{
18827             s//\1/
18828             q
18829           }
18830           /^X\/\(\/\).*/{
18831             s//\1/
18832             q
18833           }
18834           s/.*/./; q'`
18835
18836 # Avoid depending upon Character Ranges.
18837 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18838 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18839 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18840 as_cr_digits='0123456789'
18841 as_cr_alnum=$as_cr_Letters$as_cr_digits
18842
18843 ECHO_C= ECHO_N= ECHO_T=
18844 case `echo -n x` in #(((((
18845 -n*)
18846   case `echo 'xy\c'` in
18847   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18848   xy)  ECHO_C='\c';;
18849   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18850        ECHO_T=' ';;
18851   esac;;
18852 *)
18853   ECHO_N='-n';;
18854 esac
18855
18856 rm -f conf$$ conf$$.exe conf$$.file
18857 if test -d conf$$.dir; then
18858   rm -f conf$$.dir/conf$$.file
18859 else
18860   rm -f conf$$.dir
18861   mkdir conf$$.dir 2>/dev/null
18862 fi
18863 if (echo >conf$$.file) 2>/dev/null; then
18864   if ln -s conf$$.file conf$$ 2>/dev/null; then
18865     as_ln_s='ln -s'
18866     # ... but there are two gotchas:
18867     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18868     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18869     # In both cases, we have to default to `cp -p'.
18870     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18871       as_ln_s='cp -p'
18872   elif ln conf$$.file conf$$ 2>/dev/null; then
18873     as_ln_s=ln
18874   else
18875     as_ln_s='cp -p'
18876   fi
18877 else
18878   as_ln_s='cp -p'
18879 fi
18880 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18881 rmdir conf$$.dir 2>/dev/null
18882
18883
18884 # as_fn_mkdir_p
18885 # -------------
18886 # Create "$as_dir" as a directory, including parents if necessary.
18887 as_fn_mkdir_p ()
18888 {
18889
18890   case $as_dir in #(
18891   -*) as_dir=./$as_dir;;
18892   esac
18893   test -d "$as_dir" || eval $as_mkdir_p || {
18894     as_dirs=
18895     while :; do
18896       case $as_dir in #(
18897       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18898       *) as_qdir=$as_dir;;
18899       esac
18900       as_dirs="'$as_qdir' $as_dirs"
18901       as_dir=`$as_dirname -- "$as_dir" ||
18902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18903          X"$as_dir" : 'X\(//\)[^/]' \| \
18904          X"$as_dir" : 'X\(//\)$' \| \
18905          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18906 $as_echo X"$as_dir" |
18907     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18908             s//\1/
18909             q
18910           }
18911           /^X\(\/\/\)[^/].*/{
18912             s//\1/
18913             q
18914           }
18915           /^X\(\/\/\)$/{
18916             s//\1/
18917             q
18918           }
18919           /^X\(\/\).*/{
18920             s//\1/
18921             q
18922           }
18923           s/.*/./; q'`
18924       test -d "$as_dir" && break
18925     done
18926     test -z "$as_dirs" || eval "mkdir $as_dirs"
18927   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18928
18929
18930 } # as_fn_mkdir_p
18931 if mkdir -p . 2>/dev/null; then
18932   as_mkdir_p='mkdir -p "$as_dir"'
18933 else
18934   test -d ./-p && rmdir ./-p
18935   as_mkdir_p=false
18936 fi
18937
18938 if test -x / >/dev/null 2>&1; then
18939   as_test_x='test -x'
18940 else
18941   if ls -dL / >/dev/null 2>&1; then
18942     as_ls_L_option=L
18943   else
18944     as_ls_L_option=
18945   fi
18946   as_test_x='
18947     eval sh -c '\''
18948       if test -d "$1"; then
18949         test -d "$1/.";
18950       else
18951         case $1 in #(
18952         -*)set "./$1";;
18953         esac;
18954         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18955         ???[sx]*):;;*)false;;esac;fi
18956     '\'' sh
18957   '
18958 fi
18959 as_executable_p=$as_test_x
18960
18961 # Sed expression to map a string onto a valid CPP name.
18962 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18963
18964 # Sed expression to map a string onto a valid variable name.
18965 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18966
18967
18968 exec 6>&1
18969 ## ----------------------------------- ##
18970 ## Main body of $CONFIG_STATUS script. ##
18971 ## ----------------------------------- ##
18972 _ASEOF
18973 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18974
18975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18976 # Save the log message, to keep $0 and so on meaningful, and to
18977 # report actual input values of CONFIG_FILES etc. instead of their
18978 # values after options handling.
18979 ac_log="
18980 This file was extended by sudo $as_me 1.7.4p6, which was
18981 generated by GNU Autoconf 2.65.  Invocation command line was
18982
18983   CONFIG_FILES    = $CONFIG_FILES
18984   CONFIG_HEADERS  = $CONFIG_HEADERS
18985   CONFIG_LINKS    = $CONFIG_LINKS
18986   CONFIG_COMMANDS = $CONFIG_COMMANDS
18987   $ $0 $@
18988
18989 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18990 "
18991
18992 _ACEOF
18993
18994 case $ac_config_files in *"
18995 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18996 esac
18997
18998 case $ac_config_headers in *"
18999 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19000 esac
19001
19002
19003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19004 # Files that config.status was made for.
19005 config_files="$ac_config_files"
19006 config_headers="$ac_config_headers"
19007 config_commands="$ac_config_commands"
19008
19009 _ACEOF
19010
19011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19012 ac_cs_usage="\
19013 \`$as_me' instantiates files and other configuration actions
19014 from templates according to the current configuration.  Unless the files
19015 and actions are specified as TAGs, all are instantiated by default.
19016
19017 Usage: $0 [OPTION]... [TAG]...
19018
19019   -h, --help       print this help, then exit
19020   -V, --version    print version number and configuration settings, then exit
19021       --config     print configuration, then exit
19022   -q, --quiet, --silent
19023                    do not print progress messages
19024   -d, --debug      don't remove temporary files
19025       --recheck    update $as_me by reconfiguring in the same conditions
19026       --file=FILE[:TEMPLATE]
19027                    instantiate the configuration file FILE
19028       --header=FILE[:TEMPLATE]
19029                    instantiate the configuration header FILE
19030
19031 Configuration files:
19032 $config_files
19033
19034 Configuration headers:
19035 $config_headers
19036
19037 Configuration commands:
19038 $config_commands
19039
19040 Report bugs to <http://www.sudo.ws/bugs/>."
19041
19042 _ACEOF
19043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19044 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19045 ac_cs_version="\\
19046 sudo config.status 1.7.4p6
19047 configured by $0, generated by GNU Autoconf 2.65,
19048   with options \\"\$ac_cs_config\\"
19049
19050 Copyright (C) 2009 Free Software Foundation, Inc.
19051 This config.status script is free software; the Free Software Foundation
19052 gives unlimited permission to copy, distribute and modify it."
19053
19054 ac_pwd='$ac_pwd'
19055 srcdir='$srcdir'
19056 test -n "\$AWK" || AWK=awk
19057 _ACEOF
19058
19059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19060 # The default lists apply if the user does not specify any file.
19061 ac_need_defaults=:
19062 while test $# != 0
19063 do
19064   case $1 in
19065   --*=*)
19066     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19067     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19068     ac_shift=:
19069     ;;
19070   *)
19071     ac_option=$1
19072     ac_optarg=$2
19073     ac_shift=shift
19074     ;;
19075   esac
19076
19077   case $ac_option in
19078   # Handling of the options.
19079   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19080     ac_cs_recheck=: ;;
19081   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19082     $as_echo "$ac_cs_version"; exit ;;
19083   --config | --confi | --conf | --con | --co | --c )
19084     $as_echo "$ac_cs_config"; exit ;;
19085   --debug | --debu | --deb | --de | --d | -d )
19086     debug=: ;;
19087   --file | --fil | --fi | --f )
19088     $ac_shift
19089     case $ac_optarg in
19090     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19091     esac
19092     as_fn_append CONFIG_FILES " '$ac_optarg'"
19093     ac_need_defaults=false;;
19094   --header | --heade | --head | --hea )
19095     $ac_shift
19096     case $ac_optarg in
19097     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19098     esac
19099     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19100     ac_need_defaults=false;;
19101   --he | --h)
19102     # Conflict between --help and --header
19103     as_fn_error "ambiguous option: \`$1'
19104 Try \`$0 --help' for more information.";;
19105   --help | --hel | -h )
19106     $as_echo "$ac_cs_usage"; exit ;;
19107   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19108   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19109     ac_cs_silent=: ;;
19110
19111   # This is an error.
19112   -*) as_fn_error "unrecognized option: \`$1'
19113 Try \`$0 --help' for more information." ;;
19114
19115   *) as_fn_append ac_config_targets " $1"
19116      ac_need_defaults=false ;;
19117
19118   esac
19119   shift
19120 done
19121
19122 ac_configure_extra_args=
19123
19124 if $ac_cs_silent; then
19125   exec 6>/dev/null
19126   ac_configure_extra_args="$ac_configure_extra_args --silent"
19127 fi
19128
19129 _ACEOF
19130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19131 if \$ac_cs_recheck; then
19132   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19133   shift
19134   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19135   CONFIG_SHELL='$SHELL'
19136   export CONFIG_SHELL
19137   exec "\$@"
19138 fi
19139
19140 _ACEOF
19141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19142 exec 5>>config.log
19143 {
19144   echo
19145   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19146 ## Running $as_me. ##
19147 _ASBOX
19148   $as_echo "$ac_log"
19149 } >&5
19150
19151 _ACEOF
19152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19153 #
19154 # INIT-COMMANDS
19155 #
19156
19157
19158 # The HP-UX ksh and POSIX shell print the target directory to stdout
19159 # if CDPATH is set.
19160 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19161
19162 sed_quote_subst='$sed_quote_subst'
19163 double_quote_subst='$double_quote_subst'
19164 delay_variable_subst='$delay_variable_subst'
19165 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19166 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19167 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19168 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19169 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19170 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19171 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19172 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19173 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19174 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19175 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19176 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19177 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19178 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19179 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19180 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19181 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19182 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19183 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19184 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19185 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19186 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19187 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19188 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19189 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19190 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19191 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19192 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19193 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19194 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19195 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19196 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19197 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19198 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19199 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19200 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19201 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19202 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19203 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19204 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19205 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19206 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19207 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19208 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19209 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"`'
19210 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"`'
19211 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19212 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19213 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19214 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19215 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19216 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19217 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19218 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19219 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19220 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19221 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19222 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19223 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19224 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19225 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19226 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19227 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19228 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19229 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19230 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19231 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19232 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19233 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19234 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19235 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19236 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19237 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19238 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19239 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19240 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19241 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19242 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19243 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19244 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19245 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19246 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19247 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19248 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19249 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19250 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19251 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19252 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19253 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19254 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19255 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19256 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19257 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19258 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19259 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19260 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19261 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19262 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19263 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19264 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19265 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19266 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19267 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19268 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19269 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19270 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19271 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19272 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19273 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19274 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19275 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19276 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19277 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19278 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19279 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19280 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19281 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19282 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19283
19284 LTCC='$LTCC'
19285 LTCFLAGS='$LTCFLAGS'
19286 compiler='$compiler_DEFAULT'
19287
19288 # Quote evaled strings.
19289 for var in SED \
19290 GREP \
19291 EGREP \
19292 FGREP \
19293 LD \
19294 NM \
19295 LN_S \
19296 lt_SP2NL \
19297 lt_NL2SP \
19298 reload_flag \
19299 OBJDUMP \
19300 deplibs_check_method \
19301 file_magic_cmd \
19302 AR \
19303 AR_FLAGS \
19304 STRIP \
19305 RANLIB \
19306 CC \
19307 CFLAGS \
19308 compiler \
19309 lt_cv_sys_global_symbol_pipe \
19310 lt_cv_sys_global_symbol_to_cdecl \
19311 lt_cv_sys_global_symbol_to_c_name_address \
19312 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19313 SHELL \
19314 ECHO \
19315 lt_prog_compiler_no_builtin_flag \
19316 lt_prog_compiler_wl \
19317 lt_prog_compiler_pic \
19318 lt_prog_compiler_static \
19319 lt_cv_prog_compiler_c_o \
19320 need_locks \
19321 DSYMUTIL \
19322 NMEDIT \
19323 LIPO \
19324 OTOOL \
19325 OTOOL64 \
19326 shrext_cmds \
19327 export_dynamic_flag_spec \
19328 whole_archive_flag_spec \
19329 compiler_needs_object \
19330 with_gnu_ld \
19331 allow_undefined_flag \
19332 no_undefined_flag \
19333 hardcode_libdir_flag_spec \
19334 hardcode_libdir_flag_spec_ld \
19335 hardcode_libdir_separator \
19336 fix_srcfile_path \
19337 exclude_expsyms \
19338 include_expsyms \
19339 file_list_spec \
19340 variables_saved_for_relink \
19341 libname_spec \
19342 library_names_spec \
19343 soname_spec \
19344 finish_eval \
19345 old_striplib \
19346 striplib; do
19347     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19348     *[\\\\\\\`\\"\\\$]*)
19349       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19350       ;;
19351     *)
19352       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19353       ;;
19354     esac
19355 done
19356
19357 # Double-quote double-evaled strings.
19358 for var in reload_cmds \
19359 old_postinstall_cmds \
19360 old_postuninstall_cmds \
19361 old_archive_cmds \
19362 extract_expsyms_cmds \
19363 old_archive_from_new_cmds \
19364 old_archive_from_expsyms_cmds \
19365 archive_cmds \
19366 archive_expsym_cmds \
19367 module_cmds \
19368 module_expsym_cmds \
19369 export_symbols_cmds \
19370 prelink_cmds \
19371 postinstall_cmds \
19372 postuninstall_cmds \
19373 finish_cmds \
19374 sys_lib_search_path_spec \
19375 sys_lib_dlsearch_path_spec; do
19376     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19377     *[\\\\\\\`\\"\\\$]*)
19378       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19379       ;;
19380     *)
19381       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19382       ;;
19383     esac
19384 done
19385
19386 # Fix-up fallback echo if it was mangled by the above quoting rules.
19387 case \$lt_ECHO in
19388 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19389   ;;
19390 esac
19391
19392 ac_aux_dir='$ac_aux_dir'
19393 xsi_shell='$xsi_shell'
19394 lt_shell_append='$lt_shell_append'
19395
19396 # See if we are running on zsh, and set the options which allow our
19397 # commands through without removal of \ escapes INIT.
19398 if test -n "\${ZSH_VERSION+set}" ; then
19399    setopt NO_GLOB_SUBST
19400 fi
19401
19402
19403     PACKAGE='$PACKAGE'
19404     VERSION='$VERSION'
19405     TIMESTAMP='$TIMESTAMP'
19406     RM='$RM'
19407     ofile='$ofile'
19408
19409
19410
19411
19412 _ACEOF
19413
19414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19415
19416 # Handling of arguments.
19417 for ac_config_target in $ac_config_targets
19418 do
19419   case $ac_config_target in
19420     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19421     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
19422     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19423     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19424     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
19425     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
19426     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
19427     "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
19428     "sudoreplay.man") CONFIG_FILES="$CONFIG_FILES sudoreplay.man" ;;
19429     "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
19430     "sudoers") CONFIG_FILES="$CONFIG_FILES sudoers" ;;
19431
19432   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19433   esac
19434 done
19435
19436
19437 # If the user did not use the arguments to specify the items to instantiate,
19438 # then the envvar interface is used.  Set only those that are not.
19439 # We use the long form for the default assignment because of an extremely
19440 # bizarre bug on SunOS 4.1.3.
19441 if $ac_need_defaults; then
19442   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19443   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19444   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19445 fi
19446
19447 # Have a temporary directory for convenience.  Make it in the build tree
19448 # simply because there is no reason against having it here, and in addition,
19449 # creating and moving files from /tmp can sometimes cause problems.
19450 # Hook for its removal unless debugging.
19451 # Note that there is a small window in which the directory will not be cleaned:
19452 # after its creation but before its name has been assigned to `$tmp'.
19453 $debug ||
19454 {
19455   tmp=
19456   trap 'exit_status=$?
19457   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19458 ' 0
19459   trap 'as_fn_exit 1' 1 2 13 15
19460 }
19461 # Create a (secure) tmp directory for tmp files.
19462
19463 {
19464   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19465   test -n "$tmp" && test -d "$tmp"
19466 }  ||
19467 {
19468   tmp=./conf$$-$RANDOM
19469   (umask 077 && mkdir "$tmp")
19470 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19471
19472 # Set up the scripts for CONFIG_FILES section.
19473 # No need to generate them if there are no CONFIG_FILES.
19474 # This happens for instance with `./config.status config.h'.
19475 if test -n "$CONFIG_FILES"; then
19476
19477
19478 ac_cr=`echo X | tr X '\015'`
19479 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19480 # But we know of no other shell where ac_cr would be empty at this
19481 # point, so we can use a bashism as a fallback.
19482 if test "x$ac_cr" = x; then
19483   eval ac_cr=\$\'\\r\'
19484 fi
19485 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19486 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19487   ac_cs_awk_cr='\r'
19488 else
19489   ac_cs_awk_cr=$ac_cr
19490 fi
19491
19492 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19493 _ACEOF
19494
19495
19496 {
19497   echo "cat >conf$$subs.awk <<_ACEOF" &&
19498   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19499   echo "_ACEOF"
19500 } >conf$$subs.sh ||
19501   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19502 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19503 ac_delim='%!_!# '
19504 for ac_last_try in false false false false false :; do
19505   . ./conf$$subs.sh ||
19506     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19507
19508   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19509   if test $ac_delim_n = $ac_delim_num; then
19510     break
19511   elif $ac_last_try; then
19512     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19513   else
19514     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19515   fi
19516 done
19517 rm -f conf$$subs.sh
19518
19519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19520 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19521 _ACEOF
19522 sed -n '
19523 h
19524 s/^/S["/; s/!.*/"]=/
19525 p
19526 g
19527 s/^[^!]*!//
19528 :repl
19529 t repl
19530 s/'"$ac_delim"'$//
19531 t delim
19532 :nl
19533 h
19534 s/\(.\{148\}\)..*/\1/
19535 t more1
19536 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19537 p
19538 n
19539 b repl
19540 :more1
19541 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19542 p
19543 g
19544 s/.\{148\}//
19545 t nl
19546 :delim
19547 h
19548 s/\(.\{148\}\)..*/\1/
19549 t more2
19550 s/["\\]/\\&/g; s/^/"/; s/$/"/
19551 p
19552 b
19553 :more2
19554 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19555 p
19556 g
19557 s/.\{148\}//
19558 t delim
19559 ' <conf$$subs.awk | sed '
19560 /^[^""]/{
19561   N
19562   s/\n//
19563 }
19564 ' >>$CONFIG_STATUS || ac_write_fail=1
19565 rm -f conf$$subs.awk
19566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19567 _ACAWK
19568 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19569   for (key in S) S_is_set[key] = 1
19570   FS = "\a"
19571
19572 }
19573 {
19574   line = $ 0
19575   nfields = split(line, field, "@")
19576   substed = 0
19577   len = length(field[1])
19578   for (i = 2; i < nfields; i++) {
19579     key = field[i]
19580     keylen = length(key)
19581     if (S_is_set[key]) {
19582       value = S[key]
19583       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19584       len += length(value) + length(field[++i])
19585       substed = 1
19586     } else
19587       len += 1 + keylen
19588   }
19589
19590   print line
19591 }
19592
19593 _ACAWK
19594 _ACEOF
19595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19596 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19597   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19598 else
19599   cat
19600 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19601   || as_fn_error "could not setup config files machinery" "$LINENO" 5
19602 _ACEOF
19603
19604 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19605 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19606 # trailing colons and then remove the whole line if VPATH becomes empty
19607 # (actually we leave an empty line to preserve line numbers).
19608 if test "x$srcdir" = x.; then
19609   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19610 s/:*\$(srcdir):*/:/
19611 s/:*\${srcdir}:*/:/
19612 s/:*@srcdir@:*/:/
19613 s/^\([^=]*=[     ]*\):*/\1/
19614 s/:*$//
19615 s/^[^=]*=[       ]*$//
19616 }'
19617 fi
19618
19619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19620 fi # test -n "$CONFIG_FILES"
19621
19622 # Set up the scripts for CONFIG_HEADERS section.
19623 # No need to generate them if there are no CONFIG_HEADERS.
19624 # This happens for instance with `./config.status Makefile'.
19625 if test -n "$CONFIG_HEADERS"; then
19626 cat >"$tmp/defines.awk" <<\_ACAWK ||
19627 BEGIN {
19628 _ACEOF
19629
19630 # Transform confdefs.h into an awk script `defines.awk', embedded as
19631 # here-document in config.status, that substitutes the proper values into
19632 # config.h.in to produce config.h.
19633
19634 # Create a delimiter string that does not exist in confdefs.h, to ease
19635 # handling of long lines.
19636 ac_delim='%!_!# '
19637 for ac_last_try in false false :; do
19638   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19639   if test -z "$ac_t"; then
19640     break
19641   elif $ac_last_try; then
19642     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19643   else
19644     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19645   fi
19646 done
19647
19648 # For the awk script, D is an array of macro values keyed by name,
19649 # likewise P contains macro parameters if any.  Preserve backslash
19650 # newline sequences.
19651
19652 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19653 sed -n '
19654 s/.\{148\}/&'"$ac_delim"'/g
19655 t rset
19656 :rset
19657 s/^[     ]*#[    ]*define[       ][      ]*/ /
19658 t def
19659 d
19660 :def
19661 s/\\$//
19662 t bsnl
19663 s/["\\]/\\&/g
19664 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19665 D["\1"]=" \3"/p
19666 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19667 d
19668 :bsnl
19669 s/["\\]/\\&/g
19670 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19671 D["\1"]=" \3\\\\\\n"\\/p
19672 t cont
19673 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19674 t cont
19675 d
19676 :cont
19677 n
19678 s/.\{148\}/&'"$ac_delim"'/g
19679 t clear
19680 :clear
19681 s/\\$//
19682 t bsnlc
19683 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19684 d
19685 :bsnlc
19686 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19687 b cont
19688 ' <confdefs.h | sed '
19689 s/'"$ac_delim"'/"\\\
19690 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19691
19692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19693   for (key in D) D_is_set[key] = 1
19694   FS = "\a"
19695 }
19696 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19697   line = \$ 0
19698   split(line, arg, " ")
19699   if (arg[1] == "#") {
19700     defundef = arg[2]
19701     mac1 = arg[3]
19702   } else {
19703     defundef = substr(arg[1], 2)
19704     mac1 = arg[2]
19705   }
19706   split(mac1, mac2, "(") #)
19707   macro = mac2[1]
19708   prefix = substr(line, 1, index(line, defundef) - 1)
19709   if (D_is_set[macro]) {
19710     # Preserve the white space surrounding the "#".
19711     print prefix "define", macro P[macro] D[macro]
19712     next
19713   } else {
19714     # Replace #undef with comments.  This is necessary, for example,
19715     # in the case of _POSIX_SOURCE, which is predefined and required
19716     # on some systems where configure will not decide to define it.
19717     if (defundef == "undef") {
19718       print "/*", prefix defundef, macro, "*/"
19719       next
19720     }
19721   }
19722 }
19723 { print }
19724 _ACAWK
19725 _ACEOF
19726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19727   as_fn_error "could not setup config headers machinery" "$LINENO" 5
19728 fi # test -n "$CONFIG_HEADERS"
19729
19730
19731 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19732 shift
19733 for ac_tag
19734 do
19735   case $ac_tag in
19736   :[FHLC]) ac_mode=$ac_tag; continue;;
19737   esac
19738   case $ac_mode$ac_tag in
19739   :[FHL]*:*);;
19740   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19741   :[FH]-) ac_tag=-:-;;
19742   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19743   esac
19744   ac_save_IFS=$IFS
19745   IFS=:
19746   set x $ac_tag
19747   IFS=$ac_save_IFS
19748   shift
19749   ac_file=$1
19750   shift
19751
19752   case $ac_mode in
19753   :L) ac_source=$1;;
19754   :[FH])
19755     ac_file_inputs=
19756     for ac_f
19757     do
19758       case $ac_f in
19759       -) ac_f="$tmp/stdin";;
19760       *) # Look for the file first in the build tree, then in the source tree
19761          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19762          # because $ac_f cannot contain `:'.
19763          test -f "$ac_f" ||
19764            case $ac_f in
19765            [\\/$]*) false;;
19766            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19767            esac ||
19768            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19769       esac
19770       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19771       as_fn_append ac_file_inputs " '$ac_f'"
19772     done
19773
19774     # Let's still pretend it is `configure' which instantiates (i.e., don't
19775     # use $as_me), people would be surprised to read:
19776     #    /* config.h.  Generated by config.status.  */
19777     configure_input='Generated from '`
19778           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19779         `' by configure.'
19780     if test x"$ac_file" != x-; then
19781       configure_input="$ac_file.  $configure_input"
19782       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19783 $as_echo "$as_me: creating $ac_file" >&6;}
19784     fi
19785     # Neutralize special characters interpreted by sed in replacement strings.
19786     case $configure_input in #(
19787     *\&* | *\|* | *\\* )
19788        ac_sed_conf_input=`$as_echo "$configure_input" |
19789        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19790     *) ac_sed_conf_input=$configure_input;;
19791     esac
19792
19793     case $ac_tag in
19794     *:-:* | *:-) cat >"$tmp/stdin" \
19795       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19796     esac
19797     ;;
19798   esac
19799
19800   ac_dir=`$as_dirname -- "$ac_file" ||
19801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19802          X"$ac_file" : 'X\(//\)[^/]' \| \
19803          X"$ac_file" : 'X\(//\)$' \| \
19804          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19805 $as_echo X"$ac_file" |
19806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19807             s//\1/
19808             q
19809           }
19810           /^X\(\/\/\)[^/].*/{
19811             s//\1/
19812             q
19813           }
19814           /^X\(\/\/\)$/{
19815             s//\1/
19816             q
19817           }
19818           /^X\(\/\).*/{
19819             s//\1/
19820             q
19821           }
19822           s/.*/./; q'`
19823   as_dir="$ac_dir"; as_fn_mkdir_p
19824   ac_builddir=.
19825
19826 case "$ac_dir" in
19827 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19828 *)
19829   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19830   # A ".." for each directory in $ac_dir_suffix.
19831   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19832   case $ac_top_builddir_sub in
19833   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19834   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19835   esac ;;
19836 esac
19837 ac_abs_top_builddir=$ac_pwd
19838 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19839 # for backward compatibility:
19840 ac_top_builddir=$ac_top_build_prefix
19841
19842 case $srcdir in
19843   .)  # We are building in place.
19844     ac_srcdir=.
19845     ac_top_srcdir=$ac_top_builddir_sub
19846     ac_abs_top_srcdir=$ac_pwd ;;
19847   [\\/]* | ?:[\\/]* )  # Absolute name.
19848     ac_srcdir=$srcdir$ac_dir_suffix;
19849     ac_top_srcdir=$srcdir
19850     ac_abs_top_srcdir=$srcdir ;;
19851   *) # Relative name.
19852     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19853     ac_top_srcdir=$ac_top_build_prefix$srcdir
19854     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19855 esac
19856 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19857
19858
19859   case $ac_mode in
19860   :F)
19861   #
19862   # CONFIG_FILE
19863   #
19864
19865 _ACEOF
19866
19867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19868 # If the template does not know about datarootdir, expand it.
19869 # FIXME: This hack should be removed a few years after 2.60.
19870 ac_datarootdir_hack=; ac_datarootdir_seen=
19871 ac_sed_dataroot='
19872 /datarootdir/ {
19873   p
19874   q
19875 }
19876 /@datadir@/p
19877 /@docdir@/p
19878 /@infodir@/p
19879 /@localedir@/p
19880 /@mandir@/p'
19881 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19882 *datarootdir*) ac_datarootdir_seen=yes;;
19883 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19884   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19885 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19886 _ACEOF
19887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19888   ac_datarootdir_hack='
19889   s&@datadir@&$datadir&g
19890   s&@docdir@&$docdir&g
19891   s&@infodir@&$infodir&g
19892   s&@localedir@&$localedir&g
19893   s&@mandir@&$mandir&g
19894   s&\\\${datarootdir}&$datarootdir&g' ;;
19895 esac
19896 _ACEOF
19897
19898 # Neutralize VPATH when `$srcdir' = `.'.
19899 # Shell code in configure.ac might set extrasub.
19900 # FIXME: do we really want to maintain this feature?
19901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19902 ac_sed_extra="$ac_vpsub
19903 $extrasub
19904 _ACEOF
19905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19906 :t
19907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19908 s|@configure_input@|$ac_sed_conf_input|;t t
19909 s&@top_builddir@&$ac_top_builddir_sub&;t t
19910 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19911 s&@srcdir@&$ac_srcdir&;t t
19912 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19913 s&@top_srcdir@&$ac_top_srcdir&;t t
19914 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19915 s&@builddir@&$ac_builddir&;t t
19916 s&@abs_builddir@&$ac_abs_builddir&;t t
19917 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19918 $ac_datarootdir_hack
19919 "
19920 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19921   || as_fn_error "could not create $ac_file" "$LINENO" 5
19922
19923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19924   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19925   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19926   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19927 which seems to be undefined.  Please make sure it is defined." >&5
19928 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19929 which seems to be undefined.  Please make sure it is defined." >&2;}
19930
19931   rm -f "$tmp/stdin"
19932   case $ac_file in
19933   -) cat "$tmp/out" && rm -f "$tmp/out";;
19934   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19935   esac \
19936   || as_fn_error "could not create $ac_file" "$LINENO" 5
19937  ;;
19938   :H)
19939   #
19940   # CONFIG_HEADER
19941   #
19942   if test x"$ac_file" != x-; then
19943     {
19944       $as_echo "/* $configure_input  */" \
19945       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19946     } >"$tmp/config.h" \
19947       || as_fn_error "could not create $ac_file" "$LINENO" 5
19948     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19949       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19950 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19951     else
19952       rm -f "$ac_file"
19953       mv "$tmp/config.h" "$ac_file" \
19954         || as_fn_error "could not create $ac_file" "$LINENO" 5
19955     fi
19956   else
19957     $as_echo "/* $configure_input  */" \
19958       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19959       || as_fn_error "could not create -" "$LINENO" 5
19960   fi
19961  ;;
19962
19963   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19964 $as_echo "$as_me: executing $ac_file commands" >&6;}
19965  ;;
19966   esac
19967
19968
19969   case $ac_file$ac_mode in
19970     "libtool":C)
19971
19972     # See if we are running on zsh, and set the options which allow our
19973     # commands through without removal of \ escapes.
19974     if test -n "${ZSH_VERSION+set}" ; then
19975       setopt NO_GLOB_SUBST
19976     fi
19977
19978     cfgfile="${ofile}T"
19979     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19980     $RM "$cfgfile"
19981
19982     cat <<_LT_EOF >> "$cfgfile"
19983 #! $SHELL
19984
19985 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19986 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19987 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19988 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19989 #
19990 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19991 #                 2006, 2007, 2008 Free Software Foundation, Inc.
19992 #   Written by Gordon Matzigkeit, 1996
19993 #
19994 #   This file is part of GNU Libtool.
19995 #
19996 # GNU Libtool is free software; you can redistribute it and/or
19997 # modify it under the terms of the GNU General Public License as
19998 # published by the Free Software Foundation; either version 2 of
19999 # the License, or (at your option) any later version.
20000 #
20001 # As a special exception to the GNU General Public License,
20002 # if you distribute this file as part of a program or library that
20003 # is built using GNU Libtool, you may include this file under the
20004 # same distribution terms that you use for the rest of that program.
20005 #
20006 # GNU Libtool is distributed in the hope that it will be useful,
20007 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20008 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20009 # GNU General Public License for more details.
20010 #
20011 # You should have received a copy of the GNU General Public License
20012 # along with GNU Libtool; see the file COPYING.  If not, a copy
20013 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20014 # obtained by writing to the Free Software Foundation, Inc.,
20015 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20016
20017
20018 # The names of the tagged configurations supported by this script.
20019 available_tags=""
20020
20021 # ### BEGIN LIBTOOL CONFIG
20022
20023 # Which release of libtool.m4 was used?
20024 macro_version=$macro_version
20025 macro_revision=$macro_revision
20026
20027 # Whether or not to build shared libraries.
20028 build_libtool_libs=$enable_shared
20029
20030 # Whether or not to build static libraries.
20031 build_old_libs=$enable_static
20032
20033 # What type of objects to build.
20034 pic_mode=$pic_mode
20035
20036 # Whether or not to optimize for fast installation.
20037 fast_install=$enable_fast_install
20038
20039 # The host system.
20040 host_alias=$host_alias
20041 host=$host
20042 host_os=$host_os
20043
20044 # The build system.
20045 build_alias=$build_alias
20046 build=$build
20047 build_os=$build_os
20048
20049 # A sed program that does not truncate output.
20050 SED=$lt_SED
20051
20052 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20053 Xsed="\$SED -e 1s/^X//"
20054
20055 # A grep program that handles long lines.
20056 GREP=$lt_GREP
20057
20058 # An ERE matcher.
20059 EGREP=$lt_EGREP
20060
20061 # A literal string matcher.
20062 FGREP=$lt_FGREP
20063
20064 # A BSD- or MS-compatible name lister.
20065 NM=$lt_NM
20066
20067 # Whether we need soft or hard links.
20068 LN_S=$lt_LN_S
20069
20070 # What is the maximum length of a command?
20071 max_cmd_len=$max_cmd_len
20072
20073 # Object file suffix (normally "o").
20074 objext=$ac_objext
20075
20076 # Executable file suffix (normally "").
20077 exeext=$exeext
20078
20079 # whether the shell understands "unset".
20080 lt_unset=$lt_unset
20081
20082 # turn spaces into newlines.
20083 SP2NL=$lt_lt_SP2NL
20084
20085 # turn newlines into spaces.
20086 NL2SP=$lt_lt_NL2SP
20087
20088 # How to create reloadable object files.
20089 reload_flag=$lt_reload_flag
20090 reload_cmds=$lt_reload_cmds
20091
20092 # An object symbol dumper.
20093 OBJDUMP=$lt_OBJDUMP
20094
20095 # Method to check whether dependent libraries are shared objects.
20096 deplibs_check_method=$lt_deplibs_check_method
20097
20098 # Command to use when deplibs_check_method == "file_magic".
20099 file_magic_cmd=$lt_file_magic_cmd
20100
20101 # The archiver.
20102 AR=$lt_AR
20103 AR_FLAGS=$lt_AR_FLAGS
20104
20105 # A symbol stripping program.
20106 STRIP=$lt_STRIP
20107
20108 # Commands used to install an old-style archive.
20109 RANLIB=$lt_RANLIB
20110 old_postinstall_cmds=$lt_old_postinstall_cmds
20111 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20112
20113 # A C compiler.
20114 LTCC=$lt_CC
20115
20116 # LTCC compiler flags.
20117 LTCFLAGS=$lt_CFLAGS
20118
20119 # Take the output of nm and produce a listing of raw symbols and C names.
20120 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20121
20122 # Transform the output of nm in a proper C declaration.
20123 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20124
20125 # Transform the output of nm in a C name address pair.
20126 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20127
20128 # Transform the output of nm in a C name address pair when lib prefix is needed.
20129 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20130
20131 # The name of the directory that contains temporary libtool files.
20132 objdir=$objdir
20133
20134 # Shell to use when invoking shell scripts.
20135 SHELL=$lt_SHELL
20136
20137 # An echo program that does not interpret backslashes.
20138 ECHO=$lt_ECHO
20139
20140 # Used to examine libraries when file_magic_cmd begins with "file".
20141 MAGIC_CMD=$MAGIC_CMD
20142
20143 # Must we lock files when doing compilation?
20144 need_locks=$lt_need_locks
20145
20146 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20147 DSYMUTIL=$lt_DSYMUTIL
20148
20149 # Tool to change global to local symbols on Mac OS X.
20150 NMEDIT=$lt_NMEDIT
20151
20152 # Tool to manipulate fat objects and archives on Mac OS X.
20153 LIPO=$lt_LIPO
20154
20155 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20156 OTOOL=$lt_OTOOL
20157
20158 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20159 OTOOL64=$lt_OTOOL64
20160
20161 # Old archive suffix (normally "a").
20162 libext=$libext
20163
20164 # Shared library suffix (normally ".so").
20165 shrext_cmds=$lt_shrext_cmds
20166
20167 # The commands to extract the exported symbol list from a shared archive.
20168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20169
20170 # Variables whose values should be saved in libtool wrapper scripts and
20171 # restored at link time.
20172 variables_saved_for_relink=$lt_variables_saved_for_relink
20173
20174 # Do we need the "lib" prefix for modules?
20175 need_lib_prefix=$need_lib_prefix
20176
20177 # Do we need a version for libraries?
20178 need_version=$need_version
20179
20180 # Library versioning type.
20181 version_type=$version_type
20182
20183 # Shared library runtime path variable.
20184 runpath_var=$runpath_var
20185
20186 # Shared library path variable.
20187 shlibpath_var=$shlibpath_var
20188
20189 # Is shlibpath searched before the hard-coded library search path?
20190 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20191
20192 # Format of library name prefix.
20193 libname_spec=$lt_libname_spec
20194
20195 # List of archive names.  First name is the real one, the rest are links.
20196 # The last name is the one that the linker finds with -lNAME
20197 library_names_spec=$lt_library_names_spec
20198
20199 # The coded name of the library, if different from the real name.
20200 soname_spec=$lt_soname_spec
20201
20202 # Command to use after installation of a shared archive.
20203 postinstall_cmds=$lt_postinstall_cmds
20204
20205 # Command to use after uninstallation of a shared archive.
20206 postuninstall_cmds=$lt_postuninstall_cmds
20207
20208 # Commands used to finish a libtool library installation in a directory.
20209 finish_cmds=$lt_finish_cmds
20210
20211 # As "finish_cmds", except a single script fragment to be evaled but
20212 # not shown.
20213 finish_eval=$lt_finish_eval
20214
20215 # Whether we should hardcode library paths into libraries.
20216 hardcode_into_libs=$hardcode_into_libs
20217
20218 # Compile-time system search path for libraries.
20219 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20220
20221 # Run-time system search path for libraries.
20222 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20223
20224 # Whether dlopen is supported.
20225 dlopen_support=$enable_dlopen
20226
20227 # Whether dlopen of programs is supported.
20228 dlopen_self=$enable_dlopen_self
20229
20230 # Whether dlopen of statically linked programs is supported.
20231 dlopen_self_static=$enable_dlopen_self_static
20232
20233 # Commands to strip libraries.
20234 old_striplib=$lt_old_striplib
20235 striplib=$lt_striplib
20236
20237
20238 # The linker used to build libraries.
20239 LD=$lt_LD
20240
20241 # Commands used to build an old-style archive.
20242 old_archive_cmds=$lt_old_archive_cmds
20243
20244 # A language specific compiler.
20245 CC=$lt_compiler
20246
20247 # Is the compiler the GNU compiler?
20248 with_gcc=$GCC
20249
20250 # Compiler flag to turn off builtin functions.
20251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20252
20253 # How to pass a linker flag through the compiler.
20254 wl=$lt_lt_prog_compiler_wl
20255
20256 # Additional compiler flags for building library objects.
20257 pic_flag=$lt_lt_prog_compiler_pic
20258
20259 # Compiler flag to prevent dynamic linking.
20260 link_static_flag=$lt_lt_prog_compiler_static
20261
20262 # Does compiler simultaneously support -c and -o options?
20263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20264
20265 # Whether or not to add -lc for building shared libraries.
20266 build_libtool_need_lc=$archive_cmds_need_lc
20267
20268 # Whether or not to disallow shared libs when runtime libs are static.
20269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20270
20271 # Compiler flag to allow reflexive dlopens.
20272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20273
20274 # Compiler flag to generate shared objects directly from archives.
20275 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20276
20277 # Whether the compiler copes with passing no objects directly.
20278 compiler_needs_object=$lt_compiler_needs_object
20279
20280 # Create an old-style archive from a shared archive.
20281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20282
20283 # Create a temporary old-style archive to link instead of a shared archive.
20284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20285
20286 # Commands used to build a shared archive.
20287 archive_cmds=$lt_archive_cmds
20288 archive_expsym_cmds=$lt_archive_expsym_cmds
20289
20290 # Commands used to build a loadable module if different from building
20291 # a shared archive.
20292 module_cmds=$lt_module_cmds
20293 module_expsym_cmds=$lt_module_expsym_cmds
20294
20295 # Whether we are building with GNU ld or not.
20296 with_gnu_ld=$lt_with_gnu_ld
20297
20298 # Flag that allows shared libraries with undefined symbols to be built.
20299 allow_undefined_flag=$lt_allow_undefined_flag
20300
20301 # Flag that enforces no undefined symbols.
20302 no_undefined_flag=$lt_no_undefined_flag
20303
20304 # Flag to hardcode \$libdir into a binary during linking.
20305 # This must work even if \$libdir does not exist
20306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20307
20308 # If ld is used when linking, flag to hardcode \$libdir into a binary
20309 # during linking.  This must work even if \$libdir does not exist.
20310 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20311
20312 # Whether we need a single "-rpath" flag with a separated argument.
20313 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20314
20315 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20316 # DIR into the resulting binary.
20317 hardcode_direct=$hardcode_direct
20318
20319 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20320 # DIR into the resulting binary and the resulting library dependency is
20321 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20322 # library is relocated.
20323 hardcode_direct_absolute=$hardcode_direct_absolute
20324
20325 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20326 # into the resulting binary.
20327 hardcode_minus_L=$hardcode_minus_L
20328
20329 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20330 # into the resulting binary.
20331 hardcode_shlibpath_var=$hardcode_shlibpath_var
20332
20333 # Set to "yes" if building a shared library automatically hardcodes DIR
20334 # into the library and all subsequent libraries and executables linked
20335 # against it.
20336 hardcode_automatic=$hardcode_automatic
20337
20338 # Set to yes if linker adds runtime paths of dependent libraries
20339 # to runtime path list.
20340 inherit_rpath=$inherit_rpath
20341
20342 # Whether libtool must link a program against all its dependency libraries.
20343 link_all_deplibs=$link_all_deplibs
20344
20345 # Fix the shell variable \$srcfile for the compiler.
20346 fix_srcfile_path=$lt_fix_srcfile_path
20347
20348 # Set to "yes" if exported symbols are required.
20349 always_export_symbols=$always_export_symbols
20350
20351 # The commands to list exported symbols.
20352 export_symbols_cmds=$lt_export_symbols_cmds
20353
20354 # Symbols that should not be listed in the preloaded symbols.
20355 exclude_expsyms=$lt_exclude_expsyms
20356
20357 # Symbols that must always be exported.
20358 include_expsyms=$lt_include_expsyms
20359
20360 # Commands necessary for linking programs (against libraries) with templates.
20361 prelink_cmds=$lt_prelink_cmds
20362
20363 # Specify filename containing input files.
20364 file_list_spec=$lt_file_list_spec
20365
20366 # How to hardcode a shared library path into an executable.
20367 hardcode_action=$hardcode_action
20368
20369 # ### END LIBTOOL CONFIG
20370
20371 _LT_EOF
20372
20373   case $host_os in
20374   aix3*)
20375     cat <<\_LT_EOF >> "$cfgfile"
20376 # AIX sometimes has problems with the GCC collect2 program.  For some
20377 # reason, if we set the COLLECT_NAMES environment variable, the problems
20378 # vanish in a puff of smoke.
20379 if test "X${COLLECT_NAMES+set}" != Xset; then
20380   COLLECT_NAMES=
20381   export COLLECT_NAMES
20382 fi
20383 _LT_EOF
20384     ;;
20385   esac
20386
20387
20388 ltmain="$ac_aux_dir/ltmain.sh"
20389
20390
20391   # We use sed instead of cat because bash on DJGPP gets confused if
20392   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20393   # text mode, it properly converts lines to CR/LF.  This bash problem
20394   # is reportedly fixed, but why not run on old versions too?
20395   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20396     || (rm -f "$cfgfile"; exit 1)
20397
20398   case $xsi_shell in
20399   yes)
20400     cat << \_LT_EOF >> "$cfgfile"
20401
20402 # func_dirname file append nondir_replacement
20403 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20404 # otherwise set result to NONDIR_REPLACEMENT.
20405 func_dirname ()
20406 {
20407   case ${1} in
20408     */*) func_dirname_result="${1%/*}${2}" ;;
20409     *  ) func_dirname_result="${3}" ;;
20410   esac
20411 }
20412
20413 # func_basename file
20414 func_basename ()
20415 {
20416   func_basename_result="${1##*/}"
20417 }
20418
20419 # func_dirname_and_basename file append nondir_replacement
20420 # perform func_basename and func_dirname in a single function
20421 # call:
20422 #   dirname:  Compute the dirname of FILE.  If nonempty,
20423 #             add APPEND to the result, otherwise set result
20424 #             to NONDIR_REPLACEMENT.
20425 #             value returned in "$func_dirname_result"
20426 #   basename: Compute filename of FILE.
20427 #             value retuned in "$func_basename_result"
20428 # Implementation must be kept synchronized with func_dirname
20429 # and func_basename. For efficiency, we do not delegate to
20430 # those functions but instead duplicate the functionality here.
20431 func_dirname_and_basename ()
20432 {
20433   case ${1} in
20434     */*) func_dirname_result="${1%/*}${2}" ;;
20435     *  ) func_dirname_result="${3}" ;;
20436   esac
20437   func_basename_result="${1##*/}"
20438 }
20439
20440 # func_stripname prefix suffix name
20441 # strip PREFIX and SUFFIX off of NAME.
20442 # PREFIX and SUFFIX must not contain globbing or regex special
20443 # characters, hashes, percent signs, but SUFFIX may contain a leading
20444 # dot (in which case that matches only a dot).
20445 func_stripname ()
20446 {
20447   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20448   # positional parameters, so assign one to ordinary parameter first.
20449   func_stripname_result=${3}
20450   func_stripname_result=${func_stripname_result#"${1}"}
20451   func_stripname_result=${func_stripname_result%"${2}"}
20452 }
20453
20454 # func_opt_split
20455 func_opt_split ()
20456 {
20457   func_opt_split_opt=${1%%=*}
20458   func_opt_split_arg=${1#*=}
20459 }
20460
20461 # func_lo2o object
20462 func_lo2o ()
20463 {
20464   case ${1} in
20465     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20466     *)    func_lo2o_result=${1} ;;
20467   esac
20468 }
20469
20470 # func_xform libobj-or-source
20471 func_xform ()
20472 {
20473   func_xform_result=${1%.*}.lo
20474 }
20475
20476 # func_arith arithmetic-term...
20477 func_arith ()
20478 {
20479   func_arith_result=$(( $* ))
20480 }
20481
20482 # func_len string
20483 # STRING may not start with a hyphen.
20484 func_len ()
20485 {
20486   func_len_result=${#1}
20487 }
20488
20489 _LT_EOF
20490     ;;
20491   *) # Bourne compatible functions.
20492     cat << \_LT_EOF >> "$cfgfile"
20493
20494 # func_dirname file append nondir_replacement
20495 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20496 # otherwise set result to NONDIR_REPLACEMENT.
20497 func_dirname ()
20498 {
20499   # Extract subdirectory from the argument.
20500   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20501   if test "X$func_dirname_result" = "X${1}"; then
20502     func_dirname_result="${3}"
20503   else
20504     func_dirname_result="$func_dirname_result${2}"
20505   fi
20506 }
20507
20508 # func_basename file
20509 func_basename ()
20510 {
20511   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20512 }
20513
20514
20515 # func_stripname prefix suffix name
20516 # strip PREFIX and SUFFIX off of NAME.
20517 # PREFIX and SUFFIX must not contain globbing or regex special
20518 # characters, hashes, percent signs, but SUFFIX may contain a leading
20519 # dot (in which case that matches only a dot).
20520 # func_strip_suffix prefix name
20521 func_stripname ()
20522 {
20523   case ${2} in
20524     .*) func_stripname_result=`$ECHO "X${3}" \
20525            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20526     *)  func_stripname_result=`$ECHO "X${3}" \
20527            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20528   esac
20529 }
20530
20531 # sed scripts:
20532 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20533 my_sed_long_arg='1s/^-[^=]*=//'
20534
20535 # func_opt_split
20536 func_opt_split ()
20537 {
20538   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20539   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20540 }
20541
20542 # func_lo2o object
20543 func_lo2o ()
20544 {
20545   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20546 }
20547
20548 # func_xform libobj-or-source
20549 func_xform ()
20550 {
20551   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20552 }
20553
20554 # func_arith arithmetic-term...
20555 func_arith ()
20556 {
20557   func_arith_result=`expr "$@"`
20558 }
20559
20560 # func_len string
20561 # STRING may not start with a hyphen.
20562 func_len ()
20563 {
20564   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20565 }
20566
20567 _LT_EOF
20568 esac
20569
20570 case $lt_shell_append in
20571   yes)
20572     cat << \_LT_EOF >> "$cfgfile"
20573
20574 # func_append var value
20575 # Append VALUE to the end of shell variable VAR.
20576 func_append ()
20577 {
20578   eval "$1+=\$2"
20579 }
20580 _LT_EOF
20581     ;;
20582   *)
20583     cat << \_LT_EOF >> "$cfgfile"
20584
20585 # func_append var value
20586 # Append VALUE to the end of shell variable VAR.
20587 func_append ()
20588 {
20589   eval "$1=\$$1\$2"
20590 }
20591
20592 _LT_EOF
20593     ;;
20594   esac
20595
20596
20597   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20598     || (rm -f "$cfgfile"; exit 1)
20599
20600   mv -f "$cfgfile" "$ofile" ||
20601     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20602   chmod +x "$ofile"
20603
20604  ;;
20605
20606   esac
20607 done # for ac_tag
20608
20609
20610 as_fn_exit 0
20611 _ACEOF
20612 ac_clean_files=$ac_clean_files_save
20613
20614 test $ac_write_fail = 0 ||
20615   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20616
20617
20618 # configure is writing to config.log, and then calls config.status.
20619 # config.status does its own redirection, appending to config.log.
20620 # Unfortunately, on DOS this fails, as config.log is still kept open
20621 # by configure, so config.status won't be able to write to it; its
20622 # output is simply discarded.  So we exec the FD to /dev/null,
20623 # effectively closing config.log, so it can be properly (re)opened and
20624 # appended to by config.status.  When coming back to configure, we
20625 # need to make the FD available again.
20626 if test "$no_create" != yes; then
20627   ac_cs_success=:
20628   ac_config_status_args=
20629   test "$silent" = yes &&
20630     ac_config_status_args="$ac_config_status_args --quiet"
20631   exec 5>/dev/null
20632   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20633   exec 5>>config.log
20634   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20635   # would make configure fail if this is the last instruction.
20636   $ac_cs_success || as_fn_exit $?
20637 fi
20638 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20639   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20640 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20641 fi
20642
20643
20644 if test "$with_pam" = "yes"; then
20645     case $host in
20646         *-*-linux*)
20647             { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
20648 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
20649             ;;
20650     esac
20651 fi
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738