Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for sudo 1.9.17p2.
4 #
5 # Report bugs to <https://bugzilla.sudo.ws/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 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 case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://bugzilla.sudo.ws/ about your system, including
283 $0: any error possibly output before this message. Then
284 $0: install a modern shell, or manually run the script
285 $0: under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='sudo'
616 PACKAGE_TARNAME='sudo'
617 PACKAGE_VERSION='1.9.17p2'
618 PACKAGE_STRING='sudo 1.9.17p2'
619 PACKAGE_BUGREPORT='https://bugzilla.sudo.ws/'
620 PACKAGE_URL=''
621
622 ac_unique_file="src/sudo.c"
623 ac_config_libobj_dir=lib/util
624 # Factoring default headers for most tests.
625 ac_includes_default="\
626 #include <stddef.h>
627 #ifdef HAVE_STDIO_H
628 # include <stdio.h>
629 #endif
630 #ifdef HAVE_STDLIB_H
631 # include <stdlib.h>
632 #endif
633 #ifdef HAVE_STRING_H
634 # include <string.h>
635 #endif
636 #ifdef HAVE_INTTYPES_H
637 # include <inttypes.h>
638 #endif
639 #ifdef HAVE_STDINT_H
640 # include <stdint.h>
641 #endif
642 #ifdef HAVE_STRINGS_H
643 # include <strings.h>
644 #endif
645 #ifdef HAVE_SYS_TYPES_H
646 # include <sys/types.h>
647 #endif
648 #ifdef HAVE_SYS_STAT_H
649 # include <sys/stat.h>
650 #endif
651 #ifdef HAVE_UNISTD_H
652 # include <unistd.h>
653 #endif"
654
655 ac_header_c_list=
656 ac_func_c_list=
657 ac_c_werror_flag=
658 enable_year2038=yes
659 ac_subst_vars='LTLIBOBJS
660 KRB5CONFIG
661 LIBOBJS
662 PYTHON_CONFIG
663 PYTHON_LIBS
664 PYTHON_INCLUDE
665 pkgpyexecdir
666 pyexecdir
667 pkgpythondir
668 pythondir
669 PYTHON_PLATFORM
670 PYTHON_EXEC_PREFIX
671 PYTHON_PREFIX
672 PYTHON_VERSION
673 PYTHON
674 FLEX
675 YFLAGS
676 YACC
677 NROFFPROG
678 MANDOCPROG
679 GROFFPROG
680 TRPROG
681 UNAMEPROG
682 SHA1SUM
683 LT_SYS_LIBRARY_PATH
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 AWK
691 STRIP
692 ac_ct_AR
693 DLLTOOL
694 OBJDUMP
695 FILECMD
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 EGREP
703 GREP
704 SED
705 LIBTOOL
706 host_os
707 host_vendor
708 host_cpu
709 host
710 JQ
711 LDFLAGS_FOR_BUILD
712 CPPFLAGS_FOR_BUILD
713 CFLAGS_FOR_BUILD
714 BUILD_OBJEXT
715 BUILD_EXEEXT
716 CPP_FOR_BUILD
717 ac_ct_CC_FOR_BUILD
718 CC_FOR_BUILD
719 build_os
720 build_vendor
721 build_cpu
722 build
723 RANLIB
724 AR
725 CPP
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 python_plugin
734 sudoers_plugin
735 plugindir
736 pam_login_service
737 pam_session
738 editor
739 secure_path_status
740 secure_path_config
741 secure_path
742 netsvc_conf
743 nsswitch_conf
744 sssd_lib
745 ldap_secret
746 ldap_conf
747 path_info
748 root_sudo
749 insults
750 timestamp_type
751 passwd_tries
752 env_reset
753 env_editor
754 runas_default
755 fqdn
756 badpass_message
757 mailsub
758 mailto
759 mail_no_perms
760 mail_no_host
761 mail_no_user
762 ignore_dot
763 loglen
764 badpri
765 goodpri
766 logfac
767 lecture
768 long_otp_prompt
769 passprompt
770 umask_override
771 sudo_umask
772 password_timeout
773 timeout
774 vardir
775 rundir
776 relay_dir
777 logpath
778 log_dir
779 iolog_dir
780 sudoers_path
781 sudo_logsrvd_conf
782 sudo_conf
783 cvtsudoers_conf
784 INTERCEPT_EXP
785 FUZZ_LD
786 FUZZ_ENGINE
787 PPFILES
788 LIBLOGSRV
789 LOGSRVD_CONF
790 LOGSRVD_SRC
791 LOGSRV_SRC
792 LOGSRV
793 SSL_COMPAT_SRC
794 PYTHON_PLUGIN_SRC
795 PYTHON_PLUGIN
796 SIGNAME
797 devsearch
798 DIGEST
799 adminconfdir
800 exampledir
801 TMPFILES_D
802 COMPAT_EXP
803 RC_LINK
804 INIT_DIR
805 INIT_SCRIPT
806 HARDENING_CFLAGS
807 HARDENING_LDFLAGS
808 PIE_CFLAGS
809 PIE_LDFLAGS
810 ASAN_CFLAGS
811 ASAN_LDFLAGS
812 CROSS_COMPILING
813 SUDOERS_TEST_PROGS
814 COMPAT_TEST_PROGS
815 LOCALEDIR_SUFFIX
816 SUDO_NLS
817 LIBPTHREAD
818 LIBTLS
819 LIBCRYPTO
820 LIBINTL
821 LIBRT
822 LIBDL
823 LIBTOOL_DEPS
824 ZLIB_SRC
825 ZLIB
826 LOGINCAP_USAGE
827 LDAP
828 SELINUX_USAGE
829 BSDAUTH_USAGE
830 DONT_LEAK_PATH_INFO
831 PRELOAD_MODULE
832 INSTALL_NOEXEC
833 INSTALL_INTERCEPT
834 INSTALL_BACKUP
835 visudo
836 sesh_file
837 noexec_file
838 NOEXECDIR
839 NOEXECFILE
840 intercept_file
841 INTERCEPTDIR
842 INTERCEPTFILE
843 mansectmisc
844 mansectform
845 mansectsu
846 devdir
847 AAMAN
848 SEMAN
849 PSMAN
850 LCMAN
851 BAMAN
852 EXAMPLES
853 DEVEL
854 SUDOERS_GID
855 SUDOERS_UID
856 SUDOERS_MODE
857 SHLIB_MODE
858 SHLIB_ENABLE
859 POSTINSTALL
860 MANCOMPRESSEXT
861 MANCOMPRESS
862 MANDIRTYPE
863 MANTYPE
864 AUTH_OBJS
865 GETGROUPS_LIB
866 REPLAY_LIBS
867 AFS_LIBS
868 NET_LIBS
869 STATIC_SUDOERS
870 SUDOERS_LIBS
871 SUDO_LIBS
872 SUDO_OBJS
873 SUDOERS_OBJS
874 SUDOERS_LT_STATIC
875 COMMON_OBJS
876 LT_DEP_LIBS
877 LT_STATIC
878 LT_LDEXPORTS
879 LT_LDDEP
880 LT_LDFLAGS
881 ZLIB_LDFLAGS
882 LIBUTIL_LDFLAGS
883 SUDOERS_LDFLAGS
884 SUDO_LDFLAGS
885 PROGS
886 target_alias
887 host_alias
888 build_alias
889 LIBS
890 ECHO_T
891 ECHO_N
892 ECHO_C
893 DEFS
894 mandir
895 localedir
896 libdir
897 psdir
898 pdfdir
899 dvidir
900 htmldir
901 infodir
902 docdir
903 oldincludedir
904 includedir
905 runstatedir
906 localstatedir
907 sharedstatedir
908 sysconfdir
909 datadir
910 datarootdir
911 libexecdir
912 sbindir
913 bindir
914 program_transform_name
915 prefix
916 exec_prefix
917 PACKAGE_URL
918 PACKAGE_BUGREPORT
919 PACKAGE_STRING
920 PACKAGE_VERSION
921 PACKAGE_TARNAME
922 PACKAGE_NAME
923 PATH_SEPARATOR
924 SHELL
925 BSHELLPROG
926 MVPROG
927 VIPROG
928 SENDMAILPROG'
929 ac_subst_files=''
930 ac_user_opts='
931 enable_option_checking
932 with_otp_only
933 with_alertmail
934 with_devel
935 with_CC
936 with_rpath
937 with_blibpath
938 with_bsm_audit
939 with_linux_audit
940 with_solaris_audit
941 with_sssd
942 with_sssd_conf
943 with_sssd_lib
944 with_incpath
945 with_libpath
946 with_libraries
947 with_csops
948 with_passwd
949 with_skey
950 with_opie
951 with_long_otp_prompt
952 with_SecurID
953 with_fwtk
954 with_kerb5
955 with_aixauth
956 with_pam
957 with_AFS
958 with_DCE
959 with_logincap
960 with_bsdauth
961 with_project
962 with_lecture
963 with_logging
964 with_logfac
965 with_goodpri
966 with_badpri
967 with_logpath
968 with_loglen
969 with_ignore_dot
970 with_mail_if_no_user
971 with_mail_if_no_host
972 with_mail_if_noperms
973 with_mailto
974 with_mailsubject
975 with_passprompt
976 with_badpass_message
977 with_fqdn
978 with_timedir
979 with_rundir
980 with_vardir
981 with_iologdir
982 with_relaydir
983 with_tzdir
984 with_sendmail
985 with_sudoers_mode
986 with_sudoers_uid
987 with_sudoers_gid
988 with_umask
989 with_umask_override
990 with_runas_default
991 with_exempt
992 with_editor
993 with_env_editor
994 with_passwd_tries
995 with_timeout
996 with_password_timeout
997 with_tty_tickets
998 with_insults
999 with_all_insults
1000 with_classic_insults
1001 with_csops_insults
1002 with_hal_insults
1003 with_goons_insults
1004 with_python_insults
1005 with_nsswitch
1006 with_ldap
1007 with_ldap_conf_file
1008 with_ldap_secret_file
1009 with_secure_path_value
1010 with_secure_path
1011 with_interfaces
1012 with_askpass
1013 with_exampledir
1014 with_plugindir
1015 with_man
1016 with_mdoc
1017 enable_authentication
1018 enable_root_mailer
1019 enable_setreuid
1020 enable_setresuid
1021 enable_shadow
1022 enable_root_sudo
1023 enable_log_host
1024 enable_noargs_shell
1025 enable_shell_sets_home
1026 enable_path_info
1027 enable_env_debug
1028 enable_ignore_dot
1029 enable_postinstall
1030 enable_zlib
1031 enable_env_reset
1032 enable_warnings
1033 enable_werror
1034 enable_ssp
1035 enable_hardening
1036 enable_pie
1037 enable_sanitizer
1038 enable_fuzzer
1039 enable_fuzzer_engine
1040 enable_fuzzer_linker
1041 enable_leaks
1042 enable_poll
1043 enable_admin_flag
1044 enable_nls
1045 enable_rpath
1046 enable_static_sudoers
1047 enable_shared_libutil
1048 enable_tmpfiles_d
1049 enable_devsearch
1050 with_selinux
1051 with_apparmor
1052 enable_sasl
1053 enable_timestamp_type
1054 enable_package_build
1055 enable_gss_krb5_ccache_name
1056 enable_pvs_studio
1057 enable_log_server
1058 enable_log_client
1059 enable_openssl
1060 enable_openssl_pkgconfig_template
1061 enable_wolfssl
1062 enable_gcrypt
1063 enable_python
1064 enable_adminconf
1065 enable_shared
1066 enable_static
1067 enable_pic
1068 with_pic
1069 enable_fast_install
1070 enable_aix_soname
1071 with_aix_soname
1072 with_gnu_ld
1073 with_sysroot
1074 enable_libtool_lock
1075 with_libtool
1076 enable_intercept
1077 with_noexec
1078 with_netsvc
1079 enable_sia
1080 enable_largefile
1081 with_pam_login
1082 enable_pam_session
1083 enable_kerb5_instance
1084 enable_year2038
1085 '
1086 ac_precious_vars='SENDMAILPROG
1087 VIPROG
1088 MVPROG
1089 BSHELLPROG
1090 build_alias
1091 host_alias
1092 target_alias
1093 CC
1094 CFLAGS
1095 LDFLAGS
1096 LIBS
1097 CPPFLAGS
1098 CPP
1099 LT_SYS_LIBRARY_PATH
1100 YACC
1101 YFLAGS
1102 PYTHON
1103 PYTHON_INCLUDE
1104 PYTHON_LIBS
1105 PYTHON_CONFIG'
1106
1107
1108 # Initialize some variables set by options.
1109 ac_init_help=
1110 ac_init_version=false
1111 ac_unrecognized_opts=
1112 ac_unrecognized_sep=
1113 # The variables have the same names as the options, with
1114 # dashes changed to underlines.
1115 cache_file=/dev/null
1116 exec_prefix=NONE
1117 no_create=
1118 no_recursion=
1119 prefix=NONE
1120 program_prefix=NONE
1121 program_suffix=NONE
1122 program_transform_name=s,x,x,
1123 silent=
1124 site=
1125 srcdir=
1126 verbose=
1127 x_includes=NONE
1128 x_libraries=NONE
1129
1130 # Installation directory options.
1131 # These are left unexpanded so users can "make install exec_prefix=/foo"
1132 # and all the variables that are supposed to be based on exec_prefix
1133 # by default will actually change.
1134 # Use braces instead of parens because sh, perl, etc. also accept them.
1135 # (The list follows the same order as the GNU Coding Standards.)
1136 bindir='${exec_prefix}/bin'
1137 sbindir='${exec_prefix}/sbin'
1138 libexecdir='${exec_prefix}/libexec'
1139 datarootdir='${prefix}/share'
1140 datadir='${datarootdir}'
1141 sysconfdir='${prefix}/etc'
1142 sharedstatedir='${prefix}/com'
1143 localstatedir='${prefix}/var'
1144 runstatedir='${localstatedir}/run'
1145 includedir='${prefix}/include'
1146 oldincludedir='/usr/include'
1147 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1148 infodir='${datarootdir}/info'
1149 htmldir='${docdir}'
1150 dvidir='${docdir}'
1151 pdfdir='${docdir}'
1152 psdir='${docdir}'
1153 libdir='${exec_prefix}/lib'
1154 localedir='${datarootdir}/locale'
1155 mandir='${datarootdir}/man'
1156
1157 ac_prev=
1158 ac_dashdash=
1159 for ac_option
1160 do
1161 # If the previous option needs an argument, assign it.
1162 if test -n "$ac_prev"; then
1163 eval $ac_prev=\$ac_option
1164 ac_prev=
1165 continue
1166 fi
1167
1168 case $ac_option in
1169 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1170 *=) ac_optarg= ;;
1171 *) ac_optarg=yes ;;
1172 esac
1173
1174 case $ac_dashdash$ac_option in
1175 --)
1176 ac_dashdash=yes ;;
1177
1178 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1179 ac_prev=bindir ;;
1180 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1181 bindir=$ac_optarg ;;
1182
1183 -build | --build | --buil | --bui | --bu)
1184 ac_prev=build_alias ;;
1185 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1186 build_alias=$ac_optarg ;;
1187
1188 -cache-file | --cache-file | --cache-fil | --cache-fi \
1189 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1190 ac_prev=cache_file ;;
1191 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1192 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1193 cache_file=$ac_optarg ;;
1194
1195 --config-cache | -C)
1196 cache_file=config.cache ;;
1197
1198 -datadir | --datadir | --datadi | --datad)
1199 ac_prev=datadir ;;
1200 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1201 datadir=$ac_optarg ;;
1202
1203 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1204 | --dataroo | --dataro | --datar)
1205 ac_prev=datarootdir ;;
1206 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1207 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1208 datarootdir=$ac_optarg ;;
1209
1210 -disable-* | --disable-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid feature name: '$ac_useropt'"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "enable_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval enable_$ac_useropt=no ;;
1225
1226 -docdir | --docdir | --docdi | --doc | --do)
1227 ac_prev=docdir ;;
1228 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1229 docdir=$ac_optarg ;;
1230
1231 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1232 ac_prev=dvidir ;;
1233 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1234 dvidir=$ac_optarg ;;
1235
1236 -enable-* | --enable-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid feature name: '$ac_useropt'"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245 "enable_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval enable_$ac_useropt=\$ac_optarg ;;
1251
1252 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1253 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1254 | --exec | --exe | --ex)
1255 ac_prev=exec_prefix ;;
1256 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1257 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1258 | --exec=* | --exe=* | --ex=*)
1259 exec_prefix=$ac_optarg ;;
1260
1261 -gas | --gas | --ga | --g)
1262 # Obsolete; use --with-gas.
1263 with_gas=yes ;;
1264
1265 -help | --help | --hel | --he | -h)
1266 ac_init_help=long ;;
1267 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1268 ac_init_help=recursive ;;
1269 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1270 ac_init_help=short ;;
1271
1272 -host | --host | --hos | --ho)
1273 ac_prev=host_alias ;;
1274 -host=* | --host=* | --hos=* | --ho=*)
1275 host_alias=$ac_optarg ;;
1276
1277 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1278 ac_prev=htmldir ;;
1279 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1280 | --ht=*)
1281 htmldir=$ac_optarg ;;
1282
1283 -includedir | --includedir | --includedi | --included | --include \
1284 | --includ | --inclu | --incl | --inc)
1285 ac_prev=includedir ;;
1286 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1287 | --includ=* | --inclu=* | --incl=* | --inc=*)
1288 includedir=$ac_optarg ;;
1289
1290 -infodir | --infodir | --infodi | --infod | --info | --inf)
1291 ac_prev=infodir ;;
1292 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1293 infodir=$ac_optarg ;;
1294
1295 -libdir | --libdir | --libdi | --libd)
1296 ac_prev=libdir ;;
1297 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1298 libdir=$ac_optarg ;;
1299
1300 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1301 | --libexe | --libex | --libe)
1302 ac_prev=libexecdir ;;
1303 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1304 | --libexe=* | --libex=* | --libe=*)
1305 libexecdir=$ac_optarg ;;
1306
1307 -localedir | --localedir | --localedi | --localed | --locale)
1308 ac_prev=localedir ;;
1309 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1310 localedir=$ac_optarg ;;
1311
1312 -localstatedir | --localstatedir | --localstatedi | --localstated \
1313 | --localstate | --localstat | --localsta | --localst | --locals)
1314 ac_prev=localstatedir ;;
1315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1316 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1317 localstatedir=$ac_optarg ;;
1318
1319 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1320 ac_prev=mandir ;;
1321 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1322 mandir=$ac_optarg ;;
1323
1324 -nfp | --nfp | --nf)
1325 # Obsolete; use --without-fp.
1326 with_fp=no ;;
1327
1328 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1329 | --no-cr | --no-c | -n)
1330 no_create=yes ;;
1331
1332 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1333 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1334 no_recursion=yes ;;
1335
1336 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1337 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1338 | --oldin | --oldi | --old | --ol | --o)
1339 ac_prev=oldincludedir ;;
1340 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1341 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1342 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1343 oldincludedir=$ac_optarg ;;
1344
1345 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1346 ac_prev=prefix ;;
1347 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1348 prefix=$ac_optarg ;;
1349
1350 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1351 | --program-pre | --program-pr | --program-p)
1352 ac_prev=program_prefix ;;
1353 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1354 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1355 program_prefix=$ac_optarg ;;
1356
1357 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1358 | --program-suf | --program-su | --program-s)
1359 ac_prev=program_suffix ;;
1360 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1361 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1362 program_suffix=$ac_optarg ;;
1363
1364 -program-transform-name | --program-transform-name \
1365 | --program-transform-nam | --program-transform-na \
1366 | --program-transform-n | --program-transform- \
1367 | --program-transform | --program-transfor \
1368 | --program-transfo | --program-transf \
1369 | --program-trans | --program-tran \
1370 | --progr-tra | --program-tr | --program-t)
1371 ac_prev=program_transform_name ;;
1372 -program-transform-name=* | --program-transform-name=* \
1373 | --program-transform-nam=* | --program-transform-na=* \
1374 | --program-transform-n=* | --program-transform-=* \
1375 | --program-transform=* | --program-transfor=* \
1376 | --program-transfo=* | --program-transf=* \
1377 | --program-trans=* | --program-tran=* \
1378 | --progr-tra=* | --program-tr=* | --program-t=*)
1379 program_transform_name=$ac_optarg ;;
1380
1381 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1382 ac_prev=pdfdir ;;
1383 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1384 pdfdir=$ac_optarg ;;
1385
1386 -psdir | --psdir | --psdi | --psd | --ps)
1387 ac_prev=psdir ;;
1388 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1389 psdir=$ac_optarg ;;
1390
1391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1392 | -silent | --silent | --silen | --sile | --sil)
1393 silent=yes ;;
1394
1395 -runstatedir | --runstatedir | --runstatedi | --runstated \
1396 | --runstate | --runstat | --runsta | --runst | --runs \
1397 | --run | --ru | --r)
1398 ac_prev=runstatedir ;;
1399 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1400 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1401 | --run=* | --ru=* | --r=*)
1402 runstatedir=$ac_optarg ;;
1403
1404 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1405 ac_prev=sbindir ;;
1406 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1407 | --sbi=* | --sb=*)
1408 sbindir=$ac_optarg ;;
1409
1410 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1411 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1412 | --sharedst | --shareds | --shared | --share | --shar \
1413 | --sha | --sh)
1414 ac_prev=sharedstatedir ;;
1415 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1416 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1417 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1418 | --sha=* | --sh=*)
1419 sharedstatedir=$ac_optarg ;;
1420
1421 -site | --site | --sit)
1422 ac_prev=site ;;
1423 -site=* | --site=* | --sit=*)
1424 site=$ac_optarg ;;
1425
1426 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1427 ac_prev=srcdir ;;
1428 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1429 srcdir=$ac_optarg ;;
1430
1431 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1432 | --syscon | --sysco | --sysc | --sys | --sy)
1433 ac_prev=sysconfdir ;;
1434 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1435 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1436 sysconfdir=$ac_optarg ;;
1437
1438 -target | --target | --targe | --targ | --tar | --ta | --t)
1439 ac_prev=target_alias ;;
1440 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1441 target_alias=$ac_optarg ;;
1442
1443 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1444 verbose=yes ;;
1445
1446 -version | --version | --versio | --versi | --vers | -V)
1447 ac_init_version=: ;;
1448
1449 -with-* | --with-*)
1450 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1451 # Reject names that are not valid shell variable names.
1452 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1453 as_fn_error $? "invalid package name: '$ac_useropt'"
1454 ac_useropt_orig=$ac_useropt
1455 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1456 case $ac_user_opts in
1457 *"
1458 "with_$ac_useropt"
1459 "*) ;;
1460 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1461 ac_unrecognized_sep=', ';;
1462 esac
1463 eval with_$ac_useropt=\$ac_optarg ;;
1464
1465 -without-* | --without-*)
1466 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1467 # Reject names that are not valid shell variable names.
1468 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1469 as_fn_error $? "invalid package name: '$ac_useropt'"
1470 ac_useropt_orig=$ac_useropt
1471 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1472 case $ac_user_opts in
1473 *"
1474 "with_$ac_useropt"
1475 "*) ;;
1476 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1477 ac_unrecognized_sep=', ';;
1478 esac
1479 eval with_$ac_useropt=no ;;
1480
1481 --x)
1482 # Obsolete; use --with-x.
1483 with_x=yes ;;
1484
1485 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1486 | --x-incl | --x-inc | --x-in | --x-i)
1487 ac_prev=x_includes ;;
1488 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1489 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1490 x_includes=$ac_optarg ;;
1491
1492 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1493 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1494 ac_prev=x_libraries ;;
1495 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1496 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1497 x_libraries=$ac_optarg ;;
1498
1499 -*) as_fn_error $? "unrecognized option: '$ac_option'
1500 Try '$0 --help' for more information"
1501 ;;
1502
1503 *=*)
1504 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1505 # Reject names that are not valid shell variable names.
1506 case $ac_envvar in #(
1507 '' | [0-9]* | *[!_$as_cr_alnum]* )
1508 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1509 esac
1510 eval $ac_envvar=\$ac_optarg
1511 export $ac_envvar ;;
1512
1513 *)
1514 # FIXME: should be removed in autoconf 3.0.
1515 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1516 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1517 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1518 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1519 ;;
1520
1521 esac
1522 done
1523
1524 if test -n "$ac_prev"; then
1525 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1526 as_fn_error $? "missing argument to $ac_option"
1527 fi
1528
1529 if test -n "$ac_unrecognized_opts"; then
1530 case $enable_option_checking in
1531 no) ;;
1532 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1533 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1534 esac
1535 fi
1536
1537 # Check all directory arguments for consistency.
1538 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1539 datadir sysconfdir sharedstatedir localstatedir includedir \
1540 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1541 libdir localedir mandir runstatedir
1542 do
1543 eval ac_val=\$$ac_var
1544 # Remove trailing slashes.
1545 case $ac_val in
1546 */ )
1547 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1548 eval $ac_var=\$ac_val;;
1549 esac
1550 # Be sure to have absolute directory names.
1551 case $ac_val in
1552 [\\/$]* | ?:[\\/]* ) continue;;
1553 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1554 esac
1555 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1556 done
1557
1558 # There might be people who depend on the old broken behavior: '$host'
1559 # used to hold the argument of --host etc.
1560 # FIXME: To remove some day.
1561 build=$build_alias
1562 host=$host_alias
1563 target=$target_alias
1564
1565 # FIXME: To remove some day.
1566 if test "x$host_alias" != x; then
1567 if test "x$build_alias" = x; then
1568 cross_compiling=maybe
1569 elif test "x$build_alias" != "x$host_alias"; then
1570 cross_compiling=yes
1571 fi
1572 fi
1573
1574 ac_tool_prefix=
1575 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1576
1577 test "$silent" = yes && exec 6>/dev/null
1578
1579
1580 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1581 ac_ls_di=`ls -di .` &&
1582 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1583 as_fn_error $? "working directory cannot be determined"
1584 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1585 as_fn_error $? "pwd does not report name of working directory"
1586
1587
1588 # Find the source files, if location was not specified.
1589 if test -z "$srcdir"; then
1590 ac_srcdir_defaulted=yes
1591 # Try the directory containing this script, then the parent directory.
1592 ac_confdir=`$as_dirname -- "$as_myself" ||
1593 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1594 X"$as_myself" : 'X\(//\)[^/]' \| \
1595 X"$as_myself" : 'X\(//\)$' \| \
1596 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1597 printf "%s\n" X"$as_myself" |
1598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1599 s//\1/
1600 q
1601 }
1602 /^X\(\/\/\)[^/].*/{
1603 s//\1/
1604 q
1605 }
1606 /^X\(\/\/\)$/{
1607 s//\1/
1608 q
1609 }
1610 /^X\(\/\).*/{
1611 s//\1/
1612 q
1613 }
1614 s/.*/./; q'`
1615 srcdir=$ac_confdir
1616 if test ! -r "$srcdir/$ac_unique_file"; then
1617 srcdir=..
1618 fi
1619 else
1620 ac_srcdir_defaulted=no
1621 fi
1622 if test ! -r "$srcdir/$ac_unique_file"; then
1623 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1624 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1625 fi
1626 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1627 ac_abs_confdir=`(
1628 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1629 pwd)`
1630 # When building in place, set srcdir=.
1631 if test "$ac_abs_confdir" = "$ac_pwd"; then
1632 srcdir=.
1633 fi
1634 # Remove unnecessary trailing slashes from srcdir.
1635 # Double slashes in file names in object file debugging info
1636 # mess up M-x gdb in Emacs.
1637 case $srcdir in
1638 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1639 esac
1640 for ac_var in $ac_precious_vars; do
1641 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1642 eval ac_env_${ac_var}_value=\$${ac_var}
1643 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1644 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1645 done
1646
1647 #
1648 # Report the --help message.
1649 #
1650 if test "$ac_init_help" = "long"; then
1651 # Omit some internal or obsolete options to make the list less imposing.
1652 # This message is too long to be a string in the A/UX 3.1 sh.
1653 cat <<_ACEOF
1654 'configure' configures sudo 1.9.17p2 to adapt to many kinds of systems.
1655
1656 Usage: $0 [OPTION]... [VAR=VALUE]...
1657
1658 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1659 VAR=VALUE. See below for descriptions of some of the useful variables.
1660
1661 Defaults for the options are specified in brackets.
1662
1663 Configuration:
1664 -h, --help display this help and exit
1665 --help=short display options specific to this package
1666 --help=recursive display the short help of all the included packages
1667 -V, --version display version information and exit
1668 -q, --quiet, --silent do not print 'checking ...' messages
1669 --cache-file=FILE cache test results in FILE [disabled]
1670 -C, --config-cache alias for '--cache-file=config.cache'
1671 -n, --no-create do not create output files
1672 --srcdir=DIR find the sources in DIR [configure dir or '..']
1673
1674 Installation directories:
1675 --prefix=PREFIX install architecture-independent files in PREFIX
1676 [$ac_default_prefix]
1677 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1678 [PREFIX]
1679
1680 By default, 'make install' will install all the files in
1681 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1682 an installation prefix other than '$ac_default_prefix' using '--prefix',
1683 for instance '--prefix=\$HOME'.
1684
1685 For better control, use the options below.
1686
1687 Fine tuning of the installation directories:
1688 --bindir=DIR user executables [EPREFIX/bin]
1689 --sbindir=DIR system admin executables [EPREFIX/sbin]
1690 --libexecdir=DIR program executables [EPREFIX/libexec]
1691 --sysconfdir=DIR read-only single-machine data [/etc]
1692 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1693 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1694 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1695 --libdir=DIR object code libraries [EPREFIX/lib]
1696 --includedir=DIR C header files [PREFIX/include]
1697 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1698 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1699 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1700 --infodir=DIR info documentation [DATAROOTDIR/info]
1701 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1702 --mandir=DIR man documentation [DATAROOTDIR/man]
1703 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1704 --htmldir=DIR html documentation [DOCDIR]
1705 --dvidir=DIR dvi documentation [DOCDIR]
1706 --pdfdir=DIR pdf documentation [DOCDIR]
1707 --psdir=DIR ps documentation [DOCDIR]
1708 _ACEOF
1709
1710 cat <<\_ACEOF
1711
1712 System types:
1713 --build=BUILD configure for building on BUILD [guessed]
1714 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1715 _ACEOF
1716 fi
1717
1718 if test -n "$ac_init_help"; then
1719 case $ac_init_help in
1720 short | recursive ) echo "Configuration of sudo 1.9.17p2:";;
1721 esac
1722 cat <<\_ACEOF
1723
1724 Optional Features:
1725 --disable-option-checking ignore unrecognized --enable/--with options
1726 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1727 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1728 --disable-authentication
1729 Do not require authentication by default
1730 --disable-root-mailer Don't run the mailer as root, run as the user
1731 --disable-setreuid Don't try to use the setreuid() function
1732 --disable-setresuid Don't try to use the setresuid() function
1733 --disable-shadow Never use shadow passwords
1734 --disable-root-sudo Don't allow root to run sudo
1735 --enable-log-host Log the hostname in the log file
1736 --enable-noargs-shell If sudo is given no arguments run a shell
1737 --enable-shell-sets-home
1738 Set $HOME to target user in shell mode
1739 --disable-path-info Print 'command not allowed' not 'command not found'
1740 --enable-env-debug Whether to enable environment debugging.
1741 --disable-ignore-dot allow '.' and "" in the PATH
1742 --enable-postinstall Script to run after the install phase
1743 --enable-zlib[=PATH] Whether to enable or disable zlib
1744 --enable-env-reset Whether to enable environment resetting by default.
1745 --enable-warnings Whether to enable compiler warnings
1746 --enable-werror Whether to enable the -Werror compiler option
1747 --disable-ssp Do not compile using the -fstack-protector option.
1748 --disable-hardening Do not use compiler/linker exploit mitigation
1749 options
1750 --enable-pie Build sudo as a position independent executable.
1751 --enable-sanitizer Build sudo with sanitizer support.
1752 --enable-fuzzer Build sudo with LLVM libFuzzer support.
1753 --enable-fuzzer-engine Link fuzz targets with the specified fuzzer engine
1754 instead of the default.
1755 --enable-fuzzer-linker Use the specified linker when building fuzz targets
1756 instead of the default C compiler.
1757 --disable-leaks Prevent some harmless memory leaks.
1758 --disable-poll Use select() instead of poll().
1759 --enable-admin-flag[=PATH]
1760 Whether to create a Ubuntu-style admin flag file
1761 --disable-nls Disable natural language support using gettext
1762 --disable-rpath Disable passing of -Rpath to the linker
1763 --enable-static-sudoers Build the sudoers policy module as part of the sudo
1764 binary instead as a plugin
1765 --disable-shared-libutil
1766 Disable use of the libsudo_util shared library.
1767 --enable-tmpfiles.d=DIR Set the path to the systemd tmpfiles.d directory.
1768 --enable-devsearch=PATH The colon-delimited path to search for device nodes
1769 when determining the tty name.
1770 --enable-sasl Enable/disable LDAP SASL support
1771 --timestamp-type=TYPE Set the default time stamp record type to global,
1772 ppid or tty.
1773 --enable-package-build Enable options for package building.
1774 --enable-gss-krb5-ccache-name
1775 Use GSS-API to set the Kerberos V cred cache name
1776 --enable-pvs-studio Create a PVS-Studio.cfg file.
1777 --disable-log-server Disable building the sudo_logsrvd log server.
1778 --disable-log-client Disable sudoers support for using the sudo_logsrvd
1779 log server.
1780 --enable-openssl Use OpenSSL's TLS and sha2 functions
1781 --enable-openssl-pkgconfig-template
1782 A printf format string used to construct the OpenSSL
1783 pkg-config name
1784 --enable-wolfssl Use wolfSSL's TLS and sha2 functions
1785 --enable-gcrypt Use GNU crypt's sha2 functions
1786 --enable-python Compile python plugin support
1787 --enable-adminconf[=DIR]
1788 Use configuration files from adminconfdir in
1789 preference to sysconfdir
1790 --enable-shared[=PKGS] build shared libraries [default=yes]
1791 --enable-static[=PKGS] build static libraries [default=yes]
1792 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1793 both]
1794 --enable-fast-install[=PKGS]
1795 optimize for fast installation [default=yes]
1796 --enable-aix-soname=aix|svr4|both
1797 shared library versioning (aka "SONAME") variant to
1798 provide on AIX, [default=aix].
1799 --disable-libtool-lock avoid locking (might break parallel builds)
1800 --enable-intercept fully qualified pathname of sudo_intercept.so
1801 --disable-sia Disable SIA on Digital UNIX
1802 --disable-largefile omit support for large files
1803 --disable-pam-session Disable PAM session support
1804 --enable-kerb5-instance instance string to append to the username (separated
1805 by a slash)
1806 --disable-year2038 don't support timestamps after 2038
1807
1808 Optional Packages:
1809 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1810 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1811 --with-otp-only deprecated
1812 --with-alertmail deprecated
1813 --with-devel add development options
1814 --with-CC C compiler to use
1815 --with-rpath deprecated, use --disable-rpath
1816 --with-blibpath[=PATH] deprecated
1817 --with-bsm-audit enable BSM audit support
1818 --with-linux-audit enable Linux audit support
1819 --with-solaris-audit enable Solaris audit support
1820 --with-sssd enable SSSD support
1821 --with-sssd-conf path to the SSSD config file
1822 --with-sssd-lib path to the SSSD library
1823 --with-incpath additional places to look for include files
1824 --with-libpath additional places to look for libraries
1825 --with-libraries additional libraries to link with
1826 --with-csops add CSOps standard options
1827 --without-passwd don't use passwd/shadow file for authentication
1828 --with-skey[=DIR] enable S/Key support
1829 --with-opie[=DIR] enable OPIE support
1830 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1831 --with-SecurID[=DIR] enable SecurID support
1832 --with-fwtk[=DIR] enable FWTK AuthSRV support
1833 --with-kerb5[=DIR] enable Kerberos V support
1834 --with-aixauth enable AIX general authentication support
1835 --with-pam enable PAM support
1836 --with-AFS enable AFS support
1837 --with-DCE enable DCE support
1838 --with-logincap enable BSD login class support
1839 --with-bsdauth enable BSD authentication support
1840 --with-project enable Solaris project support
1841 --without-lecture don't print lecture for first-time sudoer
1842 --with-logging log via syslog, file, or both
1843 --with-logfac syslog facility to log with (default is "auth")
1844 --with-goodpri syslog priority for commands (def is "notice")
1845 --with-badpri syslog priority for failures (def is "alert")
1846 --with-logpath path to the sudo log file
1847 --with-loglen maximum length of a log file line (default is 80)
1848 --with-ignore-dot deprecated, use --disable-ignore-dot
1849 --without-mail-if-no-user
1850 do not send mail if user not in sudoers
1851 --with-mail-if-no-host send mail if user in sudoers but not for this host
1852 --with-mail-if-noperms send mail if user not allowed to run command
1853 --with-mailto who should get sudo mail (default is "root")
1854 --with-mailsubject subject of sudo mail
1855 --with-passprompt default password prompt
1856 --with-badpass-message message the user sees when the password is wrong
1857 --with-fqdn expect fully qualified hosts in sudoers
1858 --with-timedir=DIR deprecated
1859 --with-rundir=DIR directory for sudo-specific files that do not
1860 survive a system reboot, e.g. '/var/run/sudo'
1861 --with-vardir=DIR directory for sudo-specific files that survive a
1862 system reboot, e.g. '/var/db/sudo' or
1863 '/var/lib/sudo'
1864 --with-iologdir=DIR directory to store sudo I/O log files in
1865 --with-relaydir=DIR directory to store sudo_logsrvd relay temporary
1866 files in
1867 --with-tzdir=DIR path to the time zone data directory
1868 --with-sendmail set path to sendmail
1869 --without-sendmail do not send mail at all
1870 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1871 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1872 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1873 --with-umask umask with which the prog should run (default is
1874 022)
1875 --without-umask Preserves the umask of the user invoking sudo.
1876 --with-umask-override Use the umask specified in sudoers even if it is
1877 less restrictive than the user's.
1878 --with-runas-default User to run commands as (default is "root")
1879 --with-exempt=group no passwd needed for users in this group
1880 --with-editor=path Default editor for visudo (defaults to vi)
1881 --with-env-editor Use the environment variable EDITOR for visudo
1882 --with-passwd-tries number of tries to enter password (default is 3)
1883 --with-timeout minutes before sudo asks for passwd again (def is 5
1884 minutes)
1885 --with-password-timeout passwd prompt timeout in minutes (default is 5
1886 minutes)
1887 --with-tty-tickets use a different ticket file for each tty
1888 --with-insults insult the user for entering an incorrect password
1889 --with-all-insults include all the sudo insult sets
1890 --with-classic-insults include the insults from the "classic" sudo
1891 --with-csops-insults include CSOps insults
1892 --with-hal-insults include 2001-like insults
1893 --with-goons-insults include the insults from the "Goon Show"
1894 --with-python-insults include the insults from "Monty Python's Flying
1895 Circus"
1896 --with-nsswitch[=PATH] path to nsswitch.conf
1897 --with-ldap[=DIR] enable LDAP support
1898 --with-ldap-conf-file path to LDAP configuration file
1899 --with-ldap-secret-file path to LDAP secret password file
1900 --with-secure-path-value
1901 value of secure_path in the default sudoers file, or
1902 "no" to comment out by default
1903 --with-secure-path override the user's path with a built-in one
1904 --without-interfaces don't try to read the ip addr of network interfaces
1905 --with-askpass=PATH Fully qualified pathname of askpass helper
1906 --with-exampledir=DIR path to install sudo examples in
1907 --with-plugindir=DIR set directory to load plugins from
1908 --with-man manual pages use man macros
1909 --with-mdoc manual pages use mdoc macros
1910 --with-selinux enable SELinux support
1911 --with-apparmor enable AppArmor support
1912 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1913 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1914 compiler's sysroot if not specified).
1915 --with-libtool=PATH specify path to libtool
1916 --with-noexec[=PATH] fully qualified pathname of sudo_noexec.so
1917 --with-netsvc[=PATH] path to netsvc.conf
1918 --with-pam-login enable specific PAM session for sudo -i
1919
1920 Some influential environment variables:
1921 SENDMAILPROG
1922 The fully-qualified path to the sendmail program to use.
1923 VIPROG The fully-qualified path to the vi program to use.
1924 MVPROG The fully-qualified path to the mv program to use.
1925 BSHELLPROG The fully-qualified path to the Bourne shell to use.
1926 CC C compiler command
1927 CFLAGS C compiler flags
1928 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1929 nonstandard directory <lib dir>
1930 LIBS libraries to pass to the linker, e.g. -l<library>
1931 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1932 you have headers in a nonstandard directory <include dir>
1933 CPP C preprocessor
1934 LT_SYS_LIBRARY_PATH
1935 User-defined run-time library search path.
1936 YACC The 'Yet Another Compiler Compiler' implementation to use.
1937 Defaults to the first program found out of: 'bison -y', 'byacc',
1938 'yacc'.
1939 YFLAGS The list of arguments that will be passed by default to $YACC.
1940 This script will default YFLAGS to the empty string to avoid a
1941 default value of '-d' given by some make applications.
1942 PYTHON the Python interpreter
1943 PYTHON_INCLUDE
1944 Include flags for python, bypassing python-config
1945 PYTHON_LIBS Linker flags for python, bypassing python-config
1946 PYTHON_CONFIG
1947 Path to python-config
1948
1949 Use these variables to override the choices made by 'configure' or to help
1950 it to find libraries and programs with nonstandard names/locations.
1951
1952 Report bugs to <https://bugzilla.sudo.ws/>.
1953 _ACEOF
1954 ac_status=$?
1955 fi
1956
1957 if test "$ac_init_help" = "recursive"; then
1958 # If there are subdirs, report their specific --help.
1959 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1960 test -d "$ac_dir" ||
1961 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1962 continue
1963 ac_builddir=.
1964
1965 case "$ac_dir" in
1966 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1967 *)
1968 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1969 # A ".." for each directory in $ac_dir_suffix.
1970 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1971 case $ac_top_builddir_sub in
1972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1974 esac ;;
1975 esac
1976 ac_abs_top_builddir=$ac_pwd
1977 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1978 # for backward compatibility:
1979 ac_top_builddir=$ac_top_build_prefix
1980
1981 case $srcdir in
1982 .) # We are building in place.
1983 ac_srcdir=.
1984 ac_top_srcdir=$ac_top_builddir_sub
1985 ac_abs_top_srcdir=$ac_pwd ;;
1986 [\\/]* | ?:[\\/]* ) # Absolute name.
1987 ac_srcdir=$srcdir$ac_dir_suffix;
1988 ac_top_srcdir=$srcdir
1989 ac_abs_top_srcdir=$srcdir ;;
1990 *) # Relative name.
1991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1992 ac_top_srcdir=$ac_top_build_prefix$srcdir
1993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1994 esac
1995 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1996
1997 cd "$ac_dir" || { ac_status=$?; continue; }
1998 # Check for configure.gnu first; this name is used for a wrapper for
1999 # Metaconfig's "Configure" on case-insensitive file systems.
2000 if test -f "$ac_srcdir/configure.gnu"; then
2001 echo &&
2002 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2003 elif test -f "$ac_srcdir/configure"; then
2004 echo &&
2005 $SHELL "$ac_srcdir/configure" --help=recursive
2006 else
2007 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2008 fi || ac_status=$?
2009 cd "$ac_pwd" || { ac_status=$?; break; }
2010 done
2011 fi
2012
2013 test -n "$ac_init_help" && exit $ac_status
2014 if $ac_init_version; then
2015 cat <<\_ACEOF
2016 sudo configure 1.9.17p2
2017 generated by GNU Autoconf 2.72
2018
2019 Copyright (C) 2023 Free Software Foundation, Inc.
2020 This configure script is free software; the Free Software Foundation
2021 gives unlimited permission to copy, distribute and modify it.
2022 _ACEOF
2023 exit
2024 fi
2025
2026 ## ------------------------ ##
2027 ## Autoconf initialization. ##
2028 ## ------------------------ ##
2029
2030 # ac_fn_c_try_compile LINENO
2031 # --------------------------
2032 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2033 ac_fn_c_try_compile ()
2034 {
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 rm -f conftest.$ac_objext conftest.beam
2037 if { { ac_try="$ac_compile"
2038 case "(($ac_try" in
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2041 esac
2042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043 printf "%s\n" "$ac_try_echo"; } >&5
2044 (eval "$ac_compile") 2>conftest.err
2045 ac_status=$?
2046 if test -s conftest.err; then
2047 grep -v '^ *+' conftest.err >conftest.er1
2048 cat conftest.er1 >&5
2049 mv -f conftest.er1 conftest.err
2050 fi
2051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052 test $ac_status = 0; } && {
2053 test -z "$ac_c_werror_flag" ||
2054 test ! -s conftest.err
2055 } && test -s conftest.$ac_objext
2056 then :
2057 ac_retval=0
2058 else case e in #(
2059 e) printf "%s\n" "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2061
2062 ac_retval=1 ;;
2063 esac
2064 fi
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 as_fn_set_status $ac_retval
2067
2068 } # ac_fn_c_try_compile
2069
2070 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2071 # -------------------------------------------------------
2072 # Tests whether HEADER exists and can be compiled using the include files in
2073 # INCLUDES, setting the cache variable VAR accordingly.
2074 ac_fn_c_check_header_compile ()
2075 {
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078 printf %s "checking for $2... " >&6; }
2079 if eval test \${$3+y}
2080 then :
2081 printf %s "(cached) " >&6
2082 else case e in #(
2083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"
2089 then :
2090 eval "$3=yes"
2091 else case e in #(
2092 e) eval "$3=no" ;;
2093 esac
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2096 esac
2097 fi
2098 eval ac_res=\$$3
2099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 printf "%s\n" "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102
2103 } # ac_fn_c_check_header_compile
2104
2105 # ac_fn_c_try_link LINENO
2106 # -----------------------
2107 # Try to link conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_c_try_link ()
2109 {
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2112 if { { ac_try="$ac_link"
2113 case "(($ac_try" in
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2116 esac
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 printf "%s\n" "$ac_try_echo"; } >&5
2119 (eval "$ac_link") 2>conftest.err
2120 ac_status=$?
2121 if test -s conftest.err; then
2122 grep -v '^ *+' conftest.err >conftest.er1
2123 cat conftest.er1 >&5
2124 mv -f conftest.er1 conftest.err
2125 fi
2126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && {
2128 test -z "$ac_c_werror_flag" ||
2129 test ! -s conftest.err
2130 } && test -s conftest$ac_exeext && {
2131 test "$cross_compiling" = yes ||
2132 test -x conftest$ac_exeext
2133 }
2134 then :
2135 ac_retval=0
2136 else case e in #(
2137 e) printf "%s\n" "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2139
2140 ac_retval=1 ;;
2141 esac
2142 fi
2143 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2144 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2145 # interfere with the next link command; also delete a directory that is
2146 # left behind by Apple's compiler. We do this before executing the actions.
2147 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 as_fn_set_status $ac_retval
2150
2151 } # ac_fn_c_try_link
2152
2153 # ac_fn_c_try_cpp LINENO
2154 # ----------------------
2155 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2156 ac_fn_c_try_cpp ()
2157 {
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 if { { ac_try="$ac_cpp conftest.$ac_ext"
2160 case "(($ac_try" in
2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162 *) ac_try_echo=$ac_try;;
2163 esac
2164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2165 printf "%s\n" "$ac_try_echo"; } >&5
2166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2167 ac_status=$?
2168 if test -s conftest.err; then
2169 grep -v '^ *+' conftest.err >conftest.er1
2170 cat conftest.er1 >&5
2171 mv -f conftest.er1 conftest.err
2172 fi
2173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2174 test $ac_status = 0; } > conftest.i && {
2175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2176 test ! -s conftest.err
2177 }
2178 then :
2179 ac_retval=0
2180 else case e in #(
2181 e) printf "%s\n" "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 ac_retval=1 ;;
2185 esac
2186 fi
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 as_fn_set_status $ac_retval
2189
2190 } # ac_fn_c_try_cpp
2191
2192 # ac_fn_c_check_func LINENO FUNC VAR
2193 # ----------------------------------
2194 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2195 ac_fn_c_check_func ()
2196 {
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 printf %s "checking for $2... " >&6; }
2200 if eval test \${$3+y}
2201 then :
2202 printf %s "(cached) " >&6
2203 else case e in #(
2204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2206 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2208 #define $2 innocuous_$2
2209
2210 /* System header to define __stub macros and hopefully few prototypes,
2211 which can conflict with char $2 (void); below. */
2212
2213 #include <limits.h>
2214 #undef $2
2215
2216 /* Override any GCC internal prototype to avoid an error.
2217 Use char because int might match the return type of a GCC
2218 builtin and then its argument prototype would still apply. */
2219 #ifdef __cplusplus
2220 extern "C"
2221 #endif
2222 char $2 (void);
2223 /* The GNU C library defines this for functions which it implements
2224 to always fail with ENOSYS. Some functions are actually named
2225 something starting with __ and the normal name is an alias. */
2226 #if defined __stub_$2 || defined __stub___$2
2227 choke me
2228 #endif
2229
2230 int
2231 main (void)
2232 {
2233 return $2 ();
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_link "$LINENO"
2239 then :
2240 eval "$3=yes"
2241 else case e in #(
2242 e) eval "$3=no" ;;
2243 esac
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2246 conftest$ac_exeext conftest.$ac_ext ;;
2247 esac
2248 fi
2249 eval ac_res=\$$3
2250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 printf "%s\n" "$ac_res" >&6; }
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253
2254 } # ac_fn_c_check_func
2255
2256 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2257 # -------------------------------------------
2258 # Tests whether TYPE exists after having included INCLUDES, setting cache
2259 # variable VAR accordingly.
2260 ac_fn_c_check_type ()
2261 {
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2264 printf %s "checking for $2... " >&6; }
2265 if eval test \${$3+y}
2266 then :
2267 printf %s "(cached) " >&6
2268 else case e in #(
2269 e) eval "$3=no"
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2272 $4
2273 int
2274 main (void)
2275 {
2276 if (sizeof ($2))
2277 return 0;
2278 ;
2279 return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"
2283 then :
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2286 $4
2287 int
2288 main (void)
2289 {
2290 if (sizeof (($2)))
2291 return 0;
2292 ;
2293 return 0;
2294 }
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"
2297 then :
2298
2299 else case e in #(
2300 e) eval "$3=yes" ;;
2301 esac
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2306 esac
2307 fi
2308 eval ac_res=\$$3
2309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 printf "%s\n" "$ac_res" >&6; }
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312
2313 } # ac_fn_c_check_type
2314
2315 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2316 # ------------------------------------------------------------------
2317 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2318 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2319 ac_fn_check_decl ()
2320 {
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 as_decl_name=`echo $2|sed 's/ *(.*//'`
2323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2324 printf %s "checking whether $as_decl_name is declared... " >&6; }
2325 if eval test \${$3+y}
2326 then :
2327 printf %s "(cached) " >&6
2328 else case e in #(
2329 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2330 eval ac_save_FLAGS=\$$6
2331 as_fn_append $6 " $5"
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2334 $4
2335 int
2336 main (void)
2337 {
2338 #ifndef $as_decl_name
2339 #ifdef __cplusplus
2340 (void) $as_decl_use;
2341 #else
2342 (void) $as_decl_name;
2343 #endif
2344 #endif
2345
2346 ;
2347 return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"
2351 then :
2352 eval "$3=yes"
2353 else case e in #(
2354 e) eval "$3=no" ;;
2355 esac
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2358 eval $6=\$ac_save_FLAGS
2359 ;;
2360 esac
2361 fi
2362 eval ac_res=\$$3
2363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 printf "%s\n" "$ac_res" >&6; }
2365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366
2367 } # ac_fn_check_decl
2368
2369 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2370 # ----------------------------------------------------
2371 # Tries to find if the field MEMBER exists in type AGGR, after including
2372 # INCLUDES, setting cache variable VAR accordingly.
2373 ac_fn_c_check_member ()
2374 {
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2377 printf %s "checking for $2.$3... " >&6; }
2378 if eval test \${$4+y}
2379 then :
2380 printf %s "(cached) " >&6
2381 else case e in #(
2382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2384 $5
2385 int
2386 main (void)
2387 {
2388 static $2 ac_aggr;
2389 if (ac_aggr.$3)
2390 return 0;
2391 ;
2392 return 0;
2393 }
2394 _ACEOF
2395 if ac_fn_c_try_compile "$LINENO"
2396 then :
2397 eval "$4=yes"
2398 else case e in #(
2399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2401 $5
2402 int
2403 main (void)
2404 {
2405 static $2 ac_aggr;
2406 if (sizeof ac_aggr.$3)
2407 return 0;
2408 ;
2409 return 0;
2410 }
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"
2413 then :
2414 eval "$4=yes"
2415 else case e in #(
2416 e) eval "$4=no" ;;
2417 esac
2418 fi
2419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2420 esac
2421 fi
2422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2423 esac
2424 fi
2425 eval ac_res=\$$4
2426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 printf "%s\n" "$ac_res" >&6; }
2428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2429
2430 } # ac_fn_c_check_member
2431
2432 # ac_fn_c_find_intX_t LINENO BITS VAR
2433 # -----------------------------------
2434 # Finds a signed integer type with width BITS, setting cache variable VAR
2435 # accordingly.
2436 ac_fn_c_find_intX_t ()
2437 {
2438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2440 printf %s "checking for int$2_t... " >&6; }
2441 if eval test \${$3+y}
2442 then :
2443 printf %s "(cached) " >&6
2444 else case e in #(
2445 e) eval "$3=no"
2446 # Order is important - never check a type that is potentially smaller
2447 # than half of the expected target width.
2448 for ac_type in int$2_t 'int' 'long int' \
2449 'long long int' 'short int' 'signed char'; do
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h. */
2452 $ac_includes_default
2453 enum { N = $2 / 2 - 1 };
2454 int
2455 main (void)
2456 {
2457 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2458 test_array [0] = 0;
2459 return test_array [0];
2460
2461 ;
2462 return 0;
2463 }
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"
2466 then :
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2469 $ac_includes_default
2470 enum { N = $2 / 2 - 1 };
2471 int
2472 main (void)
2473 {
2474 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2475 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2476 test_array [0] = 0;
2477 return test_array [0];
2478
2479 ;
2480 return 0;
2481 }
2482 _ACEOF
2483 if ac_fn_c_try_compile "$LINENO"
2484 then :
2485
2486 else case e in #(
2487 e) case $ac_type in #(
2488 int$2_t) :
2489 eval "$3=yes" ;; #(
2490 *) :
2491 eval "$3=\$ac_type" ;;
2492 esac ;;
2493 esac
2494 fi
2495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2496 fi
2497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2498 if eval test \"x\$"$3"\" = x"no"
2499 then :
2500
2501 else case e in #(
2502 e) break ;;
2503 esac
2504 fi
2505 done ;;
2506 esac
2507 fi
2508 eval ac_res=\$$3
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510 printf "%s\n" "$ac_res" >&6; }
2511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2512
2513 } # ac_fn_c_find_intX_t
2514
2515 # ac_fn_c_find_uintX_t LINENO BITS VAR
2516 # ------------------------------------
2517 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2518 # accordingly.
2519 ac_fn_c_find_uintX_t ()
2520 {
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2523 printf %s "checking for uint$2_t... " >&6; }
2524 if eval test \${$3+y}
2525 then :
2526 printf %s "(cached) " >&6
2527 else case e in #(
2528 e) eval "$3=no"
2529 # Order is important - never check a type that is potentially smaller
2530 # than half of the expected target width.
2531 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2532 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 $ac_includes_default
2536 int
2537 main (void)
2538 {
2539 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2540 test_array [0] = 0;
2541 return test_array [0];
2542
2543 ;
2544 return 0;
2545 }
2546 _ACEOF
2547 if ac_fn_c_try_compile "$LINENO"
2548 then :
2549 case $ac_type in #(
2550 uint$2_t) :
2551 eval "$3=yes" ;; #(
2552 *) :
2553 eval "$3=\$ac_type" ;;
2554 esac
2555 fi
2556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2557 if eval test \"x\$"$3"\" = x"no"
2558 then :
2559
2560 else case e in #(
2561 e) break ;;
2562 esac
2563 fi
2564 done ;;
2565 esac
2566 fi
2567 eval ac_res=\$$3
2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569 printf "%s\n" "$ac_res" >&6; }
2570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571
2572 } # ac_fn_c_find_uintX_t
2573
2574 # ac_fn_c_try_run LINENO
2575 # ----------------------
2576 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2577 # executables *can* be run.
2578 ac_fn_c_try_run ()
2579 {
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 if { { ac_try="$ac_link"
2582 case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585 esac
2586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2587 printf "%s\n" "$ac_try_echo"; } >&5
2588 (eval "$ac_link") 2>&5
2589 ac_status=$?
2590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2591 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2592 { { case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595 esac
2596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2597 printf "%s\n" "$ac_try_echo"; } >&5
2598 (eval "$ac_try") 2>&5
2599 ac_status=$?
2600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2601 test $ac_status = 0; }; }
2602 then :
2603 ac_retval=0
2604 else case e in #(
2605 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2606 printf "%s\n" "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 ac_retval=$ac_status ;;
2610 esac
2611 fi
2612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2614 as_fn_set_status $ac_retval
2615
2616 } # ac_fn_c_try_run
2617
2618 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2619 # --------------------------------------------
2620 # Tries to find the compile-time value of EXPR in a program that includes
2621 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2622 # computed
2623 ac_fn_c_compute_int ()
2624 {
2625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626 if test "$cross_compiling" = yes; then
2627 # Depending upon the size, compute the lo and hi bounds.
2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h. */
2630 $4
2631 int
2632 main (void)
2633 {
2634 static int test_array [1 - 2 * !(($2) >= 0)];
2635 test_array [0] = 0;
2636 return test_array [0];
2637
2638 ;
2639 return 0;
2640 }
2641 _ACEOF
2642 if ac_fn_c_try_compile "$LINENO"
2643 then :
2644 ac_lo=0 ac_mid=0
2645 while :; do
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h. */
2648 $4
2649 int
2650 main (void)
2651 {
2652 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2653 test_array [0] = 0;
2654 return test_array [0];
2655
2656 ;
2657 return 0;
2658 }
2659 _ACEOF
2660 if ac_fn_c_try_compile "$LINENO"
2661 then :
2662 ac_hi=$ac_mid; break
2663 else case e in #(
2664 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2665 if test $ac_lo -le $ac_mid; then
2666 ac_lo= ac_hi=
2667 break
2668 fi
2669 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2670 esac
2671 fi
2672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2673 done
2674 else case e in #(
2675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2677 $4
2678 int
2679 main (void)
2680 {
2681 static int test_array [1 - 2 * !(($2) < 0)];
2682 test_array [0] = 0;
2683 return test_array [0];
2684
2685 ;
2686 return 0;
2687 }
2688 _ACEOF
2689 if ac_fn_c_try_compile "$LINENO"
2690 then :
2691 ac_hi=-1 ac_mid=-1
2692 while :; do
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2695 $4
2696 int
2697 main (void)
2698 {
2699 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2700 test_array [0] = 0;
2701 return test_array [0];
2702
2703 ;
2704 return 0;
2705 }
2706 _ACEOF
2707 if ac_fn_c_try_compile "$LINENO"
2708 then :
2709 ac_lo=$ac_mid; break
2710 else case e in #(
2711 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2712 if test $ac_mid -le $ac_hi; then
2713 ac_lo= ac_hi=
2714 break
2715 fi
2716 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2717 esac
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2720 done
2721 else case e in #(
2722 e) ac_lo= ac_hi= ;;
2723 esac
2724 fi
2725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2726 esac
2727 fi
2728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2729 # Binary search between lo and hi bounds.
2730 while test "x$ac_lo" != "x$ac_hi"; do
2731 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h. */
2734 $4
2735 int
2736 main (void)
2737 {
2738 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2739 test_array [0] = 0;
2740 return test_array [0];
2741
2742 ;
2743 return 0;
2744 }
2745 _ACEOF
2746 if ac_fn_c_try_compile "$LINENO"
2747 then :
2748 ac_hi=$ac_mid
2749 else case e in #(
2750 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2751 esac
2752 fi
2753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2754 done
2755 case $ac_lo in #((
2756 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2757 '') ac_retval=1 ;;
2758 esac
2759 else
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2762 $4
2763 static long int longval (void) { return $2; }
2764 static unsigned long int ulongval (void) { return $2; }
2765 #include <stdio.h>
2766 #include <stdlib.h>
2767 int
2768 main (void)
2769 {
2770
2771 FILE *f = fopen ("conftest.val", "w");
2772 if (! f)
2773 return 1;
2774 if (($2) < 0)
2775 {
2776 long int i = longval ();
2777 if (i != ($2))
2778 return 1;
2779 fprintf (f, "%ld", i);
2780 }
2781 else
2782 {
2783 unsigned long int i = ulongval ();
2784 if (i != ($2))
2785 return 1;
2786 fprintf (f, "%lu", i);
2787 }
2788 /* Do not output a trailing newline, as this causes \r\n confusion
2789 on some platforms. */
2790 return ferror (f) || fclose (f) != 0;
2791
2792 ;
2793 return 0;
2794 }
2795 _ACEOF
2796 if ac_fn_c_try_run "$LINENO"
2797 then :
2798 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2799 else case e in #(
2800 e) ac_retval=1 ;;
2801 esac
2802 fi
2803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2804 conftest.$ac_objext conftest.beam conftest.$ac_ext
2805 rm -f conftest.val
2806
2807 fi
2808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2809 as_fn_set_status $ac_retval
2810
2811 } # ac_fn_c_compute_int
2812 ac_configure_args_raw=
2813 for ac_arg
2814 do
2815 case $ac_arg in
2816 *\'*)
2817 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2818 esac
2819 as_fn_append ac_configure_args_raw " '$ac_arg'"
2820 done
2821
2822 case $ac_configure_args_raw in
2823 *$as_nl*)
2824 ac_safe_unquote= ;;
2825 *)
2826 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2827 ac_unsafe_a="$ac_unsafe_z#~"
2828 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2829 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2830 esac
2831
2832 cat >config.log <<_ACEOF
2833 This file contains any messages produced by compilers while
2834 running configure, to aid debugging if configure makes a mistake.
2835
2836 It was created by sudo $as_me 1.9.17p2, which was
2837 generated by GNU Autoconf 2.72. Invocation command line was
2838
2839 $ $0$ac_configure_args_raw
2840
2841 _ACEOF
2842 exec 5>>config.log
2843 {
2844 cat <<_ASUNAME
2845 ## --------- ##
2846 ## Platform. ##
2847 ## --------- ##
2848
2849 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2850 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2851 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2852 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2853 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2854
2855 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2856 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2857
2858 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2859 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2860 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2861 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2862 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2863 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2864 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2865
2866 _ASUNAME
2867
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 case $as_dir in #(((
2873 '') as_dir=./ ;;
2874 */) ;;
2875 *) as_dir=$as_dir/ ;;
2876 esac
2877 printf "%s\n" "PATH: $as_dir"
2878 done
2879 IFS=$as_save_IFS
2880
2881 } >&5
2882
2883 cat >&5 <<_ACEOF
2884
2885
2886 ## ----------- ##
2887 ## Core tests. ##
2888 ## ----------- ##
2889
2890 _ACEOF
2891
2892
2893 # Keep a trace of the command line.
2894 # Strip out --no-create and --no-recursion so they do not pile up.
2895 # Strip out --silent because we don't want to record it for future runs.
2896 # Also quote any args containing shell meta-characters.
2897 # Make two passes to allow for proper duplicate-argument suppression.
2898 ac_configure_args=
2899 ac_configure_args0=
2900 ac_configure_args1=
2901 ac_must_keep_next=false
2902 for ac_pass in 1 2
2903 do
2904 for ac_arg
2905 do
2906 case $ac_arg in
2907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2909 | -silent | --silent | --silen | --sile | --sil)
2910 continue ;;
2911 *\'*)
2912 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2913 esac
2914 case $ac_pass in
2915 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2916 2)
2917 as_fn_append ac_configure_args1 " '$ac_arg'"
2918 if test $ac_must_keep_next = true; then
2919 ac_must_keep_next=false # Got value, back to normal.
2920 else
2921 case $ac_arg in
2922 *=* | --config-cache | -C | -disable-* | --disable-* \
2923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2925 | -with-* | --with-* | -without-* | --without-* | --x)
2926 case "$ac_configure_args0 " in
2927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2928 esac
2929 ;;
2930 -* ) ac_must_keep_next=true ;;
2931 esac
2932 fi
2933 as_fn_append ac_configure_args " '$ac_arg'"
2934 ;;
2935 esac
2936 done
2937 done
2938 { ac_configure_args0=; unset ac_configure_args0;}
2939 { ac_configure_args1=; unset ac_configure_args1;}
2940
2941 # When interrupted or exit'd, cleanup temporary files, and complete
2942 # config.log. We remove comments because anyway the quotes in there
2943 # would cause problems or look ugly.
2944 # WARNING: Use '\'' to represent an apostrophe within the trap.
2945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2946 trap 'exit_status=$?
2947 # Sanitize IFS.
2948 IFS=" "" $as_nl"
2949 # Save into config.log some information that might help in debugging.
2950 {
2951 echo
2952
2953 printf "%s\n" "## ---------------- ##
2954 ## Cache variables. ##
2955 ## ---------------- ##"
2956 echo
2957 # The following way of writing the cache mishandles newlines in values,
2958 (
2959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2960 eval ac_val=\$$ac_var
2961 case $ac_val in #(
2962 *${as_nl}*)
2963 case $ac_var in #(
2964 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2965 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2966 esac
2967 case $ac_var in #(
2968 _ | IFS | as_nl) ;; #(
2969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2970 *) { eval $ac_var=; unset $ac_var;} ;;
2971 esac ;;
2972 esac
2973 done
2974 (set) 2>&1 |
2975 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2976 *${as_nl}ac_space=\ *)
2977 sed -n \
2978 "s/'\''/'\''\\\\'\'''\''/g;
2979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2980 ;; #(
2981 *)
2982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2983 ;;
2984 esac |
2985 sort
2986 )
2987 echo
2988
2989 printf "%s\n" "## ----------------- ##
2990 ## Output variables. ##
2991 ## ----------------- ##"
2992 echo
2993 for ac_var in $ac_subst_vars
2994 do
2995 eval ac_val=\$$ac_var
2996 case $ac_val in
2997 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998 esac
2999 printf "%s\n" "$ac_var='\''$ac_val'\''"
3000 done | sort
3001 echo
3002
3003 if test -n "$ac_subst_files"; then
3004 printf "%s\n" "## ------------------- ##
3005 ## File substitutions. ##
3006 ## ------------------- ##"
3007 echo
3008 for ac_var in $ac_subst_files
3009 do
3010 eval ac_val=\$$ac_var
3011 case $ac_val in
3012 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3013 esac
3014 printf "%s\n" "$ac_var='\''$ac_val'\''"
3015 done | sort
3016 echo
3017 fi
3018
3019 if test -s confdefs.h; then
3020 printf "%s\n" "## ----------- ##
3021 ## confdefs.h. ##
3022 ## ----------- ##"
3023 echo
3024 cat confdefs.h
3025 echo
3026 fi
3027 test "$ac_signal" != 0 &&
3028 printf "%s\n" "$as_me: caught signal $ac_signal"
3029 printf "%s\n" "$as_me: exit $exit_status"
3030 } >&5
3031 rm -f core *.core core.conftest.* &&
3032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3033 exit $exit_status
3034 ' 0
3035 for ac_signal in 1 2 13 15; do
3036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3037 done
3038 ac_signal=0
3039
3040 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3041 rm -f -r conftest* confdefs.h
3042
3043 printf "%s\n" "/* confdefs.h */" > confdefs.h
3044
3045 # Predefined preprocessor variables.
3046
3047 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3048
3049 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3050
3051 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3052
3053 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3054
3055 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3056
3057 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3058
3059
3060 # Let the site file select an alternate cache file if it wants to.
3061 # Prefer an explicitly selected file to automatically selected ones.
3062 if test -n "$CONFIG_SITE"; then
3063 ac_site_files="$CONFIG_SITE"
3064 elif test "x$prefix" != xNONE; then
3065 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3066 else
3067 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3068 fi
3069
3070 for ac_site_file in $ac_site_files
3071 do
3072 case $ac_site_file in #(
3073 */*) :
3074 ;; #(
3075 *) :
3076 ac_site_file=./$ac_site_file ;;
3077 esac
3078 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3080 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3081 sed 's/^/| /' "$ac_site_file" >&5
3082 . "$ac_site_file" \
3083 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3084 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3085 as_fn_error $? "failed to load site script $ac_site_file
3086 See 'config.log' for more details" "$LINENO" 5; }
3087 fi
3088 done
3089
3090 if test -r "$cache_file"; then
3091 # Some versions of bash will fail to source /dev/null (special files
3092 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3093 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3095 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3096 case $cache_file in
3097 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3098 *) . "./$cache_file";;
3099 esac
3100 fi
3101 else
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3103 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3104 >$cache_file
3105 fi
3106
3107 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3108 # Test code for whether the C compiler supports C89 (global declarations)
3109 ac_c_conftest_c89_globals='
3110 /* Does the compiler advertise C89 conformance?
3111 Do not test the value of __STDC__, because some compilers set it to 0
3112 while being otherwise adequately conformant. */
3113 #if !defined __STDC__
3114 # error "Compiler does not advertise C89 conformance"
3115 #endif
3116
3117 #include <stddef.h>
3118 #include <stdarg.h>
3119 struct stat;
3120 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3121 struct buf { int x; };
3122 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3123 static char *e (char **p, int i)
3124 {
3125 return p[i];
3126 }
3127 static char *f (char * (*g) (char **, int), char **p, ...)
3128 {
3129 char *s;
3130 va_list v;
3131 va_start (v,p);
3132 s = g (p, va_arg (v,int));
3133 va_end (v);
3134 return s;
3135 }
3136
3137 /* C89 style stringification. */
3138 #define noexpand_stringify(a) #a
3139 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3140
3141 /* C89 style token pasting. Exercises some of the corner cases that
3142 e.g. old MSVC gets wrong, but not very hard. */
3143 #define noexpand_concat(a,b) a##b
3144 #define expand_concat(a,b) noexpand_concat(a,b)
3145 extern int vA;
3146 extern int vbee;
3147 #define aye A
3148 #define bee B
3149 int *pvA = &expand_concat(v,aye);
3150 int *pvbee = &noexpand_concat(v,bee);
3151
3152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3153 function prototypes and stuff, but not \xHH hex character constants.
3154 These do not provoke an error unfortunately, instead are silently treated
3155 as an "x". The following induces an error, until -std is added to get
3156 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3157 array size at least. It is necessary to write \x00 == 0 to get something
3158 that is true only with -std. */
3159 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3160
3161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3162 inside strings and character constants. */
3163 #define FOO(x) '\''x'\''
3164 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3165
3166 int test (int i, double x);
3167 struct s1 {int (*f) (int a);};
3168 struct s2 {int (*f) (double a);};
3169 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3170 int, int);'
3171
3172 # Test code for whether the C compiler supports C89 (body of main).
3173 ac_c_conftest_c89_main='
3174 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3175 '
3176
3177 # Test code for whether the C compiler supports C99 (global declarations)
3178 ac_c_conftest_c99_globals='
3179 /* Does the compiler advertise C99 conformance? */
3180 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3181 # error "Compiler does not advertise C99 conformance"
3182 #endif
3183
3184 // See if C++-style comments work.
3185
3186 #include <stdbool.h>
3187 extern int puts (const char *);
3188 extern int printf (const char *, ...);
3189 extern int dprintf (int, const char *, ...);
3190 extern void *malloc (size_t);
3191 extern void free (void *);
3192
3193 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3194 // dprintf is used instead of fprintf to avoid needing to declare
3195 // FILE and stderr.
3196 #define debug(...) dprintf (2, __VA_ARGS__)
3197 #define showlist(...) puts (#__VA_ARGS__)
3198 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3199 static void
3200 test_varargs_macros (void)
3201 {
3202 int x = 1234;
3203 int y = 5678;
3204 debug ("Flag");
3205 debug ("X = %d\n", x);
3206 showlist (The first, second, and third items.);
3207 report (x>y, "x is %d but y is %d", x, y);
3208 }
3209
3210 // Check long long types.
3211 #define BIG64 18446744073709551615ull
3212 #define BIG32 4294967295ul
3213 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3214 #if !BIG_OK
3215 #error "your preprocessor is broken"
3216 #endif
3217 #if BIG_OK
3218 #else
3219 #error "your preprocessor is broken"
3220 #endif
3221 static long long int bignum = -9223372036854775807LL;
3222 static unsigned long long int ubignum = BIG64;
3223
3224 struct incomplete_array
3225 {
3226 int datasize;
3227 double data[];
3228 };
3229
3230 struct named_init {
3231 int number;
3232 const wchar_t *name;
3233 double average;
3234 };
3235
3236 typedef const char *ccp;
3237
3238 static inline int
3239 test_restrict (ccp restrict text)
3240 {
3241 // Iterate through items via the restricted pointer.
3242 // Also check for declarations in for loops.
3243 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3244 continue;
3245 return 0;
3246 }
3247
3248 // Check varargs and va_copy.
3249 static bool
3250 test_varargs (const char *format, ...)
3251 {
3252 va_list args;
3253 va_start (args, format);
3254 va_list args_copy;
3255 va_copy (args_copy, args);
3256
3257 const char *str = "";
3258 int number = 0;
3259 float fnumber = 0;
3260
3261 while (*format)
3262 {
3263 switch (*format++)
3264 {
3265 case '\''s'\'': // string
3266 str = va_arg (args_copy, const char *);
3267 break;
3268 case '\''d'\'': // int
3269 number = va_arg (args_copy, int);
3270 break;
3271 case '\''f'\'': // float
3272 fnumber = va_arg (args_copy, double);
3273 break;
3274 default:
3275 break;
3276 }
3277 }
3278 va_end (args_copy);
3279 va_end (args);
3280
3281 return *str && number && fnumber;
3282 }
3283 '
3284
3285 # Test code for whether the C compiler supports C99 (body of main).
3286 ac_c_conftest_c99_main='
3287 // Check bool.
3288 _Bool success = false;
3289 success |= (argc != 0);
3290
3291 // Check restrict.
3292 if (test_restrict ("String literal") == 0)
3293 success = true;
3294 char *restrict newvar = "Another string";
3295
3296 // Check varargs.
3297 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3298 test_varargs_macros ();
3299
3300 // Check flexible array members.
3301 struct incomplete_array *ia =
3302 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3303 ia->datasize = 10;
3304 for (int i = 0; i < ia->datasize; ++i)
3305 ia->data[i] = i * 1.234;
3306 // Work around memory leak warnings.
3307 free (ia);
3308
3309 // Check named initializers.
3310 struct named_init ni = {
3311 .number = 34,
3312 .name = L"Test wide string",
3313 .average = 543.34343,
3314 };
3315
3316 ni.number = 58;
3317
3318 int dynamic_array[ni.number];
3319 dynamic_array[0] = argv[0][0];
3320 dynamic_array[ni.number - 1] = 543;
3321
3322 // work around unused variable warnings
3323 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3324 || dynamic_array[ni.number - 1] != 543);
3325 '
3326
3327 # Test code for whether the C compiler supports C11 (global declarations)
3328 ac_c_conftest_c11_globals='
3329 /* Does the compiler advertise C11 conformance? */
3330 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3331 # error "Compiler does not advertise C11 conformance"
3332 #endif
3333
3334 // Check _Alignas.
3335 char _Alignas (double) aligned_as_double;
3336 char _Alignas (0) no_special_alignment;
3337 extern char aligned_as_int;
3338 char _Alignas (0) _Alignas (int) aligned_as_int;
3339
3340 // Check _Alignof.
3341 enum
3342 {
3343 int_alignment = _Alignof (int),
3344 int_array_alignment = _Alignof (int[100]),
3345 char_alignment = _Alignof (char)
3346 };
3347 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3348
3349 // Check _Noreturn.
3350 int _Noreturn does_not_return (void) { for (;;) continue; }
3351
3352 // Check _Static_assert.
3353 struct test_static_assert
3354 {
3355 int x;
3356 _Static_assert (sizeof (int) <= sizeof (long int),
3357 "_Static_assert does not work in struct");
3358 long int y;
3359 };
3360
3361 // Check UTF-8 literals.
3362 #define u8 syntax error!
3363 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3364
3365 // Check duplicate typedefs.
3366 typedef long *long_ptr;
3367 typedef long int *long_ptr;
3368 typedef long_ptr long_ptr;
3369
3370 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3371 struct anonymous
3372 {
3373 union {
3374 struct { int i; int j; };
3375 struct { int k; long int l; } w;
3376 };
3377 int m;
3378 } v1;
3379 '
3380
3381 # Test code for whether the C compiler supports C11 (body of main).
3382 ac_c_conftest_c11_main='
3383 _Static_assert ((offsetof (struct anonymous, i)
3384 == offsetof (struct anonymous, w.k)),
3385 "Anonymous union alignment botch");
3386 v1.i = 2;
3387 v1.w.k = 5;
3388 ok |= v1.i != 5;
3389 '
3390
3391 # Test code for whether the C compiler supports C11 (complete).
3392 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3393 ${ac_c_conftest_c99_globals}
3394 ${ac_c_conftest_c11_globals}
3395
3396 int
3397 main (int argc, char **argv)
3398 {
3399 int ok = 0;
3400 ${ac_c_conftest_c89_main}
3401 ${ac_c_conftest_c99_main}
3402 ${ac_c_conftest_c11_main}
3403 return ok;
3404 }
3405 "
3406
3407 # Test code for whether the C compiler supports C99 (complete).
3408 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3409 ${ac_c_conftest_c99_globals}
3410
3411 int
3412 main (int argc, char **argv)
3413 {
3414 int ok = 0;
3415 ${ac_c_conftest_c89_main}
3416 ${ac_c_conftest_c99_main}
3417 return ok;
3418 }
3419 "
3420
3421 # Test code for whether the C compiler supports C89 (complete).
3422 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3423
3424 int
3425 main (int argc, char **argv)
3426 {
3427 int ok = 0;
3428 ${ac_c_conftest_c89_main}
3429 return ok;
3430 }
3431 "
3432
3433 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3434 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3435 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3436 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3437 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3438 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3439 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3440 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3441 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3442 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3443 as_fn_append ac_header_c_list " netgroup.h netgroup_h HAVE_NETGROUP_H"
3444 as_fn_append ac_header_c_list " paths.h paths_h HAVE_PATHS_H"
3445 as_fn_append ac_header_c_list " spawn.h spawn_h HAVE_SPAWN_H"
3446 as_fn_append ac_header_c_list " wordexp.h wordexp_h HAVE_WORDEXP_H"
3447 as_fn_append ac_header_c_list " sys/sockio.h sys_sockio_h HAVE_SYS_SOCKIO_H"
3448 as_fn_append ac_header_c_list " sys/bsdtypes.h sys_bsdtypes_h HAVE_SYS_BSDTYPES_H"
3449 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
3450 as_fn_append ac_header_c_list " sys/stropts.h sys_stropts_h HAVE_SYS_STROPTS_H"
3451 as_fn_append ac_header_c_list " sys/sysmacros.h sys_sysmacros_h HAVE_SYS_SYSMACROS_H"
3452 as_fn_append ac_header_c_list " sys/statvfs.h sys_statvfs_h HAVE_SYS_STATVFS_H"
3453 as_fn_append ac_func_c_list " faccessat HAVE_FACCESSAT"
3454 as_fn_append ac_func_c_list " fexecve HAVE_FEXECVE"
3455 as_fn_append ac_func_c_list " fmemopen HAVE_FMEMOPEN"
3456 as_fn_append ac_func_c_list " killpg HAVE_KILLPG"
3457 as_fn_append ac_func_c_list " nl_langinfo HAVE_NL_LANGINFO"
3458 as_fn_append ac_func_c_list " renameat HAVE_RENAMEAT"
3459 as_fn_append ac_func_c_list " strtoull HAVE_STRTOULL"
3460 as_fn_append ac_func_c_list " wordexp HAVE_WORDEXP"
3461 as_fn_append ac_func_c_list " seteuid HAVE_SETEUID"
3462
3463 # Auxiliary files required by this configure script.
3464 ac_aux_files="ltmain.sh config.guess config.sub"
3465
3466 # Locations in which to look for auxiliary files.
3467 ac_aux_dir_candidates="${srcdir}/scripts"
3468
3469 # Search for a directory containing all of the required auxiliary files,
3470 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3471 # If we don't find one directory that contains all the files we need,
3472 # we report the set of missing files from the *first* directory in
3473 # $ac_aux_dir_candidates and give up.
3474 ac_missing_aux_files=""
3475 ac_first_candidate=:
3476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 as_found=false
3479 for as_dir in $ac_aux_dir_candidates
3480 do
3481 IFS=$as_save_IFS
3482 case $as_dir in #(((
3483 '') as_dir=./ ;;
3484 */) ;;
3485 *) as_dir=$as_dir/ ;;
3486 esac
3487 as_found=:
3488
3489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3490 ac_aux_dir_found=yes
3491 ac_install_sh=
3492 for ac_aux in $ac_aux_files
3493 do
3494 # As a special case, if "install-sh" is required, that requirement
3495 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3496 # and $ac_install_sh is set appropriately for whichever one is found.
3497 if test x"$ac_aux" = x"install-sh"
3498 then
3499 if test -f "${as_dir}install-sh"; then
3500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3501 ac_install_sh="${as_dir}install-sh -c"
3502 elif test -f "${as_dir}install.sh"; then
3503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3504 ac_install_sh="${as_dir}install.sh -c"
3505 elif test -f "${as_dir}shtool"; then
3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3507 ac_install_sh="${as_dir}shtool install -c"
3508 else
3509 ac_aux_dir_found=no
3510 if $ac_first_candidate; then
3511 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3512 else
3513 break
3514 fi
3515 fi
3516 else
3517 if test -f "${as_dir}${ac_aux}"; then
3518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3519 else
3520 ac_aux_dir_found=no
3521 if $ac_first_candidate; then
3522 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3523 else
3524 break
3525 fi
3526 fi
3527 fi
3528 done
3529 if test "$ac_aux_dir_found" = yes; then
3530 ac_aux_dir="$as_dir"
3531 break
3532 fi
3533 ac_first_candidate=false
3534
3535 as_found=false
3536 done
3537 IFS=$as_save_IFS
3538 if $as_found
3539 then :
3540
3541 else case e in #(
3542 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3543 esac
3544 fi
3545
3546
3547 # These three variables are undocumented and unsupported,
3548 # and are intended to be withdrawn in a future Autoconf release.
3549 # They can cause serious problems if a builder's source tree is in a directory
3550 # whose full name contains unusual characters.
3551 if test -f "${ac_aux_dir}config.guess"; then
3552 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3553 fi
3554 if test -f "${ac_aux_dir}config.sub"; then
3555 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3556 fi
3557 if test -f "$ac_aux_dir/configure"; then
3558 ac_configure="$SHELL ${ac_aux_dir}configure"
3559 fi
3560
3561 # Check that the precious variables saved in the cache have kept the same
3562 # value.
3563 ac_cache_corrupted=false
3564 for ac_var in $ac_precious_vars; do
3565 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3566 eval ac_new_set=\$ac_env_${ac_var}_set
3567 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3568 eval ac_new_val=\$ac_env_${ac_var}_value
3569 case $ac_old_set,$ac_new_set in
3570 set,)
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3572 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3573 ac_cache_corrupted=: ;;
3574 ,set)
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3576 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3577 ac_cache_corrupted=: ;;
3578 ,);;
3579 *)
3580 if test "x$ac_old_val" != "x$ac_new_val"; then
3581 # differences in whitespace do not lead to failure.
3582 ac_old_val_w=`echo x $ac_old_val`
3583 ac_new_val_w=`echo x $ac_new_val`
3584 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3586 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3587 ac_cache_corrupted=:
3588 else
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3590 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3591 eval $ac_var=\$ac_old_val
3592 fi
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3594 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3596 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3597 fi;;
3598 esac
3599 # Pass precious variables to config.status.
3600 if test "$ac_new_set" = set; then
3601 case $ac_new_val in
3602 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3603 *) ac_arg=$ac_var=$ac_new_val ;;
3604 esac
3605 case " $ac_configure_args " in
3606 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3607 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3608 esac
3609 fi
3610 done
3611 if $ac_cache_corrupted; then
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3613 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3615 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3616 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3617 and start over" "$LINENO" 5
3618 fi
3619 ## -------------------- ##
3620 ## Main body of script. ##
3621 ## -------------------- ##
3622
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
3629
3630 ac_config_headers="$ac_config_headers config.h pathnames.h"
3631
3632
3633
3634 PROGS=sudo
3635 LT_LDDEP="\$(shlib_exp)"
3636 LT_LDEXPORTS="-export-symbols \$(shlib_exp)"
3637 BAMAN=0
3638 LCMAN=0
3639 PSMAN=0
3640 SEMAN=0
3641 AAMAN=0
3642 devdir='$(srcdir)'
3643 PRELOAD_MODULE='-module'
3644 LDAP='#'
3645 SUDO_NLS=disabled
3646 exampledir='$(docdir)/examples'
3647 adminconfdir='$(prefix)/etc'
3648 PYTHON_PLUGIN='#'
3649 LOGSRV_SRC='lib/logsrv'
3650 LOGSRVD_SRC='logsrvd'
3651 LOGSRVD_CONF='sudo_logsrvd.conf'
3652 LIBLOGSRV='$(top_builddir)/lib/logsrv/liblogsrv.la $(top_builddir)/lib/protobuf-c/libprotobuf-c.la'
3653 PPFILES='$(srcdir)/etc/sudo.pp'
3654 FUZZ_LD='$(CC)'
3655 cvtsudoers_conf='$(sysconfdir)/cvtsudoers.conf'
3656 sudo_conf='$(sysconfdir)/sudo.conf'
3657 sudo_logsrvd_conf='$(sysconfdir)/sudo_logsrvd.conf'
3658 sudoers_path='$(sysconfdir)/sudoers'
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700 #
3701 # Begin initial values for man page substitution
3702 #
3703 iolog_dir=/var/log/sudo-io
3704 log_dir=/var/log
3705 logpath=/var/log/sudo.log
3706 relay_dir=/var/log/sudo_logsrvd
3707 rundir=/var/run/sudo
3708 vardir=/var/adm/sudo
3709 timeout=5
3710 password_timeout=5
3711 sudo_umask=0022
3712 umask_override=off
3713 passprompt="Password: "
3714 long_otp_prompt=off
3715 lecture=once
3716 logfac=auth
3717 goodpri=notice
3718 badpri=alert
3719 loglen=80
3720 ignore_dot=on
3721 mail_no_user=on
3722 mail_no_host=off
3723 mail_no_perms=off
3724 mailto=root
3725 mailsub="*** SECURITY information for %h ***"
3726 badpass_message="Sorry, try again."
3727 fqdn=off
3728 runas_default=root
3729 env_editor=on
3730 env_reset=on
3731 editor=vi
3732 passwd_tries=3
3733 timestamp_type=tty
3734 insults=off
3735 root_sudo=on
3736 path_info=on
3737 ldap_conf=/etc/ldap.conf
3738 ldap_secret=/etc/ldap.secret
3739 netsvc_conf=/etc/netsvc.conf
3740 intercept_file="$libexecdir/sudo/sudo_intercept.so"
3741 noexec_file="$libexecdir/sudo/sudo_noexec.so"
3742 sesh_file="$libexecdir/sudo/sesh"
3743 visudo="$sbindir/visudo"
3744 nsswitch_conf=/etc/nsswitch.conf
3745 secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
3746 secure_path_config=
3747 secure_path_status="disabled"
3748 pam_session=on
3749 pam_login_service=sudo
3750 plugindir="$libexecdir/sudo"
3751 sudoers_plugin="sudoers.so"
3752 python_plugin="python_plugin.so"
3753 DIGEST=digest.lo
3754 devsearch="/dev/pts:/dev/vt:/dev/term:/dev/zcons:/dev/pty:/dev"
3755 #
3756 # End initial values for man page substitution
3757 #
3758 : ${MANDIRTYPE='man'}
3759 : ${SHLIB_MODE='0644'}
3760 : ${SUDOERS_MODE='0440'}
3761 : ${SUDOERS_UID='0'}
3762 : ${SUDOERS_GID='0'}
3763 CONFIGURE_ARGS="$@"
3764 AUTH_REG=
3765 AUTH_EXCL=
3766 AUTH_EXCL_DEF=
3767 AUTH_DEF=passwd
3768 CHECKSHADOW=true
3769 shadow_funcs=
3770 shadow_libs=
3771 OS_INIT=os_init_common
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784 ac_ext=c
3785 ac_cpp='$CPP $CPPFLAGS'
3786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789 if test -n "$ac_tool_prefix"; then
3790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 printf %s "checking for $ac_word... " >&6; }
3794 if test ${ac_cv_prog_CC+y}
3795 then :
3796 printf %s "(cached) " >&6
3797 else case e in #(
3798 e) if test -n "$CC"; then
3799 ac_cv_prog_CC="$CC" # Let the user override the test.
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804 IFS=$as_save_IFS
3805 case $as_dir in #(((
3806 '') as_dir=./ ;;
3807 */) ;;
3808 *) as_dir=$as_dir/ ;;
3809 esac
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816 done
3817 done
3818 IFS=$as_save_IFS
3819
3820 fi ;;
3821 esac
3822 fi
3823 CC=$ac_cv_prog_CC
3824 if test -n "$CC"; then
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826 printf "%s\n" "$CC" >&6; }
3827 else
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 printf "%s\n" "no" >&6; }
3830 fi
3831
3832
3833 fi
3834 if test -z "$ac_cv_prog_CC"; then
3835 ac_ct_CC=$CC
3836 # Extract the first word of "gcc", so it can be a program name with args.
3837 set dummy gcc; ac_word=$2
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 printf %s "checking for $ac_word... " >&6; }
3840 if test ${ac_cv_prog_ac_ct_CC+y}
3841 then :
3842 printf %s "(cached) " >&6
3843 else case e in #(
3844 e) if test -n "$ac_ct_CC"; then
3845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850 IFS=$as_save_IFS
3851 case $as_dir in #(((
3852 '') as_dir=./ ;;
3853 */) ;;
3854 *) as_dir=$as_dir/ ;;
3855 esac
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_ac_ct_CC="gcc"
3859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862 done
3863 done
3864 IFS=$as_save_IFS
3865
3866 fi ;;
3867 esac
3868 fi
3869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3870 if test -n "$ac_ct_CC"; then
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3872 printf "%s\n" "$ac_ct_CC" >&6; }
3873 else
3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 printf "%s\n" "no" >&6; }
3876 fi
3877
3878 if test "x$ac_ct_CC" = x; then
3879 CC=""
3880 else
3881 case $cross_compiling:$ac_tool_warned in
3882 yes:)
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3884 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3885 ac_tool_warned=yes ;;
3886 esac
3887 CC=$ac_ct_CC
3888 fi
3889 else
3890 CC="$ac_cv_prog_CC"
3891 fi
3892
3893 if test -z "$CC"; then
3894 if test -n "$ac_tool_prefix"; then
3895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3896 set dummy ${ac_tool_prefix}cc; ac_word=$2
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 printf %s "checking for $ac_word... " >&6; }
3899 if test ${ac_cv_prog_CC+y}
3900 then :
3901 printf %s "(cached) " >&6
3902 else case e in #(
3903 e) if test -n "$CC"; then
3904 ac_cv_prog_CC="$CC" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909 IFS=$as_save_IFS
3910 case $as_dir in #(((
3911 '') as_dir=./ ;;
3912 */) ;;
3913 *) as_dir=$as_dir/ ;;
3914 esac
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3917 ac_cv_prog_CC="${ac_tool_prefix}cc"
3918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3919 break 2
3920 fi
3921 done
3922 done
3923 IFS=$as_save_IFS
3924
3925 fi ;;
3926 esac
3927 fi
3928 CC=$ac_cv_prog_CC
3929 if test -n "$CC"; then
3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931 printf "%s\n" "$CC" >&6; }
3932 else
3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 printf "%s\n" "no" >&6; }
3935 fi
3936
3937
3938 fi
3939 fi
3940 if test -z "$CC"; then
3941 # Extract the first word of "cc", so it can be a program name with args.
3942 set dummy cc; ac_word=$2
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944 printf %s "checking for $ac_word... " >&6; }
3945 if test ${ac_cv_prog_CC+y}
3946 then :
3947 printf %s "(cached) " >&6
3948 else case e in #(
3949 e) if test -n "$CC"; then
3950 ac_cv_prog_CC="$CC" # Let the user override the test.
3951 else
3952 ac_prog_rejected=no
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956 IFS=$as_save_IFS
3957 case $as_dir in #(((
3958 '') as_dir=./ ;;
3959 */) ;;
3960 *) as_dir=$as_dir/ ;;
3961 esac
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3964 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3965 ac_prog_rejected=yes
3966 continue
3967 fi
3968 ac_cv_prog_CC="cc"
3969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972 done
3973 done
3974 IFS=$as_save_IFS
3975
3976 if test $ac_prog_rejected = yes; then
3977 # We found a bogon in the path, so make sure we never use it.
3978 set dummy $ac_cv_prog_CC
3979 shift
3980 if test $# != 0; then
3981 # We chose a different compiler from the bogus one.
3982 # However, it has the same basename, so the bogon will be chosen
3983 # first if we set CC to just the basename; use the full file name.
3984 shift
3985 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3986 fi
3987 fi
3988 fi ;;
3989 esac
3990 fi
3991 CC=$ac_cv_prog_CC
3992 if test -n "$CC"; then
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3994 printf "%s\n" "$CC" >&6; }
3995 else
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 printf "%s\n" "no" >&6; }
3998 fi
3999
4000
4001 fi
4002 if test -z "$CC"; then
4003 if test -n "$ac_tool_prefix"; then
4004 for ac_prog in cl.exe
4005 do
4006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 printf %s "checking for $ac_word... " >&6; }
4010 if test ${ac_cv_prog_CC+y}
4011 then :
4012 printf %s "(cached) " >&6
4013 else case e in #(
4014 e) if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020 IFS=$as_save_IFS
4021 case $as_dir in #(((
4022 '') as_dir=./ ;;
4023 */) ;;
4024 *) as_dir=$as_dir/ ;;
4025 esac
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4030 break 2
4031 fi
4032 done
4033 done
4034 IFS=$as_save_IFS
4035
4036 fi ;;
4037 esac
4038 fi
4039 CC=$ac_cv_prog_CC
4040 if test -n "$CC"; then
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4042 printf "%s\n" "$CC" >&6; }
4043 else
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 printf "%s\n" "no" >&6; }
4046 fi
4047
4048
4049 test -n "$CC" && break
4050 done
4051 fi
4052 if test -z "$CC"; then
4053 ac_ct_CC=$CC
4054 for ac_prog in cl.exe
4055 do
4056 # Extract the first word of "$ac_prog", so it can be a program name with args.
4057 set dummy $ac_prog; ac_word=$2
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 printf %s "checking for $ac_word... " >&6; }
4060 if test ${ac_cv_prog_ac_ct_CC+y}
4061 then :
4062 printf %s "(cached) " >&6
4063 else case e in #(
4064 e) if test -n "$ac_ct_CC"; then
4065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070 IFS=$as_save_IFS
4071 case $as_dir in #(((
4072 '') as_dir=./ ;;
4073 */) ;;
4074 *) as_dir=$as_dir/ ;;
4075 esac
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4078 ac_cv_prog_ac_ct_CC="$ac_prog"
4079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4080 break 2
4081 fi
4082 done
4083 done
4084 IFS=$as_save_IFS
4085
4086 fi ;;
4087 esac
4088 fi
4089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4090 if test -n "$ac_ct_CC"; then
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4092 printf "%s\n" "$ac_ct_CC" >&6; }
4093 else
4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 printf "%s\n" "no" >&6; }
4096 fi
4097
4098
4099 test -n "$ac_ct_CC" && break
4100 done
4101
4102 if test "x$ac_ct_CC" = x; then
4103 CC=""
4104 else
4105 case $cross_compiling:$ac_tool_warned in
4106 yes:)
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111 CC=$ac_ct_CC
4112 fi
4113 fi
4114
4115 fi
4116 if test -z "$CC"; then
4117 if test -n "$ac_tool_prefix"; then
4118 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4119 set dummy ${ac_tool_prefix}clang; ac_word=$2
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 printf %s "checking for $ac_word... " >&6; }
4122 if test ${ac_cv_prog_CC+y}
4123 then :
4124 printf %s "(cached) " >&6
4125 else case e in #(
4126 e) if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132 IFS=$as_save_IFS
4133 case $as_dir in #(((
4134 '') as_dir=./ ;;
4135 */) ;;
4136 *) as_dir=$as_dir/ ;;
4137 esac
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4140 ac_cv_prog_CC="${ac_tool_prefix}clang"
4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144 done
4145 done
4146 IFS=$as_save_IFS
4147
4148 fi ;;
4149 esac
4150 fi
4151 CC=$ac_cv_prog_CC
4152 if test -n "$CC"; then
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4154 printf "%s\n" "$CC" >&6; }
4155 else
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 printf "%s\n" "no" >&6; }
4158 fi
4159
4160
4161 fi
4162 if test -z "$ac_cv_prog_CC"; then
4163 ac_ct_CC=$CC
4164 # Extract the first word of "clang", so it can be a program name with args.
4165 set dummy clang; ac_word=$2
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 printf %s "checking for $ac_word... " >&6; }
4168 if test ${ac_cv_prog_ac_ct_CC+y}
4169 then :
4170 printf %s "(cached) " >&6
4171 else case e in #(
4172 e) if test -n "$ac_ct_CC"; then
4173 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178 IFS=$as_save_IFS
4179 case $as_dir in #(((
4180 '') as_dir=./ ;;
4181 */) ;;
4182 *) as_dir=$as_dir/ ;;
4183 esac
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_ac_ct_CC="clang"
4187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4188 break 2
4189 fi
4190 done
4191 done
4192 IFS=$as_save_IFS
4193
4194 fi ;;
4195 esac
4196 fi
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4200 printf "%s\n" "$ac_ct_CC" >&6; }
4201 else
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 printf "%s\n" "no" >&6; }
4204 fi
4205
4206 if test "x$ac_ct_CC" = x; then
4207 CC=""
4208 else
4209 case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215 CC=$ac_ct_CC
4216 fi
4217 else
4218 CC="$ac_cv_prog_CC"
4219 fi
4220
4221 fi
4222
4223
4224 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4225 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4226 as_fn_error $? "no acceptable C compiler found in \$PATH
4227 See 'config.log' for more details" "$LINENO" 5; }
4228
4229 # Provide some information about the compiler.
4230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4231 set X $ac_compile
4232 ac_compiler=$2
4233 for ac_option in --version -v -V -qversion -version; do
4234 { { ac_try="$ac_compiler $ac_option >&5"
4235 case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238 esac
4239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240 printf "%s\n" "$ac_try_echo"; } >&5
4241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4242 ac_status=$?
4243 if test -s conftest.err; then
4244 sed '10a\
4245 ... rest of stderr output deleted ...
4246 10q' conftest.err >conftest.er1
4247 cat conftest.er1 >&5
4248 fi
4249 rm -f conftest.er1 conftest.err
4250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }
4252 done
4253
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256
4257 int
4258 main (void)
4259 {
4260
4261 ;
4262 return 0;
4263 }
4264 _ACEOF
4265 ac_clean_files_save=$ac_clean_files
4266 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4267 # Try to create an executable without -o first, disregard a.out.
4268 # It will help us diagnose broken compilers, and finding out an intuition
4269 # of exeext.
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4271 printf %s "checking whether the C compiler works... " >&6; }
4272 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4273
4274 # The possible output files:
4275 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4276
4277 ac_rmfiles=
4278 for ac_file in $ac_files
4279 do
4280 case $ac_file in
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4282 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4283 esac
4284 done
4285 rm -f $ac_rmfiles
4286
4287 if { { ac_try="$ac_link_default"
4288 case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 printf "%s\n" "$ac_try_echo"; } >&5
4294 (eval "$ac_link_default") 2>&5
4295 ac_status=$?
4296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; }
4298 then :
4299 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4300 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4301 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4302 # so that the user can short-circuit this test for compilers unknown to
4303 # Autoconf.
4304 for ac_file in $ac_files ''
4305 do
4306 test -f "$ac_file" || continue
4307 case $ac_file in
4308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4309 ;;
4310 [ab].out )
4311 # We found the default executable, but exeext='' is most
4312 # certainly right.
4313 break;;
4314 *.* )
4315 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4316 then :; else
4317 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4318 fi
4319 # We set ac_cv_exeext here because the later test for it is not
4320 # safe: cross compilers may not add the suffix if given an '-o'
4321 # argument, so we may need to know it at that point already.
4322 # Even if this section looks crufty: it has the advantage of
4323 # actually working.
4324 break;;
4325 * )
4326 break;;
4327 esac
4328 done
4329 test "$ac_cv_exeext" = no && ac_cv_exeext=
4330
4331 else case e in #(
4332 e) ac_file='' ;;
4333 esac
4334 fi
4335 if test -z "$ac_file"
4336 then :
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 printf "%s\n" "no" >&6; }
4339 printf "%s\n" "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4343 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4344 as_fn_error 77 "C compiler cannot create executables
4345 See 'config.log' for more details" "$LINENO" 5; }
4346 else case e in #(
4347 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4348 printf "%s\n" "yes" >&6; } ;;
4349 esac
4350 fi
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4352 printf %s "checking for C compiler default output file name... " >&6; }
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4354 printf "%s\n" "$ac_file" >&6; }
4355 ac_exeext=$ac_cv_exeext
4356
4357 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4358 ac_clean_files=$ac_clean_files_save
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4360 printf %s "checking for suffix of executables... " >&6; }
4361 if { { ac_try="$ac_link"
4362 case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365 esac
4366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 printf "%s\n" "$ac_try_echo"; } >&5
4368 (eval "$ac_link") 2>&5
4369 ac_status=$?
4370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }
4372 then :
4373 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4374 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4375 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4376 # 'rm'.
4377 for ac_file in conftest.exe conftest conftest.*; do
4378 test -f "$ac_file" || continue
4379 case $ac_file in
4380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4382 break;;
4383 * ) break;;
4384 esac
4385 done
4386 else case e in #(
4387 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4388 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4389 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4390 See 'config.log' for more details" "$LINENO" 5; } ;;
4391 esac
4392 fi
4393 rm -f conftest conftest$ac_cv_exeext
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4395 printf "%s\n" "$ac_cv_exeext" >&6; }
4396
4397 rm -f conftest.$ac_ext
4398 EXEEXT=$ac_cv_exeext
4399 ac_exeext=$EXEEXT
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 #include <stdio.h>
4403 int
4404 main (void)
4405 {
4406 FILE *f = fopen ("conftest.out", "w");
4407 if (!f)
4408 return 1;
4409 return ferror (f) || fclose (f) != 0;
4410
4411 ;
4412 return 0;
4413 }
4414 _ACEOF
4415 ac_clean_files="$ac_clean_files conftest.out"
4416 # Check that the compiler produces executables we can run. If not, either
4417 # the compiler is broken, or we cross compile.
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4419 printf %s "checking whether we are cross compiling... " >&6; }
4420 if test "$cross_compiling" != yes; then
4421 { { ac_try="$ac_link"
4422 case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425 esac
4426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4427 printf "%s\n" "$ac_try_echo"; } >&5
4428 (eval "$ac_link") 2>&5
4429 ac_status=$?
4430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431 test $ac_status = 0; }
4432 if { ac_try='./conftest$ac_cv_exeext'
4433 { { case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436 esac
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 printf "%s\n" "$ac_try_echo"; } >&5
4439 (eval "$ac_try") 2>&5
4440 ac_status=$?
4441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442 test $ac_status = 0; }; }; then
4443 cross_compiling=no
4444 else
4445 if test "$cross_compiling" = maybe; then
4446 cross_compiling=yes
4447 else
4448 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4449 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4450 as_fn_error 77 "cannot run C compiled programs.
4451 If you meant to cross compile, use '--host'.
4452 See 'config.log' for more details" "$LINENO" 5; }
4453 fi
4454 fi
4455 fi
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4457 printf "%s\n" "$cross_compiling" >&6; }
4458
4459 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4460 conftest.o conftest.obj conftest.out
4461 ac_clean_files=$ac_clean_files_save
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4463 printf %s "checking for suffix of object files... " >&6; }
4464 if test ${ac_cv_objext+y}
4465 then :
4466 printf %s "(cached) " >&6
4467 else case e in #(
4468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470
4471 int
4472 main (void)
4473 {
4474
4475 ;
4476 return 0;
4477 }
4478 _ACEOF
4479 rm -f conftest.o conftest.obj
4480 if { { ac_try="$ac_compile"
4481 case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484 esac
4485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4486 printf "%s\n" "$ac_try_echo"; } >&5
4487 (eval "$ac_compile") 2>&5
4488 ac_status=$?
4489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4490 test $ac_status = 0; }
4491 then :
4492 for ac_file in conftest.o conftest.obj conftest.*; do
4493 test -f "$ac_file" || continue;
4494 case $ac_file in
4495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4496 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4497 break;;
4498 esac
4499 done
4500 else case e in #(
4501 e) printf "%s\n" "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4505 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4506 as_fn_error $? "cannot compute suffix of object files: cannot compile
4507 See 'config.log' for more details" "$LINENO" 5; } ;;
4508 esac
4509 fi
4510 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4511 esac
4512 fi
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4514 printf "%s\n" "$ac_cv_objext" >&6; }
4515 OBJEXT=$ac_cv_objext
4516 ac_objext=$OBJEXT
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4518 printf %s "checking whether the compiler supports GNU C... " >&6; }
4519 if test ${ac_cv_c_compiler_gnu+y}
4520 then :
4521 printf %s "(cached) " >&6
4522 else case e in #(
4523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525
4526 int
4527 main (void)
4528 {
4529 #ifndef __GNUC__
4530 choke me
4531 #endif
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"
4538 then :
4539 ac_compiler_gnu=yes
4540 else case e in #(
4541 e) ac_compiler_gnu=no ;;
4542 esac
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4546 ;;
4547 esac
4548 fi
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4550 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552
4553 if test $ac_compiler_gnu = yes; then
4554 GCC=yes
4555 else
4556 GCC=
4557 fi
4558 ac_test_CFLAGS=${CFLAGS+y}
4559 ac_save_CFLAGS=$CFLAGS
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4561 printf %s "checking whether $CC accepts -g... " >&6; }
4562 if test ${ac_cv_prog_cc_g+y}
4563 then :
4564 printf %s "(cached) " >&6
4565 else case e in #(
4566 e) ac_save_c_werror_flag=$ac_c_werror_flag
4567 ac_c_werror_flag=yes
4568 ac_cv_prog_cc_g=no
4569 CFLAGS="-g"
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572
4573 int
4574 main (void)
4575 {
4576
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 if ac_fn_c_try_compile "$LINENO"
4582 then :
4583 ac_cv_prog_cc_g=yes
4584 else case e in #(
4585 e) CFLAGS=""
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4588
4589 int
4590 main (void)
4591 {
4592
4593 ;
4594 return 0;
4595 }
4596 _ACEOF
4597 if ac_fn_c_try_compile "$LINENO"
4598 then :
4599
4600 else case e in #(
4601 e) ac_c_werror_flag=$ac_save_c_werror_flag
4602 CFLAGS="-g"
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605
4606 int
4607 main (void)
4608 {
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_compile "$LINENO"
4615 then :
4616 ac_cv_prog_cc_g=yes
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4619 esac
4620 fi
4621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4622 esac
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4625 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4626 esac
4627 fi
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4629 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4630 if test $ac_test_CFLAGS; then
4631 CFLAGS=$ac_save_CFLAGS
4632 elif test $ac_cv_prog_cc_g = yes; then
4633 if test "$GCC" = yes; then
4634 CFLAGS="-g -O2"
4635 else
4636 CFLAGS="-g"
4637 fi
4638 else
4639 if test "$GCC" = yes; then
4640 CFLAGS="-O2"
4641 else
4642 CFLAGS=
4643 fi
4644 fi
4645 ac_prog_cc_stdc=no
4646 if test x$ac_prog_cc_stdc = xno
4647 then :
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4649 printf %s "checking for $CC option to enable C11 features... " >&6; }
4650 if test ${ac_cv_prog_cc_c11+y}
4651 then :
4652 printf %s "(cached) " >&6
4653 else case e in #(
4654 e) ac_cv_prog_cc_c11=no
4655 ac_save_CC=$CC
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 $ac_c_conftest_c11_program
4659 _ACEOF
4660 for ac_arg in '' -std=gnu11
4661 do
4662 CC="$ac_save_CC $ac_arg"
4663 if ac_fn_c_try_compile "$LINENO"
4664 then :
4665 ac_cv_prog_cc_c11=$ac_arg
4666 fi
4667 rm -f core conftest.err conftest.$ac_objext conftest.beam
4668 test "x$ac_cv_prog_cc_c11" != "xno" && break
4669 done
4670 rm -f conftest.$ac_ext
4671 CC=$ac_save_CC ;;
4672 esac
4673 fi
4674
4675 if test "x$ac_cv_prog_cc_c11" = xno
4676 then :
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4678 printf "%s\n" "unsupported" >&6; }
4679 else case e in #(
4680 e) if test "x$ac_cv_prog_cc_c11" = x
4681 then :
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4683 printf "%s\n" "none needed" >&6; }
4684 else case e in #(
4685 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4686 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4687 CC="$CC $ac_cv_prog_cc_c11" ;;
4688 esac
4689 fi
4690 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4691 ac_prog_cc_stdc=c11 ;;
4692 esac
4693 fi
4694 fi
4695 if test x$ac_prog_cc_stdc = xno
4696 then :
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4698 printf %s "checking for $CC option to enable C99 features... " >&6; }
4699 if test ${ac_cv_prog_cc_c99+y}
4700 then :
4701 printf %s "(cached) " >&6
4702 else case e in #(
4703 e) ac_cv_prog_cc_c99=no
4704 ac_save_CC=$CC
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 $ac_c_conftest_c99_program
4708 _ACEOF
4709 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4710 do
4711 CC="$ac_save_CC $ac_arg"
4712 if ac_fn_c_try_compile "$LINENO"
4713 then :
4714 ac_cv_prog_cc_c99=$ac_arg
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext conftest.beam
4717 test "x$ac_cv_prog_cc_c99" != "xno" && break
4718 done
4719 rm -f conftest.$ac_ext
4720 CC=$ac_save_CC ;;
4721 esac
4722 fi
4723
4724 if test "x$ac_cv_prog_cc_c99" = xno
4725 then :
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4727 printf "%s\n" "unsupported" >&6; }
4728 else case e in #(
4729 e) if test "x$ac_cv_prog_cc_c99" = x
4730 then :
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4732 printf "%s\n" "none needed" >&6; }
4733 else case e in #(
4734 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4735 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4736 CC="$CC $ac_cv_prog_cc_c99" ;;
4737 esac
4738 fi
4739 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4740 ac_prog_cc_stdc=c99 ;;
4741 esac
4742 fi
4743 fi
4744 if test x$ac_prog_cc_stdc = xno
4745 then :
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4747 printf %s "checking for $CC option to enable C89 features... " >&6; }
4748 if test ${ac_cv_prog_cc_c89+y}
4749 then :
4750 printf %s "(cached) " >&6
4751 else case e in #(
4752 e) ac_cv_prog_cc_c89=no
4753 ac_save_CC=$CC
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4756 $ac_c_conftest_c89_program
4757 _ACEOF
4758 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4759 do
4760 CC="$ac_save_CC $ac_arg"
4761 if ac_fn_c_try_compile "$LINENO"
4762 then :
4763 ac_cv_prog_cc_c89=$ac_arg
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext conftest.beam
4766 test "x$ac_cv_prog_cc_c89" != "xno" && break
4767 done
4768 rm -f conftest.$ac_ext
4769 CC=$ac_save_CC ;;
4770 esac
4771 fi
4772
4773 if test "x$ac_cv_prog_cc_c89" = xno
4774 then :
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4776 printf "%s\n" "unsupported" >&6; }
4777 else case e in #(
4778 e) if test "x$ac_cv_prog_cc_c89" = x
4779 then :
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4781 printf "%s\n" "none needed" >&6; }
4782 else case e in #(
4783 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4784 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4785 CC="$CC $ac_cv_prog_cc_c89" ;;
4786 esac
4787 fi
4788 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4789 ac_prog_cc_stdc=c89 ;;
4790 esac
4791 fi
4792 fi
4793
4794 ac_ext=c
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799
4800
4801 ac_header= ac_cache=
4802 for ac_item in $ac_header_c_list
4803 do
4804 if test $ac_cache; then
4805 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4806 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4807 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4808 fi
4809 ac_header= ac_cache=
4810 elif test $ac_header; then
4811 ac_cache=$ac_item
4812 else
4813 ac_header=$ac_item
4814 fi
4815 done
4816
4817
4818
4819
4820
4821
4822
4823
4824 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4825 then :
4826
4827 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4828
4829 fi
4830
4831
4832
4833
4834
4835
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4837 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4838 if test ${ac_cv_safe_to_define___extensions__+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else case e in #(
4842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844
4845 # define __EXTENSIONS__ 1
4846 $ac_includes_default
4847 int
4848 main (void)
4849 {
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 if ac_fn_c_try_compile "$LINENO"
4856 then :
4857 ac_cv_safe_to_define___extensions__=yes
4858 else case e in #(
4859 e) ac_cv_safe_to_define___extensions__=no ;;
4860 esac
4861 fi
4862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4863 esac
4864 fi
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4866 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4867
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4869 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4870 if test ${ac_cv_should_define__xopen_source+y}
4871 then :
4872 printf %s "(cached) " >&6
4873 else case e in #(
4874 e) ac_cv_should_define__xopen_source=no
4875 if test $ac_cv_header_wchar_h = yes
4876 then :
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879
4880 #include <wchar.h>
4881 mbstate_t x;
4882 int
4883 main (void)
4884 {
4885
4886 ;
4887 return 0;
4888 }
4889 _ACEOF
4890 if ac_fn_c_try_compile "$LINENO"
4891 then :
4892
4893 else case e in #(
4894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4896
4897 #define _XOPEN_SOURCE 500
4898 #include <wchar.h>
4899 mbstate_t x;
4900 int
4901 main (void)
4902 {
4903
4904 ;
4905 return 0;
4906 }
4907 _ACEOF
4908 if ac_fn_c_try_compile "$LINENO"
4909 then :
4910 ac_cv_should_define__xopen_source=yes
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4913 esac
4914 fi
4915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4916 fi ;;
4917 esac
4918 fi
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4920 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4921
4922 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4923
4924 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4925
4926 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4927
4928 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4929
4930 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4931
4932 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4933
4934 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4935
4936 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4937
4938 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4939
4940 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4941
4942 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4943
4944 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4945
4946 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4947
4948 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4949
4950 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4951
4952 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4953
4954 if test $ac_cv_header_minix_config_h = yes
4955 then :
4956 MINIX=yes
4957 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4958
4959 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4960
4961 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4962
4963 else case e in #(
4964 e) MINIX= ;;
4965 esac
4966 fi
4967 if test $ac_cv_safe_to_define___extensions__ = yes
4968 then :
4969 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4970
4971 fi
4972 if test $ac_cv_should_define__xopen_source = yes
4973 then :
4974 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4975
4976 fi
4977
4978
4979 #
4980 # Prior to sudo 1.8.7, sudo stored libexec files in $libexecdir.
4981 # Starting with sudo 1.8.7, $libexecdir/sudo is used so strip
4982 # off an extraneous "/sudo" from libexecdir.
4983 #
4984 case "$libexecdir" in
4985 */sudo)
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libexecdir should not include the \"sudo\" subdirectory" >&5
4987 printf "%s\n" "$as_me: WARNING: libexecdir should not include the \"sudo\" subdirectory" >&2;}
4988 libexecdir=`expr "$libexecdir" : '\\(.*\\)/sudo$'`
4989 ;;
4990 esac
4991
4992
4993
4994 # Check whether --with-otp-only was given.
4995 if test ${with_otp_only+y}
4996 then :
4997 withval=$with_otp_only; case $with_otp_only in
4998 yes) with_passwd="no"
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
5000 printf "%s\n" "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
5001 ;;
5002 esac
5003 fi
5004
5005
5006
5007 # Check whether --with-alertmail was given.
5008 if test ${with_alertmail+y}
5009 then :
5010 withval=$with_alertmail; case $with_alertmail in
5011 *) with_mailto="$with_alertmail"
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
5013 printf "%s\n" "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
5014 ;;
5015 esac
5016 fi
5017
5018
5019
5020
5021 # Check whether --with-devel was given.
5022 if test ${with_devel+y}
5023 then :
5024 withval=$with_devel; case $with_devel in
5025 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting up for development: -Wall, flex, yacc" >&5
5026 printf "%s\n" "$as_me: setting up for development: -Wall, flex, yacc" >&6;}
5027
5028 if test ${CPPFLAGS+y}
5029 then :
5030
5031 case " $CPPFLAGS " in #(
5032 *" -DSUDO_DEVEL "*) :
5033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -DSUDO_DEVEL"; } >&5
5034 (: CPPFLAGS already contains -DSUDO_DEVEL) 2>&5
5035 ac_status=$?
5036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5037 test $ac_status = 0; } ;; #(
5038 *) :
5039
5040 as_fn_append CPPFLAGS " -DSUDO_DEVEL"
5041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
5042 (: CPPFLAGS="$CPPFLAGS") 2>&5
5043 ac_status=$?
5044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5045 test $ac_status = 0; }
5046 ;;
5047 esac
5048
5049 else case e in #(
5050 e)
5051 CPPFLAGS=-DSUDO_DEVEL
5052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
5053 (: CPPFLAGS="$CPPFLAGS") 2>&5
5054 ac_status=$?
5055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5056 test $ac_status = 0; }
5057 ;;
5058 esac
5059 fi
5060
5061 DEVEL="true"
5062 devdir=.
5063 ;;
5064 no) ;;
5065 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --with-devel: $with_devel" >&5
5066 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --with-devel: $with_devel" >&2;}
5067 ;;
5068 esac
5069 fi
5070
5071
5072
5073 # Check whether --with-CC was given.
5074 if test ${with_CC+y}
5075 then :
5076 withval=$with_CC; case $with_CC in
5077 *) as_fn_error $? "the --with-CC option is no longer supported, please pass CC=$with_CC to configure instead." "$LINENO" 5
5078 ;;
5079 esac
5080 fi
5081
5082
5083
5084 # Check whether --with-rpath was given.
5085 if test ${with_rpath+y}
5086 then :
5087 withval=$with_rpath; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-rpath deprecated, rpath is now the default" >&5
5088 printf "%s\n" "$as_me: WARNING: --with-rpath deprecated, rpath is now the default" >&2;}
5089 fi
5090
5091
5092
5093 # Check whether --with-blibpath was given.
5094 if test ${with_blibpath+y}
5095 then :
5096 withval=$with_blibpath; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-blibpath deprecated, use --with-libpath" >&5
5097 printf "%s\n" "$as_me: WARNING: --with-blibpath deprecated, use --with-libpath" >&2;}
5098 fi
5099
5100
5101
5102 # Check whether --with-bsm-audit was given.
5103 if test ${with_bsm_audit+y}
5104 then :
5105 withval=$with_bsm_audit; case $with_bsm_audit in
5106 yes) printf "%s\n" "#define HAVE_BSM_AUDIT 1" >>confdefs.h
5107
5108 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
5109 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
5110 ;;
5111 no) ;;
5112 *) as_fn_error $? "--with-bsm-audit does not take an argument." "$LINENO" 5
5113 ;;
5114 esac
5115 fi
5116
5117
5118
5119 # Check whether --with-linux-audit was given.
5120 if test ${with_linux_audit+y}
5121 then :
5122 withval=$with_linux_audit; case $with_linux_audit in
5123 yes) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5125 #include <libaudit.h>
5126 int
5127 main (void)
5128 {
5129 int i = AUDIT_USER_CMD; (void)i;
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"
5135 then :
5136
5137 printf "%s\n" "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
5138
5139 SUDO_LIBS="${SUDO_LIBS} -laudit"
5140 SUDOERS_LIBS="${SUDO_LIBS} -laudit"
5141 SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
5142
5143 else case e in #(
5144 e)
5145 as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
5146 ;;
5147 esac
5148 fi
5149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5150 ;;
5151 no) ;;
5152 *) as_fn_error $? "--with-linux-audit does not take an argument." "$LINENO" 5
5153 ;;
5154 esac
5155 fi
5156
5157
5158
5159 # Check whether --with-solaris-audit was given.
5160 if test ${with_solaris_audit+y}
5161 then :
5162 withval=$with_solaris_audit; case $with_solaris_audit in
5163 yes) printf "%s\n" "#define HAVE_SOLARIS_AUDIT 1" >>confdefs.h
5164
5165 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
5166 SUDOERS_OBJS="${SUDOERS_OBJS} solaris_audit.lo"
5167 ;;
5168 no) ;;
5169 *) as_fn_error $? "--with-solaris-audit does not take an argument." "$LINENO" 5
5170 ;;
5171 esac
5172 fi
5173
5174
5175
5176 # Check whether --with-sssd was given.
5177 if test ${with_sssd+y}
5178 then :
5179 withval=$with_sssd; case $with_sssd in
5180 yes) SUDOERS_OBJS="${SUDOERS_OBJS} sssd.lo"
5181 case "$SUDOERS_OBJS" in
5182 *ldap_util.lo*) ;;
5183 *) SUDOERS_OBJS="${SUDOERS_OBJS} ldap_util.lo";;
5184 esac
5185 printf "%s\n" "#define HAVE_SSSD 1" >>confdefs.h
5186
5187 ;;
5188 no) ;;
5189 *) as_fn_error $? "--with-sssd does not take an argument." "$LINENO" 5
5190 ;;
5191 esac
5192 fi
5193
5194
5195
5196 # Check whether --with-sssd-conf was given.
5197 if test ${with_sssd_conf+y}
5198 then :
5199 withval=$with_sssd_conf;
5200 fi
5201
5202 sssd_conf="/etc/sssd/sssd.conf"
5203 test -n "$with_sssd_conf" && sssd_conf="$with_sssd_conf"
5204 cat >>confdefs.h <<EOF
5205 #define _PATH_SSSD_CONF "$sssd_conf"
5206 EOF
5207
5208
5209
5210 # Check whether --with-sssd-lib was given.
5211 if test ${with_sssd_lib+y}
5212 then :
5213 withval=$with_sssd_lib;
5214 fi
5215
5216 sssd_lib="\"LIBDIR\""
5217 test -n "$with_sssd_lib" && sssd_lib="$with_sssd_lib"
5218 cat >>confdefs.h <<EOF
5219 #define _PATH_SSSD_LIB "$sssd_lib"
5220 EOF
5221
5222
5223
5224 # Check whether --with-incpath was given.
5225 if test ${with_incpath+y}
5226 then :
5227 withval=$with_incpath; case $with_incpath in
5228 yes) as_fn_error $? "must give --with-incpath an argument." "$LINENO" 5
5229 ;;
5230 no) as_fn_error $? "--without-incpath not supported." "$LINENO" 5
5231 ;;
5232 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding ${with_incpath} to CPPFLAGS" >&5
5233 printf "%s\n" "$as_me: adding ${with_incpath} to CPPFLAGS" >&6;}
5234 for i in ${with_incpath}; do
5235
5236 if test ${CPPFLAGS+y}
5237 then :
5238
5239 case " $CPPFLAGS " in #(
5240 *" -I${i} "*) :
5241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${i}"; } >&5
5242 (: CPPFLAGS already contains -I${i}) 2>&5
5243 ac_status=$?
5244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5245 test $ac_status = 0; } ;; #(
5246 *) :
5247
5248 as_fn_append CPPFLAGS " -I${i}"
5249 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
5250 (: CPPFLAGS="$CPPFLAGS") 2>&5
5251 ac_status=$?
5252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5253 test $ac_status = 0; }
5254 ;;
5255 esac
5256
5257 else case e in #(
5258 e)
5259 CPPFLAGS=-I${i}
5260 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
5261 (: CPPFLAGS="$CPPFLAGS") 2>&5
5262 ac_status=$?
5263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5264 test $ac_status = 0; }
5265 ;;
5266 esac
5267 fi
5268
5269 done
5270 ;;
5271 esac
5272 fi
5273
5274
5275
5276 # Check whether --with-libpath was given.
5277 if test ${with_libpath+y}
5278 then :
5279 withval=$with_libpath; case $with_libpath in
5280 yes) as_fn_error $? "must give --with-libpath an argument." "$LINENO" 5
5281 ;;
5282 no) as_fn_error $? "--without-libpath not supported." "$LINENO" 5
5283 ;;
5284 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding ${with_libpath} to LDFLAGS" >&5
5285 printf "%s\n" "$as_me: adding ${with_libpath} to LDFLAGS" >&6;}
5286 ;;
5287 esac
5288 fi
5289
5290
5291
5292 # Check whether --with-libraries was given.
5293 if test ${with_libraries+y}
5294 then :
5295 withval=$with_libraries; case $with_libraries in
5296 yes) as_fn_error $? "must give --with-libraries an argument." "$LINENO" 5
5297 ;;
5298 no) as_fn_error $? "--without-libraries not supported." "$LINENO" 5
5299 ;;
5300 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding ${with_libraries} to LIBS" >&5
5301 printf "%s\n" "$as_me: adding ${with_libraries} to LIBS" >&6;}
5302 ;;
5303 esac
5304 fi
5305
5306
5307
5308 # Check whether --with-csops was given.
5309 if test ${with_csops+y}
5310 then :
5311 withval=$with_csops; case $with_csops in
5312 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding CSOps standard options" >&5
5313 printf "%s\n" "$as_me: adding CSOps standard options" >&6;}
5314 CHECKSIA=false
5315 insults=on
5316 : ${mansectsu='8'}
5317 : ${mansectform='5'}
5318 : ${mansectmisc='7'}
5319 ;;
5320 no) ;;
5321 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --with-csops: $with_csops" >&5
5322 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --with-csops: $with_csops" >&2;}
5323 ;;
5324 esac
5325 fi
5326
5327
5328
5329 # Check whether --with-passwd was given.
5330 if test ${with_passwd+y}
5331 then :
5332 withval=$with_passwd; case $with_passwd in
5333 yes|no) AUTH_DEF=""
5334 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
5335 ;;
5336 *) as_fn_error $? "sorry, --with-passwd does not take an argument." "$LINENO" 5
5337 ;;
5338 esac
5339 fi
5340
5341
5342
5343 # Check whether --with-skey was given.
5344 if test ${with_skey+y}
5345 then :
5346 withval=$with_skey; case $with_skey in
5347 no) ;;
5348 *) printf "%s\n" "#define HAVE_SKEY 1" >>confdefs.h
5349
5350 AUTH_REG="$AUTH_REG S/Key"
5351 ;;
5352 esac
5353 fi
5354
5355
5356
5357 # Check whether --with-opie was given.
5358 if test ${with_opie+y}
5359 then :
5360 withval=$with_opie; case $with_opie in
5361 no) ;;
5362 *) printf "%s\n" "#define HAVE_OPIE 1" >>confdefs.h
5363
5364 AUTH_REG="$AUTH_REG NRL_OPIE"
5365 ;;
5366 esac
5367 fi
5368
5369
5370
5371 # Check whether --with-long-otp-prompt was given.
5372 if test ${with_long_otp_prompt+y}
5373 then :
5374 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
5375 yes) printf "%s\n" "#define LONG_OTP_PROMPT 1" >>confdefs.h
5376
5377 long_otp_prompt=on
5378 ;;
5379 no) long_otp_prompt=off
5380 ;;
5381 *) as_fn_error $? "--with-long-otp-prompt does not take an argument." "$LINENO" 5
5382 ;;
5383 esac
5384 fi
5385
5386
5387
5388 # Check whether --with-SecurID was given.
5389 if test ${with_SecurID+y}
5390 then :
5391 withval=$with_SecurID; case $with_SecurID in
5392 no) ;;
5393 *) printf "%s\n" "#define HAVE_SECURID 1" >>confdefs.h
5394
5395 AUTH_EXCL="$AUTH_EXCL SecurID"
5396 ;;
5397 esac
5398 fi
5399
5400
5401
5402 # Check whether --with-fwtk was given.
5403 if test ${with_fwtk+y}
5404 then :
5405 withval=$with_fwtk; case $with_fwtk in
5406 no) ;;
5407 *) printf "%s\n" "#define HAVE_FWTK 1" >>confdefs.h
5408
5409 AUTH_EXCL="$AUTH_EXCL FWTK"
5410 ;;
5411 esac
5412 fi
5413
5414
5415
5416 # Check whether --with-kerb5 was given.
5417 if test ${with_kerb5+y}
5418 then :
5419 withval=$with_kerb5; case $with_kerb5 in
5420 no) ;;
5421 *) AUTH_REG="$AUTH_REG kerb5"
5422 ;;
5423 esac
5424 fi
5425
5426
5427
5428 # Check whether --with-aixauth was given.
5429 if test ${with_aixauth+y}
5430 then :
5431 withval=$with_aixauth; case $with_aixauth in
5432 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
5433 no) ;;
5434 *) as_fn_error $? "--with-aixauth does not take an argument." "$LINENO" 5
5435 ;;
5436 esac
5437 fi
5438
5439
5440
5441 # Check whether --with-pam was given.
5442 if test ${with_pam+y}
5443 then :
5444 withval=$with_pam; case $with_pam in
5445 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
5446 no) ;;
5447 *) as_fn_error $? "--with-pam does not take an argument." "$LINENO" 5
5448 ;;
5449 esac
5450 fi
5451
5452
5453
5454 # Check whether --with-AFS was given.
5455 if test ${with_AFS+y}
5456 then :
5457 withval=$with_AFS; case $with_AFS in
5458 yes) printf "%s\n" "#define HAVE_AFS 1" >>confdefs.h
5459
5460 AUTH_REG="$AUTH_REG AFS"
5461 ;;
5462 no) ;;
5463 *) as_fn_error $? "--with-AFS does not take an argument." "$LINENO" 5
5464 ;;
5465 esac
5466 fi
5467
5468
5469
5470 # Check whether --with-DCE was given.
5471 if test ${with_DCE+y}
5472 then :
5473 withval=$with_DCE; case $with_DCE in
5474 yes) printf "%s\n" "#define HAVE_DCE 1" >>confdefs.h
5475
5476 AUTH_REG="$AUTH_REG DCE"
5477 ;;
5478 no) ;;
5479 *) as_fn_error $? "--with-DCE does not take an argument." "$LINENO" 5
5480 ;;
5481 esac
5482 fi
5483
5484
5485
5486 # Check whether --with-logincap was given.
5487 if test ${with_logincap+y}
5488 then :
5489 withval=$with_logincap; case $with_logincap in
5490 yes|no) ;;
5491 *) as_fn_error $? "--with-logincap does not take an argument." "$LINENO" 5
5492 ;;
5493 esac
5494 fi
5495
5496
5497
5498 # Check whether --with-bsdauth was given.
5499 if test ${with_bsdauth+y}
5500 then :
5501 withval=$with_bsdauth; case $with_bsdauth in
5502 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
5503 no) ;;
5504 *) as_fn_error $? "--with-bsdauth does not take an argument." "$LINENO" 5
5505 ;;
5506 esac
5507 fi
5508
5509
5510
5511 # Check whether --with-project was given.
5512 if test ${with_project+y}
5513 then :
5514 withval=$with_project; case $with_project in
5515 yes|no) ;;
5516 no) ;;
5517 *) as_fn_error $? "--with-project does not take an argument." "$LINENO" 5
5518 ;;
5519 esac
5520 fi
5521
5522
5523
5524 # Check whether --with-lecture was given.
5525 if test ${with_lecture+y}
5526 then :
5527 withval=$with_lecture; case $with_lecture in
5528 yes|short|always) lecture=once
5529 ;;
5530 no|none|never) lecture=never
5531 printf "%s\n" "#define NO_LECTURE 1" >>confdefs.h
5532
5533 ;;
5534 *) as_fn_error $? "unknown argument to --with-lecture: $with_lecture" "$LINENO" 5
5535 ;;
5536 esac
5537 fi
5538
5539
5540
5541 # Check whether --with-logging was given.
5542 if test ${with_logging+y}
5543 then :
5544 withval=$with_logging; case $with_logging in
5545 yes) as_fn_error $? "must give --with-logging an argument." "$LINENO" 5
5546 ;;
5547 no) as_fn_error $? "--without-logging not supported." "$LINENO" 5
5548 ;;
5549 syslog) printf "%s\n" "#define LOGGING SLOG_SYSLOG" >>confdefs.h
5550
5551 ;;
5552 file) printf "%s\n" "#define LOGGING SLOG_FILE" >>confdefs.h
5553
5554 ;;
5555 both) printf "%s\n" "#define LOGGING SLOG_BOTH" >>confdefs.h
5556
5557 ;;
5558 *) as_fn_error $? "unknown argument to --with-logging: $with_logging" "$LINENO" 5
5559 ;;
5560 esac
5561 else case e in #(
5562 e)
5563 with_logging=syslog
5564 printf "%s\n" "#define LOGGING SLOG_SYSLOG" >>confdefs.h
5565
5566 ;;
5567 esac
5568 fi
5569
5570
5571
5572 # Check whether --with-logfac was given.
5573 if test ${with_logfac+y}
5574 then :
5575 withval=$with_logfac; case $with_logfac in
5576 yes) as_fn_error $? "must give --with-logfac an argument." "$LINENO" 5
5577 ;;
5578 no) as_fn_error $? "--without-logfac not supported." "$LINENO" 5
5579 ;;
5580 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
5581 ;;
5582 *) as_fn_error $? "$with_logfac is not a supported syslog facility." "$LINENO" 5
5583 ;;
5584 esac
5585 fi
5586
5587
5588
5589 # Check whether --with-goodpri was given.
5590 if test ${with_goodpri+y}
5591 then :
5592 withval=$with_goodpri; case $with_goodpri in
5593 yes) as_fn_error $? "must give --with-goodpri an argument." "$LINENO" 5
5594 ;;
5595 no) as_fn_error $? "--without-goodpri not supported." "$LINENO" 5
5596 ;;
5597 alert|crit|debug|emerg|err|info|notice|warning)
5598 goodpri=$with_goodpri
5599 ;;
5600 *) as_fn_error $? "$with_goodpri is not a supported syslog priority." "$LINENO" 5
5601 ;;
5602 esac
5603 fi
5604
5605
5606 printf "%s\n" "#define PRI_SUCCESS \"$goodpri\"" >>confdefs.h
5607
5608
5609
5610 # Check whether --with-badpri was given.
5611 if test ${with_badpri+y}
5612 then :
5613 withval=$with_badpri; case $with_badpri in
5614 yes) as_fn_error $? "must give --with-badpri an argument." "$LINENO" 5
5615 ;;
5616 no) as_fn_error $? "--without-badpri not supported." "$LINENO" 5
5617 ;;
5618 alert|crit|debug|emerg|err|info|notice|warning)
5619 badpri=$with_badpri
5620 ;;
5621 *) as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
5622 ;;
5623 esac
5624 fi
5625
5626
5627 printf "%s\n" "#define PRI_FAILURE \"$badpri\"" >>confdefs.h
5628
5629
5630
5631 # Check whether --with-logpath was given.
5632 if test ${with_logpath+y}
5633 then :
5634 withval=$with_logpath; case $with_logpath in
5635 yes) as_fn_error $? "must give --with-logpath an argument." "$LINENO" 5
5636 ;;
5637 no) as_fn_error $? "--without-logpath not supported." "$LINENO" 5
5638 ;;
5639 esac
5640 fi
5641
5642
5643
5644 # Check whether --with-loglen was given.
5645 if test ${with_loglen+y}
5646 then :
5647 withval=$with_loglen; case $with_loglen in
5648 yes) as_fn_error $? "must give --with-loglen an argument." "$LINENO" 5
5649 ;;
5650 no) as_fn_error $? "--without-loglen not supported." "$LINENO" 5
5651 ;;
5652 [0-9]*) loglen=$with_loglen
5653 ;;
5654 *) as_fn_error $? "you must enter a number, not $with_loglen" "$LINENO" 5
5655 ;;
5656 esac
5657 fi
5658
5659
5660 printf "%s\n" "#define MAXLOGFILELEN $loglen" >>confdefs.h
5661
5662
5663
5664 # Check whether --with-ignore-dot was given.
5665 if test ${with_ignore_dot+y}
5666 then :
5667 withval=$with_ignore_dot; enable_ignore_dot="$with_ignore_dot"
5668 fi
5669
5670
5671
5672 # Check whether --with-mail-if-no-user was given.
5673 if test ${with_mail_if_no_user+y}
5674 then :
5675 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
5676 yes) mail_no_user=on
5677 ;;
5678 no) mail_no_user=off
5679 ;;
5680 *) as_fn_error $? "--with-mail-if-no-user does not take an argument." "$LINENO" 5
5681 ;;
5682 esac
5683 fi
5684
5685 if test "$mail_no_user" = "on"
5686 then :
5687 printf "%s\n" "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
5688
5689 fi
5690
5691
5692 # Check whether --with-mail-if-no-host was given.
5693 if test ${with_mail_if_no_host+y}
5694 then :
5695 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
5696 yes) mail_no_host=on
5697 printf "%s\n" "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
5698
5699 ;;
5700 no) mail_no_host=off
5701 ;;
5702 *) as_fn_error $? "--with-mail-if-no-host does not take an argument." "$LINENO" 5
5703 ;;
5704 esac
5705 fi
5706
5707
5708
5709 # Check whether --with-mail-if-noperms was given.
5710 if test ${with_mail_if_noperms+y}
5711 then :
5712 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
5713 yes) mail_noperms=on
5714 printf "%s\n" "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
5715
5716 ;;
5717 no) mail_noperms=off
5718 ;;
5719 *) as_fn_error $? "--with-mail-if-noperms does not take an argument." "$LINENO" 5
5720 ;;
5721 esac
5722 fi
5723
5724
5725
5726 # Check whether --with-mailto was given.
5727 if test ${with_mailto+y}
5728 then :
5729 withval=$with_mailto; case $with_mailto in
5730 yes) as_fn_error $? "must give --with-mailto an argument." "$LINENO" 5
5731 ;;
5732 no) as_fn_error $? "--without-mailto not supported." "$LINENO" 5
5733 ;;
5734 *) mailto=$with_mailto
5735 ;;
5736 esac
5737 fi
5738
5739
5740 printf "%s\n" "#define MAILTO \"$mailto\"" >>confdefs.h
5741
5742
5743
5744 # Check whether --with-mailsubject was given.
5745 if test ${with_mailsubject+y}
5746 then :
5747 withval=$with_mailsubject; case $with_mailsubject in
5748 yes) as_fn_error $? "must give --with-mailsubject an argument." "$LINENO" 5
5749 ;;
5750 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sorry, --without-mailsubject not supported." >&5
5751 printf "%s\n" "$as_me: WARNING: sorry, --without-mailsubject not supported." >&2;}
5752 ;;
5753 *) mailsub="$with_mailsubject"
5754 ;;
5755 esac
5756 fi
5757
5758
5759 printf "%s\n" "#define MAILSUBJECT \"$mailsub\"" >>confdefs.h
5760
5761
5762
5763 # Check whether --with-passprompt was given.
5764 if test ${with_passprompt+y}
5765 then :
5766 withval=$with_passprompt; case $with_passprompt in
5767 yes) as_fn_error $? "must give --with-passprompt an argument." "$LINENO" 5
5768 ;;
5769 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sorry, --without-passprompt not supported." >&5
5770 printf "%s\n" "$as_me: WARNING: sorry, --without-passprompt not supported." >&2;}
5771 ;;
5772 *) passprompt="$with_passprompt"
5773 esac
5774 fi
5775
5776
5777 printf "%s\n" "#define PASSPROMPT \"$passprompt\"" >>confdefs.h
5778
5779
5780
5781 # Check whether --with-badpass-message was given.
5782 if test ${with_badpass_message+y}
5783 then :
5784 withval=$with_badpass_message; case $with_badpass_message in
5785 yes) as_fn_error $? "must give --with-badpass-message an argument." "$LINENO" 5
5786 ;;
5787 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sorry, --without-badpass-message not supported." >&5
5788 printf "%s\n" "$as_me: WARNING: sorry, --without-badpass-message not supported." >&2;}
5789 ;;
5790 *) badpass_message="$with_badpass_message"
5791 ;;
5792 esac
5793 fi
5794
5795
5796 printf "%s\n" "#define INCORRECT_PASSWORD \"$badpass_message\"" >>confdefs.h
5797
5798
5799
5800 # Check whether --with-fqdn was given.
5801 if test ${with_fqdn+y}
5802 then :
5803 withval=$with_fqdn; case $with_fqdn in
5804 yes) fqdn=on
5805 printf "%s\n" "#define FQDN 1" >>confdefs.h
5806
5807 ;;
5808 no) fqdn=off
5809 ;;
5810 *) as_fn_error $? "--with-fqdn does not take an argument." "$LINENO" 5
5811 ;;
5812 esac
5813 fi
5814
5815
5816
5817 # Check whether --with-timedir was given.
5818 if test ${with_timedir+y}
5819 then :
5820 withval=$with_timedir; case $with_timedir in
5821 *) as_fn_error $? "--without-timedir no longer supported, see --with-rundir." "$LINENO" 5
5822 ;;
5823 esac
5824 fi
5825
5826
5827
5828 # Check whether --with-rundir was given.
5829 if test ${with_rundir+y}
5830 then :
5831 withval=$with_rundir; case $with_rundir in
5832 yes) as_fn_error $? "must give --with-rundir an argument." "$LINENO" 5
5833 ;;
5834 no) as_fn_error $? "--without-rundir not supported." "$LINENO" 5
5835 ;;
5836 esac
5837 fi
5838
5839
5840
5841 # Check whether --with-vardir was given.
5842 if test ${with_vardir+y}
5843 then :
5844 withval=$with_vardir; case $with_vardir in
5845 yes) as_fn_error $? "must give --with-vardir an argument." "$LINENO" 5
5846 ;;
5847 no) as_fn_error $? "--without-vardir not supported." "$LINENO" 5
5848 ;;
5849 esac
5850 fi
5851
5852
5853
5854 # Check whether --with-iologdir was given.
5855 if test ${with_iologdir+y}
5856 then :
5857 withval=$with_iologdir; case $with_iologdir in
5858 yes) ;;
5859 no) as_fn_error $? "--without-iologdir not supported." "$LINENO" 5
5860 ;;
5861 esac
5862 fi
5863
5864
5865
5866 # Check whether --with-relaydir was given.
5867 if test ${with_relaydir+y}
5868 then :
5869 withval=$with_relaydir; case $with_relaydir in
5870 yes) ;;
5871 no) as_fn_error $? "--without-relaydir not supported." "$LINENO" 5
5872 ;;
5873 esac
5874 fi
5875
5876
5877
5878 # Check whether --with-tzdir was given.
5879 if test ${with_tzdir+y}
5880 then :
5881 withval=$with_tzdir; case $with_tzdir in
5882 yes) as_fn_error $? "must give --with-tzdir an argument." "$LINENO" 5
5883 ;;
5884 esac
5885 fi
5886
5887
5888
5889 # Check whether --with-sendmail was given.
5890 if test ${with_sendmail+y}
5891 then :
5892 withval=$with_sendmail; case $with_sendmail in
5893 yes) with_sendmail=""
5894 ;;
5895 no) ;;
5896 *) cat >>confdefs.h <<EOF
5897 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
5898 EOF
5899
5900 ;;
5901 esac
5902 fi
5903
5904
5905
5906 # Check whether --with-sudoers-mode was given.
5907 if test ${with_sudoers_mode+y}
5908 then :
5909 withval=$with_sudoers_mode; case $with_sudoers_mode in
5910 yes) as_fn_error $? "must give --with-sudoers-mode an argument." "$LINENO" 5
5911 ;;
5912 no) as_fn_error $? "--without-sudoers-mode not supported." "$LINENO" 5
5913 ;;
5914 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
5915 ;;
5916 0*) SUDOERS_MODE=$with_sudoers_mode
5917 ;;
5918 *) as_fn_error $? "you must use an octal mode, not a name." "$LINENO" 5
5919 ;;
5920 esac
5921 fi
5922
5923
5924
5925 # Check whether --with-sudoers-uid was given.
5926 if test ${with_sudoers_uid+y}
5927 then :
5928 withval=$with_sudoers_uid; case $with_sudoers_uid in
5929 yes) as_fn_error $? "must give --with-sudoers-uid an argument." "$LINENO" 5
5930 ;;
5931 no) as_fn_error $? "--without-sudoers-uid not supported." "$LINENO" 5
5932 ;;
5933 [0-9]*) SUDOERS_UID=$with_sudoers_uid
5934 ;;
5935 *) as_fn_error $? "you must use an unsigned numeric uid, not a name." "$LINENO" 5
5936 ;;
5937 esac
5938 fi
5939
5940
5941
5942 # Check whether --with-sudoers-gid was given.
5943 if test ${with_sudoers_gid+y}
5944 then :
5945 withval=$with_sudoers_gid; case $with_sudoers_gid in
5946 yes) as_fn_error $? "must give --with-sudoers-gid an argument." "$LINENO" 5
5947 ;;
5948 no) as_fn_error $? "--without-sudoers-gid not supported." "$LINENO" 5
5949 ;;
5950 [0-9]*) SUDOERS_GID=$with_sudoers_gid
5951 ;;
5952 *) as_fn_error $? "you must use an unsigned numeric gid, not a name." "$LINENO" 5
5953 ;;
5954 esac
5955 fi
5956
5957
5958
5959 # Check whether --with-umask was given.
5960 if test ${with_umask+y}
5961 then :
5962 withval=$with_umask; case $with_umask in
5963 yes) as_fn_error $? "must give --with-umask an argument." "$LINENO" 5
5964 ;;
5965 no) sudo_umask=0777
5966 ;;
5967 [0-9]*) sudo_umask=$with_umask
5968 ;;
5969 *) as_fn_error $? "you must enter a numeric mask." "$LINENO" 5
5970 ;;
5971 esac
5972 fi
5973
5974
5975 printf "%s\n" "#define SUDO_UMASK $sudo_umask" >>confdefs.h
5976
5977
5978
5979 # Check whether --with-umask-override was given.
5980 if test ${with_umask_override+y}
5981 then :
5982 withval=$with_umask_override; case $with_umask_override in
5983 yes) printf "%s\n" "#define UMASK_OVERRIDE 1" >>confdefs.h
5984
5985 umask_override=on
5986 ;;
5987 no) umask_override=off
5988 ;;
5989 *) as_fn_error $? "--with-umask-override does not take an argument." "$LINENO" 5
5990 ;;
5991 esac
5992 fi
5993
5994
5995
5996 # Check whether --with-runas-default was given.
5997 if test ${with_runas_default+y}
5998 then :
5999 withval=$with_runas_default; case $with_runas_default in
6000 yes) as_fn_error $? "must give --with-runas-default an argument." "$LINENO" 5
6001 ;;
6002 no) as_fn_error $? "--without-runas-default not supported." "$LINENO" 5
6003 ;;
6004 *) runas_default="$with_runas_default"
6005 ;;
6006 esac
6007 fi
6008
6009
6010 printf "%s\n" "#define RUNAS_DEFAULT \"$runas_default\"" >>confdefs.h
6011
6012
6013
6014 # Check whether --with-exempt was given.
6015 if test ${with_exempt+y}
6016 then :
6017 withval=$with_exempt; case $with_exempt in
6018 yes) as_fn_error $? "must give --with-exempt an argument." "$LINENO" 5
6019 ;;
6020 no) as_fn_error $? "--without-exempt not supported." "$LINENO" 5
6021 ;;
6022 *)
6023 printf "%s\n" "#define EXEMPTGROUP \"$with_exempt\"" >>confdefs.h
6024
6025 ;;
6026 esac
6027 fi
6028
6029
6030
6031 # Check whether --with-editor was given.
6032 if test ${with_editor+y}
6033 then :
6034 withval=$with_editor; case $with_editor in
6035 yes) as_fn_error $? "must give --with-editor an argument." "$LINENO" 5
6036 ;;
6037 no) as_fn_error $? "--without-editor not supported." "$LINENO" 5
6038 ;;
6039 *)
6040 printf "%s\n" "#define EDITOR \"$with_editor\"" >>confdefs.h
6041
6042 editor="$with_editor"
6043 ;;
6044 esac
6045 else case e in #(
6046 e) printf "%s\n" "#define EDITOR _PATH_VI" >>confdefs.h
6047 ;;
6048 esac
6049 fi
6050
6051
6052
6053 # Check whether --with-env-editor was given.
6054 if test ${with_env_editor+y}
6055 then :
6056 withval=$with_env_editor; case $with_env_editor in
6057 yes) env_editor=on
6058 ;;
6059 no) env_editor=off
6060 ;;
6061 *) as_fn_error $? "--with-env-editor does not take an argument." "$LINENO" 5
6062 ;;
6063 esac
6064 fi
6065
6066 if test "$env_editor" = "on"
6067 then :
6068 printf "%s\n" "#define ENV_EDITOR 1" >>confdefs.h
6069
6070 fi
6071
6072
6073 # Check whether --with-passwd-tries was given.
6074 if test ${with_passwd_tries+y}
6075 then :
6076 withval=$with_passwd_tries; case $with_passwd_tries in
6077 yes) ;;
6078 no) as_fn_error $? "--without-editor not supported." "$LINENO" 5
6079 ;;
6080 [1-9]*) passwd_tries=$with_passwd_tries
6081 ;;
6082 *) as_fn_error $? "you must enter the number of tries, > 0" "$LINENO" 5
6083 ;;
6084 esac
6085 fi
6086
6087
6088 printf "%s\n" "#define TRIES_FOR_PASSWORD $passwd_tries" >>confdefs.h
6089
6090
6091
6092 # Check whether --with-timeout was given.
6093 if test ${with_timeout+y}
6094 then :
6095 withval=$with_timeout; case $with_timeout in
6096 yes) ;;
6097 no) timeout=0
6098 ;;
6099 [0-9]*) timeout=$with_timeout
6100 ;;
6101 *) as_fn_error $? "you must enter the number of minutes." "$LINENO" 5
6102 ;;
6103 esac
6104 fi
6105
6106
6107 printf "%s\n" "#define TIMEOUT $timeout" >>confdefs.h
6108
6109
6110
6111 # Check whether --with-password-timeout was given.
6112 if test ${with_password_timeout+y}
6113 then :
6114 withval=$with_password_timeout; case $with_password_timeout in
6115 yes) ;;
6116 no) password_timeout=0
6117 ;;
6118 [0-9]*) password_timeout=$with_password_timeout
6119 ;;
6120 *) as_fn_error $? "you must enter the number of minutes." "$LINENO" 5
6121 ;;
6122 esac
6123 fi
6124
6125
6126 printf "%s\n" "#define PASSWORD_TIMEOUT $password_timeout" >>confdefs.h
6127
6128
6129
6130 # Check whether --with-tty-tickets was given.
6131 if test ${with_tty_tickets+y}
6132 then :
6133 withval=$with_tty_tickets; case $with_tty_tickets in
6134 yes) timestamp_type=tty
6135 ;;
6136 no) timestamp_type=global
6137 ;;
6138 *) as_fn_error $? "--with-tty-tickets does not take an argument." "$LINENO" 5
6139 ;;
6140 esac
6141 fi
6142
6143
6144 with_classic_insults=yes
6145 with_csops_insults=yes
6146
6147 # Check whether --with-insults was given.
6148 if test ${with_insults+y}
6149 then :
6150 withval=$with_insults; case $with_insults in
6151 yes) insults=on
6152 printf "%s\n" "#define USE_INSULTS 1" >>confdefs.h
6153
6154 ;;
6155 disabled) insults=off
6156 ;;
6157 no) insults=off
6158 with_classic_insults=no
6159 with_csops_insults=no
6160 ;;
6161 *) as_fn_error $? "--with-insults does not take an argument." "$LINENO" 5
6162 ;;
6163 esac
6164 fi
6165
6166
6167
6168 # Check whether --with-all-insults was given.
6169 if test ${with_all_insults+y}
6170 then :
6171 withval=$with_all_insults; case $with_all_insults in
6172 yes) with_classic_insults=yes
6173 with_csops_insults=yes
6174 with_hal_insults=yes
6175 with_goons_insults=yes
6176 with_python_insults=yes
6177 ;;
6178 no) ;;
6179 *) as_fn_error $? "--with-all-insults does not take an argument." "$LINENO" 5
6180 ;;
6181 esac
6182 fi
6183
6184
6185
6186 # Check whether --with-classic-insults was given.
6187 if test ${with_classic_insults+y}
6188 then :
6189 withval=$with_classic_insults; case $with_classic_insults in
6190 yes) printf "%s\n" "#define CLASSIC_INSULTS 1" >>confdefs.h
6191
6192 ;;
6193 no) ;;
6194 *) as_fn_error $? "--with-classic-insults does not take an argument." "$LINENO" 5
6195 ;;
6196 esac
6197 fi
6198
6199
6200
6201 # Check whether --with-csops-insults was given.
6202 if test ${with_csops_insults+y}
6203 then :
6204 withval=$with_csops_insults; case $with_csops_insults in
6205 yes) printf "%s\n" "#define CSOPS_INSULTS 1" >>confdefs.h
6206
6207 ;;
6208 no) ;;
6209 *) as_fn_error $? "--with-csops-insults does not take an argument." "$LINENO" 5
6210 ;;
6211 esac
6212 fi
6213
6214
6215
6216 # Check whether --with-hal-insults was given.
6217 if test ${with_hal_insults+y}
6218 then :
6219 withval=$with_hal_insults; case $with_hal_insults in
6220 yes) printf "%s\n" "#define HAL_INSULTS 1" >>confdefs.h
6221
6222 ;;
6223 no) ;;
6224 *) as_fn_error $? "--with-hal-insults does not take an argument." "$LINENO" 5
6225 ;;
6226 esac
6227 fi
6228
6229
6230
6231 # Check whether --with-goons-insults was given.
6232 if test ${with_goons_insults+y}
6233 then :
6234 withval=$with_goons_insults; case $with_goons_insults in
6235 yes) printf "%s\n" "#define GOONS_INSULTS 1" >>confdefs.h
6236
6237 ;;
6238 no) ;;
6239 *) as_fn_error $? "--with-goons-insults does not take an argument." "$LINENO" 5
6240 ;;
6241 esac
6242 fi
6243
6244
6245
6246 # Check whether --with-python-insults was given.
6247 if test ${with_python_insults+y}
6248 then :
6249 withval=$with_python_insults; case $with_python_insults in
6250 yes) printf "%s\n" "#define PYTHON_INSULTS 1" >>confdefs.h
6251
6252 ;;
6253 no) ;;
6254 *) as_fn_error $? "--with-python-insults does not take an argument." "$LINENO" 5
6255 ;;
6256 esac
6257 fi
6258
6259
6260
6261 # Check whether --with-nsswitch was given.
6262 if test ${with_nsswitch+y}
6263 then :
6264 withval=$with_nsswitch; case $with_nsswitch in
6265 no) ;;
6266 yes) with_nsswitch="/etc/nsswitch.conf"
6267 ;;
6268 *) ;;
6269 esac
6270 fi
6271
6272
6273
6274 # Check whether --with-ldap was given.
6275 if test ${with_ldap+y}
6276 then :
6277 withval=$with_ldap; case $with_ldap in
6278 no) ;;
6279 *) printf "%s\n" "#define HAVE_LDAP 1" >>confdefs.h
6280
6281 ;;
6282 esac
6283 fi
6284
6285
6286
6287 # Check whether --with-ldap-conf-file was given.
6288 if test ${with_ldap_conf_file+y}
6289 then :
6290 withval=$with_ldap_conf_file;
6291 fi
6292
6293 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
6294 cat >>confdefs.h <<EOF
6295 #define _PATH_LDAP_CONF "$ldap_conf"
6296 EOF
6297
6298
6299
6300 # Check whether --with-ldap-secret-file was given.
6301 if test ${with_ldap_secret_file+y}
6302 then :
6303 withval=$with_ldap_secret_file;
6304 fi
6305
6306 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
6307 cat >>confdefs.h <<EOF
6308 #define _PATH_LDAP_SECRET "$ldap_secret"
6309 EOF
6310
6311
6312
6313 # Check whether --with-secure-path-value was given.
6314 if test ${with_secure_path_value+y}
6315 then :
6316 withval=$with_secure_path_value; case $with_secure_path_value in
6317 yes) as_fn_error $? "must give --with-secure-path-value an argument." "$LINENO" 5
6318 ;;
6319 no) secure_path_config="# "
6320 ;;
6321 *) secure_path="$with_secure_path_value"
6322 ;;
6323 esac
6324 fi
6325
6326
6327
6328 # Check whether --with-secure-path was given.
6329 if test ${with_secure_path+y}
6330 then :
6331 withval=$with_secure_path; case $with_secure_path in
6332 yes) with_secure_path="$secure_path"
6333 ;;
6334 no) ;;
6335 *) secure_path="$with_secure_path"
6336 ;;
6337 esac
6338 fi
6339
6340 if test "${with_secure_path-no}" != "no"
6341 then :
6342
6343 printf "%s\n" "#define SECURE_PATH \"$secure_path\"" >>confdefs.h
6344
6345 secure_path_status="set to $secure_path"
6346
6347 fi
6348
6349
6350 # Check whether --with-interfaces was given.
6351 if test ${with_interfaces+y}
6352 then :
6353 withval=$with_interfaces; case $with_interfaces in
6354 yes) ;;
6355 no) printf "%s\n" "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
6356
6357 ;;
6358 *) as_fn_error $? "--with-interfaces does not take an argument." "$LINENO" 5
6359 ;;
6360 esac
6361 fi
6362
6363
6364
6365 # Check whether --with-askpass was given.
6366 if test ${with_askpass+y}
6367 then :
6368 withval=$with_askpass; case $with_askpass in
6369 yes) as_fn_error $? "--with-askpass takes a path as an argument." "$LINENO" 5
6370 ;;
6371 no) ;;
6372 *) ;;
6373 esac
6374 else case e in #(
6375 e)
6376 with_askpass=no
6377 ;;
6378 esac
6379 fi
6380
6381 if test X"$with_askpass" != X"no"
6382 then :
6383
6384 cat >>confdefs.h <<EOF
6385 #define _PATH_SUDO_ASKPASS "$with_askpass"
6386 EOF
6387
6388
6389 else case e in #(
6390 e)
6391 cat >>confdefs.h <<EOF
6392 #define _PATH_SUDO_ASKPASS NULL
6393 EOF
6394
6395 ;;
6396 esac
6397 fi
6398
6399
6400 # Check whether --with-exampledir was given.
6401 if test ${with_exampledir+y}
6402 then :
6403 withval=$with_exampledir; case $with_exampledir in
6404 yes) as_fn_error $? "must give --with-exampledir an argument." "$LINENO" 5
6405 ;;
6406 no) as_fn_error $? "--without-exampledir not supported." "$LINENO" 5
6407 ;;
6408 *) exampledir="$with_exampledir"
6409 esac
6410 fi
6411
6412
6413
6414 # Check whether --with-plugindir was given.
6415 if test ${with_plugindir+y}
6416 then :
6417 withval=$with_plugindir; case $with_plugindir in
6418 yes) as_fn_error $? "must give --with-plugindir an argument." "$LINENO" 5
6419 ;;
6420 no) as_fn_error $? "--without-plugindir not supported." "$LINENO" 5
6421 ;;
6422 *) plugindir="$with_plugindir"
6423 ;;
6424 esac
6425 fi
6426
6427
6428
6429 # Check whether --with-man was given.
6430 if test ${with_man+y}
6431 then :
6432 withval=$with_man; case $with_man in
6433 yes) MANTYPE=man
6434 ;;
6435 no) as_fn_error $? "--without-man not supported." "$LINENO" 5
6436 ;;
6437 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --with-man: $with_man." >&5
6438 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --with-man: $with_man." >&2;}
6439 ;;
6440 esac
6441 fi
6442
6443
6444
6445 # Check whether --with-mdoc was given.
6446 if test ${with_mdoc+y}
6447 then :
6448 withval=$with_mdoc; case $with_mdoc in
6449 yes) MANTYPE=mdoc
6450 ;;
6451 no) as_fn_error $? "--without-mdoc not supported." "$LINENO" 5
6452 ;;
6453 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --with-mdoc: $with_mdoc." >&5
6454 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --with-mdoc: $with_mdoc." >&2;}
6455 ;;
6456 esac
6457 fi
6458
6459
6460
6461 # Check whether --enable-authentication was given.
6462 if test ${enable_authentication+y}
6463 then :
6464 enableval=$enable_authentication; case "$enableval" in
6465 yes) ;;
6466 no) printf "%s\n" "#define NO_AUTHENTICATION 1" >>confdefs.h
6467
6468 ;;
6469 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-authentication: $enableval" >&5
6470 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-authentication: $enableval" >&2;}
6471 ;;
6472 esac
6473
6474 fi
6475
6476
6477 # Check whether --enable-root-mailer was given.
6478 if test ${enable_root_mailer+y}
6479 then :
6480 enableval=$enable_root_mailer; case "$enableval" in
6481 yes) ;;
6482 no) printf "%s\n" "#define NO_ROOT_MAILER 1" >>confdefs.h
6483
6484 ;;
6485 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-root-mailer: $enableval" >&5
6486 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
6487 ;;
6488 esac
6489
6490 fi
6491
6492
6493 # Check whether --enable-setreuid was given.
6494 if test ${enable_setreuid+y}
6495 then :
6496 enableval=$enable_setreuid; case "$enableval" in
6497 no) SKIP_SETREUID=yes
6498 ;;
6499 *) ;;
6500 esac
6501
6502 fi
6503
6504
6505 # Check whether --enable-setresuid was given.
6506 if test ${enable_setresuid+y}
6507 then :
6508 enableval=$enable_setresuid; case "$enableval" in
6509 no) SKIP_SETRESUID=yes
6510 ;;
6511 *) ;;
6512 esac
6513
6514 fi
6515
6516
6517 # Check whether --enable-shadow was given.
6518 if test ${enable_shadow+y}
6519 then :
6520 enableval=$enable_shadow; case "$enableval" in
6521 yes) ;;
6522 no) CHECKSHADOW="false"
6523 ;;
6524 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-shadow: $enableval" >&5
6525 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-shadow: $enableval" >&2;}
6526 ;;
6527 esac
6528
6529 fi
6530
6531
6532 # Check whether --enable-root-sudo was given.
6533 if test ${enable_root_sudo+y}
6534 then :
6535 enableval=$enable_root_sudo; case "$enableval" in
6536 yes) ;;
6537 no) printf "%s\n" "#define NO_ROOT_SUDO 1" >>confdefs.h
6538
6539 root_sudo=off
6540 ;;
6541 *) as_fn_error $? "--enable-root-sudo does not take an argument." "$LINENO" 5
6542 ;;
6543 esac
6544
6545 fi
6546
6547
6548 # Check whether --enable-log-host was given.
6549 if test ${enable_log_host+y}
6550 then :
6551 enableval=$enable_log_host; case "$enableval" in
6552 yes) printf "%s\n" "#define HOST_IN_LOG 1" >>confdefs.h
6553
6554 ;;
6555 no) ;;
6556 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-log-host: $enableval" >&5
6557 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-log-host: $enableval" >&2;}
6558 ;;
6559 esac
6560
6561 fi
6562
6563
6564 # Check whether --enable-noargs-shell was given.
6565 if test ${enable_noargs_shell+y}
6566 then :
6567 enableval=$enable_noargs_shell; case "$enableval" in
6568 yes) printf "%s\n" "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
6569
6570 ;;
6571 no) ;;
6572 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
6573 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
6574 ;;
6575 esac
6576
6577 fi
6578
6579
6580 # Check whether --enable-shell-sets-home was given.
6581 if test ${enable_shell_sets_home+y}
6582 then :
6583 enableval=$enable_shell_sets_home; case "$enableval" in
6584 yes) printf "%s\n" "#define SHELL_SETS_HOME 1" >>confdefs.h
6585
6586 ;;
6587 no) ;;
6588 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
6589 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
6590 ;;
6591 esac
6592
6593 fi
6594
6595
6596 # Check whether --enable-path_info was given.
6597 if test ${enable_path_info+y}
6598 then :
6599 enableval=$enable_path_info; case "$enableval" in
6600 yes) ;;
6601 no) printf "%s\n" "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
6602
6603 path_info=off
6604 ;;
6605 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-path-info: $enableval" >&5
6606 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-path-info: $enableval" >&2;}
6607 ;;
6608 esac
6609
6610 fi
6611
6612
6613 # Check whether --enable-env_debug was given.
6614 if test ${enable_env_debug+y}
6615 then :
6616 enableval=$enable_env_debug; case "$enableval" in
6617 yes) printf "%s\n" "#define ENV_DEBUG 1" >>confdefs.h
6618
6619 ;;
6620 no) ;;
6621 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-env-debug: $enableval" >&5
6622 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
6623 ;;
6624 esac
6625
6626 fi
6627
6628
6629 # Check whether --enable-ignore-dot was given.
6630 if test ${enable_ignore_dot+y}
6631 then :
6632 enableval=$enable_ignore_dot; case "$enableval" in
6633 yes) ignore_dot=on
6634 ;;
6635 no) ignore_dot=off
6636 printf "%s\n" "#define ALLOW_DOT_PATH 1" >>confdefs.h
6637
6638 ;;
6639 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-ignore-dot: $enableval" >&5
6640 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-ignore-dot: $enableval" >&2;}
6641 ;;
6642 esac
6643
6644 fi
6645
6646
6647 # Check whether --enable-postinstall was given.
6648 if test ${enable_postinstall+y}
6649 then :
6650 enableval=$enable_postinstall; case "$enableval" in
6651 yes) as_fn_error $? "must give --enable-postinstall an argument." "$LINENO" 5
6652 ;;
6653 no) as_fn_error $? "--enable-postinstall not supported." "$LINENO" 5
6654 ;;
6655 *) POSTINSTALL="$enableval"
6656 ;;
6657 esac
6658
6659 fi
6660
6661
6662 # Check whether --enable-zlib was given.
6663 if test ${enable_zlib+y}
6664 then :
6665 enableval=$enable_zlib;
6666 else case e in #(
6667 e) enable_zlib=yes ;;
6668 esac
6669 fi
6670
6671
6672 if test ${CPPFLAGS+y}
6673 then :
6674
6675 case " $CPPFLAGS " in #(
6676 *" -DZLIB_CONST "*) :
6677 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -DZLIB_CONST"; } >&5
6678 (: CPPFLAGS already contains -DZLIB_CONST) 2>&5
6679 ac_status=$?
6680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; } ;; #(
6682 *) :
6683
6684 as_fn_append CPPFLAGS " -DZLIB_CONST"
6685 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
6686 (: CPPFLAGS="$CPPFLAGS") 2>&5
6687 ac_status=$?
6688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689 test $ac_status = 0; }
6690 ;;
6691 esac
6692
6693 else case e in #(
6694 e)
6695 CPPFLAGS=-DZLIB_CONST
6696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
6697 (: CPPFLAGS="$CPPFLAGS") 2>&5
6698 ac_status=$?
6699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700 test $ac_status = 0; }
6701 ;;
6702 esac
6703 fi
6704
6705
6706 # Check whether --enable-env_reset was given.
6707 if test ${enable_env_reset+y}
6708 then :
6709 enableval=$enable_env_reset; case "$enableval" in
6710 yes) env_reset=on
6711 ;;
6712 no) env_reset=off
6713 ;;
6714 *) env_reset=on
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-env-reset: $enableval" >&5
6716 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
6717 ;;
6718 esac
6719
6720 fi
6721
6722 if test "$env_reset" = "on"
6723 then :
6724
6725 printf "%s\n" "#define ENV_RESET 1" >>confdefs.h
6726
6727
6728 else case e in #(
6729 e)
6730 printf "%s\n" "#define ENV_RESET 0" >>confdefs.h
6731
6732 ;;
6733 esac
6734 fi
6735
6736 # Check whether --enable-warnings was given.
6737 if test ${enable_warnings+y}
6738 then :
6739 enableval=$enable_warnings; case "$enableval" in
6740 yes) ;;
6741 no) ;;
6742 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-warnings: $enableval" >&5
6743 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-warnings: $enableval" >&2;}
6744 ;;
6745 esac
6746
6747 fi
6748
6749
6750 # Check whether --enable-werror was given.
6751 if test ${enable_werror+y}
6752 then :
6753 enableval=$enable_werror; case "$enableval" in
6754 yes) ;;
6755 no) ;;
6756 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-werror: $enableval" >&5
6757 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-werror: $enableval" >&2;}
6758 ;;
6759 esac
6760
6761 fi
6762
6763
6764 # Check whether --enable-ssp was given.
6765 if test ${enable_ssp+y}
6766 then :
6767 enableval=$enable_ssp;
6768 else case e in #(
6769 e) enable_ssp=yes ;;
6770 esac
6771 fi
6772
6773
6774 # Check whether --enable-hardening was given.
6775 if test ${enable_hardening+y}
6776 then :
6777 enableval=$enable_hardening;
6778 else case e in #(
6779 e) enable_hardening=yes ;;
6780 esac
6781 fi
6782
6783
6784 # Check whether --enable-pie was given.
6785 if test ${enable_pie+y}
6786 then :
6787 enableval=$enable_pie;
6788 fi
6789
6790
6791 # Check whether --enable-sanitizer was given.
6792 if test ${enable_sanitizer+y}
6793 then :
6794 enableval=$enable_sanitizer;
6795 if test X"$enable_sanitizer" = X"yes"
6796 then :
6797
6798 enable_sanitizer="-fsanitize=address,undefined"
6799
6800 fi
6801
6802 else case e in #(
6803 e) enable_sanitizer=no ;;
6804 esac
6805 fi
6806
6807
6808 # Check whether --enable-fuzzer was given.
6809 if test ${enable_fuzzer+y}
6810 then :
6811 enableval=$enable_fuzzer;
6812 else case e in #(
6813 e) enable_fuzzer=no ;;
6814 esac
6815 fi
6816
6817
6818 # Check whether --enable-fuzzer-engine was given.
6819 if test ${enable_fuzzer_engine+y}
6820 then :
6821 enableval=$enable_fuzzer_engine; case "$enableval" in
6822 yes) as_fn_error $? "must give --enable-fuzzer-engine an argument." "$LINENO" 5
6823 ;;
6824 no) ;;
6825 *) FUZZ_ENGINE="$enableval"
6826 ;;
6827 esac
6828
6829 fi
6830
6831
6832 # Check whether --enable-fuzzer-linker was given.
6833 if test ${enable_fuzzer_linker+y}
6834 then :
6835 enableval=$enable_fuzzer_linker; case "$enableval" in
6836 yes) as_fn_error $? "must give --enable-fuzzer-linker an argument." "$LINENO" 5
6837 ;;
6838 no) ;;
6839 *) FUZZ_LD="$enableval"
6840 ;;
6841 esac
6842
6843 fi
6844
6845
6846 # Check whether --enable-leaks was given.
6847 if test ${enable_leaks+y}
6848 then :
6849 enableval=$enable_leaks; case "$enableval" in
6850 yes) ;;
6851 no) printf "%s\n" "#define NO_LEAKS 1" >>confdefs.h
6852
6853 ;;
6854 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-leaks: $enableval" >&5
6855 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-leaks: $enableval" >&2;}
6856 ;;
6857 esac
6858
6859 fi
6860
6861
6862 # Check whether --enable-poll was given.
6863 if test ${enable_poll+y}
6864 then :
6865 enableval=$enable_poll;
6866 fi
6867
6868
6869 # Check whether --enable-admin-flag was given.
6870 if test ${enable_admin_flag+y}
6871 then :
6872 enableval=$enable_admin_flag; case "$enableval" in
6873 yes) cat >>confdefs.h <<EOF
6874 #define _PATH_SUDO_ADMIN_FLAG "~/.sudo_as_admin_successful"
6875 EOF
6876
6877 ;;
6878 no) ;;
6879 *) cat >>confdefs.h <<EOF
6880 #define _PATH_SUDO_ADMIN_FLAG "$enableval"
6881 EOF
6882
6883 ;;
6884 esac
6885
6886 fi
6887
6888
6889 # Check whether --enable-nls was given.
6890 if test ${enable_nls+y}
6891 then :
6892 enableval=$enable_nls;
6893 else case e in #(
6894 e) enable_nls=yes ;;
6895 esac
6896 fi
6897
6898
6899 # Check whether --enable-rpath was given.
6900 if test ${enable_rpath+y}
6901 then :
6902 enableval=$enable_rpath;
6903 else case e in #(
6904 e) enable_rpath=yes ;;
6905 esac
6906 fi
6907
6908
6909 # Check whether --enable-static-sudoers was given.
6910 if test ${enable_static_sudoers+y}
6911 then :
6912 enableval=$enable_static_sudoers;
6913 else case e in #(
6914 e) enable_static_sudoers=no ;;
6915 esac
6916 fi
6917
6918
6919 # Check whether --enable-shared_libutil was given.
6920 if test ${enable_shared_libutil+y}
6921 then :
6922 enableval=$enable_shared_libutil;
6923 else case e in #(
6924 e) enable_shared_libutil=yes ;;
6925 esac
6926 fi
6927
6928
6929 # Check whether --enable-tmpfiles.d was given.
6930 if test ${enable_tmpfiles_d+y}
6931 then :
6932 enableval=$enable_tmpfiles_d; case $enableval in
6933 yes) TMPFILES_D=/usr/lib/tmpfiles.d
6934 ;;
6935 no) TMPFILES_D=
6936 ;;
6937 *) TMPFILES_D="$enableval"
6938 esac
6939 else case e in #(
6940 e)
6941 test -f /usr/lib/tmpfiles.d/systemd.conf && TMPFILES_D=/usr/lib/tmpfiles.d
6942 ;;
6943 esac
6944 fi
6945
6946
6947 # Check whether --enable-devsearch was given.
6948 if test ${enable_devsearch+y}
6949 then :
6950 enableval=$enable_devsearch; case $enableval in
6951 yes) # use default value
6952 ;;
6953 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring attempt to disable the device search path" >&5
6954 printf "%s\n" "$as_me: WARNING: ignoring attempt to disable the device search path" >&2;}
6955 ;;
6956 *) devsearch="$enableval"
6957 ;;
6958 esac
6959 fi
6960
6961 ds="`echo \"$devsearch\"|sed 's@/dev/*\([^:]*:*\)@_PATH_DEV \"\1\" @g'`"
6962 cat >>confdefs.h <<EOF
6963 #define _PATH_SUDO_DEVSEARCH $ds
6964 EOF
6965
6966
6967
6968 # Check whether --with-selinux was given.
6969 if test ${with_selinux+y}
6970 then :
6971 withval=$with_selinux; case $with_selinux in
6972 yes) SELINUX_USAGE="[-r role] [-t type] "
6973 printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
6974
6975 SUDO_LIBS="${SUDO_LIBS} -lselinux"
6976 SUDO_OBJS="${SUDO_OBJS} selinux.o"
6977 PROGS="${PROGS} sesh"
6978 SEMAN=1
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
6980 printf %s "checking for setkeycreatecon in -lselinux... " >&6; }
6981 if test ${ac_cv_lib_selinux_setkeycreatecon+y}
6982 then :
6983 printf %s "(cached) " >&6
6984 else case e in #(
6985 e) ac_check_lib_save_LIBS=$LIBS
6986 LIBS="-lselinux $LIBS"
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989
6990 /* Override any GCC internal prototype to avoid an error.
6991 Use char because int might match the return type of a GCC
6992 builtin and then its argument prototype would still apply.
6993 The 'extern "C"' is for builds by C++ compilers;
6994 although this is not generally supported in C code supporting it here
6995 has little cost and some practical benefit (sr 110532). */
6996 #ifdef __cplusplus
6997 extern "C"
6998 #endif
6999 char setkeycreatecon (void);
7000 int
7001 main (void)
7002 {
7003 return setkeycreatecon ();
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_c_try_link "$LINENO"
7009 then :
7010 ac_cv_lib_selinux_setkeycreatecon=yes
7011 else case e in #(
7012 e) ac_cv_lib_selinux_setkeycreatecon=no ;;
7013 esac
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7016 conftest$ac_exeext conftest.$ac_ext
7017 LIBS=$ac_check_lib_save_LIBS ;;
7018 esac
7019 fi
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
7021 printf "%s\n" "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
7022 if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes
7023 then :
7024 printf "%s\n" "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
7025
7026 fi
7027
7028 ;;
7029 no) ;;
7030 *) as_fn_error $? "--with-selinux does not take an argument." "$LINENO" 5
7031 ;;
7032 esac
7033 else case e in #(
7034 e) with_selinux=no ;;
7035 esac
7036 fi
7037
7038
7039
7040 # Check whether --with-apparmor was given.
7041 if test ${with_apparmor+y}
7042 then :
7043 withval=$with_apparmor; case $with_apparmor in
7044 yes) printf "%s\n" "#define HAVE_APPARMOR 1" >>confdefs.h
7045
7046 AAMAN=1
7047 SUDO_LIBS="${SUDO_LIBS} -lapparmor"
7048 SUDO_OBJS="${SUDO_OBJS} apparmor.o"
7049 ;;
7050 no) ;;
7051 *) as_fn_error $? "--with-apparmor does not take an argument." "$LINENO" 5
7052
7053 esac
7054 else case e in #(
7055 e) with_apparmor=no ;;
7056 esac
7057 fi
7058
7059
7060 # Check whether --enable-sasl was given.
7061 if test ${enable_sasl+y}
7062 then :
7063 enableval=$enable_sasl; case "$enableval" in
7064 yes|no) ;;
7065 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-sasl: $enableval" >&5
7066 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-sasl: $enableval" >&2;}
7067 ;;
7068 esac
7069
7070 fi
7071
7072
7073 # Check whether --enable-timestamp-type was given.
7074 if test ${enable_timestamp_type+y}
7075 then :
7076 enableval=$enable_timestamp_type; case "$enableval" in
7077 global|ppid|tty)
7078 timestamp_type=$enableval
7079 ;;
7080 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-timestamp-type: $enableval" >&5
7081 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-timestamp-type: $enableval" >&2;}
7082 ;;
7083 esac
7084
7085 fi
7086
7087 printf "%s\n" "#define TIMESTAMP_TYPE $timestamp_type" >>confdefs.h
7088
7089
7090 # Check whether --enable-package_build was given.
7091 if test ${enable_package_build+y}
7092 then :
7093 enableval=$enable_package_build;
7094 else case e in #(
7095 e) enable_package_build=no ;;
7096 esac
7097 fi
7098
7099
7100 # Check whether --enable-gss_krb5_ccache_name was given.
7101 if test ${enable_gss_krb5_ccache_name+y}
7102 then :
7103 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
7104 else case e in #(
7105 e) check_gss_krb5_ccache_name=no ;;
7106 esac
7107 fi
7108
7109
7110 # Check whether --enable-pvs-studio was given.
7111 if test ${enable_pvs_studio+y}
7112 then :
7113 enableval=$enable_pvs_studio;
7114 fi
7115
7116
7117 # Check whether --enable-log-server was given.
7118 if test ${enable_log_server+y}
7119 then :
7120 enableval=$enable_log_server; case "$enableval" in
7121 yes)
7122 ;;
7123 no)
7124 LOGSRV=#
7125 LOGSRVD_SRC=
7126 LOGSRVD_CONF=
7127 ;;
7128 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-log-server: $enableval" >&5
7129 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-log-server: $enableval" >&2;}
7130 ;;
7131 esac
7132
7133 fi
7134
7135
7136 # Check whether --enable-log-client was given.
7137 if test ${enable_log_client+y}
7138 then :
7139 enableval=$enable_log_client; case "$enableval" in
7140 yes)
7141 printf "%s\n" "#define SUDOERS_LOG_CLIENT 1" >>confdefs.h
7142
7143 ;;
7144 no)
7145 ;;
7146 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-log-client: $enableval" >&5
7147 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-log-client: $enableval" >&2;}
7148 ;;
7149 esac
7150
7151 else case e in #(
7152 e) printf "%s\n" "#define SUDOERS_LOG_CLIENT 1" >>confdefs.h
7153 ;;
7154 esac
7155 fi
7156
7157
7158 if test X"${enable_log_client}${enable_log_server}" = X"nono"
7159 then :
7160
7161 # No need for liblogsrv.la
7162 LOGSRV_SRC=
7163 LIBLOGSRV=
7164
7165 fi
7166 if test X"$LOGSRVD_SRC" != X""
7167 then :
7168
7169 PPFILES="$PPFILES "'$(srcdir)/etc/sudo-logsrvd.pp'
7170
7171 fi
7172
7173 # Check whether --enable-openssl was given.
7174 if test ${enable_openssl+y}
7175 then :
7176 enableval=$enable_openssl;
7177 else case e in #(
7178 e)
7179 # Enable OpenSSL by default unless logsrvd and client are disabled
7180 if test X"${enable_log_client}${enable_log_server}" != X"nono"
7181 then :
7182
7183 enable_openssl=maybe
7184
7185 fi
7186 ;;
7187 esac
7188 fi
7189
7190 # Check whether --enable-openssl-pkgconfig-template was given.
7191 if test ${enable_openssl_pkgconfig_template+y}
7192 then :
7193 enableval=$enable_openssl_pkgconfig_template;
7194 else case e in #(
7195 e) enable_openssl_pkgconfig_template="%s" ;;
7196 esac
7197 fi
7198
7199
7200 # Check whether --enable-wolfssl was given.
7201 if test ${enable_wolfssl+y}
7202 then :
7203 enableval=$enable_wolfssl;
7204 enable_openssl=no
7205
7206 fi
7207
7208
7209 # Check whether --enable-gcrypt was given.
7210 if test ${enable_gcrypt+y}
7211 then :
7212 enableval=$enable_gcrypt;
7213 if test "${enable_openssl-no}${enable_wolfssl-no}" != "nono"
7214 then :
7215
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring --enable-gcrypt when OpenSSL or wolfSSL is enabled." >&5
7217 printf "%s\n" "$as_me: WARNING: ignoring --enable-gcrypt when OpenSSL or wolfSSL is enabled." >&2;}
7218 enable_gcrypt=no
7219
7220 fi
7221
7222 fi
7223
7224
7225 # Check whether --enable-python was given.
7226 if test ${enable_python+y}
7227 then :
7228 enableval=$enable_python; case "$enableval" in
7229 yes|no)
7230 ;;
7231 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-python: $enableval" >&5
7232 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-python: $enableval" >&2;}
7233 ;;
7234 esac
7235
7236 fi
7237
7238
7239 # Check whether --enable-adminconf was given.
7240 if test ${enable_adminconf+y}
7241 then :
7242 enableval=$enable_adminconf; case "$enableval" in
7243 yes|no)
7244 ;;
7245 *) adminconfdir="$enableval"
7246 enable_adminconf=yes
7247 ;;
7248 esac
7249
7250 else case e in #(
7251 e) enable_adminconf=no ;;
7252 esac
7253 fi
7254
7255
7256 ac_ext=c
7257 ac_cpp='$CPP $CPPFLAGS'
7258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7262 printf %s "checking how to run the C preprocessor... " >&6; }
7263 # On Suns, sometimes $CPP names a directory.
7264 if test -n "$CPP" && test -d "$CPP"; then
7265 CPP=
7266 fi
7267 if test -z "$CPP"; then
7268 if test ${ac_cv_prog_CPP+y}
7269 then :
7270 printf %s "(cached) " >&6
7271 else case e in #(
7272 e) # Double quotes because $CC needs to be expanded
7273 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7274 do
7275 ac_preproc_ok=false
7276 for ac_c_preproc_warn_flag in '' yes
7277 do
7278 # Use a header file that comes with gcc, so configuring glibc
7279 # with a fresh cross-compiler works.
7280 # On the NeXT, cc -E runs the code through the compiler's parser,
7281 # not just through cpp. "Syntax error" is here to catch this case.
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 #include <limits.h>
7285 Syntax error
7286 _ACEOF
7287 if ac_fn_c_try_cpp "$LINENO"
7288 then :
7289
7290 else case e in #(
7291 e) # Broken: fails on valid input.
7292 continue ;;
7293 esac
7294 fi
7295 rm -f conftest.err conftest.i conftest.$ac_ext
7296
7297 # OK, works on sane cases. Now check whether nonexistent headers
7298 # can be detected and how.
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301 #include <ac_nonexistent.h>
7302 _ACEOF
7303 if ac_fn_c_try_cpp "$LINENO"
7304 then :
7305 # Broken: success on invalid input.
7306 continue
7307 else case e in #(
7308 e) # Passes both tests.
7309 ac_preproc_ok=:
7310 break ;;
7311 esac
7312 fi
7313 rm -f conftest.err conftest.i conftest.$ac_ext
7314
7315 done
7316 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7317 rm -f conftest.i conftest.err conftest.$ac_ext
7318 if $ac_preproc_ok
7319 then :
7320 break
7321 fi
7322
7323 done
7324 ac_cv_prog_CPP=$CPP
7325 ;;
7326 esac
7327 fi
7328 CPP=$ac_cv_prog_CPP
7329 else
7330 ac_cv_prog_CPP=$CPP
7331 fi
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7333 printf "%s\n" "$CPP" >&6; }
7334 ac_preproc_ok=false
7335 for ac_c_preproc_warn_flag in '' yes
7336 do
7337 # Use a header file that comes with gcc, so configuring glibc
7338 # with a fresh cross-compiler works.
7339 # On the NeXT, cc -E runs the code through the compiler's parser,
7340 # not just through cpp. "Syntax error" is here to catch this case.
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 #include <limits.h>
7344 Syntax error
7345 _ACEOF
7346 if ac_fn_c_try_cpp "$LINENO"
7347 then :
7348
7349 else case e in #(
7350 e) # Broken: fails on valid input.
7351 continue ;;
7352 esac
7353 fi
7354 rm -f conftest.err conftest.i conftest.$ac_ext
7355
7356 # OK, works on sane cases. Now check whether nonexistent headers
7357 # can be detected and how.
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360 #include <ac_nonexistent.h>
7361 _ACEOF
7362 if ac_fn_c_try_cpp "$LINENO"
7363 then :
7364 # Broken: success on invalid input.
7365 continue
7366 else case e in #(
7367 e) # Passes both tests.
7368 ac_preproc_ok=:
7369 break ;;
7370 esac
7371 fi
7372 rm -f conftest.err conftest.i conftest.$ac_ext
7373
7374 done
7375 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7376 rm -f conftest.i conftest.err conftest.$ac_ext
7377 if $ac_preproc_ok
7378 then :
7379
7380 else case e in #(
7381 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7382 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7383 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7384 See 'config.log' for more details" "$LINENO" 5; } ;;
7385 esac
7386 fi
7387
7388 ac_ext=c
7389 ac_cpp='$CPP $CPPFLAGS'
7390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7393
7394 if test -n "$ac_tool_prefix"; then
7395 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7396 set dummy ${ac_tool_prefix}ar; ac_word=$2
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 printf %s "checking for $ac_word... " >&6; }
7399 if test ${ac_cv_prog_AR+y}
7400 then :
7401 printf %s "(cached) " >&6
7402 else case e in #(
7403 e) if test -n "$AR"; then
7404 ac_cv_prog_AR="$AR" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409 IFS=$as_save_IFS
7410 case $as_dir in #(((
7411 '') as_dir=./ ;;
7412 */) ;;
7413 *) as_dir=$as_dir/ ;;
7414 esac
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7417 ac_cv_prog_AR="${ac_tool_prefix}ar"
7418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421 done
7422 done
7423 IFS=$as_save_IFS
7424
7425 fi ;;
7426 esac
7427 fi
7428 AR=$ac_cv_prog_AR
7429 if test -n "$AR"; then
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7431 printf "%s\n" "$AR" >&6; }
7432 else
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 printf "%s\n" "no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_AR"; then
7440 ac_ct_AR=$AR
7441 # Extract the first word of "ar", so it can be a program name with args.
7442 set dummy ar; ac_word=$2
7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 printf %s "checking for $ac_word... " >&6; }
7445 if test ${ac_cv_prog_ac_ct_AR+y}
7446 then :
7447 printf %s "(cached) " >&6
7448 else case e in #(
7449 e) if test -n "$ac_ct_AR"; then
7450 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455 IFS=$as_save_IFS
7456 case $as_dir in #(((
7457 '') as_dir=./ ;;
7458 */) ;;
7459 *) as_dir=$as_dir/ ;;
7460 esac
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_ac_ct_AR="ar"
7464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467 done
7468 done
7469 IFS=$as_save_IFS
7470
7471 fi ;;
7472 esac
7473 fi
7474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7475 if test -n "$ac_ct_AR"; then
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7477 printf "%s\n" "$ac_ct_AR" >&6; }
7478 else
7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 printf "%s\n" "no" >&6; }
7481 fi
7482
7483 if test "x$ac_ct_AR" = x; then
7484 AR="false"
7485 else
7486 case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490 ac_tool_warned=yes ;;
7491 esac
7492 AR=$ac_ct_AR
7493 fi
7494 else
7495 AR="$ac_cv_prog_AR"
7496 fi
7497
7498 if test -n "$ac_tool_prefix"; then
7499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 printf %s "checking for $ac_word... " >&6; }
7503 if test ${ac_cv_prog_RANLIB+y}
7504 then :
7505 printf %s "(cached) " >&6
7506 else case e in #(
7507 e) if test -n "$RANLIB"; then
7508 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513 IFS=$as_save_IFS
7514 case $as_dir in #(((
7515 '') as_dir=./ ;;
7516 */) ;;
7517 *) as_dir=$as_dir/ ;;
7518 esac
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7521 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529 fi ;;
7530 esac
7531 fi
7532 RANLIB=$ac_cv_prog_RANLIB
7533 if test -n "$RANLIB"; then
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7535 printf "%s\n" "$RANLIB" >&6; }
7536 else
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 printf "%s\n" "no" >&6; }
7539 fi
7540
7541
7542 fi
7543 if test -z "$ac_cv_prog_RANLIB"; then
7544 ac_ct_RANLIB=$RANLIB
7545 # Extract the first word of "ranlib", so it can be a program name with args.
7546 set dummy ranlib; ac_word=$2
7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 printf %s "checking for $ac_word... " >&6; }
7549 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7550 then :
7551 printf %s "(cached) " >&6
7552 else case e in #(
7553 e) if test -n "$ac_ct_RANLIB"; then
7554 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559 IFS=$as_save_IFS
7560 case $as_dir in #(((
7561 '') as_dir=./ ;;
7562 */) ;;
7563 *) as_dir=$as_dir/ ;;
7564 esac
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7567 ac_cv_prog_ac_ct_RANLIB="ranlib"
7568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7569 break 2
7570 fi
7571 done
7572 done
7573 IFS=$as_save_IFS
7574
7575 fi ;;
7576 esac
7577 fi
7578 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7579 if test -n "$ac_ct_RANLIB"; then
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7581 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7582 else
7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 printf "%s\n" "no" >&6; }
7585 fi
7586
7587 if test "x$ac_ct_RANLIB" = x; then
7588 RANLIB=":"
7589 else
7590 case $cross_compiling:$ac_tool_warned in
7591 yes:)
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7593 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7594 ac_tool_warned=yes ;;
7595 esac
7596 RANLIB=$ac_ct_RANLIB
7597 fi
7598 else
7599 RANLIB="$ac_cv_prog_RANLIB"
7600 fi
7601
7602 if test X"$AR" = X"false"
7603 then :
7604
7605 as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
7606
7607 fi
7608
7609
7610
7611 # Make sure we can run config.sub.
7612 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7613 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7614
7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7616 printf %s "checking build system type... " >&6; }
7617 if test ${ac_cv_build+y}
7618 then :
7619 printf %s "(cached) " >&6
7620 else case e in #(
7621 e) ac_build_alias=$build_alias
7622 test "x$ac_build_alias" = x &&
7623 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7624 test "x$ac_build_alias" = x &&
7625 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7626 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7627 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7628 ;;
7629 esac
7630 fi
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7632 printf "%s\n" "$ac_cv_build" >&6; }
7633 case $ac_cv_build in
7634 *-*-*) ;;
7635 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7636 esac
7637 build=$ac_cv_build
7638 ac_save_IFS=$IFS; IFS='-'
7639 set x $ac_cv_build
7640 shift
7641 build_cpu=$1
7642 build_vendor=$2
7643 shift; shift
7644 # Remember, the first character of IFS is used to create $*,
7645 # except with old shells:
7646 build_os=$*
7647 IFS=$ac_save_IFS
7648 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7649
7650
7651
7652
7653 cross_compiling_build=no
7654
7655 ac_build_tool_prefix=
7656 if test -n "$build"
7657 then :
7658 ac_build_tool_prefix="$build-"
7659 elif test -n "$build_alias"
7660 then :
7661 ac_build_tool_prefix="$build_alias-"
7662 fi
7663
7664 ac_ext=c
7665 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7666 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7667 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7668 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7669
7670
7671 was_set_c_compiler_gnu=${ac_cv_c_compiler_gnu+y}
7672 if test ${was_set_c_compiler_gnu}
7673 then :
7674 saved_c_compiler_gnu=$ac_cv_c_compiler_gnu
7675 { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;}
7676 fi
7677
7678 ac_ext=c
7679 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7680 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7681 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7682 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7683 if test -n "$ac_build_tool_prefix"; then
7684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7685 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 printf %s "checking for $ac_word... " >&6; }
7688 if test ${ac_cv_prog_CC_FOR_BUILD+y}
7689 then :
7690 printf %s "(cached) " >&6
7691 else case e in #(
7692 e) if test -n "$CC_FOR_BUILD"; then
7693 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698 IFS=$as_save_IFS
7699 case $as_dir in #(((
7700 '') as_dir=./ ;;
7701 */) ;;
7702 *) as_dir=$as_dir/ ;;
7703 esac
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7706 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
7707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710 done
7711 done
7712 IFS=$as_save_IFS
7713
7714 fi ;;
7715 esac
7716 fi
7717 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
7718 if test -n "$CC_FOR_BUILD"; then
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7720 printf "%s\n" "$CC_FOR_BUILD" >&6; }
7721 else
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 printf "%s\n" "no" >&6; }
7724 fi
7725
7726
7727 fi
7728 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
7729 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
7730 # Extract the first word of "gcc", so it can be a program name with args.
7731 set dummy gcc; ac_word=$2
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 printf %s "checking for $ac_word... " >&6; }
7734 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
7735 then :
7736 printf %s "(cached) " >&6
7737 else case e in #(
7738 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
7739 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744 IFS=$as_save_IFS
7745 case $as_dir in #(((
7746 '') as_dir=./ ;;
7747 */) ;;
7748 *) as_dir=$as_dir/ ;;
7749 esac
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
7753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7754 break 2
7755 fi
7756 done
7757 done
7758 IFS=$as_save_IFS
7759
7760 fi ;;
7761 esac
7762 fi
7763 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
7764 if test -n "$ac_ct_CC_FOR_BUILD"; then
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
7766 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
7767 else
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 printf "%s\n" "no" >&6; }
7770 fi
7771
7772 if test "x$ac_ct_CC_FOR_BUILD" = x; then
7773 CC_FOR_BUILD=""
7774 else
7775 case $cross_compiling_build:$ac_tool_warned in
7776 yes:)
7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
7778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
7779 ac_tool_warned=yes ;;
7780 esac
7781 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
7782 fi
7783 else
7784 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
7785 fi
7786
7787 if test -z "$CC_FOR_BUILD"; then
7788 if test -n "$ac_build_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7790 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 printf %s "checking for $ac_word... " >&6; }
7793 if test ${ac_cv_prog_CC_FOR_BUILD+y}
7794 then :
7795 printf %s "(cached) " >&6
7796 else case e in #(
7797 e) if test -n "$CC_FOR_BUILD"; then
7798 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803 IFS=$as_save_IFS
7804 case $as_dir in #(((
7805 '') as_dir=./ ;;
7806 */) ;;
7807 *) as_dir=$as_dir/ ;;
7808 esac
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
7812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7813 break 2
7814 fi
7815 done
7816 done
7817 IFS=$as_save_IFS
7818
7819 fi ;;
7820 esac
7821 fi
7822 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
7823 if test -n "$CC_FOR_BUILD"; then
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7825 printf "%s\n" "$CC_FOR_BUILD" >&6; }
7826 else
7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 printf "%s\n" "no" >&6; }
7829 fi
7830
7831
7832 fi
7833 fi
7834 if test -z "$CC_FOR_BUILD"; then
7835 # Extract the first word of "cc", so it can be a program name with args.
7836 set dummy cc; ac_word=$2
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 printf %s "checking for $ac_word... " >&6; }
7839 if test ${ac_cv_prog_CC_FOR_BUILD+y}
7840 then :
7841 printf %s "(cached) " >&6
7842 else case e in #(
7843 e) if test -n "$CC_FOR_BUILD"; then
7844 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
7845 else
7846 ac_prog_rejected=no
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850 IFS=$as_save_IFS
7851 case $as_dir in #(((
7852 '') as_dir=./ ;;
7853 */) ;;
7854 *) as_dir=$as_dir/ ;;
7855 esac
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7858 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7859 ac_prog_rejected=yes
7860 continue
7861 fi
7862 ac_cv_prog_CC_FOR_BUILD="cc"
7863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870 if test $ac_prog_rejected = yes; then
7871 # We found a bogon in the path, so make sure we never use it.
7872 set dummy $ac_cv_prog_CC_FOR_BUILD
7873 shift
7874 if test $# != 0; then
7875 # We chose a different compiler from the bogus one.
7876 # However, it has the same basename, so the bogon will be chosen
7877 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
7878 shift
7879 ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@"
7880 fi
7881 fi
7882 fi ;;
7883 esac
7884 fi
7885 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
7886 if test -n "$CC_FOR_BUILD"; then
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7888 printf "%s\n" "$CC_FOR_BUILD" >&6; }
7889 else
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 printf "%s\n" "no" >&6; }
7892 fi
7893
7894
7895 fi
7896 if test -z "$CC_FOR_BUILD"; then
7897 if test -n "$ac_build_tool_prefix"; then
7898 for ac_prog in cl.exe
7899 do
7900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7901 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 printf %s "checking for $ac_word... " >&6; }
7904 if test ${ac_cv_prog_CC_FOR_BUILD+y}
7905 then :
7906 printf %s "(cached) " >&6
7907 else case e in #(
7908 e) if test -n "$CC_FOR_BUILD"; then
7909 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 case $as_dir in #(((
7916 '') as_dir=./ ;;
7917 */) ;;
7918 *) as_dir=$as_dir/ ;;
7919 esac
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7922 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
7923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926 done
7927 done
7928 IFS=$as_save_IFS
7929
7930 fi ;;
7931 esac
7932 fi
7933 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
7934 if test -n "$CC_FOR_BUILD"; then
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7936 printf "%s\n" "$CC_FOR_BUILD" >&6; }
7937 else
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 printf "%s\n" "no" >&6; }
7940 fi
7941
7942
7943 test -n "$CC_FOR_BUILD" && break
7944 done
7945 fi
7946 if test -z "$CC_FOR_BUILD"; then
7947 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
7948 for ac_prog in cl.exe
7949 do
7950 # Extract the first word of "$ac_prog", so it can be a program name with args.
7951 set dummy $ac_prog; ac_word=$2
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 printf %s "checking for $ac_word... " >&6; }
7954 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
7955 then :
7956 printf %s "(cached) " >&6
7957 else case e in #(
7958 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
7959 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
7960 else
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964 IFS=$as_save_IFS
7965 case $as_dir in #(((
7966 '') as_dir=./ ;;
7967 */) ;;
7968 *) as_dir=$as_dir/ ;;
7969 esac
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7972 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
7973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976 done
7977 done
7978 IFS=$as_save_IFS
7979
7980 fi ;;
7981 esac
7982 fi
7983 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
7984 if test -n "$ac_ct_CC_FOR_BUILD"; then
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
7986 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
7987 else
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 printf "%s\n" "no" >&6; }
7990 fi
7991
7992
7993 test -n "$ac_ct_CC_FOR_BUILD" && break
7994 done
7995
7996 if test "x$ac_ct_CC_FOR_BUILD" = x; then
7997 CC_FOR_BUILD=""
7998 else
7999 case $cross_compiling_build:$ac_tool_warned in
8000 yes:)
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
8002 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
8003 ac_tool_warned=yes ;;
8004 esac
8005 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
8006 fi
8007 fi
8008
8009 fi
8010 if test -z "$CC_FOR_BUILD"; then
8011 if test -n "$ac_build_tool_prefix"; then
8012 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
8013 set dummy ${ac_build_tool_prefix}clang; ac_word=$2
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 printf %s "checking for $ac_word... " >&6; }
8016 if test ${ac_cv_prog_CC_FOR_BUILD+y}
8017 then :
8018 printf %s "(cached) " >&6
8019 else case e in #(
8020 e) if test -n "$CC_FOR_BUILD"; then
8021 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026 IFS=$as_save_IFS
8027 case $as_dir in #(((
8028 '') as_dir=./ ;;
8029 */) ;;
8030 *) as_dir=$as_dir/ ;;
8031 esac
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8034 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}clang"
8035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8036 break 2
8037 fi
8038 done
8039 done
8040 IFS=$as_save_IFS
8041
8042 fi ;;
8043 esac
8044 fi
8045 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
8046 if test -n "$CC_FOR_BUILD"; then
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
8048 printf "%s\n" "$CC_FOR_BUILD" >&6; }
8049 else
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 printf "%s\n" "no" >&6; }
8052 fi
8053
8054
8055 fi
8056 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
8057 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
8058 # Extract the first word of "clang", so it can be a program name with args.
8059 set dummy clang; ac_word=$2
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 printf %s "checking for $ac_word... " >&6; }
8062 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
8063 then :
8064 printf %s "(cached) " >&6
8065 else case e in #(
8066 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
8067 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072 IFS=$as_save_IFS
8073 case $as_dir in #(((
8074 '') as_dir=./ ;;
8075 */) ;;
8076 *) as_dir=$as_dir/ ;;
8077 esac
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8080 ac_cv_prog_ac_ct_CC_FOR_BUILD="clang"
8081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8082 break 2
8083 fi
8084 done
8085 done
8086 IFS=$as_save_IFS
8087
8088 fi ;;
8089 esac
8090 fi
8091 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
8092 if test -n "$ac_ct_CC_FOR_BUILD"; then
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
8094 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
8095 else
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 printf "%s\n" "no" >&6; }
8098 fi
8099
8100 if test "x$ac_ct_CC_FOR_BUILD" = x; then
8101 CC_FOR_BUILD=""
8102 else
8103 case $cross_compiling_build:$ac_tool_warned in
8104 yes:)
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
8106 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
8107 ac_tool_warned=yes ;;
8108 esac
8109 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
8110 fi
8111 else
8112 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
8113 fi
8114
8115 fi
8116
8117
8118 test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8119 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8120 as_fn_error $? "no acceptable C compiler found in \$PATH
8121 See 'config.log' for more details" "$LINENO" 5; }
8122
8123 # Provide some information about the compiler.
8124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8125 set X $ac_compile
8126 ac_compiler=$2
8127 for ac_option in --version -v -V -qversion -version; do
8128 { { ac_try="$ac_compiler $ac_option >&5"
8129 case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132 esac
8133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8134 printf "%s\n" "$ac_try_echo"; } >&5
8135 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8136 ac_status=$?
8137 if test -s conftest.err; then
8138 sed '10a\
8139 ... rest of stderr output deleted ...
8140 10q' conftest.err >conftest.er1
8141 cat conftest.er1 >&5
8142 fi
8143 rm -f conftest.er1 conftest.err
8144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8145 test $ac_status = 0; }
8146 done
8147
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
8149 printf %s "checking whether the compiler supports GNU C... " >&6; }
8150 if test ${ac_cv_c_compiler_gnu+y}
8151 then :
8152 printf %s "(cached) " >&6
8153 else case e in #(
8154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156
8157 int
8158 main (void)
8159 {
8160 #ifndef __GNUC__
8161 choke me
8162 #endif
8163
8164 ;
8165 return 0;
8166 }
8167 _ACEOF
8168 if ac_fn_c_try_compile "$LINENO"
8169 then :
8170 ac_compiler_gnu=yes
8171 else case e in #(
8172 e) ac_compiler_gnu=no ;;
8173 esac
8174 fi
8175 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
8176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8177 ;;
8178 esac
8179 fi
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8181 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
8182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8183
8184 if test $ac_compiler_gnu = yes; then
8185 GCC_FOR_BUILD=yes
8186 else
8187 GCC_FOR_BUILD=
8188 fi
8189 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y}
8190 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
8192 printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
8193 if test ${ac_cv_build_prog_cc_g+y}
8194 then :
8195 printf %s "(cached) " >&6
8196 else case e in #(
8197 e) ac_save_c_werror_flag=$ac_c_werror_flag
8198 ac_c_werror_flag=yes
8199 ac_cv_build_prog_cc_g=no
8200 CFLAGS_FOR_BUILD="-g"
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203
8204 int
8205 main (void)
8206 {
8207
8208 ;
8209 return 0;
8210 }
8211 _ACEOF
8212 if ac_fn_c_try_compile "$LINENO"
8213 then :
8214 ac_cv_build_prog_cc_g=yes
8215 else case e in #(
8216 e) CFLAGS_FOR_BUILD=""
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219
8220 int
8221 main (void)
8222 {
8223
8224 ;
8225 return 0;
8226 }
8227 _ACEOF
8228 if ac_fn_c_try_compile "$LINENO"
8229 then :
8230
8231 else case e in #(
8232 e) ac_c_werror_flag=$ac_save_c_werror_flag
8233 CFLAGS_FOR_BUILD="-g"
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236
8237 int
8238 main (void)
8239 {
8240
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 if ac_fn_c_try_compile "$LINENO"
8246 then :
8247 ac_cv_build_prog_cc_g=yes
8248 fi
8249 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext ;;
8250 esac
8251 fi
8252 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext ;;
8253 esac
8254 fi
8255 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
8256 ac_c_werror_flag=$ac_save_c_werror_flag ;;
8257 esac
8258 fi
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
8260 printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; }
8261 if test $ac_test_CFLAGS; then
8262 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
8263 elif test $ac_cv_build_prog_cc_g = yes; then
8264 if test "$GCC_FOR_BUILD" = yes; then
8265 CFLAGS_FOR_BUILD="-g -O2"
8266 else
8267 CFLAGS_FOR_BUILD="-g"
8268 fi
8269 else
8270 if test "$GCC_FOR_BUILD" = yes; then
8271 CFLAGS_FOR_BUILD="-O2"
8272 else
8273 CFLAGS_FOR_BUILD=
8274 fi
8275 fi
8276 ac_prog_cc_stdc=no
8277 if test x$ac_prog_cc_stdc = xno
8278 then :
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5
8280 printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; }
8281 if test ${ac_cv_build_prog_cc_c11+y}
8282 then :
8283 printf %s "(cached) " >&6
8284 else case e in #(
8285 e) ac_cv_build_prog_cc_c11=no
8286 ac_save_CC=$CC_FOR_BUILD
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 $ac_c_conftest_c11_program
8290 _ACEOF
8291 for ac_arg in '' -std=gnu11
8292 do
8293 CC_FOR_BUILD="$ac_save_CC $ac_arg"
8294 if ac_fn_c_try_compile "$LINENO"
8295 then :
8296 ac_cv_build_prog_cc_c11=$ac_arg
8297 fi
8298 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
8299 test "x$ac_cv_build_prog_cc_c11" != "xno" && break
8300 done
8301 rm -f conftest.$ac_ext
8302 CC_FOR_BUILD=$ac_save_CC ;;
8303 esac
8304 fi
8305
8306 if test "x$ac_cv_build_prog_cc_c11" = xno
8307 then :
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8309 printf "%s\n" "unsupported" >&6; }
8310 else case e in #(
8311 e) if test "x$ac_cv_build_prog_cc_c11" = x
8312 then :
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8314 printf "%s\n" "none needed" >&6; }
8315 else case e in #(
8316 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c11" >&5
8317 printf "%s\n" "$ac_cv_build_prog_cc_c11" >&6; }
8318 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c11" ;;
8319 esac
8320 fi
8321 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c11
8322 ac_prog_cc_stdc=c11 ;;
8323 esac
8324 fi
8325 fi
8326 if test x$ac_prog_cc_stdc = xno
8327 then :
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5
8329 printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; }
8330 if test ${ac_cv_build_prog_cc_c99+y}
8331 then :
8332 printf %s "(cached) " >&6
8333 else case e in #(
8334 e) ac_cv_build_prog_cc_c99=no
8335 ac_save_CC=$CC_FOR_BUILD
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 $ac_c_conftest_c99_program
8339 _ACEOF
8340 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
8341 do
8342 CC_FOR_BUILD="$ac_save_CC $ac_arg"
8343 if ac_fn_c_try_compile "$LINENO"
8344 then :
8345 ac_cv_build_prog_cc_c99=$ac_arg
8346 fi
8347 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
8348 test "x$ac_cv_build_prog_cc_c99" != "xno" && break
8349 done
8350 rm -f conftest.$ac_ext
8351 CC_FOR_BUILD=$ac_save_CC ;;
8352 esac
8353 fi
8354
8355 if test "x$ac_cv_build_prog_cc_c99" = xno
8356 then :
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8358 printf "%s\n" "unsupported" >&6; }
8359 else case e in #(
8360 e) if test "x$ac_cv_build_prog_cc_c99" = x
8361 then :
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8363 printf "%s\n" "none needed" >&6; }
8364 else case e in #(
8365 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c99" >&5
8366 printf "%s\n" "$ac_cv_build_prog_cc_c99" >&6; }
8367 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c99" ;;
8368 esac
8369 fi
8370 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c99
8371 ac_prog_cc_stdc=c99 ;;
8372 esac
8373 fi
8374 fi
8375 if test x$ac_prog_cc_stdc = xno
8376 then :
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5
8378 printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; }
8379 if test ${ac_cv_build_prog_cc_c89+y}
8380 then :
8381 printf %s "(cached) " >&6
8382 else case e in #(
8383 e) ac_cv_build_prog_cc_c89=no
8384 ac_save_CC=$CC_FOR_BUILD
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 $ac_c_conftest_c89_program
8388 _ACEOF
8389 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8390 do
8391 CC_FOR_BUILD="$ac_save_CC $ac_arg"
8392 if ac_fn_c_try_compile "$LINENO"
8393 then :
8394 ac_cv_build_prog_cc_c89=$ac_arg
8395 fi
8396 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
8397 test "x$ac_cv_build_prog_cc_c89" != "xno" && break
8398 done
8399 rm -f conftest.$ac_ext
8400 CC_FOR_BUILD=$ac_save_CC ;;
8401 esac
8402 fi
8403
8404 if test "x$ac_cv_build_prog_cc_c89" = xno
8405 then :
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8407 printf "%s\n" "unsupported" >&6; }
8408 else case e in #(
8409 e) if test "x$ac_cv_build_prog_cc_c89" = x
8410 then :
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8412 printf "%s\n" "none needed" >&6; }
8413 else case e in #(
8414 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5
8415 printf "%s\n" "$ac_cv_build_prog_cc_c89" >&6; }
8416 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89" ;;
8417 esac
8418 fi
8419 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c89
8420 ac_prog_cc_stdc=c89 ;;
8421 esac
8422 fi
8423 fi
8424
8425 ac_ext=c
8426 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
8427 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
8428 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
8429 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
8430
8431
8432 if test ${was_set_c_compiler_gnu}
8433 then :
8434 ac_cv_c_compiler_gnu=$saved_c_compiler_gnu
8435 fi
8436
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439
8440 int
8441 main (void)
8442 {
8443
8444 ;
8445 return 0;
8446 }
8447 _ACEOF
8448 ac_clean_files_save=$ac_clean_files
8449 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
8450 # Try to create an executable without -o first, disregard a.out.
8451 # It will help us diagnose broken compilers, and finding out an intuition
8452 # of exeext.
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
8454 printf %s "checking whether the C compiler works... " >&6; }
8455 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8456
8457 # The possible output files:
8458 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
8459
8460 ac_rmfiles=
8461 for ac_file in $ac_files
8462 do
8463 case $ac_file in
8464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8465 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
8466 esac
8467 done
8468 rm -f $ac_rmfiles
8469
8470 if { { ac_try="$ac_link_default"
8471 case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474 esac
8475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8476 printf "%s\n" "$ac_try_echo"; } >&5
8477 (eval "$ac_link_default") 2>&5
8478 ac_status=$?
8479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8480 test $ac_status = 0; }
8481 then :
8482 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
8483 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
8484 # in a Makefile. We should not override ac_cv_exeext if it was cached,
8485 # so that the user can short-circuit this test for compilers unknown to
8486 # Autoconf.
8487 for ac_file in $ac_files ''
8488 do
8489 test -f "$ac_file" || continue
8490 case $ac_file in
8491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8492 ;;
8493 [ab].out )
8494 # We found the default executable, but exeext='' is most
8495 # certainly right.
8496 break;;
8497 *.* )
8498 if test ${ac_cv_build_exeext+y} && test "$ac_cv_build_exeext" != no;
8499 then :; else
8500 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8501 fi
8502 # We set ac_cv_exeext here because the later test for it is not
8503 # safe: cross compilers may not add the suffix if given an '-o'
8504 # argument, so we may need to know it at that point already.
8505 # Even if this section looks crufty: it has the advantage of
8506 # actually working.
8507 break;;
8508 * )
8509 break;;
8510 esac
8511 done
8512 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
8513
8514 else case e in #(
8515 e) ac_file='' ;;
8516 esac
8517 fi
8518 if test -z "$ac_file"
8519 then :
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 printf "%s\n" "no" >&6; }
8522 printf "%s\n" "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8526 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8527 as_fn_error 77 "C compiler cannot create executables
8528 See 'config.log' for more details" "$LINENO" 5; }
8529 else case e in #(
8530 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8531 printf "%s\n" "yes" >&6; } ;;
8532 esac
8533 fi
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
8535 printf %s "checking for C compiler default output file name... " >&6; }
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
8537 printf "%s\n" "$ac_file" >&6; }
8538 ac_build_exeext=$ac_cv_build_exeext
8539
8540 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
8541 ac_clean_files=$ac_clean_files_save
8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8543 printf %s "checking for suffix of executables... " >&6; }
8544 if { { ac_try="$ac_link"
8545 case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548 esac
8549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8550 printf "%s\n" "$ac_try_echo"; } >&5
8551 (eval "$ac_link") 2>&5
8552 ac_status=$?
8553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554 test $ac_status = 0; }
8555 then :
8556 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
8557 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
8558 # work properly (i.e., refer to 'conftest.exe'), while it won't with
8559 # 'rm'.
8560 for ac_file in conftest.exe conftest conftest.*; do
8561 test -f "$ac_file" || continue
8562 case $ac_file in
8563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8564 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8565 break;;
8566 * ) break;;
8567 esac
8568 done
8569 else case e in #(
8570 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8571 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8572 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
8573 See 'config.log' for more details" "$LINENO" 5; } ;;
8574 esac
8575 fi
8576 rm -f conftest conftest$ac_cv_build_exeext
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
8578 printf "%s\n" "$ac_cv_build_exeext" >&6; }
8579
8580 rm -f conftest.$ac_ext
8581 EXEEXT=$ac_cv_build_exeext
8582 ac_build_exeext=$BUILD_EXEEXT
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585 #include <stdio.h>
8586 int
8587 main (void)
8588 {
8589 FILE *f = fopen ("conftest.out", "w");
8590 if (!f)
8591 return 1;
8592 return ferror (f) || fclose (f) != 0;
8593
8594 ;
8595 return 0;
8596 }
8597 _ACEOF
8598 ac_clean_files="$ac_clean_files conftest.out"
8599 # Check that the compiler produces executables we can run. If not, either
8600 # the compiler is broken, or we cross compile.
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
8602 printf %s "checking whether we are cross compiling... " >&6; }
8603 if test "$cross_compiling_build" != yes; then
8604 { { ac_try="$ac_link"
8605 case "(($ac_try" in
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8608 esac
8609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8610 printf "%s\n" "$ac_try_echo"; } >&5
8611 (eval "$ac_link") 2>&5
8612 ac_status=$?
8613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8614 test $ac_status = 0; }
8615 if { ac_try='./conftest$ac_cv_build_exeext'
8616 { { case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8619 esac
8620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8621 printf "%s\n" "$ac_try_echo"; } >&5
8622 (eval "$ac_try") 2>&5
8623 ac_status=$?
8624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8625 test $ac_status = 0; }; }; then
8626 cross_compiling_build=no
8627 else
8628 if test "$cross_compiling_build" = maybe; then
8629 cross_compiling_build=yes
8630 else
8631 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8632 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8633 as_fn_error 77 "cannot run C compiled programs.
8634 If you meant to cross compile, use '--build'.
8635 See 'config.log' for more details" "$LINENO" 5; }
8636 fi
8637 fi
8638 fi
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5
8640 printf "%s\n" "$cross_compiling_build" >&6; }
8641
8642 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext \
8643 conftest.o conftest.obj conftest.out
8644 ac_clean_files=$ac_clean_files_save
8645
8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8647 printf %s "checking for suffix of object files... " >&6; }
8648 if test ${ac_cv_build_objext+y}
8649 then :
8650 printf %s "(cached) " >&6
8651 else case e in #(
8652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654
8655 int
8656 main (void)
8657 {
8658
8659 ;
8660 return 0;
8661 }
8662 _ACEOF
8663 rm -f conftest.o conftest.obj
8664 if { { ac_try="$ac_compile"
8665 case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8668 esac
8669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8670 printf "%s\n" "$ac_try_echo"; } >&5
8671 (eval "$ac_compile") 2>&5
8672 ac_status=$?
8673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8674 test $ac_status = 0; }
8675 then :
8676 for ac_file in conftest.o conftest.obj conftest.*; do
8677 test -f "$ac_file" || continue;
8678 case $ac_file in
8679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
8680 *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'`
8681 break;;
8682 esac
8683 done
8684 else case e in #(
8685 e) printf "%s\n" "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8689 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8690 as_fn_error $? "cannot compute suffix of object files: cannot compile
8691 See 'config.log' for more details" "$LINENO" 5; } ;;
8692 esac
8693 fi
8694 rm -f conftest.$ac_cv_build_objext conftest.$ac_ext ;;
8695 esac
8696 fi
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5
8698 printf "%s\n" "$ac_cv_build_objext" >&6; }
8699 OBJEXT=$ac_cv_build_objext
8700 ac_build_objext=$BUILD_OBJEXT
8701
8702 ac_ext=c
8703 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
8704 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
8705 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
8706 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8708 printf %s "checking how to run the C preprocessor... " >&6; }
8709 # On Suns, sometimes $CPP names a directory.
8710 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
8711 CPP_FOR_BUILD=
8712 fi
8713 if test -z "$CPP_FOR_BUILD"; then
8714 if test ${ac_cv_build_prog_CPP+y}
8715 then :
8716 printf %s "(cached) " >&6
8717 else case e in #(
8718 e) # Double quotes because $CC needs to be expanded
8719 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp
8720 do
8721 ac_preproc_ok=false
8722 for ac_c_preproc_warn_flag in '' yes
8723 do
8724 # Use a header file that comes with gcc, so configuring glibc
8725 # with a fresh cross-compiler works.
8726 # On the NeXT, cc -E runs the code through the compiler's parser,
8727 # not just through cpp. "Syntax error" is here to catch this case.
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 #include <limits.h>
8731 Syntax error
8732 _ACEOF
8733 if ac_fn_c_try_cpp "$LINENO"
8734 then :
8735
8736 else case e in #(
8737 e) # Broken: fails on valid input.
8738 continue ;;
8739 esac
8740 fi
8741 rm -f conftest.err conftest.i conftest.$ac_ext
8742
8743 # OK, works on sane cases. Now check whether nonexistent headers
8744 # can be detected and how.
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747 #include <ac_nonexistent.h>
8748 _ACEOF
8749 if ac_fn_c_try_cpp "$LINENO"
8750 then :
8751 # Broken: success on invalid input.
8752 continue
8753 else case e in #(
8754 e) # Passes both tests.
8755 ac_preproc_ok=:
8756 break ;;
8757 esac
8758 fi
8759 rm -f conftest.err conftest.i conftest.$ac_ext
8760
8761 done
8762 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8763 rm -f conftest.i conftest.err conftest.$ac_ext
8764 if $ac_preproc_ok
8765 then :
8766 break
8767 fi
8768
8769 done
8770 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
8771 ;;
8772 esac
8773 fi
8774 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
8775 else
8776 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
8777 fi
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
8779 printf "%s\n" "$CPP_FOR_BUILD" >&6; }
8780 ac_preproc_ok=false
8781 for ac_c_preproc_warn_flag in '' yes
8782 do
8783 # Use a header file that comes with gcc, so configuring glibc
8784 # with a fresh cross-compiler works.
8785 # On the NeXT, cc -E runs the code through the compiler's parser,
8786 # not just through cpp. "Syntax error" is here to catch this case.
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <limits.h>
8790 Syntax error
8791 _ACEOF
8792 if ac_fn_c_try_cpp "$LINENO"
8793 then :
8794
8795 else case e in #(
8796 e) # Broken: fails on valid input.
8797 continue ;;
8798 esac
8799 fi
8800 rm -f conftest.err conftest.i conftest.$ac_ext
8801
8802 # OK, works on sane cases. Now check whether nonexistent headers
8803 # can be detected and how.
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #include <ac_nonexistent.h>
8807 _ACEOF
8808 if ac_fn_c_try_cpp "$LINENO"
8809 then :
8810 # Broken: success on invalid input.
8811 continue
8812 else case e in #(
8813 e) # Passes both tests.
8814 ac_preproc_ok=:
8815 break ;;
8816 esac
8817 fi
8818 rm -f conftest.err conftest.i conftest.$ac_ext
8819
8820 done
8821 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8822 rm -f conftest.i conftest.err conftest.$ac_ext
8823 if $ac_preproc_ok
8824 then :
8825
8826 else case e in #(
8827 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8828 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8829 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
8830 See 'config.log' for more details" "$LINENO" 5; } ;;
8831 esac
8832 fi
8833
8834 ac_ext=c
8835 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
8836 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
8837 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
8838 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
8839
8840
8841
8842 ac_ext=c
8843 ac_cpp='$CPP $CPPFLAGS'
8844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8847
8848
8849
8850 for ac_prog in jq
8851 do
8852 # Extract the first word of "$ac_prog", so it can be a program name with args.
8853 set dummy $ac_prog; ac_word=$2
8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8855 printf %s "checking for $ac_word... " >&6; }
8856 if test ${ac_cv_prog_JQ+y}
8857 then :
8858 printf %s "(cached) " >&6
8859 else case e in #(
8860 e) if test -n "$JQ"; then
8861 ac_cv_prog_JQ="$JQ" # Let the user override the test.
8862 else
8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $PATH
8865 do
8866 IFS=$as_save_IFS
8867 case $as_dir in #(((
8868 '') as_dir=./ ;;
8869 */) ;;
8870 *) as_dir=$as_dir/ ;;
8871 esac
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_JQ="$ac_prog"
8875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8876 break 2
8877 fi
8878 done
8879 done
8880 IFS=$as_save_IFS
8881
8882 fi ;;
8883 esac
8884 fi
8885 JQ=$ac_cv_prog_JQ
8886 if test -n "$JQ"; then
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JQ" >&5
8888 printf "%s\n" "$JQ" >&6; }
8889 else
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 printf "%s\n" "no" >&6; }
8892 fi
8893
8894
8895 test -n "$JQ" && break
8896 done
8897 test -n "$JQ" || JQ=":"
8898
8899
8900 if test "x$ac_cv_prog_cc_c89" = "xno"
8901 then :
8902
8903 as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
8904
8905 fi
8906
8907 if test "$enable_static" = "no"
8908 then :
8909
8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring --disable-static, sudo does not install static libs" >&5
8911 printf "%s\n" "$as_me: WARNING: ignoring --disable-static, sudo does not install static libs" >&2;}
8912 enable_static=yes
8913
8914 fi
8915
8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8917 printf %s "checking host system type... " >&6; }
8918 if test ${ac_cv_host+y}
8919 then :
8920 printf %s "(cached) " >&6
8921 else case e in #(
8922 e) if test "x$host_alias" = x; then
8923 ac_cv_host=$ac_cv_build
8924 else
8925 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
8926 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
8927 fi
8928 ;;
8929 esac
8930 fi
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8932 printf "%s\n" "$ac_cv_host" >&6; }
8933 case $ac_cv_host in
8934 *-*-*) ;;
8935 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
8936 esac
8937 host=$ac_cv_host
8938 ac_save_IFS=$IFS; IFS='-'
8939 set x $ac_cv_host
8940 shift
8941 host_cpu=$1
8942 host_vendor=$2
8943 shift; shift
8944 # Remember, the first character of IFS is used to create $*,
8945 # except with old shells:
8946 host_os=$*
8947 IFS=$ac_save_IFS
8948 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8949
8950
8951
8952
8953
8954 if test X"$enable_pvs_studio" = X"yes"; then
8955 # Determine preprocessor type
8956 case "$CC" in
8957 *clang*) preprocessor=clang;;
8958 *gcc*) preprocessor=gcc;;
8959 *) case `$CC --version 2>&1` in
8960 *clang*) preprocessor=clang;;
8961 *gcc*) preprocessor=gcc;;
8962 *) as_fn_error $? "Compiler must be gcc or clang for PVS-Studio." "$LINENO" 5;;
8963 esac
8964 ;;
8965 esac
8966
8967 # Determine platform (currently linux or macos)
8968 case "$host" in
8969 x86_64-*-linux*) pvs_platform=linux64;;
8970 *86-*-linux*) pvs_platform=linux32;;
8971 *-*-darwin*) pvs_platform=macos;;
8972 *) as_fn_error $? "PVS-Studio does not support $host." "$LINENO" 5;;
8973 esac
8974
8975 # Create a basic PVS-Studio.cfg file
8976 cat > PVS-Studio.cfg <<-EOF
8977 preprocessor = $preprocessor
8978 platform = $pvs_platform
8979 analysis-mode = 4
8980 language = C
8981 EOF
8982
8983 # Check for a license file in the default location
8984 if test -f "$HOME/.config/PVS-Studio/PVS-Studio.lic"; then
8985 echo "lic-file = $HOME/.config/PVS-Studio/PVS-Studio.lic" >> PVS-Studio.cfg
8986 fi
8987 fi
8988
8989
8990 case "$host_os" in
8991 hpux11.1[1-9]|hpux11.[2-9][0-9]|hpux1[2-9].*)
8992 # Prefer dlopen() over shl_load()
8993 : ${ac_cv_func_shl_load='no'}
8994 : ${ac_cv_lib_dld_shl_load='no'}
8995 ;;
8996 esac
8997
8998
8999
9000 case `pwd` in
9001 *\ * | *\ *)
9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9003 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9004 esac
9005
9006
9007
9008 macro_version='2.5.3'
9009 macro_revision='2.5.3'
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024 ltmain=$ac_aux_dir/ltmain.sh
9025
9026 # Backslashify metacharacters that are still active within
9027 # double-quoted strings.
9028 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9029
9030 # Same as above, but do not quote variable references.
9031 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9032
9033 # Sed substitution to delay expansion of an escaped shell variable in a
9034 # double_quote_subst'ed string.
9035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9036
9037 # Sed substitution to delay expansion of an escaped single quote.
9038 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9039
9040 # Sed substitution to avoid accidental globbing in evaled expressions
9041 no_glob_subst='s/\*/\\\*/g'
9042
9043 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9044 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9045 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9046
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9048 printf %s "checking how to print strings... " >&6; }
9049 # Test print first, because it will be a builtin if present.
9050 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9051 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9052 ECHO='print -r --'
9053 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9054 ECHO='printf %s\n'
9055 else
9056 # Use this function as a fallback that always works.
9057 func_fallback_echo ()
9058 {
9059 eval 'cat <<_LTECHO_EOF
9060 $1
9061 _LTECHO_EOF'
9062 }
9063 ECHO='func_fallback_echo'
9064 fi
9065
9066 # func_echo_all arg...
9067 # Invoke $ECHO with all args, space-separated.
9068 func_echo_all ()
9069 {
9070 $ECHO ""
9071 }
9072
9073 case $ECHO in
9074 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9075 printf "%s\n" "printf" >&6; } ;;
9076 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9077 printf "%s\n" "print -r" >&6; } ;;
9078 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9079 printf "%s\n" "cat" >&6; } ;;
9080 esac
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9096 printf %s "checking for a sed that does not truncate output... " >&6; }
9097 if test ${ac_cv_path_SED+y}
9098 then :
9099 printf %s "(cached) " >&6
9100 else case e in #(
9101 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9102 for ac_i in 1 2 3 4 5 6 7; do
9103 ac_script="$ac_script$as_nl$ac_script"
9104 done
9105 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9106 { ac_script=; unset ac_script;}
9107 if test -z "$SED"; then
9108 ac_path_SED_found=false
9109 # Loop through the user's path and test for each of PROGNAME-LIST
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 for as_dir in $PATH
9112 do
9113 IFS=$as_save_IFS
9114 case $as_dir in #(((
9115 '') as_dir=./ ;;
9116 */) ;;
9117 *) as_dir=$as_dir/ ;;
9118 esac
9119 for ac_prog in sed gsed
9120 do
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9123 as_fn_executable_p "$ac_path_SED" || continue
9124 # Check for GNU ac_path_SED and select it if it is found.
9125 # Check for GNU $ac_path_SED
9126 case `"$ac_path_SED" --version 2>&1` in #(
9127 *GNU*)
9128 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9129 #(
9130 *)
9131 ac_count=0
9132 printf %s 0123456789 >"conftest.in"
9133 while :
9134 do
9135 cat "conftest.in" "conftest.in" >"conftest.tmp"
9136 mv "conftest.tmp" "conftest.in"
9137 cp "conftest.in" "conftest.nl"
9138 printf "%s\n" '' >> "conftest.nl"
9139 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9141 as_fn_arith $ac_count + 1 && ac_count=$as_val
9142 if test $ac_count -gt ${ac_path_SED_max-0}; then
9143 # Best one so far, save it but keep looking for a better one
9144 ac_cv_path_SED="$ac_path_SED"
9145 ac_path_SED_max=$ac_count
9146 fi
9147 # 10*(2^10) chars as input seems more than enough
9148 test $ac_count -gt 10 && break
9149 done
9150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9151 esac
9152
9153 $ac_path_SED_found && break 3
9154 done
9155 done
9156 done
9157 IFS=$as_save_IFS
9158 if test -z "$ac_cv_path_SED"; then
9159 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9160 fi
9161 else
9162 ac_cv_path_SED=$SED
9163 fi
9164 ;;
9165 esac
9166 fi
9167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9168 printf "%s\n" "$ac_cv_path_SED" >&6; }
9169 SED="$ac_cv_path_SED"
9170 rm -f conftest.sed
9171
9172 test -z "$SED" && SED=sed
9173 Xsed="$SED -e 1s/^X//"
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9186 printf %s "checking for grep that handles long lines and -e... " >&6; }
9187 if test ${ac_cv_path_GREP+y}
9188 then :
9189 printf %s "(cached) " >&6
9190 else case e in #(
9191 e) if test -z "$GREP"; then
9192 ac_path_GREP_found=false
9193 # Loop through the user's path and test for each of PROGNAME-LIST
9194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9196 do
9197 IFS=$as_save_IFS
9198 case $as_dir in #(((
9199 '') as_dir=./ ;;
9200 */) ;;
9201 *) as_dir=$as_dir/ ;;
9202 esac
9203 for ac_prog in grep ggrep
9204 do
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
9207 as_fn_executable_p "$ac_path_GREP" || continue
9208 # Check for GNU ac_path_GREP and select it if it is found.
9209 # Check for GNU $ac_path_GREP
9210 case `"$ac_path_GREP" --version 2>&1` in #(
9211 *GNU*)
9212 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9213 #(
9214 *)
9215 ac_count=0
9216 printf %s 0123456789 >"conftest.in"
9217 while :
9218 do
9219 cat "conftest.in" "conftest.in" >"conftest.tmp"
9220 mv "conftest.tmp" "conftest.in"
9221 cp "conftest.in" "conftest.nl"
9222 printf "%s\n" 'GREP' >> "conftest.nl"
9223 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9225 as_fn_arith $ac_count + 1 && ac_count=$as_val
9226 if test $ac_count -gt ${ac_path_GREP_max-0}; then
9227 # Best one so far, save it but keep looking for a better one
9228 ac_cv_path_GREP="$ac_path_GREP"
9229 ac_path_GREP_max=$ac_count
9230 fi
9231 # 10*(2^10) chars as input seems more than enough
9232 test $ac_count -gt 10 && break
9233 done
9234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9235 esac
9236
9237 $ac_path_GREP_found && break 3
9238 done
9239 done
9240 done
9241 IFS=$as_save_IFS
9242 if test -z "$ac_cv_path_GREP"; then
9243 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9244 fi
9245 else
9246 ac_cv_path_GREP=$GREP
9247 fi
9248 ;;
9249 esac
9250 fi
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9252 printf "%s\n" "$ac_cv_path_GREP" >&6; }
9253 GREP="$ac_cv_path_GREP"
9254
9255
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9257 printf %s "checking for egrep... " >&6; }
9258 if test ${ac_cv_path_EGREP+y}
9259 then :
9260 printf %s "(cached) " >&6
9261 else case e in #(
9262 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9263 then ac_cv_path_EGREP="$GREP -E"
9264 else
9265 if test -z "$EGREP"; then
9266 ac_path_EGREP_found=false
9267 # Loop through the user's path and test for each of PROGNAME-LIST
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9270 do
9271 IFS=$as_save_IFS
9272 case $as_dir in #(((
9273 '') as_dir=./ ;;
9274 */) ;;
9275 *) as_dir=$as_dir/ ;;
9276 esac
9277 for ac_prog in egrep
9278 do
9279 for ac_exec_ext in '' $ac_executable_extensions; do
9280 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
9281 as_fn_executable_p "$ac_path_EGREP" || continue
9282 # Check for GNU ac_path_EGREP and select it if it is found.
9283 # Check for GNU $ac_path_EGREP
9284 case `"$ac_path_EGREP" --version 2>&1` in #(
9285 *GNU*)
9286 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9287 #(
9288 *)
9289 ac_count=0
9290 printf %s 0123456789 >"conftest.in"
9291 while :
9292 do
9293 cat "conftest.in" "conftest.in" >"conftest.tmp"
9294 mv "conftest.tmp" "conftest.in"
9295 cp "conftest.in" "conftest.nl"
9296 printf "%s\n" 'EGREP' >> "conftest.nl"
9297 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9299 as_fn_arith $ac_count + 1 && ac_count=$as_val
9300 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9301 # Best one so far, save it but keep looking for a better one
9302 ac_cv_path_EGREP="$ac_path_EGREP"
9303 ac_path_EGREP_max=$ac_count
9304 fi
9305 # 10*(2^10) chars as input seems more than enough
9306 test $ac_count -gt 10 && break
9307 done
9308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9309 esac
9310
9311 $ac_path_EGREP_found && break 3
9312 done
9313 done
9314 done
9315 IFS=$as_save_IFS
9316 if test -z "$ac_cv_path_EGREP"; then
9317 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9318 fi
9319 else
9320 ac_cv_path_EGREP=$EGREP
9321 fi
9322
9323 fi ;;
9324 esac
9325 fi
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9327 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
9328 EGREP="$ac_cv_path_EGREP"
9329
9330 EGREP_TRADITIONAL=$EGREP
9331 ac_cv_path_EGREP_TRADITIONAL=$EGREP
9332
9333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9334 printf %s "checking for fgrep... " >&6; }
9335 if test ${ac_cv_path_FGREP+y}
9336 then :
9337 printf %s "(cached) " >&6
9338 else case e in #(
9339 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9340 then ac_cv_path_FGREP="$GREP -F"
9341 else
9342 if test -z "$FGREP"; then
9343 ac_path_FGREP_found=false
9344 # Loop through the user's path and test for each of PROGNAME-LIST
9345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9347 do
9348 IFS=$as_save_IFS
9349 case $as_dir in #(((
9350 '') as_dir=./ ;;
9351 */) ;;
9352 *) as_dir=$as_dir/ ;;
9353 esac
9354 for ac_prog in fgrep
9355 do
9356 for ac_exec_ext in '' $ac_executable_extensions; do
9357 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
9358 as_fn_executable_p "$ac_path_FGREP" || continue
9359 # Check for GNU ac_path_FGREP and select it if it is found.
9360 # Check for GNU $ac_path_FGREP
9361 case `"$ac_path_FGREP" --version 2>&1` in #(
9362 *GNU*)
9363 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9364 #(
9365 *)
9366 ac_count=0
9367 printf %s 0123456789 >"conftest.in"
9368 while :
9369 do
9370 cat "conftest.in" "conftest.in" >"conftest.tmp"
9371 mv "conftest.tmp" "conftest.in"
9372 cp "conftest.in" "conftest.nl"
9373 printf "%s\n" 'FGREP' >> "conftest.nl"
9374 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9376 as_fn_arith $ac_count + 1 && ac_count=$as_val
9377 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9378 # Best one so far, save it but keep looking for a better one
9379 ac_cv_path_FGREP="$ac_path_FGREP"
9380 ac_path_FGREP_max=$ac_count
9381 fi
9382 # 10*(2^10) chars as input seems more than enough
9383 test $ac_count -gt 10 && break
9384 done
9385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9386 esac
9387
9388 $ac_path_FGREP_found && break 3
9389 done
9390 done
9391 done
9392 IFS=$as_save_IFS
9393 if test -z "$ac_cv_path_FGREP"; then
9394 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9395 fi
9396 else
9397 ac_cv_path_FGREP=$FGREP
9398 fi
9399
9400 fi ;;
9401 esac
9402 fi
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9404 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9405 FGREP="$ac_cv_path_FGREP"
9406
9407
9408 test -z "$GREP" && GREP=grep
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428 # Check whether --with-gnu-ld was given.
9429 if test ${with_gnu_ld+y}
9430 then :
9431 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9432 else case e in #(
9433 e) with_gnu_ld=no ;;
9434 esac
9435 fi
9436
9437 ac_prog=ld
9438 if test yes = "$GCC"; then
9439 # Check if gcc -print-prog-name=ld gives a path.
9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9441 printf %s "checking for ld used by $CC... " >&6; }
9442 case $host in
9443 *-*-mingw* | *-*-windows*)
9444 # gcc leaves a trailing carriage return, which upsets mingw
9445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9446 *)
9447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9448 esac
9449 case $ac_prog in
9450 # Accept absolute paths.
9451 [\\/]* | ?:[\\/]*)
9452 re_direlt='/[^/][^/]*/\.\./'
9453 # Canonicalize the pathname of ld
9454 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9455 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9456 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9457 done
9458 test -z "$LD" && LD=$ac_prog
9459 ;;
9460 "")
9461 # If it fails, then pretend we aren't using GCC.
9462 ac_prog=ld
9463 ;;
9464 *)
9465 # If it is relative, then search for the first ld in PATH.
9466 with_gnu_ld=unknown
9467 ;;
9468 esac
9469 elif test yes = "$with_gnu_ld"; then
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9471 printf %s "checking for GNU ld... " >&6; }
9472 else
9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9474 printf %s "checking for non-GNU ld... " >&6; }
9475 fi
9476 if test ${lt_cv_path_LD+y}
9477 then :
9478 printf %s "(cached) " >&6
9479 else case e in #(
9480 e) if test -z "$LD"; then
9481 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9482 for ac_dir in $PATH; do
9483 IFS=$lt_save_ifs
9484 test -z "$ac_dir" && ac_dir=.
9485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9486 lt_cv_path_LD=$ac_dir/$ac_prog
9487 # Check to see if the program is GNU ld. I'd rather use --version,
9488 # but apparently some variants of GNU ld only accept -v.
9489 # Break only if it was the GNU/non-GNU ld that we prefer.
9490 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9491 *GNU* | *'with BFD'*)
9492 test no != "$with_gnu_ld" && break
9493 ;;
9494 *)
9495 test yes != "$with_gnu_ld" && break
9496 ;;
9497 esac
9498 fi
9499 done
9500 IFS=$lt_save_ifs
9501 else
9502 lt_cv_path_LD=$LD # Let the user override the test with a path.
9503 fi ;;
9504 esac
9505 fi
9506
9507 LD=$lt_cv_path_LD
9508 if test -n "$LD"; then
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9510 printf "%s\n" "$LD" >&6; }
9511 else
9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 printf "%s\n" "no" >&6; }
9514 fi
9515 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9517 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9518 if test ${lt_cv_prog_gnu_ld+y}
9519 then :
9520 printf %s "(cached) " >&6
9521 else case e in #(
9522 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
9523 case `$LD -v 2>&1 </dev/null` in
9524 *GNU* | *'with BFD'*)
9525 lt_cv_prog_gnu_ld=yes
9526 ;;
9527 *)
9528 lt_cv_prog_gnu_ld=no
9529 ;;
9530 esac ;;
9531 esac
9532 fi
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9534 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9535 with_gnu_ld=$lt_cv_prog_gnu_ld
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9546 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9547 if test ${lt_cv_path_NM+y}
9548 then :
9549 printf %s "(cached) " >&6
9550 else case e in #(
9551 e) if test -n "$NM"; then
9552 # Let the user override the test.
9553 lt_cv_path_NM=$NM
9554 else
9555 lt_nm_to_check=${ac_tool_prefix}nm
9556 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9557 lt_nm_to_check="$lt_nm_to_check nm"
9558 fi
9559 for lt_tmp_nm in $lt_nm_to_check; do
9560 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9561 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9562 IFS=$lt_save_ifs
9563 test -z "$ac_dir" && ac_dir=.
9564 tmp_nm=$ac_dir/$lt_tmp_nm
9565 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9566 # Check to see if the nm accepts a BSD-compat flag.
9567 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9568 # nm: unknown option "B" ignored
9569 # Tru64's nm complains that /dev/null is an invalid object file
9570 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9571 case $build_os in
9572 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
9573 *) lt_bad_file=/dev/null ;;
9574 esac
9575 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
9576 *$lt_bad_file* | *'Invalid file or object type'*)
9577 lt_cv_path_NM="$tmp_nm -B"
9578 break 2
9579 ;;
9580 *)
9581 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
9582 */dev/null*)
9583 lt_cv_path_NM="$tmp_nm -p"
9584 break 2
9585 ;;
9586 *)
9587 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9588 continue # so that we can try to find one that supports BSD flags
9589 ;;
9590 esac
9591 ;;
9592 esac
9593 fi
9594 done
9595 IFS=$lt_save_ifs
9596 done
9597 : ${lt_cv_path_NM=no}
9598 fi ;;
9599 esac
9600 fi
9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9602 printf "%s\n" "$lt_cv_path_NM" >&6; }
9603 if test no != "$lt_cv_path_NM"; then
9604 NM=$lt_cv_path_NM
9605 else
9606 # Didn't find any BSD compatible name lister, look for dumpbin.
9607 if test -n "$DUMPBIN"; then :
9608 # Let the user override the test.
9609 else
9610 if test -n "$ac_tool_prefix"; then
9611 for ac_prog in dumpbin "link -dump"
9612 do
9613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 printf %s "checking for $ac_word... " >&6; }
9617 if test ${ac_cv_prog_DUMPBIN+y}
9618 then :
9619 printf %s "(cached) " >&6
9620 else case e in #(
9621 e) if test -n "$DUMPBIN"; then
9622 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9623 else
9624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 for as_dir in $PATH
9626 do
9627 IFS=$as_save_IFS
9628 case $as_dir in #(((
9629 '') as_dir=./ ;;
9630 */) ;;
9631 *) as_dir=$as_dir/ ;;
9632 esac
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9635 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9637 break 2
9638 fi
9639 done
9640 done
9641 IFS=$as_save_IFS
9642
9643 fi ;;
9644 esac
9645 fi
9646 DUMPBIN=$ac_cv_prog_DUMPBIN
9647 if test -n "$DUMPBIN"; then
9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9649 printf "%s\n" "$DUMPBIN" >&6; }
9650 else
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652 printf "%s\n" "no" >&6; }
9653 fi
9654
9655
9656 test -n "$DUMPBIN" && break
9657 done
9658 fi
9659 if test -z "$DUMPBIN"; then
9660 ac_ct_DUMPBIN=$DUMPBIN
9661 for ac_prog in dumpbin "link -dump"
9662 do
9663 # Extract the first word of "$ac_prog", so it can be a program name with args.
9664 set dummy $ac_prog; ac_word=$2
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666 printf %s "checking for $ac_word... " >&6; }
9667 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9668 then :
9669 printf %s "(cached) " >&6
9670 else case e in #(
9671 e) if test -n "$ac_ct_DUMPBIN"; then
9672 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9673 else
9674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675 for as_dir in $PATH
9676 do
9677 IFS=$as_save_IFS
9678 case $as_dir in #(((
9679 '') as_dir=./ ;;
9680 */) ;;
9681 *) as_dir=$as_dir/ ;;
9682 esac
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9685 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9687 break 2
9688 fi
9689 done
9690 done
9691 IFS=$as_save_IFS
9692
9693 fi ;;
9694 esac
9695 fi
9696 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9697 if test -n "$ac_ct_DUMPBIN"; then
9698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9699 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9700 else
9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 printf "%s\n" "no" >&6; }
9703 fi
9704
9705
9706 test -n "$ac_ct_DUMPBIN" && break
9707 done
9708
9709 if test "x$ac_ct_DUMPBIN" = x; then
9710 DUMPBIN=":"
9711 else
9712 case $cross_compiling:$ac_tool_warned in
9713 yes:)
9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9716 ac_tool_warned=yes ;;
9717 esac
9718 DUMPBIN=$ac_ct_DUMPBIN
9719 fi
9720 fi
9721
9722 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9723 *COFF*)
9724 DUMPBIN="$DUMPBIN -symbols -headers"
9725 ;;
9726 *)
9727 DUMPBIN=:
9728 ;;
9729 esac
9730 fi
9731
9732 if test : != "$DUMPBIN"; then
9733 NM=$DUMPBIN
9734 fi
9735 fi
9736 test -z "$NM" && NM=nm
9737
9738
9739
9740
9741
9742
9743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9744 printf %s "checking the name lister ($NM) interface... " >&6; }
9745 if test ${lt_cv_nm_interface+y}
9746 then :
9747 printf %s "(cached) " >&6
9748 else case e in #(
9749 e) lt_cv_nm_interface="BSD nm"
9750 echo "int some_variable = 0;" > conftest.$ac_ext
9751 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9752 (eval "$ac_compile" 2>conftest.err)
9753 cat conftest.err >&5
9754 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9755 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9756 cat conftest.err >&5
9757 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9758 cat conftest.out >&5
9759 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9760 lt_cv_nm_interface="MS dumpbin"
9761 fi
9762 rm -f conftest* ;;
9763 esac
9764 fi
9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9766 printf "%s\n" "$lt_cv_nm_interface" >&6; }
9767
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9769 printf %s "checking whether ln -s works... " >&6; }
9770 LN_S=$as_ln_s
9771 if test "$LN_S" = "ln -s"; then
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9773 printf "%s\n" "yes" >&6; }
9774 else
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9776 printf "%s\n" "no, using $LN_S" >&6; }
9777 fi
9778
9779 # find the maximum length of command line arguments
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9781 printf %s "checking the maximum length of command line arguments... " >&6; }
9782 if test ${lt_cv_sys_max_cmd_len+y}
9783 then :
9784 printf %s "(cached) " >&6
9785 else case e in #(
9786 e) i=0
9787 teststring=ABCD
9788
9789 case $build_os in
9790 msdosdjgpp*)
9791 # On DJGPP, this test can blow up pretty badly due to problems in libc
9792 # (any single argument exceeding 2000 bytes causes a buffer overrun
9793 # during glob expansion). Even if it were fixed, the result of this
9794 # check would be larger than it should be.
9795 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9796 ;;
9797
9798 gnu*)
9799 # Under GNU Hurd, this test is not required because there is
9800 # no limit to the length of command line arguments.
9801 # Libtool will interpret -1 as no limit whatsoever
9802 lt_cv_sys_max_cmd_len=-1;
9803 ;;
9804
9805 cygwin* | mingw* | windows* | cegcc*)
9806 # On Win9x/ME, this test blows up -- it succeeds, but takes
9807 # about 5 minutes as the teststring grows exponentially.
9808 # Worse, since 9x/ME are not pre-emptively multitasking,
9809 # you end up with a "frozen" computer, even though with patience
9810 # the test eventually succeeds (with a max line length of 256k).
9811 # Instead, let's just punt: use the minimum linelength reported by
9812 # all of the supported platforms: 8192 (on NT/2K/XP).
9813 lt_cv_sys_max_cmd_len=8192;
9814 ;;
9815
9816 mint*)
9817 # On MiNT this can take a long time and run out of memory.
9818 lt_cv_sys_max_cmd_len=8192;
9819 ;;
9820
9821 amigaos*)
9822 # On AmigaOS with pdksh, this test takes hours, literally.
9823 # So we just punt and use a minimum line length of 8192.
9824 lt_cv_sys_max_cmd_len=8192;
9825 ;;
9826
9827 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9828 # This has been around since 386BSD, at least. Likely further.
9829 if test -x /sbin/sysctl; then
9830 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9831 elif test -x /usr/sbin/sysctl; then
9832 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9833 else
9834 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9835 fi
9836 # And add a safety zone
9837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9839 ;;
9840
9841 interix*)
9842 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9843 lt_cv_sys_max_cmd_len=196608
9844 ;;
9845
9846 os2*)
9847 # The test takes a long time on OS/2.
9848 lt_cv_sys_max_cmd_len=8192
9849 ;;
9850
9851 osf*)
9852 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9853 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9854 # nice to cause kernel panics so lets avoid the loop below.
9855 # First set a reasonable default.
9856 lt_cv_sys_max_cmd_len=16384
9857 #
9858 if test -x /sbin/sysconfig; then
9859 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9860 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9861 esac
9862 fi
9863 ;;
9864 sco3.2v5*)
9865 lt_cv_sys_max_cmd_len=102400
9866 ;;
9867 sysv5* | sco5v6* | sysv4.2uw2*)
9868 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9869 if test -n "$kargmax"; then
9870 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
9871 else
9872 lt_cv_sys_max_cmd_len=32768
9873 fi
9874 ;;
9875 *)
9876 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9877 if test -n "$lt_cv_sys_max_cmd_len" && \
9878 test undefined != "$lt_cv_sys_max_cmd_len"; then
9879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9881 else
9882 # Make teststring a little bigger before we do anything with it.
9883 # a 1K string should be a reasonable start.
9884 for i in 1 2 3 4 5 6 7 8; do
9885 teststring=$teststring$teststring
9886 done
9887 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9888 # If test is not a shell built-in, we'll probably end up computing a
9889 # maximum length that is only half of the actual maximum length, but
9890 # we can't tell.
9891 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9892 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9893 test 17 != "$i" # 1/2 MB should be enough
9894 do
9895 i=`expr $i + 1`
9896 teststring=$teststring$teststring
9897 done
9898 # Only check the string length outside the loop.
9899 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9900 teststring=
9901 # Add a significant safety factor because C++ compilers can tack on
9902 # massive amounts of additional arguments before passing them to the
9903 # linker. It appears as though 1/2 is a usable value.
9904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9905 fi
9906 ;;
9907 esac
9908 ;;
9909 esac
9910 fi
9911
9912 if test -n "$lt_cv_sys_max_cmd_len"; then
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9914 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9915 else
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9917 printf "%s\n" "none" >&6; }
9918 fi
9919 max_cmd_len=$lt_cv_sys_max_cmd_len
9920
9921
9922
9923
9924
9925
9926 : ${CP="cp -f"}
9927 : ${MV="mv -f"}
9928 : ${RM="rm -f"}
9929
9930 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9931 lt_unset=unset
9932 else
9933 lt_unset=false
9934 fi
9935
9936
9937
9938
9939
9940 # test EBCDIC or ASCII
9941 case `echo X|tr X '\101'` in
9942 A) # ASCII based system
9943 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9944 lt_SP2NL='tr \040 \012'
9945 lt_NL2SP='tr \015\012 \040\040'
9946 ;;
9947 *) # EBCDIC based system
9948 lt_SP2NL='tr \100 \n'
9949 lt_NL2SP='tr \r\n \100\100'
9950 ;;
9951 esac
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9962 printf %s "checking how to convert $build file names to $host format... " >&6; }
9963 if test ${lt_cv_to_host_file_cmd+y}
9964 then :
9965 printf %s "(cached) " >&6
9966 else case e in #(
9967 e) case $host in
9968 *-*-mingw* )
9969 case $build in
9970 *-*-mingw* | *-*-windows* ) # actually msys
9971 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9972 ;;
9973 *-*-cygwin* )
9974 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9975 ;;
9976 * ) # otherwise, assume *nix
9977 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9978 ;;
9979 esac
9980 ;;
9981 *-*-cygwin* )
9982 case $build in
9983 *-*-mingw* | *-*-windows* ) # actually msys
9984 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9985 ;;
9986 *-*-cygwin* )
9987 lt_cv_to_host_file_cmd=func_convert_file_noop
9988 ;;
9989 * ) # otherwise, assume *nix
9990 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9991 ;;
9992 esac
9993 ;;
9994 * ) # unhandled hosts (and "normal" native builds)
9995 lt_cv_to_host_file_cmd=func_convert_file_noop
9996 ;;
9997 esac
9998 ;;
9999 esac
10000 fi
10001
10002 to_host_file_cmd=$lt_cv_to_host_file_cmd
10003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10004 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
10005
10006
10007
10008
10009
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10011 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
10012 if test ${lt_cv_to_tool_file_cmd+y}
10013 then :
10014 printf %s "(cached) " >&6
10015 else case e in #(
10016 e) #assume ordinary cross tools, or native build.
10017 lt_cv_to_tool_file_cmd=func_convert_file_noop
10018 case $host in
10019 *-*-mingw* | *-*-windows* )
10020 case $build in
10021 *-*-mingw* | *-*-windows* ) # actually msys
10022 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10023 ;;
10024 esac
10025 ;;
10026 esac
10027 ;;
10028 esac
10029 fi
10030
10031 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10033 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
10034
10035
10036
10037
10038
10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10040 printf %s "checking for $LD option to reload object files... " >&6; }
10041 if test ${lt_cv_ld_reload_flag+y}
10042 then :
10043 printf %s "(cached) " >&6
10044 else case e in #(
10045 e) lt_cv_ld_reload_flag='-r' ;;
10046 esac
10047 fi
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10049 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
10050 reload_flag=$lt_cv_ld_reload_flag
10051 case $reload_flag in
10052 "" | " "*) ;;
10053 *) reload_flag=" $reload_flag" ;;
10054 esac
10055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10056 case $host_os in
10057 cygwin* | mingw* | windows* | pw32* | cegcc*)
10058 if test yes != "$GCC"; then
10059 reload_cmds=false
10060 fi
10061 ;;
10062 darwin*)
10063 if test yes = "$GCC"; then
10064 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
10065 else
10066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10067 fi
10068 ;;
10069 esac
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079 # Extract the first word of "file", so it can be a program name with args.
10080 set dummy file; ac_word=$2
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 printf %s "checking for $ac_word... " >&6; }
10083 if test ${ac_cv_prog_FILECMD+y}
10084 then :
10085 printf %s "(cached) " >&6
10086 else case e in #(
10087 e) if test -n "$FILECMD"; then
10088 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
10089 else
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10092 do
10093 IFS=$as_save_IFS
10094 case $as_dir in #(((
10095 '') as_dir=./ ;;
10096 */) ;;
10097 *) as_dir=$as_dir/ ;;
10098 esac
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10101 ac_cv_prog_FILECMD="file"
10102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10103 break 2
10104 fi
10105 done
10106 done
10107 IFS=$as_save_IFS
10108
10109 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
10110 fi ;;
10111 esac
10112 fi
10113 FILECMD=$ac_cv_prog_FILECMD
10114 if test -n "$FILECMD"; then
10115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
10116 printf "%s\n" "$FILECMD" >&6; }
10117 else
10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 printf "%s\n" "no" >&6; }
10120 fi
10121
10122
10123
10124
10125
10126
10127
10128
10129 if test -n "$ac_tool_prefix"; then
10130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10131 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133 printf %s "checking for $ac_word... " >&6; }
10134 if test ${ac_cv_prog_OBJDUMP+y}
10135 then :
10136 printf %s "(cached) " >&6
10137 else case e in #(
10138 e) if test -n "$OBJDUMP"; then
10139 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10143 do
10144 IFS=$as_save_IFS
10145 case $as_dir in #(((
10146 '') as_dir=./ ;;
10147 */) ;;
10148 *) as_dir=$as_dir/ ;;
10149 esac
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10152 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10154 break 2
10155 fi
10156 done
10157 done
10158 IFS=$as_save_IFS
10159
10160 fi ;;
10161 esac
10162 fi
10163 OBJDUMP=$ac_cv_prog_OBJDUMP
10164 if test -n "$OBJDUMP"; then
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10166 printf "%s\n" "$OBJDUMP" >&6; }
10167 else
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 printf "%s\n" "no" >&6; }
10170 fi
10171
10172
10173 fi
10174 if test -z "$ac_cv_prog_OBJDUMP"; then
10175 ac_ct_OBJDUMP=$OBJDUMP
10176 # Extract the first word of "objdump", so it can be a program name with args.
10177 set dummy objdump; ac_word=$2
10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10179 printf %s "checking for $ac_word... " >&6; }
10180 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10181 then :
10182 printf %s "(cached) " >&6
10183 else case e in #(
10184 e) if test -n "$ac_ct_OBJDUMP"; then
10185 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10186 else
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10189 do
10190 IFS=$as_save_IFS
10191 case $as_dir in #(((
10192 '') as_dir=./ ;;
10193 */) ;;
10194 *) as_dir=$as_dir/ ;;
10195 esac
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10198 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10200 break 2
10201 fi
10202 done
10203 done
10204 IFS=$as_save_IFS
10205
10206 fi ;;
10207 esac
10208 fi
10209 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10210 if test -n "$ac_ct_OBJDUMP"; then
10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10212 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10213 else
10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215 printf "%s\n" "no" >&6; }
10216 fi
10217
10218 if test "x$ac_ct_OBJDUMP" = x; then
10219 OBJDUMP="false"
10220 else
10221 case $cross_compiling:$ac_tool_warned in
10222 yes:)
10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10224 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10225 ac_tool_warned=yes ;;
10226 esac
10227 OBJDUMP=$ac_ct_OBJDUMP
10228 fi
10229 else
10230 OBJDUMP="$ac_cv_prog_OBJDUMP"
10231 fi
10232
10233 test -z "$OBJDUMP" && OBJDUMP=objdump
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10244 printf %s "checking how to recognize dependent libraries... " >&6; }
10245 if test ${lt_cv_deplibs_check_method+y}
10246 then :
10247 printf %s "(cached) " >&6
10248 else case e in #(
10249 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
10250 lt_cv_file_magic_test_file=
10251 lt_cv_deplibs_check_method='unknown'
10252 # Need to set the preceding variable on all platforms that support
10253 # interlibrary dependencies.
10254 # 'none' -- dependencies not supported.
10255 # 'unknown' -- same as none, but documents that we really don't know.
10256 # 'pass_all' -- all dependencies passed with no checks.
10257 # 'file_magic [[regex]]' -- check by looking for files in library path
10258 # that responds to the $file_magic_cmd with a given extended regex.
10259 # If you have 'file' or equivalent on your system and you're not sure
10260 # whether 'pass_all' will *always* work, you probably want this one.
10261
10262 case $host_os in
10263 aix[4-9]*)
10264 lt_cv_deplibs_check_method=pass_all
10265 ;;
10266
10267 beos*)
10268 lt_cv_deplibs_check_method=pass_all
10269 ;;
10270
10271 bsdi[45]*)
10272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10273 lt_cv_file_magic_cmd='$FILECMD -L'
10274 lt_cv_file_magic_test_file=/shlib/libc.so
10275 ;;
10276
10277 cygwin*)
10278 # func_win32_libid is a shell function defined in ltmain.sh
10279 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10280 lt_cv_file_magic_cmd='func_win32_libid'
10281 ;;
10282
10283 mingw* | windows* | pw32*)
10284 # Base MSYS/MinGW do not provide the 'file' command needed by
10285 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10286 # unless we find 'file', for example because we are cross-compiling.
10287 if ( file / ) >/dev/null 2>&1; then
10288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10289 lt_cv_file_magic_cmd='func_win32_libid'
10290 else
10291 # Keep this pattern in sync with the one in func_win32_libid.
10292 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
10293 lt_cv_file_magic_cmd='$OBJDUMP -f'
10294 fi
10295 ;;
10296
10297 cegcc*)
10298 # use the weaker test based on 'objdump'. See mingw*.
10299 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10300 lt_cv_file_magic_cmd='$OBJDUMP -f'
10301 ;;
10302
10303 darwin* | rhapsody*)
10304 lt_cv_deplibs_check_method=pass_all
10305 ;;
10306
10307 freebsd* | dragonfly* | midnightbsd*)
10308 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10309 case $host_cpu in
10310 i*86 )
10311 # Not sure whether the presence of OpenBSD here was a mistake.
10312 # Let's accept both of them until this is cleared up.
10313 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10314 lt_cv_file_magic_cmd=$FILECMD
10315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10316 ;;
10317 esac
10318 else
10319 lt_cv_deplibs_check_method=pass_all
10320 fi
10321 ;;
10322
10323 haiku*)
10324 lt_cv_deplibs_check_method=pass_all
10325 ;;
10326
10327 hpux10.20* | hpux11*)
10328 lt_cv_deplibs_check_method=pass_all
10329 ;;
10330
10331 interix[3-9]*)
10332 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10334 ;;
10335
10336 irix5* | irix6* | nonstopux*)
10337 case $LD in
10338 *-32|*"-32 ") libmagic=32-bit;;
10339 *-n32|*"-n32 ") libmagic=N32;;
10340 *-64|*"-64 ") libmagic=64-bit;;
10341 *) libmagic=never-match;;
10342 esac
10343 lt_cv_deplibs_check_method=pass_all
10344 ;;
10345
10346 # This must be glibc/ELF.
10347 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10348 lt_cv_deplibs_check_method=pass_all
10349 ;;
10350
10351 netbsd*)
10352 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10354 else
10355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10356 fi
10357 ;;
10358
10359 newos6*)
10360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10361 lt_cv_file_magic_cmd=$FILECMD
10362 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10363 ;;
10364
10365 *nto* | *qnx*)
10366 lt_cv_deplibs_check_method=pass_all
10367 ;;
10368
10369 openbsd*)
10370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10372 else
10373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10374 fi
10375 ;;
10376
10377 osf3* | osf4* | osf5*)
10378 lt_cv_deplibs_check_method=pass_all
10379 ;;
10380
10381 rdos*)
10382 lt_cv_deplibs_check_method=pass_all
10383 ;;
10384
10385 solaris*)
10386 lt_cv_deplibs_check_method=pass_all
10387 ;;
10388
10389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10390 lt_cv_deplibs_check_method=pass_all
10391 ;;
10392
10393 sysv4 | sysv4.3*)
10394 case $host_vendor in
10395 motorola)
10396 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]'
10397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10398 ;;
10399 ncr)
10400 lt_cv_deplibs_check_method=pass_all
10401 ;;
10402 sequent)
10403 lt_cv_file_magic_cmd='/bin/file'
10404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10405 ;;
10406 sni)
10407 lt_cv_file_magic_cmd='/bin/file'
10408 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10409 lt_cv_file_magic_test_file=/lib/libc.so
10410 ;;
10411 siemens)
10412 lt_cv_deplibs_check_method=pass_all
10413 ;;
10414 pc)
10415 lt_cv_deplibs_check_method=pass_all
10416 ;;
10417 esac
10418 ;;
10419
10420 tpf*)
10421 lt_cv_deplibs_check_method=pass_all
10422 ;;
10423 os2*)
10424 lt_cv_deplibs_check_method=pass_all
10425 ;;
10426 esac
10427 ;;
10428 esac
10429 fi
10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10431 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
10432
10433 file_magic_glob=
10434 want_nocaseglob=no
10435 if test "$build" = "$host"; then
10436 case $host_os in
10437 mingw* | windows* | pw32*)
10438 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10439 want_nocaseglob=yes
10440 else
10441 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10442 fi
10443 ;;
10444 esac
10445 fi
10446
10447 file_magic_cmd=$lt_cv_file_magic_cmd
10448 deplibs_check_method=$lt_cv_deplibs_check_method
10449 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472 if test -n "$ac_tool_prefix"; then
10473 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10474 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10476 printf %s "checking for $ac_word... " >&6; }
10477 if test ${ac_cv_prog_DLLTOOL+y}
10478 then :
10479 printf %s "(cached) " >&6
10480 else case e in #(
10481 e) if test -n "$DLLTOOL"; then
10482 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10483 else
10484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485 for as_dir in $PATH
10486 do
10487 IFS=$as_save_IFS
10488 case $as_dir in #(((
10489 '') as_dir=./ ;;
10490 */) ;;
10491 *) as_dir=$as_dir/ ;;
10492 esac
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10495 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10497 break 2
10498 fi
10499 done
10500 done
10501 IFS=$as_save_IFS
10502
10503 fi ;;
10504 esac
10505 fi
10506 DLLTOOL=$ac_cv_prog_DLLTOOL
10507 if test -n "$DLLTOOL"; then
10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10509 printf "%s\n" "$DLLTOOL" >&6; }
10510 else
10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 printf "%s\n" "no" >&6; }
10513 fi
10514
10515
10516 fi
10517 if test -z "$ac_cv_prog_DLLTOOL"; then
10518 ac_ct_DLLTOOL=$DLLTOOL
10519 # Extract the first word of "dlltool", so it can be a program name with args.
10520 set dummy dlltool; ac_word=$2
10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522 printf %s "checking for $ac_word... " >&6; }
10523 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10524 then :
10525 printf %s "(cached) " >&6
10526 else case e in #(
10527 e) if test -n "$ac_ct_DLLTOOL"; then
10528 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10529 else
10530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531 for as_dir in $PATH
10532 do
10533 IFS=$as_save_IFS
10534 case $as_dir in #(((
10535 '') as_dir=./ ;;
10536 */) ;;
10537 *) as_dir=$as_dir/ ;;
10538 esac
10539 for ac_exec_ext in '' $ac_executable_extensions; do
10540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10541 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10543 break 2
10544 fi
10545 done
10546 done
10547 IFS=$as_save_IFS
10548
10549 fi ;;
10550 esac
10551 fi
10552 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10553 if test -n "$ac_ct_DLLTOOL"; then
10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10555 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10556 else
10557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 printf "%s\n" "no" >&6; }
10559 fi
10560
10561 if test "x$ac_ct_DLLTOOL" = x; then
10562 DLLTOOL="false"
10563 else
10564 case $cross_compiling:$ac_tool_warned in
10565 yes:)
10566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10567 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10568 ac_tool_warned=yes ;;
10569 esac
10570 DLLTOOL=$ac_ct_DLLTOOL
10571 fi
10572 else
10573 DLLTOOL="$ac_cv_prog_DLLTOOL"
10574 fi
10575
10576 test -z "$DLLTOOL" && DLLTOOL=dlltool
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10588 printf %s "checking how to associate runtime and link libraries... " >&6; }
10589 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10590 then :
10591 printf %s "(cached) " >&6
10592 else case e in #(
10593 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
10594
10595 case $host_os in
10596 cygwin* | mingw* | windows* | pw32* | cegcc*)
10597 # two different shell functions defined in ltmain.sh;
10598 # decide which one to use based on capabilities of $DLLTOOL
10599 case `$DLLTOOL --help 2>&1` in
10600 *--identify-strict*)
10601 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10602 ;;
10603 *)
10604 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10605 ;;
10606 esac
10607 ;;
10608 *)
10609 # fallback: assume linklib IS sharedlib
10610 lt_cv_sharedlib_from_linklib_cmd=$ECHO
10611 ;;
10612 esac
10613 ;;
10614 esac
10615 fi
10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10617 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10618 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10619 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10620
10621
10622
10623
10624
10625
10626
10627 if test -n "$ac_tool_prefix"; then
10628 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10629 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 printf %s "checking for $ac_word... " >&6; }
10632 if test ${ac_cv_prog_RANLIB+y}
10633 then :
10634 printf %s "(cached) " >&6
10635 else case e in #(
10636 e) if test -n "$RANLIB"; then
10637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10638 else
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10641 do
10642 IFS=$as_save_IFS
10643 case $as_dir in #(((
10644 '') as_dir=./ ;;
10645 */) ;;
10646 *) as_dir=$as_dir/ ;;
10647 esac
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10650 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10652 break 2
10653 fi
10654 done
10655 done
10656 IFS=$as_save_IFS
10657
10658 fi ;;
10659 esac
10660 fi
10661 RANLIB=$ac_cv_prog_RANLIB
10662 if test -n "$RANLIB"; then
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10664 printf "%s\n" "$RANLIB" >&6; }
10665 else
10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 printf "%s\n" "no" >&6; }
10668 fi
10669
10670
10671 fi
10672 if test -z "$ac_cv_prog_RANLIB"; then
10673 ac_ct_RANLIB=$RANLIB
10674 # Extract the first word of "ranlib", so it can be a program name with args.
10675 set dummy ranlib; ac_word=$2
10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 printf %s "checking for $ac_word... " >&6; }
10678 if test ${ac_cv_prog_ac_ct_RANLIB+y}
10679 then :
10680 printf %s "(cached) " >&6
10681 else case e in #(
10682 e) if test -n "$ac_ct_RANLIB"; then
10683 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10684 else
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10687 do
10688 IFS=$as_save_IFS
10689 case $as_dir in #(((
10690 '') as_dir=./ ;;
10691 */) ;;
10692 *) as_dir=$as_dir/ ;;
10693 esac
10694 for ac_exec_ext in '' $ac_executable_extensions; do
10695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10696 ac_cv_prog_ac_ct_RANLIB="ranlib"
10697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10698 break 2
10699 fi
10700 done
10701 done
10702 IFS=$as_save_IFS
10703
10704 fi ;;
10705 esac
10706 fi
10707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10708 if test -n "$ac_ct_RANLIB"; then
10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10710 printf "%s\n" "$ac_ct_RANLIB" >&6; }
10711 else
10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 printf "%s\n" "no" >&6; }
10714 fi
10715
10716 if test "x$ac_ct_RANLIB" = x; then
10717 RANLIB=":"
10718 else
10719 case $cross_compiling:$ac_tool_warned in
10720 yes:)
10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10722 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10723 ac_tool_warned=yes ;;
10724 esac
10725 RANLIB=$ac_ct_RANLIB
10726 fi
10727 else
10728 RANLIB="$ac_cv_prog_RANLIB"
10729 fi
10730
10731 if test -n "$ac_tool_prefix"; then
10732 for ac_prog in ar
10733 do
10734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737 printf %s "checking for $ac_word... " >&6; }
10738 if test ${ac_cv_prog_AR+y}
10739 then :
10740 printf %s "(cached) " >&6
10741 else case e in #(
10742 e) if test -n "$AR"; then
10743 ac_cv_prog_AR="$AR" # Let the user override the test.
10744 else
10745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 for as_dir in $PATH
10747 do
10748 IFS=$as_save_IFS
10749 case $as_dir in #(((
10750 '') as_dir=./ ;;
10751 */) ;;
10752 *) as_dir=$as_dir/ ;;
10753 esac
10754 for ac_exec_ext in '' $ac_executable_extensions; do
10755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10756 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10758 break 2
10759 fi
10760 done
10761 done
10762 IFS=$as_save_IFS
10763
10764 fi ;;
10765 esac
10766 fi
10767 AR=$ac_cv_prog_AR
10768 if test -n "$AR"; then
10769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10770 printf "%s\n" "$AR" >&6; }
10771 else
10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773 printf "%s\n" "no" >&6; }
10774 fi
10775
10776
10777 test -n "$AR" && break
10778 done
10779 fi
10780 if test -z "$AR"; then
10781 ac_ct_AR=$AR
10782 for ac_prog in ar
10783 do
10784 # Extract the first word of "$ac_prog", so it can be a program name with args.
10785 set dummy $ac_prog; ac_word=$2
10786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 printf %s "checking for $ac_word... " >&6; }
10788 if test ${ac_cv_prog_ac_ct_AR+y}
10789 then :
10790 printf %s "(cached) " >&6
10791 else case e in #(
10792 e) if test -n "$ac_ct_AR"; then
10793 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10794 else
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10797 do
10798 IFS=$as_save_IFS
10799 case $as_dir in #(((
10800 '') as_dir=./ ;;
10801 */) ;;
10802 *) as_dir=$as_dir/ ;;
10803 esac
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10806 ac_cv_prog_ac_ct_AR="$ac_prog"
10807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10808 break 2
10809 fi
10810 done
10811 done
10812 IFS=$as_save_IFS
10813
10814 fi ;;
10815 esac
10816 fi
10817 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10818 if test -n "$ac_ct_AR"; then
10819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10820 printf "%s\n" "$ac_ct_AR" >&6; }
10821 else
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 printf "%s\n" "no" >&6; }
10824 fi
10825
10826
10827 test -n "$ac_ct_AR" && break
10828 done
10829
10830 if test "x$ac_ct_AR" = x; then
10831 AR="false"
10832 else
10833 case $cross_compiling:$ac_tool_warned in
10834 yes:)
10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10837 ac_tool_warned=yes ;;
10838 esac
10839 AR=$ac_ct_AR
10840 fi
10841 fi
10842
10843 : ${AR=ar}
10844
10845
10846
10847
10848
10849
10850 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
10851 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10852 # higher priority because that's what people were doing historically (setting
10853 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
10854 # variable obsoleted/removed.
10855
10856 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10857 lt_ar_flags=$AR_FLAGS
10858
10859
10860
10861
10862
10863
10864 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
10865 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10866
10867
10868
10869
10870
10871
10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10873 printf %s "checking for archiver @FILE support... " >&6; }
10874 if test ${lt_cv_ar_at_file+y}
10875 then :
10876 printf %s "(cached) " >&6
10877 else case e in #(
10878 e) lt_cv_ar_at_file=no
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10881
10882 int
10883 main (void)
10884 {
10885
10886 ;
10887 return 0;
10888 }
10889 _ACEOF
10890 if ac_fn_c_try_compile "$LINENO"
10891 then :
10892 echo conftest.$ac_objext > conftest.lst
10893 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10895 (eval $lt_ar_try) 2>&5
10896 ac_status=$?
10897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10898 test $ac_status = 0; }
10899 if test 0 -eq "$ac_status"; then
10900 # Ensure the archiver fails upon bogus file names.
10901 rm -f conftest.$ac_objext libconftest.a
10902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10903 (eval $lt_ar_try) 2>&5
10904 ac_status=$?
10905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10906 test $ac_status = 0; }
10907 if test 0 -ne "$ac_status"; then
10908 lt_cv_ar_at_file=@
10909 fi
10910 fi
10911 rm -f conftest.* libconftest.a
10912
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10915 ;;
10916 esac
10917 fi
10918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10919 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10920
10921 if test no = "$lt_cv_ar_at_file"; then
10922 archiver_list_spec=
10923 else
10924 archiver_list_spec=$lt_cv_ar_at_file
10925 fi
10926
10927
10928
10929
10930
10931
10932
10933 if test -n "$ac_tool_prefix"; then
10934 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10935 set dummy ${ac_tool_prefix}strip; ac_word=$2
10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937 printf %s "checking for $ac_word... " >&6; }
10938 if test ${ac_cv_prog_STRIP+y}
10939 then :
10940 printf %s "(cached) " >&6
10941 else case e in #(
10942 e) if test -n "$STRIP"; then
10943 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10944 else
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $PATH
10947 do
10948 IFS=$as_save_IFS
10949 case $as_dir in #(((
10950 '') as_dir=./ ;;
10951 */) ;;
10952 *) as_dir=$as_dir/ ;;
10953 esac
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10956 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10958 break 2
10959 fi
10960 done
10961 done
10962 IFS=$as_save_IFS
10963
10964 fi ;;
10965 esac
10966 fi
10967 STRIP=$ac_cv_prog_STRIP
10968 if test -n "$STRIP"; then
10969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10970 printf "%s\n" "$STRIP" >&6; }
10971 else
10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 printf "%s\n" "no" >&6; }
10974 fi
10975
10976
10977 fi
10978 if test -z "$ac_cv_prog_STRIP"; then
10979 ac_ct_STRIP=$STRIP
10980 # Extract the first word of "strip", so it can be a program name with args.
10981 set dummy strip; ac_word=$2
10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983 printf %s "checking for $ac_word... " >&6; }
10984 if test ${ac_cv_prog_ac_ct_STRIP+y}
10985 then :
10986 printf %s "(cached) " >&6
10987 else case e in #(
10988 e) if test -n "$ac_ct_STRIP"; then
10989 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10990 else
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $PATH
10993 do
10994 IFS=$as_save_IFS
10995 case $as_dir in #(((
10996 '') as_dir=./ ;;
10997 */) ;;
10998 *) as_dir=$as_dir/ ;;
10999 esac
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11002 ac_cv_prog_ac_ct_STRIP="strip"
11003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11004 break 2
11005 fi
11006 done
11007 done
11008 IFS=$as_save_IFS
11009
11010 fi ;;
11011 esac
11012 fi
11013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11014 if test -n "$ac_ct_STRIP"; then
11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11016 printf "%s\n" "$ac_ct_STRIP" >&6; }
11017 else
11018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 printf "%s\n" "no" >&6; }
11020 fi
11021
11022 if test "x$ac_ct_STRIP" = x; then
11023 STRIP=":"
11024 else
11025 case $cross_compiling:$ac_tool_warned in
11026 yes:)
11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11028 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11029 ac_tool_warned=yes ;;
11030 esac
11031 STRIP=$ac_ct_STRIP
11032 fi
11033 else
11034 STRIP="$ac_cv_prog_STRIP"
11035 fi
11036
11037 test -z "$STRIP" && STRIP=:
11038
11039
11040
11041
11042
11043
11044
11045 test -z "$RANLIB" && RANLIB=:
11046
11047
11048
11049
11050
11051
11052 # Determine commands to create old-style static archives.
11053 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11054 old_postinstall_cmds='chmod 644 $oldlib'
11055 old_postuninstall_cmds=
11056
11057 if test -n "$RANLIB"; then
11058 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11059 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11060 fi
11061
11062 case $host_os in
11063 darwin*)
11064 lock_old_archive_extraction=yes ;;
11065 *)
11066 lock_old_archive_extraction=no ;;
11067 esac
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089 for ac_prog in gawk mawk nawk awk
11090 do
11091 # Extract the first word of "$ac_prog", so it can be a program name with args.
11092 set dummy $ac_prog; ac_word=$2
11093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094 printf %s "checking for $ac_word... " >&6; }
11095 if test ${ac_cv_prog_AWK+y}
11096 then :
11097 printf %s "(cached) " >&6
11098 else case e in #(
11099 e) if test -n "$AWK"; then
11100 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11101 else
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $PATH
11104 do
11105 IFS=$as_save_IFS
11106 case $as_dir in #(((
11107 '') as_dir=./ ;;
11108 */) ;;
11109 *) as_dir=$as_dir/ ;;
11110 esac
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11113 ac_cv_prog_AWK="$ac_prog"
11114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11115 break 2
11116 fi
11117 done
11118 done
11119 IFS=$as_save_IFS
11120
11121 fi ;;
11122 esac
11123 fi
11124 AWK=$ac_cv_prog_AWK
11125 if test -n "$AWK"; then
11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11127 printf "%s\n" "$AWK" >&6; }
11128 else
11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 printf "%s\n" "no" >&6; }
11131 fi
11132
11133
11134 test -n "$AWK" && break
11135 done
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155 # If no C compiler was specified, use CC.
11156 LTCC=${LTCC-"$CC"}
11157
11158 # If no C compiler flags were specified, use CFLAGS.
11159 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11160
11161 # Allow CC to be a program name with arguments.
11162 compiler=$CC
11163
11164
11165 # Check for command to grab the raw symbol name followed by C symbol from nm.
11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11167 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
11168 if test ${lt_cv_sys_global_symbol_pipe+y}
11169 then :
11170 printf %s "(cached) " >&6
11171 else case e in #(
11172 e)
11173 # These are sane defaults that work on at least a few old systems.
11174 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11175
11176 # Character class describing NM global symbol codes.
11177 symcode='[BCDEGRST]'
11178
11179 # Regexp to match symbols that can be accessed directly from C.
11180 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11181
11182 # Define system-specific variables.
11183 case $host_os in
11184 aix*)
11185 symcode='[BCDT]'
11186 ;;
11187 cygwin* | mingw* | windows* | pw32* | cegcc*)
11188 symcode='[ABCDGISTW]'
11189 ;;
11190 hpux*)
11191 if test ia64 = "$host_cpu"; then
11192 symcode='[ABCDEGRST]'
11193 fi
11194 ;;
11195 irix* | nonstopux*)
11196 symcode='[BCDEGRST]'
11197 ;;
11198 osf*)
11199 symcode='[BCDEGQRST]'
11200 ;;
11201 solaris*)
11202 symcode='[BCDRT]'
11203 ;;
11204 sco3.2v5*)
11205 symcode='[DT]'
11206 ;;
11207 sysv4.2uw2*)
11208 symcode='[DT]'
11209 ;;
11210 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11211 symcode='[ABDT]'
11212 ;;
11213 sysv4)
11214 symcode='[DFNSTU]'
11215 ;;
11216 esac
11217
11218 # If we're using GNU nm, then use its standard symbol codes.
11219 case `$NM -V 2>&1` in
11220 *GNU* | *'with BFD'*)
11221 symcode='[ABCDGIRSTW]' ;;
11222 esac
11223
11224 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11225 # Gets list of data symbols to import.
11226 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
11227 # Adjust the below global symbol transforms to fixup imported variables.
11228 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
11229 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
11230 lt_c_name_lib_hook="\
11231 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
11232 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
11233 else
11234 # Disable hooks by default.
11235 lt_cv_sys_global_symbol_to_import=
11236 lt_cdecl_hook=
11237 lt_c_name_hook=
11238 lt_c_name_lib_hook=
11239 fi
11240
11241 # Transform an extracted symbol line into a proper C declaration.
11242 # Some systems (esp. on ia64) link data and code symbols differently,
11243 # so use this general approach.
11244 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
11245 $lt_cdecl_hook\
11246 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
11247 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
11248
11249 # Transform an extracted symbol line into symbol name and symbol address
11250 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
11251 $lt_c_name_hook\
11252 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11253 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
11254
11255 # Transform an extracted symbol line into symbol name with lib prefix and
11256 # symbol address.
11257 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
11258 $lt_c_name_lib_hook\
11259 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11260 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
11261 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
11262
11263 # Handle CRLF in mingw tool chain
11264 opt_cr=
11265 case $build_os in
11266 mingw* | windows*)
11267 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11268 ;;
11269 esac
11270
11271 # Try without a prefix underscore, then with it.
11272 for ac_symprfx in "" "_"; do
11273
11274 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11275 symxfrm="\\1 $ac_symprfx\\2 \\2"
11276
11277 # Write the raw and C identifiers.
11278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11279 # Fake it for dumpbin and say T for any non-static function,
11280 # D for any global variable and I for any imported variable.
11281 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
11282 # which start with @ or ?.
11283 lt_cv_sys_global_symbol_pipe="$AWK '"\
11284 " {last_section=section; section=\$ 3};"\
11285 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11286 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11287 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11288 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11289 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11290 " \$ 0!~/External *\|/{next};"\
11291 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11292 " {if(hide[section]) next};"\
11293 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11294 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11295 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11296 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11297 " ' prfx=^$ac_symprfx"
11298 else
11299 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11300 fi
11301 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
11302
11303 # Check to see that the pipe works correctly.
11304 pipe_works=no
11305
11306 rm -f conftest*
11307 cat > conftest.$ac_ext <<_LT_EOF
11308 #ifdef __cplusplus
11309 extern "C" {
11310 #endif
11311 char nm_test_var;
11312 void nm_test_func(void);
11313 void nm_test_func(void){}
11314 #ifdef __cplusplus
11315 }
11316 #endif
11317 int main(void){nm_test_var='a';nm_test_func();return(0);}
11318 _LT_EOF
11319
11320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11321 (eval $ac_compile) 2>&5
11322 ac_status=$?
11323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11324 test $ac_status = 0; }; then
11325 # Now try to grab the symbols.
11326 nlist=conftest.nm
11327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11328 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11329 ac_status=$?
11330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11331 test $ac_status = 0; } && test -s "$nlist"; then
11332 # Try sorting and uniquifying the output.
11333 if sort "$nlist" | uniq > "$nlist"T; then
11334 mv -f "$nlist"T "$nlist"
11335 else
11336 rm -f "$nlist"T
11337 fi
11338
11339 # Make sure that we snagged all the symbols we need.
11340 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11341 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11342 cat <<_LT_EOF > conftest.$ac_ext
11343 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11344 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11345 /* DATA imports from DLLs on WIN32 can't be const, because runtime
11346 relocations are performed -- see ld's documentation on pseudo-relocs. */
11347 # define LT_DLSYM_CONST
11348 #elif defined __osf__
11349 /* This system does not cope well with relocations in const data. */
11350 # define LT_DLSYM_CONST
11351 #else
11352 # define LT_DLSYM_CONST const
11353 #endif
11354
11355 #ifdef __cplusplus
11356 extern "C" {
11357 #endif
11358
11359 _LT_EOF
11360 # Now generate the symbol file.
11361 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11362
11363 cat <<_LT_EOF >> conftest.$ac_ext
11364
11365 /* The mapping between symbol names and symbols. */
11366 LT_DLSYM_CONST struct {
11367 const char *name;
11368 void *address;
11369 }
11370 lt__PROGRAM__LTX_preloaded_symbols[] =
11371 {
11372 { "@PROGRAM@", (void *) 0 },
11373 _LT_EOF
11374 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11375 cat <<\_LT_EOF >> conftest.$ac_ext
11376 {0, (void *) 0}
11377 };
11378
11379 /* This works around a problem in FreeBSD linker */
11380 #ifdef FREEBSD_WORKAROUND
11381 static const void *lt_preloaded_setup() {
11382 return lt__PROGRAM__LTX_preloaded_symbols;
11383 }
11384 #endif
11385
11386 #ifdef __cplusplus
11387 }
11388 #endif
11389 _LT_EOF
11390 # Now try linking the two files.
11391 mv conftest.$ac_objext conftstm.$ac_objext
11392 lt_globsym_save_LIBS=$LIBS
11393 lt_globsym_save_CFLAGS=$CFLAGS
11394 LIBS=conftstm.$ac_objext
11395 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11397 (eval $ac_link) 2>&5
11398 ac_status=$?
11399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11400 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11401 pipe_works=yes
11402 fi
11403 LIBS=$lt_globsym_save_LIBS
11404 CFLAGS=$lt_globsym_save_CFLAGS
11405 else
11406 echo "cannot find nm_test_func in $nlist" >&5
11407 fi
11408 else
11409 echo "cannot find nm_test_var in $nlist" >&5
11410 fi
11411 else
11412 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11413 fi
11414 else
11415 echo "$progname: failed program was:" >&5
11416 cat conftest.$ac_ext >&5
11417 fi
11418 rm -rf conftest* conftst*
11419
11420 # Do not use the global_symbol_pipe unless it works.
11421 if test yes = "$pipe_works"; then
11422 break
11423 else
11424 lt_cv_sys_global_symbol_pipe=
11425 fi
11426 done
11427 ;;
11428 esac
11429 fi
11430
11431 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11432 lt_cv_sys_global_symbol_to_cdecl=
11433 fi
11434 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11436 printf "%s\n" "failed" >&6; }
11437 else
11438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11439 printf "%s\n" "ok" >&6; }
11440 fi
11441
11442 # Response file support.
11443 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11444 nm_file_list_spec='@'
11445 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11446 nm_file_list_spec='@'
11447 fi
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11486 printf %s "checking for sysroot... " >&6; }
11487
11488 # Check whether --with-sysroot was given.
11489 if test ${with_sysroot+y}
11490 then :
11491 withval=$with_sysroot;
11492 else case e in #(
11493 e) with_sysroot=no ;;
11494 esac
11495 fi
11496
11497
11498 lt_sysroot=
11499 case $with_sysroot in #(
11500 yes)
11501 if test yes = "$GCC"; then
11502 # Trim trailing / since we'll always append absolute paths and we want
11503 # to avoid //, if only for less confusing output for the user.
11504 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
11505 fi
11506 ;; #(
11507 /*)
11508 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
11509 ;; #(
11510 no|'')
11511 ;; #(
11512 *)
11513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11514 printf "%s\n" "$with_sysroot" >&6; }
11515 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11516 ;;
11517 esac
11518
11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11520 printf "%s\n" "${lt_sysroot:-no}" >&6; }
11521
11522
11523
11524
11525
11526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11527 printf %s "checking for a working dd... " >&6; }
11528 if test ${ac_cv_path_lt_DD+y}
11529 then :
11530 printf %s "(cached) " >&6
11531 else case e in #(
11532 e) printf 0123456789abcdef0123456789abcdef >conftest.i
11533 cat conftest.i conftest.i >conftest2.i
11534 : ${lt_DD:=$DD}
11535 if test -z "$lt_DD"; then
11536 ac_path_lt_DD_found=false
11537 # Loop through the user's path and test for each of PROGNAME-LIST
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11540 do
11541 IFS=$as_save_IFS
11542 case $as_dir in #(((
11543 '') as_dir=./ ;;
11544 */) ;;
11545 *) as_dir=$as_dir/ ;;
11546 esac
11547 for ac_prog in dd
11548 do
11549 for ac_exec_ext in '' $ac_executable_extensions; do
11550 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
11551 as_fn_executable_p "$ac_path_lt_DD" || continue
11552 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11553 cmp -s conftest.i conftest.out \
11554 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11555 fi
11556 $ac_path_lt_DD_found && break 3
11557 done
11558 done
11559 done
11560 IFS=$as_save_IFS
11561 if test -z "$ac_cv_path_lt_DD"; then
11562 :
11563 fi
11564 else
11565 ac_cv_path_lt_DD=$lt_DD
11566 fi
11567
11568 rm -f conftest.i conftest2.i conftest.out ;;
11569 esac
11570 fi
11571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11572 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11573
11574
11575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11576 printf %s "checking how to truncate binary pipes... " >&6; }
11577 if test ${lt_cv_truncate_bin+y}
11578 then :
11579 printf %s "(cached) " >&6
11580 else case e in #(
11581 e) printf 0123456789abcdef0123456789abcdef >conftest.i
11582 cat conftest.i conftest.i >conftest2.i
11583 lt_cv_truncate_bin=
11584 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11585 cmp -s conftest.i conftest.out \
11586 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11587 fi
11588 rm -f conftest.i conftest2.i conftest.out
11589 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
11590 esac
11591 fi
11592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11593 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11594
11595
11596
11597
11598
11599
11600
11601 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
11602 func_cc_basename ()
11603 {
11604 for cc_temp in $*""; do
11605 case $cc_temp in
11606 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11607 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11608 \-*) ;;
11609 *) break;;
11610 esac
11611 done
11612 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11613 }
11614
11615 # Check whether --enable-libtool-lock was given.
11616 if test ${enable_libtool_lock+y}
11617 then :
11618 enableval=$enable_libtool_lock;
11619 fi
11620
11621 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11622
11623 # Some flags need to be propagated to the compiler or linker for good
11624 # libtool support.
11625 case $host in
11626 ia64-*-hpux*)
11627 # Find out what ABI is being produced by ac_compile, and set mode
11628 # options accordingly.
11629 echo 'int i;' > conftest.$ac_ext
11630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11631 (eval $ac_compile) 2>&5
11632 ac_status=$?
11633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11634 test $ac_status = 0; }; then
11635 case `$FILECMD conftest.$ac_objext` in
11636 *ELF-32*)
11637 HPUX_IA64_MODE=32
11638 ;;
11639 *ELF-64*)
11640 HPUX_IA64_MODE=64
11641 ;;
11642 esac
11643 fi
11644 rm -rf conftest*
11645 ;;
11646 *-*-irix6*)
11647 # Find out what ABI is being produced by ac_compile, and set linker
11648 # options accordingly.
11649 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11651 (eval $ac_compile) 2>&5
11652 ac_status=$?
11653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11654 test $ac_status = 0; }; then
11655 if test yes = "$lt_cv_prog_gnu_ld"; then
11656 case `$FILECMD conftest.$ac_objext` in
11657 *32-bit*)
11658 LD="${LD-ld} -melf32bsmip"
11659 ;;
11660 *N32*)
11661 LD="${LD-ld} -melf32bmipn32"
11662 ;;
11663 *64-bit*)
11664 LD="${LD-ld} -melf64bmip"
11665 ;;
11666 esac
11667 else
11668 case `$FILECMD conftest.$ac_objext` in
11669 *32-bit*)
11670 LD="${LD-ld} -32"
11671 ;;
11672 *N32*)
11673 LD="${LD-ld} -n32"
11674 ;;
11675 *64-bit*)
11676 LD="${LD-ld} -64"
11677 ;;
11678 esac
11679 fi
11680 fi
11681 rm -rf conftest*
11682 ;;
11683
11684 mips64*-*linux*)
11685 # Find out what ABI is being produced by ac_compile, and set linker
11686 # options accordingly.
11687 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11689 (eval $ac_compile) 2>&5
11690 ac_status=$?
11691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11692 test $ac_status = 0; }; then
11693 emul=elf
11694 case `$FILECMD conftest.$ac_objext` in
11695 *32-bit*)
11696 emul="${emul}32"
11697 ;;
11698 *64-bit*)
11699 emul="${emul}64"
11700 ;;
11701 esac
11702 case `$FILECMD conftest.$ac_objext` in
11703 *MSB*)
11704 emul="${emul}btsmip"
11705 ;;
11706 *LSB*)
11707 emul="${emul}ltsmip"
11708 ;;
11709 esac
11710 case `$FILECMD conftest.$ac_objext` in
11711 *N32*)
11712 emul="${emul}n32"
11713 ;;
11714 esac
11715 LD="${LD-ld} -m $emul"
11716 fi
11717 rm -rf conftest*
11718 ;;
11719
11720 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11721 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
11722 # Find out what ABI is being produced by ac_compile, and set linker
11723 # options accordingly. Note that the listed cases only cover the
11724 # situations where additional linker options are needed (such as when
11725 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11726 # vice versa); the common cases where no linker options are needed do
11727 # not appear in the list.
11728 echo 'int i;' > conftest.$ac_ext
11729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11730 (eval $ac_compile) 2>&5
11731 ac_status=$?
11732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11733 test $ac_status = 0; }; then
11734 case `$FILECMD conftest.o` in
11735 *32-bit*)
11736 case $host in
11737 x86_64-*kfreebsd*-gnu)
11738 LD="${LD-ld} -m elf_i386_fbsd"
11739 ;;
11740 x86_64-*linux*|x86_64-gnu*)
11741 case `$FILECMD conftest.o` in
11742 *x86-64*)
11743 LD="${LD-ld} -m elf32_x86_64"
11744 ;;
11745 *)
11746 LD="${LD-ld} -m elf_i386"
11747 ;;
11748 esac
11749 ;;
11750 powerpc64le-*linux*)
11751 LD="${LD-ld} -m elf32lppclinux"
11752 ;;
11753 powerpc64-*linux*)
11754 LD="${LD-ld} -m elf32ppclinux"
11755 ;;
11756 s390x-*linux*)
11757 LD="${LD-ld} -m elf_s390"
11758 ;;
11759 sparc64-*linux*)
11760 LD="${LD-ld} -m elf32_sparc"
11761 ;;
11762 esac
11763 ;;
11764 *64-bit*)
11765 case $host in
11766 x86_64-*kfreebsd*-gnu)
11767 LD="${LD-ld} -m elf_x86_64_fbsd"
11768 ;;
11769 x86_64-*linux*|x86_64-gnu*)
11770 LD="${LD-ld} -m elf_x86_64"
11771 ;;
11772 powerpcle-*linux*)
11773 LD="${LD-ld} -m elf64lppc"
11774 ;;
11775 powerpc-*linux*)
11776 LD="${LD-ld} -m elf64ppc"
11777 ;;
11778 s390*-*linux*|s390*-*tpf*)
11779 LD="${LD-ld} -m elf64_s390"
11780 ;;
11781 sparc*-*linux*)
11782 LD="${LD-ld} -m elf64_sparc"
11783 ;;
11784 esac
11785 ;;
11786 esac
11787 fi
11788 rm -rf conftest*
11789 ;;
11790
11791 *-*-sco3.2v5*)
11792 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11793 SAVE_CFLAGS=$CFLAGS
11794 CFLAGS="$CFLAGS -belf"
11795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11796 printf %s "checking whether the C compiler needs -belf... " >&6; }
11797 if test ${lt_cv_cc_needs_belf+y}
11798 then :
11799 printf %s "(cached) " >&6
11800 else case e in #(
11801 e) ac_ext=c
11802 ac_cpp='$CPP $CPPFLAGS'
11803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11806
11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11809
11810 int
11811 main (void)
11812 {
11813
11814 ;
11815 return 0;
11816 }
11817 _ACEOF
11818 if ac_fn_c_try_link "$LINENO"
11819 then :
11820 lt_cv_cc_needs_belf=yes
11821 else case e in #(
11822 e) lt_cv_cc_needs_belf=no ;;
11823 esac
11824 fi
11825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11826 conftest$ac_exeext conftest.$ac_ext
11827 ac_ext=c
11828 ac_cpp='$CPP $CPPFLAGS'
11829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11832 ;;
11833 esac
11834 fi
11835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11836 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11837 if test yes != "$lt_cv_cc_needs_belf"; then
11838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11839 CFLAGS=$SAVE_CFLAGS
11840 fi
11841 ;;
11842 *-*solaris*)
11843 # Find out what ABI is being produced by ac_compile, and set linker
11844 # options accordingly.
11845 echo 'int i;' > conftest.$ac_ext
11846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11847 (eval $ac_compile) 2>&5
11848 ac_status=$?
11849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11850 test $ac_status = 0; }; then
11851 case `$FILECMD conftest.o` in
11852 *64-bit*)
11853 case $lt_cv_prog_gnu_ld in
11854 yes*)
11855 case $host in
11856 i?86-*-solaris*|x86_64-*-solaris*)
11857 LD="${LD-ld} -m elf_x86_64"
11858 ;;
11859 sparc*-*-solaris*)
11860 LD="${LD-ld} -m elf64_sparc"
11861 ;;
11862 esac
11863 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11864 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11865 LD=${LD-ld}_sol2
11866 fi
11867 ;;
11868 *)
11869 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11870 LD="${LD-ld} -64"
11871 fi
11872 ;;
11873 esac
11874 ;;
11875 esac
11876 fi
11877 rm -rf conftest*
11878 ;;
11879 esac
11880
11881 need_locks=$enable_libtool_lock
11882
11883 if test -n "$ac_tool_prefix"; then
11884 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11885 set dummy ${ac_tool_prefix}mt; ac_word=$2
11886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887 printf %s "checking for $ac_word... " >&6; }
11888 if test ${ac_cv_prog_MANIFEST_TOOL+y}
11889 then :
11890 printf %s "(cached) " >&6
11891 else case e in #(
11892 e) if test -n "$MANIFEST_TOOL"; then
11893 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11894 else
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11897 do
11898 IFS=$as_save_IFS
11899 case $as_dir in #(((
11900 '') as_dir=./ ;;
11901 */) ;;
11902 *) as_dir=$as_dir/ ;;
11903 esac
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11906 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11908 break 2
11909 fi
11910 done
11911 done
11912 IFS=$as_save_IFS
11913
11914 fi ;;
11915 esac
11916 fi
11917 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11918 if test -n "$MANIFEST_TOOL"; then
11919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11920 printf "%s\n" "$MANIFEST_TOOL" >&6; }
11921 else
11922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 printf "%s\n" "no" >&6; }
11924 fi
11925
11926
11927 fi
11928 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11929 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11930 # Extract the first word of "mt", so it can be a program name with args.
11931 set dummy mt; ac_word=$2
11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933 printf %s "checking for $ac_word... " >&6; }
11934 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11935 then :
11936 printf %s "(cached) " >&6
11937 else case e in #(
11938 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
11939 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11940 else
11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in $PATH
11943 do
11944 IFS=$as_save_IFS
11945 case $as_dir in #(((
11946 '') as_dir=./ ;;
11947 */) ;;
11948 *) as_dir=$as_dir/ ;;
11949 esac
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11952 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11954 break 2
11955 fi
11956 done
11957 done
11958 IFS=$as_save_IFS
11959
11960 fi ;;
11961 esac
11962 fi
11963 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11964 if test -n "$ac_ct_MANIFEST_TOOL"; then
11965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11966 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11967 else
11968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 printf "%s\n" "no" >&6; }
11970 fi
11971
11972 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11973 MANIFEST_TOOL=":"
11974 else
11975 case $cross_compiling:$ac_tool_warned in
11976 yes:)
11977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11978 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11979 ac_tool_warned=yes ;;
11980 esac
11981 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11982 fi
11983 else
11984 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11985 fi
11986
11987 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11989 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11990 if test ${lt_cv_path_manifest_tool+y}
11991 then :
11992 printf %s "(cached) " >&6
11993 else case e in #(
11994 e) lt_cv_path_manifest_tool=no
11995 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11996 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11997 cat conftest.err >&5
11998 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11999 lt_cv_path_manifest_tool=yes
12000 fi
12001 rm -f conftest* ;;
12002 esac
12003 fi
12004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
12005 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
12006 if test yes != "$lt_cv_path_manifest_tool"; then
12007 MANIFEST_TOOL=:
12008 fi
12009
12010
12011
12012
12013
12014
12015 case $host_os in
12016 rhapsody* | darwin*)
12017 if test -n "$ac_tool_prefix"; then
12018 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12019 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021 printf %s "checking for $ac_word... " >&6; }
12022 if test ${ac_cv_prog_DSYMUTIL+y}
12023 then :
12024 printf %s "(cached) " >&6
12025 else case e in #(
12026 e) if test -n "$DSYMUTIL"; then
12027 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12028 else
12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12031 do
12032 IFS=$as_save_IFS
12033 case $as_dir in #(((
12034 '') as_dir=./ ;;
12035 */) ;;
12036 *) as_dir=$as_dir/ ;;
12037 esac
12038 for ac_exec_ext in '' $ac_executable_extensions; do
12039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12040 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12042 break 2
12043 fi
12044 done
12045 done
12046 IFS=$as_save_IFS
12047
12048 fi ;;
12049 esac
12050 fi
12051 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12052 if test -n "$DSYMUTIL"; then
12053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12054 printf "%s\n" "$DSYMUTIL" >&6; }
12055 else
12056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 printf "%s\n" "no" >&6; }
12058 fi
12059
12060
12061 fi
12062 if test -z "$ac_cv_prog_DSYMUTIL"; then
12063 ac_ct_DSYMUTIL=$DSYMUTIL
12064 # Extract the first word of "dsymutil", so it can be a program name with args.
12065 set dummy dsymutil; ac_word=$2
12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12067 printf %s "checking for $ac_word... " >&6; }
12068 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
12069 then :
12070 printf %s "(cached) " >&6
12071 else case e in #(
12072 e) if test -n "$ac_ct_DSYMUTIL"; then
12073 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12074 else
12075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in $PATH
12077 do
12078 IFS=$as_save_IFS
12079 case $as_dir in #(((
12080 '') as_dir=./ ;;
12081 */) ;;
12082 *) as_dir=$as_dir/ ;;
12083 esac
12084 for ac_exec_ext in '' $ac_executable_extensions; do
12085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12086 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12088 break 2
12089 fi
12090 done
12091 done
12092 IFS=$as_save_IFS
12093
12094 fi ;;
12095 esac
12096 fi
12097 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12098 if test -n "$ac_ct_DSYMUTIL"; then
12099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12100 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
12101 else
12102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 printf "%s\n" "no" >&6; }
12104 fi
12105
12106 if test "x$ac_ct_DSYMUTIL" = x; then
12107 DSYMUTIL=":"
12108 else
12109 case $cross_compiling:$ac_tool_warned in
12110 yes:)
12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12112 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12113 ac_tool_warned=yes ;;
12114 esac
12115 DSYMUTIL=$ac_ct_DSYMUTIL
12116 fi
12117 else
12118 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12119 fi
12120
12121 if test -n "$ac_tool_prefix"; then
12122 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12123 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 printf %s "checking for $ac_word... " >&6; }
12126 if test ${ac_cv_prog_NMEDIT+y}
12127 then :
12128 printf %s "(cached) " >&6
12129 else case e in #(
12130 e) if test -n "$NMEDIT"; then
12131 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12132 else
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12135 do
12136 IFS=$as_save_IFS
12137 case $as_dir in #(((
12138 '') as_dir=./ ;;
12139 */) ;;
12140 *) as_dir=$as_dir/ ;;
12141 esac
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12144 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12146 break 2
12147 fi
12148 done
12149 done
12150 IFS=$as_save_IFS
12151
12152 fi ;;
12153 esac
12154 fi
12155 NMEDIT=$ac_cv_prog_NMEDIT
12156 if test -n "$NMEDIT"; then
12157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12158 printf "%s\n" "$NMEDIT" >&6; }
12159 else
12160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 printf "%s\n" "no" >&6; }
12162 fi
12163
12164
12165 fi
12166 if test -z "$ac_cv_prog_NMEDIT"; then
12167 ac_ct_NMEDIT=$NMEDIT
12168 # Extract the first word of "nmedit", so it can be a program name with args.
12169 set dummy nmedit; ac_word=$2
12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 printf %s "checking for $ac_word... " >&6; }
12172 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
12173 then :
12174 printf %s "(cached) " >&6
12175 else case e in #(
12176 e) if test -n "$ac_ct_NMEDIT"; then
12177 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12178 else
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12181 do
12182 IFS=$as_save_IFS
12183 case $as_dir in #(((
12184 '') as_dir=./ ;;
12185 */) ;;
12186 *) as_dir=$as_dir/ ;;
12187 esac
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12192 break 2
12193 fi
12194 done
12195 done
12196 IFS=$as_save_IFS
12197
12198 fi ;;
12199 esac
12200 fi
12201 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12202 if test -n "$ac_ct_NMEDIT"; then
12203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12204 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
12205 else
12206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 printf "%s\n" "no" >&6; }
12208 fi
12209
12210 if test "x$ac_ct_NMEDIT" = x; then
12211 NMEDIT=":"
12212 else
12213 case $cross_compiling:$ac_tool_warned in
12214 yes:)
12215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12216 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12217 ac_tool_warned=yes ;;
12218 esac
12219 NMEDIT=$ac_ct_NMEDIT
12220 fi
12221 else
12222 NMEDIT="$ac_cv_prog_NMEDIT"
12223 fi
12224
12225 if test -n "$ac_tool_prefix"; then
12226 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12227 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 printf %s "checking for $ac_word... " >&6; }
12230 if test ${ac_cv_prog_LIPO+y}
12231 then :
12232 printf %s "(cached) " >&6
12233 else case e in #(
12234 e) if test -n "$LIPO"; then
12235 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12236 else
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $PATH
12239 do
12240 IFS=$as_save_IFS
12241 case $as_dir in #(((
12242 '') as_dir=./ ;;
12243 */) ;;
12244 *) as_dir=$as_dir/ ;;
12245 esac
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12248 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12250 break 2
12251 fi
12252 done
12253 done
12254 IFS=$as_save_IFS
12255
12256 fi ;;
12257 esac
12258 fi
12259 LIPO=$ac_cv_prog_LIPO
12260 if test -n "$LIPO"; then
12261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12262 printf "%s\n" "$LIPO" >&6; }
12263 else
12264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 printf "%s\n" "no" >&6; }
12266 fi
12267
12268
12269 fi
12270 if test -z "$ac_cv_prog_LIPO"; then
12271 ac_ct_LIPO=$LIPO
12272 # Extract the first word of "lipo", so it can be a program name with args.
12273 set dummy lipo; ac_word=$2
12274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 printf %s "checking for $ac_word... " >&6; }
12276 if test ${ac_cv_prog_ac_ct_LIPO+y}
12277 then :
12278 printf %s "(cached) " >&6
12279 else case e in #(
12280 e) if test -n "$ac_ct_LIPO"; then
12281 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12282 else
12283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284 for as_dir in $PATH
12285 do
12286 IFS=$as_save_IFS
12287 case $as_dir in #(((
12288 '') as_dir=./ ;;
12289 */) ;;
12290 *) as_dir=$as_dir/ ;;
12291 esac
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12294 ac_cv_prog_ac_ct_LIPO="lipo"
12295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12296 break 2
12297 fi
12298 done
12299 done
12300 IFS=$as_save_IFS
12301
12302 fi ;;
12303 esac
12304 fi
12305 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12306 if test -n "$ac_ct_LIPO"; then
12307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12308 printf "%s\n" "$ac_ct_LIPO" >&6; }
12309 else
12310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 printf "%s\n" "no" >&6; }
12312 fi
12313
12314 if test "x$ac_ct_LIPO" = x; then
12315 LIPO=":"
12316 else
12317 case $cross_compiling:$ac_tool_warned in
12318 yes:)
12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12320 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12321 ac_tool_warned=yes ;;
12322 esac
12323 LIPO=$ac_ct_LIPO
12324 fi
12325 else
12326 LIPO="$ac_cv_prog_LIPO"
12327 fi
12328
12329 if test -n "$ac_tool_prefix"; then
12330 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12331 set dummy ${ac_tool_prefix}otool; ac_word=$2
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 printf %s "checking for $ac_word... " >&6; }
12334 if test ${ac_cv_prog_OTOOL+y}
12335 then :
12336 printf %s "(cached) " >&6
12337 else case e in #(
12338 e) if test -n "$OTOOL"; then
12339 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12340 else
12341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12342 for as_dir in $PATH
12343 do
12344 IFS=$as_save_IFS
12345 case $as_dir in #(((
12346 '') as_dir=./ ;;
12347 */) ;;
12348 *) as_dir=$as_dir/ ;;
12349 esac
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12352 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12354 break 2
12355 fi
12356 done
12357 done
12358 IFS=$as_save_IFS
12359
12360 fi ;;
12361 esac
12362 fi
12363 OTOOL=$ac_cv_prog_OTOOL
12364 if test -n "$OTOOL"; then
12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12366 printf "%s\n" "$OTOOL" >&6; }
12367 else
12368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 printf "%s\n" "no" >&6; }
12370 fi
12371
12372
12373 fi
12374 if test -z "$ac_cv_prog_OTOOL"; then
12375 ac_ct_OTOOL=$OTOOL
12376 # Extract the first word of "otool", so it can be a program name with args.
12377 set dummy otool; ac_word=$2
12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 printf %s "checking for $ac_word... " >&6; }
12380 if test ${ac_cv_prog_ac_ct_OTOOL+y}
12381 then :
12382 printf %s "(cached) " >&6
12383 else case e in #(
12384 e) if test -n "$ac_ct_OTOOL"; then
12385 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12386 else
12387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in $PATH
12389 do
12390 IFS=$as_save_IFS
12391 case $as_dir in #(((
12392 '') as_dir=./ ;;
12393 */) ;;
12394 *) as_dir=$as_dir/ ;;
12395 esac
12396 for ac_exec_ext in '' $ac_executable_extensions; do
12397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12398 ac_cv_prog_ac_ct_OTOOL="otool"
12399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12400 break 2
12401 fi
12402 done
12403 done
12404 IFS=$as_save_IFS
12405
12406 fi ;;
12407 esac
12408 fi
12409 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12410 if test -n "$ac_ct_OTOOL"; then
12411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12412 printf "%s\n" "$ac_ct_OTOOL" >&6; }
12413 else
12414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 printf "%s\n" "no" >&6; }
12416 fi
12417
12418 if test "x$ac_ct_OTOOL" = x; then
12419 OTOOL=":"
12420 else
12421 case $cross_compiling:$ac_tool_warned in
12422 yes:)
12423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12424 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12425 ac_tool_warned=yes ;;
12426 esac
12427 OTOOL=$ac_ct_OTOOL
12428 fi
12429 else
12430 OTOOL="$ac_cv_prog_OTOOL"
12431 fi
12432
12433 if test -n "$ac_tool_prefix"; then
12434 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12435 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 printf %s "checking for $ac_word... " >&6; }
12438 if test ${ac_cv_prog_OTOOL64+y}
12439 then :
12440 printf %s "(cached) " >&6
12441 else case e in #(
12442 e) if test -n "$OTOOL64"; then
12443 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12444 else
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $PATH
12447 do
12448 IFS=$as_save_IFS
12449 case $as_dir in #(((
12450 '') as_dir=./ ;;
12451 */) ;;
12452 *) as_dir=$as_dir/ ;;
12453 esac
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12456 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12458 break 2
12459 fi
12460 done
12461 done
12462 IFS=$as_save_IFS
12463
12464 fi ;;
12465 esac
12466 fi
12467 OTOOL64=$ac_cv_prog_OTOOL64
12468 if test -n "$OTOOL64"; then
12469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12470 printf "%s\n" "$OTOOL64" >&6; }
12471 else
12472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 printf "%s\n" "no" >&6; }
12474 fi
12475
12476
12477 fi
12478 if test -z "$ac_cv_prog_OTOOL64"; then
12479 ac_ct_OTOOL64=$OTOOL64
12480 # Extract the first word of "otool64", so it can be a program name with args.
12481 set dummy otool64; ac_word=$2
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 printf %s "checking for $ac_word... " >&6; }
12484 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
12485 then :
12486 printf %s "(cached) " >&6
12487 else case e in #(
12488 e) if test -n "$ac_ct_OTOOL64"; then
12489 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12490 else
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12493 do
12494 IFS=$as_save_IFS
12495 case $as_dir in #(((
12496 '') as_dir=./ ;;
12497 */) ;;
12498 *) as_dir=$as_dir/ ;;
12499 esac
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_ac_ct_OTOOL64="otool64"
12503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12504 break 2
12505 fi
12506 done
12507 done
12508 IFS=$as_save_IFS
12509
12510 fi ;;
12511 esac
12512 fi
12513 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12514 if test -n "$ac_ct_OTOOL64"; then
12515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12516 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
12517 else
12518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 printf "%s\n" "no" >&6; }
12520 fi
12521
12522 if test "x$ac_ct_OTOOL64" = x; then
12523 OTOOL64=":"
12524 else
12525 case $cross_compiling:$ac_tool_warned in
12526 yes:)
12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12528 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12529 ac_tool_warned=yes ;;
12530 esac
12531 OTOOL64=$ac_ct_OTOOL64
12532 fi
12533 else
12534 OTOOL64="$ac_cv_prog_OTOOL64"
12535 fi
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12564 printf %s "checking for -single_module linker flag... " >&6; }
12565 if test ${lt_cv_apple_cc_single_mod+y}
12566 then :
12567 printf %s "(cached) " >&6
12568 else case e in #(
12569 e) lt_cv_apple_cc_single_mod=no
12570 if test -z "$LT_MULTI_MODULE"; then
12571 # By default we will add the -single_module flag. You can override
12572 # by either setting the environment variable LT_MULTI_MODULE
12573 # non-empty at configure time, or by adding -multi_module to the
12574 # link flags.
12575 rm -rf libconftest.dylib*
12576 echo "int foo(void){return 1;}" > conftest.c
12577 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12578 -dynamiclib -Wl,-single_module conftest.c" >&5
12579 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12580 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12581 _lt_result=$?
12582 # If there is a non-empty error log, and "single_module"
12583 # appears in it, assume the flag caused a linker warning
12584 if test -s conftest.err && $GREP single_module conftest.err; then
12585 cat conftest.err >&5
12586 # Otherwise, if the output was created with a 0 exit code from
12587 # the compiler, it worked.
12588 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12589 lt_cv_apple_cc_single_mod=yes
12590 else
12591 cat conftest.err >&5
12592 fi
12593 rm -rf libconftest.dylib*
12594 rm -f conftest.*
12595 fi ;;
12596 esac
12597 fi
12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12599 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12600
12601 # Feature test to disable chained fixups since it is not
12602 # compatible with '-undefined dynamic_lookup'
12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
12604 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
12605 if test ${lt_cv_support_no_fixup_chains+y}
12606 then :
12607 printf %s "(cached) " >&6
12608 else case e in #(
12609 e) save_LDFLAGS=$LDFLAGS
12610 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12613
12614 int
12615 main (void)
12616 {
12617
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 if ac_fn_c_try_link "$LINENO"
12623 then :
12624 lt_cv_support_no_fixup_chains=yes
12625 else case e in #(
12626 e) lt_cv_support_no_fixup_chains=no
12627 ;;
12628 esac
12629 fi
12630 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12631 conftest$ac_exeext conftest.$ac_ext
12632 LDFLAGS=$save_LDFLAGS
12633
12634 ;;
12635 esac
12636 fi
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
12638 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
12639
12640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12641 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12642 if test ${lt_cv_ld_exported_symbols_list+y}
12643 then :
12644 printf %s "(cached) " >&6
12645 else case e in #(
12646 e) lt_cv_ld_exported_symbols_list=no
12647 save_LDFLAGS=$LDFLAGS
12648 echo "_main" > conftest.sym
12649 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652
12653 int
12654 main (void)
12655 {
12656
12657 ;
12658 return 0;
12659 }
12660 _ACEOF
12661 if ac_fn_c_try_link "$LINENO"
12662 then :
12663 lt_cv_ld_exported_symbols_list=yes
12664 else case e in #(
12665 e) lt_cv_ld_exported_symbols_list=no ;;
12666 esac
12667 fi
12668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12669 conftest$ac_exeext conftest.$ac_ext
12670 LDFLAGS=$save_LDFLAGS
12671 ;;
12672 esac
12673 fi
12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12675 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12676
12677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12678 printf %s "checking for -force_load linker flag... " >&6; }
12679 if test ${lt_cv_ld_force_load+y}
12680 then :
12681 printf %s "(cached) " >&6
12682 else case e in #(
12683 e) lt_cv_ld_force_load=no
12684 cat > conftest.c << _LT_EOF
12685 int forced_loaded() { return 2;}
12686 _LT_EOF
12687 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12688 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12689 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
12690 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
12691 echo "$RANLIB libconftest.a" >&5
12692 $RANLIB libconftest.a 2>&5
12693 cat > conftest.c << _LT_EOF
12694 int main(void) { return 0;}
12695 _LT_EOF
12696 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12697 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12698 _lt_result=$?
12699 if test -s conftest.err && $GREP force_load conftest.err; then
12700 cat conftest.err >&5
12701 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12702 lt_cv_ld_force_load=yes
12703 else
12704 cat conftest.err >&5
12705 fi
12706 rm -f conftest.err libconftest.a conftest conftest.c
12707 rm -rf conftest.dSYM
12708 ;;
12709 esac
12710 fi
12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12712 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12713 case $host_os in
12714 rhapsody* | darwin1.[012])
12715 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12716 darwin1.*)
12717 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12718 darwin*)
12719 case $MACOSX_DEPLOYMENT_TARGET,$host in
12720 10.[012],*|,*powerpc*-darwin[5-8]*)
12721 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12722 *)
12723 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
12724 if test yes = "$lt_cv_support_no_fixup_chains"; then
12725 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
12726 fi
12727 ;;
12728 esac
12729 ;;
12730 esac
12731 if test yes = "$lt_cv_apple_cc_single_mod"; then
12732 _lt_dar_single_mod='$single_module'
12733 fi
12734 if test yes = "$lt_cv_ld_exported_symbols_list"; then
12735 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12736 else
12737 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12738 fi
12739 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12740 _lt_dsymutil='~$DSYMUTIL $lib || :'
12741 else
12742 _lt_dsymutil=
12743 fi
12744 ;;
12745 esac
12746
12747 # func_munge_path_list VARIABLE PATH
12748 # -----------------------------------
12749 # VARIABLE is name of variable containing _space_ separated list of
12750 # directories to be munged by the contents of PATH, which is string
12751 # having a format:
12752 # "DIR[:DIR]:"
12753 # string "DIR[ DIR]" will be prepended to VARIABLE
12754 # ":DIR[:DIR]"
12755 # string "DIR[ DIR]" will be appended to VARIABLE
12756 # "DIRP[:DIRP]::[DIRA:]DIRA"
12757 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12758 # "DIRA[ DIRA]" will be appended to VARIABLE
12759 # "DIR[:DIR]"
12760 # VARIABLE will be replaced by "DIR[ DIR]"
12761 func_munge_path_list ()
12762 {
12763 case x$2 in
12764 x)
12765 ;;
12766 *:)
12767 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12768 ;;
12769 x:*)
12770 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12771 ;;
12772 *::*)
12773 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12774 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12775 ;;
12776 *)
12777 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12778 ;;
12779 esac
12780 }
12781
12782 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12783 "
12784 if test "x$ac_cv_header_dlfcn_h" = xyes
12785 then :
12786 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12787
12788 fi
12789
12790
12791
12792
12793
12794 # Set options
12795 enable_dlopen=yes
12796
12797
12798
12799
12800 enable_win32_dll=no
12801
12802
12803 # Check whether --enable-shared was given.
12804 if test ${enable_shared+y}
12805 then :
12806 enableval=$enable_shared; p=${PACKAGE-default}
12807 case $enableval in
12808 yes) enable_shared=yes ;;
12809 no) enable_shared=no ;;
12810 *)
12811 enable_shared=no
12812 # Look at the argument we got. We use all the common list separators.
12813 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12814 for pkg in $enableval; do
12815 IFS=$lt_save_ifs
12816 if test "X$pkg" = "X$p"; then
12817 enable_shared=yes
12818 fi
12819 done
12820 IFS=$lt_save_ifs
12821 ;;
12822 esac
12823 else case e in #(
12824 e) enable_shared=yes ;;
12825 esac
12826 fi
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836 # Check whether --enable-static was given.
12837 if test ${enable_static+y}
12838 then :
12839 enableval=$enable_static; p=${PACKAGE-default}
12840 case $enableval in
12841 yes) enable_static=yes ;;
12842 no) enable_static=no ;;
12843 *)
12844 enable_static=no
12845 # Look at the argument we got. We use all the common list separators.
12846 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12847 for pkg in $enableval; do
12848 IFS=$lt_save_ifs
12849 if test "X$pkg" = "X$p"; then
12850 enable_static=yes
12851 fi
12852 done
12853 IFS=$lt_save_ifs
12854 ;;
12855 esac
12856 else case e in #(
12857 e) enable_static=yes ;;
12858 esac
12859 fi
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869 # Check whether --enable-pic was given.
12870 if test ${enable_pic+y}
12871 then :
12872 enableval=$enable_pic; lt_p=${PACKAGE-default}
12873 case $enableval in
12874 yes|no) pic_mode=$enableval ;;
12875 *)
12876 pic_mode=default
12877 # Look at the argument we got. We use all the common list separators.
12878 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12879 for lt_pkg in $enableval; do
12880 IFS=$lt_save_ifs
12881 if test "X$lt_pkg" = "X$lt_p"; then
12882 pic_mode=yes
12883 fi
12884 done
12885 IFS=$lt_save_ifs
12886 ;;
12887 esac
12888 else case e in #(
12889 e) # Check whether --with-pic was given.
12890 if test ${with_pic+y}
12891 then :
12892 withval=$with_pic; lt_p=${PACKAGE-default}
12893 case $withval in
12894 yes|no) pic_mode=$withval ;;
12895 *)
12896 pic_mode=default
12897 # Look at the argument we got. We use all the common list separators.
12898 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12899 for lt_pkg in $withval; do
12900 IFS=$lt_save_ifs
12901 if test "X$lt_pkg" = "X$lt_p"; then
12902 pic_mode=yes
12903 fi
12904 done
12905 IFS=$lt_save_ifs
12906 ;;
12907 esac
12908 else case e in #(
12909 e) pic_mode=default ;;
12910 esac
12911 fi
12912
12913 ;;
12914 esac
12915 fi
12916
12917
12918
12919
12920
12921
12922
12923
12924 # Check whether --enable-fast-install was given.
12925 if test ${enable_fast_install+y}
12926 then :
12927 enableval=$enable_fast_install; p=${PACKAGE-default}
12928 case $enableval in
12929 yes) enable_fast_install=yes ;;
12930 no) enable_fast_install=no ;;
12931 *)
12932 enable_fast_install=no
12933 # Look at the argument we got. We use all the common list separators.
12934 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12935 for pkg in $enableval; do
12936 IFS=$lt_save_ifs
12937 if test "X$pkg" = "X$p"; then
12938 enable_fast_install=yes
12939 fi
12940 done
12941 IFS=$lt_save_ifs
12942 ;;
12943 esac
12944 else case e in #(
12945 e) enable_fast_install=yes ;;
12946 esac
12947 fi
12948
12949
12950
12951
12952
12953
12954
12955
12956 shared_archive_member_spec=
12957 case $host,$enable_shared in
12958 power*-*-aix[5-9]*,yes)
12959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12960 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12961 # Check whether --enable-aix-soname was given.
12962 if test ${enable_aix_soname+y}
12963 then :
12964 enableval=$enable_aix_soname; case $enableval in
12965 aix|svr4|both)
12966 ;;
12967 *)
12968 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
12969 ;;
12970 esac
12971 lt_cv_with_aix_soname=$enable_aix_soname
12972 else case e in #(
12973 e) # Check whether --with-aix-soname was given.
12974 if test ${with_aix_soname+y}
12975 then :
12976 withval=$with_aix_soname; case $withval in
12977 aix|svr4|both)
12978 ;;
12979 *)
12980 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12981 ;;
12982 esac
12983 lt_cv_with_aix_soname=$with_aix_soname
12984 else case e in #(
12985 e) if test ${lt_cv_with_aix_soname+y}
12986 then :
12987 printf %s "(cached) " >&6
12988 else case e in #(
12989 e) lt_cv_with_aix_soname=aix ;;
12990 esac
12991 fi
12992 ;;
12993 esac
12994 fi
12995
12996 enable_aix_soname=$lt_cv_with_aix_soname ;;
12997 esac
12998 fi
12999
13000 with_aix_soname=$enable_aix_soname
13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
13002 printf "%s\n" "$with_aix_soname" >&6; }
13003 if test aix != "$with_aix_soname"; then
13004 # For the AIX way of multilib, we name the shared archive member
13005 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
13006 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
13007 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
13008 # the AIX toolchain works better with OBJECT_MODE set (default 32).
13009 if test 64 = "${OBJECT_MODE-32}"; then
13010 shared_archive_member_spec=shr_64
13011 else
13012 shared_archive_member_spec=shr
13013 fi
13014 fi
13015 ;;
13016 *)
13017 with_aix_soname=aix
13018 ;;
13019 esac
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030 # This can be used to rebuild libtool when needed
13031 LIBTOOL_DEPS=$ltmain
13032
13033 # Always use our own libtool.
13034 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065 test -z "$LN_S" && LN_S="ln -s"
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080 if test -n "${ZSH_VERSION+set}"; then
13081 setopt NO_GLOB_SUBST
13082 fi
13083
13084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13085 printf %s "checking for objdir... " >&6; }
13086 if test ${lt_cv_objdir+y}
13087 then :
13088 printf %s "(cached) " >&6
13089 else case e in #(
13090 e) rm -f .libs 2>/dev/null
13091 mkdir .libs 2>/dev/null
13092 if test -d .libs; then
13093 lt_cv_objdir=.libs
13094 else
13095 # MS-DOS does not allow filenames that begin with a dot.
13096 lt_cv_objdir=_libs
13097 fi
13098 rmdir .libs 2>/dev/null ;;
13099 esac
13100 fi
13101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13102 printf "%s\n" "$lt_cv_objdir" >&6; }
13103 objdir=$lt_cv_objdir
13104
13105
13106
13107
13108
13109 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
13110
13111
13112
13113
13114 case $host_os in
13115 aix3*)
13116 # AIX sometimes has problems with the GCC collect2 program. For some
13117 # reason, if we set the COLLECT_NAMES environment variable, the problems
13118 # vanish in a puff of smoke.
13119 if test set != "${COLLECT_NAMES+set}"; then
13120 COLLECT_NAMES=
13121 export COLLECT_NAMES
13122 fi
13123 ;;
13124 esac
13125
13126 # Global variables:
13127 ofile=libtool
13128 can_build_shared=yes
13129
13130 # All known linkers require a '.a' archive for static linking (except MSVC and
13131 # ICC, which need '.lib').
13132 libext=a
13133
13134 with_gnu_ld=$lt_cv_prog_gnu_ld
13135
13136 old_CC=$CC
13137 old_CFLAGS=$CFLAGS
13138
13139 # Set sane defaults for various variables
13140 test -z "$CC" && CC=cc
13141 test -z "$LTCC" && LTCC=$CC
13142 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13143 test -z "$LD" && LD=ld
13144 test -z "$ac_objext" && ac_objext=o
13145
13146 func_cc_basename $compiler
13147 cc_basename=$func_cc_basename_result
13148
13149
13150 # Only perform the check for file, if the check method requires it
13151 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13152 case $deplibs_check_method in
13153 file_magic*)
13154 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13156 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
13157 if test ${lt_cv_path_MAGIC_CMD+y}
13158 then :
13159 printf %s "(cached) " >&6
13160 else case e in #(
13161 e) case $MAGIC_CMD in
13162 [\\/*] | ?:[\\/]*)
13163 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13164 ;;
13165 *)
13166 lt_save_MAGIC_CMD=$MAGIC_CMD
13167 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13168 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13169 for ac_dir in $ac_dummy; do
13170 IFS=$lt_save_ifs
13171 test -z "$ac_dir" && ac_dir=.
13172 if test -f "$ac_dir/${ac_tool_prefix}file"; then
13173 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13174 if test -n "$file_magic_test_file"; then
13175 case $deplibs_check_method in
13176 "file_magic "*)
13177 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13178 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13180 $EGREP "$file_magic_regex" > /dev/null; then
13181 :
13182 else
13183 cat <<_LT_EOF 1>&2
13184
13185 *** Warning: the command libtool uses to detect shared libraries,
13186 *** $file_magic_cmd, produces output that libtool cannot recognize.
13187 *** The result is that libtool may fail to recognize shared libraries
13188 *** as such. This will affect the creation of libtool libraries that
13189 *** depend on shared libraries, but programs linked with such libtool
13190 *** libraries will work regardless of this problem. Nevertheless, you
13191 *** may want to report the problem to your system manager and/or to
13192 *** [email protected]
13193
13194 _LT_EOF
13195 fi ;;
13196 esac
13197 fi
13198 break
13199 fi
13200 done
13201 IFS=$lt_save_ifs
13202 MAGIC_CMD=$lt_save_MAGIC_CMD
13203 ;;
13204 esac ;;
13205 esac
13206 fi
13207
13208 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13209 if test -n "$MAGIC_CMD"; then
13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13211 printf "%s\n" "$MAGIC_CMD" >&6; }
13212 else
13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 printf "%s\n" "no" >&6; }
13215 fi
13216
13217
13218
13219
13220
13221 if test -z "$lt_cv_path_MAGIC_CMD"; then
13222 if test -n "$ac_tool_prefix"; then
13223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13224 printf %s "checking for file... " >&6; }
13225 if test ${lt_cv_path_MAGIC_CMD+y}
13226 then :
13227 printf %s "(cached) " >&6
13228 else case e in #(
13229 e) case $MAGIC_CMD in
13230 [\\/*] | ?:[\\/]*)
13231 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13232 ;;
13233 *)
13234 lt_save_MAGIC_CMD=$MAGIC_CMD
13235 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13236 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13237 for ac_dir in $ac_dummy; do
13238 IFS=$lt_save_ifs
13239 test -z "$ac_dir" && ac_dir=.
13240 if test -f "$ac_dir/file"; then
13241 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13242 if test -n "$file_magic_test_file"; then
13243 case $deplibs_check_method in
13244 "file_magic "*)
13245 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13246 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13247 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13248 $EGREP "$file_magic_regex" > /dev/null; then
13249 :
13250 else
13251 cat <<_LT_EOF 1>&2
13252
13253 *** Warning: the command libtool uses to detect shared libraries,
13254 *** $file_magic_cmd, produces output that libtool cannot recognize.
13255 *** The result is that libtool may fail to recognize shared libraries
13256 *** as such. This will affect the creation of libtool libraries that
13257 *** depend on shared libraries, but programs linked with such libtool
13258 *** libraries will work regardless of this problem. Nevertheless, you
13259 *** may want to report the problem to your system manager and/or to
13260 *** [email protected]
13261
13262 _LT_EOF
13263 fi ;;
13264 esac
13265 fi
13266 break
13267 fi
13268 done
13269 IFS=$lt_save_ifs
13270 MAGIC_CMD=$lt_save_MAGIC_CMD
13271 ;;
13272 esac ;;
13273 esac
13274 fi
13275
13276 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13277 if test -n "$MAGIC_CMD"; then
13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13279 printf "%s\n" "$MAGIC_CMD" >&6; }
13280 else
13281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 printf "%s\n" "no" >&6; }
13283 fi
13284
13285
13286 else
13287 MAGIC_CMD=:
13288 fi
13289 fi
13290
13291 fi
13292 ;;
13293 esac
13294
13295 # Use C for the default configuration in the libtool script
13296
13297 lt_save_CC=$CC
13298 ac_ext=c
13299 ac_cpp='$CPP $CPPFLAGS'
13300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13303
13304
13305 # Source file extension for C test sources.
13306 ac_ext=c
13307
13308 # Object file extension for compiled C test sources.
13309 objext=o
13310 objext=$objext
13311
13312 # Code to be used in simple compile tests
13313 lt_simple_compile_test_code="int some_variable = 0;"
13314
13315 # Code to be used in simple link tests
13316 lt_simple_link_test_code='int main(void){return(0);}'
13317
13318
13319
13320
13321
13322
13323
13324 # If no C compiler was specified, use CC.
13325 LTCC=${LTCC-"$CC"}
13326
13327 # If no C compiler flags were specified, use CFLAGS.
13328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13329
13330 # Allow CC to be a program name with arguments.
13331 compiler=$CC
13332
13333 # Save the default compiler, since it gets overwritten when the other
13334 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13335 compiler_DEFAULT=$CC
13336
13337 # save warnings/boilerplate of simple test code
13338 ac_outfile=conftest.$ac_objext
13339 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13340 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13341 _lt_compiler_boilerplate=`cat conftest.err`
13342 $RM conftest*
13343
13344 ac_outfile=conftest.$ac_objext
13345 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13346 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13347 _lt_linker_boilerplate=`cat conftest.err`
13348 $RM -r conftest*
13349
13350
13351 ## CAVEAT EMPTOR:
13352 ## There is no encapsulation within the following macros, do not change
13353 ## the running order or otherwise move them around unless you know exactly
13354 ## what you are doing...
13355 if test -n "$compiler"; then
13356
13357 lt_prog_compiler_no_builtin_flag=
13358
13359 if test yes = "$GCC"; then
13360 case $cc_basename in
13361 nvcc*)
13362 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13363 *)
13364 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13365 esac
13366
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13368 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13369 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13370 then :
13371 printf %s "(cached) " >&6
13372 else case e in #(
13373 e) lt_cv_prog_compiler_rtti_exceptions=no
13374 ac_outfile=conftest.$ac_objext
13375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13376 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
13377 # Insert the option either (1) after the last *FLAGS variable, or
13378 # (2) before a word containing "conftest.", or (3) at the end.
13379 # Note that $ac_compile itself does not contain backslashes and begins
13380 # with a dollar sign (not a hyphen), so the echo should work correctly.
13381 # The option is referenced via a variable to avoid confusing sed.
13382 lt_compile=`echo "$ac_compile" | $SED \
13383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13385 -e 's:$: $lt_compiler_flag:'`
13386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13387 (eval "$lt_compile" 2>conftest.err)
13388 ac_status=$?
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 if (exit $ac_status) && test -s "$ac_outfile"; then
13392 # The compiler can only warn and ignore the option if not recognized
13393 # So say no if there are warnings other than the usual output.
13394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13397 lt_cv_prog_compiler_rtti_exceptions=yes
13398 fi
13399 fi
13400 $RM conftest*
13401 ;;
13402 esac
13403 fi
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13405 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13406
13407 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13408 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13409 else
13410 :
13411 fi
13412
13413 fi
13414
13415
13416
13417
13418
13419
13420 lt_prog_compiler_wl=
13421 lt_prog_compiler_pic=
13422 lt_prog_compiler_static=
13423
13424
13425 if test yes = "$GCC"; then
13426 lt_prog_compiler_wl='-Wl,'
13427 lt_prog_compiler_static='-static'
13428
13429 case $host_os in
13430 aix*)
13431 # All AIX code is PIC.
13432 if test ia64 = "$host_cpu"; then
13433 # AIX 5 now supports IA64 processor
13434 lt_prog_compiler_static='-Bstatic'
13435 fi
13436 lt_prog_compiler_pic='-fPIC'
13437 ;;
13438
13439 amigaos*)
13440 case $host_cpu in
13441 powerpc)
13442 # see comment about AmigaOS4 .so support
13443 lt_prog_compiler_pic='-fPIC'
13444 ;;
13445 m68k)
13446 # FIXME: we need at least 68020 code to build shared libraries, but
13447 # adding the '-m68020' flag to GCC prevents building anything better,
13448 # like '-m68040'.
13449 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13450 ;;
13451 esac
13452 ;;
13453
13454 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13455 # PIC is the default for these OSes.
13456 ;;
13457
13458 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13459 # This hack is so that the source file can tell whether it is being
13460 # built for inclusion in a dll (and should export symbols for example).
13461 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13462 # (--disable-auto-import) libraries
13463 lt_prog_compiler_pic='-DDLL_EXPORT'
13464 case $host_os in
13465 os2*)
13466 lt_prog_compiler_static='$wl-static'
13467 ;;
13468 esac
13469 ;;
13470
13471 darwin* | rhapsody*)
13472 # PIC is the default on this platform
13473 # Common symbols not allowed in MH_DYLIB files
13474 lt_prog_compiler_pic='-fno-common'
13475 ;;
13476
13477 haiku*)
13478 # PIC is the default for Haiku.
13479 # The "-static" flag exists, but is broken.
13480 lt_prog_compiler_static=
13481 ;;
13482
13483 hpux*)
13484 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13485 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13486 # sets the default TLS model and affects inlining.
13487 case $host_cpu in
13488 hppa*64*)
13489 # +Z the default
13490 ;;
13491 *)
13492 lt_prog_compiler_pic='-fPIC'
13493 ;;
13494 esac
13495 ;;
13496
13497 interix[3-9]*)
13498 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13499 # Instead, we relocate shared libraries at runtime.
13500 ;;
13501
13502 msdosdjgpp*)
13503 # Just because we use GCC doesn't mean we suddenly get shared libraries
13504 # on systems that don't support them.
13505 lt_prog_compiler_can_build_shared=no
13506 enable_shared=no
13507 ;;
13508
13509 *nto* | *qnx*)
13510 # QNX uses GNU C++, but need to define -shared option too, otherwise
13511 # it will coredump.
13512 lt_prog_compiler_pic='-fPIC -shared'
13513 ;;
13514
13515 sysv4*MP*)
13516 if test -d /usr/nec; then
13517 lt_prog_compiler_pic=-Kconform_pic
13518 fi
13519 ;;
13520
13521 *)
13522 lt_prog_compiler_pic='-fPIC'
13523 ;;
13524 esac
13525
13526 case $cc_basename in
13527 nvcc*) # Cuda Compiler Driver 2.2
13528 lt_prog_compiler_wl='-Xlinker '
13529 if test -n "$lt_prog_compiler_pic"; then
13530 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13531 fi
13532 ;;
13533 esac
13534 else
13535 # PORTME Check for flag to pass linker flags through the system compiler.
13536 case $host_os in
13537 aix*)
13538 lt_prog_compiler_wl='-Wl,'
13539 if test ia64 = "$host_cpu"; then
13540 # AIX 5 now supports IA64 processor
13541 lt_prog_compiler_static='-Bstatic'
13542 else
13543 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13544 fi
13545 ;;
13546
13547 darwin* | rhapsody*)
13548 # PIC is the default on this platform
13549 # Common symbols not allowed in MH_DYLIB files
13550 lt_prog_compiler_pic='-fno-common'
13551 case $cc_basename in
13552 nagfor*)
13553 # NAG Fortran compiler
13554 lt_prog_compiler_wl='-Wl,-Wl,,'
13555 lt_prog_compiler_pic='-PIC'
13556 lt_prog_compiler_static='-Bstatic'
13557 ;;
13558 esac
13559 ;;
13560
13561 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13562 # This hack is so that the source file can tell whether it is being
13563 # built for inclusion in a dll (and should export symbols for example).
13564 lt_prog_compiler_pic='-DDLL_EXPORT'
13565 case $host_os in
13566 os2*)
13567 lt_prog_compiler_static='$wl-static'
13568 ;;
13569 esac
13570 ;;
13571
13572 hpux9* | hpux10* | hpux11*)
13573 lt_prog_compiler_wl='-Wl,'
13574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13575 # not for PA HP-UX.
13576 case $host_cpu in
13577 hppa*64*|ia64*)
13578 # +Z the default
13579 ;;
13580 *)
13581 lt_prog_compiler_pic='+Z'
13582 ;;
13583 esac
13584 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13585 lt_prog_compiler_static='$wl-a ${wl}archive'
13586 ;;
13587
13588 irix5* | irix6* | nonstopux*)
13589 lt_prog_compiler_wl='-Wl,'
13590 # PIC (with -KPIC) is the default.
13591 lt_prog_compiler_static='-non_shared'
13592 ;;
13593
13594 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13595 case $cc_basename in
13596 # old Intel for x86_64, which still supported -KPIC.
13597 ecc*)
13598 lt_prog_compiler_wl='-Wl,'
13599 lt_prog_compiler_pic='-KPIC'
13600 lt_prog_compiler_static='-static'
13601 ;;
13602 *flang* | ftn)
13603 # Flang compiler.
13604 lt_prog_compiler_wl='-Wl,'
13605 lt_prog_compiler_pic='-fPIC'
13606 lt_prog_compiler_static='-static'
13607 ;;
13608 # icc used to be incompatible with GCC.
13609 # ICC 10 doesn't accept -KPIC any more.
13610 icc* | ifort*)
13611 lt_prog_compiler_wl='-Wl,'
13612 lt_prog_compiler_pic='-fPIC'
13613 lt_prog_compiler_static='-static'
13614 ;;
13615 # Lahey Fortran 8.1.
13616 lf95*)
13617 lt_prog_compiler_wl='-Wl,'
13618 lt_prog_compiler_pic='--shared'
13619 lt_prog_compiler_static='--static'
13620 ;;
13621 nagfor*)
13622 # NAG Fortran compiler
13623 lt_prog_compiler_wl='-Wl,-Wl,,'
13624 lt_prog_compiler_pic='-PIC'
13625 lt_prog_compiler_static='-Bstatic'
13626 ;;
13627 tcc*)
13628 # Fabrice Bellard et al's Tiny C Compiler
13629 lt_prog_compiler_wl='-Wl,'
13630 lt_prog_compiler_pic='-fPIC'
13631 lt_prog_compiler_static='-static'
13632 ;;
13633 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13634 # Portland Group compilers (*not* the Pentium gcc compiler,
13635 # which looks to be a dead project)
13636 lt_prog_compiler_wl='-Wl,'
13637 lt_prog_compiler_pic='-fpic'
13638 lt_prog_compiler_static='-Bstatic'
13639 ;;
13640 ccc*)
13641 lt_prog_compiler_wl='-Wl,'
13642 # All Alpha code is PIC.
13643 lt_prog_compiler_static='-non_shared'
13644 ;;
13645 xl* | bgxl* | bgf* | mpixl*)
13646 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13647 lt_prog_compiler_wl='-Wl,'
13648 lt_prog_compiler_pic='-qpic'
13649 lt_prog_compiler_static='-qstaticlink'
13650 ;;
13651 *)
13652 case `$CC -V 2>&1 | $SED 5q` in
13653 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13654 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13655 lt_prog_compiler_pic='-KPIC'
13656 lt_prog_compiler_static='-Bstatic'
13657 lt_prog_compiler_wl=''
13658 ;;
13659 *Sun\ F* | *Sun*Fortran*)
13660 lt_prog_compiler_pic='-KPIC'
13661 lt_prog_compiler_static='-Bstatic'
13662 lt_prog_compiler_wl='-Qoption ld '
13663 ;;
13664 *Sun\ C*)
13665 # Sun C 5.9
13666 lt_prog_compiler_pic='-KPIC'
13667 lt_prog_compiler_static='-Bstatic'
13668 lt_prog_compiler_wl='-Wl,'
13669 ;;
13670 *Intel*\ [CF]*Compiler*)
13671 lt_prog_compiler_wl='-Wl,'
13672 lt_prog_compiler_pic='-fPIC'
13673 lt_prog_compiler_static='-static'
13674 ;;
13675 *Portland\ Group*)
13676 lt_prog_compiler_wl='-Wl,'
13677 lt_prog_compiler_pic='-fpic'
13678 lt_prog_compiler_static='-Bstatic'
13679 ;;
13680 esac
13681 ;;
13682 esac
13683 ;;
13684
13685 newsos6)
13686 lt_prog_compiler_pic='-KPIC'
13687 lt_prog_compiler_static='-Bstatic'
13688 ;;
13689
13690 *nto* | *qnx*)
13691 # QNX uses GNU C++, but need to define -shared option too, otherwise
13692 # it will coredump.
13693 lt_prog_compiler_pic='-fPIC -shared'
13694 ;;
13695
13696 osf3* | osf4* | osf5*)
13697 lt_prog_compiler_wl='-Wl,'
13698 # All OSF/1 code is PIC.
13699 lt_prog_compiler_static='-non_shared'
13700 ;;
13701
13702 rdos*)
13703 lt_prog_compiler_static='-non_shared'
13704 ;;
13705
13706 solaris*)
13707 lt_prog_compiler_pic='-KPIC'
13708 lt_prog_compiler_static='-Bstatic'
13709 case $cc_basename in
13710 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13711 lt_prog_compiler_wl='-Qoption ld ';;
13712 *)
13713 lt_prog_compiler_wl='-Wl,';;
13714 esac
13715 ;;
13716
13717 sunos4*)
13718 lt_prog_compiler_wl='-Qoption ld '
13719 lt_prog_compiler_pic='-PIC'
13720 lt_prog_compiler_static='-Bstatic'
13721 ;;
13722
13723 sysv4 | sysv4.2uw2* | sysv4.3*)
13724 lt_prog_compiler_wl='-Wl,'
13725 lt_prog_compiler_pic='-KPIC'
13726 lt_prog_compiler_static='-Bstatic'
13727 ;;
13728
13729 sysv4*MP*)
13730 if test -d /usr/nec; then
13731 lt_prog_compiler_pic='-Kconform_pic'
13732 lt_prog_compiler_static='-Bstatic'
13733 fi
13734 ;;
13735
13736 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13737 lt_prog_compiler_wl='-Wl,'
13738 lt_prog_compiler_pic='-KPIC'
13739 lt_prog_compiler_static='-Bstatic'
13740 ;;
13741
13742 unicos*)
13743 lt_prog_compiler_wl='-Wl,'
13744 lt_prog_compiler_can_build_shared=no
13745 ;;
13746
13747 uts4*)
13748 lt_prog_compiler_pic='-pic'
13749 lt_prog_compiler_static='-Bstatic'
13750 ;;
13751
13752 *)
13753 lt_prog_compiler_can_build_shared=no
13754 ;;
13755 esac
13756 fi
13757
13758 case $host_os in
13759 # For platforms that do not support PIC, -DPIC is meaningless:
13760 *djgpp*)
13761 lt_prog_compiler_pic=
13762 ;;
13763 *)
13764 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13765 ;;
13766 esac
13767
13768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13769 printf %s "checking for $compiler option to produce PIC... " >&6; }
13770 if test ${lt_cv_prog_compiler_pic+y}
13771 then :
13772 printf %s "(cached) " >&6
13773 else case e in #(
13774 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13775 esac
13776 fi
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13778 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13779 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13780
13781 #
13782 # Check to make sure the PIC flag actually works.
13783 #
13784 if test -n "$lt_prog_compiler_pic"; then
13785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13786 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13787 if test ${lt_cv_prog_compiler_pic_works+y}
13788 then :
13789 printf %s "(cached) " >&6
13790 else case e in #(
13791 e) lt_cv_prog_compiler_pic_works=no
13792 ac_outfile=conftest.$ac_objext
13793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13794 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13795 # Insert the option either (1) after the last *FLAGS variable, or
13796 # (2) before a word containing "conftest.", or (3) at the end.
13797 # Note that $ac_compile itself does not contain backslashes and begins
13798 # with a dollar sign (not a hyphen), so the echo should work correctly.
13799 # The option is referenced via a variable to avoid confusing sed.
13800 lt_compile=`echo "$ac_compile" | $SED \
13801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13803 -e 's:$: $lt_compiler_flag:'`
13804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13805 (eval "$lt_compile" 2>conftest.err)
13806 ac_status=$?
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 if (exit $ac_status) && test -s "$ac_outfile"; then
13810 # The compiler can only warn and ignore the option if not recognized
13811 # So say no if there are warnings other than the usual output.
13812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13815 lt_cv_prog_compiler_pic_works=yes
13816 fi
13817 fi
13818 $RM conftest*
13819 ;;
13820 esac
13821 fi
13822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13823 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13824
13825 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13826 case $lt_prog_compiler_pic in
13827 "" | " "*) ;;
13828 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13829 esac
13830 else
13831 lt_prog_compiler_pic=
13832 lt_prog_compiler_can_build_shared=no
13833 fi
13834
13835 fi
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847 #
13848 # Check to make sure the static flag actually works.
13849 #
13850 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13852 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13853 if test ${lt_cv_prog_compiler_static_works+y}
13854 then :
13855 printf %s "(cached) " >&6
13856 else case e in #(
13857 e) lt_cv_prog_compiler_static_works=no
13858 save_LDFLAGS=$LDFLAGS
13859 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13860 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13862 # The linker can only warn and ignore the option if not recognized
13863 # So say no if there are warnings
13864 if test -s conftest.err; then
13865 # Append any errors to the config.log.
13866 cat conftest.err 1>&5
13867 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13869 if diff conftest.exp conftest.er2 >/dev/null; then
13870 lt_cv_prog_compiler_static_works=yes
13871 fi
13872 else
13873 lt_cv_prog_compiler_static_works=yes
13874 fi
13875 fi
13876 $RM -r conftest*
13877 LDFLAGS=$save_LDFLAGS
13878 ;;
13879 esac
13880 fi
13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13882 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13883
13884 if test yes = "$lt_cv_prog_compiler_static_works"; then
13885 :
13886 else
13887 lt_prog_compiler_static=
13888 fi
13889
13890
13891
13892
13893
13894
13895
13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13897 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13898 if test ${lt_cv_prog_compiler_c_o+y}
13899 then :
13900 printf %s "(cached) " >&6
13901 else case e in #(
13902 e) lt_cv_prog_compiler_c_o=no
13903 $RM -r conftest 2>/dev/null
13904 mkdir conftest
13905 cd conftest
13906 mkdir out
13907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13908
13909 lt_compiler_flag="-o out/conftest2.$ac_objext"
13910 # Insert the option either (1) after the last *FLAGS variable, or
13911 # (2) before a word containing "conftest.", or (3) at the end.
13912 # Note that $ac_compile itself does not contain backslashes and begins
13913 # with a dollar sign (not a hyphen), so the echo should work correctly.
13914 lt_compile=`echo "$ac_compile" | $SED \
13915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13917 -e 's:$: $lt_compiler_flag:'`
13918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13919 (eval "$lt_compile" 2>out/conftest.err)
13920 ac_status=$?
13921 cat out/conftest.err >&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13924 then
13925 # The compiler can only warn and ignore the option if not recognized
13926 # So say no if there are warnings
13927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13930 lt_cv_prog_compiler_c_o=yes
13931 fi
13932 fi
13933 chmod u+w . 2>&5
13934 $RM conftest*
13935 # SGI C++ compiler will create directory out/ii_files/ for
13936 # template instantiation
13937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13938 $RM out/* && rmdir out
13939 cd ..
13940 $RM -r conftest
13941 $RM conftest*
13942 ;;
13943 esac
13944 fi
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13946 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13947
13948
13949
13950
13951
13952
13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13954 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13955 if test ${lt_cv_prog_compiler_c_o+y}
13956 then :
13957 printf %s "(cached) " >&6
13958 else case e in #(
13959 e) lt_cv_prog_compiler_c_o=no
13960 $RM -r conftest 2>/dev/null
13961 mkdir conftest
13962 cd conftest
13963 mkdir out
13964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13965
13966 lt_compiler_flag="-o out/conftest2.$ac_objext"
13967 # Insert the option either (1) after the last *FLAGS variable, or
13968 # (2) before a word containing "conftest.", or (3) at the end.
13969 # Note that $ac_compile itself does not contain backslashes and begins
13970 # with a dollar sign (not a hyphen), so the echo should work correctly.
13971 lt_compile=`echo "$ac_compile" | $SED \
13972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13974 -e 's:$: $lt_compiler_flag:'`
13975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13976 (eval "$lt_compile" 2>out/conftest.err)
13977 ac_status=$?
13978 cat out/conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13981 then
13982 # The compiler can only warn and ignore the option if not recognized
13983 # So say no if there are warnings
13984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13987 lt_cv_prog_compiler_c_o=yes
13988 fi
13989 fi
13990 chmod u+w . 2>&5
13991 $RM conftest*
13992 # SGI C++ compiler will create directory out/ii_files/ for
13993 # template instantiation
13994 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13995 $RM out/* && rmdir out
13996 cd ..
13997 $RM -r conftest
13998 $RM conftest*
13999 ;;
14000 esac
14001 fi
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14003 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
14004
14005
14006
14007
14008 hard_links=nottested
14009 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
14010 # do not overwrite the value of need_locks provided by the user
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14012 printf %s "checking if we can lock with hard links... " >&6; }
14013 hard_links=yes
14014 $RM conftest*
14015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14016 touch conftest.a
14017 ln conftest.a conftest.b 2>&5 || hard_links=no
14018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14020 printf "%s\n" "$hard_links" >&6; }
14021 if test no = "$hard_links"; then
14022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14023 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14024 need_locks=warn
14025 fi
14026 else
14027 need_locks=no
14028 fi
14029
14030
14031
14032
14033
14034
14035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14036 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14037
14038 runpath_var=
14039 allow_undefined_flag=
14040 always_export_symbols=no
14041 archive_cmds=
14042 archive_expsym_cmds=
14043 compiler_needs_object=no
14044 enable_shared_with_static_runtimes=no
14045 export_dynamic_flag_spec=
14046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14047 hardcode_automatic=no
14048 hardcode_direct=no
14049 hardcode_direct_absolute=no
14050 hardcode_libdir_flag_spec=
14051 hardcode_libdir_separator=
14052 hardcode_minus_L=no
14053 hardcode_shlibpath_var=unsupported
14054 fix_hardcoded_libdir_flag_spec=
14055 fix_hardcoded_libdir_flag_spec_ld=
14056 inherit_rpath=no
14057 link_all_deplibs=unknown
14058 module_cmds=
14059 module_expsym_cmds=
14060 old_archive_from_new_cmds=
14061 old_archive_from_expsyms_cmds=
14062 thread_safe_flag_spec=
14063 whole_archive_flag_spec=
14064 # include_expsyms should be a list of space-separated symbols to be *always*
14065 # included in the symbol list
14066 include_expsyms=
14067 # exclude_expsyms can be an extended regexp of symbols to exclude
14068 # it will be wrapped by ' (' and ')$', so one must not match beginning or
14069 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
14070 # as well as any symbol that contains 'd'.
14071 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14073 # platforms (ab)use it in PIC code, but their linkers get confused if
14074 # the symbol is explicitly referenced. Since portable code cannot
14075 # rely on this symbol name, it's probably fine to never include it in
14076 # preloaded symbol tables.
14077 # Exclude shared library initialization/finalization symbols.
14078 extract_expsyms_cmds=
14079
14080 case $host_os in
14081 cygwin* | mingw* | windows* | pw32* | cegcc*)
14082 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
14083 # When not using gcc, we currently assume that we are using
14084 # Microsoft Visual C++ or Intel C++ Compiler.
14085 if test yes != "$GCC"; then
14086 with_gnu_ld=no
14087 fi
14088 ;;
14089 interix*)
14090 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
14091 with_gnu_ld=yes
14092 ;;
14093 openbsd*)
14094 with_gnu_ld=no
14095 ;;
14096 esac
14097
14098 ld_shlibs=yes
14099
14100 # On some targets, GNU ld is compatible enough with the native linker
14101 # that we're better off using the native interface for both.
14102 lt_use_gnu_ld_interface=no
14103 if test yes = "$with_gnu_ld"; then
14104 case $host_os in
14105 aix*)
14106 # The AIX port of GNU ld has always aspired to compatibility
14107 # with the native linker. However, as the warning in the GNU ld
14108 # block says, versions before 2.19.5* couldn't really create working
14109 # shared libraries, regardless of the interface used.
14110 case `$LD -v 2>&1` in
14111 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14112 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14113 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14114 *)
14115 lt_use_gnu_ld_interface=yes
14116 ;;
14117 esac
14118 ;;
14119 *)
14120 lt_use_gnu_ld_interface=yes
14121 ;;
14122 esac
14123 fi
14124
14125 if test yes = "$lt_use_gnu_ld_interface"; then
14126 # If archive_cmds runs LD, not CC, wlarc should be empty
14127 wlarc='$wl'
14128
14129 # Set some defaults for GNU ld with shared library support. These
14130 # are reset later if shared libraries are not supported. Putting them
14131 # here allows them to be overridden if necessary.
14132 runpath_var=LD_RUN_PATH
14133 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14134 export_dynamic_flag_spec='$wl--export-dynamic'
14135 # ancient GNU ld didn't support --whole-archive et. al.
14136 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14137 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14138 else
14139 whole_archive_flag_spec=
14140 fi
14141 supports_anon_versioning=no
14142 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
14143 *GNU\ gold*) supports_anon_versioning=yes ;;
14144 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14145 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14146 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14147 *\ 2.11.*) ;; # other 2.11 versions
14148 *) supports_anon_versioning=yes ;;
14149 esac
14150
14151 # See if GNU ld supports shared libraries.
14152 case $host_os in
14153 aix[3-9]*)
14154 # On AIX/PPC, the GNU linker is very broken
14155 if test ia64 != "$host_cpu"; then
14156 ld_shlibs=no
14157 cat <<_LT_EOF 1>&2
14158
14159 *** Warning: the GNU linker, at least up to release 2.19, is reported
14160 *** to be unable to reliably create shared libraries on AIX.
14161 *** Therefore, libtool is disabling shared libraries support. If you
14162 *** really care for shared libraries, you may want to install binutils
14163 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14164 *** You will then need to restart the configuration process.
14165
14166 _LT_EOF
14167 fi
14168 ;;
14169
14170 amigaos*)
14171 case $host_cpu in
14172 powerpc)
14173 # see comment about AmigaOS4 .so support
14174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14175 archive_expsym_cmds=''
14176 ;;
14177 m68k)
14178 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)'
14179 hardcode_libdir_flag_spec='-L$libdir'
14180 hardcode_minus_L=yes
14181 ;;
14182 esac
14183 ;;
14184
14185 beos*)
14186 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14187 allow_undefined_flag=unsupported
14188 # Joseph Beckenbach <[email protected]> says some releases of gcc
14189 # support --undefined. This deserves some investigation. FIXME
14190 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14191 else
14192 ld_shlibs=no
14193 fi
14194 ;;
14195
14196 cygwin* | mingw* | windows* | pw32* | cegcc*)
14197 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14198 # as there is no search path for DLLs.
14199 hardcode_libdir_flag_spec='-L$libdir'
14200 export_dynamic_flag_spec='$wl--export-all-symbols'
14201 allow_undefined_flag=unsupported
14202 always_export_symbols=no
14203 enable_shared_with_static_runtimes=yes
14204 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14205 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14206
14207 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14209 # If the export-symbols file already is a .def file, use it as
14210 # is; otherwise, prepend EXPORTS...
14211 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14212 cp $export_symbols $output_objdir/$soname.def;
14213 else
14214 echo EXPORTS > $output_objdir/$soname.def;
14215 cat $export_symbols >> $output_objdir/$soname.def;
14216 fi~
14217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14218 else
14219 ld_shlibs=no
14220 fi
14221 ;;
14222
14223 haiku*)
14224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14225 link_all_deplibs=yes
14226 ;;
14227
14228 os2*)
14229 hardcode_libdir_flag_spec='-L$libdir'
14230 hardcode_minus_L=yes
14231 allow_undefined_flag=unsupported
14232 shrext_cmds=.dll
14233 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14234 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14235 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14236 $ECHO EXPORTS >> $output_objdir/$libname.def~
14237 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14238 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14239 emximp -o $lib $output_objdir/$libname.def'
14240 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14241 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14242 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14243 $ECHO EXPORTS >> $output_objdir/$libname.def~
14244 prefix_cmds="$SED"~
14245 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14246 prefix_cmds="$prefix_cmds -e 1d";
14247 fi~
14248 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14249 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14250 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14251 emximp -o $lib $output_objdir/$libname.def'
14252 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14253 enable_shared_with_static_runtimes=yes
14254 file_list_spec='@'
14255 ;;
14256
14257 interix[3-9]*)
14258 hardcode_direct=no
14259 hardcode_shlibpath_var=no
14260 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14261 export_dynamic_flag_spec='$wl-E'
14262 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14263 # Instead, shared libraries are loaded at an image base (0x10000000 by
14264 # default) and relocated if they conflict, which is a slow very memory
14265 # consuming and fragmenting process. To avoid this, we pick a random,
14266 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14267 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14268 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14269 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'
14270 ;;
14271
14272 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14273 tmp_diet=no
14274 if test linux-dietlibc = "$host_os"; then
14275 case $cc_basename in
14276 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14277 esac
14278 fi
14279 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14280 && test no = "$tmp_diet"
14281 then
14282 tmp_addflag=' $pic_flag'
14283 tmp_sharedflag='-shared'
14284 case $cc_basename,$host_cpu in
14285 pgcc*) # Portland Group C compiler
14286 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14287 tmp_addflag=' $pic_flag'
14288 ;;
14289 pgf77* | pgf90* | pgf95* | pgfortran*)
14290 # Portland Group f77 and f90 compilers
14291 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14292 tmp_addflag=' $pic_flag -Mnomain' ;;
14293 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14294 tmp_addflag=' -i_dynamic' ;;
14295 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14296 tmp_addflag=' -i_dynamic -nofor_main' ;;
14297 ifc* | ifort*) # Intel Fortran compiler
14298 tmp_addflag=' -nofor_main' ;;
14299 lf95*) # Lahey Fortran 8.1
14300 whole_archive_flag_spec=
14301 tmp_sharedflag='--shared' ;;
14302 nagfor*) # NAGFOR 5.3
14303 tmp_sharedflag='-Wl,-shared' ;;
14304 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14305 tmp_sharedflag='-qmkshrobj'
14306 tmp_addflag= ;;
14307 nvcc*) # Cuda Compiler Driver 2.2
14308 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14309 compiler_needs_object=yes
14310 ;;
14311 esac
14312 case `$CC -V 2>&1 | $SED 5q` in
14313 *Sun\ C*) # Sun C 5.9
14314 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14315 compiler_needs_object=yes
14316 tmp_sharedflag='-G' ;;
14317 *Sun\ F*) # Sun Fortran 8.3
14318 tmp_sharedflag='-G' ;;
14319 esac
14320 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14321
14322 if test yes = "$supports_anon_versioning"; then
14323 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14324 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14325 echo "local: *; };" >> $output_objdir/$libname.ver~
14326 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14327 fi
14328
14329 case $cc_basename in
14330 tcc*)
14331 export_dynamic_flag_spec='-rdynamic'
14332 ;;
14333 xlf* | bgf* | bgxlf* | mpixlf*)
14334 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14335 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14336 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14337 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14338 if test yes = "$supports_anon_versioning"; then
14339 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14340 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14341 echo "local: *; };" >> $output_objdir/$libname.ver~
14342 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14343 fi
14344 ;;
14345 esac
14346 else
14347 ld_shlibs=no
14348 fi
14349 ;;
14350
14351 netbsd*)
14352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14353 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14354 wlarc=
14355 else
14356 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14357 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14358 fi
14359 ;;
14360
14361 solaris*)
14362 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14363 ld_shlibs=no
14364 cat <<_LT_EOF 1>&2
14365
14366 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14367 *** create shared libraries on Solaris systems. Therefore, libtool
14368 *** is disabling shared libraries support. We urge you to upgrade GNU
14369 *** binutils to release 2.9.1 or newer. Another option is to modify
14370 *** your PATH or compiler configuration so that the native linker is
14371 *** used, and then restart.
14372
14373 _LT_EOF
14374 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14376 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14377 else
14378 ld_shlibs=no
14379 fi
14380 ;;
14381
14382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14383 case `$LD -v 2>&1` in
14384 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14385 ld_shlibs=no
14386 cat <<_LT_EOF 1>&2
14387
14388 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14389 *** reliably create shared libraries on SCO systems. Therefore, libtool
14390 *** is disabling shared libraries support. We urge you to upgrade GNU
14391 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14392 *** your PATH or compiler configuration so that the native linker is
14393 *** used, and then restart.
14394
14395 _LT_EOF
14396 ;;
14397 *)
14398 # For security reasons, it is highly recommended that you always
14399 # use absolute paths for naming shared libraries, and exclude the
14400 # DT_RUNPATH tag from executables and libraries. But doing so
14401 # requires that you compile everything twice, which is a pain.
14402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14403 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14406 else
14407 ld_shlibs=no
14408 fi
14409 ;;
14410 esac
14411 ;;
14412
14413 sunos4*)
14414 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14415 wlarc=
14416 hardcode_direct=yes
14417 hardcode_shlibpath_var=no
14418 ;;
14419
14420 *)
14421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14423 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14424 else
14425 ld_shlibs=no
14426 fi
14427 ;;
14428 esac
14429
14430 if test no = "$ld_shlibs"; then
14431 runpath_var=
14432 hardcode_libdir_flag_spec=
14433 export_dynamic_flag_spec=
14434 whole_archive_flag_spec=
14435 fi
14436 else
14437 # PORTME fill in a description of your system's linker (not GNU ld)
14438 case $host_os in
14439 aix3*)
14440 allow_undefined_flag=unsupported
14441 always_export_symbols=yes
14442 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'
14443 # Note: this linker hardcodes the directories in LIBPATH if there
14444 # are no directories specified by -L.
14445 hardcode_minus_L=yes
14446 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14447 # Neither direct hardcoding nor static linking is supported with a
14448 # broken collect2.
14449 hardcode_direct=unsupported
14450 fi
14451 ;;
14452
14453 aix[4-9]*)
14454 if test ia64 = "$host_cpu"; then
14455 # On IA64, the linker does run time linking by default, so we don't
14456 # have to do anything special.
14457 aix_use_runtimelinking=no
14458 exp_sym_flag='-Bexport'
14459 no_entry_flag=
14460 else
14461 # If we're using GNU nm, then we don't want the "-C" option.
14462 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14463 # Without the "-l" option, or with the "-B" option, AIX nm treats
14464 # weak defined symbols like other global defined symbols, whereas
14465 # GNU nm marks them as "W".
14466 # While the 'weak' keyword is ignored in the Export File, we need
14467 # it in the Import File for the 'aix-soname' feature, so we have
14468 # to replace the "-B" option with "-P" for AIX nm.
14469 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14470 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14471 else
14472 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14473 fi
14474 aix_use_runtimelinking=no
14475
14476 # Test if we are trying to use run time linking or normal
14477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14478 # have runtime linking enabled, and use it for executables.
14479 # For shared libraries, we enable/disable runtime linking
14480 # depending on the kind of the shared library created -
14481 # when "with_aix_soname,aix_use_runtimelinking" is:
14482 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14483 # "aix,yes" lib.so shared, rtl:yes, for executables
14484 # lib.a static archive
14485 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14486 # lib.a(lib.so.V) shared, rtl:no, for executables
14487 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14488 # lib.a(lib.so.V) shared, rtl:no
14489 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14490 # lib.a static archive
14491 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14492 for ld_flag in $LDFLAGS; do
14493 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14494 aix_use_runtimelinking=yes
14495 break
14496 fi
14497 done
14498 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14499 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14500 # so we don't have lib.a shared libs to link our executables.
14501 # We have to force runtime linking in this case.
14502 aix_use_runtimelinking=yes
14503 LDFLAGS="$LDFLAGS -Wl,-brtl"
14504 fi
14505 ;;
14506 esac
14507
14508 exp_sym_flag='-bexport'
14509 no_entry_flag='-bnoentry'
14510 fi
14511
14512 # When large executables or shared objects are built, AIX ld can
14513 # have problems creating the table of contents. If linking a library
14514 # or program results in "error TOC overflow" add -mminimal-toc to
14515 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14516 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14517
14518 archive_cmds=''
14519 hardcode_direct=yes
14520 hardcode_direct_absolute=yes
14521 hardcode_libdir_separator=':'
14522 link_all_deplibs=yes
14523 file_list_spec='$wl-f,'
14524 case $with_aix_soname,$aix_use_runtimelinking in
14525 aix,*) ;; # traditional, no import file
14526 svr4,* | *,yes) # use import file
14527 # The Import File defines what to hardcode.
14528 hardcode_direct=no
14529 hardcode_direct_absolute=no
14530 ;;
14531 esac
14532
14533 if test yes = "$GCC"; then
14534 case $host_os in aix4.[012]|aix4.[012].*)
14535 # We only want to do this on AIX 4.2 and lower, the check
14536 # below for broken collect2 doesn't work under 4.3+
14537 collect2name=`$CC -print-prog-name=collect2`
14538 if test -f "$collect2name" &&
14539 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14540 then
14541 # We have reworked collect2
14542 :
14543 else
14544 # We have old collect2
14545 hardcode_direct=unsupported
14546 # It fails to find uninstalled libraries when the uninstalled
14547 # path is not listed in the libpath. Setting hardcode_minus_L
14548 # to unsupported forces relinking
14549 hardcode_minus_L=yes
14550 hardcode_libdir_flag_spec='-L$libdir'
14551 hardcode_libdir_separator=
14552 fi
14553 ;;
14554 esac
14555 shared_flag='-shared'
14556 if test yes = "$aix_use_runtimelinking"; then
14557 shared_flag="$shared_flag "'$wl-G'
14558 fi
14559 # Need to ensure runtime linking is disabled for the traditional
14560 # shared library, or the linker may eventually find shared libraries
14561 # /with/ Import File - we do not want to mix them.
14562 shared_flag_aix='-shared'
14563 shared_flag_svr4='-shared $wl-G'
14564 else
14565 # not using gcc
14566 if test ia64 = "$host_cpu"; then
14567 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14568 # chokes on -Wl,-G. The following line is correct:
14569 shared_flag='-G'
14570 else
14571 if test yes = "$aix_use_runtimelinking"; then
14572 shared_flag='$wl-G'
14573 else
14574 shared_flag='$wl-bM:SRE'
14575 fi
14576 shared_flag_aix='$wl-bM:SRE'
14577 shared_flag_svr4='$wl-G'
14578 fi
14579 fi
14580
14581 export_dynamic_flag_spec='$wl-bexpall'
14582 # It seems that -bexpall does not export symbols beginning with
14583 # underscore (_), so it is better to generate a list of symbols to export.
14584 always_export_symbols=yes
14585 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14586 # Warning - without using the other runtime loading flags (-brtl),
14587 # -berok will link without error, but may produce a broken library.
14588 allow_undefined_flag='-berok'
14589 # Determine the default libpath from the value encoded in an
14590 # empty executable.
14591 if test set = "${lt_cv_aix_libpath+set}"; then
14592 aix_libpath=$lt_cv_aix_libpath
14593 else
14594 if test ${lt_cv_aix_libpath_+y}
14595 then :
14596 printf %s "(cached) " >&6
14597 else case e in #(
14598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h. */
14600
14601 int
14602 main (void)
14603 {
14604
14605 ;
14606 return 0;
14607 }
14608 _ACEOF
14609 if ac_fn_c_try_link "$LINENO"
14610 then :
14611
14612 lt_aix_libpath_sed='
14613 /Import File Strings/,/^$/ {
14614 /^0/ {
14615 s/^0 *\([^ ]*\) *$/\1/
14616 p
14617 }
14618 }'
14619 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14620 # Check for a 64-bit object if we didn't find anything.
14621 if test -z "$lt_cv_aix_libpath_"; then
14622 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14623 fi
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14626 conftest$ac_exeext conftest.$ac_ext
14627 if test -z "$lt_cv_aix_libpath_"; then
14628 lt_cv_aix_libpath_=/usr/lib:/lib
14629 fi
14630 ;;
14631 esac
14632 fi
14633
14634 aix_libpath=$lt_cv_aix_libpath_
14635 fi
14636
14637 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14638 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14639 else
14640 if test ia64 = "$host_cpu"; then
14641 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14642 allow_undefined_flag="-z nodefs"
14643 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"
14644 else
14645 # Determine the default libpath from the value encoded in an
14646 # empty executable.
14647 if test set = "${lt_cv_aix_libpath+set}"; then
14648 aix_libpath=$lt_cv_aix_libpath
14649 else
14650 if test ${lt_cv_aix_libpath_+y}
14651 then :
14652 printf %s "(cached) " >&6
14653 else case e in #(
14654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14655 /* end confdefs.h. */
14656
14657 int
14658 main (void)
14659 {
14660
14661 ;
14662 return 0;
14663 }
14664 _ACEOF
14665 if ac_fn_c_try_link "$LINENO"
14666 then :
14667
14668 lt_aix_libpath_sed='
14669 /Import File Strings/,/^$/ {
14670 /^0/ {
14671 s/^0 *\([^ ]*\) *$/\1/
14672 p
14673 }
14674 }'
14675 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14676 # Check for a 64-bit object if we didn't find anything.
14677 if test -z "$lt_cv_aix_libpath_"; then
14678 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14679 fi
14680 fi
14681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14682 conftest$ac_exeext conftest.$ac_ext
14683 if test -z "$lt_cv_aix_libpath_"; then
14684 lt_cv_aix_libpath_=/usr/lib:/lib
14685 fi
14686 ;;
14687 esac
14688 fi
14689
14690 aix_libpath=$lt_cv_aix_libpath_
14691 fi
14692
14693 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14694 # Warning - without using the other run time loading flags,
14695 # -berok will link without error, but may produce a broken library.
14696 no_undefined_flag=' $wl-bernotok'
14697 allow_undefined_flag=' $wl-berok'
14698 if test yes = "$with_gnu_ld"; then
14699 # We only use this code for GNU lds that support --whole-archive.
14700 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14701 else
14702 # Exported symbols can be pulled into shared objects from archives
14703 whole_archive_flag_spec='$convenience'
14704 fi
14705 archive_cmds_need_lc=yes
14706 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14707 # -brtl affects multiple linker settings, -berok does not and is overridden later
14708 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14709 if test svr4 != "$with_aix_soname"; then
14710 # This is similar to how AIX traditionally builds its shared libraries.
14711 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14712 fi
14713 if test aix != "$with_aix_soname"; then
14714 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14715 else
14716 # used by -dlpreopen to get the symbols
14717 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14718 fi
14719 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14720 fi
14721 fi
14722 ;;
14723
14724 amigaos*)
14725 case $host_cpu in
14726 powerpc)
14727 # see comment about AmigaOS4 .so support
14728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14729 archive_expsym_cmds=''
14730 ;;
14731 m68k)
14732 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)'
14733 hardcode_libdir_flag_spec='-L$libdir'
14734 hardcode_minus_L=yes
14735 ;;
14736 esac
14737 ;;
14738
14739 bsdi[45]*)
14740 export_dynamic_flag_spec=-rdynamic
14741 ;;
14742
14743 cygwin* | mingw* | windows* | pw32* | cegcc*)
14744 # When not using gcc, we currently assume that we are using
14745 # Microsoft Visual C++ or Intel C++ Compiler.
14746 # hardcode_libdir_flag_spec is actually meaningless, as there is
14747 # no search path for DLLs.
14748 case $cc_basename in
14749 cl* | icl*)
14750 # Native MSVC or ICC
14751 hardcode_libdir_flag_spec=' '
14752 allow_undefined_flag=unsupported
14753 always_export_symbols=yes
14754 file_list_spec='@'
14755 # Tell ltmain to make .lib files, not .a files.
14756 libext=lib
14757 # Tell ltmain to make .dll files, not .so files.
14758 shrext_cmds=.dll
14759 # FIXME: Setting linknames here is a bad hack.
14760 archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14761 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14762 cp "$export_symbols" "$output_objdir/$soname.def";
14763 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14764 else
14765 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14766 fi~
14767 $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14768 linknames='
14769 # The linker will not automatically build a static lib if we build a DLL.
14770 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14771 enable_shared_with_static_runtimes=yes
14772 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14773 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14774 # Don't use ranlib
14775 old_postinstall_cmds='chmod 644 $oldlib'
14776 postlink_cmds='lt_outputfile="@OUTPUT@"~
14777 lt_tool_outputfile="@TOOL_OUTPUT@"~
14778 case $lt_outputfile in
14779 *.exe|*.EXE) ;;
14780 *)
14781 lt_outputfile=$lt_outputfile.exe
14782 lt_tool_outputfile=$lt_tool_outputfile.exe
14783 ;;
14784 esac~
14785 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14786 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14787 $RM "$lt_outputfile.manifest";
14788 fi'
14789 ;;
14790 *)
14791 # Assume MSVC and ICC wrapper
14792 hardcode_libdir_flag_spec=' '
14793 allow_undefined_flag=unsupported
14794 # Tell ltmain to make .lib files, not .a files.
14795 libext=lib
14796 # Tell ltmain to make .dll files, not .so files.
14797 shrext_cmds=.dll
14798 # FIXME: Setting linknames here is a bad hack.
14799 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14800 # The linker will automatically build a .lib file if we build a DLL.
14801 old_archive_from_new_cmds='true'
14802 # FIXME: Should let the user specify the lib program.
14803 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14804 enable_shared_with_static_runtimes=yes
14805 ;;
14806 esac
14807 ;;
14808
14809 darwin* | rhapsody*)
14810
14811
14812 archive_cmds_need_lc=no
14813 hardcode_direct=no
14814 hardcode_automatic=yes
14815 hardcode_shlibpath_var=unsupported
14816 if test yes = "$lt_cv_ld_force_load"; then
14817 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14818
14819 else
14820 whole_archive_flag_spec=''
14821 fi
14822 link_all_deplibs=yes
14823 allow_undefined_flag=$_lt_dar_allow_undefined
14824 case $cc_basename in
14825 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14826 *) _lt_dar_can_shared=$GCC ;;
14827 esac
14828 if test yes = "$_lt_dar_can_shared"; then
14829 output_verbose_link_cmd=func_echo_all
14830 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14831 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14832 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"
14833 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"
14834
14835 else
14836 ld_shlibs=no
14837 fi
14838
14839 ;;
14840
14841 dgux*)
14842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14843 hardcode_libdir_flag_spec='-L$libdir'
14844 hardcode_shlibpath_var=no
14845 ;;
14846
14847 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14848 # support. Future versions do this automatically, but an explicit c++rt0.o
14849 # does not break anything, and helps significantly (at the cost of a little
14850 # extra space).
14851 freebsd2.2*)
14852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14853 hardcode_libdir_flag_spec='-R$libdir'
14854 hardcode_direct=yes
14855 hardcode_shlibpath_var=no
14856 ;;
14857
14858 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14859 freebsd2.*)
14860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14861 hardcode_direct=yes
14862 hardcode_minus_L=yes
14863 hardcode_shlibpath_var=no
14864 ;;
14865
14866 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14867 freebsd* | dragonfly* | midnightbsd*)
14868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14869 hardcode_libdir_flag_spec='-R$libdir'
14870 hardcode_direct=yes
14871 hardcode_shlibpath_var=no
14872 ;;
14873
14874 hpux9*)
14875 if test yes = "$GCC"; then
14876 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14877 else
14878 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14879 fi
14880 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14881 hardcode_libdir_separator=:
14882 hardcode_direct=yes
14883
14884 # hardcode_minus_L: Not really in the search PATH,
14885 # but as the default location of the library.
14886 hardcode_minus_L=yes
14887 export_dynamic_flag_spec='$wl-E'
14888 ;;
14889
14890 hpux10*)
14891 if test yes,no = "$GCC,$with_gnu_ld"; then
14892 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag'
14893 module_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag'
14894 else
14895 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld'
14896 module_cmds='$LD -b -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld'
14897 fi
14898 if test no = "$with_gnu_ld"; then
14899 hardcode_libdir_flag_spec='$wl+b $wl$libdir $fix_hardcoded_libdir_flag'
14900 hardcode_libdir_separator=:
14901 hardcode_direct=yes
14902 hardcode_direct_absolute=yes
14903 export_dynamic_flag_spec='$wl-E'
14904 # hardcode_minus_L: Not really in the search PATH,
14905 # but as the default location of the library.
14906 hardcode_minus_L=yes
14907 # gcc-3.0.1 (collect2) breaks on -Wl,+cdp.
14908 # HP-cc ignores -Wl,+cdp, and we test the linker for +cdp support.
14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if +cdp linker flag works" >&5
14910 printf %s "checking if +cdp linker flag works... " >&6; }
14911 if test ${lt_cv_ldflag_cdp_works+y}
14912 then :
14913 printf %s "(cached) " >&6
14914 else case e in #(
14915 e) lt_cv_ldflag_cdp_works=no
14916 save_LDFLAGS=$LDFLAGS
14917 LDFLAGS="$LDFLAGS -Wl,+cdp -Wl,/usr/lib/libc.1:/nonexistent -Wl,+cdp -Wl,/lib/libc.1:/nonexistent"
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14920
14921 int
14922 main (void)
14923 {
14924
14925 ;
14926 return 0;
14927 }
14928 _ACEOF
14929 if ac_fn_c_try_link "$LINENO"
14930 then :
14931 lt_cv_ldflag_cdp_works=yes
14932 else case e in #(
14933 e) lt_cv_ldflag_cdp_works=no ;;
14934 esac
14935 fi
14936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14937 conftest$ac_exeext conftest.$ac_ext
14938 LDFLAGS="$save_LDFLAGS"
14939 ;;
14940 esac
14941 fi
14942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ldflag_cdp_works" >&5
14943 printf "%s\n" "$lt_cv_ldflag_cdp_works" >&6; }
14944 if test "$lt_cv_ldflag_cdp_works" = yes; then
14945 fix_hardcoded_libdir_flag_spec='${wl}+cdp ${wl}${linkdir}/${dlname}:${libdir}/${dlname}'
14946 fix_hardcoded_libdir_flag_spec_ld='+cdp ${linkdir}/${dlname}:${libdir}/${dlname}'
14947 fi
14948 fi
14949 ;;
14950
14951 hpux11*)
14952 if test yes,no = "$GCC,$with_gnu_ld"; then
14953 case $host_cpu in
14954 hppa*64*)
14955 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14956 module_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14957 ;;
14958 ia64*)
14959 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14960 module_cmds='$CC -shared $pic_flag $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14961 ;;
14962 *)
14963 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag'
14964 module_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag'
14965 ;;
14966 esac
14967 else
14968 case $host_cpu in
14969 hppa*64*)
14970 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14971 module_cmds='$CC -b -o $lib $libobjs $deplibs $compiler_flags'
14972 ;;
14973 ia64*)
14974 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14975 module_cmds='$CC -b $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14976 ;;
14977 *)
14978
14979 # Older versions of the 11.00 compiler do not understand -b yet
14980 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14982 printf %s "checking if $CC understands -b... " >&6; }
14983 if test ${lt_cv_prog_compiler__b+y}
14984 then :
14985 printf %s "(cached) " >&6
14986 else case e in #(
14987 e) lt_cv_prog_compiler__b=no
14988 save_LDFLAGS=$LDFLAGS
14989 LDFLAGS="$LDFLAGS -b"
14990 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14992 # The linker can only warn and ignore the option if not recognized
14993 # So say no if there are warnings
14994 if test -s conftest.err; then
14995 # Append any errors to the config.log.
14996 cat conftest.err 1>&5
14997 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14999 if diff conftest.exp conftest.er2 >/dev/null; then
15000 lt_cv_prog_compiler__b=yes
15001 fi
15002 else
15003 lt_cv_prog_compiler__b=yes
15004 fi
15005 fi
15006 $RM -r conftest*
15007 LDFLAGS=$save_LDFLAGS
15008 ;;
15009 esac
15010 fi
15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15012 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
15013
15014 if test yes = "$lt_cv_prog_compiler__b"; then
15015
15016 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag'
15017 module_cmds='$CC -b -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag'
15018
15019 else
15020
15021 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld'
15022 module_cmds='$LD -b -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld'
15023
15024 fi
15025
15026 ;;
15027 esac
15028 fi
15029 if test no = "$with_gnu_ld"; then
15030 hardcode_libdir_flag_spec='$wl+b $wl$libdir $fix_hardcoded_libdir_flag'
15031 hardcode_libdir_separator=:
15032
15033 case $host_cpu in
15034 hppa*64*|ia64*)
15035 hardcode_direct=no
15036 hardcode_shlibpath_var=no
15037 ;;
15038 *)
15039 hardcode_direct=yes
15040 hardcode_direct_absolute=yes
15041 export_dynamic_flag_spec='$wl-E'
15042
15043 # hardcode_minus_L: Not really in the search PATH,
15044 # but as the default location of the library.
15045 hardcode_minus_L=yes
15046 # gcc-3.0.1 (collect2) breaks on -Wl,+cdp.
15047 # HP-cc ignores -Wl,+cdp, and we test the linker for +cdp support.
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if +cdp linker flag works" >&5
15049 printf %s "checking if +cdp linker flag works... " >&6; }
15050 if test ${lt_cv_ldflag_cdp_works+y}
15051 then :
15052 printf %s "(cached) " >&6
15053 else case e in #(
15054 e) lt_cv_ldflag_cdp_works=no
15055 save_LDFLAGS=$LDFLAGS
15056 LDFLAGS="$LDFLAGS -Wl,+cdp -Wl,/usr/lib/libc.1:/nonexistent -Wl,+cdp -Wl,/lib/libc.1:/nonexistent"
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15059
15060 int
15061 main (void)
15062 {
15063
15064 ;
15065 return 0;
15066 }
15067 _ACEOF
15068 if ac_fn_c_try_link "$LINENO"
15069 then :
15070 lt_cv_ldflag_cdp_works=yes
15071 else case e in #(
15072 e) lt_cv_ldflag_cdp_works=no ;;
15073 esac
15074 fi
15075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15076 conftest$ac_exeext conftest.$ac_ext
15077 LDFLAGS="$save_LDFLAGS"
15078 ;;
15079 esac
15080 fi
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ldflag_cdp_works" >&5
15082 printf "%s\n" "$lt_cv_ldflag_cdp_works" >&6; }
15083 if test "$lt_cv_ldflag_cdp_works" = yes; then
15084 fix_hardcoded_libdir_flag_spec='${wl}+cdp ${wl}${linkdir}/${dlname}:${libdir}/${dlname}'
15085 fix_hardcoded_libdir_flag_spec_ld='+cdp ${linkdir}/${dlname}:${libdir}/${dlname}'
15086 fi
15087 ;;
15088 esac
15089 fi
15090 ;;
15091
15092 irix5* | irix6* | nonstopux*)
15093 if test yes = "$GCC"; then
15094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15095 # Try to use the -exported_symbol ld option, if it does not
15096 # work, assume that -exports_file does not work either and
15097 # implicitly export all symbols.
15098 # This should be the same for all languages, so no per-tag cache variable.
15099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15100 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15101 if test ${lt_cv_irix_exported_symbol+y}
15102 then :
15103 printf %s "(cached) " >&6
15104 else case e in #(
15105 e) save_LDFLAGS=$LDFLAGS
15106 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15109 int foo (void) { return 0; }
15110 _ACEOF
15111 if ac_fn_c_try_link "$LINENO"
15112 then :
15113 lt_cv_irix_exported_symbol=yes
15114 else case e in #(
15115 e) lt_cv_irix_exported_symbol=no ;;
15116 esac
15117 fi
15118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15119 conftest$ac_exeext conftest.$ac_ext
15120 LDFLAGS=$save_LDFLAGS ;;
15121 esac
15122 fi
15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15124 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
15125 if test yes = "$lt_cv_irix_exported_symbol"; then
15126 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
15127 fi
15128 else
15129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15130 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
15131 fi
15132 archive_cmds_need_lc='no'
15133 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15134 hardcode_libdir_separator=:
15135 inherit_rpath=yes
15136 link_all_deplibs=yes
15137 ;;
15138
15139 linux*)
15140 case $cc_basename in
15141 tcc*)
15142 # Fabrice Bellard et al's Tiny C Compiler
15143 ld_shlibs=yes
15144 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15145 ;;
15146 esac
15147 ;;
15148
15149 netbsd*)
15150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15152 else
15153 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15154 fi
15155 hardcode_libdir_flag_spec='-R$libdir'
15156 hardcode_direct=yes
15157 hardcode_shlibpath_var=no
15158 ;;
15159
15160 newsos6)
15161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15162 hardcode_direct=yes
15163 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15164 hardcode_libdir_separator=:
15165 hardcode_shlibpath_var=no
15166 ;;
15167
15168 *nto* | *qnx*)
15169 ;;
15170
15171 openbsd*)
15172 if test -f /usr/libexec/ld.so; then
15173 hardcode_direct=yes
15174 hardcode_shlibpath_var=no
15175 hardcode_direct_absolute=yes
15176 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15178 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
15179 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15180 export_dynamic_flag_spec='$wl-E'
15181 else
15182 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15183 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15184 fi
15185 else
15186 ld_shlibs=no
15187 fi
15188 ;;
15189
15190 os2*)
15191 hardcode_libdir_flag_spec='-L$libdir'
15192 hardcode_minus_L=yes
15193 allow_undefined_flag=unsupported
15194 shrext_cmds=.dll
15195 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15196 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15197 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15198 $ECHO EXPORTS >> $output_objdir/$libname.def~
15199 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15200 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15201 emximp -o $lib $output_objdir/$libname.def'
15202 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15203 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15204 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15205 $ECHO EXPORTS >> $output_objdir/$libname.def~
15206 prefix_cmds="$SED"~
15207 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15208 prefix_cmds="$prefix_cmds -e 1d";
15209 fi~
15210 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15211 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15212 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15213 emximp -o $lib $output_objdir/$libname.def'
15214 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15215 enable_shared_with_static_runtimes=yes
15216 file_list_spec='@'
15217 ;;
15218
15219 osf3*)
15220 if test yes = "$GCC"; then
15221 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15222 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15223 else
15224 allow_undefined_flag=' -expect_unresolved \*'
15225 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15226 fi
15227 archive_cmds_need_lc='no'
15228 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15229 hardcode_libdir_separator=:
15230 ;;
15231
15232 osf4* | osf5*) # as osf3* with the addition of -msym flag
15233 if test yes = "$GCC"; then
15234 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15235 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15237 else
15238 allow_undefined_flag=' -expect_unresolved \*'
15239 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15240 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~
15241 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
15242
15243 # Both c and cxx compiler support -rpath directly
15244 hardcode_libdir_flag_spec='-rpath $libdir'
15245 fi
15246 archive_cmds_need_lc='no'
15247 hardcode_libdir_separator=:
15248 ;;
15249
15250 solaris*)
15251 no_undefined_flag=' -z defs'
15252 if test yes = "$GCC"; then
15253 wlarc='$wl'
15254 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15255 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15256 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15257 else
15258 case `$CC -V 2>&1` in
15259 *"Compilers 5.0"*)
15260 wlarc=''
15261 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15262 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15263 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15264 ;;
15265 *)
15266 wlarc='$wl'
15267 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15269 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15270 ;;
15271 esac
15272 fi
15273 hardcode_libdir_flag_spec='-R$libdir'
15274 hardcode_shlibpath_var=no
15275 case $host_os in
15276 solaris2.[0-5] | solaris2.[0-5].*) ;;
15277 *)
15278 # The compiler driver will combine and reorder linker options,
15279 # but understands '-z linker_flag'. GCC discards it without '$wl',
15280 # but is careful enough not to reorder.
15281 # Supported since Solaris 2.6 (maybe 2.5.1?)
15282 if test yes = "$GCC"; then
15283 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15284 else
15285 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15286 fi
15287 ;;
15288 esac
15289 link_all_deplibs=yes
15290 ;;
15291
15292 sunos4*)
15293 if test sequent = "$host_vendor"; then
15294 # Use $CC to link under sequent, because it throws in some extra .o
15295 # files that make .init and .fini sections work.
15296 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15297 else
15298 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15299 fi
15300 hardcode_libdir_flag_spec='-L$libdir'
15301 hardcode_direct=yes
15302 hardcode_minus_L=yes
15303 hardcode_shlibpath_var=no
15304 ;;
15305
15306 sysv4)
15307 case $host_vendor in
15308 sni)
15309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15310 hardcode_direct=yes # is this really true???
15311 ;;
15312 siemens)
15313 ## LD is ld it makes a PLAMLIB
15314 ## CC just makes a GrossModule.
15315 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15316 reload_cmds='$CC -r -o $output$reload_objs'
15317 hardcode_direct=no
15318 ;;
15319 motorola)
15320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15321 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15322 ;;
15323 esac
15324 runpath_var='LD_RUN_PATH'
15325 hardcode_shlibpath_var=no
15326 ;;
15327
15328 sysv4.3*)
15329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15330 hardcode_shlibpath_var=no
15331 export_dynamic_flag_spec='-Bexport'
15332 ;;
15333
15334 sysv4*MP*)
15335 if test -d /usr/nec; then
15336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15337 hardcode_shlibpath_var=no
15338 runpath_var=LD_RUN_PATH
15339 hardcode_runpath_var=yes
15340 ld_shlibs=yes
15341 fi
15342 ;;
15343
15344 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15345 no_undefined_flag='$wl-z,text'
15346 archive_cmds_need_lc=no
15347 hardcode_shlibpath_var=no
15348 runpath_var='LD_RUN_PATH'
15349
15350 if test yes = "$GCC"; then
15351 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15352 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15353 else
15354 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15355 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15356 fi
15357 ;;
15358
15359 sysv5* | sco3.2v5* | sco5v6*)
15360 # Note: We CANNOT use -z defs as we might desire, because we do not
15361 # link with -lc, and that would cause any symbols used from libc to
15362 # always be unresolved, which means just about no library would
15363 # ever link correctly. If we're not using GNU ld we use -z text
15364 # though, which does catch some bad symbols but isn't as heavy-handed
15365 # as -z defs.
15366 no_undefined_flag='$wl-z,text'
15367 allow_undefined_flag='$wl-z,nodefs'
15368 archive_cmds_need_lc=no
15369 hardcode_shlibpath_var=no
15370 hardcode_libdir_flag_spec='$wl-R,$libdir'
15371 hardcode_libdir_separator=':'
15372 link_all_deplibs=yes
15373 export_dynamic_flag_spec='$wl-Bexport'
15374 runpath_var='LD_RUN_PATH'
15375
15376 if test yes = "$GCC"; then
15377 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15378 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15379 else
15380 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15381 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15382 fi
15383 ;;
15384
15385 uts4*)
15386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387 hardcode_libdir_flag_spec='-L$libdir'
15388 hardcode_shlibpath_var=no
15389 ;;
15390
15391 *)
15392 ld_shlibs=no
15393 ;;
15394 esac
15395
15396 if test sni = "$host_vendor"; then
15397 case $host in
15398 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15399 export_dynamic_flag_spec='$wl-Blargedynsym'
15400 ;;
15401 esac
15402 fi
15403 fi
15404
15405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15406 printf "%s\n" "$ld_shlibs" >&6; }
15407 test no = "$ld_shlibs" && can_build_shared=no
15408
15409 with_gnu_ld=$with_gnu_ld
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425 #
15426 # Do we need to explicitly link libc?
15427 #
15428 case "x$archive_cmds_need_lc" in
15429 x|xyes)
15430 # Assume -lc should be added
15431 archive_cmds_need_lc=yes
15432
15433 if test yes,yes = "$GCC,$enable_shared"; then
15434 case $archive_cmds in
15435 *'~'*)
15436 # FIXME: we may have to deal with multi-command sequences.
15437 ;;
15438 '$CC '*)
15439 # Test whether the compiler implicitly links with -lc since on some
15440 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15441 # to ld, don't add -lc before -lgcc.
15442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15443 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15444 if test ${lt_cv_archive_cmds_need_lc+y}
15445 then :
15446 printf %s "(cached) " >&6
15447 else case e in #(
15448 e) $RM conftest*
15449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15450
15451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15452 (eval $ac_compile) 2>&5
15453 ac_status=$?
15454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15455 test $ac_status = 0; } 2>conftest.err; then
15456 soname=conftest
15457 lib=conftest
15458 libobjs=conftest.$ac_objext
15459 deplibs=
15460 wl=$lt_prog_compiler_wl
15461 pic_flag=$lt_prog_compiler_pic
15462 compiler_flags=-v
15463 linker_flags=-v
15464 verstring=
15465 output_objdir=.
15466 libname=conftest
15467 lt_save_allow_undefined_flag=$allow_undefined_flag
15468 allow_undefined_flag=
15469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15470 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15471 ac_status=$?
15472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15473 test $ac_status = 0; }
15474 then
15475 lt_cv_archive_cmds_need_lc=no
15476 else
15477 lt_cv_archive_cmds_need_lc=yes
15478 fi
15479 allow_undefined_flag=$lt_save_allow_undefined_flag
15480 else
15481 cat conftest.err 1>&5
15482 fi
15483 $RM conftest*
15484 ;;
15485 esac
15486 fi
15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15488 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15489 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15490 ;;
15491 esac
15492 fi
15493 ;;
15494 esac
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15658 printf %s "checking dynamic linker characteristics... " >&6; }
15659
15660 if test yes = "$GCC"; then
15661 case $host_os in
15662 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15663 *) lt_awk_arg='/^libraries:/' ;;
15664 esac
15665 case $host_os in
15666 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15667 *) lt_sed_strip_eq='s|=/|/|g' ;;
15668 esac
15669 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15670 case $lt_search_path_spec in
15671 *\;*)
15672 # if the path contains ";" then we assume it to be the separator
15673 # otherwise default to the standard path separator (i.e. ":") - it is
15674 # assumed that no part of a normal pathname contains ";" but that should
15675 # okay in the real world where ";" in dirpaths is itself problematic.
15676 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15677 ;;
15678 *)
15679 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15680 ;;
15681 esac
15682 # Ok, now we have the path, separated by spaces, we can step through it
15683 # and add multilib dir if necessary...
15684 lt_tmp_lt_search_path_spec=
15685 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15686 # ...but if some path component already ends with the multilib dir we assume
15687 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15688 case "$lt_multi_os_dir; $lt_search_path_spec " in
15689 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15690 lt_multi_os_dir=
15691 ;;
15692 esac
15693 for lt_sys_path in $lt_search_path_spec; do
15694 if test -d "$lt_sys_path$lt_multi_os_dir"; then
15695 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15696 elif test -n "$lt_multi_os_dir"; then
15697 test -d "$lt_sys_path" && \
15698 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15699 fi
15700 done
15701 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15702 BEGIN {RS = " "; FS = "/|\n";} {
15703 lt_foo = "";
15704 lt_count = 0;
15705 for (lt_i = NF; lt_i > 0; lt_i--) {
15706 if ($lt_i != "" && $lt_i != ".") {
15707 if ($lt_i == "..") {
15708 lt_count++;
15709 } else {
15710 if (lt_count == 0) {
15711 lt_foo = "/" $lt_i lt_foo;
15712 } else {
15713 lt_count--;
15714 }
15715 }
15716 }
15717 }
15718 if (lt_foo != "") { lt_freq[lt_foo]++; }
15719 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15720 }'`
15721 # AWK program above erroneously prepends '/' to C:/dos/paths
15722 # for these hosts.
15723 case $host_os in
15724 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15725 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15726 esac
15727 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15728 else
15729 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15730 fi
15731 library_names_spec=
15732 libname_spec='lib$name'
15733 soname_spec=
15734 shrext_cmds=.so
15735 postinstall_cmds=
15736 postuninstall_cmds=
15737 finish_cmds=
15738 finish_eval=
15739 shlibpath_var=
15740 shlibpath_overrides_runpath=unknown
15741 version_type=none
15742 dynamic_linker="$host_os ld.so"
15743 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15744 need_lib_prefix=unknown
15745 hardcode_into_libs=no
15746
15747 # when you set need_version to no, make sure it does not cause -set_version
15748 # flags to be left without arguments
15749 need_version=unknown
15750
15751
15752
15753 case $host_os in
15754 aix3*)
15755 version_type=linux # correct to gnu/linux during the next big refactor
15756 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15757 shlibpath_var=LIBPATH
15758
15759 # AIX 3 has no versioning support, so we append a major version to the name.
15760 soname_spec='$libname$release$shared_ext$major'
15761 ;;
15762
15763 aix[4-9]*)
15764 version_type=linux # correct to gnu/linux during the next big refactor
15765 need_lib_prefix=no
15766 need_version=no
15767 hardcode_into_libs=yes
15768 if test ia64 = "$host_cpu"; then
15769 # AIX 5 supports IA64
15770 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 else
15773 # With GCC up to 2.95.x, collect2 would create an import file
15774 # for dependence libraries. The import file would start with
15775 # the line '#! .'. This would cause the generated library to
15776 # depend on '.', always an invalid library. This was fixed in
15777 # development snapshots of GCC prior to 3.0.
15778 case $host_os in
15779 aix4 | aix4.[01] | aix4.[01].*)
15780 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15781 echo ' yes '
15782 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15783 :
15784 else
15785 can_build_shared=no
15786 fi
15787 ;;
15788 esac
15789 # Using Import Files as archive members, it is possible to support
15790 # filename-based versioning of shared library archives on AIX. While
15791 # this would work for both with and without runtime linking, it will
15792 # prevent static linking of such archives. So we do filename-based
15793 # shared library versioning with .so extension only, which is used
15794 # when both runtime linking and shared linking is enabled.
15795 # Unfortunately, runtime linking may impact performance, so we do
15796 # not want this to be the default eventually. Also, we use the
15797 # versioned .so libs for executables only if there is the -brtl
15798 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
15799 # To allow for filename-based versioning support, we need to create
15800 # libNAME.so.V as an archive file, containing:
15801 # *) an Import File, referring to the versioned filename of the
15802 # archive as well as the shared archive member, telling the
15803 # bitwidth (32 or 64) of that shared object, and providing the
15804 # list of exported symbols of that shared object, eventually
15805 # decorated with the 'weak' keyword
15806 # *) the shared object with the F_LOADONLY flag set, to really avoid
15807 # it being seen by the linker.
15808 # At run time we better use the real file rather than another symlink,
15809 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15810
15811 case $with_aix_soname,$aix_use_runtimelinking in
15812 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15813 # soname into executable. Probably we can add versioning support to
15814 # collect2, so additional links can be useful in future.
15815 aix,yes) # traditional libtool
15816 dynamic_linker='AIX unversionable lib.so'
15817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15818 # instead of lib<name>.a to let people know that these are not
15819 # typical AIX shared libraries.
15820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15821 ;;
15822 aix,no) # traditional AIX only
15823 dynamic_linker='AIX lib.a(lib.so.V)'
15824 # We preserve .a as extension for shared libraries through AIX4.2
15825 # and later when we are not doing run time linking.
15826 library_names_spec='$libname$release.a $libname.a'
15827 soname_spec='$libname$release$shared_ext$major'
15828 ;;
15829 svr4,*) # full svr4 only
15830 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15831 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15832 # We do not specify a path in Import Files, so LIBPATH fires.
15833 shlibpath_overrides_runpath=yes
15834 ;;
15835 *,yes) # both, prefer svr4
15836 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15837 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15838 # unpreferred sharedlib libNAME.a needs extra handling
15839 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15840 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15841 # We do not specify a path in Import Files, so LIBPATH fires.
15842 shlibpath_overrides_runpath=yes
15843 ;;
15844 *,no) # both, prefer aix
15845 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15846 library_names_spec='$libname$release.a $libname.a'
15847 soname_spec='$libname$release$shared_ext$major'
15848 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15849 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15850 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15851 ;;
15852 esac
15853 shlibpath_var=LIBPATH
15854 fi
15855 ;;
15856
15857 amigaos*)
15858 case $host_cpu in
15859 powerpc)
15860 # Since July 2007 AmigaOS4 officially supports .so libraries.
15861 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15863 ;;
15864 m68k)
15865 library_names_spec='$libname.ixlibrary $libname.a'
15866 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15867 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15868 ;;
15869 esac
15870 ;;
15871
15872 beos*)
15873 library_names_spec='$libname$shared_ext'
15874 dynamic_linker="$host_os ld.so"
15875 shlibpath_var=LIBRARY_PATH
15876 ;;
15877
15878 bsdi[45]*)
15879 version_type=linux # correct to gnu/linux during the next big refactor
15880 need_version=no
15881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15882 soname_spec='$libname$release$shared_ext$major'
15883 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15886 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15887 # the default ld.so.conf also contains /usr/contrib/lib and
15888 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15889 # libtool to hard-code these into programs
15890 ;;
15891
15892 cygwin* | mingw* | windows* | pw32* | cegcc*)
15893 version_type=windows
15894 shrext_cmds=.dll
15895 need_version=no
15896 need_lib_prefix=no
15897
15898 case $GCC,$cc_basename in
15899 yes,*)
15900 # gcc
15901 library_names_spec='$libname.dll.a'
15902 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15903 # If user builds GCC with mulitlibs enabled,
15904 # it should just install on $(libdir)
15905 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
15906 if test yes = $multilib; then
15907 postinstall_cmds='base_file=`basename \$file`~
15908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15909 dldir=$destdir/`dirname \$dlpath`~
15910 $install_prog $dir/$dlname $destdir/$dlname~
15911 chmod a+x $destdir/$dlname~
15912 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15913 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
15914 fi'
15915 else
15916 postinstall_cmds='base_file=`basename \$file`~
15917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15918 dldir=$destdir/`dirname \$dlpath`~
15919 test -d \$dldir || mkdir -p \$dldir~
15920 $install_prog $dir/$dlname \$dldir/$dlname~
15921 chmod a+x \$dldir/$dlname~
15922 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15923 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15924 fi'
15925 fi
15926 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15927 dlpath=$dir/\$dldll~
15928 $RM \$dlpath'
15929 shlibpath_overrides_runpath=yes
15930
15931 case $host_os in
15932 cygwin*)
15933 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15934 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15935
15936 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15937 ;;
15938 mingw* | windows* | cegcc*)
15939 # MinGW DLLs use traditional 'lib' prefix
15940 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15941 ;;
15942 pw32*)
15943 # pw32 DLLs use 'pw' prefix rather than 'lib'
15944 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15945 ;;
15946 esac
15947 dynamic_linker='Win32 ld.exe'
15948 ;;
15949
15950 *,cl* | *,icl*)
15951 # Native MSVC or ICC
15952 libname_spec='$name'
15953 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15954 library_names_spec='$libname.dll.lib'
15955
15956 case $build_os in
15957 mingw* | windows*)
15958 sys_lib_search_path_spec=
15959 lt_save_ifs=$IFS
15960 IFS=';'
15961 for lt_path in $LIB
15962 do
15963 IFS=$lt_save_ifs
15964 # Let DOS variable expansion print the short 8.3 style file name.
15965 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15966 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15967 done
15968 IFS=$lt_save_ifs
15969 # Convert to MSYS style.
15970 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15971 ;;
15972 cygwin*)
15973 # Convert to unix form, then to dos form, then back to unix form
15974 # but this time dos style (no spaces!) so that the unix form looks
15975 # like /cygdrive/c/PROGRA~1:/cygdr...
15976 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15977 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15978 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15979 ;;
15980 *)
15981 sys_lib_search_path_spec=$LIB
15982 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15983 # It is most probably a Windows format PATH.
15984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15985 else
15986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15987 fi
15988 # FIXME: find the short name or the path components, as spaces are
15989 # common. (e.g. "Program Files" -> "PROGRA~1")
15990 ;;
15991 esac
15992
15993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15994 postinstall_cmds='base_file=`basename \$file`~
15995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15996 dldir=$destdir/`dirname \$dlpath`~
15997 test -d \$dldir || mkdir -p \$dldir~
15998 $install_prog $dir/$dlname \$dldir/$dlname'
15999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16000 dlpath=$dir/\$dldll~
16001 $RM \$dlpath'
16002 shlibpath_overrides_runpath=yes
16003 dynamic_linker='Win32 link.exe'
16004 ;;
16005
16006 *)
16007 # Assume MSVC and ICC wrapper
16008 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16009 dynamic_linker='Win32 ld.exe'
16010 ;;
16011 esac
16012 # FIXME: first we should search . and the directory the executable is in
16013 shlibpath_var=PATH
16014 ;;
16015
16016 darwin* | rhapsody*)
16017 dynamic_linker="$host_os dyld"
16018 version_type=darwin
16019 need_lib_prefix=no
16020 need_version=no
16021 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16022 soname_spec='$libname$release$major$shared_ext'
16023 shlibpath_overrides_runpath=yes
16024 shlibpath_var=DYLD_LIBRARY_PATH
16025 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16026
16027 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16028 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16029 ;;
16030
16031 dgux*)
16032 version_type=linux # correct to gnu/linux during the next big refactor
16033 need_lib_prefix=no
16034 need_version=no
16035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16036 soname_spec='$libname$release$shared_ext$major'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 ;;
16039
16040 freebsd* | dragonfly* | midnightbsd*)
16041 # DragonFly does not have aout. When/if they implement a new
16042 # versioning mechanism, adjust this.
16043 if test -x /usr/bin/objformat; then
16044 objformat=`/usr/bin/objformat`
16045 else
16046 case $host_os in
16047 freebsd[23].*) objformat=aout ;;
16048 *) objformat=elf ;;
16049 esac
16050 fi
16051 version_type=freebsd-$objformat
16052 case $version_type in
16053 freebsd-elf*)
16054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16055 soname_spec='$libname$release$shared_ext$major'
16056 need_version=no
16057 need_lib_prefix=no
16058 ;;
16059 freebsd-*)
16060 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16061 need_version=yes
16062 ;;
16063 esac
16064 case $host_cpu in
16065 powerpc64)
16066 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
16067 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h. */
16070 int test_pointer_size[sizeof (void *) - 5];
16071
16072 _ACEOF
16073 if ac_fn_c_try_compile "$LINENO"
16074 then :
16075 shlibpath_var=LD_LIBRARY_PATH
16076 else case e in #(
16077 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
16078 esac
16079 fi
16080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16081 ;;
16082 *)
16083 shlibpath_var=LD_LIBRARY_PATH
16084 ;;
16085 esac
16086 case $host_os in
16087 freebsd2.*)
16088 shlibpath_overrides_runpath=yes
16089 ;;
16090 freebsd3.[01]* | freebsdelf3.[01]*)
16091 shlibpath_overrides_runpath=yes
16092 hardcode_into_libs=yes
16093 ;;
16094 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16095 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16096 shlibpath_overrides_runpath=no
16097 hardcode_into_libs=yes
16098 ;;
16099 *) # from 4.6 on, and DragonFly
16100 shlibpath_overrides_runpath=yes
16101 hardcode_into_libs=yes
16102 ;;
16103 esac
16104 ;;
16105
16106 haiku*)
16107 version_type=linux # correct to gnu/linux during the next big refactor
16108 need_lib_prefix=no
16109 need_version=no
16110 dynamic_linker="$host_os runtime_loader"
16111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16112 soname_spec='$libname$release$shared_ext$major'
16113 shlibpath_var=LIBRARY_PATH
16114 shlibpath_overrides_runpath=no
16115 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16116 hardcode_into_libs=yes
16117 ;;
16118
16119 hpux9* | hpux10* | hpux11*)
16120 # Give a soname corresponding to the major version so that dld.sl refuses to
16121 # link against other versions.
16122 version_type=sunos
16123 need_lib_prefix=no
16124 need_version=no
16125 case $host_cpu in
16126 ia64*)
16127 shrext_cmds='.so'
16128 hardcode_into_libs=yes
16129 dynamic_linker="$host_os dld.so"
16130 shlibpath_var=LD_LIBRARY_PATH
16131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16133 soname_spec='$libname$release$shared_ext$major'
16134 if test 32 = "$HPUX_IA64_MODE"; then
16135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16136 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16137 else
16138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16139 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16140 fi
16141 ;;
16142 hppa*64*)
16143 shrext_cmds='.sl'
16144 hardcode_into_libs=yes
16145 dynamic_linker="$host_os dld.sl"
16146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16149 soname_spec='$libname$release$shared_ext$major'
16150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16152 ;;
16153 *)
16154 shrext_cmds='.sl'
16155 dynamic_linker="$host_os dld.sl"
16156 shlibpath_var=SHLIB_PATH
16157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16159 soname_spec='$libname$release$shared_ext$major'
16160 ;;
16161 esac
16162 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16163 postinstall_cmds='chmod 555 $lib'
16164 # or fails outright, so override atomically:
16165 install_override_mode=555
16166 ;;
16167
16168 interix[3-9]*)
16169 version_type=linux # correct to gnu/linux during the next big refactor
16170 need_lib_prefix=no
16171 need_version=no
16172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16173 soname_spec='$libname$release$shared_ext$major'
16174 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16175 shlibpath_var=LD_LIBRARY_PATH
16176 shlibpath_overrides_runpath=no
16177 hardcode_into_libs=yes
16178 ;;
16179
16180 irix5* | irix6* | nonstopux*)
16181 case $host_os in
16182 nonstopux*) version_type=nonstopux ;;
16183 *)
16184 if test yes = "$lt_cv_prog_gnu_ld"; then
16185 version_type=linux # correct to gnu/linux during the next big refactor
16186 else
16187 version_type=irix
16188 fi ;;
16189 esac
16190 need_lib_prefix=no
16191 need_version=no
16192 soname_spec='$libname$release$shared_ext$major'
16193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16194 case $host_os in
16195 irix5* | nonstopux*)
16196 libsuff= shlibsuff=
16197 ;;
16198 *)
16199 case $LD in # libtool.m4 will add one of these switches to LD
16200 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16201 libsuff= shlibsuff= libmagic=32-bit;;
16202 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16203 libsuff=32 shlibsuff=N32 libmagic=N32;;
16204 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16205 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16206 *) libsuff= shlibsuff= libmagic=never-match;;
16207 esac
16208 ;;
16209 esac
16210 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16211 shlibpath_overrides_runpath=no
16212 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16213 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16214 hardcode_into_libs=yes
16215 ;;
16216
16217 # No shared lib support for Linux oldld, aout, or coff.
16218 linux*oldld* | linux*aout* | linux*coff*)
16219 dynamic_linker=no
16220 ;;
16221
16222 linux*android*)
16223 version_type=none # Android doesn't support versioned libraries.
16224 need_lib_prefix=no
16225 need_version=no
16226 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
16227 soname_spec='$libname$release$shared_ext'
16228 finish_cmds=
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16231
16232 # This implies no fast_install, which is unacceptable.
16233 # Some rework will be needed to allow for fast_install
16234 # before this can be enabled.
16235 hardcode_into_libs=yes
16236
16237 dynamic_linker='Android linker'
16238 # -rpath works at least for libraries that are not overridden by
16239 # libraries installed in system locations.
16240 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16241 ;;
16242
16243 # This must be glibc/ELF.
16244 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16245 version_type=linux # correct to gnu/linux during the next big refactor
16246 need_lib_prefix=no
16247 need_version=no
16248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16249 soname_spec='$libname$release$shared_ext$major'
16250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 shlibpath_overrides_runpath=no
16253
16254 # Some binutils ld are patched to set DT_RUNPATH
16255 if test ${lt_cv_shlibpath_overrides_runpath+y}
16256 then :
16257 printf %s "(cached) " >&6
16258 else case e in #(
16259 e) lt_cv_shlibpath_overrides_runpath=no
16260 save_LDFLAGS=$LDFLAGS
16261 save_libdir=$libdir
16262 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16263 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16266
16267 int
16268 main (void)
16269 {
16270
16271 ;
16272 return 0;
16273 }
16274 _ACEOF
16275 if ac_fn_c_try_link "$LINENO"
16276 then :
16277 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16278 then :
16279 lt_cv_shlibpath_overrides_runpath=yes
16280 fi
16281 fi
16282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16283 conftest$ac_exeext conftest.$ac_ext
16284 LDFLAGS=$save_LDFLAGS
16285 libdir=$save_libdir
16286 ;;
16287 esac
16288 fi
16289
16290 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16291
16292 # This implies no fast_install, which is unacceptable.
16293 # Some rework will be needed to allow for fast_install
16294 # before this can be enabled.
16295 hardcode_into_libs=yes
16296
16297 # Ideally, we could use ldconfig to report *all* directories which are
16298 # searched for libraries, however this is still not possible. Aside from not
16299 # being certain /sbin/ldconfig is available, command
16300 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16301 # even though it is searched at run-time. Try to do the best guess by
16302 # appending ld.so.conf contents (and includes) to the search path.
16303 if test -f /etc/ld.so.conf; then
16304 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16305 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16306 fi
16307
16308 # We used to test for /lib/ld.so.1 and disable shared libraries on
16309 # powerpc, because MkLinux only supported shared libraries with the
16310 # GNU dynamic linker. Since this was broken with cross compilers,
16311 # most powerpc-linux boxes support dynamic linking these days and
16312 # people can always --disable-shared, the test was removed, and we
16313 # assume the GNU/Linux dynamic linker is in use.
16314 dynamic_linker='GNU/Linux ld.so'
16315 ;;
16316
16317 netbsd*)
16318 version_type=sunos
16319 need_lib_prefix=no
16320 need_version=no
16321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16322 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16324 dynamic_linker='NetBSD (a.out) ld.so'
16325 else
16326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16327 soname_spec='$libname$release$shared_ext$major'
16328 dynamic_linker='NetBSD ld.elf_so'
16329 fi
16330 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=yes
16332 hardcode_into_libs=yes
16333 ;;
16334
16335 newsos6)
16336 version_type=linux # correct to gnu/linux during the next big refactor
16337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath=yes
16340 ;;
16341
16342 *nto* | *qnx*)
16343 version_type=qnx
16344 need_lib_prefix=no
16345 need_version=no
16346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16347 soname_spec='$libname$release$shared_ext$major'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 shlibpath_overrides_runpath=no
16350 hardcode_into_libs=yes
16351 dynamic_linker='ldqnx.so'
16352 ;;
16353
16354 openbsd*)
16355 version_type=sunos
16356 sys_lib_dlsearch_path_spec=/usr/lib
16357 need_lib_prefix=no
16358 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16359 need_version=no
16360 else
16361 need_version=yes
16362 fi
16363 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16365 shlibpath_var=LD_LIBRARY_PATH
16366 shlibpath_overrides_runpath=yes
16367 ;;
16368
16369 os2*)
16370 libname_spec='$name'
16371 version_type=windows
16372 shrext_cmds=.dll
16373 need_version=no
16374 need_lib_prefix=no
16375 # OS/2 can only load a DLL with a base name of 8 characters or less.
16376 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16377 v=$($ECHO $release$versuffix | tr -d .-);
16378 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16379 $ECHO $n$v`$shared_ext'
16380 library_names_spec='${libname}_dll.$libext'
16381 dynamic_linker='OS/2 ld.exe'
16382 shlibpath_var=BEGINLIBPATH
16383 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16385 postinstall_cmds='base_file=`basename \$file`~
16386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16387 dldir=$destdir/`dirname \$dlpath`~
16388 test -d \$dldir || mkdir -p \$dldir~
16389 $install_prog $dir/$dlname \$dldir/$dlname~
16390 chmod a+x \$dldir/$dlname~
16391 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16392 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16393 fi'
16394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16395 dlpath=$dir/\$dldll~
16396 $RM \$dlpath'
16397 ;;
16398
16399 osf3* | osf4* | osf5*)
16400 version_type=osf
16401 need_lib_prefix=no
16402 need_version=no
16403 soname_spec='$libname$release$shared_ext$major'
16404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16405 shlibpath_var=LD_LIBRARY_PATH
16406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16408 ;;
16409
16410 rdos*)
16411 dynamic_linker=no
16412 ;;
16413
16414 solaris*)
16415 version_type=linux # correct to gnu/linux during the next big refactor
16416 need_lib_prefix=no
16417 need_version=no
16418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16419 soname_spec='$libname$release$shared_ext$major'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=yes
16422 hardcode_into_libs=yes
16423 # ldd complains unless libraries are executable
16424 postinstall_cmds='chmod +x $lib'
16425 ;;
16426
16427 sunos4*)
16428 version_type=sunos
16429 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16431 shlibpath_var=LD_LIBRARY_PATH
16432 shlibpath_overrides_runpath=yes
16433 if test yes = "$with_gnu_ld"; then
16434 need_lib_prefix=no
16435 fi
16436 need_version=yes
16437 ;;
16438
16439 sysv4 | sysv4.3*)
16440 version_type=linux # correct to gnu/linux during the next big refactor
16441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16442 soname_spec='$libname$release$shared_ext$major'
16443 shlibpath_var=LD_LIBRARY_PATH
16444 case $host_vendor in
16445 sni)
16446 shlibpath_overrides_runpath=no
16447 need_lib_prefix=no
16448 runpath_var=LD_RUN_PATH
16449 ;;
16450 siemens)
16451 need_lib_prefix=no
16452 ;;
16453 motorola)
16454 need_lib_prefix=no
16455 need_version=no
16456 shlibpath_overrides_runpath=no
16457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16458 ;;
16459 esac
16460 ;;
16461
16462 sysv4*MP*)
16463 if test -d /usr/nec; then
16464 version_type=linux # correct to gnu/linux during the next big refactor
16465 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16466 soname_spec='$libname$shared_ext.$major'
16467 shlibpath_var=LD_LIBRARY_PATH
16468 fi
16469 ;;
16470
16471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16472 version_type=sco
16473 need_lib_prefix=no
16474 need_version=no
16475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16476 soname_spec='$libname$release$shared_ext$major'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 shlibpath_overrides_runpath=yes
16479 hardcode_into_libs=yes
16480 if test yes = "$with_gnu_ld"; then
16481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16482 else
16483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16484 case $host_os in
16485 sco3.2v5*)
16486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16487 ;;
16488 esac
16489 fi
16490 sys_lib_dlsearch_path_spec='/usr/lib'
16491 ;;
16492
16493 tpf*)
16494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16495 version_type=linux # correct to gnu/linux during the next big refactor
16496 need_lib_prefix=no
16497 need_version=no
16498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16499 shlibpath_var=LD_LIBRARY_PATH
16500 shlibpath_overrides_runpath=no
16501 hardcode_into_libs=yes
16502 ;;
16503
16504 uts4*)
16505 version_type=linux # correct to gnu/linux during the next big refactor
16506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16507 soname_spec='$libname$release$shared_ext$major'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 ;;
16510
16511 *)
16512 dynamic_linker=no
16513 ;;
16514 esac
16515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16516 printf "%s\n" "$dynamic_linker" >&6; }
16517 test no = "$dynamic_linker" && can_build_shared=no
16518
16519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16520 if test yes = "$GCC"; then
16521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16522 fi
16523
16524 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16525 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16526 fi
16527
16528 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16529 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16530 fi
16531
16532 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16533 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16534
16535 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16536 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16537
16538 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16539 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16638 printf %s "checking how to hardcode library paths into programs... " >&6; }
16639 hardcode_action=
16640 if test -n "$hardcode_libdir_flag_spec" ||
16641 test -n "$runpath_var" ||
16642 test yes = "$hardcode_automatic"; then
16643
16644 # We can hardcode non-existent directories.
16645 if test no != "$hardcode_direct" &&
16646 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16647 # have to relink, otherwise we might link with an installed library
16648 # when we should be linking with a yet-to-be-installed one
16649 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16650 test -z "$fix_hardcoded_libdir_flag_spec" &&
16651 test no != "$hardcode_minus_L"; then
16652 # Linking always hardcodes the temporary library directory.
16653 hardcode_action=relink
16654 else
16655 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16656 hardcode_action=immediate
16657 fi
16658 else
16659 # We cannot hardcode anything, or else we can only hardcode existing
16660 # directories.
16661 hardcode_action=unsupported
16662 fi
16663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16664 printf "%s\n" "$hardcode_action" >&6; }
16665
16666 if test relink = "$hardcode_action" ||
16667 test yes = "$inherit_rpath"; then
16668 # Fast installation is not supported
16669 enable_fast_install=no
16670 elif test yes = "$shlibpath_overrides_runpath" ||
16671 test no = "$enable_shared"; then
16672 # Fast installation is not necessary
16673 enable_fast_install=needless
16674 fi
16675
16676
16677
16678
16679
16680
16681 if test yes != "$enable_dlopen"; then
16682 enable_dlopen=unknown
16683 enable_dlopen_self=unknown
16684 enable_dlopen_self_static=unknown
16685 else
16686 lt_cv_dlopen=no
16687 lt_cv_dlopen_libs=
16688
16689 case $host_os in
16690 beos*)
16691 lt_cv_dlopen=load_add_on
16692 lt_cv_dlopen_libs=
16693 lt_cv_dlopen_self=yes
16694 ;;
16695
16696 mingw* | windows* | pw32* | cegcc*)
16697 lt_cv_dlopen=LoadLibrary
16698 lt_cv_dlopen_libs=
16699 ;;
16700
16701 cygwin*)
16702 lt_cv_dlopen=dlopen
16703 lt_cv_dlopen_libs=
16704 ;;
16705
16706 darwin*)
16707 # if libdl is installed we need to link against it
16708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16709 printf %s "checking for dlopen in -ldl... " >&6; }
16710 if test ${ac_cv_lib_dl_dlopen+y}
16711 then :
16712 printf %s "(cached) " >&6
16713 else case e in #(
16714 e) ac_check_lib_save_LIBS=$LIBS
16715 LIBS="-ldl $LIBS"
16716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717 /* end confdefs.h. */
16718
16719 /* Override any GCC internal prototype to avoid an error.
16720 Use char because int might match the return type of a GCC
16721 builtin and then its argument prototype would still apply.
16722 The 'extern "C"' is for builds by C++ compilers;
16723 although this is not generally supported in C code supporting it here
16724 has little cost and some practical benefit (sr 110532). */
16725 #ifdef __cplusplus
16726 extern "C"
16727 #endif
16728 char dlopen (void);
16729 int
16730 main (void)
16731 {
16732 return dlopen ();
16733 ;
16734 return 0;
16735 }
16736 _ACEOF
16737 if ac_fn_c_try_link "$LINENO"
16738 then :
16739 ac_cv_lib_dl_dlopen=yes
16740 else case e in #(
16741 e) ac_cv_lib_dl_dlopen=no ;;
16742 esac
16743 fi
16744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16745 conftest$ac_exeext conftest.$ac_ext
16746 LIBS=$ac_check_lib_save_LIBS ;;
16747 esac
16748 fi
16749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16750 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16751 if test "x$ac_cv_lib_dl_dlopen" = xyes
16752 then :
16753 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16754 else case e in #(
16755 e)
16756 lt_cv_dlopen=dyld
16757 lt_cv_dlopen_libs=
16758 lt_cv_dlopen_self=yes
16759 ;;
16760 esac
16761 fi
16762
16763 ;;
16764
16765 tpf*)
16766 # Don't try to run any link tests for TPF. We know it's impossible
16767 # because TPF is a cross-compiler, and we know how we open DSOs.
16768 lt_cv_dlopen=dlopen
16769 lt_cv_dlopen_libs=
16770 lt_cv_dlopen_self=no
16771 ;;
16772
16773 *)
16774 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16775 if test "x$ac_cv_func_shl_load" = xyes
16776 then :
16777 lt_cv_dlopen=shl_load
16778 else case e in #(
16779 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16780 printf %s "checking for shl_load in -ldld... " >&6; }
16781 if test ${ac_cv_lib_dld_shl_load+y}
16782 then :
16783 printf %s "(cached) " >&6
16784 else case e in #(
16785 e) ac_check_lib_save_LIBS=$LIBS
16786 LIBS="-ldld $LIBS"
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h. */
16789
16790 /* Override any GCC internal prototype to avoid an error.
16791 Use char because int might match the return type of a GCC
16792 builtin and then its argument prototype would still apply.
16793 The 'extern "C"' is for builds by C++ compilers;
16794 although this is not generally supported in C code supporting it here
16795 has little cost and some practical benefit (sr 110532). */
16796 #ifdef __cplusplus
16797 extern "C"
16798 #endif
16799 char shl_load (void);
16800 int
16801 main (void)
16802 {
16803 return shl_load ();
16804 ;
16805 return 0;
16806 }
16807 _ACEOF
16808 if ac_fn_c_try_link "$LINENO"
16809 then :
16810 ac_cv_lib_dld_shl_load=yes
16811 else case e in #(
16812 e) ac_cv_lib_dld_shl_load=no ;;
16813 esac
16814 fi
16815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16816 conftest$ac_exeext conftest.$ac_ext
16817 LIBS=$ac_check_lib_save_LIBS ;;
16818 esac
16819 fi
16820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16821 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16822 if test "x$ac_cv_lib_dld_shl_load" = xyes
16823 then :
16824 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16825 else case e in #(
16826 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16827 if test "x$ac_cv_func_dlopen" = xyes
16828 then :
16829 lt_cv_dlopen=dlopen
16830 else case e in #(
16831 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16832 printf %s "checking for dlopen in -ldl... " >&6; }
16833 if test ${ac_cv_lib_dl_dlopen+y}
16834 then :
16835 printf %s "(cached) " >&6
16836 else case e in #(
16837 e) ac_check_lib_save_LIBS=$LIBS
16838 LIBS="-ldl $LIBS"
16839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840 /* end confdefs.h. */
16841
16842 /* Override any GCC internal prototype to avoid an error.
16843 Use char because int might match the return type of a GCC
16844 builtin and then its argument prototype would still apply.
16845 The 'extern "C"' is for builds by C++ compilers;
16846 although this is not generally supported in C code supporting it here
16847 has little cost and some practical benefit (sr 110532). */
16848 #ifdef __cplusplus
16849 extern "C"
16850 #endif
16851 char dlopen (void);
16852 int
16853 main (void)
16854 {
16855 return dlopen ();
16856 ;
16857 return 0;
16858 }
16859 _ACEOF
16860 if ac_fn_c_try_link "$LINENO"
16861 then :
16862 ac_cv_lib_dl_dlopen=yes
16863 else case e in #(
16864 e) ac_cv_lib_dl_dlopen=no ;;
16865 esac
16866 fi
16867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16868 conftest$ac_exeext conftest.$ac_ext
16869 LIBS=$ac_check_lib_save_LIBS ;;
16870 esac
16871 fi
16872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16873 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16874 if test "x$ac_cv_lib_dl_dlopen" = xyes
16875 then :
16876 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16877 else case e in #(
16878 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16879 printf %s "checking for dlopen in -lsvld... " >&6; }
16880 if test ${ac_cv_lib_svld_dlopen+y}
16881 then :
16882 printf %s "(cached) " >&6
16883 else case e in #(
16884 e) ac_check_lib_save_LIBS=$LIBS
16885 LIBS="-lsvld $LIBS"
16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h. */
16888
16889 /* Override any GCC internal prototype to avoid an error.
16890 Use char because int might match the return type of a GCC
16891 builtin and then its argument prototype would still apply.
16892 The 'extern "C"' is for builds by C++ compilers;
16893 although this is not generally supported in C code supporting it here
16894 has little cost and some practical benefit (sr 110532). */
16895 #ifdef __cplusplus
16896 extern "C"
16897 #endif
16898 char dlopen (void);
16899 int
16900 main (void)
16901 {
16902 return dlopen ();
16903 ;
16904 return 0;
16905 }
16906 _ACEOF
16907 if ac_fn_c_try_link "$LINENO"
16908 then :
16909 ac_cv_lib_svld_dlopen=yes
16910 else case e in #(
16911 e) ac_cv_lib_svld_dlopen=no ;;
16912 esac
16913 fi
16914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16915 conftest$ac_exeext conftest.$ac_ext
16916 LIBS=$ac_check_lib_save_LIBS ;;
16917 esac
16918 fi
16919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16920 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16921 if test "x$ac_cv_lib_svld_dlopen" = xyes
16922 then :
16923 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16924 else case e in #(
16925 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16926 printf %s "checking for dld_link in -ldld... " >&6; }
16927 if test ${ac_cv_lib_dld_dld_link+y}
16928 then :
16929 printf %s "(cached) " >&6
16930 else case e in #(
16931 e) ac_check_lib_save_LIBS=$LIBS
16932 LIBS="-ldld $LIBS"
16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h. */
16935
16936 /* Override any GCC internal prototype to avoid an error.
16937 Use char because int might match the return type of a GCC
16938 builtin and then its argument prototype would still apply.
16939 The 'extern "C"' is for builds by C++ compilers;
16940 although this is not generally supported in C code supporting it here
16941 has little cost and some practical benefit (sr 110532). */
16942 #ifdef __cplusplus
16943 extern "C"
16944 #endif
16945 char dld_link (void);
16946 int
16947 main (void)
16948 {
16949 return dld_link ();
16950 ;
16951 return 0;
16952 }
16953 _ACEOF
16954 if ac_fn_c_try_link "$LINENO"
16955 then :
16956 ac_cv_lib_dld_dld_link=yes
16957 else case e in #(
16958 e) ac_cv_lib_dld_dld_link=no ;;
16959 esac
16960 fi
16961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16962 conftest$ac_exeext conftest.$ac_ext
16963 LIBS=$ac_check_lib_save_LIBS ;;
16964 esac
16965 fi
16966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16967 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16968 if test "x$ac_cv_lib_dld_dld_link" = xyes
16969 then :
16970 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16971 fi
16972
16973 ;;
16974 esac
16975 fi
16976
16977 ;;
16978 esac
16979 fi
16980
16981 ;;
16982 esac
16983 fi
16984
16985 ;;
16986 esac
16987 fi
16988
16989 ;;
16990 esac
16991 fi
16992
16993 ;;
16994 esac
16995
16996 if test no = "$lt_cv_dlopen"; then
16997 enable_dlopen=no
16998 else
16999 enable_dlopen=yes
17000 fi
17001
17002 case $lt_cv_dlopen in
17003 dlopen)
17004 save_CPPFLAGS=$CPPFLAGS
17005 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17006
17007 save_LDFLAGS=$LDFLAGS
17008 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17009
17010 save_LIBS=$LIBS
17011 LIBS="$lt_cv_dlopen_libs $LIBS"
17012
17013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17014 printf %s "checking whether a program can dlopen itself... " >&6; }
17015 if test ${lt_cv_dlopen_self+y}
17016 then :
17017 printf %s "(cached) " >&6
17018 else case e in #(
17019 e) if test yes = "$cross_compiling"; then :
17020 lt_cv_dlopen_self=cross
17021 else
17022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17023 lt_status=$lt_dlunknown
17024 cat > conftest.$ac_ext <<_LT_EOF
17025 #line $LINENO "configure"
17026 #include "confdefs.h"
17027
17028 #if HAVE_DLFCN_H
17029 #include <dlfcn.h>
17030 #endif
17031
17032 #include <stdio.h>
17033
17034 #ifdef RTLD_GLOBAL
17035 # define LT_DLGLOBAL RTLD_GLOBAL
17036 #else
17037 # ifdef DL_GLOBAL
17038 # define LT_DLGLOBAL DL_GLOBAL
17039 # else
17040 # define LT_DLGLOBAL 0
17041 # endif
17042 #endif
17043
17044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17045 find out it does not work in some platform. */
17046 #ifndef LT_DLLAZY_OR_NOW
17047 # ifdef RTLD_LAZY
17048 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17049 # else
17050 # ifdef DL_LAZY
17051 # define LT_DLLAZY_OR_NOW DL_LAZY
17052 # else
17053 # ifdef RTLD_NOW
17054 # define LT_DLLAZY_OR_NOW RTLD_NOW
17055 # else
17056 # ifdef DL_NOW
17057 # define LT_DLLAZY_OR_NOW DL_NOW
17058 # else
17059 # define LT_DLLAZY_OR_NOW 0
17060 # endif
17061 # endif
17062 # endif
17063 # endif
17064 #endif
17065
17066 /* When -fvisibility=hidden is used, assume the code has been annotated
17067 correspondingly for the symbols needed. */
17068 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17069 int fnord (void) __attribute__((visibility("default")));
17070 #endif
17071
17072 int fnord (void) { return 42; }
17073 int main (void)
17074 {
17075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17076 int status = $lt_dlunknown;
17077
17078 if (self)
17079 {
17080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17081 else
17082 {
17083 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17084 else puts (dlerror ());
17085 }
17086 /* dlclose (self); */
17087 }
17088 else
17089 puts (dlerror ());
17090
17091 return status;
17092 }
17093 _LT_EOF
17094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17095 (eval $ac_link) 2>&5
17096 ac_status=$?
17097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17098 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17099 (./conftest; exit; ) >&5 2>/dev/null
17100 lt_status=$?
17101 case x$lt_status in
17102 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17103 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17104 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17105 esac
17106 else :
17107 # compilation failed
17108 lt_cv_dlopen_self=no
17109 fi
17110 fi
17111 rm -fr conftest*
17112
17113 ;;
17114 esac
17115 fi
17116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17117 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
17118
17119 if test yes = "$lt_cv_dlopen_self"; then
17120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17122 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
17123 if test ${lt_cv_dlopen_self_static+y}
17124 then :
17125 printf %s "(cached) " >&6
17126 else case e in #(
17127 e) if test yes = "$cross_compiling"; then :
17128 lt_cv_dlopen_self_static=cross
17129 else
17130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17131 lt_status=$lt_dlunknown
17132 cat > conftest.$ac_ext <<_LT_EOF
17133 #line $LINENO "configure"
17134 #include "confdefs.h"
17135
17136 #if HAVE_DLFCN_H
17137 #include <dlfcn.h>
17138 #endif
17139
17140 #include <stdio.h>
17141
17142 #ifdef RTLD_GLOBAL
17143 # define LT_DLGLOBAL RTLD_GLOBAL
17144 #else
17145 # ifdef DL_GLOBAL
17146 # define LT_DLGLOBAL DL_GLOBAL
17147 # else
17148 # define LT_DLGLOBAL 0
17149 # endif
17150 #endif
17151
17152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17153 find out it does not work in some platform. */
17154 #ifndef LT_DLLAZY_OR_NOW
17155 # ifdef RTLD_LAZY
17156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17157 # else
17158 # ifdef DL_LAZY
17159 # define LT_DLLAZY_OR_NOW DL_LAZY
17160 # else
17161 # ifdef RTLD_NOW
17162 # define LT_DLLAZY_OR_NOW RTLD_NOW
17163 # else
17164 # ifdef DL_NOW
17165 # define LT_DLLAZY_OR_NOW DL_NOW
17166 # else
17167 # define LT_DLLAZY_OR_NOW 0
17168 # endif
17169 # endif
17170 # endif
17171 # endif
17172 #endif
17173
17174 /* When -fvisibility=hidden is used, assume the code has been annotated
17175 correspondingly for the symbols needed. */
17176 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17177 int fnord (void) __attribute__((visibility("default")));
17178 #endif
17179
17180 int fnord (void) { return 42; }
17181 int main (void)
17182 {
17183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17184 int status = $lt_dlunknown;
17185
17186 if (self)
17187 {
17188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17189 else
17190 {
17191 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17192 else puts (dlerror ());
17193 }
17194 /* dlclose (self); */
17195 }
17196 else
17197 puts (dlerror ());
17198
17199 return status;
17200 }
17201 _LT_EOF
17202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17203 (eval $ac_link) 2>&5
17204 ac_status=$?
17205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17206 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17207 (./conftest; exit; ) >&5 2>/dev/null
17208 lt_status=$?
17209 case x$lt_status in
17210 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17211 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17212 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17213 esac
17214 else :
17215 # compilation failed
17216 lt_cv_dlopen_self_static=no
17217 fi
17218 fi
17219 rm -fr conftest*
17220
17221 ;;
17222 esac
17223 fi
17224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17225 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
17226 fi
17227
17228 CPPFLAGS=$save_CPPFLAGS
17229 LDFLAGS=$save_LDFLAGS
17230 LIBS=$save_LIBS
17231 ;;
17232 esac
17233
17234 case $lt_cv_dlopen_self in
17235 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17236 *) enable_dlopen_self=unknown ;;
17237 esac
17238
17239 case $lt_cv_dlopen_self_static in
17240 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17241 *) enable_dlopen_self_static=unknown ;;
17242 esac
17243 fi
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261 striplib=
17262 old_striplib=
17263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17264 printf %s "checking whether stripping libraries is possible... " >&6; }
17265 if test -z "$STRIP"; then
17266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17267 printf "%s\n" "no" >&6; }
17268 else
17269 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17270 old_striplib="$STRIP --strip-debug"
17271 striplib="$STRIP --strip-unneeded"
17272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17273 printf "%s\n" "yes" >&6; }
17274 else
17275 case $host_os in
17276 darwin*)
17277 # FIXME - insert some real tests, host_os isn't really good enough
17278 striplib="$STRIP -x"
17279 old_striplib="$STRIP -S"
17280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17281 printf "%s\n" "yes" >&6; }
17282 ;;
17283 freebsd*)
17284 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
17285 old_striplib="$STRIP --strip-debug"
17286 striplib="$STRIP --strip-unneeded"
17287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17288 printf "%s\n" "yes" >&6; }
17289 else
17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17291 printf "%s\n" "no" >&6; }
17292 fi
17293 ;;
17294 *)
17295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17296 printf "%s\n" "no" >&6; }
17297 ;;
17298 esac
17299 fi
17300 fi
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313 # Report what library types will actually be built
17314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17315 printf %s "checking if libtool supports shared libraries... " >&6; }
17316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17317 printf "%s\n" "$can_build_shared" >&6; }
17318
17319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17320 printf %s "checking whether to build shared libraries... " >&6; }
17321 test no = "$can_build_shared" && enable_shared=no
17322
17323 # On AIX, shared libraries and static libraries use the same namespace, and
17324 # are all built from PIC.
17325 case $host_os in
17326 aix3*)
17327 test yes = "$enable_shared" && enable_static=no
17328 if test -n "$RANLIB"; then
17329 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17330 postinstall_cmds='$RANLIB $lib'
17331 fi
17332 ;;
17333
17334 aix[4-9]*)
17335 if test ia64 != "$host_cpu"; then
17336 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17337 yes,aix,yes) ;; # shared object as lib.so file only
17338 yes,svr4,*) ;; # shared object as lib.so archive member only
17339 yes,*) enable_static=no ;; # shared object in lib.a archive as well
17340 esac
17341 fi
17342 ;;
17343 esac
17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17345 printf "%s\n" "$enable_shared" >&6; }
17346
17347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17348 printf %s "checking whether to build static libraries... " >&6; }
17349 # Make sure either enable_shared or enable_static is yes.
17350 test yes = "$enable_shared" || enable_static=yes
17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17352 printf "%s\n" "$enable_static" >&6; }
17353
17354
17355
17356
17357 fi
17358 ac_ext=c
17359 ac_cpp='$CPP $CPPFLAGS'
17360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17363
17364 CC=$lt_save_CC
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380 ac_config_commands="$ac_config_commands libtool"
17381
17382
17383
17384
17385 # Only expand once:
17386
17387
17388
17389 case "$host_os" in
17390 aix*)
17391 if test X"$aix_use_runtimelinking" != X"yes"
17392 then :
17393
17394 # Using traditional AIX dynamic shared objects in an archive file.
17395 noexec_file="$libexecdir/sudo/sudo_noexec.a(sudo_noexec.so)"
17396 intercept_file="$libexecdir/sudo/sudo_intercept.a(sudo_intercept.so)"
17397 sudoers_plugin="sudoers.a(sudoers.so)"
17398 python_plugin="python_plugin.a(python_plugin.so)"
17399
17400 fi
17401 ;;
17402 esac
17403 cat >>confdefs.h <<EOF
17404 #define _PATH_SUDOERS_PLUGIN "$sudoers_plugin"
17405 EOF
17406
17407
17408
17409 # Check whether --with-libtool was given.
17410 if test ${with_libtool+y}
17411 then :
17412 withval=$with_libtool; case $with_libtool in
17413 yes|builtin) ;;
17414 no) as_fn_error $? "--without-libtool not supported." "$LINENO" 5
17415 ;;
17416 system) LIBTOOL=libtool
17417 ;;
17418 *) LIBTOOL="$with_libtool"
17419 ;;
17420 esac
17421 fi
17422
17423
17424 if test "$enable_shared" = "no"
17425 then :
17426
17427 enable_intercept=no
17428 with_noexec=no
17429 enable_dlopen=no
17430 lt_cv_dlopen=none
17431 lt_cv_dlopen_libs=
17432 ac_cv_func_dlopen=no
17433 LT_LDFLAGS=-static
17434
17435 fi
17436 LIBDL="$lt_cv_dlopen_libs"
17437 SHLIB_ENABLE="$enable_dlopen"
17438
17439 # Check whether --enable-intercept was given.
17440 if test ${enable_intercept+y}
17441 then :
17442 enableval=$enable_intercept; case "$enableval" in
17443 yes) ;;
17444 no) ;;
17445 *) intercept_file="$enableval"
17446 ;;
17447 esac
17448
17449 else case e in #(
17450 e) enable_intercept="$intercept_file" ;;
17451 esac
17452 fi
17453
17454 INTERCEPTFILE="sudo_intercept.so"
17455 INTERCEPTDIR="`echo $intercept_file|sed -e 's:^${\([^}]*\)}:$(\1):' -e 's:^\([^:]*\)/[^/].*$:\1:'`"
17456
17457
17458 # Check whether --with-noexec was given.
17459 if test ${with_noexec+y}
17460 then :
17461 withval=$with_noexec; case $with_noexec in
17462 yes) ;;
17463 no) ;;
17464 *) noexec_file="$with_noexec"
17465 ;;
17466 esac
17467 else case e in #(
17468 e) with_noexec="$noexec_file" ;;
17469 esac
17470 fi
17471
17472 NOEXECFILE="sudo_noexec.so"
17473 NOEXECDIR="`echo $noexec_file|sed -e 's:^${\([^}]*\)}:$(\1):' -e 's:^\([^:]*\)/[^/].*$:\1:'`"
17474
17475 # Extract the first word of "sha1sum", so it can be a program name with args.
17476 set dummy sha1sum; ac_word=$2
17477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17478 printf %s "checking for $ac_word... " >&6; }
17479 if test ${ac_cv_path_SHA1SUM+y}
17480 then :
17481 printf %s "(cached) " >&6
17482 else case e in #(
17483 e) case $SHA1SUM in
17484 [\\/]* | ?:[\\/]*)
17485 ac_cv_path_SHA1SUM="$SHA1SUM" # Let the user override the test with a path.
17486 ;;
17487 *)
17488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17489 for as_dir in $PATH
17490 do
17491 IFS=$as_save_IFS
17492 case $as_dir in #(((
17493 '') as_dir=./ ;;
17494 */) ;;
17495 *) as_dir=$as_dir/ ;;
17496 esac
17497 for ac_exec_ext in '' $ac_executable_extensions; do
17498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17499 ac_cv_path_SHA1SUM="$as_dir$ac_word$ac_exec_ext"
17500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17501 break 2
17502 fi
17503 done
17504 done
17505 IFS=$as_save_IFS
17506
17507 test -z "$ac_cv_path_SHA1SUM" && ac_cv_path_SHA1SUM="openssl dgst -sha1"
17508 ;;
17509 esac ;;
17510 esac
17511 fi
17512 SHA1SUM=$ac_cv_path_SHA1SUM
17513 if test -n "$SHA1SUM"; then
17514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHA1SUM" >&5
17515 printf "%s\n" "$SHA1SUM" >&6; }
17516 else
17517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17518 printf "%s\n" "no" >&6; }
17519 fi
17520
17521
17522 # Extract the first word of "uname", so it can be a program name with args.
17523 set dummy uname; ac_word=$2
17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17525 printf %s "checking for $ac_word... " >&6; }
17526 if test ${ac_cv_path_UNAMEPROG+y}
17527 then :
17528 printf %s "(cached) " >&6
17529 else case e in #(
17530 e) case $UNAMEPROG in
17531 [\\/]* | ?:[\\/]*)
17532 ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
17533 ;;
17534 *)
17535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17536 for as_dir in $PATH
17537 do
17538 IFS=$as_save_IFS
17539 case $as_dir in #(((
17540 '') as_dir=./ ;;
17541 */) ;;
17542 *) as_dir=$as_dir/ ;;
17543 esac
17544 for ac_exec_ext in '' $ac_executable_extensions; do
17545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17546 ac_cv_path_UNAMEPROG="$as_dir$ac_word$ac_exec_ext"
17547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17548 break 2
17549 fi
17550 done
17551 done
17552 IFS=$as_save_IFS
17553
17554 test -z "$ac_cv_path_UNAMEPROG" && ac_cv_path_UNAMEPROG="uname"
17555 ;;
17556 esac ;;
17557 esac
17558 fi
17559 UNAMEPROG=$ac_cv_path_UNAMEPROG
17560 if test -n "$UNAMEPROG"; then
17561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
17562 printf "%s\n" "$UNAMEPROG" >&6; }
17563 else
17564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17565 printf "%s\n" "no" >&6; }
17566 fi
17567
17568
17569 # Extract the first word of "tr", so it can be a program name with args.
17570 set dummy tr; ac_word=$2
17571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17572 printf %s "checking for $ac_word... " >&6; }
17573 if test ${ac_cv_path_TRPROG+y}
17574 then :
17575 printf %s "(cached) " >&6
17576 else case e in #(
17577 e) case $TRPROG in
17578 [\\/]* | ?:[\\/]*)
17579 ac_cv_path_TRPROG="$TRPROG" # Let the user override the test with a path.
17580 ;;
17581 *)
17582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17583 for as_dir in $PATH
17584 do
17585 IFS=$as_save_IFS
17586 case $as_dir in #(((
17587 '') as_dir=./ ;;
17588 */) ;;
17589 *) as_dir=$as_dir/ ;;
17590 esac
17591 for ac_exec_ext in '' $ac_executable_extensions; do
17592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17593 ac_cv_path_TRPROG="$as_dir$ac_word$ac_exec_ext"
17594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17595 break 2
17596 fi
17597 done
17598 done
17599 IFS=$as_save_IFS
17600
17601 test -z "$ac_cv_path_TRPROG" && ac_cv_path_TRPROG="tr"
17602 ;;
17603 esac ;;
17604 esac
17605 fi
17606 TRPROG=$ac_cv_path_TRPROG
17607 if test -n "$TRPROG"; then
17608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
17609 printf "%s\n" "$TRPROG" >&6; }
17610 else
17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17612 printf "%s\n" "no" >&6; }
17613 fi
17614
17615
17616 # Extract the first word of "groff", so it can be a program name with args.
17617 set dummy groff; ac_word=$2
17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17619 printf %s "checking for $ac_word... " >&6; }
17620 if test ${ac_cv_path_GROFFPROG+y}
17621 then :
17622 printf %s "(cached) " >&6
17623 else case e in #(
17624 e) case $GROFFPROG in
17625 [\\/]* | ?:[\\/]*)
17626 ac_cv_path_GROFFPROG="$GROFFPROG" # Let the user override the test with a path.
17627 ;;
17628 *)
17629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17630 for as_dir in $PATH
17631 do
17632 IFS=$as_save_IFS
17633 case $as_dir in #(((
17634 '') as_dir=./ ;;
17635 */) ;;
17636 *) as_dir=$as_dir/ ;;
17637 esac
17638 for ac_exec_ext in '' $ac_executable_extensions; do
17639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17640 ac_cv_path_GROFFPROG="$as_dir$ac_word$ac_exec_ext"
17641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17642 break 2
17643 fi
17644 done
17645 done
17646 IFS=$as_save_IFS
17647
17648 test -z "$ac_cv_path_GROFFPROG" && ac_cv_path_GROFFPROG="groff"
17649 ;;
17650 esac ;;
17651 esac
17652 fi
17653 GROFFPROG=$ac_cv_path_GROFFPROG
17654 if test -n "$GROFFPROG"; then
17655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROFFPROG" >&5
17656 printf "%s\n" "$GROFFPROG" >&6; }
17657 else
17658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17659 printf "%s\n" "no" >&6; }
17660 fi
17661
17662
17663 # Extract the first word of "mandoc", so it can be a program name with args.
17664 set dummy mandoc; ac_word=$2
17665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17666 printf %s "checking for $ac_word... " >&6; }
17667 if test ${ac_cv_path_MANDOCPROG+y}
17668 then :
17669 printf %s "(cached) " >&6
17670 else case e in #(
17671 e) case $MANDOCPROG in
17672 [\\/]* | ?:[\\/]*)
17673 ac_cv_path_MANDOCPROG="$MANDOCPROG" # Let the user override the test with a path.
17674 ;;
17675 *)
17676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17677 for as_dir in $PATH
17678 do
17679 IFS=$as_save_IFS
17680 case $as_dir in #(((
17681 '') as_dir=./ ;;
17682 */) ;;
17683 *) as_dir=$as_dir/ ;;
17684 esac
17685 for ac_exec_ext in '' $ac_executable_extensions; do
17686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17687 ac_cv_path_MANDOCPROG="$as_dir$ac_word$ac_exec_ext"
17688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17689 break 2
17690 fi
17691 done
17692 done
17693 IFS=$as_save_IFS
17694
17695 test -z "$ac_cv_path_MANDOCPROG" && ac_cv_path_MANDOCPROG="mandoc"
17696 ;;
17697 esac ;;
17698 esac
17699 fi
17700 MANDOCPROG=$ac_cv_path_MANDOCPROG
17701 if test -n "$MANDOCPROG"; then
17702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANDOCPROG" >&5
17703 printf "%s\n" "$MANDOCPROG" >&6; }
17704 else
17705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17706 printf "%s\n" "no" >&6; }
17707 fi
17708
17709
17710 if test "$ac_cv_path_MANDOCPROG" != "mandoc"
17711 then :
17712
17713 ac_cv_path_NROFFPROG="$ac_cv_path_MANDOCPROG"
17714
17715 else case e in #(
17716 e)
17717 # Extract the first word of "nroff", so it can be a program name with args.
17718 set dummy nroff; ac_word=$2
17719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17720 printf %s "checking for $ac_word... " >&6; }
17721 if test ${ac_cv_path_NROFFPROG+y}
17722 then :
17723 printf %s "(cached) " >&6
17724 else case e in #(
17725 e) case $NROFFPROG in
17726 [\\/]* | ?:[\\/]*)
17727 ac_cv_path_NROFFPROG="$NROFFPROG" # Let the user override the test with a path.
17728 ;;
17729 *)
17730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17731 for as_dir in $PATH
17732 do
17733 IFS=$as_save_IFS
17734 case $as_dir in #(((
17735 '') as_dir=./ ;;
17736 */) ;;
17737 *) as_dir=$as_dir/ ;;
17738 esac
17739 for ac_exec_ext in '' $ac_executable_extensions; do
17740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17741 ac_cv_path_NROFFPROG="$as_dir$ac_word$ac_exec_ext"
17742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17743 break 2
17744 fi
17745 done
17746 done
17747 IFS=$as_save_IFS
17748
17749 test -z "$ac_cv_path_NROFFPROG" && ac_cv_path_NROFFPROG="nroff"
17750 ;;
17751 esac ;;
17752 esac
17753 fi
17754 NROFFPROG=$ac_cv_path_NROFFPROG
17755 if test -n "$NROFFPROG"; then
17756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
17757 printf "%s\n" "$NROFFPROG" >&6; }
17758 else
17759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17760 printf "%s\n" "no" >&6; }
17761 fi
17762
17763
17764 ;;
17765 esac
17766 fi
17767 # Check whether nroff supports -mdoc, this may produce incorrect
17768 # results when cross-compiling.
17769 test -n "$MANTYPE" && sudo_cv_var_mantype="$MANTYPE"
17770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which macro set to use for manual pages" >&5
17771 printf %s "checking which macro set to use for manual pages... " >&6; }
17772 if test ${sudo_cv_var_mantype+y}
17773 then :
17774 printf %s "(cached) " >&6
17775 else case e in #(
17776 e)
17777 case "$ac_cv_path_NROFFPROG" in
17778 *mandoc|nroff)
17779 # Prefer mdoc format for mandoc (or when no formatter is present).
17780 sudo_cv_var_mantype="mdoc"
17781 ;;
17782 *)
17783 sudo_cv_var_mantype="man"
17784 echo ".Sh NAME" > conftest
17785 echo ".Nm sudo" >> conftest
17786 echo ".Nd sudo" >> conftest
17787 echo ".Sh DESCRIPTION" >> conftest
17788 echo "sudo" >> conftest
17789 if $ac_cv_path_NROFFPROG -mdoc conftest >/dev/null 2>&1; then
17790 sudo_cv_var_mantype="mdoc"
17791 fi
17792 rm -f conftest
17793 ;;
17794 esac
17795
17796 ;;
17797 esac
17798 fi
17799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_mantype" >&5
17800 printf "%s\n" "$sudo_cv_var_mantype" >&6; }
17801 MANTYPE="$sudo_cv_var_mantype"
17802
17803 if test -n "$sudo_cv_prev_host"
17804 then :
17805
17806 if test "$sudo_cv_prev_host" != "$host"
17807 then :
17808
17809 as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
17810
17811 fi
17812
17813 fi
17814 sudo_cv_prev_host="$host"
17815
17816 cat >>confdefs.h <<EOF
17817 #define CONFIGURE_ARGS "$CONFIGURE_ARGS"
17818 EOF
17819
17820
17821 if test -n "$host_os"
17822 then :
17823
17824 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
17825 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
17826
17827 else case e in #(
17828 e)
17829 OSREV=0
17830 OSMAJOR=0
17831 ;;
17832 esac
17833 fi
17834
17835 case "$host" in
17836 *-*-solaris2*)
17837 printf "%s\n" "#define PAM_SUN_CODEBASE 1" >>confdefs.h
17838
17839
17840 # illumos has a broken fmemopen(3)
17841 if test X"`uname -o 2>/dev/null`" = X"illumos"; then
17842 : ${ac_cv_func_fmemopen='no'}
17843 fi
17844
17845 # Solaris-specific initialization
17846 OS_INIT=os_init_solaris
17847 SUDO_OBJS="${SUDO_OBJS} solaris.o"
17848
17849 # AFS support needs -lucb
17850 if test "$with_AFS" = "yes"
17851 then :
17852
17853 AFS_LIBS="-lc -lucb"
17854
17855 fi
17856 : ${mansectsu='1m'}
17857 : ${mansectform='4'}
17858 : ${mansectmisc='5'}
17859 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
17860
17861 for ac_func in priv_set
17862 do :
17863 ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
17864 if test "x$ac_cv_func_priv_set" = xyes
17865 then :
17866 printf "%s\n" "#define HAVE_PRIV_SET 1" >>confdefs.h
17867 PSMAN=1
17868 fi
17869
17870 done
17871 ;;
17872 *-*-aix*)
17873 printf "%s\n" "#define PAM_SUN_CODEBASE 1" >>confdefs.h
17874
17875
17876 # To get all prototypes (so we pass -Wall)
17877 printf "%s\n" "#define _LINUX_SOURCE_COMPAT 1" >>confdefs.h
17878
17879
17880 # For AIX we build in support for both LAM and PAM
17881 # and choose which to use based on auth_type in
17882 # /etc/security/login.cfg
17883 if test X"${with_pam}${with_aixauth}" = X""
17884 then :
17885
17886 AUTH_EXCL_DEF="AIX_AUTH PAM"
17887
17888 fi
17889
17890 # AIX analog of nsswitch.conf, enabled by default
17891
17892 # Check whether --with-netsvc was given.
17893 if test ${with_netsvc+y}
17894 then :
17895 withval=$with_netsvc; case $with_netsvc in
17896 no) ;;
17897 yes) with_netsvc="/etc/netsvc.conf"
17898 ;;
17899 *) ;;
17900 esac
17901 fi
17902
17903 if test -z "$with_nsswitch" -a -z "$with_netsvc"
17904 then :
17905
17906 with_netsvc="/etc/netsvc.conf"
17907
17908 fi
17909
17910 # cfmakeraw is broken on AIX (and is not documented)
17911 : ${ac_cv_func_cfmakeraw='no'}
17912
17913 # strnlen/strndup may be broken on AIX < 6 depending
17914 # on the libc version, use our own.
17915 if test $OSMAJOR -lt 6
17916 then :
17917
17918 : ${ac_cv_func_strnlen='no'}
17919
17920 fi
17921
17922 # fmemopen(3) has a bug wrt feof() on some AIX versions.
17923 # https://www.ibm.com/support/pages/apar/IJ11845
17924 : ${ac_cv_func_fmemopen='no'}
17925
17926 # getdelim() may or may not be present on AIX <= 6.1.
17927 # bos610 is missing getdelim but bos61J has it.
17928 if test "$enable_package_build" = "yes"
17929 then :
17930
17931 if test $OSMAJOR -le 6
17932 then :
17933
17934 : ${ac_cv_func_getdelim='no'}
17935
17936 fi
17937
17938 fi
17939
17940 # memset_s() may or may ont be present on AIX <= 7.1.
17941 # bos710 is missing memset_s but bos71L has it.
17942 if test "$enable_package_build" = "yes"
17943 then :
17944
17945 if test $OSMAJOR -le 7
17946 then :
17947
17948 : ${ac_cv_func_memset_s='no'}
17949
17950 fi
17951
17952 fi
17953
17954 # Remove timedir on boot, AIX does not have /var/run
17955 INIT_SCRIPT=aix.sh
17956 INIT_DIR=/etc/rc.d/init.d
17957 RC_LINK=/etc/rc.d/rc2.d/S90sudo
17958
17959 # AIX-specific functions
17960 ac_fn_c_check_func "$LINENO" "getuserattr" "ac_cv_func_getuserattr"
17961 if test "x$ac_cv_func_getuserattr" = xyes
17962 then :
17963 printf "%s\n" "#define HAVE_GETUSERATTR 1" >>confdefs.h
17964
17965 fi
17966 ac_fn_c_check_func "$LINENO" "setrlimit64" "ac_cv_func_setrlimit64"
17967 if test "x$ac_cv_func_setrlimit64" = xyes
17968 then :
17969 printf "%s\n" "#define HAVE_SETRLIMIT64 1" >>confdefs.h
17970
17971 fi
17972
17973
17974 for ac_func in setauthdb
17975 do :
17976 ac_fn_c_check_func "$LINENO" "setauthdb" "ac_cv_func_setauthdb"
17977 if test "x$ac_cv_func_setauthdb" = xyes
17978 then :
17979 printf "%s\n" "#define HAVE_SETAUTHDB 1" >>confdefs.h
17980 ac_fn_c_check_type "$LINENO" "authdb_t" "ac_cv_type_authdb_t" "#include <usersec.h>
17981 "
17982 if test "x$ac_cv_type_authdb_t" = xyes
17983 then :
17984
17985 printf "%s\n" "#define HAVE_AUTHDB_T 1" >>confdefs.h
17986
17987
17988 fi
17989
17990 fi
17991
17992 done
17993
17994 COMMON_OBJS="${COMMON_OBJS} aix.lo"
17995
17996 for _sym in aix_prep_user_v1 aix_restoreauthdb_v1 aix_setauthdb_v1 aix_setauthdb_v2 aix_getauthregistry_v1; do
17997 COMPAT_EXP="${COMPAT_EXP}${_sym}
17998 "
17999 done
18000
18001
18002 # These prototypes may be missing
18003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
18004 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
18005 if test ${ac_cv_c_undeclared_builtin_options+y}
18006 then :
18007 printf %s "(cached) " >&6
18008 else case e in #(
18009 e) ac_save_CFLAGS=$CFLAGS
18010 ac_cv_c_undeclared_builtin_options='cannot detect'
18011 for ac_arg in '' -fno-builtin; do
18012 CFLAGS="$ac_save_CFLAGS $ac_arg"
18013 # This test program should *not* compile successfully.
18014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18015 /* end confdefs.h. */
18016
18017 int
18018 main (void)
18019 {
18020 (void) strchr;
18021 ;
18022 return 0;
18023 }
18024 _ACEOF
18025 if ac_fn_c_try_compile "$LINENO"
18026 then :
18027
18028 else case e in #(
18029 e) # This test program should compile successfully.
18030 # No library function is consistently available on
18031 # freestanding implementations, so test against a dummy
18032 # declaration. Include always-available headers on the
18033 # off chance that they somehow elicit warnings.
18034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18035 /* end confdefs.h. */
18036 #include <float.h>
18037 #include <limits.h>
18038 #include <stdarg.h>
18039 #include <stddef.h>
18040 extern void ac_decl (int, char *);
18041
18042 int
18043 main (void)
18044 {
18045 (void) ac_decl (0, (char *) 0);
18046 (void) ac_decl;
18047
18048 ;
18049 return 0;
18050 }
18051 _ACEOF
18052 if ac_fn_c_try_compile "$LINENO"
18053 then :
18054 if test x"$ac_arg" = x
18055 then :
18056 ac_cv_c_undeclared_builtin_options='none needed'
18057 else case e in #(
18058 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
18059 esac
18060 fi
18061 break
18062 fi
18063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18064 esac
18065 fi
18066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18067 done
18068 CFLAGS=$ac_save_CFLAGS
18069 ;;
18070 esac
18071 fi
18072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
18073 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
18074 case $ac_cv_c_undeclared_builtin_options in #(
18075 'cannot detect') :
18076 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18077 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18078 as_fn_error $? "cannot make $CC report undeclared builtins
18079 See 'config.log' for more details" "$LINENO" 5; } ;; #(
18080 'none needed') :
18081 ac_c_undeclared_builtin_options='' ;; #(
18082 *) :
18083 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
18084 esac
18085
18086 ac_fn_check_decl "$LINENO" "usrinfo" "ac_cv_have_decl_usrinfo" "
18087 #include <sys/types.h>
18088 #include <uinfo.h>
18089
18090 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18091 if test "x$ac_cv_have_decl_usrinfo" = xyes
18092 then :
18093 ac_have_decl=1
18094 else case e in #(
18095 e) ac_have_decl=0 ;;
18096 esac
18097 fi
18098 printf "%s\n" "#define HAVE_DECL_USRINFO $ac_have_decl" >>confdefs.h
18099
18100 ac_fn_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "
18101 #include <sys/types.h>
18102 #include <usersec.h>
18103
18104 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18105 if test "x$ac_cv_have_decl_setauthdb" = xyes
18106 then :
18107 ac_have_decl=1
18108 else case e in #(
18109 e) ac_have_decl=0 ;;
18110 esac
18111 fi
18112 printf "%s\n" "#define HAVE_DECL_SETAUTHDB $ac_have_decl" >>confdefs.h
18113
18114 ;;
18115 *-*-hiuxmpp*)
18116 # HI-UX/MPP is based on OSF/1
18117
18118 # ignore envariables wrt dynamic lib path
18119
18120 if test ${SUDO_LDFLAGS+y}
18121 then :
18122
18123 case " $SUDO_LDFLAGS " in #(
18124 *" -Wl,-no_library_replacement "*) :
18125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS already contains -Wl,-no_library_replacement"; } >&5
18126 (: SUDO_LDFLAGS already contains -Wl,-no_library_replacement) 2>&5
18127 ac_status=$?
18128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18129 test $ac_status = 0; } ;; #(
18130 *) :
18131
18132 as_fn_append SUDO_LDFLAGS " -Wl,-no_library_replacement"
18133 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS=\"\$SUDO_LDFLAGS\""; } >&5
18134 (: SUDO_LDFLAGS="$SUDO_LDFLAGS") 2>&5
18135 ac_status=$?
18136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18137 test $ac_status = 0; }
18138 ;;
18139 esac
18140
18141 else case e in #(
18142 e)
18143 SUDO_LDFLAGS=-Wl,-no_library_replacement
18144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS=\"\$SUDO_LDFLAGS\""; } >&5
18145 (: SUDO_LDFLAGS="$SUDO_LDFLAGS") 2>&5
18146 ac_status=$?
18147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18148 test $ac_status = 0; }
18149 ;;
18150 esac
18151 fi
18152
18153
18154 shadow_funcs="getprpwnam dispcrypt"
18155 shadow_libs="-lsecurity"
18156
18157 : ${mansectsu='8'}
18158 : ${mansectform='4'}
18159 : ${mansectmisc='5'}
18160 ;;
18161 *-*-hpux*)
18162 printf "%s\n" "#define PAM_SUN_CODEBASE 1" >>confdefs.h
18163
18164
18165 # AFS support needs -lBSD
18166 if test "$with_AFS" = "yes"
18167 then :
18168 AFS_LIBS="-lc -lBSD"
18169 ]
18170 fi
18171 : ${mansectsu='1m'}
18172 : ${mansectform='4'}
18173 : ${mansectmisc='5'}
18174
18175 # HP-UX does not clear /var/run so we need to do it
18176 INIT_SCRIPT=hpux.sh
18177 INIT_DIR=/sbin/init.d
18178 RC_LINK=/sbin/rc2.d/S900sudo
18179
18180 # HP-UX shared libs must be executable.
18181 # Load time is much greater if writable so use 0555.
18182 SHLIB_MODE=0555
18183
18184 # HP-UX won't unlink a shared lib that is open
18185 INSTALL_BACKUP='~'
18186
18187 # The HP bundled compiler cannot generate shared libs
18188 if test -z "$GCC"
18189 then :
18190
18191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
18192 printf %s "checking for HP bundled C compiler... " >&6; }
18193 if test ${sudo_cv_var_hpccbundled+y}
18194 then :
18195 printf %s "(cached) " >&6
18196 else case e in #(
18197 e) if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
18198 sudo_cv_var_hpccbundled=yes
18199 else
18200 sudo_cv_var_hpccbundled=no
18201 fi
18202 ;;
18203 esac
18204 fi
18205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
18206 printf "%s\n" "$sudo_cv_var_hpccbundled" >&6; }
18207 if test "$sudo_cv_var_hpccbundled" = "yes"
18208 then :
18209
18210 as_fn_error $? "The HP bundled C compiler is unable to build Sudo, you must use gcc or the HP ANSI C compiler instead." "$LINENO" 5
18211
18212 fi
18213
18214 fi
18215
18216 # Build PA-RISC1.1 objects for better portability
18217 case "$host_cpu" in
18218 hppa[2-9]*)
18219 _CFLAGS="$CFLAGS"
18220 if test -n "$GCC"
18221 then :
18222
18223 portable_flag="-march=1.1"
18224
18225 else case e in #(
18226 e)
18227 portable_flag="+DAportable"
18228 ;;
18229 esac
18230 fi
18231 CFLAGS="$CFLAGS $portable_flag"
18232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
18233 printf %s "checking whether $CC understands $portable_flag... " >&6; }
18234 if test ${sudo_cv_var_daportable+y}
18235 then :
18236 printf %s "(cached) " >&6
18237 else case e in #(
18238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h. */
18240
18241 int
18242 main (void)
18243 {
18244
18245 ;
18246 return 0;
18247 }
18248 _ACEOF
18249 if ac_fn_c_try_link "$LINENO"
18250 then :
18251 sudo_cv_var_daportable=yes
18252 else case e in #(
18253 e) sudo_cv_var_daportable=no
18254 ;;
18255 esac
18256 fi
18257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18258 conftest$ac_exeext conftest.$ac_ext
18259
18260 ;;
18261 esac
18262 fi
18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
18264 printf "%s\n" "$sudo_cv_var_daportable" >&6; }
18265 if test X"$sudo_cv_var_daportable" != X"yes"
18266 then :
18267
18268 CFLAGS="$_CFLAGS"
18269
18270 fi
18271 ;;
18272 esac
18273
18274 case "$host_os" in
18275 hpux10.*)
18276 shadow_funcs="getprpwnam iscomsec"
18277 shadow_libs="-lsec"
18278 # HP-UX 10.x doesn't support LD_PRELOAD
18279 with_noexec=no
18280 ;;
18281 *)
18282 shadow_funcs="getspnam iscomsec"
18283 shadow_libs="-lsec"
18284 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
18285 ;;
18286 esac
18287 ac_fn_c_check_header_compile "$LINENO" "utmps.h" "ac_cv_header_utmps_h" "$ac_includes_default"
18288 if test "x$ac_cv_header_utmps_h" = xyes
18289 then :
18290 printf "%s\n" "#define HAVE_UTMPS_H 1" >>confdefs.h
18291
18292 fi
18293
18294 ac_fn_c_check_func "$LINENO" "pstat_getproc" "ac_cv_func_pstat_getproc"
18295 if test "x$ac_cv_func_pstat_getproc" = xyes
18296 then :
18297 printf "%s\n" "#define HAVE_PSTAT_GETPROC 1" >>confdefs.h
18298
18299 fi
18300 ac_fn_c_check_func "$LINENO" "gethrtime" "ac_cv_func_gethrtime"
18301 if test "x$ac_cv_func_gethrtime" = xyes
18302 then :
18303 printf "%s\n" "#define HAVE_GETHRTIME 1" >>confdefs.h
18304
18305 fi
18306
18307 ;;
18308 *-dec-osf*)
18309 # ignore envariables wrt dynamic lib path
18310
18311 if test ${SUDO_LDFLAGS+y}
18312 then :
18313
18314 case " $SUDO_LDFLAGS " in #(
18315 *" -Wl,-no_library_replacement "*) :
18316 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS already contains -Wl,-no_library_replacement"; } >&5
18317 (: SUDO_LDFLAGS already contains -Wl,-no_library_replacement) 2>&5
18318 ac_status=$?
18319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18320 test $ac_status = 0; } ;; #(
18321 *) :
18322
18323 as_fn_append SUDO_LDFLAGS " -Wl,-no_library_replacement"
18324 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS=\"\$SUDO_LDFLAGS\""; } >&5
18325 (: SUDO_LDFLAGS="$SUDO_LDFLAGS") 2>&5
18326 ac_status=$?
18327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18328 test $ac_status = 0; }
18329 ;;
18330 esac
18331
18332 else case e in #(
18333 e)
18334 SUDO_LDFLAGS=-Wl,-no_library_replacement
18335 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS=\"\$SUDO_LDFLAGS\""; } >&5
18336 (: SUDO_LDFLAGS="$SUDO_LDFLAGS") 2>&5
18337 ac_status=$?
18338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18339 test $ac_status = 0; }
18340 ;;
18341 esac
18342 fi
18343
18344
18345 : ${CHECKSIA='true'}
18346 # Check whether --enable-sia was given.
18347 if test ${enable_sia+y}
18348 then :
18349 enableval=$enable_sia; case "$enableval" in
18350 yes) CHECKSIA=true
18351 ;;
18352 no) CHECKSIA=false
18353 ;;
18354 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-sia: $enableval" >&5
18355 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-sia: $enableval" >&2;}
18356 ;;
18357 esac
18358
18359 fi
18360
18361
18362 shadow_funcs="getprpwnam dispcrypt"
18363 # OSF/1 4.x and higher need -ldb too
18364 if test $OSMAJOR -lt 4
18365 then :
18366
18367 shadow_libs="-lsecurity -laud -lm"
18368
18369 else case e in #(
18370 e)
18371 shadow_libs="-lsecurity -ldb -laud -lm"
18372 ;;
18373 esac
18374 fi
18375
18376 # use SIA by default, if we have it
18377 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
18378
18379 #
18380 # Some versions of Digital Unix ship with a broken
18381 # copy of prot.h, which we need for shadow passwords.
18382 # XXX - make should remove this as part of distclean
18383 #
18384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
18385 printf %s "checking for broken prot.h... " >&6; }
18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h. */
18388
18389 #include <sys/types.h>
18390 #include <sys/security.h>
18391 #include <prot.h>
18392
18393 int
18394 main (void)
18395 {
18396 return(0);
18397 ;
18398 return 0;
18399 }
18400 _ACEOF
18401 if ac_fn_c_try_compile "$LINENO"
18402 then :
18403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404 printf "%s\n" "no" >&6; }
18405 else case e in #(
18406 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
18407 printf "%s\n" "yes, fixing locally" >&6; }
18408 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
18409 ;;
18410 esac
18411 fi
18412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18413
18414 : ${mansectsu='8'}
18415 : ${mansectform='4'}
18416 : ${mansectmisc='5'}
18417 ;;
18418 *-*-irix*)
18419 printf "%s\n" "#define _BSD_TYPES 1" >>confdefs.h
18420
18421 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'
18422 then :
18423
18424 if test -d "/usr/share/man/local"
18425 then :
18426
18427 mandir="/usr/share/man/local"
18428
18429 else case e in #(
18430 e)
18431 mandir="/usr/man/local"
18432 ;;
18433 esac
18434 fi
18435
18436 fi
18437 # IRIX <= 4 needs -lsun
18438 if test "$OSMAJOR" -le 4
18439 then :
18440
18441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
18442 printf %s "checking for getpwnam in -lsun... " >&6; }
18443 if test ${ac_cv_lib_sun_getpwnam+y}
18444 then :
18445 printf %s "(cached) " >&6
18446 else case e in #(
18447 e) ac_check_lib_save_LIBS=$LIBS
18448 LIBS="-lsun $LIBS"
18449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h. */
18451
18452 /* Override any GCC internal prototype to avoid an error.
18453 Use char because int might match the return type of a GCC
18454 builtin and then its argument prototype would still apply.
18455 The 'extern "C"' is for builds by C++ compilers;
18456 although this is not generally supported in C code supporting it here
18457 has little cost and some practical benefit (sr 110532). */
18458 #ifdef __cplusplus
18459 extern "C"
18460 #endif
18461 char getpwnam (void);
18462 int
18463 main (void)
18464 {
18465 return getpwnam ();
18466 ;
18467 return 0;
18468 }
18469 _ACEOF
18470 if ac_fn_c_try_link "$LINENO"
18471 then :
18472 ac_cv_lib_sun_getpwnam=yes
18473 else case e in #(
18474 e) ac_cv_lib_sun_getpwnam=no ;;
18475 esac
18476 fi
18477 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18478 conftest$ac_exeext conftest.$ac_ext
18479 LIBS=$ac_check_lib_save_LIBS ;;
18480 esac
18481 fi
18482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
18483 printf "%s\n" "$ac_cv_lib_sun_getpwnam" >&6; }
18484 if test "x$ac_cv_lib_sun_getpwnam" = xyes
18485 then :
18486 LIBS="${LIBS} -lsun"
18487 fi
18488
18489
18490 fi
18491
18492 : ${mansectsu='1m'}
18493 : ${mansectform='4'}
18494 : ${mansectmisc='5'}
18495 ;;
18496 *-*-linux*|*-*-k*bsd*-gnu)
18497 shadow_funcs="getspnam"
18498 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
18499 # Check for SECCOMP_MODE_FILTER in linux/seccomp.h
18500 ac_fn_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
18501 #include <sys/types.h>
18502 #include <sys/prctl.h>
18503 #include <asm/unistd.h>
18504 #include <linux/seccomp.h>
18505 #include <linux/filter.h>
18506
18507 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18508 if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes
18509 then :
18510 ac_have_decl=1
18511 else case e in #(
18512 e) ac_have_decl=0 ;;
18513 esac
18514 fi
18515 printf "%s\n" "#define HAVE_DECL_SECCOMP_MODE_FILTER $ac_have_decl" >>confdefs.h
18516
18517 # We call getrandom via syscall(3) in case it is not in libc
18518 ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default"
18519 if test "x$ac_cv_header_linux_random_h" = xyes
18520 then :
18521 printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h
18522
18523 fi
18524 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
18525 if test "x$ac_cv_header_sys_syscall_h" = xyes
18526 then :
18527 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
18528
18529 fi
18530
18531
18532 # Only use our replacement functions when not fuzzing,
18533 # they may skew the coverage reports.
18534 if test X"$enable_fuzzer" = X"no"
18535 then :
18536
18537 # glibc's getentropy() emulation may fail on older kernels.
18538 # We use our own getentropy() by default on Linux.
18539 : ${ac_cv_func_getentropy='no'}
18540
18541 # glibc's arc4random() may fail in chroot on older kernels.
18542 # We use our own arc4random() by default on Linux.
18543 : ${ac_cv_func_arc4random='no'}
18544
18545 # glibc's closefrom() emulation may fail in chroot.
18546 # We use our own closefrom() by default on Linux.
18547 : ${ac_cv_func_closefrom='no'}
18548
18549 fi
18550
18551 # Linux 3.2 supports reading/writing a another process
18552 # without using ptrace(2).
18553 ac_fn_c_check_func "$LINENO" "process_vm_readv" "ac_cv_func_process_vm_readv"
18554 if test "x$ac_cv_func_process_vm_readv" = xyes
18555 then :
18556 printf "%s\n" "#define HAVE_PROCESS_VM_READV 1" >>confdefs.h
18557
18558 fi
18559
18560 ;;
18561 *-*-gnu*)
18562 # lockf() is broken on the Hurd
18563 ac_cv_func_lockf=no
18564 ;;
18565 *-*-sco*|*-sco-*)
18566 shadow_funcs="getprpwnam"
18567 shadow_libs="-lprot -lx"
18568 : ${mansectsu='1m'}
18569 : ${mansectform='4'}
18570 : ${mansectmisc='5'}
18571 ;;
18572 m88k-motorola-sysv*)
18573 # motorolla's cc (a variant of gcc) does -O but not -O2
18574 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
18575 : ${mansectsu='1m'}
18576 : ${mansectform='4'}
18577 : ${mansectmisc='5'}
18578 ;;
18579 *-sequent-sysv*)
18580 shadow_funcs="getspnam"
18581 shadow_libs="-lsec"
18582 : ${mansectsu='1m'}
18583 : ${mansectform='4'}
18584 : ${mansectmisc='5'}
18585 ;;
18586 *-ncr-sysv4*|*-ncr-sysvr4*)
18587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
18588 printf %s "checking for strcasecmp in -lc89... " >&6; }
18589 if test ${ac_cv_lib_c89_strcasecmp+y}
18590 then :
18591 printf %s "(cached) " >&6
18592 else case e in #(
18593 e) ac_check_lib_save_LIBS=$LIBS
18594 LIBS="-lc89 $LIBS"
18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596 /* end confdefs.h. */
18597
18598 /* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply.
18601 The 'extern "C"' is for builds by C++ compilers;
18602 although this is not generally supported in C code supporting it here
18603 has little cost and some practical benefit (sr 110532). */
18604 #ifdef __cplusplus
18605 extern "C"
18606 #endif
18607 char strcasecmp (void);
18608 int
18609 main (void)
18610 {
18611 return strcasecmp ();
18612 ;
18613 return 0;
18614 }
18615 _ACEOF
18616 if ac_fn_c_try_link "$LINENO"
18617 then :
18618 ac_cv_lib_c89_strcasecmp=yes
18619 else case e in #(
18620 e) ac_cv_lib_c89_strcasecmp=no ;;
18621 esac
18622 fi
18623 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18624 conftest$ac_exeext conftest.$ac_ext
18625 LIBS=$ac_check_lib_save_LIBS ;;
18626 esac
18627 fi
18628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
18629 printf "%s\n" "$ac_cv_lib_c89_strcasecmp" >&6; }
18630 if test "x$ac_cv_lib_c89_strcasecmp" = xyes
18631 then :
18632 LIBS="${LIBS} -lc89"
18633 fi
18634
18635 : ${mansectsu='1m'}
18636 : ${mansectform='4'}
18637 : ${mansectmisc='5'}
18638 ;;
18639 *-ccur-sysv4*|*-ccur-sysvr4*)
18640 LIBS="${LIBS} -lgen"
18641 : ${mansectsu='1m'}
18642 : ${mansectform='4'}
18643 : ${mansectmisc='5'}
18644 ;;
18645 *-*-bsdi*)
18646 SKIP_SETREUID=yes
18647 # Check for newer BSD auth API
18648 if test -z "$with_bsdauth"
18649 then :
18650
18651
18652 for ac_func in auth_challenge
18653 do :
18654 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
18655 if test "x$ac_cv_func_auth_challenge" = xyes
18656 then :
18657 printf "%s\n" "#define HAVE_AUTH_CHALLENGE 1" >>confdefs.h
18658 AUTH_EXCL_DEF="BSD_AUTH"
18659 fi
18660
18661 done
18662
18663 fi
18664 ;;
18665 *-*-freebsd*)
18666 printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
18667
18668
18669 # FreeBSD has a real setreuid(2) starting with 2.1 and
18670 # backported to 2.0.5. We just take 2.1 and above...
18671 case "$OSREV" in
18672 0.*|1.*|2.0*)
18673 SKIP_SETREUID=yes
18674 ;;
18675 esac
18676 if test "${with_skey-'no'}" = "yes"
18677 then :
18678
18679 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
18680
18681 fi
18682 CHECKSHADOW="false"
18683 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
18684 : ${with_logincap='maybe'}
18685
18686 # Examples go in share/examples/sudo
18687 if test X"$with_exampledir" = X""
18688 then :
18689
18690 exampledir='$(datarootdir)/examples/$(PACKAGE_TARNAME)'
18691
18692 fi
18693 ;;
18694 *-*-*openbsd*)
18695 printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
18696
18697
18698 # OpenBSD-specific initialization
18699 OS_INIT=os_init_openbsd
18700 SUDO_OBJS="${SUDO_OBJS} openbsd.o"
18701
18702 # OpenBSD has a real setreuid(2) starting with 3.3 but
18703 # we will use setresuid(2) instead.
18704 SKIP_SETREUID=yes
18705
18706 # OpenBSD >= 3.0 supports BSD auth
18707 if test -z "$with_bsdauth"
18708 then :
18709
18710 if test "$OSMAJOR" -ge 3
18711 then :
18712
18713 AUTH_EXCL_DEF="BSD_AUTH"
18714
18715 fi
18716
18717 fi
18718 : ${with_logincap='maybe'}
18719
18720 # Newer OpenBSD only fills in pw_password for getpwnam_shadow()
18721 shadow_funcs="getpwnam_shadow"
18722
18723 # Examples go in share/examples/sudo
18724 if test X"$with_exampledir" = X""
18725 then :
18726
18727 exampledir='$(datarootdir)/examples/$(PACKAGE_TARNAME)'
18728
18729 fi
18730 ;;
18731 *-*-*netbsd*)
18732 # NetBSD has a real setreuid(2) starting with 1.3.2
18733 case "$OSREV" in
18734 0.9*|1.[012]*|1.3|1.3.1)
18735 SKIP_SETREUID=yes
18736 ;;
18737 esac
18738 CHECKSHADOW="false"
18739 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
18740 : ${with_logincap='maybe'}
18741
18742 # For reallocarray()
18743 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
18744
18745
18746 # Examples go in share/examples/sudo
18747 if test X"$with_exampledir" = X""
18748 then :
18749
18750 exampledir='$(datarootdir)/examples/$(PACKAGE_TARNAME)'
18751
18752 fi
18753 ;;
18754 *-*-dragonfly*)
18755 printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
18756
18757
18758 if test "${with_skey-'no'}" = "yes"
18759 then :
18760
18761 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
18762
18763 fi
18764 CHECKSHADOW="false"
18765 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
18766 : ${with_logincap='yes'}
18767
18768 # Examples go in share/examples/sudo
18769 if test X"$with_exampledir" = X""
18770 then :
18771
18772 exampledir='$(datarootdir)/examples/$(PACKAGE_TARNAME)'
18773
18774 fi
18775 ;;
18776 *-*-*bsd*)
18777 CHECKSHADOW="false"
18778 # Examples go in share/examples/sudo
18779 if test X"$with_exampledir" = X""
18780 then :
18781
18782 exampledir='$(datarootdir)/examples/$(PACKAGE_TARNAME)'
18783
18784 fi
18785 ;;
18786 *-*-darwin*)
18787 # Darwin has a real setreuid(2) starting with 9.0
18788 if test $OSMAJOR -lt 9
18789 then :
18790
18791 SKIP_SETREUID=yes
18792
18793 fi
18794 CHECKSHADOW="false"
18795 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
18796 : ${with_logincap='yes'}
18797 # Darwin has a broken poll(), Apple radar 3710161
18798 : ${enable_poll='no'}
18799
18800 # Build sudo_noexec.so as a shared library, not a module.
18801 # On Darwin, modules and shared libraries are incompatible.
18802 PRELOAD_MODULE=
18803
18804 # Mach monotonic timer that runs while sleeping
18805 ac_fn_c_check_func "$LINENO" "mach_continuous_time" "ac_cv_func_mach_continuous_time"
18806 if test "x$ac_cv_func_mach_continuous_time" = xyes
18807 then :
18808 printf "%s\n" "#define HAVE_MACH_CONTINUOUS_TIME 1" >>confdefs.h
18809
18810 fi
18811
18812
18813 # Undocumented API that dynamically allocates the groups.
18814
18815 for ac_func in getgrouplist_2
18816 do :
18817 ac_fn_c_check_func "$LINENO" "getgrouplist_2" "ac_cv_func_getgrouplist_2"
18818 if test "x$ac_cv_func_getgrouplist_2" = xyes
18819 then :
18820 printf "%s\n" "#define HAVE_GETGROUPLIST_2 1" >>confdefs.h
18821 ac_fn_check_decl "$LINENO" "getgrouplist_2" "ac_cv_have_decl_getgrouplist_2" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18822 if test "x$ac_cv_have_decl_getgrouplist_2" = xyes
18823 then :
18824 ac_have_decl=1
18825 else case e in #(
18826 e) ac_have_decl=0 ;;
18827 esac
18828 fi
18829 printf "%s\n" "#define HAVE_DECL_GETGROUPLIST_2 $ac_have_decl" >>confdefs.h
18830
18831 fi
18832
18833 done
18834
18835 # We use proc_pidinfo() to emulate closefrom() on macOS.
18836 for ac_header in libproc.h
18837 do :
18838 ac_fn_c_check_header_compile "$LINENO" "libproc.h" "ac_cv_header_libproc_h" "$ac_includes_default"
18839 if test "x$ac_cv_header_libproc_h" = xyes
18840 then :
18841 printf "%s\n" "#define HAVE_LIBPROC_H 1" >>confdefs.h
18842 ac_fn_c_check_func "$LINENO" "proc_pidinfo" "ac_cv_func_proc_pidinfo"
18843 if test "x$ac_cv_func_proc_pidinfo" = xyes
18844 then :
18845 printf "%s\n" "#define HAVE_PROC_PIDINFO 1" >>confdefs.h
18846
18847 fi
18848
18849 fi
18850
18851 done
18852
18853 # We cannot directly access environ from a shared object
18854 for ac_header in crt_externs.h
18855 do :
18856 ac_fn_c_check_header_compile "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
18857 if test "x$ac_cv_header_crt_externs_h" = xyes
18858 then :
18859 printf "%s\n" "#define HAVE_CRT_EXTERNS_H 1" >>confdefs.h
18860 ac_fn_c_check_func "$LINENO" "_NSGetEnviron" "ac_cv_func__NSGetEnviron"
18861 if test "x$ac_cv_func__NSGetEnviron" = xyes
18862 then :
18863 printf "%s\n" "#define HAVE__NSGETENVIRON 1" >>confdefs.h
18864
18865 fi
18866
18867 fi
18868
18869 done
18870
18871 # We need to force a flat namespace on macOS to make libc
18872 # symbol hooking work like it does on ELF. Newer versions of
18873 # macOS treat -force_flat_namespace as -flat_namespace.
18874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-force_flat_namespace" >&5
18875 printf %s "checking whether the linker accepts -Wl,-force_flat_namespace... " >&6; }
18876 if test ${ax_cv_check_ldflags___Wl__force_flat_namespace+y}
18877 then :
18878 printf %s "(cached) " >&6
18879 else case e in #(
18880 e)
18881 ax_check_save_flags=$LDFLAGS
18882 LDFLAGS="$LDFLAGS -Wl,-force_flat_namespace"
18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884 /* end confdefs.h. */
18885
18886 int
18887 main (void)
18888 {
18889
18890 ;
18891 return 0;
18892 }
18893 _ACEOF
18894 if ac_fn_c_try_link "$LINENO"
18895 then :
18896 ax_cv_check_ldflags___Wl__force_flat_namespace=yes
18897 else case e in #(
18898 e) ax_cv_check_ldflags___Wl__force_flat_namespace=no ;;
18899 esac
18900 fi
18901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18902 conftest$ac_exeext conftest.$ac_ext
18903 LDFLAGS=$ax_check_save_flags ;;
18904 esac
18905 fi
18906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__force_flat_namespace" >&5
18907 printf "%s\n" "$ax_cv_check_ldflags___Wl__force_flat_namespace" >&6; }
18908 if test x"$ax_cv_check_ldflags___Wl__force_flat_namespace" = xyes
18909 then :
18910
18911
18912 if test ${SUDO_LDFLAGS+y}
18913 then :
18914
18915 case " $SUDO_LDFLAGS " in #(
18916 *" -Wl,-force_flat_namespace "*) :
18917 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS already contains -Wl,-force_flat_namespace"; } >&5
18918 (: SUDO_LDFLAGS already contains -Wl,-force_flat_namespace) 2>&5
18919 ac_status=$?
18920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18921 test $ac_status = 0; } ;; #(
18922 *) :
18923
18924 as_fn_append SUDO_LDFLAGS " -Wl,-force_flat_namespace"
18925 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS=\"\$SUDO_LDFLAGS\""; } >&5
18926 (: SUDO_LDFLAGS="$SUDO_LDFLAGS") 2>&5
18927 ac_status=$?
18928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18929 test $ac_status = 0; }
18930 ;;
18931 esac
18932
18933 else case e in #(
18934 e)
18935 SUDO_LDFLAGS=-Wl,-force_flat_namespace
18936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS=\"\$SUDO_LDFLAGS\""; } >&5
18937 (: SUDO_LDFLAGS="$SUDO_LDFLAGS") 2>&5
18938 ac_status=$?
18939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18940 test $ac_status = 0; }
18941 ;;
18942 esac
18943 fi
18944
18945
18946 else case e in #(
18947 e)
18948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-flat_namespace" >&5
18949 printf %s "checking whether the linker accepts -Wl,-flat_namespace... " >&6; }
18950 if test ${ax_cv_check_ldflags___Wl__flat_namespace+y}
18951 then :
18952 printf %s "(cached) " >&6
18953 else case e in #(
18954 e)
18955 ax_check_save_flags=$LDFLAGS
18956 LDFLAGS="$LDFLAGS -Wl,-flat_namespace"
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18959
18960 int
18961 main (void)
18962 {
18963
18964 ;
18965 return 0;
18966 }
18967 _ACEOF
18968 if ac_fn_c_try_link "$LINENO"
18969 then :
18970 ax_cv_check_ldflags___Wl__flat_namespace=yes
18971 else case e in #(
18972 e) ax_cv_check_ldflags___Wl__flat_namespace=no ;;
18973 esac
18974 fi
18975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18976 conftest$ac_exeext conftest.$ac_ext
18977 LDFLAGS=$ax_check_save_flags ;;
18978 esac
18979 fi
18980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__flat_namespace" >&5
18981 printf "%s\n" "$ax_cv_check_ldflags___Wl__flat_namespace" >&6; }
18982 if test x"$ax_cv_check_ldflags___Wl__flat_namespace" = xyes
18983 then :
18984
18985
18986 if test ${SUDO_LDFLAGS+y}
18987 then :
18988
18989 case " $SUDO_LDFLAGS " in #(
18990 *" -Wl,-flat_namespace "*) :
18991 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS already contains -Wl,-flat_namespace"; } >&5
18992 (: SUDO_LDFLAGS already contains -Wl,-flat_namespace) 2>&5
18993 ac_status=$?
18994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18995 test $ac_status = 0; } ;; #(
18996 *) :
18997
18998 as_fn_append SUDO_LDFLAGS " -Wl,-flat_namespace"
18999 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS=\"\$SUDO_LDFLAGS\""; } >&5
19000 (: SUDO_LDFLAGS="$SUDO_LDFLAGS") 2>&5
19001 ac_status=$?
19002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19003 test $ac_status = 0; }
19004 ;;
19005 esac
19006
19007 else case e in #(
19008 e)
19009 SUDO_LDFLAGS=-Wl,-flat_namespace
19010 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDO_LDFLAGS=\"\$SUDO_LDFLAGS\""; } >&5
19011 (: SUDO_LDFLAGS="$SUDO_LDFLAGS") 2>&5
19012 ac_status=$?
19013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19014 test $ac_status = 0; }
19015 ;;
19016 esac
19017 fi
19018
19019
19020 else case e in #(
19021 e) : ;;
19022 esac
19023 fi
19024
19025 ;;
19026 esac
19027 fi
19028
19029
19030 # Examples go in share/examples/sudo
19031 if test X"$with_exampledir" = X""
19032 then :
19033
19034 exampledir='$(datarootdir)/examples/$(PACKAGE_TARNAME)'
19035
19036 fi
19037 ;;
19038 *-*-nextstep*)
19039 # lockf() is broken on the NeXT
19040 ac_cv_func_lockf=no
19041 ;;
19042 *-*-*sysv4*)
19043 : ${mansectsu='1m'}
19044 : ${mansectform='4'}
19045 : ${mansectmisc='5'}
19046 ;;
19047 *-*-*sco3.2*) # SCO OpenServer 5
19048 : ${mansectsu='1'}
19049 : ${mansectform='4'}
19050 : ${mansectmisc='5'}
19051 shadow_funcs="getprpwnam"
19052 shadow_libs="-lprot"
19053 ;;
19054 # UnixWare 7.x, OpenUNIX 8
19055 *-*-*sysv5*)
19056 : ${mansectsu='1'}
19057 : ${mansectform='4'}
19058 : ${mansectmisc='5'}
19059 case "$host" in
19060 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
19061 shadow_funcs="getprpwnam"
19062 shadow_libs="-lprot"
19063 ;;
19064 *) shadow_funcs="getspnam"
19065 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
19066 ;;
19067 esac
19068 ;;
19069 *-*-sysv*)
19070 : ${mansectsu='1m'}
19071 : ${mansectform='4'}
19072 : ${mansectmisc='5'}
19073 ;;
19074 esac
19075
19076 AUTH_REG=${AUTH_REG# }
19077 AUTH_EXCL=${AUTH_EXCL# }
19078 if test -n "$AUTH_EXCL" -a -n "$AUTH_REG"
19079 then :
19080
19081 as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
19082
19083 fi
19084 if test X"${with_skey}${with_opie}" = X"yesyes"
19085 then :
19086
19087 as_fn_error $? "cannot use both S/Key and OPIE" "$LINENO" 5
19088
19089 fi
19090
19091 : ${mansectsu='8'}
19092 : ${mansectform='5'}
19093 : ${mansectmisc='7'}
19094
19095 if test -n "$with_libpath"
19096 then :
19097
19098 for i in ${with_libpath}; do
19099
19100
19101 if test ${LDFLAGS+y}
19102 then :
19103
19104 case " $LDFLAGS " in #(
19105 *" -L$i "*) :
19106 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains -L\$i"; } >&5
19107 (: LDFLAGS already contains -L$i) 2>&5
19108 ac_status=$?
19109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19110 test $ac_status = 0; } ;; #(
19111 *) :
19112
19113 as_fn_append LDFLAGS " -L$i"
19114 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
19115 (: LDFLAGS="$LDFLAGS") 2>&5
19116 ac_status=$?
19117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19118 test $ac_status = 0; }
19119 ;;
19120 esac
19121
19122 else case e in #(
19123 e)
19124 LDFLAGS=-L$i
19125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
19126 (: LDFLAGS="$LDFLAGS") 2>&5
19127 ac_status=$?
19128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19129 test $ac_status = 0; }
19130 ;;
19131 esac
19132 fi
19133
19134 if test X"$enable_rpath" = X"yes"; then
19135
19136 if test ${LDFLAGS_R+y}
19137 then :
19138
19139 case " $LDFLAGS_R " in #(
19140 *" -R$i "*) :
19141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R already contains -R\$i"; } >&5
19142 (: LDFLAGS_R already contains -R$i) 2>&5
19143 ac_status=$?
19144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19145 test $ac_status = 0; } ;; #(
19146 *) :
19147
19148 as_fn_append LDFLAGS_R " -R$i"
19149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R=\"\$LDFLAGS_R\""; } >&5
19150 (: LDFLAGS_R="$LDFLAGS_R") 2>&5
19151 ac_status=$?
19152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19153 test $ac_status = 0; }
19154 ;;
19155 esac
19156
19157 else case e in #(
19158 e)
19159 LDFLAGS_R=-R$i
19160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R=\"\$LDFLAGS_R\""; } >&5
19161 (: LDFLAGS_R="$LDFLAGS_R") 2>&5
19162 ac_status=$?
19163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19164 test $ac_status = 0; }
19165 ;;
19166 esac
19167 fi
19168
19169 fi
19170
19171 done
19172
19173 fi
19174 if test -n "$with_libraries"
19175 then :
19176
19177 for i in ${with_libraries}; do
19178 case $i in
19179 -l*) ;;
19180 *.a) ;;
19181 *.o) ;;
19182 *) i="-l${i}";;
19183 esac
19184 LIBS="${LIBS} ${i}"
19185 done
19186
19187 fi
19188
19189
19190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19191 printf %s "checking for an ANSI C-conforming const... " >&6; }
19192 if test ${ac_cv_c_const+y}
19193 then :
19194 printf %s "(cached) " >&6
19195 else case e in #(
19196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19197 /* end confdefs.h. */
19198
19199 int
19200 main (void)
19201 {
19202
19203 #ifndef __cplusplus
19204 /* Ultrix mips cc rejects this sort of thing. */
19205 typedef int charset[2];
19206 const charset cs = { 0, 0 };
19207 /* SunOS 4.1.1 cc rejects this. */
19208 char const *const *pcpcc;
19209 char **ppc;
19210 /* NEC SVR4.0.2 mips cc rejects this. */
19211 struct point {int x, y;};
19212 static struct point const zero = {0,0};
19213 /* IBM XL C 1.02.0.0 rejects this.
19214 It does not let you subtract one const X* pointer from another in
19215 an arm of an if-expression whose if-part is not a constant
19216 expression */
19217 const char *g = "string";
19218 pcpcc = &g + (g ? g-g : 0);
19219 /* HPUX 7.0 cc rejects these. */
19220 ++pcpcc;
19221 ppc = (char**) pcpcc;
19222 pcpcc = (char const *const *) ppc;
19223 { /* SCO 3.2v4 cc rejects this sort of thing. */
19224 char tx;
19225 char *t = &tx;
19226 char const *s = 0 ? (char *) 0 : (char const *) 0;
19227
19228 *t++ = 0;
19229 if (s) return 0;
19230 }
19231 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19232 int x[] = {25, 17};
19233 const int *foo = &x[0];
19234 ++foo;
19235 }
19236 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19237 typedef const int *iptr;
19238 iptr p = 0;
19239 ++p;
19240 }
19241 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
19242 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19243 struct s { int j; const int *ap[3]; } bx;
19244 struct s *b = &bx; b->j = 5;
19245 }
19246 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19247 const int foo = 10;
19248 if (!foo) return 0;
19249 }
19250 return !cs[0] && !zero.x;
19251 #endif
19252
19253 ;
19254 return 0;
19255 }
19256 _ACEOF
19257 if ac_fn_c_try_compile "$LINENO"
19258 then :
19259 ac_cv_c_const=yes
19260 else case e in #(
19261 e) ac_cv_c_const=no ;;
19262 esac
19263 fi
19264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19265 esac
19266 fi
19267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19268 printf "%s\n" "$ac_cv_c_const" >&6; }
19269 if test $ac_cv_c_const = no; then
19270
19271 printf "%s\n" "#define const /**/" >>confdefs.h
19272
19273 fi
19274
19275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19276 printf %s "checking for C/C++ restrict keyword... " >&6; }
19277 if test ${ac_cv_c_restrict+y}
19278 then :
19279 printf %s "(cached) " >&6
19280 else case e in #(
19281 e) ac_cv_c_restrict=no
19282 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
19283 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
19284 # Put 'restrict' last, because C++ lacks it.
19285 for ac_kw in __restrict__ __restrict _Restrict restrict; do
19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19287 /* end confdefs.h. */
19288 typedef int *int_ptr;
19289 int foo (int_ptr $ac_kw ip) { return ip[0]; }
19290 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
19291 int bar (int ip[$ac_kw]) { return ip[0]; }
19292
19293 int
19294 main (void)
19295 {
19296 int s[1];
19297 int *$ac_kw t = s;
19298 t[0] = 0;
19299 return foo (t) + bar (t);
19300
19301 ;
19302 return 0;
19303 }
19304 _ACEOF
19305 if ac_fn_c_try_compile "$LINENO"
19306 then :
19307 ac_cv_c_restrict=$ac_kw
19308 fi
19309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19310 test "$ac_cv_c_restrict" != no && break
19311 done
19312 ;;
19313 esac
19314 fi
19315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19316 printf "%s\n" "$ac_cv_c_restrict" >&6; }
19317
19318 case $ac_cv_c_restrict in
19319 restrict) ;;
19320 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
19321 ;;
19322 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
19323 ;;
19324 esac
19325
19326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19327 printf %s "checking for inline... " >&6; }
19328 if test ${ac_cv_c_inline+y}
19329 then :
19330 printf %s "(cached) " >&6
19331 else case e in #(
19332 e) ac_cv_c_inline=no
19333 for ac_kw in inline __inline__ __inline; do
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19336 #ifndef __cplusplus
19337 typedef int foo_t;
19338 static $ac_kw foo_t static_foo (void) {return 0; }
19339 $ac_kw foo_t foo (void) {return 0; }
19340 #endif
19341
19342 _ACEOF
19343 if ac_fn_c_try_compile "$LINENO"
19344 then :
19345 ac_cv_c_inline=$ac_kw
19346 fi
19347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19348 test "$ac_cv_c_inline" != no && break
19349 done
19350 ;;
19351 esac
19352 fi
19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19354 printf "%s\n" "$ac_cv_c_inline" >&6; }
19355
19356 case $ac_cv_c_inline in
19357 inline | yes) ;;
19358 *)
19359 case $ac_cv_c_inline in
19360 no) ac_val=;;
19361 *) ac_val=$ac_cv_c_inline;;
19362 esac
19363 cat >>confdefs.h <<_ACEOF
19364 #ifndef __cplusplus
19365 #define inline $ac_val
19366 #endif
19367 _ACEOF
19368 ;;
19369 esac
19370
19371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
19372 printf %s "checking for working volatile... " >&6; }
19373 if test ${ac_cv_c_volatile+y}
19374 then :
19375 printf %s "(cached) " >&6
19376 else case e in #(
19377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378 /* end confdefs.h. */
19379
19380 int
19381 main (void)
19382 {
19383
19384 volatile int x;
19385 int * volatile y = (int *) 0;
19386 return !x && !y;
19387 ;
19388 return 0;
19389 }
19390 _ACEOF
19391 if ac_fn_c_try_compile "$LINENO"
19392 then :
19393 ac_cv_c_volatile=yes
19394 else case e in #(
19395 e) ac_cv_c_volatile=no ;;
19396 esac
19397 fi
19398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19399 esac
19400 fi
19401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
19402 printf "%s\n" "$ac_cv_c_volatile" >&6; }
19403 if test $ac_cv_c_volatile = no; then
19404
19405 printf "%s\n" "#define volatile /**/" >>confdefs.h
19406
19407 fi
19408
19409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variadic macro support in cpp" >&5
19410 printf %s "checking for variadic macro support in cpp... " >&6; }
19411 if test ${sudo_cv_cpp_variadic_macros+y}
19412 then :
19413 printf %s "(cached) " >&6
19414 else case e in #(
19415 e)
19416 sudo_cv_cpp_variadic_macros=yes
19417 if test X"$ac_cv_build_prog_cc_c99" = X"no"; then
19418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h. */
19420 $ac_includes_default
19421 #if defined(__GNUC__) && __GNUC__ == 2
19422 # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
19423 #else
19424 # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
19425 #endif
19426 int
19427 main (void)
19428 {
19429 sudo_fprintf(stderr, "a %s", "test");
19430
19431 ;
19432 return 0;
19433 }
19434 _ACEOF
19435 if ac_fn_c_try_compile "$LINENO"
19436 then :
19437
19438 else case e in #(
19439 e) sudo_cv_cpp_variadic_macros=no ;;
19440 esac
19441 fi
19442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19443 fi
19444 ;;
19445 esac
19446 fi
19447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_cpp_variadic_macros" >&5
19448 printf "%s\n" "$sudo_cv_cpp_variadic_macros" >&6; }
19449 if test X"$sudo_cv_cpp_variadic_macros" = X"no"; then
19450
19451 printf "%s\n" "#define NO_VARIADIC_MACROS 1" >>confdefs.h
19452
19453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your C preprocessor doesn't support variadic macros, debugging support will be limited" >&5
19454 printf "%s\n" "$as_me: WARNING: your C preprocessor doesn't support variadic macros, debugging support will be limited" >&2;}
19455
19456 for _sym in sudo_debug_printf_nvm_v1; do
19457 COMPAT_EXP="${COMPAT_EXP}${_sym}
19458 "
19459 done
19460
19461 fi
19462
19463
19464 for ac_prog in gawk mawk nawk awk
19465 do
19466 # Extract the first word of "$ac_prog", so it can be a program name with args.
19467 set dummy $ac_prog; ac_word=$2
19468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19469 printf %s "checking for $ac_word... " >&6; }
19470 if test ${ac_cv_prog_AWK+y}
19471 then :
19472 printf %s "(cached) " >&6
19473 else case e in #(
19474 e) if test -n "$AWK"; then
19475 ac_cv_prog_AWK="$AWK" # Let the user override the test.
19476 else
19477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19478 for as_dir in $PATH
19479 do
19480 IFS=$as_save_IFS
19481 case $as_dir in #(((
19482 '') as_dir=./ ;;
19483 */) ;;
19484 *) as_dir=$as_dir/ ;;
19485 esac
19486 for ac_exec_ext in '' $ac_executable_extensions; do
19487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19488 ac_cv_prog_AWK="$ac_prog"
19489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19490 break 2
19491 fi
19492 done
19493 done
19494 IFS=$as_save_IFS
19495
19496 fi ;;
19497 esac
19498 fi
19499 AWK=$ac_cv_prog_AWK
19500 if test -n "$AWK"; then
19501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19502 printf "%s\n" "$AWK" >&6; }
19503 else
19504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19505 printf "%s\n" "no" >&6; }
19506 fi
19507
19508
19509 test -n "$AWK" && break
19510 done
19511
19512 for ac_prog in 'bison -y' byacc
19513 do
19514 # Extract the first word of "$ac_prog", so it can be a program name with args.
19515 set dummy $ac_prog; ac_word=$2
19516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19517 printf %s "checking for $ac_word... " >&6; }
19518 if test ${ac_cv_prog_YACC+y}
19519 then :
19520 printf %s "(cached) " >&6
19521 else case e in #(
19522 e) if test -n "$YACC"; then
19523 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19524 else
19525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19526 for as_dir in $PATH
19527 do
19528 IFS=$as_save_IFS
19529 case $as_dir in #(((
19530 '') as_dir=./ ;;
19531 */) ;;
19532 *) as_dir=$as_dir/ ;;
19533 esac
19534 for ac_exec_ext in '' $ac_executable_extensions; do
19535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19536 ac_cv_prog_YACC="$ac_prog"
19537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19538 break 2
19539 fi
19540 done
19541 done
19542 IFS=$as_save_IFS
19543
19544 fi ;;
19545 esac
19546 fi
19547 YACC=$ac_cv_prog_YACC
19548 if test -n "$YACC"; then
19549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
19550 printf "%s\n" "$YACC" >&6; }
19551 else
19552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19553 printf "%s\n" "no" >&6; }
19554 fi
19555
19556
19557 test -n "$YACC" && break
19558 done
19559 test -n "$YACC" || YACC="yacc"
19560
19561 # Extract the first word of "flex", so it can be a program name with args.
19562 set dummy flex; ac_word=$2
19563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19564 printf %s "checking for $ac_word... " >&6; }
19565 if test ${ac_cv_path_FLEX+y}
19566 then :
19567 printf %s "(cached) " >&6
19568 else case e in #(
19569 e) case $FLEX in
19570 [\\/]* | ?:[\\/]*)
19571 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
19572 ;;
19573 *)
19574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19575 for as_dir in $PATH
19576 do
19577 IFS=$as_save_IFS
19578 case $as_dir in #(((
19579 '') as_dir=./ ;;
19580 */) ;;
19581 *) as_dir=$as_dir/ ;;
19582 esac
19583 for ac_exec_ext in '' $ac_executable_extensions; do
19584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19585 ac_cv_path_FLEX="$as_dir$ac_word$ac_exec_ext"
19586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19587 break 2
19588 fi
19589 done
19590 done
19591 IFS=$as_save_IFS
19592
19593 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
19594 ;;
19595 esac ;;
19596 esac
19597 fi
19598 FLEX=$ac_cv_path_FLEX
19599 if test -n "$FLEX"; then
19600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
19601 printf "%s\n" "$FLEX" >&6; }
19602 else
19603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19604 printf "%s\n" "no" >&6; }
19605 fi
19606
19607
19608
19609 # Extract the first word of "mv", so it can be a program name with args.
19610 set dummy mv; ac_word=$2
19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19612 printf %s "checking for $ac_word... " >&6; }
19613 if test ${ac_cv_path_MVPROG+y}
19614 then :
19615 printf %s "(cached) " >&6
19616 else case e in #(
19617 e) case $MVPROG in
19618 [\\/]* | ?:[\\/]*)
19619 ac_cv_path_MVPROG="$MVPROG" # Let the user override the test with a path.
19620 ;;
19621 *)
19622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19623 for as_dir in /usr/bin$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/ucb$PATH_SEPARATOR/usr/local/bin
19624 do
19625 IFS=$as_save_IFS
19626 case $as_dir in #(((
19627 '') as_dir=./ ;;
19628 */) ;;
19629 *) as_dir=$as_dir/ ;;
19630 esac
19631 for ac_exec_ext in '' $ac_executable_extensions; do
19632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19633 ac_cv_path_MVPROG="$as_dir$ac_word$ac_exec_ext"
19634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19635 break 2
19636 fi
19637 done
19638 done
19639 IFS=$as_save_IFS
19640
19641 ;;
19642 esac ;;
19643 esac
19644 fi
19645 MVPROG=$ac_cv_path_MVPROG
19646 if test -n "$MVPROG"; then
19647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MVPROG" >&5
19648 printf "%s\n" "$MVPROG" >&6; }
19649 else
19650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19651 printf "%s\n" "no" >&6; }
19652 fi
19653
19654
19655 test -n "${ac_cv_path_MVPROG}" && cat >>confdefs.h <<EOF
19656 #define _PATH_MV "${ac_cv_path_MVPROG}"
19657 EOF
19658
19659
19660
19661 # Extract the first word of "sh", so it can be a program name with args.
19662 set dummy sh; ac_word=$2
19663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19664 printf %s "checking for $ac_word... " >&6; }
19665 if test ${ac_cv_path_BSHELLPROG+y}
19666 then :
19667 printf %s "(cached) " >&6
19668 else case e in #(
19669 e) case $BSHELLPROG in
19670 [\\/]* | ?:[\\/]*)
19671 ac_cv_path_BSHELLPROG="$BSHELLPROG" # Let the user override the test with a path.
19672 ;;
19673 *)
19674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19675 for as_dir in $PATH
19676 do
19677 IFS=$as_save_IFS
19678 case $as_dir in #(((
19679 '') as_dir=./ ;;
19680 */) ;;
19681 *) as_dir=$as_dir/ ;;
19682 esac
19683 for ac_exec_ext in '' $ac_executable_extensions; do
19684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19685 ac_cv_path_BSHELLPROG="$as_dir$ac_word$ac_exec_ext"
19686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19687 break 2
19688 fi
19689 done
19690 done
19691 IFS=$as_save_IFS
19692
19693 test -z "$ac_cv_path_BSHELLPROG" && ac_cv_path_BSHELLPROG="/usr/bin$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin"
19694 ;;
19695 esac ;;
19696 esac
19697 fi
19698 BSHELLPROG=$ac_cv_path_BSHELLPROG
19699 if test -n "$BSHELLPROG"; then
19700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BSHELLPROG" >&5
19701 printf "%s\n" "$BSHELLPROG" >&6; }
19702 else
19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19704 printf "%s\n" "no" >&6; }
19705 fi
19706
19707
19708 test -n "${ac_cv_path_BSHELLPROG}" && cat >>confdefs.h <<EOF
19709 #define _PATH_BSHELL "${ac_cv_path_BSHELLPROG}"
19710 EOF
19711
19712
19713 if test -z "$with_sendmail"
19714 then :
19715
19716
19717 # Extract the first word of "sendmail", so it can be a program name with args.
19718 set dummy sendmail; ac_word=$2
19719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19720 printf %s "checking for $ac_word... " >&6; }
19721 if test ${ac_cv_path_SENDMAILPROG+y}
19722 then :
19723 printf %s "(cached) " >&6
19724 else case e in #(
19725 e) case $SENDMAILPROG in
19726 [\\/]* | ?:[\\/]*)
19727 ac_cv_path_SENDMAILPROG="$SENDMAILPROG" # Let the user override the test with a path.
19728 ;;
19729 *)
19730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19731 for as_dir in /usr/sbin$PATH_SEPARATOR/usr/lib$PATH_SEPARATOR/usr/etc$PATH_SEPARATOR/usr/ucblib$PATH_SEPARATOR/usr/local/lib$PATH_SEPARATOR/usr/local/bin
19732 do
19733 IFS=$as_save_IFS
19734 case $as_dir in #(((
19735 '') as_dir=./ ;;
19736 */) ;;
19737 *) as_dir=$as_dir/ ;;
19738 esac
19739 for ac_exec_ext in '' $ac_executable_extensions; do
19740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19741 ac_cv_path_SENDMAILPROG="$as_dir$ac_word$ac_exec_ext"
19742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19743 break 2
19744 fi
19745 done
19746 done
19747 IFS=$as_save_IFS
19748
19749 ;;
19750 esac ;;
19751 esac
19752 fi
19753 SENDMAILPROG=$ac_cv_path_SENDMAILPROG
19754 if test -n "$SENDMAILPROG"; then
19755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SENDMAILPROG" >&5
19756 printf "%s\n" "$SENDMAILPROG" >&6; }
19757 else
19758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19759 printf "%s\n" "no" >&6; }
19760 fi
19761
19762
19763 test -n "${ac_cv_path_SENDMAILPROG}" && cat >>confdefs.h <<EOF
19764 #define _PATH_SUDO_SENDMAIL "${ac_cv_path_SENDMAILPROG}"
19765 EOF
19766
19767
19768 with_sendmail="$ac_cv_path_SENDMAILPROG"
19769
19770 fi
19771
19772 # Extract the first word of "vi", so it can be a program name with args.
19773 set dummy vi; ac_word=$2
19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19775 printf %s "checking for $ac_word... " >&6; }
19776 if test ${ac_cv_path_VIPROG+y}
19777 then :
19778 printf %s "(cached) " >&6
19779 else case e in #(
19780 e) case $VIPROG in
19781 [\\/]* | ?:[\\/]*)
19782 ac_cv_path_VIPROG="$VIPROG" # Let the user override the test with a path.
19783 ;;
19784 *)
19785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19786 for as_dir in /usr/bin$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/ucb$PATH_SEPARATOR/usr/bsd$PATH_SEPARATOR/usr/local/bin
19787 do
19788 IFS=$as_save_IFS
19789 case $as_dir in #(((
19790 '') as_dir=./ ;;
19791 */) ;;
19792 *) as_dir=$as_dir/ ;;
19793 esac
19794 for ac_exec_ext in '' $ac_executable_extensions; do
19795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19796 ac_cv_path_VIPROG="$as_dir$ac_word$ac_exec_ext"
19797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19798 break 2
19799 fi
19800 done
19801 done
19802 IFS=$as_save_IFS
19803
19804 ;;
19805 esac ;;
19806 esac
19807 fi
19808 VIPROG=$ac_cv_path_VIPROG
19809 if test -n "$VIPROG"; then
19810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VIPROG" >&5
19811 printf "%s\n" "$VIPROG" >&6; }
19812 else
19813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19814 printf "%s\n" "no" >&6; }
19815 fi
19816
19817
19818 test -n "${ac_cv_path_VIPROG}" && cat >>confdefs.h <<EOF
19819 #define _PATH_VI "${ac_cv_path_VIPROG}"
19820 EOF
19821
19822
19823 if test -z "$with_editor"
19824 then :
19825
19826 editor="$ac_cv_path_VIPROG"
19827
19828 fi
19829 if test X"$with_logfac" = X""
19830 then :
19831
19832 ac_fn_check_decl "$LINENO" "LOG_AUTHPRIV" "ac_cv_have_decl_LOG_AUTHPRIV" "#include <syslog.h>
19833 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19834 if test "x$ac_cv_have_decl_LOG_AUTHPRIV" = xyes
19835 then :
19836 logfac=authpriv
19837 fi
19838
19839 fi
19840
19841 printf "%s\n" "#define LOGFAC \"$logfac\"" >>confdefs.h
19842
19843 ac_header_dirent=no
19844 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19845 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
19846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19847 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
19848 if eval test \${$as_ac_Header+y}
19849 then :
19850 printf %s "(cached) " >&6
19851 else case e in #(
19852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19853 /* end confdefs.h. */
19854 #include <sys/types.h>
19855 #include <$ac_hdr>
19856
19857 int
19858 main (void)
19859 {
19860 if ((DIR *) 0)
19861 return 0;
19862 ;
19863 return 0;
19864 }
19865 _ACEOF
19866 if ac_fn_c_try_compile "$LINENO"
19867 then :
19868 eval "$as_ac_Header=yes"
19869 else case e in #(
19870 e) eval "$as_ac_Header=no" ;;
19871 esac
19872 fi
19873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19874 esac
19875 fi
19876 eval ac_res=\$$as_ac_Header
19877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19878 printf "%s\n" "$ac_res" >&6; }
19879 if eval test \"x\$"$as_ac_Header"\" = x"yes"
19880 then :
19881 cat >>confdefs.h <<_ACEOF
19882 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
19883 _ACEOF
19884
19885 ac_header_dirent=$ac_hdr; break
19886 fi
19887
19888 done
19889 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19890 if test $ac_header_dirent = dirent.h; then
19891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19892 printf %s "checking for library containing opendir... " >&6; }
19893 if test ${ac_cv_search_opendir+y}
19894 then :
19895 printf %s "(cached) " >&6
19896 else case e in #(
19897 e) ac_func_search_save_LIBS=$LIBS
19898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19899 /* end confdefs.h. */
19900
19901 /* Override any GCC internal prototype to avoid an error.
19902 Use char because int might match the return type of a GCC
19903 builtin and then its argument prototype would still apply.
19904 The 'extern "C"' is for builds by C++ compilers;
19905 although this is not generally supported in C code supporting it here
19906 has little cost and some practical benefit (sr 110532). */
19907 #ifdef __cplusplus
19908 extern "C"
19909 #endif
19910 char opendir (void);
19911 int
19912 main (void)
19913 {
19914 return opendir ();
19915 ;
19916 return 0;
19917 }
19918 _ACEOF
19919 for ac_lib in '' dir
19920 do
19921 if test -z "$ac_lib"; then
19922 ac_res="none required"
19923 else
19924 ac_res=-l$ac_lib
19925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19926 fi
19927 if ac_fn_c_try_link "$LINENO"
19928 then :
19929 ac_cv_search_opendir=$ac_res
19930 fi
19931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19932 conftest$ac_exeext
19933 if test ${ac_cv_search_opendir+y}
19934 then :
19935 break
19936 fi
19937 done
19938 if test ${ac_cv_search_opendir+y}
19939 then :
19940
19941 else case e in #(
19942 e) ac_cv_search_opendir=no ;;
19943 esac
19944 fi
19945 rm conftest.$ac_ext
19946 LIBS=$ac_func_search_save_LIBS ;;
19947 esac
19948 fi
19949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19950 printf "%s\n" "$ac_cv_search_opendir" >&6; }
19951 ac_res=$ac_cv_search_opendir
19952 if test "$ac_res" != no
19953 then :
19954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19955
19956 fi
19957
19958 else
19959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19960 printf %s "checking for library containing opendir... " >&6; }
19961 if test ${ac_cv_search_opendir+y}
19962 then :
19963 printf %s "(cached) " >&6
19964 else case e in #(
19965 e) ac_func_search_save_LIBS=$LIBS
19966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19967 /* end confdefs.h. */
19968
19969 /* Override any GCC internal prototype to avoid an error.
19970 Use char because int might match the return type of a GCC
19971 builtin and then its argument prototype would still apply.
19972 The 'extern "C"' is for builds by C++ compilers;
19973 although this is not generally supported in C code supporting it here
19974 has little cost and some practical benefit (sr 110532). */
19975 #ifdef __cplusplus
19976 extern "C"
19977 #endif
19978 char opendir (void);
19979 int
19980 main (void)
19981 {
19982 return opendir ();
19983 ;
19984 return 0;
19985 }
19986 _ACEOF
19987 for ac_lib in '' x
19988 do
19989 if test -z "$ac_lib"; then
19990 ac_res="none required"
19991 else
19992 ac_res=-l$ac_lib
19993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19994 fi
19995 if ac_fn_c_try_link "$LINENO"
19996 then :
19997 ac_cv_search_opendir=$ac_res
19998 fi
19999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20000 conftest$ac_exeext
20001 if test ${ac_cv_search_opendir+y}
20002 then :
20003 break
20004 fi
20005 done
20006 if test ${ac_cv_search_opendir+y}
20007 then :
20008
20009 else case e in #(
20010 e) ac_cv_search_opendir=no ;;
20011 esac
20012 fi
20013 rm conftest.$ac_ext
20014 LIBS=$ac_func_search_save_LIBS ;;
20015 esac
20016 fi
20017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20018 printf "%s\n" "$ac_cv_search_opendir" >&6; }
20019 ac_res=$ac_cv_search_opendir
20020 if test "$ac_res" != no
20021 then :
20022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20023
20024 fi
20025
20026 fi
20027
20028 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20029 if test "x$ac_cv_type__Bool" = xyes
20030 then :
20031
20032 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
20033
20034
20035 fi
20036
20037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
20038 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
20039 if test ${ac_cv_header_stdbool_h+y}
20040 then :
20041 printf %s "(cached) " >&6
20042 else case e in #(
20043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20044 /* end confdefs.h. */
20045 #include <stdbool.h>
20046
20047 /* "true" and "false" should be usable in #if expressions and
20048 integer constant expressions, and "bool" should be a valid
20049 type name.
20050
20051 Although C99 requires bool, true, and false to be macros,
20052 C23 and C++11 overrule that, so do not test for that.
20053 Although C99 requires __bool_true_false_are_defined and
20054 _Bool, C23 says they are obsolescent, so do not require
20055 them. */
20056
20057 #if !true
20058 #error "'true' is not true"
20059 #endif
20060 #if true != 1
20061 #error "'true' is not equal to 1"
20062 #endif
20063 char b[true == 1 ? 1 : -1];
20064 char c[true];
20065
20066 #if false
20067 #error "'false' is not false"
20068 #endif
20069 #if false != 0
20070 #error "'false' is not equal to 0"
20071 #endif
20072 char d[false == 0 ? 1 : -1];
20073
20074 enum { e = false, f = true, g = false * true, h = true * 256 };
20075
20076 char i[(bool) 0.5 == true ? 1 : -1];
20077 char j[(bool) 0.0 == false ? 1 : -1];
20078 char k[sizeof (bool) > 0 ? 1 : -1];
20079
20080 struct sb { bool s: 1; bool t; } s;
20081 char l[sizeof s.t > 0 ? 1 : -1];
20082
20083 /* The following fails for
20084 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20085 bool m[h];
20086 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
20087 char o[-1 - (bool) 0 < 0 ? 1 : -1];
20088 /* Catch a bug in an HP-UX C compiler. See
20089 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20090 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
20091 */
20092 bool p = true;
20093 bool *pp = &p;
20094
20095 int
20096 main (void)
20097 {
20098
20099 bool ps = &s;
20100 *pp |= p;
20101 *pp |= ! p;
20102
20103 /* Refer to every declared value, so they cannot be
20104 discarded as unused. */
20105 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
20106 + !l + !m + !n + !o + !p + !pp + !ps);
20107
20108 ;
20109 return 0;
20110 }
20111 _ACEOF
20112 if ac_fn_c_try_compile "$LINENO"
20113 then :
20114 ac_cv_header_stdbool_h=yes
20115 else case e in #(
20116 e) ac_cv_header_stdbool_h=no ;;
20117 esac
20118 fi
20119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20120 esac
20121 fi
20122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20123 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
20124
20125 if test $ac_cv_header_stdbool_h = yes; then
20126
20127 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
20128
20129 fi
20130
20131
20132 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
20133 if test "x$ac_cv_header_sys_mkdev_h" = xyes
20134 then :
20135
20136 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
20137
20138 fi
20139
20140 if test $ac_cv_header_sys_mkdev_h = no; then
20141 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
20142 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
20143 then :
20144
20145 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
20146
20147 fi
20148
20149 fi
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162 if test X"$ac_cv_header_utmps_h" != X"yes"
20163 then :
20164
20165 ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
20166 if test "x$ac_cv_header_utmpx_h" = xyes
20167 then :
20168 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
20169
20170 fi
20171
20172
20173 fi
20174 for ac_header in endian.h sys/endian.h machine/endian.h
20175 do :
20176 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
20177 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20178 if eval test \"x\$"$as_ac_Header"\" = x"yes"
20179 then :
20180 cat >>confdefs.h <<_ACEOF
20181 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
20182 _ACEOF
20183 break
20184 fi
20185
20186 done
20187 for ac_header in procfs.h sys/procfs.h
20188 do :
20189 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
20190 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20191 if eval test \"x\$"$as_ac_Header"\" = x"yes"
20192 then :
20193 cat >>confdefs.h <<_ACEOF
20194 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
20195 _ACEOF
20196 ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default
20197 #ifdef HAVE_PROCFS_H
20198 #include <procfs.h>
20199 #endif
20200 #ifdef HAVE_SYS_PROCFS_H
20201 #include <sys/procfs.h>
20202 #endif
20203
20204 "
20205 if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes
20206 then :
20207
20208 printf "%s\n" "#define HAVE_STRUCT_PSINFO_PR_TTYDEV 1" >>confdefs.h
20209
20210 ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev"
20211 if test "x$ac_cv_func__ttyname_dev" = xyes
20212 then :
20213 printf "%s\n" "#define HAVE__TTYNAME_DEV 1" >>confdefs.h
20214
20215 fi
20216
20217 fi
20218
20219 break
20220 fi
20221
20222 done
20223 #
20224 # Check for large file and 64-bit time support.
20225 #
20226 # Check whether --enable-largefile was given.
20227 if test ${enable_largefile+y}
20228 then :
20229 enableval=$enable_largefile;
20230 fi
20231 if test "$enable_largefile,$enable_year2038" != no,no
20232 then :
20233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
20234 printf %s "checking for $CC option to enable large file support... " >&6; }
20235 if test ${ac_cv_sys_largefile_opts+y}
20236 then :
20237 printf %s "(cached) " >&6
20238 else case e in #(
20239 e) ac_save_CC="$CC"
20240 ac_opt_found=no
20241 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
20242 if test x"$ac_opt" != x"none needed"
20243 then :
20244 CC="$ac_save_CC $ac_opt"
20245 fi
20246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20247 /* end confdefs.h. */
20248 #include <sys/types.h>
20249 #ifndef FTYPE
20250 # define FTYPE off_t
20251 #endif
20252 /* Check that FTYPE can represent 2**63 - 1 correctly.
20253 We can't simply define LARGE_FTYPE to be 9223372036854775807,
20254 since some C++ compilers masquerading as C compilers
20255 incorrectly reject 9223372036854775807. */
20256 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
20257 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
20258 && LARGE_FTYPE % 2147483647 == 1)
20259 ? 1 : -1];
20260 int
20261 main (void)
20262 {
20263
20264 ;
20265 return 0;
20266 }
20267 _ACEOF
20268 if ac_fn_c_try_compile "$LINENO"
20269 then :
20270 if test x"$ac_opt" = x"none needed"
20271 then :
20272 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
20273 CC="$CC -DFTYPE=ino_t"
20274 if ac_fn_c_try_compile "$LINENO"
20275 then :
20276
20277 else case e in #(
20278 e) CC="$CC -D_FILE_OFFSET_BITS=64"
20279 if ac_fn_c_try_compile "$LINENO"
20280 then :
20281 ac_opt='-D_FILE_OFFSET_BITS=64'
20282 fi
20283 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
20284 esac
20285 fi
20286 rm -f core conftest.err conftest.$ac_objext conftest.beam
20287 fi
20288 ac_cv_sys_largefile_opts=$ac_opt
20289 ac_opt_found=yes
20290 fi
20291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20292 test $ac_opt_found = no || break
20293 done
20294 CC="$ac_save_CC"
20295
20296 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
20297 esac
20298 fi
20299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
20300 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
20301
20302 ac_have_largefile=yes
20303 case $ac_cv_sys_largefile_opts in #(
20304 "none needed") :
20305 ;; #(
20306 "supported through gnulib") :
20307 ;; #(
20308 "support not detected") :
20309 ac_have_largefile=no ;; #(
20310 "-D_FILE_OFFSET_BITS=64") :
20311
20312 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
20313 ;; #(
20314 "-D_LARGE_FILES=1") :
20315
20316 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
20317 ;; #(
20318 "-n32") :
20319 CC="$CC -n32" ;; #(
20320 *) :
20321 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
20322 esac
20323
20324 if test "$enable_year2038" != no
20325 then :
20326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
20327 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
20328 if test ${ac_cv_sys_year2038_opts+y}
20329 then :
20330 printf %s "(cached) " >&6
20331 else case e in #(
20332 e) ac_save_CPPFLAGS="$CPPFLAGS"
20333 ac_opt_found=no
20334 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
20335 if test x"$ac_opt" != x"none needed"
20336 then :
20337 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
20338 fi
20339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20340 /* end confdefs.h. */
20341
20342 #include <time.h>
20343 /* Check that time_t can represent 2**32 - 1 correctly. */
20344 #define LARGE_TIME_T \\
20345 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
20346 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
20347 && LARGE_TIME_T % 65537 == 0)
20348 ? 1 : -1];
20349
20350 int
20351 main (void)
20352 {
20353
20354 ;
20355 return 0;
20356 }
20357 _ACEOF
20358 if ac_fn_c_try_compile "$LINENO"
20359 then :
20360 ac_cv_sys_year2038_opts="$ac_opt"
20361 ac_opt_found=yes
20362 fi
20363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20364 test $ac_opt_found = no || break
20365 done
20366 CPPFLAGS="$ac_save_CPPFLAGS"
20367 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
20368 esac
20369 fi
20370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
20371 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
20372
20373 ac_have_year2038=yes
20374 case $ac_cv_sys_year2038_opts in #(
20375 "none needed") :
20376 ;; #(
20377 "support not detected") :
20378 ac_have_year2038=no ;; #(
20379 "-D_TIME_BITS=64") :
20380
20381 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
20382 ;; #(
20383 "-D__MINGW_USE_VC2005_COMPAT") :
20384
20385 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
20386 ;; #(
20387 "-U_USE_32_BIT_TIME_T"*) :
20388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20389 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20390 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
20391 will stop working after mid-January 2038. Remove
20392 _USE_32BIT_TIME_T from the compiler flags.
20393 See 'config.log' for more details" "$LINENO" 5; } ;; #(
20394 *) :
20395 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
20396 esac
20397
20398 fi
20399
20400 fi
20401 if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no
20402 then :
20403 # If we're not cross compiling and 'touch' works with a large
20404 # timestamp, then we can presume the system supports wider time_t
20405 # *somehow* and we just weren't able to detect it. One common
20406 # case that we deliberately *don't* probe for is a system that
20407 # supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
20408 # wide time_t. (It would be inappropriate for us to override an
20409 # intentional use of -m32.) Error out, demanding use of
20410 # --disable-year2038 if this is intentional.
20411 if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
20412 then :
20413 case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
20414 *'Feb 7 2106'* | *'Feb 7 17:10'*) :
20415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20416 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20417 as_fn_error $? "this system appears to support timestamps after
20418 mid-January 2038, but no mechanism for enabling wide
20419 'time_t' was detected. Did you mean to build a 64-bit
20420 binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with
20421 32-bit time_t, configure with '--disable-year2038'.
20422 See 'config.log' for more details" "$LINENO" 5; } ;; #(
20423 *) :
20424 ;;
20425 esac
20426 fi
20427 fi
20428
20429 #
20430 # Don't allow undefined symbols, even in shared libraries, if possible.
20431 # This will detect missing symbols at build-time instead of run-time
20432 # but is incompatible with the sanitizers/fuzzers.
20433 # We must set this *before* the library tests.
20434 #
20435 if test -n "$GCC" -a X"${enable_sanitizer}${enable_fuzzer}" = X"nono"
20436 then :
20437
20438 case $host_os in #(
20439 darwin*) :
20440
20441 # On macOS 13, using "-undefined dynamic_lookup" produces a
20442 # warning. Use the -no-undefined libtool option to avoid this.
20443
20444 if test ${LT_LDFLAGS+y}
20445 then :
20446
20447 case " $LT_LDFLAGS " in #(
20448 *" -no-undefined "*) :
20449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LT_LDFLAGS already contains -no-undefined"; } >&5
20450 (: LT_LDFLAGS already contains -no-undefined) 2>&5
20451 ac_status=$?
20452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20453 test $ac_status = 0; } ;; #(
20454 *) :
20455
20456 as_fn_append LT_LDFLAGS " -no-undefined"
20457 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LT_LDFLAGS=\"\$LT_LDFLAGS\""; } >&5
20458 (: LT_LDFLAGS="$LT_LDFLAGS") 2>&5
20459 ac_status=$?
20460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20461 test $ac_status = 0; }
20462 ;;
20463 esac
20464
20465 else case e in #(
20466 e)
20467 LT_LDFLAGS=-no-undefined
20468 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LT_LDFLAGS=\"\$LT_LDFLAGS\""; } >&5
20469 (: LT_LDFLAGS="$LT_LDFLAGS") 2>&5
20470 ac_status=$?
20471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20472 test $ac_status = 0; }
20473 ;;
20474 esac
20475 fi
20476
20477 ;; #(
20478 *) :
20479
20480 # On FreeBSD and Dragonfly, environ is filled in by the dynamic loader
20481 # so -Wl,--no-undefined causes a link error when environ is used.
20482 # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263265
20483 # We use errno because OpenBSD shared libraries don't explicitly
20484 # link with libc, which can result in undefined reference errors.
20485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the linker accepts -Wl,--no-undefined" >&5
20486 printf %s "checking the linker accepts -Wl,--no-undefined... " >&6; }
20487 if test ${sudo_cv_var_ld___no_undefined+y}
20488 then :
20489 printf %s "(cached) " >&6
20490 else case e in #(
20491 e)
20492 sudo_cv_var_ld___no_undefined=no
20493 _CFLAGS="$CFLAGS"
20494 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20495 _LDFLAGS="$LDFLAGS"
20496 LDFLAGS="$LDFLAGS $lt_prog_compiler_pic -shared -Wl,--no-undefined"
20497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h. */
20499 #include <errno.h>
20500 extern char **environ;
20501 int
20502 main (void)
20503 {
20504 int ret = ((long)environ & 0xff) + errno; return ret;
20505 ;
20506 return 0;
20507 }
20508 _ACEOF
20509 if ac_fn_c_try_link "$LINENO"
20510 then :
20511 sudo_cv_var_ld___no_undefined=yes
20512 fi
20513 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20514 conftest$ac_exeext conftest.$ac_ext
20515 CFLAGS="$_CFLAGS"
20516 LDFLAGS="$_LDFLAGS"
20517
20518 ;;
20519 esac
20520 fi
20521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_ld___no_undefined" >&5
20522 printf "%s\n" "$sudo_cv_var_ld___no_undefined" >&6; }
20523 if test "$sudo_cv_var_ld___no_undefined" = "yes"
20524 then :
20525
20526
20527 if test ${LDFLAGS+y}
20528 then :
20529
20530 case " $LDFLAGS " in #(
20531 *" -Wl,--no-undefined "*) :
20532 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains -Wl,--no-undefined"; } >&5
20533 (: LDFLAGS already contains -Wl,--no-undefined) 2>&5
20534 ac_status=$?
20535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20536 test $ac_status = 0; } ;; #(
20537 *) :
20538
20539 as_fn_append LDFLAGS " -Wl,--no-undefined"
20540 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
20541 (: LDFLAGS="$LDFLAGS") 2>&5
20542 ac_status=$?
20543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20544 test $ac_status = 0; }
20545 ;;
20546 esac
20547
20548 else case e in #(
20549 e)
20550 LDFLAGS=-Wl,--no-undefined
20551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
20552 (: LDFLAGS="$LDFLAGS") 2>&5
20553 ac_status=$?
20554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20555 test $ac_status = 0; }
20556 ;;
20557 esac
20558 fi
20559
20560
20561 fi
20562 ;;
20563 esac
20564
20565 fi
20566
20567 #
20568 # HP-UX may need to define _XOPEN_SOURCE_EXTENDED to expose MSG_WAITALL.
20569 # Also, HP-UX 11.23 has a broken sys/types.h when large files support
20570 # is enabled and _XOPEN_SOURCE_EXTENDED is not also defined.
20571 # The following test will define _XOPEN_SOURCE_EXTENDED in either case.
20572 #
20573 case "$host_os" in
20574 hpux*)
20575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/socket.h needs _XOPEN_SOURCE_EXTENDED for MSG_WAITALL" >&5
20576 printf %s "checking whether sys/socket.h needs _XOPEN_SOURCE_EXTENDED for MSG_WAITALL... " >&6; }
20577 if test ${sudo_cv_xopen_source_extended+y}
20578 then :
20579 printf %s "(cached) " >&6
20580 else case e in #(
20581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20582 /* end confdefs.h. */
20583 $ac_includes_default
20584 # include <sys/socket.h>
20585 int
20586 main (void)
20587 {
20588 int a = MSG_WAITALL; return a;
20589 ;
20590 return 0;
20591 }
20592 _ACEOF
20593 if ac_fn_c_try_compile "$LINENO"
20594 then :
20595 sudo_cv_xopen_source_extended=no
20596 else case e in #(
20597 e)
20598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20599 /* end confdefs.h. */
20600 #define _XOPEN_SOURCE_EXTENDED
20601 $ac_includes_default
20602 # include <sys/socket.h>
20603 # include <net/if.h>
20604 int
20605 main (void)
20606 {
20607 int a = MSG_WAITALL; return a;
20608 ;
20609 return 0;
20610 }
20611 _ACEOF
20612 if ac_fn_c_try_compile "$LINENO"
20613 then :
20614 sudo_cv_xopen_source_extended=yes
20615 else case e in #(
20616 e) sudo_cv_xopen_source_extended=error ;;
20617 esac
20618 fi
20619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20620 ;;
20621 esac
20622 fi
20623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20624 esac
20625 fi
20626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
20627 printf "%s\n" "$sudo_cv_xopen_source_extended" >&6; }
20628 if test "$sudo_cv_xopen_source_extended" = "yes"
20629 then :
20630
20631 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
20632
20633
20634 fi
20635 ;;
20636 esac
20637
20638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the user mail spool directory" >&5
20639 printf %s "checking for the user mail spool directory... " >&6; }
20640 if test ${sudo_cv_mail_dir+y}
20641 then :
20642 printf %s "(cached) " >&6
20643 else case e in #(
20644 e)
20645 sudo_cv_mail_dir=no
20646 if test X"$ac_cv_header_paths_h" = X"yes"; then
20647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20648 /* end confdefs.h. */
20649 $ac_includes_default
20650 #include <paths.h>
20651 int
20652 main (void)
20653 {
20654 char *p = _PATH_MAILDIR;
20655 ;
20656 return 0;
20657 }
20658 _ACEOF
20659 if ac_fn_c_try_compile "$LINENO"
20660 then :
20661 sudo_cv_mail_dir="paths.h"
20662 fi
20663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20664 fi
20665 if test $sudo_cv_mail_dir = no; then
20666 # Solaris has maillock.h which defines MAILDIR
20667 for ac_header in maillock.h
20668 do :
20669 ac_fn_c_check_header_compile "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
20670 if test "x$ac_cv_header_maillock_h" = xyes
20671 then :
20672 printf "%s\n" "#define HAVE_MAILLOCK_H 1" >>confdefs.h
20673
20674 sudo_cv_mail_dir=maillock.h
20675
20676 else case e in #(
20677 e)
20678 sudo_cv_mail_dir=/var/mail
20679 for d in /var/mail /var/spool/mail /usr/spool/mail; do
20680 if test -d "$d"; then
20681 sudo_cv_mail_dir="$d"
20682 break
20683 fi
20684 done
20685 ;;
20686 esac
20687 fi
20688
20689 done
20690 fi
20691 ;;
20692 esac
20693 fi
20694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_mail_dir" >&5
20695 printf "%s\n" "$sudo_cv_mail_dir" >&6; }
20696 case "$sudo_cv_mail_dir" in
20697 paths.h)
20698 # _PATH_MAILDIR already present in paths.h.
20699 ;;
20700 maillock.h)
20701 # Use MAILDIR from maillock.h
20702 cat >>confdefs.h <<\EOF
20703 #define _PATH_MAILDIR MAILDIR
20704 EOF
20705
20706 printf "%s\n" "#define HAVE_MAILLOCK_H 1" >>confdefs.h
20707
20708 ;;
20709 *)
20710 cat >>confdefs.h <<EOF
20711 #define _PATH_MAILDIR "$sudo_cv_mail_dir"
20712 EOF
20713
20714 ;;
20715 esac
20716
20717 if test ${with_logincap-'no'} != "no"
20718 then :
20719
20720 for ac_header in login_cap.h
20721 do :
20722 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
20723 if test "x$ac_cv_header_login_cap_h" = xyes
20724 then :
20725 printf "%s\n" "#define HAVE_LOGIN_CAP_H 1" >>confdefs.h
20726
20727 LOGINCAP_USAGE='[-c class] '
20728 LCMAN=1
20729 with_logincap=yes
20730
20731 fi
20732
20733 done
20734 if test "${with_logincap}" = "yes"
20735 then :
20736
20737 # setusercontext() is in libutil on NetBSD, FreeBSD, Dragonfly BSD.
20738 _LIBS="$LIBS"
20739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20740 printf %s "checking for library containing setusercontext... " >&6; }
20741 if test ${ac_cv_search_setusercontext+y}
20742 then :
20743 printf %s "(cached) " >&6
20744 else case e in #(
20745 e) ac_func_search_save_LIBS=$LIBS
20746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20747 /* end confdefs.h. */
20748
20749 /* Override any GCC internal prototype to avoid an error.
20750 Use char because int might match the return type of a GCC
20751 builtin and then its argument prototype would still apply.
20752 The 'extern "C"' is for builds by C++ compilers;
20753 although this is not generally supported in C code supporting it here
20754 has little cost and some practical benefit (sr 110532). */
20755 #ifdef __cplusplus
20756 extern "C"
20757 #endif
20758 char setusercontext (void);
20759 int
20760 main (void)
20761 {
20762 return setusercontext ();
20763 ;
20764 return 0;
20765 }
20766 _ACEOF
20767 for ac_lib in '' util
20768 do
20769 if test -z "$ac_lib"; then
20770 ac_res="none required"
20771 else
20772 ac_res=-l$ac_lib
20773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20774 fi
20775 if ac_fn_c_try_link "$LINENO"
20776 then :
20777 ac_cv_search_setusercontext=$ac_res
20778 fi
20779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20780 conftest$ac_exeext
20781 if test ${ac_cv_search_setusercontext+y}
20782 then :
20783 break
20784 fi
20785 done
20786 if test ${ac_cv_search_setusercontext+y}
20787 then :
20788
20789 else case e in #(
20790 e) ac_cv_search_setusercontext=no ;;
20791 esac
20792 fi
20793 rm conftest.$ac_ext
20794 LIBS=$ac_func_search_save_LIBS ;;
20795 esac
20796 fi
20797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20798 printf "%s\n" "$ac_cv_search_setusercontext" >&6; }
20799 ac_res=$ac_cv_search_setusercontext
20800 if test "$ac_res" != no
20801 then :
20802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20803
20804 fi
20805
20806 LIBS="$_LIBS"
20807 if test "${ac_cv_search_setusercontext}" != "none required"
20808 then :
20809
20810 SUDO_LIBS="${SUDO_LIBS} -lutil"
20811 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
20812
20813 fi
20814
20815 fi
20816
20817 fi
20818 if test ${with_project-'no'} != "no"
20819 then :
20820
20821 ac_fn_c_check_header_compile "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
20822 if test "x$ac_cv_header_project_h" = xyes
20823 then :
20824
20825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
20826 printf %s "checking for setproject in -lproject... " >&6; }
20827 if test ${ac_cv_lib_project_setproject+y}
20828 then :
20829 printf %s "(cached) " >&6
20830 else case e in #(
20831 e) ac_check_lib_save_LIBS=$LIBS
20832 LIBS="-lproject $LIBS"
20833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20834 /* end confdefs.h. */
20835
20836 /* Override any GCC internal prototype to avoid an error.
20837 Use char because int might match the return type of a GCC
20838 builtin and then its argument prototype would still apply.
20839 The 'extern "C"' is for builds by C++ compilers;
20840 although this is not generally supported in C code supporting it here
20841 has little cost and some practical benefit (sr 110532). */
20842 #ifdef __cplusplus
20843 extern "C"
20844 #endif
20845 char setproject (void);
20846 int
20847 main (void)
20848 {
20849 return setproject ();
20850 ;
20851 return 0;
20852 }
20853 _ACEOF
20854 if ac_fn_c_try_link "$LINENO"
20855 then :
20856 ac_cv_lib_project_setproject=yes
20857 else case e in #(
20858 e) ac_cv_lib_project_setproject=no ;;
20859 esac
20860 fi
20861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20862 conftest$ac_exeext conftest.$ac_ext
20863 LIBS=$ac_check_lib_save_LIBS ;;
20864 esac
20865 fi
20866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
20867 printf "%s\n" "$ac_cv_lib_project_setproject" >&6; }
20868 if test "x$ac_cv_lib_project_setproject" = xyes
20869 then :
20870
20871 printf "%s\n" "#define HAVE_PROJECT_H 1" >>confdefs.h
20872
20873 SUDO_LIBS="${SUDO_LIBS} -lproject"
20874
20875 fi
20876
20877
20878 else case e in #(
20879 e) with_project=no ;;
20880 esac
20881 fi
20882
20883
20884 fi
20885
20886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20887 printf %s "checking for unsigned long long int... " >&6; }
20888 if test ${ac_cv_type_unsigned_long_long_int+y}
20889 then :
20890 printf %s "(cached) " >&6
20891 else case e in #(
20892 e) ac_cv_type_unsigned_long_long_int=yes
20893 case $ac_prog_cc_stdc in
20894 no | c89) ;;
20895 *)
20896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h. */
20898
20899 /* For now, do not test the preprocessor; as of 2007 there are too many
20900 implementations with broken preprocessors. Perhaps this can
20901 be revisited in 2012. In the meantime, code should not expect
20902 #if to work with literals wider than 32 bits. */
20903 /* Test literals. */
20904 long long int ll = 9223372036854775807ll;
20905 long long int nll = -9223372036854775807LL;
20906 unsigned long long int ull = 18446744073709551615ULL;
20907 /* Test constant expressions. */
20908 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20909 ? 1 : -1)];
20910 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20911 ? 1 : -1)];
20912 int i = 63;
20913 int
20914 main (void)
20915 {
20916 /* Test availability of runtime routines for shift and division. */
20917 long long int llmax = 9223372036854775807ll;
20918 unsigned long long int ullmax = 18446744073709551615ull;
20919 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20920 | (llmax / ll) | (llmax % ll)
20921 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20922 | (ullmax / ull) | (ullmax % ull));
20923 ;
20924 return 0;
20925 }
20926
20927 _ACEOF
20928 if ac_fn_c_try_link "$LINENO"
20929 then :
20930
20931 else case e in #(
20932 e) ac_cv_type_unsigned_long_long_int=no ;;
20933 esac
20934 fi
20935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20936 conftest$ac_exeext conftest.$ac_ext;;
20937 esac ;;
20938 esac
20939 fi
20940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20941 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
20942 if test $ac_cv_type_unsigned_long_long_int = yes; then
20943
20944 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20945
20946 fi
20947
20948
20949
20950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20951 printf %s "checking for long long int... " >&6; }
20952 if test ${ac_cv_type_long_long_int+y}
20953 then :
20954 printf %s "(cached) " >&6
20955 else case e in #(
20956 e) ac_cv_type_long_long_int=yes
20957 case $ac_prog_cc_stdc in
20958 no | c89) ;;
20959 *)
20960 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20961 if test $ac_cv_type_long_long_int = yes; then
20962 if test "$cross_compiling" = yes
20963 then :
20964 :
20965 else case e in #(
20966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20967 /* end confdefs.h. */
20968 #include <limits.h>
20969 #ifndef LLONG_MAX
20970 # define HALF \\
20971 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20972 # define LLONG_MAX (HALF - 1 + HALF)
20973 #endif
20974 int
20975 main (void)
20976 {
20977 long long int n = 1;
20978 int i;
20979 for (i = 0; ; i++)
20980 {
20981 long long int m = n << i;
20982 if (m >> i != n)
20983 return 1;
20984 if (LLONG_MAX / 2 < m)
20985 break;
20986 }
20987 return 0;
20988 ;
20989 return 0;
20990 }
20991 _ACEOF
20992 if ac_fn_c_try_run "$LINENO"
20993 then :
20994
20995 else case e in #(
20996 e) ac_cv_type_long_long_int=no ;;
20997 esac
20998 fi
20999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21000 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21001 esac
21002 fi
21003
21004 fi;;
21005 esac ;;
21006 esac
21007 fi
21008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
21009 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
21010 if test $ac_cv_type_long_long_int = yes; then
21011
21012 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
21013
21014 fi
21015
21016 if test X"${ac_cv_header_stdint_h}${ac_cv_header_inttypes_h}" = X"nono"
21017 then :
21018
21019 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
21020 case $ac_cv_c_int8_t in #(
21021 no|yes) ;; #(
21022 *)
21023
21024 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
21025 ;;
21026 esac
21027
21028 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
21029 case $ac_cv_c_uint8_t in #(
21030 no|yes) ;; #(
21031 *)
21032
21033 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
21034
21035
21036 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
21037 ;;
21038 esac
21039
21040 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
21041 case $ac_cv_c_int16_t in #(
21042 no|yes) ;; #(
21043 *)
21044
21045 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
21046 ;;
21047 esac
21048
21049 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
21050 case $ac_cv_c_uint16_t in #(
21051 no|yes) ;; #(
21052 *)
21053
21054
21055 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
21056 ;;
21057 esac
21058
21059 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
21060 case $ac_cv_c_int32_t in #(
21061 no|yes) ;; #(
21062 *)
21063
21064 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
21065 ;;
21066 esac
21067
21068 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
21069 case $ac_cv_c_uint32_t in #(
21070 no|yes) ;; #(
21071 *)
21072
21073 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
21074
21075
21076 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
21077 ;;
21078 esac
21079
21080 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
21081 case $ac_cv_c_int64_t in #(
21082 no|yes) ;; #(
21083 *)
21084
21085 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
21086 ;;
21087 esac
21088
21089 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
21090 case $ac_cv_c_uint64_t in #(
21091 no|yes) ;; #(
21092 *)
21093
21094 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
21095
21096
21097 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
21098 ;;
21099 esac
21100
21101
21102
21103 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
21104 if test "x$ac_cv_type_intmax_t" = xyes
21105 then :
21106
21107 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
21108
21109 else case e in #(
21110 e) test $ac_cv_type_long_long_int = yes \
21111 && ac_type='long long int' \
21112 || ac_type='long int'
21113
21114 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
21115 ;;
21116 esac
21117 fi
21118
21119
21120
21121
21122 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
21123 if test "x$ac_cv_type_uintmax_t" = xyes
21124 then :
21125
21126 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
21127
21128 else case e in #(
21129 e) test $ac_cv_type_unsigned_long_long_int = yes \
21130 && ac_type='unsigned long long int' \
21131 || ac_type='unsigned long int'
21132
21133 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
21134 ;;
21135 esac
21136 fi
21137
21138
21139
21140 fi
21141 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
21142 $ac_includes_default
21143 #include <signal.h>
21144 "
21145 if test "x$ac_cv_type_sig_atomic_t" = xyes
21146 then :
21147
21148 printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
21149
21150
21151 fi
21152
21153 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
21154 #include <netinet/in.h>
21155 "
21156 if test "x$ac_cv_type_struct_in6_addr" = xyes
21157 then :
21158
21159 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21160
21161
21162 fi
21163
21164 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21165 $ac_includes_default
21166 #include <sys/socket.h>
21167 "
21168 if test "x$ac_cv_type_socklen_t" = xyes
21169 then :
21170
21171 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
21172
21173
21174 fi
21175
21176
21177 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
21178 # include <sys/types.h>
21179 # include <sys/socket.h>
21180
21181 "
21182 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
21183 then :
21184
21185 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
21186
21187 fi
21188
21189
21190
21191 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21192 # include <sys/types.h>
21193 # include <sys/socket.h>
21194
21195 "
21196 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
21197 then :
21198
21199 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
21200
21201 fi
21202
21203
21204 # The cast to long int works around a bug in the HP C Compiler
21205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21206 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
21207 # This bug is HP SR number 8606223364.
21208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21209 printf %s "checking size of long... " >&6; }
21210 if test ${ac_cv_sizeof_long+y}
21211 then :
21212 printf %s "(cached) " >&6
21213 else case e in #(
21214 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
21215 then :
21216
21217 else case e in #(
21218 e) if test "$ac_cv_type_long" = yes; then
21219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21220 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21221 as_fn_error 77 "cannot compute sizeof (long)
21222 See 'config.log' for more details" "$LINENO" 5; }
21223 else
21224 ac_cv_sizeof_long=0
21225 fi ;;
21226 esac
21227 fi
21228 ;;
21229 esac
21230 fi
21231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21232 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
21233
21234
21235
21236 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
21237
21238
21239 # The cast to long int works around a bug in the HP C Compiler
21240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21241 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
21242 # This bug is HP SR number 8606223364.
21243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
21244 printf %s "checking size of long long... " >&6; }
21245 if test ${ac_cv_sizeof_long_long+y}
21246 then :
21247 printf %s "(cached) " >&6
21248 else case e in #(
21249 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
21250 then :
21251
21252 else case e in #(
21253 e) if test "$ac_cv_type_long_long" = yes; then
21254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21255 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21256 as_fn_error 77 "cannot compute sizeof (long long)
21257 See 'config.log' for more details" "$LINENO" 5; }
21258 else
21259 ac_cv_sizeof_long_long=0
21260 fi ;;
21261 esac
21262 fi
21263 ;;
21264 esac
21265 fi
21266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
21267 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
21268
21269
21270
21271 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
21272
21273
21274 # The cast to long int works around a bug in the HP C Compiler
21275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21276 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
21277 # This bug is HP SR number 8606223364.
21278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of id_t" >&5
21279 printf %s "checking size of id_t... " >&6; }
21280 if test ${ac_cv_sizeof_id_t+y}
21281 then :
21282 printf %s "(cached) " >&6
21283 else case e in #(
21284 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (id_t))" "ac_cv_sizeof_id_t" "$ac_includes_default"
21285 then :
21286
21287 else case e in #(
21288 e) if test "$ac_cv_type_id_t" = yes; then
21289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21290 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21291 as_fn_error 77 "cannot compute sizeof (id_t)
21292 See 'config.log' for more details" "$LINENO" 5; }
21293 else
21294 ac_cv_sizeof_id_t=0
21295 fi ;;
21296 esac
21297 fi
21298 ;;
21299 esac
21300 fi
21301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_id_t" >&5
21302 printf "%s\n" "$ac_cv_sizeof_id_t" >&6; }
21303
21304
21305
21306 printf "%s\n" "#define SIZEOF_ID_T $ac_cv_sizeof_id_t" >>confdefs.h
21307
21308
21309 # The cast to long int works around a bug in the HP C Compiler
21310 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21311 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
21312 # This bug is HP SR number 8606223364.
21313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
21314 printf %s "checking size of off_t... " >&6; }
21315 if test ${ac_cv_sizeof_off_t+y}
21316 then :
21317 printf %s "(cached) " >&6
21318 else case e in #(
21319 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
21320 then :
21321
21322 else case e in #(
21323 e) if test "$ac_cv_type_off_t" = yes; then
21324 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21325 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21326 as_fn_error 77 "cannot compute sizeof (off_t)
21327 See 'config.log' for more details" "$LINENO" 5; }
21328 else
21329 ac_cv_sizeof_off_t=0
21330 fi ;;
21331 esac
21332 fi
21333 ;;
21334 esac
21335 fi
21336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
21337 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
21338
21339
21340
21341 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
21342
21343
21344 # The cast to long int works around a bug in the HP C Compiler
21345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21346 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
21347 # This bug is HP SR number 8606223364.
21348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
21349 printf %s "checking size of time_t... " >&6; }
21350 if test ${ac_cv_sizeof_time_t+y}
21351 then :
21352 printf %s "(cached) " >&6
21353 else case e in #(
21354 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
21355 then :
21356
21357 else case e in #(
21358 e) if test "$ac_cv_type_time_t" = yes; then
21359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21360 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21361 as_fn_error 77 "cannot compute sizeof (time_t)
21362 See 'config.log' for more details" "$LINENO" 5; }
21363 else
21364 ac_cv_sizeof_time_t=0
21365 fi ;;
21366 esac
21367 fi
21368 ;;
21369 esac
21370 fi
21371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
21372 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
21373
21374
21375
21376 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
21377
21378
21379 # The cast to long int works around a bug in the HP C Compiler
21380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21381 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
21382 # This bug is HP SR number 8606223364.
21383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uid_t" >&5
21384 printf %s "checking size of uid_t... " >&6; }
21385 if test ${ac_cv_sizeof_uid_t+y}
21386 then :
21387 printf %s "(cached) " >&6
21388 else case e in #(
21389 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uid_t))" "ac_cv_sizeof_uid_t" "$ac_includes_default"
21390 then :
21391
21392 else case e in #(
21393 e) if test "$ac_cv_type_uid_t" = yes; then
21394 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21395 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21396 as_fn_error 77 "cannot compute sizeof (uid_t)
21397 See 'config.log' for more details" "$LINENO" 5; }
21398 else
21399 ac_cv_sizeof_uid_t=0
21400 fi ;;
21401 esac
21402 fi
21403 ;;
21404 esac
21405 fi
21406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uid_t" >&5
21407 printf "%s\n" "$ac_cv_sizeof_uid_t" >&6; }
21408
21409
21410
21411 printf "%s\n" "#define SIZEOF_UID_T $ac_cv_sizeof_uid_t" >>confdefs.h
21412
21413
21414 # sudo current assumes uid_t can be cast to unsigned int without problems
21415 if test $ac_cv_sizeof_uid_t -gt 4
21416 then :
21417 as_fn_error $? "sudo does not support systems where uid_t is larger than 32-bit" "$LINENO" 5
21418 fi
21419 if test X"$ac_cv_header_utmps_h" = X"yes"
21420 then :
21421
21422
21423 ac_fn_c_check_member "$LINENO" "struct utmps" "ut_id" "ac_cv_member_struct_utmps_ut_id" "
21424 # include <sys/types.h>
21425 # include <utmps.h>
21426
21427 "
21428 if test "x$ac_cv_member_struct_utmps_ut_id" = xyes
21429 then :
21430
21431
21432 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h
21433
21434
21435 fi
21436
21437 ac_fn_c_check_member "$LINENO" "struct utmps" "ut_pid" "ac_cv_member_struct_utmps_ut_pid" "
21438 # include <sys/types.h>
21439 # include <utmps.h>
21440
21441 "
21442 if test "x$ac_cv_member_struct_utmps_ut_pid" = xyes
21443 then :
21444
21445
21446 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h
21447
21448
21449 fi
21450
21451 ac_fn_c_check_member "$LINENO" "struct utmps" "ut_tv" "ac_cv_member_struct_utmps_ut_tv" "
21452 # include <sys/types.h>
21453 # include <utmps.h>
21454
21455 "
21456 if test "x$ac_cv_member_struct_utmps_ut_tv" = xyes
21457 then :
21458
21459
21460 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TV 1" >>confdefs.h
21461
21462
21463 fi
21464
21465 ac_fn_c_check_member "$LINENO" "struct utmps" "ut_type" "ac_cv_member_struct_utmps_ut_type" "
21466 # include <sys/types.h>
21467 # include <utmps.h>
21468
21469 "
21470 if test "x$ac_cv_member_struct_utmps_ut_type" = xyes
21471 then :
21472
21473
21474 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h
21475
21476
21477 fi
21478
21479 if test "utmps" = "utmp"; then
21480 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
21481 # include <sys/types.h>
21482 # include <utmps.h>
21483
21484 "
21485 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes
21486 then :
21487
21488 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_USER 1" >>confdefs.h
21489
21490
21491 fi
21492
21493 fi
21494 ac_fn_c_check_member "$LINENO" "struct utmps" "ut_exit.__e_termination" "ac_cv_member_struct_utmps_ut_exit___e_termination" "
21495 # include <sys/types.h>
21496 # include <utmps.h>
21497
21498 "
21499 if test "x$ac_cv_member_struct_utmps_ut_exit___e_termination" = xyes
21500 then :
21501
21502
21503 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
21504
21505
21506 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1" >>confdefs.h
21507
21508
21509 else case e in #(
21510 e)
21511 ac_fn_c_check_member "$LINENO" "struct utmps" "ut_exit.e_termination" "ac_cv_member_struct_utmps_ut_exit_e_termination" "
21512 # include <sys/types.h>
21513 # include <utmps.h>
21514
21515 "
21516 if test "x$ac_cv_member_struct_utmps_ut_exit_e_termination" = xyes
21517 then :
21518
21519
21520 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
21521
21522
21523 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1" >>confdefs.h
21524
21525
21526 fi
21527
21528 ;;
21529 esac
21530 fi
21531
21532
21533
21534 elif test X"$ac_cv_header_utmpx_h" = X"yes"
21535 then :
21536
21537
21538 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
21539 # include <sys/types.h>
21540 # include <utmpx.h>
21541
21542 "
21543 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes
21544 then :
21545
21546
21547 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h
21548
21549
21550 fi
21551
21552 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
21553 # include <sys/types.h>
21554 # include <utmpx.h>
21555
21556 "
21557 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes
21558 then :
21559
21560
21561 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h
21562
21563
21564 fi
21565
21566 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
21567 # include <sys/types.h>
21568 # include <utmpx.h>
21569
21570 "
21571 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes
21572 then :
21573
21574
21575 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TV 1" >>confdefs.h
21576
21577
21578 fi
21579
21580 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
21581 # include <sys/types.h>
21582 # include <utmpx.h>
21583
21584 "
21585 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes
21586 then :
21587
21588
21589 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h
21590
21591
21592 fi
21593
21594 if test "utmpx" = "utmp"; then
21595 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
21596 # include <sys/types.h>
21597 # include <utmpx.h>
21598
21599 "
21600 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes
21601 then :
21602
21603 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_USER 1" >>confdefs.h
21604
21605
21606 fi
21607
21608 fi
21609 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
21610 # include <sys/types.h>
21611 # include <utmpx.h>
21612
21613 "
21614 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes
21615 then :
21616
21617
21618 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
21619
21620
21621 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1" >>confdefs.h
21622
21623
21624 else case e in #(
21625 e)
21626 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
21627 # include <sys/types.h>
21628 # include <utmpx.h>
21629
21630 "
21631 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes
21632 then :
21633
21634
21635 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
21636
21637
21638 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1" >>confdefs.h
21639
21640
21641 fi
21642
21643 ;;
21644 esac
21645 fi
21646
21647
21648
21649 else case e in #(
21650 e)
21651
21652 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
21653 # include <sys/types.h>
21654 # include <utmp.h>
21655
21656 "
21657 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes
21658 then :
21659
21660
21661 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h
21662
21663
21664 fi
21665
21666 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
21667 # include <sys/types.h>
21668 # include <utmp.h>
21669
21670 "
21671 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes
21672 then :
21673
21674
21675 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h
21676
21677
21678 fi
21679
21680 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
21681 # include <sys/types.h>
21682 # include <utmp.h>
21683
21684 "
21685 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes
21686 then :
21687
21688
21689 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TV 1" >>confdefs.h
21690
21691
21692 fi
21693
21694 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
21695 # include <sys/types.h>
21696 # include <utmp.h>
21697
21698 "
21699 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes
21700 then :
21701
21702
21703 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h
21704
21705
21706 fi
21707
21708 if test "utmp" = "utmp"; then
21709 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
21710 # include <sys/types.h>
21711 # include <utmp.h>
21712
21713 "
21714 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes
21715 then :
21716
21717 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_USER 1" >>confdefs.h
21718
21719
21720 fi
21721
21722 fi
21723 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
21724 # include <sys/types.h>
21725 # include <utmp.h>
21726
21727 "
21728 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes
21729 then :
21730
21731
21732 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
21733
21734
21735 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1" >>confdefs.h
21736
21737
21738 else case e in #(
21739 e)
21740 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
21741 # include <sys/types.h>
21742 # include <utmp.h>
21743
21744 "
21745 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes
21746 then :
21747
21748
21749 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
21750
21751
21752 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1" >>confdefs.h
21753
21754
21755 fi
21756
21757 ;;
21758 esac
21759 fi
21760
21761
21762 ;;
21763 esac
21764 fi
21765
21766 RTLD_PRELOAD_VAR="LD_PRELOAD"
21767 if test $ac_cv_sizeof_long -eq 4; then
21768 RTLD_PRELOAD_VAR_32="LD_PRELOAD"
21769 else
21770 RTLD_PRELOAD_VAR_64="LD_PRELOAD"
21771 fi
21772 RTLD_PRELOAD_ENABLE_VAR=
21773 RTLD_PRELOAD_DELIM=":"
21774 RTLD_PRELOAD_DEFAULT=
21775
21776 case "$host" in
21777 *-*-solaris2*)
21778 # LD_PRELOAD is space-delimited
21779 RTLD_PRELOAD_DELIM=" "
21780 RTLD_PRELOAD_VAR_32="LD_PRELOAD_32"
21781 RTLD_PRELOAD_VAR_64="LD_PRELOAD_64"
21782 ;;
21783 *-*-aix*)
21784 # LDR_PRELOAD and LDR_PRELOAD64 are only supported on
21785 # AIX 5.3 and above.
21786 case "$OSREV" in
21787 [1-4].*|5.[1-2]*)
21788 with_noexec=no
21789 ;;
21790 *)
21791 # AIX uses LDR_PRELOAD for 32-bit executables
21792 # and LDR_PRELOAD64 for 64-bit executable.
21793 RTLD_PRELOAD_VAR_32="LDR_PRELOAD"
21794 RTLD_PRELOAD_VAR_64="LDR_PRELOAD64"
21795 if test $ac_cv_sizeof_long -eq 4; then
21796 RTLD_PRELOAD_VAR="LDR_PRELOAD"
21797 else
21798 RTLD_PRELOAD_VAR="LDR_PRELOAD64"
21799 fi
21800 ;;
21801 esac
21802 ;;
21803 *-dec-osf*|*-*-hiuxmpp*|*-*-irix*)
21804 # ":DEFAULT" must be appended to _RLD_LIST
21805 RTLD_PRELOAD_VAR="_RLD_LIST"
21806 RTLD_PRELOAD_DEFAULT="DEFAULT"
21807 ;;
21808 *-*-darwin*)
21809 # Darwin 8 and above can interpose library symbols cleanly
21810 if test $OSMAJOR -ge 8
21811 then :
21812
21813 printf "%s\n" "#define HAVE___INTERPOSE 1" >>confdefs.h
21814
21815 dlyld_interpose=yes
21816
21817 else case e in #(
21818 e)
21819 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
21820 ;;
21821 esac
21822 fi
21823 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
21824
21825 # Build sudo_noexec.so as a shared library, not a module.
21826 # On Darwin, modules and shared libraries are incompatible.
21827 PRELOAD_MODULE=
21828 ;;
21829 *-*-nextstep*)
21830 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
21831 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
21832 ;;
21833 esac
21834
21835 if test X"$enable_intercept" = X"no"
21836 then :
21837
21838 intercept_file=disabled
21839
21840 fi
21841 if test X"$with_noexec" = X"no"
21842 then :
21843
21844 noexec_file=disabled
21845
21846 fi
21847 if test X"${intercept_file} ${noexec_file}" != X"disabled disabled"
21848 then :
21849
21850 cat >>confdefs.h <<EOF
21851 #define RTLD_PRELOAD_VAR "$RTLD_PRELOAD_VAR"
21852 EOF
21853
21854 if test -n "$RTLD_PRELOAD_VAR_32"; then
21855 cat >>confdefs.h <<EOF
21856 #define RTLD_PRELOAD_VAR_32 "$RTLD_PRELOAD_VAR_32"
21857 EOF
21858
21859 fi
21860 if test -n "$RTLD_PRELOAD_VAR_64"; then
21861 cat >>confdefs.h <<EOF
21862 #define RTLD_PRELOAD_VAR_64 "$RTLD_PRELOAD_VAR_64"
21863 EOF
21864
21865 fi
21866 cat >>confdefs.h <<EOF
21867 #define RTLD_PRELOAD_DELIM '$RTLD_PRELOAD_DELIM'
21868 EOF
21869
21870 if test -n "$RTLD_PRELOAD_DEFAULT"
21871 then :
21872
21873 cat >>confdefs.h <<EOF
21874 #define RTLD_PRELOAD_DEFAULT "$RTLD_PRELOAD_DEFAULT"
21875 EOF
21876
21877
21878 fi
21879 if test -n "$RTLD_PRELOAD_ENABLE_VAR"
21880 then :
21881
21882 cat >>confdefs.h <<EOF
21883 #define RTLD_PRELOAD_ENABLE_VAR "$RTLD_PRELOAD_ENABLE_VAR"
21884 EOF
21885
21886
21887 fi
21888
21889 fi
21890
21891 if test ${enable_python-'no'} = "yes"
21892 then :
21893
21894
21895
21896
21897
21898
21899
21900 if test -n "$PYTHON"; then
21901 # If the user set $PYTHON, use it and don't search something else.
21902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
21903 printf %s "checking whether $PYTHON version is >= 3... " >&6; }
21904 prog="import sys
21905 # split strings by '.' and convert to numeric. Append some zeros
21906 # because we need at least 4 digits for the hex conversion.
21907 # map returns an iterator in Python 3.0 and a list in 2.x
21908 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
21909 minverhex = 0
21910 # xrange is not present in Python 3.0 and range returns an iterator
21911 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21912 sys.exit(sys.hexversion < minverhex)"
21913 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21914 ($PYTHON -c "$prog") >&5 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }
21918 then :
21919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21920 printf "%s\n" "yes" >&6; }
21921 else case e in #(
21922 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21923 printf "%s\n" "no" >&6; }
21924 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
21925 esac
21926 fi
21927 am_display_PYTHON=$PYTHON
21928 else
21929 # Otherwise, try each interpreter until we find one that satisfies
21930 # VERSION.
21931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
21932 printf %s "checking for a Python interpreter with version >= 3... " >&6; }
21933 if test ${am_cv_pathless_PYTHON+y}
21934 then :
21935 printf %s "(cached) " >&6
21936 else case e in #(
21937 e)
21938 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
21939 test "$am_cv_pathless_PYTHON" = none && break
21940 prog="import sys
21941 # split strings by '.' and convert to numeric. Append some zeros
21942 # because we need at least 4 digits for the hex conversion.
21943 # map returns an iterator in Python 3.0 and a list in 2.x
21944 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
21945 minverhex = 0
21946 # xrange is not present in Python 3.0 and range returns an iterator
21947 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21948 sys.exit(sys.hexversion < minverhex)"
21949 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21950 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21951 ac_status=$?
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }
21954 then :
21955 break
21956 fi
21957 done ;;
21958 esac
21959 fi
21960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
21961 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
21962 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21963 if test "$am_cv_pathless_PYTHON" = none; then
21964 PYTHON=:
21965 else
21966 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21967 set dummy $am_cv_pathless_PYTHON; ac_word=$2
21968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21969 printf %s "checking for $ac_word... " >&6; }
21970 if test ${ac_cv_path_PYTHON+y}
21971 then :
21972 printf %s "(cached) " >&6
21973 else case e in #(
21974 e) case $PYTHON in
21975 [\\/]* | ?:[\\/]*)
21976 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21977 ;;
21978 *)
21979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21980 for as_dir in $PATH
21981 do
21982 IFS=$as_save_IFS
21983 case $as_dir in #(((
21984 '') as_dir=./ ;;
21985 */) ;;
21986 *) as_dir=$as_dir/ ;;
21987 esac
21988 for ac_exec_ext in '' $ac_executable_extensions; do
21989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21990 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
21991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21992 break 2
21993 fi
21994 done
21995 done
21996 IFS=$as_save_IFS
21997
21998 ;;
21999 esac ;;
22000 esac
22001 fi
22002 PYTHON=$ac_cv_path_PYTHON
22003 if test -n "$PYTHON"; then
22004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22005 printf "%s\n" "$PYTHON" >&6; }
22006 else
22007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22008 printf "%s\n" "no" >&6; }
22009 fi
22010
22011
22012 fi
22013 am_display_PYTHON=$am_cv_pathless_PYTHON
22014 fi
22015
22016
22017 if test "$PYTHON" = :; then
22018 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
22019 else
22020
22021
22022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22023 printf %s "checking for $am_display_PYTHON version... " >&6; }
22024 if test ${am_cv_python_version+y}
22025 then :
22026 printf %s "(cached) " >&6
22027 else case e in #(
22028 e) am_cv_python_version=`$PYTHON -c "import sys; print('%u.%u' % sys.version_info[:2])"` ;;
22029 esac
22030 fi
22031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22032 printf "%s\n" "$am_cv_python_version" >&6; }
22033 PYTHON_VERSION=$am_cv_python_version
22034
22035
22036
22037 PYTHON_PREFIX='${prefix}'
22038
22039 PYTHON_EXEC_PREFIX='${exec_prefix}'
22040
22041
22042
22043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22044 printf %s "checking for $am_display_PYTHON platform... " >&6; }
22045 if test ${am_cv_python_platform+y}
22046 then :
22047 printf %s "(cached) " >&6
22048 else case e in #(
22049 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
22050 esac
22051 fi
22052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22053 printf "%s\n" "$am_cv_python_platform" >&6; }
22054 PYTHON_PLATFORM=$am_cv_python_platform
22055
22056
22057 # Just factor out some code duplication.
22058 am_python_setup_sysconfig="\
22059 import sys
22060 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22061 # with python 3.x. See automake bug#10227.
22062 try:
22063 import sysconfig
22064 except ImportError:
22065 can_use_sysconfig = 0
22066 else:
22067 can_use_sysconfig = 1
22068 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22069 # <https://github.com/pypa/virtualenv/issues/118>
22070 try:
22071 from platform import python_implementation
22072 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22073 can_use_sysconfig = 0
22074 except ImportError:
22075 pass"
22076
22077
22078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22079 printf %s "checking for $am_display_PYTHON script directory... " >&6; }
22080 if test ${am_cv_python_pythondir+y}
22081 then :
22082 printf %s "(cached) " >&6
22083 else case e in #(
22084 e) if test "x$prefix" = xNONE
22085 then
22086 am_py_prefix=$ac_default_prefix
22087 else
22088 am_py_prefix=$prefix
22089 fi
22090 am_cv_python_pythondir=`$PYTHON -c "
22091 $am_python_setup_sysconfig
22092 if can_use_sysconfig:
22093 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22094 else:
22095 from distutils import sysconfig
22096 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22097 sys.stdout.write(sitedir)"`
22098 case $am_cv_python_pythondir in
22099 $am_py_prefix*)
22100 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22101 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22102 ;;
22103 *)
22104 case $am_py_prefix in
22105 /usr|/System*) ;;
22106 *)
22107 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22108 ;;
22109 esac
22110 ;;
22111 esac
22112 ;;
22113 esac
22114 fi
22115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22116 printf "%s\n" "$am_cv_python_pythondir" >&6; }
22117 pythondir=$am_cv_python_pythondir
22118
22119
22120
22121 pkgpythondir=\${pythondir}/$PACKAGE
22122
22123
22124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22125 printf %s "checking for $am_display_PYTHON extension module directory... " >&6; }
22126 if test ${am_cv_python_pyexecdir+y}
22127 then :
22128 printf %s "(cached) " >&6
22129 else case e in #(
22130 e) if test "x$exec_prefix" = xNONE
22131 then
22132 am_py_exec_prefix=$am_py_prefix
22133 else
22134 am_py_exec_prefix=$exec_prefix
22135 fi
22136 am_cv_python_pyexecdir=`$PYTHON -c "
22137 $am_python_setup_sysconfig
22138 if can_use_sysconfig:
22139 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22140 else:
22141 from distutils import sysconfig
22142 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22143 sys.stdout.write(sitedir)"`
22144 case $am_cv_python_pyexecdir in
22145 $am_py_exec_prefix*)
22146 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22147 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22148 ;;
22149 *)
22150 case $am_py_exec_prefix in
22151 /usr|/System*) ;;
22152 *)
22153 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22154 ;;
22155 esac
22156 ;;
22157 esac
22158 ;;
22159 esac
22160 fi
22161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22162 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
22163 pyexecdir=$am_cv_python_pyexecdir
22164
22165
22166
22167 pkgpyexecdir=\${pyexecdir}/$PACKAGE
22168
22169
22170
22171 fi
22172
22173
22174
22175
22176
22177
22178
22179 if test -z "$PYTHON_INCLUDE" || test -z "$PYTHON_LIBS"
22180 then :
22181
22182 if test -z "$PYTHON_CONFIG"
22183 then :
22184
22185 for ac_prog in python$PYTHON_VERSION-config python-config
22186 do
22187 # Extract the first word of "$ac_prog", so it can be a program name with args.
22188 set dummy $ac_prog; ac_word=$2
22189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22190 printf %s "checking for $ac_word... " >&6; }
22191 if test ${ac_cv_path_PYTHON_CONFIG+y}
22192 then :
22193 printf %s "(cached) " >&6
22194 else case e in #(
22195 e) case $PYTHON_CONFIG in
22196 [\\/]* | ?:[\\/]*)
22197 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
22198 ;;
22199 *)
22200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22201 for as_dir in `dirname $PYTHON`
22202 do
22203 IFS=$as_save_IFS
22204 case $as_dir in #(((
22205 '') as_dir=./ ;;
22206 */) ;;
22207 *) as_dir=$as_dir/ ;;
22208 esac
22209 for ac_exec_ext in '' $ac_executable_extensions; do
22210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22211 ac_cv_path_PYTHON_CONFIG="$as_dir$ac_word$ac_exec_ext"
22212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22213 break 2
22214 fi
22215 done
22216 done
22217 IFS=$as_save_IFS
22218
22219 ;;
22220 esac ;;
22221 esac
22222 fi
22223 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
22224 if test -n "$PYTHON_CONFIG"; then
22225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
22226 printf "%s\n" "$PYTHON_CONFIG" >&6; }
22227 else
22228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22229 printf "%s\n" "no" >&6; }
22230 fi
22231
22232
22233 test -n "$PYTHON_CONFIG" && break
22234 done
22235 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
22236
22237 if test "$PYTHON_CONFIG" = no
22238 then :
22239 as_fn_error $? "cannot find python-config for $PYTHON." "$LINENO" 5
22240 fi
22241
22242 fi
22243
22244 fi
22245
22246 if test -z "$PYTHON_INCLUDE"
22247 then :
22248
22249 # Pull out python include path, ignore other flags
22250 PYTHON_INCLUDE=`$PYTHON_CONFIG --cflags | tr " " "\n" | grep "^-I" | sort -u | tr "\n" " "`
22251
22252 fi
22253
22254 if test -z "$PYTHON_LIBS"
22255 then :
22256
22257 # Newer versions of python3-config need --embed to include libpython
22258 if $PYTHON_CONFIG 2>&1 | grep embed >/dev/null; then
22259 PY_EMBED=--embed
22260 else
22261 PY_EMBED=
22262 fi
22263 PYTHON_LIBS=`$PYTHON_CONFIG --ldflags $PY_EMBED`
22264 PYTHON_LIBS=`$PYTHON_CONFIG --ldflags $PY_EMBED | tr " " "\n" | grep "^-[lL]" | tr "\n" " "`
22265
22266 fi
22267
22268 PPFILES="$PPFILES "'$(srcdir)/etc/sudo-python.pp'
22269 PYTHON_PLUGIN_SRC=plugins/python
22270 PYTHON_PLUGIN=
22271 ac_config_files="$ac_config_files $PYTHON_PLUGIN_SRC/Makefile"
22272
22273
22274 fi
22275
22276 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
22277 if test "x$ac_cv_type_uid_t" = xyes
22278 then :
22279
22280 else case e in #(
22281 e)
22282 printf "%s\n" "#define uid_t int" >>confdefs.h
22283 ;;
22284 esac
22285 fi
22286
22287 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
22288 if test "x$ac_cv_type_gid_t" = xyes
22289 then :
22290
22291 else case e in #(
22292 e)
22293 printf "%s\n" "#define gid_t int" >>confdefs.h
22294 ;;
22295 esac
22296 fi
22297
22298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
22299 printf %s "checking type of array argument to getgroups... " >&6; }
22300 if test ${ac_cv_type_getgroups+y}
22301 then :
22302 printf %s "(cached) " >&6
22303 else case e in #(
22304 e) # If AC_TYPE_UID_T says there isn't any gid_t typedef, then we can skip
22305 # everything below.
22306 if test $ac_cv_type_gid_t = no
22307 then :
22308 ac_cv_type_getgroups=int
22309 else case e in #(
22310 e) # Test programs below rely on strict type checking of extern declarations:
22311 # 'extern int getgroups(int, int *); extern int getgroups(int, pid_t *);'
22312 # is valid in C89 if and only if pid_t is a typedef for int. Unlike
22313 # anything involving either an assignment or a function call, compilers
22314 # tend to make this kind of type mismatch a hard error, not just an
22315 # "incompatible pointer types" warning.
22316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22317 /* end confdefs.h. */
22318 $ac_includes_default
22319 extern int getgroups(int, gid_t *);
22320 int
22321 main (void)
22322 {
22323 return !(getgroups(0, 0) >= 0);
22324 ;
22325 return 0;
22326 }
22327 _ACEOF
22328 if ac_fn_c_try_compile "$LINENO"
22329 then :
22330 ac_getgroups_gidarray=yes
22331 else case e in #(
22332 e) ac_getgroups_gidarray=no ;;
22333 esac
22334 fi
22335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22337 /* end confdefs.h. */
22338 $ac_includes_default
22339 extern int getgroups(int, int *);
22340 int
22341 main (void)
22342 {
22343 return !(getgroups(0, 0) >= 0);
22344 ;
22345 return 0;
22346 }
22347 _ACEOF
22348 if ac_fn_c_try_compile "$LINENO"
22349 then :
22350 ac_getgroups_intarray=yes
22351 else case e in #(
22352 e) ac_getgroups_intarray=no ;;
22353 esac
22354 fi
22355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22356
22357 case int:$ac_getgroups_intarray,gid:$ac_getgroups_gidarray in #(
22358 int:yes,gid:no) :
22359 ac_cv_type_getgroups=int ;; #(
22360 int:no,gid:yes) :
22361 ac_cv_type_getgroups=gid_t ;; #(
22362 int:yes,gid:yes) :
22363
22364 # Both programs compiled - this means *either* that getgroups
22365 # was declared with no prototype, in which case we should use int,
22366 # or that it was declared prototyped but gid_t is a typedef for int,
22367 # in which case we should use gid_t. Distinguish the two cases
22368 # by testing if the compiler catches a blatantly incorrect function
22369 # signature for getgroups.
22370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22371 /* end confdefs.h. */
22372 $ac_includes_default
22373 extern int getgroups(int, float);
22374 int
22375 main (void)
22376 {
22377 return !(getgroups(0, 0) >= 0);
22378 ;
22379 return 0;
22380 }
22381 _ACEOF
22382 if ac_fn_c_try_compile "$LINENO"
22383 then :
22384
22385 # Compiler did not catch incorrect argument list;
22386 # getgroups is unprototyped.
22387 ac_cv_type_getgroups=int
22388
22389 else case e in #(
22390 e)
22391 # Compiler caught incorrect argument list;
22392 # gid_t is a typedef for int.
22393 ac_cv_type_getgroups=gid_t
22394 ;;
22395 esac
22396 fi
22397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22398 ;; #(
22399 *) :
22400
22401 # Both programs failed to compile - this probably means getgroups
22402 # wasn't declared at all. Use 'int', as this is probably a very
22403 # old system where the type _would have been_ int.
22404 ac_cv_type_getgroups=int
22405 ;;
22406 esac
22407 ;;
22408 esac
22409 fi
22410 ;;
22411 esac
22412 fi
22413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22414 printf "%s\n" "$ac_cv_type_getgroups" >&6; }
22415 printf "%s\n" "#define GETGROUPS_T $ac_cv_type_getgroups" >>confdefs.h
22416
22417
22418
22419 # On older systems getgroups might be in -lbsd.
22420 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
22421 ac_save_LIBS=$LIBS
22422 LIBS=
22423 GETGROUPS_LIB=
22424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getgroups" >&5
22425 printf %s "checking for library containing getgroups... " >&6; }
22426 if test ${ac_cv_search_getgroups+y}
22427 then :
22428 printf %s "(cached) " >&6
22429 else case e in #(
22430 e) ac_func_search_save_LIBS=$LIBS
22431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22432 /* end confdefs.h. */
22433
22434 /* Override any GCC internal prototype to avoid an error.
22435 Use char because int might match the return type of a GCC
22436 builtin and then its argument prototype would still apply.
22437 The 'extern "C"' is for builds by C++ compilers;
22438 although this is not generally supported in C code supporting it here
22439 has little cost and some practical benefit (sr 110532). */
22440 #ifdef __cplusplus
22441 extern "C"
22442 #endif
22443 char getgroups (void);
22444 int
22445 main (void)
22446 {
22447 return getgroups ();
22448 ;
22449 return 0;
22450 }
22451 _ACEOF
22452 for ac_lib in '' bsd
22453 do
22454 if test -z "$ac_lib"; then
22455 ac_res="none required"
22456 else
22457 ac_res=-l$ac_lib
22458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22459 fi
22460 if ac_fn_c_try_link "$LINENO"
22461 then :
22462 ac_cv_search_getgroups=$ac_res
22463 fi
22464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22465 conftest$ac_exeext
22466 if test ${ac_cv_search_getgroups+y}
22467 then :
22468 break
22469 fi
22470 done
22471 if test ${ac_cv_search_getgroups+y}
22472 then :
22473
22474 else case e in #(
22475 e) ac_cv_search_getgroups=no ;;
22476 esac
22477 fi
22478 rm conftest.$ac_ext
22479 LIBS=$ac_func_search_save_LIBS ;;
22480 esac
22481 fi
22482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getgroups" >&5
22483 printf "%s\n" "$ac_cv_search_getgroups" >&6; }
22484 ac_res=$ac_cv_search_getgroups
22485 if test "$ac_res" != no
22486 then :
22487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22488 test "$ac_res" = "none required" || GETGROUPS_LIB="$ac_res"
22489 ac_cv_func_getgroups=yes
22490 else case e in #(
22491 e) ac_cv_func_getgroups=no ;;
22492 esac
22493 fi
22494
22495 LIBS=$ac_save_LIBS
22496
22497
22498 # Known severe bugs in getgroups on particular systems.
22499 # - On Ultrix 4.3 and NextSTEP 3.2, getgroups (0, 0) is reported to
22500 # fail, rather than returning the number of supplementary groups as
22501 # it ought to. We do not know the exact range of releases affected
22502 # in either case.
22503 # We currently reject all versions of the systems with known bugs, and
22504 # no other systems. Please send corrections to [email protected].
22505 if test $ac_cv_func_getgroups = yes; then
22506 # This AC_CACHE_CHECK exists so that one may override an incorrect
22507 # guess by setting ac_cv_func_getgroups_works in a config.site file.
22508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
22509 printf %s "checking for working getgroups... " >&6; }
22510 if test ${ac_cv_func_getgroups_works+y}
22511 then :
22512 printf %s "(cached) " >&6
22513 else case e in #(
22514 e) case $host_os in #(
22515 ultrix* | nextstep*) :
22516 ac_cv_func_getgroups_works=no # getgroups(0,0) fails
22517 ;; #(
22518 *) :
22519 ac_cv_func_getgroups_works=yes ;;
22520 esac ;;
22521 esac
22522 fi
22523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
22524 printf "%s\n" "$ac_cv_func_getgroups_works" >&6; }
22525 else
22526 ac_cv_func_getgroups_works=no
22527 fi
22528 if test $ac_cv_func_getgroups_works = yes; then
22529
22530 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
22531
22532 fi
22533
22534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
22535 printf %s "checking for declarations of fseeko and ftello... " >&6; }
22536 if test ${ac_cv_func_fseeko_ftello+y}
22537 then :
22538 printf %s "(cached) " >&6
22539 else case e in #(
22540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541 /* end confdefs.h. */
22542
22543 #if defined __hpux && !defined _LARGEFILE_SOURCE
22544 # include <limits.h>
22545 # if LONG_MAX >> 31 == 0
22546 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
22547 # endif
22548 #endif
22549 #include <sys/types.h> /* for off_t */
22550 #include <stdio.h>
22551
22552 int
22553 main (void)
22554 {
22555
22556 int (*fp1) (FILE *, off_t, int) = fseeko;
22557 off_t (*fp2) (FILE *) = ftello;
22558 return fseeko (stdin, 0, 0)
22559 && fp1 (stdin, 0, 0)
22560 && ftello (stdin) >= 0
22561 && fp2 (stdin) >= 0;
22562
22563 ;
22564 return 0;
22565 }
22566 _ACEOF
22567 if ac_fn_c_try_compile "$LINENO"
22568 then :
22569 ac_cv_func_fseeko_ftello=yes
22570 else case e in #(
22571 e) ac_save_CPPFLAGS="$CPPFLAGS"
22572 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
22573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22574 /* end confdefs.h. */
22575
22576 #if defined __hpux && !defined _LARGEFILE_SOURCE
22577 # include <limits.h>
22578 # if LONG_MAX >> 31 == 0
22579 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
22580 # endif
22581 #endif
22582 #include <sys/types.h> /* for off_t */
22583 #include <stdio.h>
22584
22585 int
22586 main (void)
22587 {
22588
22589 int (*fp1) (FILE *, off_t, int) = fseeko;
22590 off_t (*fp2) (FILE *) = ftello;
22591 return fseeko (stdin, 0, 0)
22592 && fp1 (stdin, 0, 0)
22593 && ftello (stdin) >= 0
22594 && fp2 (stdin) >= 0;
22595
22596 ;
22597 return 0;
22598 }
22599 _ACEOF
22600 if ac_fn_c_try_compile "$LINENO"
22601 then :
22602 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
22603 else case e in #(
22604 e) ac_cv_func_fseeko_ftello=no ;;
22605 esac
22606 fi
22607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22608 esac
22609 fi
22610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22611 esac
22612 fi
22613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
22614 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
22615 if test "$ac_cv_func_fseeko_ftello" != no
22616 then :
22617
22618 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
22619
22620 fi
22621 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
22622 then :
22623
22624 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
22625
22626 fi
22627
22628 ac_func=
22629 for ac_item in $ac_func_c_list
22630 do
22631 if test $ac_func; then
22632 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
22633 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
22634 echo "#define $ac_item 1" >> confdefs.h
22635 fi
22636 ac_func=
22637 else
22638 ac_func=$ac_item
22639 fi
22640 done
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650 for ac_func in execvpe
22651 do :
22652 ac_fn_c_check_func "$LINENO" "execvpe" "ac_cv_func_execvpe"
22653 if test "x$ac_cv_func_execvpe" = xyes
22654 then :
22655 printf "%s\n" "#define HAVE_EXECVPE 1" >>confdefs.h
22656
22657 for _sym in execvpe; do
22658 INTERCEPT_EXP="${INTERCEPT_EXP}${_sym}
22659 "
22660 done
22661
22662 fi
22663
22664 done
22665
22666 for ac_func in pread
22667 do :
22668 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
22669 if test "x$ac_cv_func_pread" = xyes
22670 then :
22671 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
22672
22673 # pread/pwrite on 32-bit HP-UX 11.x may not support large files
22674 case "$host_os" in
22675 hpux*)
22676
22677 for ac_func in pread64 pwrite64
22678 do :
22679 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
22680 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22681 if eval test \"x\$"$as_ac_var"\" = x"yes"
22682 then :
22683 cat >>confdefs.h <<_ACEOF
22684 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
22685 _ACEOF
22686
22687 ac_fn_check_decl "$LINENO" "pread64" "ac_cv_have_decl_pread64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22688 if test "x$ac_cv_have_decl_pread64" = xyes
22689 then :
22690 ac_have_decl=1
22691 else case e in #(
22692 e) ac_have_decl=0 ;;
22693 esac
22694 fi
22695 printf "%s\n" "#define HAVE_DECL_PREAD64 $ac_have_decl" >>confdefs.h
22696 ac_fn_check_decl "$LINENO" "pwrite64" "ac_cv_have_decl_pwrite64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22697 if test "x$ac_cv_have_decl_pwrite64" = xyes
22698 then :
22699 ac_have_decl=1
22700 else case e in #(
22701 e) ac_have_decl=0 ;;
22702 esac
22703 fi
22704 printf "%s\n" "#define HAVE_DECL_PWRITE64 $ac_have_decl" >>confdefs.h
22705
22706
22707 fi
22708
22709 done
22710 ;;
22711 esac
22712
22713 else case e in #(
22714 e)
22715 case " $LIBOBJS " in
22716 *" pread.$ac_objext "* ) ;;
22717 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
22718 ;;
22719 esac
22720
22721
22722 for _sym in sudo_pread; do
22723 COMPAT_EXP="${COMPAT_EXP}${_sym}
22724 "
22725 done
22726
22727 ;;
22728 esac
22729 fi
22730
22731 done
22732
22733 for ac_func in pwrite
22734 do :
22735 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
22736 if test "x$ac_cv_func_pwrite" = xyes
22737 then :
22738 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
22739
22740 else case e in #(
22741 e)
22742 case " $LIBOBJS " in
22743 *" pwrite.$ac_objext "* ) ;;
22744 *) LIBOBJS="$LIBOBJS pwrite.$ac_objext"
22745 ;;
22746 esac
22747
22748
22749 for _sym in sudo_pwrite; do
22750 COMPAT_EXP="${COMPAT_EXP}${_sym}
22751 "
22752 done
22753
22754 ;;
22755 esac
22756 fi
22757
22758 done
22759
22760 for ac_func in cfmakeraw
22761 do :
22762 ac_fn_c_check_func "$LINENO" "cfmakeraw" "ac_cv_func_cfmakeraw"
22763 if test "x$ac_cv_func_cfmakeraw" = xyes
22764 then :
22765 printf "%s\n" "#define HAVE_CFMAKERAW 1" >>confdefs.h
22766
22767 else case e in #(
22768 e)
22769 case " $LIBOBJS " in
22770 *" cfmakeraw.$ac_objext "* ) ;;
22771 *) LIBOBJS="$LIBOBJS cfmakeraw.$ac_objext"
22772 ;;
22773 esac
22774
22775
22776 for _sym in sudo_cfmakeraw; do
22777 COMPAT_EXP="${COMPAT_EXP}${_sym}
22778 "
22779 done
22780
22781 ;;
22782 esac
22783 fi
22784
22785 done
22786
22787 for ac_func in localtime_r
22788 do :
22789 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
22790 if test "x$ac_cv_func_localtime_r" = xyes
22791 then :
22792 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
22793
22794 else case e in #(
22795 e)
22796 case " $LIBOBJS " in
22797 *" localtime_r.$ac_objext "* ) ;;
22798 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
22799 ;;
22800 esac
22801
22802
22803 for _sym in sudo_localtime_r; do
22804 COMPAT_EXP="${COMPAT_EXP}${_sym}
22805 "
22806 done
22807
22808 ;;
22809 esac
22810 fi
22811
22812 done
22813
22814 for ac_func in gmtime_r
22815 do :
22816 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
22817 if test "x$ac_cv_func_gmtime_r" = xyes
22818 then :
22819 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
22820
22821 else case e in #(
22822 e)
22823 case " $LIBOBJS " in
22824 *" gmtime_r.$ac_objext "* ) ;;
22825 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
22826 ;;
22827 esac
22828
22829
22830 for _sym in sudo_gmtime_r; do
22831 COMPAT_EXP="${COMPAT_EXP}${_sym}
22832 "
22833 done
22834
22835 ;;
22836 esac
22837 fi
22838
22839 done
22840
22841 for ac_func in timegm
22842 do :
22843 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
22844 if test "x$ac_cv_func_timegm" = xyes
22845 then :
22846 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
22847
22848 else case e in #(
22849 e)
22850 case " $LIBOBJS " in
22851 *" timegm.$ac_objext "* ) ;;
22852 *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
22853 ;;
22854 esac
22855
22856
22857 for _sym in sudo_timegm; do
22858 COMPAT_EXP="${COMPAT_EXP}${_sym}
22859 "
22860 done
22861
22862 ;;
22863 esac
22864 fi
22865
22866 done
22867
22868 for ac_func in getgrouplist
22869 do :
22870 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
22871 if test "x$ac_cv_func_getgrouplist" = xyes
22872 then :
22873 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
22874
22875 else case e in #(
22876 e)
22877 case "$host_os" in
22878 aix*)
22879 ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
22880 if test "x$ac_cv_func_getgrset" = xyes
22881 then :
22882 printf "%s\n" "#define HAVE_GETGRSET 1" >>confdefs.h
22883
22884 fi
22885
22886 ;;
22887 *)
22888 ac_fn_c_check_func "$LINENO" "nss_search" "ac_cv_func_nss_search"
22889 if test "x$ac_cv_func_nss_search" = xyes
22890 then :
22891
22892 ac_fn_c_check_func "$LINENO" "_nss_XbyY_buf_alloc" "ac_cv_func__nss_XbyY_buf_alloc"
22893 if test "x$ac_cv_func__nss_XbyY_buf_alloc" = xyes
22894 then :
22895
22896 # Solaris
22897 ac_fn_c_check_func "$LINENO" "_nss_initf_group" "ac_cv_func__nss_initf_group"
22898 if test "x$ac_cv_func__nss_initf_group" = xyes
22899 then :
22900
22901 ac_fn_c_check_header_compile "$LINENO" "nss_dbdefs.h" "ac_cv_header_nss_dbdefs_h" "$ac_includes_default"
22902 if test "x$ac_cv_header_nss_dbdefs_h" = xyes
22903 then :
22904 printf "%s\n" "#define HAVE_NSS_DBDEFS_H 1" >>confdefs.h
22905
22906 fi
22907
22908 printf "%s\n" "#define HAVE_NSS_SEARCH 1" >>confdefs.h
22909
22910 printf "%s\n" "#define HAVE__NSS_XBYY_BUF_ALLOC 1" >>confdefs.h
22911
22912 printf "%s\n" "#define HAVE__NSS_INITF_GROUP 1" >>confdefs.h
22913
22914
22915 else case e in #(
22916 e)
22917 for ac_header in nss_dbdefs.h
22918 do :
22919 ac_fn_c_check_header_compile "$LINENO" "nss_dbdefs.h" "ac_cv_header_nss_dbdefs_h" "$ac_includes_default"
22920 if test "x$ac_cv_header_nss_dbdefs_h" = xyes
22921 then :
22922 printf "%s\n" "#define HAVE_NSS_DBDEFS_H 1" >>confdefs.h
22923
22924 # Older Solaris does not export _nss_initf_group
22925 # but we can use our own.
22926 printf "%s\n" "#define HAVE_NSS_SEARCH 1" >>confdefs.h
22927
22928 printf "%s\n" "#define HAVE__NSS_XBYY_BUF_ALLOC 1" >>confdefs.h
22929
22930
22931 fi
22932
22933 done
22934 ;;
22935 esac
22936 fi
22937
22938
22939 else case e in #(
22940 e)
22941 :
22942 ;;
22943 esac
22944 fi
22945
22946
22947 fi
22948
22949 ;;
22950 esac
22951
22952 for _sym in sudo_getgrouplist; do
22953 COMPAT_EXP="${COMPAT_EXP}${_sym}
22954 "
22955 done
22956
22957 ;;
22958 esac
22959 fi
22960
22961 done
22962
22963 for ac_func in getdelim
22964 do :
22965 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
22966 if test "x$ac_cv_func_getdelim" = xyes
22967 then :
22968 printf "%s\n" "#define HAVE_GETDELIM 1" >>confdefs.h
22969
22970 # Out of date gcc fixed includes may result in missing getdelim() prototype
22971 ac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22972 if test "x$ac_cv_have_decl_getdelim" = xyes
22973 then :
22974 ac_have_decl=1
22975 else case e in #(
22976 e) ac_have_decl=0 ;;
22977 esac
22978 fi
22979 printf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h
22980
22981
22982 else case e in #(
22983 e)
22984 case " $LIBOBJS " in
22985 *" getdelim.$ac_objext "* ) ;;
22986 *) LIBOBJS="$LIBOBJS getdelim.$ac_objext"
22987 ;;
22988 esac
22989
22990
22991 for _sym in sudo_getdelim; do
22992 COMPAT_EXP="${COMPAT_EXP}${_sym}
22993 "
22994 done
22995
22996 COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }getdelim_test"
22997 ;;
22998 esac
22999 fi
23000
23001 done
23002
23003 for ac_func in getusershell
23004 do :
23005 ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell"
23006 if test "x$ac_cv_func_getusershell" = xyes
23007 then :
23008 printf "%s\n" "#define HAVE_GETUSERSHELL 1" >>confdefs.h
23009
23010 # Older Solaris has getusershell() et al but does not declare it.
23011 ac_fn_check_decl "$LINENO" "getusershell" "ac_cv_have_decl_getusershell" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
23012 if test "x$ac_cv_have_decl_getusershell" = xyes
23013 then :
23014 ac_have_decl=1
23015 else case e in #(
23016 e) ac_have_decl=0 ;;
23017 esac
23018 fi
23019 printf "%s\n" "#define HAVE_DECL_GETUSERSHELL $ac_have_decl" >>confdefs.h
23020
23021
23022 else case e in #(
23023 e)
23024 case " $LIBOBJS " in
23025 *" getusershell.$ac_objext "* ) ;;
23026 *) LIBOBJS="$LIBOBJS getusershell.$ac_objext"
23027 ;;
23028 esac
23029
23030
23031 for _sym in sudo_getusershell; do
23032 COMPAT_EXP="${COMPAT_EXP}${_sym}
23033 "
23034 done
23035
23036 ;;
23037 esac
23038 fi
23039
23040 done
23041
23042 for ac_func in reallocarray
23043 do :
23044 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
23045 if test "x$ac_cv_func_reallocarray" = xyes
23046 then :
23047 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
23048
23049 else case e in #(
23050 e)
23051 case " $LIBOBJS " in
23052 *" reallocarray.$ac_objext "* ) ;;
23053 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
23054 ;;
23055 esac
23056
23057
23058 for _sym in sudo_reallocarray; do
23059 COMPAT_EXP="${COMPAT_EXP}${_sym}
23060 "
23061 done
23062
23063 ;;
23064 esac
23065 fi
23066
23067 done
23068
23069 for ac_func in arc4random
23070 do :
23071 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
23072 if test "x$ac_cv_func_arc4random" = xyes
23073 then :
23074 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
23075
23076
23077 for ac_func in arc4random_uniform
23078 do :
23079 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
23080 if test "x$ac_cv_func_arc4random_uniform" = xyes
23081 then :
23082 printf "%s\n" "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
23083
23084 else case e in #(
23085 e)
23086 case " $LIBOBJS " in
23087 *" arc4random_uniform.$ac_objext "* ) ;;
23088 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
23089 ;;
23090 esac
23091
23092
23093 for _sym in sudo_arc4random_uniform; do
23094 COMPAT_EXP="${COMPAT_EXP}${_sym}
23095 "
23096 done
23097
23098 ;;
23099 esac
23100 fi
23101
23102 done
23103
23104 for ac_func in arc4random_buf
23105 do :
23106 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
23107 if test "x$ac_cv_func_arc4random_buf" = xyes
23108 then :
23109 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
23110
23111 else case e in #(
23112 e)
23113 case " $LIBOBJS " in
23114 *" arc4random_buf.$ac_objext "* ) ;;
23115 *) LIBOBJS="$LIBOBJS arc4random_buf.$ac_objext"
23116 ;;
23117 esac
23118
23119
23120 for _sym in sudo_arc4random_buf; do
23121 COMPAT_EXP="${COMPAT_EXP}${_sym}
23122 "
23123 done
23124
23125 ;;
23126 esac
23127 fi
23128
23129 done
23130
23131 else case e in #(
23132 e)
23133 case " $LIBOBJS " in
23134 *" arc4random.$ac_objext "* ) ;;
23135 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
23136 ;;
23137 esac
23138
23139
23140 for _sym in sudo_arc4random; do
23141 COMPAT_EXP="${COMPAT_EXP}${_sym}
23142 "
23143 done
23144
23145
23146 for _sym in sudo_arc4random_buf; do
23147 COMPAT_EXP="${COMPAT_EXP}${_sym}
23148 "
23149 done
23150
23151 case " $LIBOBJS " in
23152 *" arc4random_uniform.$ac_objext "* ) ;;
23153 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
23154 ;;
23155 esac
23156
23157
23158 for _sym in sudo_arc4random_uniform; do
23159 COMPAT_EXP="${COMPAT_EXP}${_sym}
23160 "
23161 done
23162
23163 # arc4random.c needs getentropy()
23164
23165 for ac_func in getentropy
23166 do :
23167 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
23168 if test "x$ac_cv_func_getentropy" = xyes
23169 then :
23170 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
23171
23172 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
23173 if test "x$ac_cv_header_sys_random_h" = xyes
23174 then :
23175 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
23176
23177 fi
23178
23179
23180 else case e in #(
23181 e)
23182 case " $LIBOBJS " in
23183 *" getentropy.$ac_objext "* ) ;;
23184 *) LIBOBJS="$LIBOBJS getentropy.$ac_objext"
23185 ;;
23186 esac
23187
23188
23189 for _sym in sudo_getentropy; do
23190 COMPAT_EXP="${COMPAT_EXP}${_sym}
23191 "
23192 done
23193
23194 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
23195 if test "x$ac_cv_func_getauxval" = xyes
23196 then :
23197 printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
23198
23199 fi
23200
23201 ;;
23202 esac
23203 fi
23204
23205 done
23206 # arc4random.c wants pthread_atfork
23207 for ac_header in pthread.h
23208 do :
23209 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23210 if test "x$ac_cv_header_pthread_h" = xyes
23211 then :
23212 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
23213
23214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
23215 printf %s "checking for main in -lpthread... " >&6; }
23216 if test ${ac_cv_lib_pthread_main+y}
23217 then :
23218 printf %s "(cached) " >&6
23219 else case e in #(
23220 e) ac_check_lib_save_LIBS=$LIBS
23221 LIBS="-lpthread $LIBS"
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23224
23225
23226 int
23227 main (void)
23228 {
23229 return main ();
23230 ;
23231 return 0;
23232 }
23233 _ACEOF
23234 if ac_fn_c_try_link "$LINENO"
23235 then :
23236 ac_cv_lib_pthread_main=yes
23237 else case e in #(
23238 e) ac_cv_lib_pthread_main=no ;;
23239 esac
23240 fi
23241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23242 conftest$ac_exeext conftest.$ac_ext
23243 LIBS=$ac_check_lib_save_LIBS ;;
23244 esac
23245 fi
23246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
23247 printf "%s\n" "$ac_cv_lib_pthread_main" >&6; }
23248 if test "x$ac_cv_lib_pthread_main" = xyes
23249 then :
23250 LIBPTHREAD="-lpthread"
23251 fi
23252
23253 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
23254 if test "x$ac_cv_func_pthread_atfork" = xyes
23255 then :
23256 printf "%s\n" "#define HAVE_PTHREAD_ATFORK 1" >>confdefs.h
23257
23258 fi
23259
23260
23261 fi
23262
23263 done
23264 ;;
23265 esac
23266 fi
23267
23268 done
23269
23270
23271
23272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
23273 printf %s "checking for __builtin_clz... " >&6; }
23274 if test ${ax_cv_have___builtin_clz+y}
23275 then :
23276 printf %s "(cached) " >&6
23277 else case e in #(
23278 e)
23279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23280 /* end confdefs.h. */
23281
23282 int
23283 main (void)
23284 {
23285
23286 __builtin_clz(0)
23287
23288 ;
23289 return 0;
23290 }
23291 _ACEOF
23292 if ac_fn_c_try_link "$LINENO"
23293 then :
23294 ax_cv_have___builtin_clz=yes
23295 else case e in #(
23296 e) ax_cv_have___builtin_clz=no ;;
23297 esac
23298 fi
23299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23300 conftest$ac_exeext conftest.$ac_ext
23301 ;;
23302 esac
23303 fi
23304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clz" >&5
23305 printf "%s\n" "$ax_cv_have___builtin_clz" >&6; }
23306
23307 if test yes = $ax_cv_have___builtin_clz
23308 then :
23309
23310 printf "%s\n" "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
23311
23312 fi
23313
23314
23315
23316
23317
23318
23319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5
23320 printf %s "checking for __builtin_clzl... " >&6; }
23321 if test ${ax_cv_have___builtin_clzl+y}
23322 then :
23323 printf %s "(cached) " >&6
23324 else case e in #(
23325 e)
23326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23327 /* end confdefs.h. */
23328
23329 int
23330 main (void)
23331 {
23332
23333 __builtin_clzl(0)
23334
23335 ;
23336 return 0;
23337 }
23338 _ACEOF
23339 if ac_fn_c_try_link "$LINENO"
23340 then :
23341 ax_cv_have___builtin_clzl=yes
23342 else case e in #(
23343 e) ax_cv_have___builtin_clzl=no ;;
23344 esac
23345 fi
23346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23347 conftest$ac_exeext conftest.$ac_ext
23348 ;;
23349 esac
23350 fi
23351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clzl" >&5
23352 printf "%s\n" "$ax_cv_have___builtin_clzl" >&6; }
23353
23354 if test yes = $ax_cv_have___builtin_clzl
23355 then :
23356
23357 printf "%s\n" "#define HAVE___BUILTIN_CLZL 1" >>confdefs.h
23358
23359 fi
23360
23361
23362
23363
23364 utmp_style=LEGACY
23365
23366 for ac_func in getutsid getutxid getutid
23367 do :
23368 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
23369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23370 if eval test \"x\$"$as_ac_var"\" = x"yes"
23371 then :
23372 cat >>confdefs.h <<_ACEOF
23373 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
23374 _ACEOF
23375 utmp_style=POSIX; break
23376 fi
23377
23378 done
23379 if test "$utmp_style" = "LEGACY"
23380 then :
23381
23382
23383 for ac_func in getttyent ttyslot
23384 do :
23385 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
23386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23387 if eval test \"x\$"$as_ac_var"\" = x"yes"
23388 then :
23389 cat >>confdefs.h <<_ACEOF
23390 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
23391 _ACEOF
23392 break
23393 fi
23394
23395 done
23396
23397 fi
23398
23399
23400 for ac_func in sysctl
23401 do :
23402 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
23403 if test "x$ac_cv_func_sysctl" = xyes
23404 then :
23405 printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h
23406
23407 ac_fn_c_check_func "$LINENO" "devname" "ac_cv_func_devname"
23408 if test "x$ac_cv_func_devname" = xyes
23409 then :
23410 printf "%s\n" "#define HAVE_DEVNAME 1" >>confdefs.h
23411
23412 fi
23413
23414 # Check for the various flavors of kinfo_proc
23415 found=false
23416 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_structsize" "ac_cv_member_struct_kinfo_proc_ki_structsize" "
23417 #include <sys/param.h>
23418 #include <sys/sysctl.h>
23419 #include <sys/user.h>
23420
23421 "
23422 if test "x$ac_cv_member_struct_kinfo_proc_ki_structsize" = xyes
23423 then :
23424
23425 printf "%s\n" "#define HAVE_KINFO_PROC_FREEBSD 1" >>confdefs.h
23426
23427 found=true
23428
23429 fi
23430
23431 if test "$found" = "false"
23432 then :
23433
23434 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_paddr" "ac_cv_member_struct_kinfo_proc_kp_paddr" "
23435 #include <sys/param.h>
23436 #include <sys/sysctl.h>
23437 #include <sys/user.h>
23438
23439 "
23440 if test "x$ac_cv_member_struct_kinfo_proc_kp_paddr" = xyes
23441 then :
23442
23443 printf "%s\n" "#define HAVE_KINFO_PROC_DFLY 1" >>confdefs.h
23444
23445 found=true
23446
23447 fi
23448
23449
23450 fi
23451 if test "$found" = "false"
23452 then :
23453
23454 ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_paddr" "ac_cv_member_struct_kinfo_proc2_p_paddr" "
23455 #include <sys/param.h>
23456 #include <sys/sysctl.h>
23457
23458 "
23459 if test "x$ac_cv_member_struct_kinfo_proc2_p_paddr" = xyes
23460 then :
23461
23462 printf "%s\n" "#define HAVE_KINFO_PROC2_NETBSD 1" >>confdefs.h
23463
23464 found=true
23465
23466 fi
23467
23468
23469 fi
23470 if test "$found" = "false"
23471 then :
23472
23473 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_paddr" "ac_cv_member_struct_kinfo_proc_p_paddr" "
23474 #include <sys/param.h>
23475 #include <sys/sysctl.h>
23476
23477 "
23478 if test "x$ac_cv_member_struct_kinfo_proc_p_paddr" = xyes
23479 then :
23480
23481 printf "%s\n" "#define HAVE_KINFO_PROC_OPENBSD 1" >>confdefs.h
23482
23483 found=true
23484
23485 fi
23486
23487
23488 fi
23489 if test "$found" = "false"
23490 then :
23491
23492 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_proc" "ac_cv_member_struct_kinfo_proc_kp_proc" "
23493 #include <sys/param.h>
23494 #include <sys/sysctl.h>
23495
23496 "
23497 if test "x$ac_cv_member_struct_kinfo_proc_kp_proc" = xyes
23498 then :
23499
23500 printf "%s\n" "#define HAVE_KINFO_PROC_44BSD 1" >>confdefs.h
23501
23502 found=true
23503
23504 fi
23505
23506
23507 fi
23508
23509 fi
23510
23511 done
23512
23513
23514 for ac_func in openpty
23515 do :
23516 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
23517 if test "x$ac_cv_func_openpty" = xyes
23518 then :
23519 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
23520 for ac_header in libutil.h util.h pty.h
23521 do :
23522 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
23523 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23524 if eval test \"x\$"$as_ac_Header"\" = x"yes"
23525 then :
23526 cat >>confdefs.h <<_ACEOF
23527 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
23528 _ACEOF
23529 break
23530 fi
23531
23532 done
23533 else case e in #(
23534 e)
23535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
23536 printf %s "checking for openpty in -lutil... " >&6; }
23537 if test ${ac_cv_lib_util_openpty+y}
23538 then :
23539 printf %s "(cached) " >&6
23540 else case e in #(
23541 e) ac_check_lib_save_LIBS=$LIBS
23542 LIBS="-lutil $LIBS"
23543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23544 /* end confdefs.h. */
23545
23546 /* Override any GCC internal prototype to avoid an error.
23547 Use char because int might match the return type of a GCC
23548 builtin and then its argument prototype would still apply.
23549 The 'extern "C"' is for builds by C++ compilers;
23550 although this is not generally supported in C code supporting it here
23551 has little cost and some practical benefit (sr 110532). */
23552 #ifdef __cplusplus
23553 extern "C"
23554 #endif
23555 char openpty (void);
23556 int
23557 main (void)
23558 {
23559 return openpty ();
23560 ;
23561 return 0;
23562 }
23563 _ACEOF
23564 if ac_fn_c_try_link "$LINENO"
23565 then :
23566 ac_cv_lib_util_openpty=yes
23567 else case e in #(
23568 e) ac_cv_lib_util_openpty=no ;;
23569 esac
23570 fi
23571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23572 conftest$ac_exeext conftest.$ac_ext
23573 LIBS=$ac_check_lib_save_LIBS ;;
23574 esac
23575 fi
23576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
23577 printf "%s\n" "$ac_cv_lib_util_openpty" >&6; }
23578 if test "x$ac_cv_lib_util_openpty" = xyes
23579 then :
23580
23581 for ac_header in libutil.h util.h pty.h
23582 do :
23583 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
23584 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23585 if eval test \"x\$"$as_ac_Header"\" = x"yes"
23586 then :
23587 cat >>confdefs.h <<_ACEOF
23588 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
23589 _ACEOF
23590 break
23591 fi
23592
23593 done
23594 case "$SUDO_LIBS" in
23595 *-lutil*) ;;
23596 *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
23597 esac
23598 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
23599
23600
23601 else case e in #(
23602 e)
23603
23604 for ac_func in _getpty
23605 do :
23606 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
23607 if test "x$ac_cv_func__getpty" = xyes
23608 then :
23609 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
23610
23611 else case e in #(
23612 e)
23613
23614 for ac_func in grantpt
23615 do :
23616 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
23617 if test "x$ac_cv_func_grantpt" = xyes
23618 then :
23619 printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h
23620
23621 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
23622 if test "x$ac_cv_func_posix_openpt" = xyes
23623 then :
23624 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
23625
23626 fi
23627
23628
23629 else case e in #(
23630 e)
23631 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
23632 if test "x$ac_cv_func_revoke" = xyes
23633 then :
23634 printf "%s\n" "#define HAVE_REVOKE 1" >>confdefs.h
23635
23636 fi
23637
23638 ;;
23639 esac
23640 fi
23641
23642 done
23643 ;;
23644 esac
23645 fi
23646
23647 done
23648 ;;
23649 esac
23650 fi
23651
23652 ;;
23653 esac
23654 fi
23655
23656 done
23657
23658 for ac_func in unsetenv
23659 do :
23660 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
23661 if test "x$ac_cv_func_unsetenv" = xyes
23662 then :
23663 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
23664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
23665 printf %s "checking whether unsetenv returns void... " >&6; }
23666 if test ${sudo_cv_func_unsetenv_void+y}
23667 then :
23668 printf %s "(cached) " >&6
23669 else case e in #(
23670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23671 /* end confdefs.h. */
23672 $ac_includes_default
23673 int
23674 main (void)
23675 {
23676
23677 return unsetenv("FOO");
23678
23679 ;
23680 return 0;
23681 }
23682
23683 _ACEOF
23684 if ac_fn_c_try_compile "$LINENO"
23685 then :
23686 sudo_cv_func_unsetenv_void=no
23687 else case e in #(
23688 e) sudo_cv_func_unsetenv_void=yes ;;
23689 esac
23690 fi
23691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23692 esac
23693 fi
23694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
23695 printf "%s\n" "$sudo_cv_func_unsetenv_void" >&6; }
23696 if test $sudo_cv_func_unsetenv_void = yes; then
23697
23698 printf "%s\n" "#define UNSETENV_VOID 1" >>confdefs.h
23699
23700 fi
23701
23702 fi
23703
23704 done
23705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether putenv takes a const argument" >&5
23706 printf %s "checking whether putenv takes a const argument... " >&6; }
23707 if test ${sudo_cv_func_putenv_const+y}
23708 then :
23709 printf %s "(cached) " >&6
23710 else case e in #(
23711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23712 /* end confdefs.h. */
23713 $ac_includes_default
23714 int putenv(const char *string) {return 0;}
23715
23716 int
23717 main (void)
23718 {
23719
23720 ;
23721 return 0;
23722 }
23723 _ACEOF
23724 if ac_fn_c_try_compile "$LINENO"
23725 then :
23726 sudo_cv_func_putenv_const=yes
23727 else case e in #(
23728 e) sudo_cv_func_putenv_const=no ;;
23729 esac
23730 fi
23731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23732 ;;
23733 esac
23734 fi
23735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
23736 printf "%s\n" "$sudo_cv_func_putenv_const" >&6; }
23737 if test $sudo_cv_func_putenv_const = yes; then
23738
23739 printf "%s\n" "#define PUTENV_CONST const" >>confdefs.h
23740
23741 else
23742 printf "%s\n" "#define PUTENV_CONST /**/" >>confdefs.h
23743
23744 fi
23745
23746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ioctl() takes an int request argument" >&5
23747 printf %s "checking whether ioctl() takes an int request argument... " >&6; }
23748 if test ${sudo_cv_func_ioctl_req_int+y}
23749 then :
23750 printf %s "(cached) " >&6
23751 else case e in #(
23752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23753 /* end confdefs.h. */
23754 #include <sys/types.h>
23755 #include <sys/ioctl.h>
23756 #include <unistd.h>
23757 int ioctl(int fd, int req, ...) {return 0;}
23758
23759 int
23760 main (void)
23761 {
23762
23763 ;
23764 return 0;
23765 }
23766 _ACEOF
23767 if ac_fn_c_try_compile "$LINENO"
23768 then :
23769 sudo_cv_func_ioctl_req_int=yes
23770 else case e in #(
23771 e) sudo_cv_func_ioctl_req_int=no ;;
23772 esac
23773 fi
23774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23775 ;;
23776 esac
23777 fi
23778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_ioctl_req_int" >&5
23779 printf "%s\n" "$sudo_cv_func_ioctl_req_int" >&6; }
23780 if test $sudo_cv_func_ioctl_req_int = yes; then
23781
23782 printf "%s\n" "#define IOCTL_REQ_CAST (int)" >>confdefs.h
23783
23784 else
23785 printf "%s\n" "#define IOCTL_REQ_CAST /**/" >>confdefs.h
23786
23787 fi
23788
23789 if test -z "$SKIP_SETRESUID"
23790 then :
23791
23792
23793 for ac_func in setresuid
23794 do :
23795 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
23796 if test "x$ac_cv_func_setresuid" = xyes
23797 then :
23798 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
23799
23800 SKIP_SETREUID=yes
23801 ac_fn_check_decl "$LINENO" "setresuid" "ac_cv_have_decl_setresuid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
23802 if test "x$ac_cv_have_decl_setresuid" = xyes
23803 then :
23804 ac_have_decl=1
23805 else case e in #(
23806 e) ac_have_decl=0 ;;
23807 esac
23808 fi
23809 printf "%s\n" "#define HAVE_DECL_SETRESUID $ac_have_decl" >>confdefs.h
23810
23811
23812 for ac_func in getresuid
23813 do :
23814 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
23815 if test "x$ac_cv_func_getresuid" = xyes
23816 then :
23817 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
23818 ac_fn_check_decl "$LINENO" "getresuid" "ac_cv_have_decl_getresuid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
23819 if test "x$ac_cv_have_decl_getresuid" = xyes
23820 then :
23821 ac_have_decl=1
23822 else case e in #(
23823 e) ac_have_decl=0 ;;
23824 esac
23825 fi
23826 printf "%s\n" "#define HAVE_DECL_GETRESUID $ac_have_decl" >>confdefs.h
23827
23828 fi
23829
23830 done
23831
23832 fi
23833
23834 done
23835
23836 fi
23837 if test -z "$SKIP_SETRESUID"
23838 then :
23839
23840 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
23841 if test "x$ac_cv_func_setreuid" = xyes
23842 then :
23843 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
23844
23845 fi
23846
23847
23848 fi
23849
23850
23851 if test X"$with_interfaces" != X"no"
23852 then :
23853
23854
23855 for ac_func in getifaddrs
23856 do :
23857 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
23858 if test "x$ac_cv_func_getifaddrs" = xyes
23859 then :
23860 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
23861 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
23862 if test "x$ac_cv_func_freeifaddrs" = xyes
23863 then :
23864 printf "%s\n" "#define HAVE_FREEIFADDRS 1" >>confdefs.h
23865
23866 fi
23867
23868 fi
23869
23870 done
23871
23872 fi
23873
23874 for ac_func in lockf
23875 do :
23876 ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
23877 if test "x$ac_cv_func_lockf" = xyes
23878 then :
23879 printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
23880 break
23881 fi
23882
23883 done
23884
23885 for ac_func in innetgr
23886 do :
23887 ac_fn_c_check_func "$LINENO" "innetgr" "ac_cv_func_innetgr"
23888 if test "x$ac_cv_func_innetgr" = xyes
23889 then :
23890 printf "%s\n" "#define HAVE_INNETGR 1" >>confdefs.h
23891
23892 ac_fn_check_decl "$LINENO" "innetgr" "ac_cv_have_decl_innetgr" "
23893 $ac_includes_default
23894 #ifdef HAVE_NETGROUP_H
23895 # include <netgroup.h>
23896 #else
23897 # include <netdb.h>
23898 #endif /* HAVE_NETGROUP_H */
23899
23900 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23901 if test "x$ac_cv_have_decl_innetgr" = xyes
23902 then :
23903 ac_have_decl=1
23904 else case e in #(
23905 e) ac_have_decl=0 ;;
23906 esac
23907 fi
23908 printf "%s\n" "#define HAVE_DECL_INNETGR $ac_have_decl" >>confdefs.h
23909
23910 else case e in #(
23911 e)
23912
23913 for ac_func in _innetgr
23914 do :
23915 ac_fn_c_check_func "$LINENO" "_innetgr" "ac_cv_func__innetgr"
23916 if test "x$ac_cv_func__innetgr" = xyes
23917 then :
23918 printf "%s\n" "#define HAVE__INNETGR 1" >>confdefs.h
23919
23920 ac_fn_check_decl "$LINENO" "_innetgr" "ac_cv_have_decl__innetgr" "
23921 $ac_includes_default
23922 #ifdef HAVE_NETGROUP_H
23923 # include <netgroup.h>
23924 #else
23925 # include <netdb.h>
23926 #endif /* HAVE_NETGROUP_H */
23927
23928 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23929 if test "x$ac_cv_have_decl__innetgr" = xyes
23930 then :
23931 ac_have_decl=1
23932 else case e in #(
23933 e) ac_have_decl=0 ;;
23934 esac
23935 fi
23936 printf "%s\n" "#define HAVE_DECL__INNETGR $ac_have_decl" >>confdefs.h
23937
23938
23939 fi
23940
23941 done
23942 ;;
23943 esac
23944 fi
23945
23946 done
23947
23948 for ac_func in getdomainname
23949 do :
23950 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
23951 if test "x$ac_cv_func_getdomainname" = xyes
23952 then :
23953 printf "%s\n" "#define HAVE_GETDOMAINNAME 1" >>confdefs.h
23954
23955 ac_fn_check_decl "$LINENO" "getdomainname" "ac_cv_have_decl_getdomainname" "
23956 $ac_includes_default
23957 #include <netdb.h>
23958
23959 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23960 if test "x$ac_cv_have_decl_getdomainname" = xyes
23961 then :
23962 ac_have_decl=1
23963 else case e in #(
23964 e) ac_have_decl=0 ;;
23965 esac
23966 fi
23967 printf "%s\n" "#define HAVE_DECL_GETDOMAINNAME $ac_have_decl" >>confdefs.h
23968
23969
23970 else case e in #(
23971 e)
23972
23973 for ac_func in sysinfo
23974 do :
23975 ac_fn_c_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
23976 if test "x$ac_cv_func_sysinfo" = xyes
23977 then :
23978 printf "%s\n" "#define HAVE_SYSINFO 1" >>confdefs.h
23979 ac_fn_c_check_header_compile "$LINENO" "sys/systeminfo.h" "ac_cv_header_sys_systeminfo_h" "$ac_includes_default"
23980 if test "x$ac_cv_header_sys_systeminfo_h" = xyes
23981 then :
23982 printf "%s\n" "#define HAVE_SYS_SYSTEMINFO_H 1" >>confdefs.h
23983
23984 fi
23985
23986 fi
23987
23988 done
23989 ;;
23990 esac
23991 fi
23992
23993 done
23994
23995 for ac_func in utimensat
23996 do :
23997 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
23998 if test "x$ac_cv_func_utimensat" = xyes
23999 then :
24000 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
24001
24002 else case e in #(
24003 e)
24004 case " $LIBOBJS " in
24005 *" utimens.$ac_objext "* ) ;;
24006 *) LIBOBJS="$LIBOBJS utimens.$ac_objext"
24007 ;;
24008 esac
24009
24010
24011 for _sym in sudo_utimensat; do
24012 COMPAT_EXP="${COMPAT_EXP}${_sym}
24013 "
24014 done
24015
24016 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
24017 if test "x$ac_cv_func_utimes" = xyes
24018 then :
24019 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
24020
24021 fi
24022
24023 ;;
24024 esac
24025 fi
24026
24027 done
24028
24029 for ac_func in futimens
24030 do :
24031 ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"
24032 if test "x$ac_cv_func_futimens" = xyes
24033 then :
24034 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
24035
24036 else case e in #(
24037 e)
24038 case " $LIBOBJS " in
24039 *" utimens.$ac_objext "* ) ;;
24040 *) LIBOBJS="$LIBOBJS utimens.$ac_objext"
24041 ;;
24042 esac
24043
24044
24045 for _sym in sudo_futimens; do
24046 COMPAT_EXP="${COMPAT_EXP}${_sym}
24047 "
24048 done
24049
24050
24051 for ac_func in futimes futimesat futime
24052 do :
24053 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
24054 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24055 if eval test \"x\$"$as_ac_var"\" = x"yes"
24056 then :
24057 cat >>confdefs.h <<_ACEOF
24058 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
24059 _ACEOF
24060 break
24061 fi
24062
24063 done
24064 ;;
24065 esac
24066 fi
24067
24068 done
24069
24070 for ac_func in explicit_bzero
24071 do :
24072 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
24073 if test "x$ac_cv_func_explicit_bzero" = xyes
24074 then :
24075 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
24076
24077 else case e in #(
24078 e)
24079 case " $LIBOBJS " in
24080 *" explicit_bzero.$ac_objext "* ) ;;
24081 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
24082 ;;
24083 esac
24084
24085
24086 for _sym in sudo_explicit_bzero; do
24087 COMPAT_EXP="${COMPAT_EXP}${_sym}
24088 "
24089 done
24090
24091
24092 for ac_func in explicit_memset memset_explicit memset_s bzero
24093 do :
24094 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
24095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24096 if eval test \"x\$"$as_ac_var"\" = x"yes"
24097 then :
24098 cat >>confdefs.h <<_ACEOF
24099 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
24100 _ACEOF
24101 break
24102 fi
24103
24104 done
24105 ;;
24106 esac
24107 fi
24108
24109 done
24110
24111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
24112 printf %s "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
24113 if test ${sudo_cv_func_fnmatch+y}
24114 then :
24115 printf %s "(cached) " >&6
24116 else case e in #(
24117 e)
24118 if test "$cross_compiling" = yes
24119 then :
24120 sudo_cv_func_fnmatch=no
24121 else case e in #(
24122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24123 /* end confdefs.h. */
24124 #include <fnmatch.h>
24125 int main() { return(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
24126 _ACEOF
24127 if ac_fn_c_try_run "$LINENO"
24128 then :
24129 sudo_cv_func_fnmatch=yes
24130 else case e in #(
24131 e) sudo_cv_func_fnmatch=no ;;
24132 esac
24133 fi
24134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24135 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
24136 esac
24137 fi
24138
24139 ;;
24140 esac
24141 fi
24142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
24143 printf "%s\n" "$sudo_cv_func_fnmatch" >&6; }
24144 if test $sudo_cv_func_fnmatch = yes
24145 then :
24146 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
24147
24148 else case e in #(
24149 e)
24150 case " $LIBOBJS " in
24151 *" fnmatch.$ac_objext "* ) ;;
24152 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
24153 ;;
24154 esac
24155
24156
24157 for _sym in sudo_fnmatch; do
24158 COMPAT_EXP="${COMPAT_EXP}${_sym}
24159 "
24160 done
24161
24162 COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
24163 ;;
24164 esac
24165 fi
24166
24167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
24168 printf %s "checking for isblank... " >&6; }
24169 if test ${sudo_cv_func_isblank+y}
24170 then :
24171 printf %s "(cached) " >&6
24172 else case e in #(
24173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24174 /* end confdefs.h. */
24175 #include <ctype.h>
24176 int
24177 main (void)
24178 {
24179 return (isblank('a'));
24180 ;
24181 return 0;
24182 }
24183 _ACEOF
24184 if ac_fn_c_try_link "$LINENO"
24185 then :
24186 sudo_cv_func_isblank=yes
24187 else case e in #(
24188 e) sudo_cv_func_isblank=no ;;
24189 esac
24190 fi
24191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24192 conftest$ac_exeext conftest.$ac_ext ;;
24193 esac
24194 fi
24195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
24196 printf "%s\n" "$sudo_cv_func_isblank" >&6; }
24197
24198 if test "$sudo_cv_func_isblank" = "yes"; then
24199
24200 printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
24201
24202 else
24203 case " $LIBOBJS " in
24204 *" isblank.$ac_objext "* ) ;;
24205 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
24206 ;;
24207 esac
24208
24209
24210 for _sym in isblank; do
24211 COMPAT_EXP="${COMPAT_EXP}${_sym}
24212 "
24213 done
24214
24215 fi
24216
24217
24218 for ac_func in glob
24219 do :
24220 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
24221 if test "x$ac_cv_func_glob" = xyes
24222 then :
24223 printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h
24224
24225 else case e in #(
24226 e)
24227 case " $LIBOBJS " in
24228 *" glob.$ac_objext "* ) ;;
24229 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
24230 ;;
24231 esac
24232
24233
24234 for _sym in sudo_glob sudo_globfree; do
24235 COMPAT_EXP="${COMPAT_EXP}${_sym}
24236 "
24237 done
24238
24239 ;;
24240 esac
24241 fi
24242
24243 done
24244
24245 for ac_func in memrchr
24246 do :
24247 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
24248 if test "x$ac_cv_func_memrchr" = xyes
24249 then :
24250 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
24251
24252 else case e in #(
24253 e)
24254 case " $LIBOBJS " in
24255 *" memrchr.$ac_objext "* ) ;;
24256 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
24257 ;;
24258 esac
24259
24260
24261 for _sym in sudo_memrchr; do
24262 COMPAT_EXP="${COMPAT_EXP}${_sym}
24263 "
24264 done
24265
24266 ;;
24267 esac
24268 fi
24269
24270 done
24271
24272 for ac_func in freezero
24273 do :
24274 ac_fn_c_check_func "$LINENO" "freezero" "ac_cv_func_freezero"
24275 if test "x$ac_cv_func_freezero" = xyes
24276 then :
24277 printf "%s\n" "#define HAVE_FREEZERO 1" >>confdefs.h
24278
24279 else case e in #(
24280 e)
24281 case " $LIBOBJS " in
24282 *" freezero.$ac_objext "* ) ;;
24283 *) LIBOBJS="$LIBOBJS freezero.$ac_objext"
24284 ;;
24285 esac
24286
24287
24288 for _sym in sudo_freezero; do
24289 COMPAT_EXP="${COMPAT_EXP}${_sym}
24290 "
24291 done
24292
24293 ;;
24294 esac
24295 fi
24296
24297 done
24298
24299 for ac_func in nanosleep
24300 do :
24301 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
24302 if test "x$ac_cv_func_nanosleep" = xyes
24303 then :
24304 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
24305
24306 else case e in #(
24307 e)
24308 # On Solaris, nanosleep is in librt
24309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
24310 printf %s "checking for nanosleep in -lrt... " >&6; }
24311 if test ${ac_cv_lib_rt_nanosleep+y}
24312 then :
24313 printf %s "(cached) " >&6
24314 else case e in #(
24315 e) ac_check_lib_save_LIBS=$LIBS
24316 LIBS="-lrt $LIBS"
24317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24318 /* end confdefs.h. */
24319
24320 /* Override any GCC internal prototype to avoid an error.
24321 Use char because int might match the return type of a GCC
24322 builtin and then its argument prototype would still apply.
24323 The 'extern "C"' is for builds by C++ compilers;
24324 although this is not generally supported in C code supporting it here
24325 has little cost and some practical benefit (sr 110532). */
24326 #ifdef __cplusplus
24327 extern "C"
24328 #endif
24329 char nanosleep (void);
24330 int
24331 main (void)
24332 {
24333 return nanosleep ();
24334 ;
24335 return 0;
24336 }
24337 _ACEOF
24338 if ac_fn_c_try_link "$LINENO"
24339 then :
24340 ac_cv_lib_rt_nanosleep=yes
24341 else case e in #(
24342 e) ac_cv_lib_rt_nanosleep=no ;;
24343 esac
24344 fi
24345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24346 conftest$ac_exeext conftest.$ac_ext
24347 LIBS=$ac_check_lib_save_LIBS ;;
24348 esac
24349 fi
24350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
24351 printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
24352 if test "x$ac_cv_lib_rt_nanosleep" = xyes
24353 then :
24354
24355 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
24356
24357 LIBRT="-lrt"
24358
24359 else case e in #(
24360 e)
24361 case " $LIBOBJS " in
24362 *" nanosleep.$ac_objext "* ) ;;
24363 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
24364 ;;
24365 esac
24366
24367
24368 for _sym in sudo_nanosleep; do
24369 COMPAT_EXP="${COMPAT_EXP}${_sym}
24370 "
24371 done
24372
24373 ;;
24374 esac
24375 fi
24376
24377 ;;
24378 esac
24379 fi
24380
24381 done
24382
24383 for ac_func in fchownat
24384 do :
24385 ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat"
24386 if test "x$ac_cv_func_fchownat" = xyes
24387 then :
24388 printf "%s\n" "#define HAVE_FCHOWNAT 1" >>confdefs.h
24389
24390 else case e in #(
24391 e)
24392 case " $LIBOBJS " in
24393 *" fchownat.$ac_objext "* ) ;;
24394 *) LIBOBJS="$LIBOBJS fchownat.$ac_objext"
24395 ;;
24396 esac
24397
24398
24399 for _sym in sudo_fchownat; do
24400 COMPAT_EXP="${COMPAT_EXP}${_sym}
24401 "
24402 done
24403
24404 ;;
24405 esac
24406 fi
24407
24408 done
24409
24410 for ac_func in mkdirat
24411 do :
24412 ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat"
24413 if test "x$ac_cv_func_mkdirat" = xyes
24414 then :
24415 printf "%s\n" "#define HAVE_MKDIRAT 1" >>confdefs.h
24416
24417 else case e in #(
24418 e)
24419 case " $LIBOBJS " in
24420 *" mkdirat.$ac_objext "* ) ;;
24421 *) LIBOBJS="$LIBOBJS mkdirat.$ac_objext"
24422 ;;
24423 esac
24424
24425
24426 for _sym in sudo_mkdirat; do
24427 COMPAT_EXP="${COMPAT_EXP}${_sym}
24428 "
24429 done
24430
24431 ;;
24432 esac
24433 fi
24434
24435 done
24436
24437 for ac_func in openat
24438 do :
24439 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
24440 if test "x$ac_cv_func_openat" = xyes
24441 then :
24442 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
24443
24444 else case e in #(
24445 e)
24446 case " $LIBOBJS " in
24447 *" openat.$ac_objext "* ) ;;
24448 *) LIBOBJS="$LIBOBJS openat.$ac_objext"
24449 ;;
24450 esac
24451
24452
24453 for _sym in sudo_openat; do
24454 COMPAT_EXP="${COMPAT_EXP}${_sym}
24455 "
24456 done
24457
24458 ;;
24459 esac
24460 fi
24461
24462 done
24463
24464 for ac_func in unlinkat
24465 do :
24466 ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat"
24467 if test "x$ac_cv_func_unlinkat" = xyes
24468 then :
24469 printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h
24470
24471 else case e in #(
24472 e)
24473 case " $LIBOBJS " in
24474 *" unlinkat.$ac_objext "* ) ;;
24475 *) LIBOBJS="$LIBOBJS unlinkat.$ac_objext"
24476 ;;
24477 esac
24478
24479
24480 for _sym in sudo_unlinkat; do
24481 COMPAT_EXP="${COMPAT_EXP}${_sym}
24482 "
24483 done
24484
24485 ;;
24486 esac
24487 fi
24488
24489 done
24490
24491 for ac_func in fchmodat
24492 do :
24493 ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat"
24494 if test "x$ac_cv_func_fchmodat" = xyes
24495 then :
24496 printf "%s\n" "#define HAVE_FCHMODAT 1" >>confdefs.h
24497
24498 else case e in #(
24499 e)
24500 case " $LIBOBJS " in
24501 *" fchmodat.$ac_objext "* ) ;;
24502 *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
24503 ;;
24504 esac
24505
24506
24507 for _sym in sudo_fchmodat; do
24508 COMPAT_EXP="${COMPAT_EXP}${_sym}
24509 "
24510 done
24511
24512 ;;
24513 esac
24514 fi
24515
24516 done
24517
24518 for ac_func in fstatat
24519 do :
24520 ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
24521 if test "x$ac_cv_func_fstatat" = xyes
24522 then :
24523 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
24524
24525 else case e in #(
24526 e)
24527 case " $LIBOBJS " in
24528 *" fstatat.$ac_objext "* ) ;;
24529 *) LIBOBJS="$LIBOBJS fstatat.$ac_objext"
24530 ;;
24531 esac
24532
24533
24534 for _sym in sudo_fstatat; do
24535 COMPAT_EXP="${COMPAT_EXP}${_sym}
24536 "
24537 done
24538
24539 ;;
24540 esac
24541 fi
24542
24543 done
24544
24545 for ac_func in dup3
24546 do :
24547 ac_fn_c_check_func "$LINENO" "dup3" "ac_cv_func_dup3"
24548 if test "x$ac_cv_func_dup3" = xyes
24549 then :
24550 printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h
24551
24552 else case e in #(
24553 e)
24554 case " $LIBOBJS " in
24555 *" dup3.$ac_objext "* ) ;;
24556 *) LIBOBJS="$LIBOBJS dup3.$ac_objext"
24557 ;;
24558 esac
24559
24560
24561 for _sym in sudo_dup3; do
24562 COMPAT_EXP="${COMPAT_EXP}${_sym}
24563 "
24564 done
24565
24566 ;;
24567 esac
24568 fi
24569
24570 done
24571
24572 for ac_func in pipe2
24573 do :
24574 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
24575 if test "x$ac_cv_func_pipe2" = xyes
24576 then :
24577 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
24578
24579 else case e in #(
24580 e)
24581 case " $LIBOBJS " in
24582 *" pipe2.$ac_objext "* ) ;;
24583 *) LIBOBJS="$LIBOBJS pipe2.$ac_objext"
24584 ;;
24585 esac
24586
24587
24588 for _sym in sudo_pipe2; do
24589 COMPAT_EXP="${COMPAT_EXP}${_sym}
24590 "
24591 done
24592
24593 ;;
24594 esac
24595 fi
24596
24597 done
24598
24599 for ac_func in pw_dup
24600 do :
24601 ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
24602 if test "x$ac_cv_func_pw_dup" = xyes
24603 then :
24604 printf "%s\n" "#define HAVE_PW_DUP 1" >>confdefs.h
24605
24606 else case e in #(
24607 e)
24608 case " $LIBOBJS " in
24609 *" pw_dup.$ac_objext "* ) ;;
24610 *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
24611 ;;
24612 esac
24613
24614
24615 for _sym in sudo_pw_dup; do
24616 COMPAT_EXP="${COMPAT_EXP}${_sym}
24617 "
24618 done
24619
24620 ;;
24621 esac
24622 fi
24623
24624 done
24625
24626 for ac_func in realpath
24627 do :
24628 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
24629 if test "x$ac_cv_func_realpath" = xyes
24630 then :
24631 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
24632
24633 else case e in #(
24634 e)
24635 case " $LIBOBJS " in
24636 *" realpath.$ac_objext "* ) ;;
24637 *) LIBOBJS="$LIBOBJS realpath.$ac_objext"
24638 ;;
24639 esac
24640
24641
24642 for _sym in sudo_realpath; do
24643 COMPAT_EXP="${COMPAT_EXP}${_sym}
24644 "
24645 done
24646
24647 ;;
24648 esac
24649 fi
24650
24651 done
24652
24653 for ac_func in strlcpy
24654 do :
24655 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
24656 if test "x$ac_cv_func_strlcpy" = xyes
24657 then :
24658 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
24659
24660 else case e in #(
24661 e)
24662 case " $LIBOBJS " in
24663 *" strlcpy.$ac_objext "* ) ;;
24664 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
24665 ;;
24666 esac
24667
24668
24669 for _sym in sudo_strlcpy; do
24670 COMPAT_EXP="${COMPAT_EXP}${_sym}
24671 "
24672 done
24673
24674 ;;
24675 esac
24676 fi
24677
24678 done
24679
24680 for ac_func in strlcat
24681 do :
24682 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
24683 if test "x$ac_cv_func_strlcat" = xyes
24684 then :
24685 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
24686
24687 else case e in #(
24688 e)
24689 case " $LIBOBJS " in
24690 *" strlcat.$ac_objext "* ) ;;
24691 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
24692 ;;
24693 esac
24694
24695
24696 for _sym in sudo_strlcat; do
24697 COMPAT_EXP="${COMPAT_EXP}${_sym}
24698 "
24699 done
24700
24701 ;;
24702 esac
24703 fi
24704
24705 done
24706 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
24707 if test "x$ac_cv_func_strnlen" = xyes
24708 then :
24709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
24710 printf %s "checking for working strnlen... " >&6; }
24711 if test ${ac_cv_func_strnlen_working+y}
24712 then :
24713 printf %s "(cached) " >&6
24714 else case e in #(
24715 e) if test "$cross_compiling" = yes
24716 then :
24717 # Guess no on AIX systems, yes otherwise.
24718 case "$host_os" in
24719 aix*) ac_cv_func_strnlen_working=no;;
24720 *) ac_cv_func_strnlen_working=yes;;
24721 esac
24722 else case e in #(
24723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24724 /* end confdefs.h. */
24725 $ac_includes_default
24726 int
24727 main (void)
24728 {
24729
24730 #define S "foobar"
24731 #define S_LEN (sizeof S - 1)
24732
24733 /* At least one implementation is buggy: that of AIX 4.3 would
24734 give strnlen (S, 1) == 3. */
24735
24736 int i;
24737 for (i = 0; i < S_LEN + 1; ++i)
24738 {
24739 int expected = i <= S_LEN ? i : S_LEN;
24740 if (strnlen (S, i) != expected)
24741 return 1;
24742 }
24743 return 0;
24744
24745 ;
24746 return 0;
24747 }
24748 _ACEOF
24749 if ac_fn_c_try_run "$LINENO"
24750 then :
24751 ac_cv_func_strnlen_working=yes
24752 else case e in #(
24753 e) ac_cv_func_strnlen_working=no ;;
24754 esac
24755 fi
24756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24757 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
24758 esac
24759 fi
24760 ;;
24761 esac
24762 fi
24763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
24764 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
24765 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
24766 *" strnlen.$ac_objext "* ) ;;
24767 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
24768 ;;
24769 esac
24770
24771
24772 else case e in #(
24773 e) case " $LIBOBJS " in
24774 *" strnlen.$ac_objext "* ) ;;
24775 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
24776 ;;
24777 esac
24778 ;;
24779 esac
24780 fi
24781
24782 if test X"$ac_cv_func_strnlen_working" = X"yes"
24783 then :
24784
24785 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
24786
24787
24788 for ac_func in strndup
24789 do :
24790 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
24791 if test "x$ac_cv_func_strndup" = xyes
24792 then :
24793 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
24794
24795 else case e in #(
24796 e)
24797 case " $LIBOBJS " in
24798 *" strndup.$ac_objext "* ) ;;
24799 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
24800 ;;
24801 esac
24802
24803
24804 for _sym in sudo_strndup; do
24805 COMPAT_EXP="${COMPAT_EXP}${_sym}
24806 "
24807 done
24808
24809 ;;
24810 esac
24811 fi
24812
24813 done
24814
24815 else case e in #(
24816 e)
24817 # Broken or missing strnlen, use our own.
24818
24819 for _sym in sudo_strnlen; do
24820 COMPAT_EXP="${COMPAT_EXP}${_sym}
24821 "
24822 done
24823
24824 # Avoid libc strndup() since it is usually implemented using strnlen()
24825 case " $LIBOBJS " in
24826 *" strndup.$ac_objext "* ) ;;
24827 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
24828 ;;
24829 esac
24830
24831
24832 for _sym in sudo_strndup; do
24833 COMPAT_EXP="${COMPAT_EXP}${_sym}
24834 "
24835 done
24836
24837 ;;
24838 esac
24839 fi
24840
24841 for ac_func in clock_gettime
24842 do :
24843 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
24844 if test "x$ac_cv_func_clock_gettime" = xyes
24845 then :
24846 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24847
24848 else case e in #(
24849 e)
24850 # On Solaris, clock_gettime is in librt
24851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
24852 printf %s "checking for clock_gettime in -lrt... " >&6; }
24853 if test ${ac_cv_lib_rt_clock_gettime+y}
24854 then :
24855 printf %s "(cached) " >&6
24856 else case e in #(
24857 e) ac_check_lib_save_LIBS=$LIBS
24858 LIBS="-lrt $LIBS"
24859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24860 /* end confdefs.h. */
24861
24862 /* Override any GCC internal prototype to avoid an error.
24863 Use char because int might match the return type of a GCC
24864 builtin and then its argument prototype would still apply.
24865 The 'extern "C"' is for builds by C++ compilers;
24866 although this is not generally supported in C code supporting it here
24867 has little cost and some practical benefit (sr 110532). */
24868 #ifdef __cplusplus
24869 extern "C"
24870 #endif
24871 char clock_gettime (void);
24872 int
24873 main (void)
24874 {
24875 return clock_gettime ();
24876 ;
24877 return 0;
24878 }
24879 _ACEOF
24880 if ac_fn_c_try_link "$LINENO"
24881 then :
24882 ac_cv_lib_rt_clock_gettime=yes
24883 else case e in #(
24884 e) ac_cv_lib_rt_clock_gettime=no ;;
24885 esac
24886 fi
24887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24888 conftest$ac_exeext conftest.$ac_ext
24889 LIBS=$ac_check_lib_save_LIBS ;;
24890 esac
24891 fi
24892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
24893 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
24894 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
24895 then :
24896
24897 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24898
24899 LIBRT="-lrt"
24900
24901 fi
24902
24903 ;;
24904 esac
24905 fi
24906
24907 done
24908
24909 for ac_func in getopt_long
24910 do :
24911 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
24912 if test "x$ac_cv_func_getopt_long" = xyes
24913 then :
24914 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
24915
24916 else case e in #(
24917 e)
24918 case " $LIBOBJS " in
24919 *" getopt_long.$ac_objext "* ) ;;
24920 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
24921 ;;
24922 esac
24923
24924
24925 for _sym in sudo_getopt_long sudo_getopt_long_only; do
24926 COMPAT_EXP="${COMPAT_EXP}${_sym}
24927 "
24928 done
24929
24930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
24931 printf %s "checking for optreset... " >&6; }
24932 if test ${sudo_cv_optreset+y}
24933 then :
24934 printf %s "(cached) " >&6
24935 else case e in #(
24936 e)
24937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24938 /* end confdefs.h. */
24939
24940 int
24941 main (void)
24942 {
24943 extern int optreset; optreset = 1; return optreset;
24944 ;
24945 return 0;
24946 }
24947 _ACEOF
24948 if ac_fn_c_try_link "$LINENO"
24949 then :
24950 sudo_cv_optreset=yes
24951 else case e in #(
24952 e) sudo_cv_optreset=no ;;
24953 esac
24954 fi
24955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24956 conftest$ac_exeext conftest.$ac_ext ;;
24957 esac
24958 fi
24959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_optreset" >&5
24960 printf "%s\n" "$sudo_cv_optreset" >&6; }
24961 if test "$sudo_cv_optreset" = "yes"
24962 then :
24963
24964 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
24965
24966
24967 fi
24968 ;;
24969 esac
24970 fi
24971
24972 done
24973
24974 for ac_func in closefrom
24975 do :
24976 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
24977 if test "x$ac_cv_func_closefrom" = xyes
24978 then :
24979 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
24980
24981 else case e in #(
24982 e) case " $LIBOBJS " in
24983 *" closefrom.$ac_objext "* ) ;;
24984 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
24985 ;;
24986 esac
24987
24988
24989 for _sym in sudo_closefrom; do
24990 COMPAT_EXP="${COMPAT_EXP}${_sym}
24991 "
24992 done
24993
24994 ac_fn_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "
24995 # include <limits.h>
24996 # include <fcntl.h>
24997 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24998 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes
24999 then :
25000 printf "%s\n" "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
25001
25002 else case e in #(
25003 e)
25004 # Linux has a special header for close_range(2).
25005
25006 for ac_func in close_range
25007 do :
25008 ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range"
25009 if test "x$ac_cv_func_close_range" = xyes
25010 then :
25011 printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h
25012
25013 case "$host_os" in
25014 linux*) ac_fn_c_check_header_compile "$LINENO" "linux/close_range.h" "ac_cv_header_linux_close_range_h" "$ac_includes_default"
25015 if test "x$ac_cv_header_linux_close_range_h" = xyes
25016 then :
25017 printf "%s\n" "#define HAVE_LINUX_CLOSE_RANGE_H 1" >>confdefs.h
25018
25019 fi
25020 ;;
25021 esac
25022
25023 fi
25024
25025 done
25026 ;;
25027 esac
25028 fi
25029 COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }closefrom_test"
25030 ;;
25031 esac
25032 fi
25033
25034 done
25035 sudo_mktemp=no
25036 case "$host_os" in
25037 darwin*)
25038 # macOS has these but uses a _np (non-portable) suffix
25039
25040 for ac_func in mkdtempat_np mkostempsat_np
25041 do :
25042 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
25043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25044 if eval test \"x\$"$as_ac_var"\" = x"yes"
25045 then :
25046 cat >>confdefs.h <<_ACEOF
25047 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
25048 _ACEOF
25049
25050 else case e in #(
25051 e) sudo_mktemp=yes; break ;;
25052 esac
25053 fi
25054
25055 done
25056 ;;
25057 *)
25058
25059 for ac_func in mkdtempat mkostempsat
25060 do :
25061 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
25062 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25063 if eval test \"x\$"$as_ac_var"\" = x"yes"
25064 then :
25065 cat >>confdefs.h <<_ACEOF
25066 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
25067 _ACEOF
25068
25069 else case e in #(
25070 e) sudo_mktemp=yes; break ;;
25071 esac
25072 fi
25073
25074 done
25075 ;;
25076 esac
25077 # If any of the mktemp family are missing we use our own.
25078 if test X"$sudo_mktemp" = X"yes"
25079 then :
25080
25081 case " $LIBOBJS " in
25082 *" mktemp.$ac_objext "* ) ;;
25083 *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
25084 ;;
25085 esac
25086
25087
25088 for _sym in sudo_mkdtemp sudo_mkdtempat sudo_mkostempsat sudo_mkstemp sudo_mkstemps; do
25089 COMPAT_EXP="${COMPAT_EXP}${_sym}
25090 "
25091 done
25092
25093 COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }mktemp_test"
25094
25095 fi
25096 if test X"$ac_cv_build_prog_cc_c99" != X"no" -a X"$cross_compiling" = X"yes"
25097 then :
25098
25099 # If we have a C99 compiler and are cross-compiling, assume
25100 # C99-compliant v?snprintf().
25101 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
25102 if test "x$ac_cv_func_snprintf" = xyes
25103 then :
25104 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
25105
25106 fi
25107 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
25108 if test "x$ac_cv_func_vsnprintf" = xyes
25109 then :
25110 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
25111
25112 fi
25113
25114 ac_cv_have_working_snprintf="$ac_cv_func_snprintf"
25115 ac_cv_have_working_vsnprintf="$ac_cv_func_vsnprintf"
25116
25117 else case e in #(
25118 e)
25119 # Check for C99-compliant v?snprintf().
25120 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
25121 if test "x$ac_cv_func_snprintf" = xyes
25122 then :
25123 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
25124
25125 fi
25126 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
25127 if test "x$ac_cv_func_vsnprintf" = xyes
25128 then :
25129 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
25130
25131 fi
25132
25133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
25134 printf %s "checking for working snprintf... " >&6; }
25135 if test ${ac_cv_have_working_snprintf+y}
25136 then :
25137 printf %s "(cached) " >&6
25138 else case e in #(
25139 e) if test "$cross_compiling" = yes
25140 then :
25141 ac_cv_have_working_snprintf=cross
25142 else case e in #(
25143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25144 /* end confdefs.h. */
25145 #include <stdio.h>
25146 #include <string.h>
25147
25148 int main(void)
25149 {
25150 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
25151 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
25152 int i;
25153 i = snprintf (bufs, 2, "%s", "111");
25154 if (strcmp (bufs, "1")) return (1);
25155 if (i != 3) return (1);
25156 i = snprintf (bufd, 2, "%d", 111);
25157 if (strcmp (bufd, "1")) return (1);
25158 if (i != 3) return (1);
25159 return(0);
25160 }
25161 _ACEOF
25162 if ac_fn_c_try_run "$LINENO"
25163 then :
25164 ac_cv_have_working_snprintf=yes
25165 else case e in #(
25166 e) ac_cv_have_working_snprintf=no ;;
25167 esac
25168 fi
25169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25170 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25171 esac
25172 fi
25173 ;;
25174 esac
25175 fi
25176
25177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_working_snprintf" >&5
25178 printf "%s\n" "$ac_cv_have_working_snprintf" >&6; }
25179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5
25180 printf %s "checking for working vsnprintf... " >&6; }
25181 if test ${ac_cv_have_working_vsnprintf+y}
25182 then :
25183 printf %s "(cached) " >&6
25184 else case e in #(
25185 e) if test "$cross_compiling" = yes
25186 then :
25187 ac_cv_have_working_vsnprintf=cross
25188 else case e in #(
25189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25190 /* end confdefs.h. */
25191 #include <stdio.h>
25192 #include <stdarg.h>
25193 #include <string.h>
25194
25195 int my_vsnprintf (char *buf, const char *tmpl, ...)
25196 {
25197 int i;
25198 va_list args;
25199 va_start (args, tmpl);
25200 i = vsnprintf (buf, 2, tmpl, args);
25201 va_end (args);
25202 return i;
25203 }
25204
25205 int main(void)
25206 {
25207 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
25208 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
25209 int i;
25210 i = my_vsnprintf (bufs, "%s", "111");
25211 if (strcmp (bufs, "1")) return (1);
25212 if (i != 3) return (1);
25213 i = my_vsnprintf (bufd, "%d", 111);
25214 if (strcmp (bufd, "1")) return (1);
25215 if (i != 3) return (1);
25216 return(0);
25217 }
25218 _ACEOF
25219 if ac_fn_c_try_run "$LINENO"
25220 then :
25221 ac_cv_have_working_vsnprintf=yes
25222 else case e in #(
25223 e) ac_cv_have_working_vsnprintf=no ;;
25224 esac
25225 fi
25226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25227 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25228 esac
25229 fi
25230 ;;
25231 esac
25232 fi
25233
25234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_working_vsnprintf" >&5
25235 printf "%s\n" "$ac_cv_have_working_vsnprintf" >&6; }
25236 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
25237 case " $LIBOBJS " in
25238 *" snprintf.$ac_objext "* ) ;;
25239 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
25240 ;;
25241 esac
25242
25243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Replacing missing/broken (v)snprintf() with sudo's version." >&5
25244 printf "%s\n" "$as_me: WARNING: Replacing missing/broken (v)snprintf() with sudo's version." >&2;}
25245
25246 printf "%s\n" "#define PREFER_PORTABLE_SNPRINTF 1" >>confdefs.h
25247
25248 fi
25249 ;;
25250 esac
25251 fi
25252 if test X"$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf" = X"yesyes"
25253 then :
25254
25255 # System has a C99-compliant v?snprintf(), check for v?asprintf()
25256
25257 for ac_func in asprintf
25258 do :
25259 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
25260 if test "x$ac_cv_func_asprintf" = xyes
25261 then :
25262 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
25263
25264 else case e in #(
25265 e)
25266 case " $LIBOBJS " in
25267 *" snprintf.$ac_objext "* ) ;;
25268 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
25269 ;;
25270 esac
25271
25272
25273 for _sym in sudo_asprintf; do
25274 COMPAT_EXP="${COMPAT_EXP}${_sym}
25275 "
25276 done
25277
25278 ;;
25279 esac
25280 fi
25281
25282 done
25283
25284 for ac_func in vasprintf
25285 do :
25286 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
25287 if test "x$ac_cv_func_vasprintf" = xyes
25288 then :
25289 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
25290
25291 else case e in #(
25292 e)
25293 case " $LIBOBJS " in
25294 *" snprintf.$ac_objext "* ) ;;
25295 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
25296 ;;
25297 esac
25298
25299
25300 for _sym in sudo_vasprintf; do
25301 COMPAT_EXP="${COMPAT_EXP}${_sym}
25302 "
25303 done
25304
25305 ;;
25306 esac
25307 fi
25308
25309 done
25310
25311 else case e in #(
25312 e)
25313 # Missing or non-compliant v?snprintf(), assume missing/bad v?asprintf()
25314
25315 for _sym in sudo_snprintf sudo_vsnprintf sudo_asprintf sudo_vasprintf; do
25316 COMPAT_EXP="${COMPAT_EXP}${_sym}
25317 "
25318 done
25319
25320 ;;
25321 esac
25322 fi
25323 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
25324 $ac_includes_default
25325 #include <errno.h>
25326
25327 "
25328 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
25329 then :
25330
25331 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
25332
25333
25334 fi
25335
25336 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
25337 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
25338 then :
25339 printf "%s\n" "#define HAVE_ST_MTIM 1" >>confdefs.h
25340
25341 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
25342 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes
25343 then :
25344 printf "%s\n" "#define HAVE_ST__TIM 1" >>confdefs.h
25345
25346 fi
25347
25348 else case e in #(
25349 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
25350 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes
25351 then :
25352 printf "%s\n" "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
25353
25354 else case e in #(
25355 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_nmtime" "ac_cv_member_struct_stat_st_nmtime" "$ac_includes_default"
25356 if test "x$ac_cv_member_struct_stat_st_nmtime" = xyes
25357 then :
25358 printf "%s\n" "#define HAVE_ST_NMTIME 1" >>confdefs.h
25359
25360 fi
25361 ;;
25362 esac
25363 fi
25364
25365
25366 ;;
25367 esac
25368 fi
25369
25370 ac_fn_c_check_func "$LINENO" "setpassent" "ac_cv_func_setpassent"
25371 if test "x$ac_cv_func_setpassent" = xyes
25372 then :
25373 printf "%s\n" "#define HAVE_SETPASSENT 1" >>confdefs.h
25374
25375 fi
25376 ac_fn_c_check_func "$LINENO" "setgroupent" "ac_cv_func_setgroupent"
25377 if test "x$ac_cv_func_setgroupent" = xyes
25378 then :
25379 printf "%s\n" "#define HAVE_SETGROUPENT 1" >>confdefs.h
25380
25381 fi
25382
25383 if test X"$with_noexec" != X"no"
25384 then :
25385
25386 # Check for non-standard exec functions
25387 ac_fn_c_check_func "$LINENO" "exect" "ac_cv_func_exect"
25388 if test "x$ac_cv_func_exect" = xyes
25389 then :
25390 printf "%s\n" "#define HAVE_EXECT 1" >>confdefs.h
25391
25392 fi
25393 ac_fn_c_check_func "$LINENO" "execvP" "ac_cv_func_execvP"
25394 if test "x$ac_cv_func_execvP" = xyes
25395 then :
25396 printf "%s\n" "#define HAVE_EXECVP 1" >>confdefs.h
25397
25398 fi
25399 ac_fn_c_check_func "$LINENO" "execvpe" "ac_cv_func_execvpe"
25400 if test "x$ac_cv_func_execvpe" = xyes
25401 then :
25402 printf "%s\n" "#define HAVE_EXECVPE 1" >>confdefs.h
25403
25404 fi
25405
25406 # Check for posix_spawn, and posix_spawnp
25407 if test X"$ac_cv_header_spawn_h" = X"yes"
25408 then :
25409
25410 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
25411 if test "x$ac_cv_func_posix_spawn" = xyes
25412 then :
25413 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
25414
25415 fi
25416 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
25417 if test "x$ac_cv_func_posix_spawnp" = xyes
25418 then :
25419 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
25420
25421 fi
25422
25423
25424 fi
25425
25426 fi
25427
25428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25429 /* end confdefs.h. */
25430 #include <sys/types.h>
25431 #include <$ac_header_dirent>
25432 int
25433 main (void)
25434 {
25435 DIR *d; (void)dirfd(d);
25436 ;
25437 return 0;
25438 }
25439 _ACEOF
25440 if ac_fn_c_try_link "$LINENO"
25441 then :
25442 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
25443
25444 else case e in #(
25445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25446 /* end confdefs.h. */
25447 #include <sys/types.h>
25448 #include <$ac_header_dirent>
25449 int
25450 main (void)
25451 {
25452 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
25453 ;
25454 return 0;
25455 }
25456 _ACEOF
25457 if ac_fn_c_try_link "$LINENO"
25458 then :
25459 printf "%s\n" "#define HAVE_DD_FD 1" >>confdefs.h
25460
25461 fi
25462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25463 conftest$ac_exeext conftest.$ac_ext ;;
25464 esac
25465 fi
25466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25467 conftest$ac_exeext conftest.$ac_ext
25468 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
25469 $ac_includes_default
25470 #include <$ac_header_dirent>
25471
25472 "
25473 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
25474 then :
25475
25476 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
25477
25478
25479 fi
25480 ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "
25481 $ac_includes_default
25482 #include <$ac_header_dirent>
25483
25484 "
25485 if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
25486 then :
25487
25488 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
25489
25490
25491 fi
25492
25493
25494
25495
25496 openssl_missing=no
25497 if test "${enable_openssl-no}" != no; then
25498 # Use pkg-config to find the openssl cflags and libs if possible.
25499 if test "$enable_openssl" != "yes" -a "$enable_openssl" != "maybe"; then
25500 PKG_CONFIG_LIBDIR=
25501 for d in ${enable_openssl}/*/pkgconfig; do
25502 if test -d "$d"; then
25503 PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR:$d"
25504 fi
25505 done
25506 if test -n "$PKG_CONFIG_LIBDIR"; then
25507 PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR#:}
25508 export PKG_CONFIG_LIBDIR
25509 fi
25510 elif test "$cross_compiling" = "yes" -a -z "$PKG_CONFIG"; then
25511 # Cannot use pkg-config when cross-compiling
25512 PKG_CONFIG=false
25513 fi
25514 : ${PKG_CONFIG='pkg-config'}
25515 pkg_openssl=`printf $enable_openssl_pkgconfig_template "openssl"`
25516 pkg_libcrypto=lib`printf $enable_openssl_pkgconfig_template "crypto"`
25517 if $PKG_CONFIG --exists "$pkg_openssl >= 1.0.1" >/dev/null 2>&1; then
25518 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
25519
25520 if test "$enable_openssl" = "maybe"; then
25521 enable_openssl=yes
25522 fi
25523
25524 # Check whether --static is needed (don't assume name of ssl lib)
25525 # There may be dependent libraries or -pthread.
25526 O_LDFLAGS="$LDFLAGS"
25527 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs-only-L $pkg_openssl`"
25528 libssl="`$PKG_CONFIG --libs-only-l $pkg_openssl | sed 's/^ *-l//'`"
25529 libssl_extra="`echo $libssl | sed 's/^[^ ]* *//'`"
25530 libssl="`echo $libssl | sed 's/ .*//'`"
25531 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libssl""_SSL_new$libssl_extra" | sed "$as_sed_sh"`
25532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -l$libssl" >&5
25533 printf %s "checking for SSL_new in -l$libssl... " >&6; }
25534 if eval test \${$as_ac_Lib+y}
25535 then :
25536 printf %s "(cached) " >&6
25537 else case e in #(
25538 e) ac_check_lib_save_LIBS=$LIBS
25539 LIBS="-l$libssl $libssl_extra $LIBS"
25540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25541 /* end confdefs.h. */
25542
25543 /* Override any GCC internal prototype to avoid an error.
25544 Use char because int might match the return type of a GCC
25545 builtin and then its argument prototype would still apply.
25546 The 'extern "C"' is for builds by C++ compilers;
25547 although this is not generally supported in C code supporting it here
25548 has little cost and some practical benefit (sr 110532). */
25549 #ifdef __cplusplus
25550 extern "C"
25551 #endif
25552 char SSL_new (void);
25553 int
25554 main (void)
25555 {
25556 return SSL_new ();
25557 ;
25558 return 0;
25559 }
25560 _ACEOF
25561 if ac_fn_c_try_link "$LINENO"
25562 then :
25563 eval "$as_ac_Lib=yes"
25564 else case e in #(
25565 e) eval "$as_ac_Lib=no" ;;
25566 esac
25567 fi
25568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25569 conftest$ac_exeext conftest.$ac_ext
25570 LIBS=$ac_check_lib_save_LIBS ;;
25571 esac
25572 fi
25573 eval ac_res=\$$as_ac_Lib
25574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25575 printf "%s\n" "$ac_res" >&6; }
25576 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
25577 then :
25578 STATIC=""
25579 else case e in #(
25580 e) STATIC="--static" ;;
25581 esac
25582 fi
25583
25584 LDFLAGS="$O_LDFLAGS"
25585
25586 # Use pkg-config to determine OpenSSL libs and cflags
25587 for f in `$PKG_CONFIG $STATIC --libs $pkg_openssl`; do
25588 case "$f" in
25589 -L*)
25590 f="${f#-L}"
25591
25592
25593 if test ${LIBTLS+y}
25594 then :
25595
25596 case " $LIBTLS " in #(
25597 *" -L$f "*) :
25598 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS already contains -L\$f"; } >&5
25599 (: LIBTLS already contains -L$f) 2>&5
25600 ac_status=$?
25601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25602 test $ac_status = 0; } ;; #(
25603 *) :
25604
25605 as_fn_append LIBTLS " -L$f"
25606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS=\"\$LIBTLS\""; } >&5
25607 (: LIBTLS="$LIBTLS") 2>&5
25608 ac_status=$?
25609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25610 test $ac_status = 0; }
25611 ;;
25612 esac
25613
25614 else case e in #(
25615 e)
25616 LIBTLS=-L$f
25617 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS=\"\$LIBTLS\""; } >&5
25618 (: LIBTLS="$LIBTLS") 2>&5
25619 ac_status=$?
25620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }
25622 ;;
25623 esac
25624 fi
25625
25626 if test X"$enable_rpath" = X"yes"; then
25627
25628 if test ${LIBTLS_R+y}
25629 then :
25630
25631 case " $LIBTLS_R " in #(
25632 *" -R$f "*) :
25633 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R already contains -R\$f"; } >&5
25634 (: LIBTLS_R already contains -R$f) 2>&5
25635 ac_status=$?
25636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25637 test $ac_status = 0; } ;; #(
25638 *) :
25639
25640 as_fn_append LIBTLS_R " -R$f"
25641 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R=\"\$LIBTLS_R\""; } >&5
25642 (: LIBTLS_R="$LIBTLS_R") 2>&5
25643 ac_status=$?
25644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25645 test $ac_status = 0; }
25646 ;;
25647 esac
25648
25649 else case e in #(
25650 e)
25651 LIBTLS_R=-R$f
25652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R=\"\$LIBTLS_R\""; } >&5
25653 (: LIBTLS_R="$LIBTLS_R") 2>&5
25654 ac_status=$?
25655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }
25657 ;;
25658 esac
25659 fi
25660
25661 fi
25662
25663 ;;
25664 *)
25665 # Do not use AX_APPEND_FLAG as it will break static builds by removing
25666 # duplicates such as -lz or -latomic which are needed by -lssl and -lcrypto
25667 LIBTLS="$LIBTLS $f"
25668 ;;
25669 esac
25670 done
25671 if $PKG_CONFIG --exists $pkg_libcrypto >/dev/null 2>&1; then
25672 # Use OpenSSL's sha2 functions if possible (don't assume name of crypto)
25673 O_LDFLAGS="$LDFLAGS"
25674 libcrypto=
25675 libcrypto_extra=
25676 for f in `$PKG_CONFIG $STATIC --libs $pkg_libcrypto`; do
25677 case "$f" in
25678 -l*)
25679 if test -z "$libcrypto"; then
25680 libcrypto="${f#-l}"
25681 else
25682 libcrypto_extra="$libcrypto_extra $f"
25683 fi
25684 ;;
25685 *)
25686
25687 if test ${LDFLAGS+y}
25688 then :
25689
25690 case " $LDFLAGS " in #(
25691 *" $f "*) :
25692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$f"; } >&5
25693 (: LDFLAGS already contains $f) 2>&5
25694 ac_status=$?
25695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25696 test $ac_status = 0; } ;; #(
25697 *) :
25698
25699 as_fn_append LDFLAGS " $f"
25700 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
25701 (: LDFLAGS="$LDFLAGS") 2>&5
25702 ac_status=$?
25703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25704 test $ac_status = 0; }
25705 ;;
25706 esac
25707
25708 else case e in #(
25709 e)
25710 LDFLAGS=$f
25711 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
25712 (: LDFLAGS="$LDFLAGS") 2>&5
25713 ac_status=$?
25714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25715 test $ac_status = 0; }
25716 ;;
25717 esac
25718 fi
25719
25720 ;;
25721 esac
25722 done
25723 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libcrypto""_EVP_MD_CTX_new$libcrypto_extra" | sed "$as_sed_sh"`
25724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -l$libcrypto" >&5
25725 printf %s "checking for EVP_MD_CTX_new in -l$libcrypto... " >&6; }
25726 if eval test \${$as_ac_Lib+y}
25727 then :
25728 printf %s "(cached) " >&6
25729 else case e in #(
25730 e) ac_check_lib_save_LIBS=$LIBS
25731 LIBS="-l$libcrypto $libcrypto_extra $LIBS"
25732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25733 /* end confdefs.h. */
25734
25735 /* Override any GCC internal prototype to avoid an error.
25736 Use char because int might match the return type of a GCC
25737 builtin and then its argument prototype would still apply.
25738 The 'extern "C"' is for builds by C++ compilers;
25739 although this is not generally supported in C code supporting it here
25740 has little cost and some practical benefit (sr 110532). */
25741 #ifdef __cplusplus
25742 extern "C"
25743 #endif
25744 char EVP_MD_CTX_new (void);
25745 int
25746 main (void)
25747 {
25748 return EVP_MD_CTX_new ();
25749 ;
25750 return 0;
25751 }
25752 _ACEOF
25753 if ac_fn_c_try_link "$LINENO"
25754 then :
25755 eval "$as_ac_Lib=yes"
25756 else case e in #(
25757 e) eval "$as_ac_Lib=no" ;;
25758 esac
25759 fi
25760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25761 conftest$ac_exeext conftest.$ac_ext
25762 LIBS=$ac_check_lib_save_LIBS ;;
25763 esac
25764 fi
25765 eval ac_res=\$$as_ac_Lib
25766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25767 printf "%s\n" "$ac_res" >&6; }
25768 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
25769 then :
25770 DIGEST=digest_openssl.lo
25771 fi
25772
25773 LDFLAGS="$O_LDFLAGS"
25774
25775 # Use pkg-config to determine libcrypto libs and cflags
25776 for f in `$PKG_CONFIG $STATIC --libs $pkg_libcrypto`; do
25777 case "$f" in
25778 -L*)
25779 f="${f#-L}"
25780
25781
25782 if test ${LIBCRYPTO+y}
25783 then :
25784
25785 case " $LIBCRYPTO " in #(
25786 *" -L$f "*) :
25787 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO already contains -L\$f"; } >&5
25788 (: LIBCRYPTO already contains -L$f) 2>&5
25789 ac_status=$?
25790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25791 test $ac_status = 0; } ;; #(
25792 *) :
25793
25794 as_fn_append LIBCRYPTO " -L$f"
25795 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO=\"\$LIBCRYPTO\""; } >&5
25796 (: LIBCRYPTO="$LIBCRYPTO") 2>&5
25797 ac_status=$?
25798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25799 test $ac_status = 0; }
25800 ;;
25801 esac
25802
25803 else case e in #(
25804 e)
25805 LIBCRYPTO=-L$f
25806 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO=\"\$LIBCRYPTO\""; } >&5
25807 (: LIBCRYPTO="$LIBCRYPTO") 2>&5
25808 ac_status=$?
25809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25810 test $ac_status = 0; }
25811 ;;
25812 esac
25813 fi
25814
25815 if test X"$enable_rpath" = X"yes"; then
25816
25817 if test ${LIBCRYPTO_R+y}
25818 then :
25819
25820 case " $LIBCRYPTO_R " in #(
25821 *" -R$f "*) :
25822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO_R already contains -R\$f"; } >&5
25823 (: LIBCRYPTO_R already contains -R$f) 2>&5
25824 ac_status=$?
25825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25826 test $ac_status = 0; } ;; #(
25827 *) :
25828
25829 as_fn_append LIBCRYPTO_R " -R$f"
25830 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO_R=\"\$LIBCRYPTO_R\""; } >&5
25831 (: LIBCRYPTO_R="$LIBCRYPTO_R") 2>&5
25832 ac_status=$?
25833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25834 test $ac_status = 0; }
25835 ;;
25836 esac
25837
25838 else case e in #(
25839 e)
25840 LIBCRYPTO_R=-R$f
25841 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO_R=\"\$LIBCRYPTO_R\""; } >&5
25842 (: LIBCRYPTO_R="$LIBCRYPTO_R") 2>&5
25843 ac_status=$?
25844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25845 test $ac_status = 0; }
25846 ;;
25847 esac
25848 fi
25849
25850 fi
25851
25852 ;;
25853 *)
25854
25855 if test ${LIBCRYPTO+y}
25856 then :
25857
25858 case " $LIBCRYPTO " in #(
25859 *" $f "*) :
25860 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO already contains \$f"; } >&5
25861 (: LIBCRYPTO already contains $f) 2>&5
25862 ac_status=$?
25863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25864 test $ac_status = 0; } ;; #(
25865 *) :
25866
25867 as_fn_append LIBCRYPTO " $f"
25868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO=\"\$LIBCRYPTO\""; } >&5
25869 (: LIBCRYPTO="$LIBCRYPTO") 2>&5
25870 ac_status=$?
25871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }
25873 ;;
25874 esac
25875
25876 else case e in #(
25877 e)
25878 LIBCRYPTO=$f
25879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO=\"\$LIBCRYPTO\""; } >&5
25880 (: LIBCRYPTO="$LIBCRYPTO") 2>&5
25881 ac_status=$?
25882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25883 test $ac_status = 0; }
25884 ;;
25885 esac
25886 fi
25887
25888 ;;
25889 esac
25890 done
25891 else
25892 # No separate pkg config for libcrypto
25893 LIBCRYPTO="$LIBTLS"
25894 LIBCRYPTO_R="$LIBTLS_R"
25895 fi
25896 for f in `$PKG_CONFIG --cflags-only-I $pkg_openssl`; do
25897
25898 if test ${CPPFLAGS+y}
25899 then :
25900
25901 case " $CPPFLAGS " in #(
25902 *" $f "*) :
25903 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains \$f"; } >&5
25904 (: CPPFLAGS already contains $f) 2>&5
25905 ac_status=$?
25906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25907 test $ac_status = 0; } ;; #(
25908 *) :
25909
25910 as_fn_append CPPFLAGS " $f"
25911 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
25912 (: CPPFLAGS="$CPPFLAGS") 2>&5
25913 ac_status=$?
25914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25915 test $ac_status = 0; }
25916 ;;
25917 esac
25918
25919 else case e in #(
25920 e)
25921 CPPFLAGS=$f
25922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
25923 (: CPPFLAGS="$CPPFLAGS") 2>&5
25924 ac_status=$?
25925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25926 test $ac_status = 0; }
25927 ;;
25928 esac
25929 fi
25930
25931 done
25932 else
25933 # No pkg-config file present, try to do it manually
25934 O_LDFLAGS="$LDFLAGS"
25935 if test "$enable_openssl" != "yes" -a "$enable_openssl" != "maybe"; then
25936
25937
25938 if test ${LDFLAGS+y}
25939 then :
25940
25941 case " $LDFLAGS " in #(
25942 *" -L${enable_openssl}/lib "*) :
25943 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains -L\${enable_openssl}/lib"; } >&5
25944 (: LDFLAGS already contains -L${enable_openssl}/lib) 2>&5
25945 ac_status=$?
25946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25947 test $ac_status = 0; } ;; #(
25948 *) :
25949
25950 as_fn_append LDFLAGS " -L${enable_openssl}/lib"
25951 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
25952 (: LDFLAGS="$LDFLAGS") 2>&5
25953 ac_status=$?
25954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25955 test $ac_status = 0; }
25956 ;;
25957 esac
25958
25959 else case e in #(
25960 e)
25961 LDFLAGS=-L${enable_openssl}/lib
25962 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
25963 (: LDFLAGS="$LDFLAGS") 2>&5
25964 ac_status=$?
25965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25966 test $ac_status = 0; }
25967 ;;
25968 esac
25969 fi
25970
25971 if test X"$enable_rpath" = X"yes"; then
25972
25973 if test ${LDFLAGS_R+y}
25974 then :
25975
25976 case " $LDFLAGS_R " in #(
25977 *" -R${enable_openssl}/lib "*) :
25978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R already contains -R\${enable_openssl}/lib"; } >&5
25979 (: LDFLAGS_R already contains -R${enable_openssl}/lib) 2>&5
25980 ac_status=$?
25981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25982 test $ac_status = 0; } ;; #(
25983 *) :
25984
25985 as_fn_append LDFLAGS_R " -R${enable_openssl}/lib"
25986 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R=\"\$LDFLAGS_R\""; } >&5
25987 (: LDFLAGS_R="$LDFLAGS_R") 2>&5
25988 ac_status=$?
25989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25990 test $ac_status = 0; }
25991 ;;
25992 esac
25993
25994 else case e in #(
25995 e)
25996 LDFLAGS_R=-R${enable_openssl}/lib
25997 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R=\"\$LDFLAGS_R\""; } >&5
25998 (: LDFLAGS_R="$LDFLAGS_R") 2>&5
25999 ac_status=$?
26000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26001 test $ac_status = 0; }
26002 ;;
26003 esac
26004 fi
26005
26006 fi
26007
26008 fi
26009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
26010 printf %s "checking for SSL_new in -lssl... " >&6; }
26011 if test ${ac_cv_lib_ssl_SSL_new_lcrypto+y}
26012 then :
26013 printf %s "(cached) " >&6
26014 else case e in #(
26015 e) ac_check_lib_save_LIBS=$LIBS
26016 LIBS="-lssl -lcrypto $LIBS"
26017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26018 /* end confdefs.h. */
26019
26020 /* Override any GCC internal prototype to avoid an error.
26021 Use char because int might match the return type of a GCC
26022 builtin and then its argument prototype would still apply.
26023 The 'extern "C"' is for builds by C++ compilers;
26024 although this is not generally supported in C code supporting it here
26025 has little cost and some practical benefit (sr 110532). */
26026 #ifdef __cplusplus
26027 extern "C"
26028 #endif
26029 char SSL_new (void);
26030 int
26031 main (void)
26032 {
26033 return SSL_new ();
26034 ;
26035 return 0;
26036 }
26037 _ACEOF
26038 if ac_fn_c_try_link "$LINENO"
26039 then :
26040 ac_cv_lib_ssl_SSL_new_lcrypto=yes
26041 else case e in #(
26042 e) ac_cv_lib_ssl_SSL_new_lcrypto=no ;;
26043 esac
26044 fi
26045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26046 conftest$ac_exeext conftest.$ac_ext
26047 LIBS=$ac_check_lib_save_LIBS ;;
26048 esac
26049 fi
26050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new_lcrypto" >&5
26051 printf "%s\n" "$ac_cv_lib_ssl_SSL_new_lcrypto" >&6; }
26052 if test "x$ac_cv_lib_ssl_SSL_new_lcrypto" = xyes
26053 then :
26054
26055 # Check OPENSSL_VERSION_NUMBER in headers
26056 O_CPPFLAGS="$CPPFLAGS"
26057 if test "$enable_openssl" != "yes" -a "$enable_openssl" != "maybe"; then
26058 # Note: we only reset CPPFLAGS on failure
26059
26060 if test ${CPPFLAGS+y}
26061 then :
26062
26063 case " $CPPFLAGS " in #(
26064 *" -I${enable_openssl}/include "*) :
26065 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${enable_openssl}/include"; } >&5
26066 (: CPPFLAGS already contains -I${enable_openssl}/include) 2>&5
26067 ac_status=$?
26068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26069 test $ac_status = 0; } ;; #(
26070 *) :
26071
26072 as_fn_append CPPFLAGS " -I${enable_openssl}/include"
26073 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26074 (: CPPFLAGS="$CPPFLAGS") 2>&5
26075 ac_status=$?
26076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26077 test $ac_status = 0; }
26078 ;;
26079 esac
26080
26081 else case e in #(
26082 e)
26083 CPPFLAGS=-I${enable_openssl}/include
26084 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26085 (: CPPFLAGS="$CPPFLAGS") 2>&5
26086 ac_status=$?
26087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26088 test $ac_status = 0; }
26089 ;;
26090 esac
26091 fi
26092
26093 fi
26094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26095 /* end confdefs.h. */
26096 #include <openssl/opensslv.h>
26097 #if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x1000100fL
26098 #error "OpenSSL too old"
26099 #endif
26100
26101 int
26102 main (void)
26103 {
26104
26105 ;
26106 return 0;
26107 }
26108 _ACEOF
26109 if ac_fn_c_try_cpp "$LINENO"
26110 then :
26111
26112 # OpenSSL >= 1.0.1 detected, use it.
26113 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
26114
26115 if test "$enable_openssl" != "yes" -a "$enable_openssl" != "maybe"; then
26116
26117
26118 if test ${LIBCRYPTO+y}
26119 then :
26120
26121 case " $LIBCRYPTO " in #(
26122 *" -L${enable_openssl}/lib "*) :
26123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO already contains -L\${enable_openssl}/lib"; } >&5
26124 (: LIBCRYPTO already contains -L${enable_openssl}/lib) 2>&5
26125 ac_status=$?
26126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26127 test $ac_status = 0; } ;; #(
26128 *) :
26129
26130 as_fn_append LIBCRYPTO " -L${enable_openssl}/lib"
26131 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO=\"\$LIBCRYPTO\""; } >&5
26132 (: LIBCRYPTO="$LIBCRYPTO") 2>&5
26133 ac_status=$?
26134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26135 test $ac_status = 0; }
26136 ;;
26137 esac
26138
26139 else case e in #(
26140 e)
26141 LIBCRYPTO=-L${enable_openssl}/lib
26142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO=\"\$LIBCRYPTO\""; } >&5
26143 (: LIBCRYPTO="$LIBCRYPTO") 2>&5
26144 ac_status=$?
26145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26146 test $ac_status = 0; }
26147 ;;
26148 esac
26149 fi
26150
26151 if test X"$enable_rpath" = X"yes"; then
26152
26153 if test ${LIBCRYPTO_R+y}
26154 then :
26155
26156 case " $LIBCRYPTO_R " in #(
26157 *" -R${enable_openssl}/lib "*) :
26158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO_R already contains -R\${enable_openssl}/lib"; } >&5
26159 (: LIBCRYPTO_R already contains -R${enable_openssl}/lib) 2>&5
26160 ac_status=$?
26161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26162 test $ac_status = 0; } ;; #(
26163 *) :
26164
26165 as_fn_append LIBCRYPTO_R " -R${enable_openssl}/lib"
26166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO_R=\"\$LIBCRYPTO_R\""; } >&5
26167 (: LIBCRYPTO_R="$LIBCRYPTO_R") 2>&5
26168 ac_status=$?
26169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26170 test $ac_status = 0; }
26171 ;;
26172 esac
26173
26174 else case e in #(
26175 e)
26176 LIBCRYPTO_R=-R${enable_openssl}/lib
26177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO_R=\"\$LIBCRYPTO_R\""; } >&5
26178 (: LIBCRYPTO_R="$LIBCRYPTO_R") 2>&5
26179 ac_status=$?
26180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26181 test $ac_status = 0; }
26182 ;;
26183 esac
26184 fi
26185
26186 fi
26187
26188
26189
26190 if test ${LIBTLS+y}
26191 then :
26192
26193 case " $LIBTLS " in #(
26194 *" -L${enable_openssl}/lib "*) :
26195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS already contains -L\${enable_openssl}/lib"; } >&5
26196 (: LIBTLS already contains -L${enable_openssl}/lib) 2>&5
26197 ac_status=$?
26198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26199 test $ac_status = 0; } ;; #(
26200 *) :
26201
26202 as_fn_append LIBTLS " -L${enable_openssl}/lib"
26203 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS=\"\$LIBTLS\""; } >&5
26204 (: LIBTLS="$LIBTLS") 2>&5
26205 ac_status=$?
26206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26207 test $ac_status = 0; }
26208 ;;
26209 esac
26210
26211 else case e in #(
26212 e)
26213 LIBTLS=-L${enable_openssl}/lib
26214 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS=\"\$LIBTLS\""; } >&5
26215 (: LIBTLS="$LIBTLS") 2>&5
26216 ac_status=$?
26217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26218 test $ac_status = 0; }
26219 ;;
26220 esac
26221 fi
26222
26223 if test X"$enable_rpath" = X"yes"; then
26224
26225 if test ${LIBTLS_R+y}
26226 then :
26227
26228 case " $LIBTLS_R " in #(
26229 *" -R${enable_openssl}/lib "*) :
26230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R already contains -R\${enable_openssl}/lib"; } >&5
26231 (: LIBTLS_R already contains -R${enable_openssl}/lib) 2>&5
26232 ac_status=$?
26233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26234 test $ac_status = 0; } ;; #(
26235 *) :
26236
26237 as_fn_append LIBTLS_R " -R${enable_openssl}/lib"
26238 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R=\"\$LIBTLS_R\""; } >&5
26239 (: LIBTLS_R="$LIBTLS_R") 2>&5
26240 ac_status=$?
26241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26242 test $ac_status = 0; }
26243 ;;
26244 esac
26245
26246 else case e in #(
26247 e)
26248 LIBTLS_R=-R${enable_openssl}/lib
26249 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R=\"\$LIBTLS_R\""; } >&5
26250 (: LIBTLS_R="$LIBTLS_R") 2>&5
26251 ac_status=$?
26252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26253 test $ac_status = 0; }
26254 ;;
26255 esac
26256 fi
26257
26258 fi
26259
26260 else
26261 enable_openssl=yes
26262 fi
26263 LIBCRYPTO="${LIBCRYPTO} -lcrypto"
26264 LIBTLS="${LIBTLS} -lssl -lcrypto"
26265
26266 # Use OpenSSL's sha2 functions if possible
26267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -lcrypto" >&5
26268 printf %s "checking for EVP_MD_CTX_new in -lcrypto... " >&6; }
26269 if test ${ac_cv_lib_crypto_EVP_MD_CTX_new+y}
26270 then :
26271 printf %s "(cached) " >&6
26272 else case e in #(
26273 e) ac_check_lib_save_LIBS=$LIBS
26274 LIBS="-lcrypto $LIBS"
26275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26276 /* end confdefs.h. */
26277
26278 /* Override any GCC internal prototype to avoid an error.
26279 Use char because int might match the return type of a GCC
26280 builtin and then its argument prototype would still apply.
26281 The 'extern "C"' is for builds by C++ compilers;
26282 although this is not generally supported in C code supporting it here
26283 has little cost and some practical benefit (sr 110532). */
26284 #ifdef __cplusplus
26285 extern "C"
26286 #endif
26287 char EVP_MD_CTX_new (void);
26288 int
26289 main (void)
26290 {
26291 return EVP_MD_CTX_new ();
26292 ;
26293 return 0;
26294 }
26295 _ACEOF
26296 if ac_fn_c_try_link "$LINENO"
26297 then :
26298 ac_cv_lib_crypto_EVP_MD_CTX_new=yes
26299 else case e in #(
26300 e) ac_cv_lib_crypto_EVP_MD_CTX_new=no ;;
26301 esac
26302 fi
26303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26304 conftest$ac_exeext conftest.$ac_ext
26305 LIBS=$ac_check_lib_save_LIBS ;;
26306 esac
26307 fi
26308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_new" >&5
26309 printf "%s\n" "$ac_cv_lib_crypto_EVP_MD_CTX_new" >&6; }
26310 if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes
26311 then :
26312
26313 DIGEST=digest_openssl.lo
26314
26315 fi
26316
26317
26318 else case e in #(
26319 e)
26320 # OpenSSL < 1.0.1 detected, ignore it.
26321 if test "$enable_openssl" = "maybe"; then
26322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL too old (1.0.1 or higher required), Sudo logsrv connections will not be encrypted." >&5
26323 printf "%s\n" "$as_me: WARNING: OpenSSL too old (1.0.1 or higher required), Sudo logsrv connections will not be encrypted." >&2;}
26324 openssl_missing=yes
26325 enable_openssl=no
26326 else
26327 as_fn_error $? "OpenSSL too old (1.0.1 or higher required)." "$LINENO" 5
26328 fi
26329 CPPFLAGS="$O_CPPFLAGS"
26330 ;;
26331 esac
26332 fi
26333 rm -f conftest.err conftest.i conftest.$ac_ext
26334
26335 else case e in #(
26336 e)
26337 if test "$enable_openssl" = "maybe"; then
26338 openssl_missing=yes
26339 enable_openssl=no
26340 else
26341 as_fn_error $? "OpenSSL development libraries not found." "$LINENO" 5
26342 fi
26343 ;;
26344 esac
26345 fi
26346
26347 LDFLAGS="$O_LDFLAGS"
26348 fi
26349 if test "$enable_openssl" != "yes" -a "$enable_openssl" != "maybe"; then
26350 unset PKG_CONFIG_LIBDIR
26351 fi
26352 fi
26353 #
26354 # Note that enable_openssl may be reset above.
26355 #
26356 if test "${enable_openssl-no}" != no; then
26357 OLIBS="$LIBS"
26358 LIBS="$LIBS $LIBTLS"
26359 ac_fn_c_check_func "$LINENO" "X509_STORE_CTX_get0_cert" "ac_cv_func_X509_STORE_CTX_get0_cert"
26360 if test "x$ac_cv_func_X509_STORE_CTX_get0_cert" = xyes
26361 then :
26362 printf "%s\n" "#define HAVE_X509_STORE_CTX_GET0_CERT 1" >>confdefs.h
26363
26364 fi
26365 ac_fn_c_check_func "$LINENO" "ASN1_STRING_get0_data" "ac_cv_func_ASN1_STRING_get0_data"
26366 if test "x$ac_cv_func_ASN1_STRING_get0_data" = xyes
26367 then :
26368 printf "%s\n" "#define HAVE_ASN1_STRING_GET0_DATA 1" >>confdefs.h
26369
26370 fi
26371 ac_fn_c_check_func "$LINENO" "SSL_CTX_get0_certificate" "ac_cv_func_SSL_CTX_get0_certificate"
26372 if test "x$ac_cv_func_SSL_CTX_get0_certificate" = xyes
26373 then :
26374 printf "%s\n" "#define HAVE_SSL_CTX_GET0_CERTIFICATE 1" >>confdefs.h
26375
26376 fi
26377 ac_fn_c_check_func "$LINENO" "SSL_CTX_set0_tmp_dh_pkey" "ac_cv_func_SSL_CTX_set0_tmp_dh_pkey"
26378 if test "x$ac_cv_func_SSL_CTX_set0_tmp_dh_pkey" = xyes
26379 then :
26380 printf "%s\n" "#define HAVE_SSL_CTX_SET0_TMP_DH_PKEY 1" >>confdefs.h
26381
26382 fi
26383 ac_fn_c_check_func "$LINENO" "TLS_method" "ac_cv_func_TLS_method"
26384 if test "x$ac_cv_func_TLS_method" = xyes
26385 then :
26386 printf "%s\n" "#define HAVE_TLS_METHOD 1" >>confdefs.h
26387
26388 fi
26389
26390 # SSL_CTX_set_min_proto_version may be a macro
26391 ac_fn_check_decl "$LINENO" "SSL_CTX_set_min_proto_version" "ac_cv_have_decl_SSL_CTX_set_min_proto_version" "
26392 $ac_includes_default
26393 #include <openssl/ssl.h>
26394
26395 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26396 if test "x$ac_cv_have_decl_SSL_CTX_set_min_proto_version" = xyes
26397 then :
26398 printf "%s\n" "#define HAVE_SSL_CTX_SET_MIN_PROTO_VERSION 1" >>confdefs.h
26399
26400 fi
26401
26402 for ac_func in SSL_read_ex
26403 do :
26404 ac_fn_c_check_func "$LINENO" "SSL_read_ex" "ac_cv_func_SSL_read_ex"
26405 if test "x$ac_cv_func_SSL_read_ex" = xyes
26406 then :
26407 printf "%s\n" "#define HAVE_SSL_READ_EX 1" >>confdefs.h
26408
26409 else case e in #(
26410 e)
26411 SSL_COMPAT_SRC=lib/ssl_compat
26412 ;;
26413 esac
26414 fi
26415
26416 done
26417 # LibreSSL TLS 1.3 support may not be enabled, check for declaration too.
26418 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_func_SSL_CTX_set_ciphersuites"
26419 if test "x$ac_cv_func_SSL_CTX_set_ciphersuites" = xyes
26420 then :
26421
26422 ac_fn_check_decl "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_have_decl_SSL_CTX_set_ciphersuites" "
26423 $ac_includes_default
26424 #include <openssl/ssl.h>
26425
26426 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26427 if test "x$ac_cv_have_decl_SSL_CTX_set_ciphersuites" = xyes
26428 then :
26429 printf "%s\n" "#define HAVE_SSL_CTX_SET_CIPHERSUITES 1" >>confdefs.h
26430
26431 fi
26432
26433 fi
26434
26435 LIBS="$OLIBS"
26436 elif test "${enable_wolfssl-no}" != no; then
26437 # Check for OpenSSL compatibility functions in wolfSSL.
26438 # Use pkg-config to find the wolfssl cflags and libs if possible.
26439 if test "$enable_wolfssl" != "yes"; then
26440 PKG_CONFIG_LIBDIR="${enable_wolfssl}/lib/pkgconfig:${enable_wolfssl}/lib64/pkgconfig:${enable_wolfssl}/share/pkgconfig"
26441 export PKG_CONFIG_LIBDIR
26442 elif test "$cross_compiling" = "yes" -a -z "$PKG_CONFIG"; then
26443 # Cannot use pkg-config when cross-compiling
26444 PKG_CONFIG=false
26445 fi
26446 : ${PKG_CONFIG='pkg-config'}
26447 if $PKG_CONFIG --exists wolfssl >/dev/null 2>&1; then
26448 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
26449
26450 printf "%s\n" "#define HAVE_WOLFSSL 1" >>confdefs.h
26451
26452
26453 O_CPPFLAGS="$CPPFLAGS"
26454 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags-only-I wolfssl`"
26455 O_LDFLAGS="$LDFLAGS"
26456 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs-only-L wolfssl`"
26457
26458 # Check whether --static is needed
26459 libssl="`$PKG_CONFIG --libs-only-l wolfssl | sed 's/^ *-l//'`"
26460 libssl_extra=`echo $libssl | sed 's/^[^ ]* *//'`
26461 libssl=`echo $libssl | sed 's/ .*//'`
26462 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libssl""_wolfSSL_new$libssl_extra" | sed "$as_sed_sh"`
26463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_new in -l$libssl" >&5
26464 printf %s "checking for wolfSSL_new in -l$libssl... " >&6; }
26465 if eval test \${$as_ac_Lib+y}
26466 then :
26467 printf %s "(cached) " >&6
26468 else case e in #(
26469 e) ac_check_lib_save_LIBS=$LIBS
26470 LIBS="-l$libssl $libssl_extra $LIBS"
26471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26472 /* end confdefs.h. */
26473
26474 /* Override any GCC internal prototype to avoid an error.
26475 Use char because int might match the return type of a GCC
26476 builtin and then its argument prototype would still apply.
26477 The 'extern "C"' is for builds by C++ compilers;
26478 although this is not generally supported in C code supporting it here
26479 has little cost and some practical benefit (sr 110532). */
26480 #ifdef __cplusplus
26481 extern "C"
26482 #endif
26483 char wolfSSL_new (void);
26484 int
26485 main (void)
26486 {
26487 return wolfSSL_new ();
26488 ;
26489 return 0;
26490 }
26491 _ACEOF
26492 if ac_fn_c_try_link "$LINENO"
26493 then :
26494 eval "$as_ac_Lib=yes"
26495 else case e in #(
26496 e) eval "$as_ac_Lib=no" ;;
26497 esac
26498 fi
26499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26500 conftest$ac_exeext conftest.$ac_ext
26501 LIBS=$ac_check_lib_save_LIBS ;;
26502 esac
26503 fi
26504 eval ac_res=\$$as_ac_Lib
26505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26506 printf "%s\n" "$ac_res" >&6; }
26507 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
26508 then :
26509 STATIC=""
26510 else case e in #(
26511 e) STATIC="--static" ;;
26512 esac
26513 fi
26514
26515
26516 # Use wolfSSL's sha2 functions if possible
26517 ac_fn_check_decl "$LINENO" "EVP_MD_CTX_new" "ac_cv_have_decl_EVP_MD_CTX_new" "
26518 $ac_includes_default
26519 #include <wolfssl/options.h>
26520 #include <wolfssl/openssl/evp.h>
26521
26522 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26523 if test "x$ac_cv_have_decl_EVP_MD_CTX_new" = xyes
26524 then :
26525 DIGEST=digest_openssl.lo
26526 fi
26527 CPPFLAGS="$O_CPPFLAGS"
26528 LDFLAGS="$O_LDFLAGS"
26529
26530 # Use pkg-config to determine wolfSSL libs and cflags
26531 for f in `$PKG_CONFIG $STATIC --libs wolfssl`; do
26532 case "$f" in
26533 -L*)
26534 f="${f#-L}"
26535
26536
26537 if test ${LIBTLS+y}
26538 then :
26539
26540 case " $LIBTLS " in #(
26541 *" -L$f "*) :
26542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS already contains -L\$f"; } >&5
26543 (: LIBTLS already contains -L$f) 2>&5
26544 ac_status=$?
26545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26546 test $ac_status = 0; } ;; #(
26547 *) :
26548
26549 as_fn_append LIBTLS " -L$f"
26550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS=\"\$LIBTLS\""; } >&5
26551 (: LIBTLS="$LIBTLS") 2>&5
26552 ac_status=$?
26553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26554 test $ac_status = 0; }
26555 ;;
26556 esac
26557
26558 else case e in #(
26559 e)
26560 LIBTLS=-L$f
26561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS=\"\$LIBTLS\""; } >&5
26562 (: LIBTLS="$LIBTLS") 2>&5
26563 ac_status=$?
26564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26565 test $ac_status = 0; }
26566 ;;
26567 esac
26568 fi
26569
26570 if test X"$enable_rpath" = X"yes"; then
26571
26572 if test ${LIBTLS_R+y}
26573 then :
26574
26575 case " $LIBTLS_R " in #(
26576 *" -R$f "*) :
26577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R already contains -R\$f"; } >&5
26578 (: LIBTLS_R already contains -R$f) 2>&5
26579 ac_status=$?
26580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26581 test $ac_status = 0; } ;; #(
26582 *) :
26583
26584 as_fn_append LIBTLS_R " -R$f"
26585 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R=\"\$LIBTLS_R\""; } >&5
26586 (: LIBTLS_R="$LIBTLS_R") 2>&5
26587 ac_status=$?
26588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26589 test $ac_status = 0; }
26590 ;;
26591 esac
26592
26593 else case e in #(
26594 e)
26595 LIBTLS_R=-R$f
26596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R=\"\$LIBTLS_R\""; } >&5
26597 (: LIBTLS_R="$LIBTLS_R") 2>&5
26598 ac_status=$?
26599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26600 test $ac_status = 0; }
26601 ;;
26602 esac
26603 fi
26604
26605 fi
26606
26607 ;;
26608 *)
26609
26610 if test ${LIBTLS+y}
26611 then :
26612
26613 case " $LIBTLS " in #(
26614 *" $f "*) :
26615 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS already contains \$f"; } >&5
26616 (: LIBTLS already contains $f) 2>&5
26617 ac_status=$?
26618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26619 test $ac_status = 0; } ;; #(
26620 *) :
26621
26622 as_fn_append LIBTLS " $f"
26623 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS=\"\$LIBTLS\""; } >&5
26624 (: LIBTLS="$LIBTLS") 2>&5
26625 ac_status=$?
26626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26627 test $ac_status = 0; }
26628 ;;
26629 esac
26630
26631 else case e in #(
26632 e)
26633 LIBTLS=$f
26634 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS=\"\$LIBTLS\""; } >&5
26635 (: LIBTLS="$LIBTLS") 2>&5
26636 ac_status=$?
26637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26638 test $ac_status = 0; }
26639 ;;
26640 esac
26641 fi
26642
26643 ;;
26644 esac
26645 done
26646 # No separate pkg config for libcrypto
26647 LIBCRYPTO="$LIBTLS"
26648 LIBCRYPTO_R="$LIBTLS_R"
26649 for f in `$PKG_CONFIG --cflags-only-I wolfssl`; do
26650
26651 if test ${CPPFLAGS+y}
26652 then :
26653
26654 case " $CPPFLAGS " in #(
26655 *" $f "*) :
26656 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains \$f"; } >&5
26657 (: CPPFLAGS already contains $f) 2>&5
26658 ac_status=$?
26659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26660 test $ac_status = 0; } ;; #(
26661 *) :
26662
26663 as_fn_append CPPFLAGS " $f"
26664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26665 (: CPPFLAGS="$CPPFLAGS") 2>&5
26666 ac_status=$?
26667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26668 test $ac_status = 0; }
26669 ;;
26670 esac
26671
26672 else case e in #(
26673 e)
26674 CPPFLAGS=$f
26675 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26676 (: CPPFLAGS="$CPPFLAGS") 2>&5
26677 ac_status=$?
26678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26679 test $ac_status = 0; }
26680 ;;
26681 esac
26682 fi
26683
26684 # So we find the openssl compat headers under wolfssl
26685
26686 if test ${CPPFLAGS+y}
26687 then :
26688
26689 case " $CPPFLAGS " in #(
26690 *" $f/wolfssl "*) :
26691 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains \$f/wolfssl"; } >&5
26692 (: CPPFLAGS already contains $f/wolfssl) 2>&5
26693 ac_status=$?
26694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26695 test $ac_status = 0; } ;; #(
26696 *) :
26697
26698 as_fn_append CPPFLAGS " $f/wolfssl"
26699 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26700 (: CPPFLAGS="$CPPFLAGS") 2>&5
26701 ac_status=$?
26702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26703 test $ac_status = 0; }
26704 ;;
26705 esac
26706
26707 else case e in #(
26708 e)
26709 CPPFLAGS=$f/wolfssl
26710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26711 (: CPPFLAGS="$CPPFLAGS") 2>&5
26712 ac_status=$?
26713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26714 test $ac_status = 0; }
26715 ;;
26716 esac
26717 fi
26718
26719 done
26720 if test "$cross_compiling" != "yes" -a "$CPPFLAGS" = "$O_CPPFLAGS"; then
26721 # So we find the openssl compat headers under wolfssl (XXX)
26722
26723 if test ${CPPFLAGS+y}
26724 then :
26725
26726 case " $CPPFLAGS " in #(
26727 *" -I/usr/include/wolfssl "*) :
26728 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I/usr/include/wolfssl"; } >&5
26729 (: CPPFLAGS already contains -I/usr/include/wolfssl) 2>&5
26730 ac_status=$?
26731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; } ;; #(
26733 *) :
26734
26735 as_fn_append CPPFLAGS " -I/usr/include/wolfssl"
26736 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26737 (: CPPFLAGS="$CPPFLAGS") 2>&5
26738 ac_status=$?
26739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26740 test $ac_status = 0; }
26741 ;;
26742 esac
26743
26744 else case e in #(
26745 e)
26746 CPPFLAGS=-I/usr/include/wolfssl
26747 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26748 (: CPPFLAGS="$CPPFLAGS") 2>&5
26749 ac_status=$?
26750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26751 test $ac_status = 0; }
26752 ;;
26753 esac
26754 fi
26755
26756 fi
26757 else
26758 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
26759
26760 printf "%s\n" "#define HAVE_WOLFSSL 1" >>confdefs.h
26761
26762
26763 # No pkg-config file present, try to do it manually
26764 if test "$enable_wolfssl" != "yes"; then
26765
26766
26767 if test ${LIBCRYPTO+y}
26768 then :
26769
26770 case " $LIBCRYPTO " in #(
26771 *" -L${enable_wolfssl}/lib "*) :
26772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO already contains -L\${enable_wolfssl}/lib"; } >&5
26773 (: LIBCRYPTO already contains -L${enable_wolfssl}/lib) 2>&5
26774 ac_status=$?
26775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26776 test $ac_status = 0; } ;; #(
26777 *) :
26778
26779 as_fn_append LIBCRYPTO " -L${enable_wolfssl}/lib"
26780 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO=\"\$LIBCRYPTO\""; } >&5
26781 (: LIBCRYPTO="$LIBCRYPTO") 2>&5
26782 ac_status=$?
26783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26784 test $ac_status = 0; }
26785 ;;
26786 esac
26787
26788 else case e in #(
26789 e)
26790 LIBCRYPTO=-L${enable_wolfssl}/lib
26791 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO=\"\$LIBCRYPTO\""; } >&5
26792 (: LIBCRYPTO="$LIBCRYPTO") 2>&5
26793 ac_status=$?
26794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26795 test $ac_status = 0; }
26796 ;;
26797 esac
26798 fi
26799
26800 if test X"$enable_rpath" = X"yes"; then
26801
26802 if test ${LIBCRYPTO_R+y}
26803 then :
26804
26805 case " $LIBCRYPTO_R " in #(
26806 *" -R${enable_wolfssl}/lib "*) :
26807 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO_R already contains -R\${enable_wolfssl}/lib"; } >&5
26808 (: LIBCRYPTO_R already contains -R${enable_wolfssl}/lib) 2>&5
26809 ac_status=$?
26810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26811 test $ac_status = 0; } ;; #(
26812 *) :
26813
26814 as_fn_append LIBCRYPTO_R " -R${enable_wolfssl}/lib"
26815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO_R=\"\$LIBCRYPTO_R\""; } >&5
26816 (: LIBCRYPTO_R="$LIBCRYPTO_R") 2>&5
26817 ac_status=$?
26818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26819 test $ac_status = 0; }
26820 ;;
26821 esac
26822
26823 else case e in #(
26824 e)
26825 LIBCRYPTO_R=-R${enable_wolfssl}/lib
26826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBCRYPTO_R=\"\$LIBCRYPTO_R\""; } >&5
26827 (: LIBCRYPTO_R="$LIBCRYPTO_R") 2>&5
26828 ac_status=$?
26829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26830 test $ac_status = 0; }
26831 ;;
26832 esac
26833 fi
26834
26835 fi
26836
26837
26838
26839 if test ${LIBTLS+y}
26840 then :
26841
26842 case " $LIBTLS " in #(
26843 *" -L${enable_wolfssl}/lib "*) :
26844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS already contains -L\${enable_wolfssl}/lib"; } >&5
26845 (: LIBTLS already contains -L${enable_wolfssl}/lib) 2>&5
26846 ac_status=$?
26847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26848 test $ac_status = 0; } ;; #(
26849 *) :
26850
26851 as_fn_append LIBTLS " -L${enable_wolfssl}/lib"
26852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS=\"\$LIBTLS\""; } >&5
26853 (: LIBTLS="$LIBTLS") 2>&5
26854 ac_status=$?
26855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26856 test $ac_status = 0; }
26857 ;;
26858 esac
26859
26860 else case e in #(
26861 e)
26862 LIBTLS=-L${enable_wolfssl}/lib
26863 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS=\"\$LIBTLS\""; } >&5
26864 (: LIBTLS="$LIBTLS") 2>&5
26865 ac_status=$?
26866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26867 test $ac_status = 0; }
26868 ;;
26869 esac
26870 fi
26871
26872 if test X"$enable_rpath" = X"yes"; then
26873
26874 if test ${LIBTLS_R+y}
26875 then :
26876
26877 case " $LIBTLS_R " in #(
26878 *" -R${enable_wolfssl}/lib "*) :
26879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R already contains -R\${enable_wolfssl}/lib"; } >&5
26880 (: LIBTLS_R already contains -R${enable_wolfssl}/lib) 2>&5
26881 ac_status=$?
26882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26883 test $ac_status = 0; } ;; #(
26884 *) :
26885
26886 as_fn_append LIBTLS_R " -R${enable_wolfssl}/lib"
26887 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R=\"\$LIBTLS_R\""; } >&5
26888 (: LIBTLS_R="$LIBTLS_R") 2>&5
26889 ac_status=$?
26890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26891 test $ac_status = 0; }
26892 ;;
26893 esac
26894
26895 else case e in #(
26896 e)
26897 LIBTLS_R=-R${enable_wolfssl}/lib
26898 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBTLS_R=\"\$LIBTLS_R\""; } >&5
26899 (: LIBTLS_R="$LIBTLS_R") 2>&5
26900 ac_status=$?
26901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26902 test $ac_status = 0; }
26903 ;;
26904 esac
26905 fi
26906
26907 fi
26908
26909
26910 if test ${CPPFLAGS+y}
26911 then :
26912
26913 case " $CPPFLAGS " in #(
26914 *" -I${enable_wolfssl}/include "*) :
26915 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${enable_wolfssl}/include"; } >&5
26916 (: CPPFLAGS already contains -I${enable_wolfssl}/include) 2>&5
26917 ac_status=$?
26918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26919 test $ac_status = 0; } ;; #(
26920 *) :
26921
26922 as_fn_append CPPFLAGS " -I${enable_wolfssl}/include"
26923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26924 (: CPPFLAGS="$CPPFLAGS") 2>&5
26925 ac_status=$?
26926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26927 test $ac_status = 0; }
26928 ;;
26929 esac
26930
26931 else case e in #(
26932 e)
26933 CPPFLAGS=-I${enable_wolfssl}/include
26934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26935 (: CPPFLAGS="$CPPFLAGS") 2>&5
26936 ac_status=$?
26937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26938 test $ac_status = 0; }
26939 ;;
26940 esac
26941 fi
26942
26943 # So we find the openssl compat headers under wolfssl
26944
26945 if test ${CPPFLAGS+y}
26946 then :
26947
26948 case " $CPPFLAGS " in #(
26949 *" -I${enable_wolfssl}/include/wolfssl "*) :
26950 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${enable_wolfssl}/include/wolfssl"; } >&5
26951 (: CPPFLAGS already contains -I${enable_wolfssl}/include/wolfssl) 2>&5
26952 ac_status=$?
26953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26954 test $ac_status = 0; } ;; #(
26955 *) :
26956
26957 as_fn_append CPPFLAGS " -I${enable_wolfssl}/include/wolfssl"
26958 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26959 (: CPPFLAGS="$CPPFLAGS") 2>&5
26960 ac_status=$?
26961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26962 test $ac_status = 0; }
26963 ;;
26964 esac
26965
26966 else case e in #(
26967 e)
26968 CPPFLAGS=-I${enable_wolfssl}/include/wolfssl
26969 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26970 (: CPPFLAGS="$CPPFLAGS") 2>&5
26971 ac_status=$?
26972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26973 test $ac_status = 0; }
26974 ;;
26975 esac
26976 fi
26977
26978 else
26979 # So we find the openssl compat headers under wolfssl (XXX)
26980
26981 if test ${CPPFLAGS+y}
26982 then :
26983
26984 case " $CPPFLAGS " in #(
26985 *" -I/usr/include/wolfssl "*) :
26986 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I/usr/include/wolfssl"; } >&5
26987 (: CPPFLAGS already contains -I/usr/include/wolfssl) 2>&5
26988 ac_status=$?
26989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26990 test $ac_status = 0; } ;; #(
26991 *) :
26992
26993 as_fn_append CPPFLAGS " -I/usr/include/wolfssl"
26994 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
26995 (: CPPFLAGS="$CPPFLAGS") 2>&5
26996 ac_status=$?
26997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26998 test $ac_status = 0; }
26999 ;;
27000 esac
27001
27002 else case e in #(
27003 e)
27004 CPPFLAGS=-I/usr/include/wolfssl
27005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
27006 (: CPPFLAGS="$CPPFLAGS") 2>&5
27007 ac_status=$?
27008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27009 test $ac_status = 0; }
27010 ;;
27011 esac
27012 fi
27013
27014 fi
27015 LIBTLS="${LIBTLS} -lwolfssl"
27016 LIBCRYPTO="${LIBCRYPTO} -lwolfssl"
27017
27018 # Use wolfSSL's sha2 functions if possible
27019 ac_fn_check_decl "$LINENO" "EVP_MD_CTX_new" "ac_cv_have_decl_EVP_MD_CTX_new" "
27020 $ac_includes_default
27021 #include <wolfssl/options.h>
27022 #include <wolfssl/openssl/evp.h>
27023
27024 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27025 if test "x$ac_cv_have_decl_EVP_MD_CTX_new" = xyes
27026 then :
27027 DIGEST=digest_openssl.lo
27028 fi
27029 fi
27030 ac_fn_check_decl "$LINENO" "X509_STORE_CTX_get0_cert" "ac_cv_have_decl_X509_STORE_CTX_get0_cert" "
27031 $ac_includes_default
27032 #include <wolfssl/options.h>
27033 #include <wolfssl/openssl/x509.h>
27034
27035 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27036 if test "x$ac_cv_have_decl_X509_STORE_CTX_get0_cert" = xyes
27037 then :
27038 printf "%s\n" "#define HAVE_X509_STORE_CTX_GET0_CERT 1" >>confdefs.h
27039
27040 fi
27041 ac_fn_check_decl "$LINENO" "ASN1_STRING_get0_data" "ac_cv_have_decl_ASN1_STRING_get0_data" "
27042 $ac_includes_default
27043 #include <wolfssl/options.h>
27044 #include <wolfssl/openssl/asn1.h>
27045
27046 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27047 if test "x$ac_cv_have_decl_ASN1_STRING_get0_data" = xyes
27048 then :
27049 printf "%s\n" "#define HAVE_ASN1_STRING_GET0_DATA 1" >>confdefs.h
27050
27051 fi
27052 ac_fn_check_decl "$LINENO" "SSL_CTX_get0_certificate" "ac_cv_have_decl_SSL_CTX_get0_certificate" "
27053 $ac_includes_default
27054 #include <wolfssl/options.h>
27055 #include <wolfssl/openssl/ssl.h>
27056
27057 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27058 if test "x$ac_cv_have_decl_SSL_CTX_get0_certificate" = xyes
27059 then :
27060 printf "%s\n" "#define HAVE_SSL_CTX_GET0_CERTIFICATE 1" >>confdefs.h
27061
27062 fi
27063 ac_fn_check_decl "$LINENO" "SSL_CTX_set0_tmp_dh_pkey" "ac_cv_have_decl_SSL_CTX_set0_tmp_dh_pkey" "
27064 $ac_includes_default
27065 #include <wolfssl/options.h>
27066 #include <wolfssl/openssl/ssl.h>
27067
27068 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27069 if test "x$ac_cv_have_decl_SSL_CTX_set0_tmp_dh_pkey" = xyes
27070 then :
27071 printf "%s\n" "#define HAVE_SSL_CTX_SET0_TMP_DH_PKEY 1" >>confdefs.h
27072
27073 fi
27074 ac_fn_check_decl "$LINENO" "TLS_method" "ac_cv_have_decl_TLS_method" "
27075 $ac_includes_default
27076 #include <wolfssl/options.h>
27077 #include <wolfssl/openssl/ssl.h>
27078
27079 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27080 if test "x$ac_cv_have_decl_TLS_method" = xyes
27081 then :
27082 printf "%s\n" "#define HAVE_TLS_METHOD 1" >>confdefs.h
27083
27084 fi
27085 ac_fn_check_decl "$LINENO" "SSL_CTX_set_min_proto_version" "ac_cv_have_decl_SSL_CTX_set_min_proto_version" "
27086 $ac_includes_default
27087 #include <wolfssl/options.h>
27088 #include <wolfssl/openssl/ssl.h>
27089
27090 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27091 if test "x$ac_cv_have_decl_SSL_CTX_set_min_proto_version" = xyes
27092 then :
27093 printf "%s\n" "#define HAVE_SSL_CTX_SET_MIN_PROTO_VERSION 1" >>confdefs.h
27094
27095 fi
27096 ac_fn_check_decl "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_have_decl_SSL_CTX_set_ciphersuites" "
27097 $ac_includes_default
27098 #include <wolfssl/options.h>
27099 #include <wolfssl/openssl/ssl.h>
27100
27101 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27102 if test "x$ac_cv_have_decl_SSL_CTX_set_ciphersuites" = xyes
27103 then :
27104 printf "%s\n" "#define HAVE_SSL_CTX_SET_CIPHERSUITES 1" >>confdefs.h
27105
27106 fi
27107 ac_fn_check_decl "$LINENO" "SSL_read_ex" "ac_cv_have_decl_SSL_read_ex" "
27108 $ac_includes_default
27109 #include <wolfssl/options.h>
27110 #include <wolfssl/openssl/ssl.h>
27111
27112 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27113 if test "x$ac_cv_have_decl_SSL_read_ex" = xyes
27114 then :
27115 printf "%s\n" "#define HAVE_SSL_READ_EX 1" >>confdefs.h
27116
27117 else case e in #(
27118 e)
27119 SSL_COMPAT_SRC=lib/ssl_compat
27120 ;;
27121 esac
27122 fi
27123 fi
27124 if test -n "$SSL_COMPAT_SRC"; then
27125 LIBTLS='$(top_builddir)/lib/ssl_compat/libssl_compat.la '"${LIBTLS}"
27126 fi
27127
27128
27129 if test "$DIGEST" = "digest.lo"
27130 then :
27131
27132 if test "${enable_gcrypt-no}" != no
27133 then :
27134
27135 # Use gcrypt's sha2 functions
27136 printf "%s\n" "#define HAVE_GCRYPT 1" >>confdefs.h
27137
27138 DIGEST=digest_gcrypt.lo
27139 LIBCRYPTO="-lgcrypt"
27140 if test "$enable_gcrypt" != "yes"
27141 then :
27142
27143
27144 if test ${CPPFLAGS+y}
27145 then :
27146
27147 case " $CPPFLAGS " in #(
27148 *" -I${enable_gcrypt}/include "*) :
27149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${enable_gcrypt}/include"; } >&5
27150 (: CPPFLAGS already contains -I${enable_gcrypt}/include) 2>&5
27151 ac_status=$?
27152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27153 test $ac_status = 0; } ;; #(
27154 *) :
27155
27156 as_fn_append CPPFLAGS " -I${enable_gcrypt}/include"
27157 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
27158 (: CPPFLAGS="$CPPFLAGS") 2>&5
27159 ac_status=$?
27160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27161 test $ac_status = 0; }
27162 ;;
27163 esac
27164
27165 else case e in #(
27166 e)
27167 CPPFLAGS=-I${enable_gcrypt}/include
27168 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
27169 (: CPPFLAGS="$CPPFLAGS") 2>&5
27170 ac_status=$?
27171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27172 test $ac_status = 0; }
27173 ;;
27174 esac
27175 fi
27176
27177
27178
27179 if test ${LDFLAGS+y}
27180 then :
27181
27182 case " $LDFLAGS " in #(
27183 *" -L${enable_gcrypt}/lib "*) :
27184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains -L\${enable_gcrypt}/lib"; } >&5
27185 (: LDFLAGS already contains -L${enable_gcrypt}/lib) 2>&5
27186 ac_status=$?
27187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27188 test $ac_status = 0; } ;; #(
27189 *) :
27190
27191 as_fn_append LDFLAGS " -L${enable_gcrypt}/lib"
27192 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
27193 (: LDFLAGS="$LDFLAGS") 2>&5
27194 ac_status=$?
27195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27196 test $ac_status = 0; }
27197 ;;
27198 esac
27199
27200 else case e in #(
27201 e)
27202 LDFLAGS=-L${enable_gcrypt}/lib
27203 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
27204 (: LDFLAGS="$LDFLAGS") 2>&5
27205 ac_status=$?
27206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27207 test $ac_status = 0; }
27208 ;;
27209 esac
27210 fi
27211
27212 if test X"$enable_rpath" = X"yes"; then
27213
27214 if test ${LDFLAGS_R+y}
27215 then :
27216
27217 case " $LDFLAGS_R " in #(
27218 *" -R${enable_gcrypt}/lib "*) :
27219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R already contains -R\${enable_gcrypt}/lib"; } >&5
27220 (: LDFLAGS_R already contains -R${enable_gcrypt}/lib) 2>&5
27221 ac_status=$?
27222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27223 test $ac_status = 0; } ;; #(
27224 *) :
27225
27226 as_fn_append LDFLAGS_R " -R${enable_gcrypt}/lib"
27227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R=\"\$LDFLAGS_R\""; } >&5
27228 (: LDFLAGS_R="$LDFLAGS_R") 2>&5
27229 ac_status=$?
27230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27231 test $ac_status = 0; }
27232 ;;
27233 esac
27234
27235 else case e in #(
27236 e)
27237 LDFLAGS_R=-R${enable_gcrypt}/lib
27238 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R=\"\$LDFLAGS_R\""; } >&5
27239 (: LDFLAGS_R="$LDFLAGS_R") 2>&5
27240 ac_status=$?
27241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27242 test $ac_status = 0; }
27243 ;;
27244 esac
27245 fi
27246
27247 fi
27248
27249
27250 fi
27251
27252 else case e in #(
27253 e)
27254 # Use sudo's sha2 functions if not in libmd or libc.
27255 FOUND_SHA2=no
27256 ac_fn_c_check_header_compile "$LINENO" "sha2.h" "ac_cv_header_sha2_h" "$ac_includes_default"
27257 if test "x$ac_cv_header_sha2_h" = xyes
27258 then :
27259
27260 FOUND_SHA2=yes
27261
27262 for ac_func in SHA224Update
27263 do :
27264 ac_fn_c_check_func "$LINENO" "SHA224Update" "ac_cv_func_SHA224Update"
27265 if test "x$ac_cv_func_SHA224Update" = xyes
27266 then :
27267 printf "%s\n" "#define HAVE_SHA224UPDATE 1" >>confdefs.h
27268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the data argument of SHA224Update() is void *" >&5
27269 printf %s "checking whether the data argument of SHA224Update() is void *... " >&6; }
27270 if test ${sudo_cv_func_sha2_void_ptr+y}
27271 then :
27272 printf %s "(cached) " >&6
27273 else case e in #(
27274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27275 /* end confdefs.h. */
27276 $ac_includes_default
27277 #include <sha2.h>
27278 void SHA224Update(SHA2_CTX *context, const void *data, size_t len) {return;}
27279 int
27280 main (void)
27281 {
27282
27283 ;
27284 return 0;
27285 }
27286 _ACEOF
27287 if ac_fn_c_try_compile "$LINENO"
27288 then :
27289 sudo_cv_func_sha2_void_ptr=yes
27290 else case e in #(
27291 e) sudo_cv_func_sha2_void_ptr=no ;;
27292 esac
27293 fi
27294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27295 ;;
27296 esac
27297 fi
27298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_sha2_void_ptr" >&5
27299 printf "%s\n" "$sudo_cv_func_sha2_void_ptr" >&6; }
27300 if test $sudo_cv_func_sha2_void_ptr = yes; then
27301
27302 printf "%s\n" "#define SHA2_VOID_PTR 1" >>confdefs.h
27303
27304 fi
27305
27306 else case e in #(
27307 e)
27308 # On some systems, SHA224Update is in libmd
27309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA224Update in -lmd" >&5
27310 printf %s "checking for SHA224Update in -lmd... " >&6; }
27311 if test ${ac_cv_lib_md_SHA224Update+y}
27312 then :
27313 printf %s "(cached) " >&6
27314 else case e in #(
27315 e) ac_check_lib_save_LIBS=$LIBS
27316 LIBS="-lmd $LIBS"
27317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27318 /* end confdefs.h. */
27319
27320 /* Override any GCC internal prototype to avoid an error.
27321 Use char because int might match the return type of a GCC
27322 builtin and then its argument prototype would still apply.
27323 The 'extern "C"' is for builds by C++ compilers;
27324 although this is not generally supported in C code supporting it here
27325 has little cost and some practical benefit (sr 110532). */
27326 #ifdef __cplusplus
27327 extern "C"
27328 #endif
27329 char SHA224Update (void);
27330 int
27331 main (void)
27332 {
27333 return SHA224Update ();
27334 ;
27335 return 0;
27336 }
27337 _ACEOF
27338 if ac_fn_c_try_link "$LINENO"
27339 then :
27340 ac_cv_lib_md_SHA224Update=yes
27341 else case e in #(
27342 e) ac_cv_lib_md_SHA224Update=no ;;
27343 esac
27344 fi
27345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27346 conftest$ac_exeext conftest.$ac_ext
27347 LIBS=$ac_check_lib_save_LIBS ;;
27348 esac
27349 fi
27350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA224Update" >&5
27351 printf "%s\n" "$ac_cv_lib_md_SHA224Update" >&6; }
27352 if test "x$ac_cv_lib_md_SHA224Update" = xyes
27353 then :
27354
27355 printf "%s\n" "#define HAVE_SHA224UPDATE 1" >>confdefs.h
27356
27357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the data argument of SHA224Update() is void *" >&5
27358 printf %s "checking whether the data argument of SHA224Update() is void *... " >&6; }
27359 if test ${sudo_cv_func_sha2_void_ptr+y}
27360 then :
27361 printf %s "(cached) " >&6
27362 else case e in #(
27363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27364 /* end confdefs.h. */
27365 $ac_includes_default
27366 #include <sha2.h>
27367 void SHA224Update(SHA2_CTX *context, const void *data, size_t len) {return;}
27368 int
27369 main (void)
27370 {
27371
27372 ;
27373 return 0;
27374 }
27375 _ACEOF
27376 if ac_fn_c_try_compile "$LINENO"
27377 then :
27378 sudo_cv_func_sha2_void_ptr=yes
27379 else case e in #(
27380 e) sudo_cv_func_sha2_void_ptr=no ;;
27381 esac
27382 fi
27383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27384 ;;
27385 esac
27386 fi
27387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_sha2_void_ptr" >&5
27388 printf "%s\n" "$sudo_cv_func_sha2_void_ptr" >&6; }
27389 if test $sudo_cv_func_sha2_void_ptr = yes; then
27390
27391 printf "%s\n" "#define SHA2_VOID_PTR 1" >>confdefs.h
27392
27393 fi
27394
27395 LIBCRYPTO="-lmd"
27396
27397 else case e in #(
27398 e)
27399 # Does not have SHA224Update
27400 FOUND_SHA2=no
27401 ;;
27402 esac
27403 fi
27404
27405 ;;
27406 esac
27407 fi
27408
27409 done
27410
27411 fi
27412
27413 if test X"$FOUND_SHA2" = X"no"
27414 then :
27415
27416 case " $LIBOBJS " in
27417 *" sha2.$ac_objext "* ) ;;
27418 *) LIBOBJS="$LIBOBJS sha2.$ac_objext"
27419 ;;
27420 esac
27421
27422
27423 for _sym in sudo_SHA224Final sudo_SHA224Init sudo_SHA224Pad sudo_SHA224Transform sudo_SHA224Update sudo_SHA256Final sudo_SHA256Init sudo_SHA256Pad sudo_SHA256Transform sudo_SHA256Update sudo_SHA384Final sudo_SHA384Init sudo_SHA384Pad sudo_SHA384Transform sudo_SHA384Update sudo_SHA512Final sudo_SHA512Init sudo_SHA512Pad sudo_SHA512Transform sudo_SHA512Update; do
27424 COMPAT_EXP="${COMPAT_EXP}${_sym}
27425 "
27426 done
27427
27428
27429 fi
27430 ;;
27431 esac
27432 fi
27433
27434 fi
27435
27436
27437 _LIBS="$LIBS"
27438 LIBS="${LIBS} ${NET_LIBS}"
27439 found=true
27440 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
27441 if test "x$ac_cv_func_socket" = xyes
27442 then :
27443
27444 else case e in #(
27445 e)
27446 # Look for socket in network libraries appending to NET_LIBS as needed.
27447 # May need to link with -lnsl and -lsocket due to unresolved symbols
27448 found=false
27449 for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
27450 _libs=
27451 for lib in $libs; do
27452 case "$NET_LIBS" in
27453 *"$lib"*) ;;
27454 *) _libs="$_libs $lib";;
27455 esac
27456 done
27457 libs="${_libs# }"
27458 test -z "$libs" && continue
27459 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
27460 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
27461
27462 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
27463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
27464 printf %s "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
27465 if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval test \${$as_var+y}; }
27466 then :
27467 printf %s "(cached) " >&6
27468 else case e in #(
27469 e)
27470 SUDO_CHECK_LIB_OLIBS="$LIBS"
27471 LIBS="$LIBS -l$lib${5+ }$extralibs"
27472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27473 /* end confdefs.h. */
27474
27475 /* Override any GCC internal prototype to avoid an error.
27476 Use char because int might match the return type of a GCC
27477 builtin and then its argument prototype would still apply.
27478 The 'extern "C"' is for builds by C++ compilers;
27479 although this is not generally supported in C code supporting it here
27480 has little cost and some practical benefit (sr 110532). */
27481 #ifdef __cplusplus
27482 extern "C"
27483 #endif
27484 char socket (void);
27485 int
27486 main (void)
27487 {
27488 return socket ();
27489 ;
27490 return 0;
27491 }
27492 _ACEOF
27493 if ac_fn_c_try_link "$LINENO"
27494 then :
27495 eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
27496 else case e in #(
27497 e) eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
27498 ;;
27499 esac
27500 fi
27501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27502 conftest$ac_exeext conftest.$ac_ext
27503 LIBS="$SUDO_CHECK_LIB_OLIBS"
27504 ;;
27505 esac
27506 fi
27507
27508 if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
27509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27510 printf "%s\n" "yes" >&6; }
27511
27512 found=true
27513 NET_LIBS="${NET_LIBS}${NET_LIBS+ }$libs"
27514 INET_PTON_LIBS="$libs"
27515 case "$libs" in
27516 *-lresolv*)
27517 printf "%s\n" "#define NEED_RESOLV_H 1" >>confdefs.h
27518
27519 ;;
27520 esac
27521 break
27522
27523 else
27524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27525 printf "%s\n" "no" >&6; }
27526
27527 fi
27528
27529 done
27530 ;;
27531 esac
27532 fi
27533
27534 LIBS="$_LIBS"
27535 if test $found = true
27536 then :
27537
27538 fi
27539
27540
27541 ONET_LIBS="$NET_LIBS"
27542
27543 _LIBS="$LIBS"
27544 LIBS="${LIBS} ${NET_LIBS}"
27545 found=true
27546 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27547 if test "x$ac_cv_func_inet_pton" = xyes
27548 then :
27549
27550 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
27551
27552 INET_PTON_LIBS=
27553 for lib in $NET_LIBS; do
27554 case "$ONET_LIBS" in
27555 *"$lib"*) ;;
27556 *) INET_PTON_LIBS="${INET_PTON_LIBS}${INET_PTON_LIBS+ }$lib";;
27557 esac
27558 done
27559
27560 else case e in #(
27561 e)
27562 # Look for inet_pton in network libraries appending to NET_LIBS as needed.
27563 # May need to link with -lnsl and -lsocket due to unresolved symbols
27564 found=false
27565 for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
27566 _libs=
27567 for lib in $libs; do
27568 case "$NET_LIBS" in
27569 *"$lib"*) ;;
27570 *) _libs="$_libs $lib";;
27571 esac
27572 done
27573 libs="${_libs# }"
27574 test -z "$libs" && continue
27575 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
27576 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
27577
27578 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
27579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -l$lib${5+ }$extralibs" >&5
27580 printf %s "checking for inet_pton in -l$lib${5+ }$extralibs... " >&6; }
27581 if { as_var=sudo_cv_lib_$lib''_inet_pton$_sudo_check_lib_extras; eval test \${$as_var+y}; }
27582 then :
27583 printf %s "(cached) " >&6
27584 else case e in #(
27585 e)
27586 SUDO_CHECK_LIB_OLIBS="$LIBS"
27587 LIBS="$LIBS -l$lib${5+ }$extralibs"
27588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27589 /* end confdefs.h. */
27590
27591 /* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply.
27594 The 'extern "C"' is for builds by C++ compilers;
27595 although this is not generally supported in C code supporting it here
27596 has little cost and some practical benefit (sr 110532). */
27597 #ifdef __cplusplus
27598 extern "C"
27599 #endif
27600 char inet_pton (void);
27601 int
27602 main (void)
27603 {
27604 return inet_pton ();
27605 ;
27606 return 0;
27607 }
27608 _ACEOF
27609 if ac_fn_c_try_link "$LINENO"
27610 then :
27611 eval sudo_cv_lib_$lib''_inet_pton$_sudo_check_lib_extras=yes
27612 else case e in #(
27613 e) eval sudo_cv_lib_$lib''_inet_pton$_sudo_check_lib_extras=no
27614 ;;
27615 esac
27616 fi
27617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27618 conftest$ac_exeext conftest.$ac_ext
27619 LIBS="$SUDO_CHECK_LIB_OLIBS"
27620 ;;
27621 esac
27622 fi
27623
27624 if eval test \$sudo_cv_lib_$lib''_inet_pton$_sudo_check_lib_extras = "yes"; then
27625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27626 printf "%s\n" "yes" >&6; }
27627
27628 found=true
27629 NET_LIBS="${NET_LIBS}${NET_LIBS+ }$libs"
27630 INET_PTON_LIBS="$libs"
27631 case "$libs" in
27632 *-lresolv*)
27633 printf "%s\n" "#define NEED_RESOLV_H 1" >>confdefs.h
27634
27635 ;;
27636 esac
27637 break
27638
27639 else
27640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27641 printf "%s\n" "no" >&6; }
27642
27643 fi
27644
27645 done
27646 ;;
27647 esac
27648 fi
27649
27650 LIBS="$_LIBS"
27651 if test $found = true
27652 then :
27653
27654 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
27655
27656 INET_PTON_LIBS=
27657 for lib in $NET_LIBS; do
27658 case "$ONET_LIBS" in
27659 *"$lib"*) ;;
27660 *) INET_PTON_LIBS="${INET_PTON_LIBS}${INET_PTON_LIBS+ }$lib";;
27661 esac
27662 done
27663
27664 else case e in #(
27665 e)
27666 case " $LIBOBJS " in
27667 *" inet_pton.$ac_objext "* ) ;;
27668 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
27669 ;;
27670 esac
27671
27672
27673 for _sym in sudo_inet_pton; do
27674 COMPAT_EXP="${COMPAT_EXP}${_sym}
27675 "
27676 done
27677
27678 ;;
27679 esac
27680 fi
27681
27682
27683
27684 _LIBS="$LIBS"
27685 LIBS="${LIBS} ${NET_LIBS}"
27686 found=true
27687 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27688 if test "x$ac_cv_func_inet_ntop" = xyes
27689 then :
27690
27691 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
27692
27693
27694 else case e in #(
27695 e)
27696 # Look for inet_ntop in network libraries appending to NET_LIBS as needed.
27697 # May need to link with -lnsl and -lsocket due to unresolved symbols
27698 found=false
27699 for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
27700 _libs=
27701 for lib in $libs; do
27702 case "$NET_LIBS" in
27703 *"$lib"*) ;;
27704 *) _libs="$_libs $lib";;
27705 esac
27706 done
27707 libs="${_libs# }"
27708 test -z "$libs" && continue
27709 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
27710 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
27711
27712 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
27713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -l$lib${5+ }$extralibs" >&5
27714 printf %s "checking for inet_ntop in -l$lib${5+ }$extralibs... " >&6; }
27715 if { as_var=sudo_cv_lib_$lib''_inet_ntop$_sudo_check_lib_extras; eval test \${$as_var+y}; }
27716 then :
27717 printf %s "(cached) " >&6
27718 else case e in #(
27719 e)
27720 SUDO_CHECK_LIB_OLIBS="$LIBS"
27721 LIBS="$LIBS -l$lib${5+ }$extralibs"
27722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27723 /* end confdefs.h. */
27724
27725 /* Override any GCC internal prototype to avoid an error.
27726 Use char because int might match the return type of a GCC
27727 builtin and then its argument prototype would still apply.
27728 The 'extern "C"' is for builds by C++ compilers;
27729 although this is not generally supported in C code supporting it here
27730 has little cost and some practical benefit (sr 110532). */
27731 #ifdef __cplusplus
27732 extern "C"
27733 #endif
27734 char inet_ntop (void);
27735 int
27736 main (void)
27737 {
27738 return inet_ntop ();
27739 ;
27740 return 0;
27741 }
27742 _ACEOF
27743 if ac_fn_c_try_link "$LINENO"
27744 then :
27745 eval sudo_cv_lib_$lib''_inet_ntop$_sudo_check_lib_extras=yes
27746 else case e in #(
27747 e) eval sudo_cv_lib_$lib''_inet_ntop$_sudo_check_lib_extras=no
27748 ;;
27749 esac
27750 fi
27751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27752 conftest$ac_exeext conftest.$ac_ext
27753 LIBS="$SUDO_CHECK_LIB_OLIBS"
27754 ;;
27755 esac
27756 fi
27757
27758 if eval test \$sudo_cv_lib_$lib''_inet_ntop$_sudo_check_lib_extras = "yes"; then
27759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27760 printf "%s\n" "yes" >&6; }
27761
27762 found=true
27763 NET_LIBS="${NET_LIBS}${NET_LIBS+ }$libs"
27764 INET_PTON_LIBS="$libs"
27765 case "$libs" in
27766 *-lresolv*)
27767 printf "%s\n" "#define NEED_RESOLV_H 1" >>confdefs.h
27768
27769 ;;
27770 esac
27771 break
27772
27773 else
27774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27775 printf "%s\n" "no" >&6; }
27776
27777 fi
27778
27779 done
27780 ;;
27781 esac
27782 fi
27783
27784 LIBS="$_LIBS"
27785 if test $found = true
27786 then :
27787
27788 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
27789
27790
27791 else case e in #(
27792 e)
27793 case " $LIBOBJS " in
27794 *" inet_ntop.$ac_objext "* ) ;;
27795 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
27796 ;;
27797 esac
27798
27799
27800 for _sym in sudo_inet_ntop; do
27801 COMPAT_EXP="${COMPAT_EXP}${_sym}
27802 "
27803 done
27804
27805 ;;
27806 esac
27807 fi
27808
27809
27810
27811 _LIBS="$LIBS"
27812 LIBS="${LIBS} ${NET_LIBS}"
27813 found=true
27814 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
27815 if test "x$ac_cv_func_syslog" = xyes
27816 then :
27817
27818 else case e in #(
27819 e)
27820 # Look for syslog in network libraries appending to NET_LIBS as needed.
27821 # May need to link with -lnsl and -lsocket due to unresolved symbols
27822 found=false
27823 for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
27824 _libs=
27825 for lib in $libs; do
27826 case "$NET_LIBS" in
27827 *"$lib"*) ;;
27828 *) _libs="$_libs $lib";;
27829 esac
27830 done
27831 libs="${_libs# }"
27832 test -z "$libs" && continue
27833 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
27834 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
27835
27836 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
27837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
27838 printf %s "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
27839 if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval test \${$as_var+y}; }
27840 then :
27841 printf %s "(cached) " >&6
27842 else case e in #(
27843 e)
27844 SUDO_CHECK_LIB_OLIBS="$LIBS"
27845 LIBS="$LIBS -l$lib${5+ }$extralibs"
27846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27847 /* end confdefs.h. */
27848
27849 /* Override any GCC internal prototype to avoid an error.
27850 Use char because int might match the return type of a GCC
27851 builtin and then its argument prototype would still apply.
27852 The 'extern "C"' is for builds by C++ compilers;
27853 although this is not generally supported in C code supporting it here
27854 has little cost and some practical benefit (sr 110532). */
27855 #ifdef __cplusplus
27856 extern "C"
27857 #endif
27858 char syslog (void);
27859 int
27860 main (void)
27861 {
27862 return syslog ();
27863 ;
27864 return 0;
27865 }
27866 _ACEOF
27867 if ac_fn_c_try_link "$LINENO"
27868 then :
27869 eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
27870 else case e in #(
27871 e) eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
27872 ;;
27873 esac
27874 fi
27875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27876 conftest$ac_exeext conftest.$ac_ext
27877 LIBS="$SUDO_CHECK_LIB_OLIBS"
27878 ;;
27879 esac
27880 fi
27881
27882 if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
27883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27884 printf "%s\n" "yes" >&6; }
27885
27886 found=true
27887 NET_LIBS="${NET_LIBS}${NET_LIBS+ }$libs"
27888 INET_PTON_LIBS="$libs"
27889 case "$libs" in
27890 *-lresolv*)
27891 printf "%s\n" "#define NEED_RESOLV_H 1" >>confdefs.h
27892
27893 ;;
27894 esac
27895 break
27896
27897 else
27898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27899 printf "%s\n" "no" >&6; }
27900
27901 fi
27902
27903 done
27904 ;;
27905 esac
27906 fi
27907
27908 LIBS="$_LIBS"
27909 if test $found = true
27910 then :
27911
27912 fi
27913
27914
27915 OLIBS="$LIBS"
27916 GETADDRINFO_LIBS=
27917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
27918 printf %s "checking for getaddrinfo... " >&6; }
27919 if test ${ax_cv_func_getaddrinfo+y}
27920 then :
27921 printf %s "(cached) " >&6
27922 else case e in #(
27923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27924 /* end confdefs.h. */
27925 #include <sys/types.h>
27926 #include <sys/socket.h>
27927 #include <netdb.h>
27928 int main() { return getaddrinfo(0, 0, 0, 0); }
27929 _ACEOF
27930 if ac_fn_c_try_link "$LINENO"
27931 then :
27932 ax_cv_func_getaddrinfo=yes
27933 else case e in #(
27934 e) ax_cv_func_getaddrinfo=no ;;
27935 esac
27936 fi
27937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27938 conftest$ac_exeext conftest.$ac_ext ;;
27939 esac
27940 fi
27941
27942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_func_getaddrinfo" >&5
27943 printf "%s\n" "$ax_cv_func_getaddrinfo" >&6; }
27944 if test X"$ax_cv_func_getaddrinfo" = X"yes"; then
27945
27946 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
27947
27948 else
27949 # Not found in libc, check libsocket and libinet
27950 _found=no
27951 for _libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
27952 _cv="ax_cv_lib_getaddrinfo`echo \"$_libs\"|sed -e 's/-l/_/g' -e 's/ *//g'`"
27953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in $_libs" >&5
27954 printf %s "checking for getaddrinfo in $_libs... " >&6; }
27955 if eval test \${$_cv+y}
27956 then :
27957 printf %s "(cached) " >&6
27958 else case e in #(
27959 e)
27960 _nlibs=
27961 for _l in $_libs; do
27962 case "$LIBS" in
27963 *"$_l"*) ;;
27964 *) _nlibs="$_nlibs $_l";;
27965 esac
27966 done
27967 _libs="${_nlibs# }"
27968 if test -z "$_libs"; then
27969 # No new libs to check
27970 eval $_cv=no
27971 else
27972 AX_FUNC_GETADDRINFO_OLIBS="$LIBS"
27973 LIBS="$LIBS $_libs"
27974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27975 /* end confdefs.h. */
27976 #include <sys/types.h>
27977 #include <sys/socket.h>
27978 #include <netdb.h>
27979 int main() { return getaddrinfo(0, 0, 0, 0); }
27980 _ACEOF
27981 if ac_fn_c_try_link "$LINENO"
27982 then :
27983 eval $_cv=yes
27984 else case e in #(
27985 e) eval $_cv=no ;;
27986 esac
27987 fi
27988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27989 conftest$ac_exeext conftest.$ac_ext
27990 LIBS="$AX_FUNC_GETADDRINFO_OLIBS"
27991 fi
27992 ;;
27993 esac
27994 fi
27995
27996 if eval test \$$_cv = "yes"; then
27997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27998 printf "%s\n" "yes" >&6; }
27999 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
28000
28001 test -n "$_libs" && LIBS="$LIBS $_libs"
28002 break
28003 fi
28004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28005 printf "%s\n" "no" >&6; }
28006 done
28007 if eval test \$$_cv != "yes"; then
28008 case " $LIBOBJS " in
28009 *" getaddrinfo.$ac_objext "* ) ;;
28010 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
28011 ;;
28012 esac
28013
28014 fi
28015 fi
28016
28017 case " $LIBOBJS " in
28018 *" getaddrinfo.$ac_objext "* )
28019
28020 for _sym in sudo_getaddrinfo sudo_freeaddrinfo sudo_gai_strerror; do
28021 COMPAT_EXP="${COMPAT_EXP}${_sym}
28022 "
28023 done
28024
28025 # We need libsudo_util to pull in dependent libraries for
28026 # inet_pton(), gethostbyname(), and getservbyname()
28027 if test -n "${INET_PTON_LIBS}"
28028 then :
28029
28030 LT_DEP_LIBS="${LT_DEP_LIBS}${LT_DEP_LIBS+ }${INET_PTON_LIBS}"
28031 LIBS="${LIBS}${LIBS+ }${INET_PTON_LIBS}"
28032
28033 fi
28034
28035 _LIBS="$LIBS"
28036 LIBS="${LIBS} ${NET_LIBS}"
28037 found=true
28038 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
28039 if test "x$ac_cv_func_gethostbyname" = xyes
28040 then :
28041
28042 else case e in #(
28043 e)
28044 # Look for gethostbyname in network libraries appending to NET_LIBS as needed.
28045 # May need to link with -lnsl and -lsocket due to unresolved symbols
28046 found=false
28047 for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
28048 _libs=
28049 for lib in $libs; do
28050 case "$NET_LIBS" in
28051 *"$lib"*) ;;
28052 *) _libs="$_libs $lib";;
28053 esac
28054 done
28055 libs="${_libs# }"
28056 test -z "$libs" && continue
28057 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
28058 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
28059
28060 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
28061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -l$lib${5+ }$extralibs" >&5
28062 printf %s "checking for gethostbyname in -l$lib${5+ }$extralibs... " >&6; }
28063 if { as_var=sudo_cv_lib_$lib''_gethostbyname$_sudo_check_lib_extras; eval test \${$as_var+y}; }
28064 then :
28065 printf %s "(cached) " >&6
28066 else case e in #(
28067 e)
28068 SUDO_CHECK_LIB_OLIBS="$LIBS"
28069 LIBS="$LIBS -l$lib${5+ }$extralibs"
28070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28071 /* end confdefs.h. */
28072
28073 /* Override any GCC internal prototype to avoid an error.
28074 Use char because int might match the return type of a GCC
28075 builtin and then its argument prototype would still apply.
28076 The 'extern "C"' is for builds by C++ compilers;
28077 although this is not generally supported in C code supporting it here
28078 has little cost and some practical benefit (sr 110532). */
28079 #ifdef __cplusplus
28080 extern "C"
28081 #endif
28082 char gethostbyname (void);
28083 int
28084 main (void)
28085 {
28086 return gethostbyname ();
28087 ;
28088 return 0;
28089 }
28090 _ACEOF
28091 if ac_fn_c_try_link "$LINENO"
28092 then :
28093 eval sudo_cv_lib_$lib''_gethostbyname$_sudo_check_lib_extras=yes
28094 else case e in #(
28095 e) eval sudo_cv_lib_$lib''_gethostbyname$_sudo_check_lib_extras=no
28096 ;;
28097 esac
28098 fi
28099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28100 conftest$ac_exeext conftest.$ac_ext
28101 LIBS="$SUDO_CHECK_LIB_OLIBS"
28102 ;;
28103 esac
28104 fi
28105
28106 if eval test \$sudo_cv_lib_$lib''_gethostbyname$_sudo_check_lib_extras = "yes"; then
28107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28108 printf "%s\n" "yes" >&6; }
28109
28110 found=true
28111 NET_LIBS="${NET_LIBS}${NET_LIBS+ }$libs"
28112 INET_PTON_LIBS="$libs"
28113 case "$libs" in
28114 *-lresolv*)
28115 printf "%s\n" "#define NEED_RESOLV_H 1" >>confdefs.h
28116
28117 ;;
28118 esac
28119 break
28120
28121 else
28122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28123 printf "%s\n" "no" >&6; }
28124
28125 fi
28126
28127 done
28128 ;;
28129 esac
28130 fi
28131
28132 LIBS="$_LIBS"
28133 if test $found = true
28134 then :
28135
28136 fi
28137
28138 ;;
28139 *)
28140 for lib in $LIBS; do
28141 case "$OLIBS" in
28142 *"$lib"*) ;;
28143 *) GETADDRINFO_LIBS="${GETADDRINFO_LIBS}${GETADDRINFO_LIBS+ }$lib";;
28144 esac
28145 done
28146 if test -n "${GETADDRINFO_LIBS}"
28147 then :
28148
28149 # We need libsudo_util to pull in dependent libraries for
28150 # gai_strerror()
28151 LT_DEP_LIBS="${LT_DEP_LIBS}${LT_DEP_LIBS+ }${GETADDRINFO_LIBS}"
28152 LIBS="${LIBS}${LIBS+ }${GETADDRINFO_LIBS}"
28153
28154 # Add to NET_LIBS if necessary
28155 for lib in $GETADDRINFO_LIBS; do
28156 case "$NET_LIBS" in
28157 *"$lib"*) ;;
28158 *) NET_LIBS="${NET_LIBS}${NET_LIBS+ }$lib";;
28159 esac
28160 done
28161
28162 fi
28163 ;;
28164 esac
28165 LIBS="$OLIBS"
28166
28167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28168 printf %s "checking for va_copy... " >&6; }
28169 if test ${sudo_cv_func_va_copy+y}
28170 then :
28171 printf %s "(cached) " >&6
28172 else case e in #(
28173 e)
28174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28175 /* end confdefs.h. */
28176 #include <stdarg.h>
28177 va_list ap1, ap2;
28178 int
28179 main (void)
28180 {
28181 va_copy(ap1, ap2);
28182 ;
28183 return 0;
28184 }
28185 _ACEOF
28186 if ac_fn_c_try_link "$LINENO"
28187 then :
28188 sudo_cv_func_va_copy=yes
28189 else case e in #(
28190 e) sudo_cv_func_va_copy=no ;;
28191 esac
28192 fi
28193 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28194 conftest$ac_exeext conftest.$ac_ext
28195 ;;
28196 esac
28197 fi
28198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_va_copy" >&5
28199 printf "%s\n" "$sudo_cv_func_va_copy" >&6; }
28200 if test "$sudo_cv_func_va_copy" = "yes"
28201 then :
28202
28203 printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h
28204
28205
28206 else case e in #(
28207 e)
28208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
28209 printf %s "checking for __va_copy... " >&6; }
28210 if test ${sudo_cv_func___va_copy+y}
28211 then :
28212 printf %s "(cached) " >&6
28213 else case e in #(
28214 e)
28215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28216 /* end confdefs.h. */
28217 #include <stdarg.h>
28218 va_list ap1, ap2;
28219 int
28220 main (void)
28221 {
28222 __va_copy(ap1, ap2);
28223 ;
28224 return 0;
28225 }
28226 _ACEOF
28227 if ac_fn_c_try_link "$LINENO"
28228 then :
28229 sudo_cv_func___va_copy=yes
28230 else case e in #(
28231 e) sudo_cv_func___va_copy=no ;;
28232 esac
28233 fi
28234 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28235 conftest$ac_exeext conftest.$ac_ext
28236 ;;
28237 esac
28238 fi
28239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func___va_copy" >&5
28240 printf "%s\n" "$sudo_cv_func___va_copy" >&6; }
28241 if test "$sudo_cv_func___va_copy" = "yes"
28242 then :
28243
28244 printf "%s\n" "#define HAVE___VA_COPY 1" >>confdefs.h
28245
28246
28247 fi
28248 ;;
28249 esac
28250 fi
28251
28252
28253 for ac_func in getprogname
28254 do :
28255 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
28256 if test "x$ac_cv_func_getprogname" = xyes
28257 then :
28258 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
28259
28260
28261 for ac_func in setprogname
28262 do :
28263 ac_fn_c_check_func "$LINENO" "setprogname" "ac_cv_func_setprogname"
28264 if test "x$ac_cv_func_setprogname" = xyes
28265 then :
28266 printf "%s\n" "#define HAVE_SETPROGNAME 1" >>confdefs.h
28267
28268 else case e in #(
28269 e)
28270 for _sym in sudo_setprogname; do
28271 COMPAT_EXP="${COMPAT_EXP}${_sym}
28272 "
28273 done
28274 ;;
28275 esac
28276 fi
28277
28278 done
28279
28280 else case e in #(
28281 e)
28282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
28283 printf %s "checking for __progname... " >&6; }
28284 if test ${sudo_cv___progname+y}
28285 then :
28286 printf %s "(cached) " >&6
28287 else case e in #(
28288 e)
28289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28290 /* end confdefs.h. */
28291
28292 int
28293 main (void)
28294 {
28295 extern char *__progname; if (__progname[0] == '\0') return 1;
28296 ;
28297 return 0;
28298 }
28299 _ACEOF
28300 if ac_fn_c_try_link "$LINENO"
28301 then :
28302 sudo_cv___progname=yes
28303 else case e in #(
28304 e) sudo_cv___progname=no ;;
28305 esac
28306 fi
28307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28308 conftest$ac_exeext conftest.$ac_ext ;;
28309 esac
28310 fi
28311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
28312 printf "%s\n" "$sudo_cv___progname" >&6; }
28313 if test "$sudo_cv___progname" = "yes"
28314 then :
28315
28316 printf "%s\n" "#define HAVE___PROGNAME 1" >>confdefs.h
28317
28318
28319 fi
28320
28321 for _sym in sudo_getprogname; do
28322 COMPAT_EXP="${COMPAT_EXP}${_sym}
28323 "
28324 done
28325
28326
28327 for _sym in sudo_setprogname; do
28328 COMPAT_EXP="${COMPAT_EXP}${_sym}
28329 "
28330 done
28331
28332 ;;
28333 esac
28334 fi
28335
28336 done
28337
28338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
28339 printf %s "checking for __func__... " >&6; }
28340 if test ${sudo_cv___func__+y}
28341 then :
28342 printf %s "(cached) " >&6
28343 else case e in #(
28344 e)
28345 if test X"$ac_cv_build_prog_cc_c99" = X"no"
28346 then :
28347
28348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28349 /* end confdefs.h. */
28350
28351 int
28352 main (void)
28353 {
28354 if (__func__[0] == '\0') return 1;
28355 ;
28356 return 0;
28357 }
28358 _ACEOF
28359 if ac_fn_c_try_link "$LINENO"
28360 then :
28361 sudo_cv___func__=yes
28362 else case e in #(
28363 e) sudo_cv___func__=no ;;
28364 esac
28365 fi
28366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28367 conftest$ac_exeext conftest.$ac_ext
28368
28369 else case e in #(
28370 e)
28371 # C99 and higher support __func__
28372 sudo_cv___func__=yes
28373 ;;
28374 esac
28375 fi
28376 ;;
28377 esac
28378 fi
28379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
28380 printf "%s\n" "$sudo_cv___func__" >&6; }
28381 if test "$sudo_cv___func__" = "yes"
28382 then :
28383
28384 printf "%s\n" "#define HAVE___FUNC__ 1" >>confdefs.h
28385
28386
28387 elif test -n "$GCC"
28388 then :
28389
28390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
28391 printf %s "checking for __FUNCTION__... " >&6; }
28392 if test ${sudo_cv___FUNCTION__+y}
28393 then :
28394 printf %s "(cached) " >&6
28395 else case e in #(
28396 e)
28397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28398 /* end confdefs.h. */
28399
28400 int
28401 main (void)
28402 {
28403 if(__FUNCTION__[0] == '\0') return 1;
28404 ;
28405 return 0;
28406 }
28407 _ACEOF
28408 if ac_fn_c_try_link "$LINENO"
28409 then :
28410 sudo_cv___FUNCTION__=yes
28411 else case e in #(
28412 e) sudo_cv___FUNCTION__=no ;;
28413 esac
28414 fi
28415 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28416 conftest$ac_exeext conftest.$ac_ext ;;
28417 esac
28418 fi
28419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
28420 printf "%s\n" "$sudo_cv___FUNCTION__" >&6; }
28421 if test "$sudo_cv___FUNCTION__" = "yes"
28422 then :
28423
28424 printf "%s\n" "#define HAVE___FUNC__ 1" >>confdefs.h
28425
28426
28427 printf "%s\n" "#define __func__ __FUNCTION__" >>confdefs.h
28428
28429
28430 fi
28431
28432 fi
28433
28434
28435 # gettext() and friends may be located in libc (Linux and Solaris)
28436 # or in libintl. However, it is possible to have libintl installed
28437 # even when gettext() is present in libc. In the case of GNU libintl,
28438 # gettext() will be defined to gettext_libintl in libintl.h.
28439 # Since gcc prefers /usr/local/include to /usr/include, we need to
28440 # make sure we use the gettext() that matches the include file.
28441 if test "$enable_nls" != "no"; then
28442 if test "$enable_nls" != "yes"; then
28443
28444 if test ${CPPFLAGS+y}
28445 then :
28446
28447 case " $CPPFLAGS " in #(
28448 *" -I${enable_nls}/include "*) :
28449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${enable_nls}/include"; } >&5
28450 (: CPPFLAGS already contains -I${enable_nls}/include) 2>&5
28451 ac_status=$?
28452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28453 test $ac_status = 0; } ;; #(
28454 *) :
28455
28456 as_fn_append CPPFLAGS " -I${enable_nls}/include"
28457 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
28458 (: CPPFLAGS="$CPPFLAGS") 2>&5
28459 ac_status=$?
28460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28461 test $ac_status = 0; }
28462 ;;
28463 esac
28464
28465 else case e in #(
28466 e)
28467 CPPFLAGS=-I${enable_nls}/include
28468 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
28469 (: CPPFLAGS="$CPPFLAGS") 2>&5
28470 ac_status=$?
28471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28472 test $ac_status = 0; }
28473 ;;
28474 esac
28475 fi
28476
28477
28478
28479 if test ${LDFLAGS+y}
28480 then :
28481
28482 case " $LDFLAGS " in #(
28483 *" -L$enable_nls/lib "*) :
28484 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains -L\$enable_nls/lib"; } >&5
28485 (: LDFLAGS already contains -L$enable_nls/lib) 2>&5
28486 ac_status=$?
28487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28488 test $ac_status = 0; } ;; #(
28489 *) :
28490
28491 as_fn_append LDFLAGS " -L$enable_nls/lib"
28492 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
28493 (: LDFLAGS="$LDFLAGS") 2>&5
28494 ac_status=$?
28495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28496 test $ac_status = 0; }
28497 ;;
28498 esac
28499
28500 else case e in #(
28501 e)
28502 LDFLAGS=-L$enable_nls/lib
28503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
28504 (: LDFLAGS="$LDFLAGS") 2>&5
28505 ac_status=$?
28506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28507 test $ac_status = 0; }
28508 ;;
28509 esac
28510 fi
28511
28512 if test X"$enable_rpath" = X"yes"; then
28513
28514 if test ${LDFLAGS_R+y}
28515 then :
28516
28517 case " $LDFLAGS_R " in #(
28518 *" -R$enable_nls/lib "*) :
28519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R already contains -R\$enable_nls/lib"; } >&5
28520 (: LDFLAGS_R already contains -R$enable_nls/lib) 2>&5
28521 ac_status=$?
28522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28523 test $ac_status = 0; } ;; #(
28524 *) :
28525
28526 as_fn_append LDFLAGS_R " -R$enable_nls/lib"
28527 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R=\"\$LDFLAGS_R\""; } >&5
28528 (: LDFLAGS_R="$LDFLAGS_R") 2>&5
28529 ac_status=$?
28530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28531 test $ac_status = 0; }
28532 ;;
28533 esac
28534
28535 else case e in #(
28536 e)
28537 LDFLAGS_R=-R$enable_nls/lib
28538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_R=\"\$LDFLAGS_R\""; } >&5
28539 (: LDFLAGS_R="$LDFLAGS_R") 2>&5
28540 ac_status=$?
28541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28542 test $ac_status = 0; }
28543 ;;
28544 esac
28545 fi
28546
28547 fi
28548
28549 fi
28550 OLIBS="$LIBS"
28551 for l in "libc" "-lintl" "-lintl -liconv"; do
28552 if test "$l" = "libc"; then
28553 # If user specified a dir for libintl ignore libc
28554 if test "$enable_nls" != "yes"; then
28555 continue
28556 fi
28557 gettext_name=sudo_cv_gettext
28558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
28559 printf %s "checking for gettext... " >&6; }
28560 else
28561 LIBS="$OLIBS $l"
28562 gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
28563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
28564 printf %s "checking for gettext in $l... " >&6; }
28565 fi
28566 if eval test \${$gettext_name+y}
28567 then :
28568 printf %s "(cached) " >&6
28569 else case e in #(
28570 e)
28571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28572 /* end confdefs.h. */
28573
28574 #include <libintl.h>
28575 int
28576 main (void)
28577 {
28578 (void)gettext((char *)0);
28579 ;
28580 return 0;
28581 }
28582
28583 _ACEOF
28584 if ac_fn_c_try_link "$LINENO"
28585 then :
28586 eval $gettext_name=yes
28587 else case e in #(
28588 e) eval $gettext_name=no
28589 ;;
28590 esac
28591 fi
28592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28593 conftest$ac_exeext conftest.$ac_ext
28594 ;;
28595 esac
28596 fi
28597
28598 eval gettext_result="\$$gettext_name"
28599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
28600 printf "%s\n" "$gettext_result" >&6; }
28601 if test "$gettext_result" = "yes"; then
28602 ac_fn_c_check_func "$LINENO" "ngettext" "ac_cv_func_ngettext"
28603 if test "x$ac_cv_func_ngettext" = xyes
28604 then :
28605 printf "%s\n" "#define HAVE_NGETTEXT 1" >>confdefs.h
28606
28607 fi
28608
28609 break
28610 fi
28611 done
28612 LIBS="$OLIBS"
28613
28614 if test "$sudo_cv_gettext" = "yes"; then
28615 SUDO_NLS=enabled
28616 # For Solaris we need links from lang to lang.UTF-8 in localedir
28617 case "$host_os" in
28618 solaris2*) LOCALEDIR_SUFFIX=".UTF-8";;
28619 esac
28620 elif test "$sudo_cv_gettext_lintl" = "yes"; then
28621 SUDO_NLS=enabled
28622 LIBINTL="-lintl"
28623 elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
28624 SUDO_NLS=enabled
28625 LIBINTL="-lintl -liconv"
28626 fi
28627 if test X"$SUDO_NLS" = X"enabled"; then
28628 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
28629
28630
28631 for _sym in sudo_warn_gettext_v1; do
28632 COMPAT_EXP="${COMPAT_EXP}${_sym}
28633 "
28634 done
28635
28636 fi
28637 fi
28638
28639
28640 case "$enable_zlib" in
28641 yes)
28642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzclearerr in -lz" >&5
28643 printf %s "checking for gzclearerr in -lz... " >&6; }
28644 if test ${ac_cv_lib_z_gzclearerr+y}
28645 then :
28646 printf %s "(cached) " >&6
28647 else case e in #(
28648 e) ac_check_lib_save_LIBS=$LIBS
28649 LIBS="-lz $LIBS"
28650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28651 /* end confdefs.h. */
28652
28653 /* Override any GCC internal prototype to avoid an error.
28654 Use char because int might match the return type of a GCC
28655 builtin and then its argument prototype would still apply.
28656 The 'extern "C"' is for builds by C++ compilers;
28657 although this is not generally supported in C code supporting it here
28658 has little cost and some practical benefit (sr 110532). */
28659 #ifdef __cplusplus
28660 extern "C"
28661 #endif
28662 char gzclearerr (void);
28663 int
28664 main (void)
28665 {
28666 return gzclearerr ();
28667 ;
28668 return 0;
28669 }
28670 _ACEOF
28671 if ac_fn_c_try_link "$LINENO"
28672 then :
28673 ac_cv_lib_z_gzclearerr=yes
28674 else case e in #(
28675 e) ac_cv_lib_z_gzclearerr=no ;;
28676 esac
28677 fi
28678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28679 conftest$ac_exeext conftest.$ac_ext
28680 LIBS=$ac_check_lib_save_LIBS ;;
28681 esac
28682 fi
28683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclearerr" >&5
28684 printf "%s\n" "$ac_cv_lib_z_gzclearerr" >&6; }
28685 if test "x$ac_cv_lib_z_gzclearerr" = xyes
28686 then :
28687
28688 for ac_header in zlib.h
28689 do :
28690 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28691 if test "x$ac_cv_header_zlib_h" = xyes
28692 then :
28693 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
28694 ZLIB="-lz"
28695 else case e in #(
28696 e) enable_zlib=builtin ;;
28697 esac
28698 fi
28699
28700 done
28701
28702 fi
28703
28704 ;;
28705 no)
28706 ;;
28707 system)
28708 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
28709
28710 ZLIB="-lz"
28711 ;;
28712 static|shared|builtin)
28713 # handled below
28714 ;;
28715 *)
28716 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
28717
28718
28719 if test ${CPPFLAGS+y}
28720 then :
28721
28722 case " $CPPFLAGS " in #(
28723 *" -I${enable_zlib}/include "*) :
28724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${enable_zlib}/include"; } >&5
28725 (: CPPFLAGS already contains -I${enable_zlib}/include) 2>&5
28726 ac_status=$?
28727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28728 test $ac_status = 0; } ;; #(
28729 *) :
28730
28731 as_fn_append CPPFLAGS " -I${enable_zlib}/include"
28732 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
28733 (: CPPFLAGS="$CPPFLAGS") 2>&5
28734 ac_status=$?
28735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28736 test $ac_status = 0; }
28737 ;;
28738 esac
28739
28740 else case e in #(
28741 e)
28742 CPPFLAGS=-I${enable_zlib}/include
28743 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
28744 (: CPPFLAGS="$CPPFLAGS") 2>&5
28745 ac_status=$?
28746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28747 test $ac_status = 0; }
28748 ;;
28749 esac
28750 fi
28751
28752
28753
28754 if test ${ZLIB+y}
28755 then :
28756
28757 case " $ZLIB " in #(
28758 *" -L$enable_zlib/lib "*) :
28759 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ZLIB already contains -L\$enable_zlib/lib"; } >&5
28760 (: ZLIB already contains -L$enable_zlib/lib) 2>&5
28761 ac_status=$?
28762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28763 test $ac_status = 0; } ;; #(
28764 *) :
28765
28766 as_fn_append ZLIB " -L$enable_zlib/lib"
28767 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ZLIB=\"\$ZLIB\""; } >&5
28768 (: ZLIB="$ZLIB") 2>&5
28769 ac_status=$?
28770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28771 test $ac_status = 0; }
28772 ;;
28773 esac
28774
28775 else case e in #(
28776 e)
28777 ZLIB=-L$enable_zlib/lib
28778 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ZLIB=\"\$ZLIB\""; } >&5
28779 (: ZLIB="$ZLIB") 2>&5
28780 ac_status=$?
28781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28782 test $ac_status = 0; }
28783 ;;
28784 esac
28785 fi
28786
28787 if test X"$enable_rpath" = X"yes"; then
28788
28789 if test ${ZLIB_R+y}
28790 then :
28791
28792 case " $ZLIB_R " in #(
28793 *" -R$enable_zlib/lib "*) :
28794 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ZLIB_R already contains -R\$enable_zlib/lib"; } >&5
28795 (: ZLIB_R already contains -R$enable_zlib/lib) 2>&5
28796 ac_status=$?
28797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28798 test $ac_status = 0; } ;; #(
28799 *) :
28800
28801 as_fn_append ZLIB_R " -R$enable_zlib/lib"
28802 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ZLIB_R=\"\$ZLIB_R\""; } >&5
28803 (: ZLIB_R="$ZLIB_R") 2>&5
28804 ac_status=$?
28805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28806 test $ac_status = 0; }
28807 ;;
28808 esac
28809
28810 else case e in #(
28811 e)
28812 ZLIB_R=-R$enable_zlib/lib
28813 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ZLIB_R=\"\$ZLIB_R\""; } >&5
28814 (: ZLIB_R="$ZLIB_R") 2>&5
28815 ac_status=$?
28816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28817 test $ac_status = 0; }
28818 ;;
28819 esac
28820 fi
28821
28822 fi
28823
28824 ZLIB="${ZLIB} -lz"
28825 ;;
28826 esac
28827 case "$enable_zlib" in
28828 builtin|static|dynamic)
28829 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
28830
28831 # XXX - can't use AX_APPEND_FLAG due to use of $(top_foo) and quoting
28832 CPPFLAGS='-I$(top_builddir)/lib/zlib -I$(top_srcdir)/lib/zlib '"${CPPFLAGS}"
28833 ZLIB="${ZLIB}"' $(top_builddir)/lib/zlib/libsudo_z.la'
28834 ZLIB_SRC=lib/zlib
28835 ac_config_headers="$ac_config_headers lib/zlib/zconf.h"
28836
28837 ac_config_files="$ac_config_files lib/zlib/Makefile"
28838
28839 if test X"$enable_shared" = X"no" -o "$enable_zlib" = "static"
28840 then :
28841
28842 if test "$enable_zlib" = "shared"
28843 then :
28844
28845 as_fn_error $? "unable to build shared libraries on this system" "$LINENO" 5
28846
28847 fi
28848 # Build as convenience library
28849 ZLIB_LDFLAGS=-no-install
28850
28851 fi
28852 ;;
28853 esac
28854
28855 ac_fn_check_decl "$LINENO" "NSIG" "ac_cv_have_decl_NSIG" "
28856 $ac_includes_default
28857 #include <signal.h>
28858
28859 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28860 if test "x$ac_cv_have_decl_NSIG" = xyes
28861 then :
28862 ac_have_decl=1
28863 else case e in #(
28864 e) ac_have_decl=0 ;;
28865 esac
28866 fi
28867 printf "%s\n" "#define HAVE_DECL_NSIG $ac_have_decl" >>confdefs.h
28868 if test $ac_have_decl = 1
28869 then :
28870
28871 else case e in #(
28872 e)
28873 ac_fn_check_decl "$LINENO" "_NSIG" "ac_cv_have_decl__NSIG" "
28874 $ac_includes_default
28875 #include <signal.h>
28876
28877 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28878 if test "x$ac_cv_have_decl__NSIG" = xyes
28879 then :
28880 ac_have_decl=1
28881 else case e in #(
28882 e) ac_have_decl=0 ;;
28883 esac
28884 fi
28885 printf "%s\n" "#define HAVE_DECL__NSIG $ac_have_decl" >>confdefs.h
28886 if test $ac_have_decl = 1
28887 then :
28888
28889 else case e in #(
28890 e)
28891 ac_fn_check_decl "$LINENO" "__NSIG" "ac_cv_have_decl___NSIG" "
28892 $ac_includes_default
28893 #include <signal.h>
28894
28895 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28896 if test "x$ac_cv_have_decl___NSIG" = xyes
28897 then :
28898 ac_have_decl=1
28899 else case e in #(
28900 e) ac_have_decl=0 ;;
28901 esac
28902 fi
28903 printf "%s\n" "#define HAVE_DECL___NSIG $ac_have_decl" >>confdefs.h
28904
28905 ;;
28906 esac
28907 fi
28908
28909 ;;
28910 esac
28911 fi
28912
28913
28914 ac_fn_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
28915 $ac_includes_default
28916 #include <errno.h>
28917
28918 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28919 if test "x$ac_cv_have_decl_errno" = xyes
28920 then :
28921 ac_have_decl=1
28922 else case e in #(
28923 e) ac_have_decl=0 ;;
28924 esac
28925 fi
28926 printf "%s\n" "#define HAVE_DECL_ERRNO $ac_have_decl" >>confdefs.h
28927
28928
28929 ac_fn_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
28930 $ac_includes_default
28931 #include <netdb.h>
28932
28933 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28934 if test "x$ac_cv_have_decl_h_errno" = xyes
28935 then :
28936 ac_have_decl=1
28937 else case e in #(
28938 e) ac_have_decl=0 ;;
28939 esac
28940 fi
28941 printf "%s\n" "#define HAVE_DECL_H_ERRNO $ac_have_decl" >>confdefs.h
28942
28943
28944 ac_fn_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "
28945 #include <sys/types.h>
28946 #include <limits.h>
28947
28948 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28949 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes
28950 then :
28951 ac_have_decl=1
28952 else case e in #(
28953 e) ac_have_decl=0 ;;
28954 esac
28955 fi
28956 printf "%s\n" "#define HAVE_DECL_LLONG_MAX $ac_have_decl" >>confdefs.h
28957 ac_fn_check_decl "$LINENO" "LLONG_MIN" "ac_cv_have_decl_LLONG_MIN" "
28958 #include <sys/types.h>
28959 #include <limits.h>
28960
28961 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28962 if test "x$ac_cv_have_decl_LLONG_MIN" = xyes
28963 then :
28964 ac_have_decl=1
28965 else case e in #(
28966 e) ac_have_decl=0 ;;
28967 esac
28968 fi
28969 printf "%s\n" "#define HAVE_DECL_LLONG_MIN $ac_have_decl" >>confdefs.h
28970 ac_fn_check_decl "$LINENO" "ULLONG_MAX" "ac_cv_have_decl_ULLONG_MAX" "
28971 #include <sys/types.h>
28972 #include <limits.h>
28973
28974 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28975 if test "x$ac_cv_have_decl_ULLONG_MAX" = xyes
28976 then :
28977 ac_have_decl=1
28978 else case e in #(
28979 e) ac_have_decl=0 ;;
28980 esac
28981 fi
28982 printf "%s\n" "#define HAVE_DECL_ULLONG_MAX $ac_have_decl" >>confdefs.h
28983 ac_fn_check_decl "$LINENO" "PATH_MAX" "ac_cv_have_decl_PATH_MAX" "
28984 #include <sys/types.h>
28985 #include <limits.h>
28986
28987 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28988 if test "x$ac_cv_have_decl_PATH_MAX" = xyes
28989 then :
28990 ac_have_decl=1
28991 else case e in #(
28992 e) ac_have_decl=0 ;;
28993 esac
28994 fi
28995 printf "%s\n" "#define HAVE_DECL_PATH_MAX $ac_have_decl" >>confdefs.h
28996 ac_fn_check_decl "$LINENO" "SSIZE_MAX" "ac_cv_have_decl_SSIZE_MAX" "
28997 #include <sys/types.h>
28998 #include <limits.h>
28999
29000 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29001 if test "x$ac_cv_have_decl_SSIZE_MAX" = xyes
29002 then :
29003 ac_have_decl=1
29004 else case e in #(
29005 e) ac_have_decl=0 ;;
29006 esac
29007 fi
29008 printf "%s\n" "#define HAVE_DECL_SSIZE_MAX $ac_have_decl" >>confdefs.h
29009
29010 ac_fn_check_decl "$LINENO" "SIZE_MAX" "ac_cv_have_decl_SIZE_MAX" "
29011 #include <sys/types.h>
29012 #include <limits.h>
29013 #if defined(HAVE_STDINT_H)
29014 # include <stdint.h>
29015 #elif defined(HAVE_INTTYPES_H)
29016 # include <inttypes.h>
29017 #endif
29018
29019 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29020 if test "x$ac_cv_have_decl_SIZE_MAX" = xyes
29021 then :
29022 ac_have_decl=1
29023 else case e in #(
29024 e) ac_have_decl=0 ;;
29025 esac
29026 fi
29027 printf "%s\n" "#define HAVE_DECL_SIZE_MAX $ac_have_decl" >>confdefs.h
29028
29029 if test "$ac_cv_have_decl_LLONG_MAX" != "yes"
29030 then :
29031
29032 ac_fn_check_decl "$LINENO" "QUAD_MAX" "ac_cv_have_decl_QUAD_MAX" "
29033 #include <sys/types.h>
29034 #include <limits.h>
29035
29036 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29037 if test "x$ac_cv_have_decl_QUAD_MAX" = xyes
29038 then :
29039 ac_have_decl=1
29040 else case e in #(
29041 e) ac_have_decl=0 ;;
29042 esac
29043 fi
29044 printf "%s\n" "#define HAVE_DECL_QUAD_MAX $ac_have_decl" >>confdefs.h
29045
29046
29047 fi
29048 if test "$ac_cv_have_decl_LLONG_MIN" != "yes"
29049 then :
29050
29051 ac_fn_check_decl "$LINENO" "QUAD_MIN" "ac_cv_have_decl_QUAD_MIN" "
29052 #include <sys/types.h>
29053 #include <limits.h>
29054
29055 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29056 if test "x$ac_cv_have_decl_QUAD_MIN" = xyes
29057 then :
29058 ac_have_decl=1
29059 else case e in #(
29060 e) ac_have_decl=0 ;;
29061 esac
29062 fi
29063 printf "%s\n" "#define HAVE_DECL_QUAD_MIN $ac_have_decl" >>confdefs.h
29064
29065
29066 fi
29067 if test "$ac_cv_have_decl_ULLONG_MAX" != "yes"
29068 then :
29069
29070 ac_fn_check_decl "$LINENO" "UQUAD_MAX" "ac_cv_have_decl_UQUAD_MAX" "
29071 #include <sys/types.h>
29072 #include <limits.h>
29073
29074 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29075 if test "x$ac_cv_have_decl_UQUAD_MAX" = xyes
29076 then :
29077 ac_have_decl=1
29078 else case e in #(
29079 e) ac_have_decl=0 ;;
29080 esac
29081 fi
29082 printf "%s\n" "#define HAVE_DECL_UQUAD_MAX $ac_have_decl" >>confdefs.h
29083
29084
29085 fi
29086 if test "$ac_cv_have_decl_SIZE_MAX" != "yes"
29087 then :
29088
29089 ac_fn_check_decl "$LINENO" "SIZE_T_MAX" "ac_cv_have_decl_SIZE_T_MAX" "
29090 #include <sys/types.h>
29091 #include <limits.h>
29092
29093 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29094 if test "x$ac_cv_have_decl_SIZE_T_MAX" = xyes
29095 then :
29096 ac_have_decl=1
29097 else case e in #(
29098 e) ac_have_decl=0 ;;
29099 esac
29100 fi
29101 printf "%s\n" "#define HAVE_DECL_SIZE_T_MAX $ac_have_decl" >>confdefs.h
29102
29103
29104 fi
29105 if test "$ac_cv_have_decl_PATH_MAX" != "yes"
29106 then :
29107
29108 ac_fn_check_decl "$LINENO" "_POSIX_PATH_MAX" "ac_cv_have_decl__POSIX_PATH_MAX" "
29109 #include <sys/types.h>
29110 #include <limits.h>
29111
29112 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29113 if test "x$ac_cv_have_decl__POSIX_PATH_MAX" = xyes
29114 then :
29115 ac_have_decl=1
29116 else case e in #(
29117 e) ac_have_decl=0 ;;
29118 esac
29119 fi
29120 printf "%s\n" "#define HAVE_DECL__POSIX_PATH_MAX $ac_have_decl" >>confdefs.h
29121
29122
29123 fi
29124
29125
29126 for ac_func in strsignal
29127 do :
29128 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
29129 if test "x$ac_cv_func_strsignal" = xyes
29130 then :
29131 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
29132
29133 else case e in #(
29134 e)
29135 case " $LIBOBJS " in
29136 *" strsignal.$ac_objext "* ) ;;
29137 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
29138 ;;
29139 esac
29140
29141
29142 for _sym in sudo_strsignal; do
29143 COMPAT_EXP="${COMPAT_EXP}${_sym}
29144 "
29145 done
29146
29147 HAVE_SIGLIST="false"
29148 ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
29149 $ac_includes_default
29150 #include <signal.h>
29151
29152 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29153 if test "x$ac_cv_have_decl_sys_siglist" = xyes
29154 then :
29155 ac_have_decl=1
29156 else case e in #(
29157 e) ac_have_decl=0 ;;
29158 esac
29159 fi
29160 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
29161 if test $ac_have_decl = 1
29162 then :
29163 HAVE_SIGLIST="true"
29164 else case e in #(
29165 e)
29166 ac_fn_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
29167 $ac_includes_default
29168 #include <signal.h>
29169
29170 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29171 if test "x$ac_cv_have_decl__sys_siglist" = xyes
29172 then :
29173 ac_have_decl=1
29174 else case e in #(
29175 e) ac_have_decl=0 ;;
29176 esac
29177 fi
29178 printf "%s\n" "#define HAVE_DECL__SYS_SIGLIST $ac_have_decl" >>confdefs.h
29179 if test $ac_have_decl = 1
29180 then :
29181 HAVE_SIGLIST="true"
29182 fi
29183
29184 ;;
29185 esac
29186 fi
29187
29188 if test "$HAVE_SIGLIST" != "true"
29189 then :
29190
29191 case " $LIBOBJS " in
29192 *" siglist.$ac_objext "* ) ;;
29193 *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
29194 ;;
29195 esac
29196
29197
29198 fi
29199 ;;
29200 esac
29201 fi
29202
29203 done
29204
29205
29206 for ac_func in sig2str
29207 do :
29208 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
29209 if test "x$ac_cv_func_sig2str" = xyes
29210 then :
29211 printf "%s\n" "#define HAVE_SIG2STR 1" >>confdefs.h
29212
29213 ac_fn_check_decl "$LINENO" "SIG2STR_MAX" "ac_cv_have_decl_SIG2STR_MAX" "
29214 # include <signal.h>
29215
29216 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29217 if test "x$ac_cv_have_decl_SIG2STR_MAX" = xyes
29218 then :
29219 ac_have_decl=1
29220 else case e in #(
29221 e) ac_have_decl=0 ;;
29222 esac
29223 fi
29224 printf "%s\n" "#define HAVE_DECL_SIG2STR_MAX $ac_have_decl" >>confdefs.h
29225
29226 else case e in #(
29227 e)
29228 case " $LIBOBJS " in
29229 *" sig2str.$ac_objext "* ) ;;
29230 *) LIBOBJS="$LIBOBJS sig2str.$ac_objext"
29231 ;;
29232 esac
29233
29234
29235 for _sym in sudo_sig2str; do
29236 COMPAT_EXP="${COMPAT_EXP}${_sym}
29237 "
29238 done
29239
29240 ;;
29241 esac
29242 fi
29243
29244 done
29245
29246 for ac_func in str2sig
29247 do :
29248 ac_fn_c_check_func "$LINENO" "str2sig" "ac_cv_func_str2sig"
29249 if test "x$ac_cv_func_str2sig" = xyes
29250 then :
29251 printf "%s\n" "#define HAVE_STR2SIG 1" >>confdefs.h
29252
29253 else case e in #(
29254 e)
29255 case " $LIBOBJS " in
29256 *" str2sig.$ac_objext "* ) ;;
29257 *) LIBOBJS="$LIBOBJS str2sig.$ac_objext"
29258 ;;
29259 esac
29260
29261
29262 for _sym in sudo_str2sig; do
29263 COMPAT_EXP="${COMPAT_EXP}${_sym}
29264 "
29265 done
29266
29267 ;;
29268 esac
29269 fi
29270
29271 done
29272
29273 if test x"${ac_cv_func_sig2str}${ac_cv_func_str2sig}" != x"yesyes"
29274 then :
29275
29276 ac_fn_c_check_func "$LINENO" "sigabbrev_np" "ac_cv_func_sigabbrev_np"
29277 if test "x$ac_cv_func_sigabbrev_np" = xyes
29278 then :
29279 printf "%s\n" "#define HAVE_SIGABBREV_NP 1" >>confdefs.h
29280
29281 fi
29282
29283 if test x"${ac_cv_func_sigabbrev_np}" != x"yes"
29284 then :
29285
29286 COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }strsig_test"
29287 HAVE_SIGNAME="false"
29288 ac_fn_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "
29289 $ac_includes_default
29290 #include <signal.h>
29291
29292 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29293 if test "x$ac_cv_have_decl_sys_signame" = xyes
29294 then :
29295 ac_have_decl=1
29296 else case e in #(
29297 e) ac_have_decl=0 ;;
29298 esac
29299 fi
29300 printf "%s\n" "#define HAVE_DECL_SYS_SIGNAME $ac_have_decl" >>confdefs.h
29301 if test $ac_have_decl = 1
29302 then :
29303 HAVE_SIGNAME="true"
29304 else case e in #(
29305 e)
29306 ac_fn_check_decl "$LINENO" "_sys_signame" "ac_cv_have_decl__sys_signame" "
29307 $ac_includes_default
29308 #include <signal.h>
29309
29310 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29311 if test "x$ac_cv_have_decl__sys_signame" = xyes
29312 then :
29313 ac_have_decl=1
29314 else case e in #(
29315 e) ac_have_decl=0 ;;
29316 esac
29317 fi
29318 printf "%s\n" "#define HAVE_DECL__SYS_SIGNAME $ac_have_decl" >>confdefs.h
29319 if test $ac_have_decl = 1
29320 then :
29321 HAVE_SIGNAME="true"
29322 else case e in #(
29323 e)
29324 ac_fn_check_decl "$LINENO" "sys_sigabbrev" "ac_cv_have_decl_sys_sigabbrev" "
29325 $ac_includes_default
29326 #include <signal.h>
29327
29328 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29329 if test "x$ac_cv_have_decl_sys_sigabbrev" = xyes
29330 then :
29331 ac_have_decl=1
29332 else case e in #(
29333 e) ac_have_decl=0 ;;
29334 esac
29335 fi
29336 printf "%s\n" "#define HAVE_DECL_SYS_SIGABBREV $ac_have_decl" >>confdefs.h
29337 if test $ac_have_decl = 1
29338 then :
29339 HAVE_SIGNAME="true"
29340 fi
29341
29342 ;;
29343 esac
29344 fi
29345
29346 ;;
29347 esac
29348 fi
29349
29350 if test "$HAVE_SIGNAME" != "true"
29351 then :
29352
29353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for undeclared sys_sigabbrev" >&5
29354 printf %s "checking for undeclared sys_sigabbrev... " >&6; }
29355 if test ${sudo_cv_var_sys_sigabbrev+y}
29356 then :
29357 printf %s "(cached) " >&6
29358 else case e in #(
29359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29360 /* end confdefs.h. */
29361 extern char **sys_sigabbrev;
29362 int
29363 main (void)
29364 {
29365 return sys_sigabbrev[1];
29366 ;
29367 return 0;
29368 }
29369 _ACEOF
29370 if ac_fn_c_try_link "$LINENO"
29371 then :
29372 sudo_cv_var_sys_sigabbrev=yes
29373 else case e in #(
29374 e) sudo_cv_var_sys_sigabbrev=no
29375 ;;
29376 esac
29377 fi
29378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29379 conftest$ac_exeext conftest.$ac_ext
29380
29381 ;;
29382 esac
29383 fi
29384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_sys_sigabbrev" >&5
29385 printf "%s\n" "$sudo_cv_var_sys_sigabbrev" >&6; }
29386 if test "$sudo_cv_var_sys_sigabbrev" = yes
29387 then :
29388
29389 printf "%s\n" "#define HAVE_SYS_SIGABBREV 1" >>confdefs.h
29390
29391
29392 else case e in #(
29393 e)
29394 case " $LIBOBJS " in
29395 *" signame.$ac_objext "* ) ;;
29396 *) LIBOBJS="$LIBOBJS signame.$ac_objext"
29397 ;;
29398 esac
29399
29400 SIGNAME=signame.lo
29401 ;;
29402 esac
29403 fi
29404
29405 fi
29406
29407 fi
29408
29409 fi
29410
29411 OLIBS="$LIBS"
29412 LIBS="$LIBS $lt_cv_dlopen_libs"
29413 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
29414 if test "x$ac_cv_func_dl_iterate_phdr" = xyes
29415 then :
29416 printf "%s\n" "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
29417
29418 fi
29419
29420 LIBS="$OLIBS"
29421
29422 if test ${with_netsvc-"no"} != "no"
29423 then :
29424
29425 cat >>confdefs.h <<EOF
29426 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
29427 EOF
29428
29429 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
29430
29431 elif test ${with_nsswitch-"yes"} != "no"
29432 then :
29433
29434 cat >>confdefs.h <<EOF
29435 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
29436 EOF
29437
29438 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
29439
29440 fi
29441
29442
29443 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"
29444 then :
29445
29446 for auth in $AUTH_EXCL_DEF; do
29447 case $auth in
29448 AIX_AUTH) with_aixauth=maybe;;
29449 BSD_AUTH) with_bsdauth=maybe;;
29450 PAM) with_pam=maybe;;
29451 SIA) CHECKSIA=true;;
29452 esac
29453 done
29454
29455 fi
29456
29457 if test ${with_pam-"no"} != "no"
29458 then :
29459
29460 #
29461 # Check for pam_start() in libpam first, then for pam_appl.h.
29462 #
29463 found_pam_lib=no
29464 as_ac_Lib=`printf "%s\n" "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | sed "$as_sed_sh"`
29465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
29466 printf %s "checking for pam_start in -lpam... " >&6; }
29467 if eval test \${$as_ac_Lib+y}
29468 then :
29469 printf %s "(cached) " >&6
29470 else case e in #(
29471 e) ac_check_lib_save_LIBS=$LIBS
29472 LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
29473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29474 /* end confdefs.h. */
29475
29476 /* Override any GCC internal prototype to avoid an error.
29477 Use char because int might match the return type of a GCC
29478 builtin and then its argument prototype would still apply.
29479 The 'extern "C"' is for builds by C++ compilers;
29480 although this is not generally supported in C code supporting it here
29481 has little cost and some practical benefit (sr 110532). */
29482 #ifdef __cplusplus
29483 extern "C"
29484 #endif
29485 char pam_start (void);
29486 int
29487 main (void)
29488 {
29489 return pam_start ();
29490 ;
29491 return 0;
29492 }
29493 _ACEOF
29494 if ac_fn_c_try_link "$LINENO"
29495 then :
29496 eval "$as_ac_Lib=yes"
29497 else case e in #(
29498 e) eval "$as_ac_Lib=no" ;;
29499 esac
29500 fi
29501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29502 conftest$ac_exeext conftest.$ac_ext
29503 LIBS=$ac_check_lib_save_LIBS ;;
29504 esac
29505 fi
29506 eval ac_res=\$$as_ac_Lib
29507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29508 printf "%s\n" "$ac_res" >&6; }
29509 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
29510 then :
29511 found_pam_lib=yes
29512 fi
29513
29514 #
29515 # Some PAM implementations (macOS for example) put the PAM headers
29516 # in /usr/include/pam instead of /usr/include/security...
29517 #
29518 found_pam_hdrs=no
29519 for ac_header in security/pam_appl.h pam/pam_appl.h
29520 do :
29521 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
29522 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29523 if eval test \"x\$"$as_ac_Header"\" = x"yes"
29524 then :
29525 cat >>confdefs.h <<_ACEOF
29526 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
29527 _ACEOF
29528 found_pam_hdrs=yes; break
29529 fi
29530
29531 done
29532 if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"
29533 then :
29534
29535 # Found both PAM libs and headers
29536 with_pam=yes
29537
29538 elif test "$with_pam" = "yes"
29539 then :
29540
29541 if test "$found_pam_lib" = "no"
29542 then :
29543
29544 as_fn_error $? "--with-pam specified but unable to locate PAM development library." "$LINENO" 5
29545
29546 fi
29547 if test "$found_pam_hdrs" = "no"
29548 then :
29549
29550 as_fn_error $? "--with-pam specified but unable to locate PAM development headers." "$LINENO" 5
29551
29552 fi
29553
29554 elif test "$found_pam_lib" != "$found_pam_hdrs"
29555 then :
29556
29557 if test "$found_pam_lib" = "no"
29558 then :
29559
29560 as_fn_error $? "found PAM headers but no PAM development library; specify --without-pam to build without PAM" "$LINENO" 5
29561
29562 fi
29563 if test "$found_pam_hdrs" = "no"
29564 then :
29565
29566 as_fn_error $? "found PAM library but no PAM development headers; specify --without-pam to build without PAM" "$LINENO" 5
29567
29568 fi
29569
29570 fi
29571
29572 if test "$with_pam" = "yes"
29573 then :
29574
29575 # Older PAM implementations lack pam_getenvlist
29576 OLIBS="$LIBS"
29577 LIBS="$LIBS -lpam $lt_cv_dlopen_libs"
29578 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
29579 if test "x$ac_cv_func_pam_getenvlist" = xyes
29580 then :
29581 printf "%s\n" "#define HAVE_PAM_GETENVLIST 1" >>confdefs.h
29582
29583 fi
29584
29585 LIBS="$OLIBS"
29586
29587 # We already link with -ldl if needed (see LIBDL below)
29588 SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
29589 printf "%s\n" "#define HAVE_PAM 1" >>confdefs.h
29590
29591 AUTH_OBJS="$AUTH_OBJS pam.lo";
29592 AUTH_EXCL=PAM
29593
29594
29595 # Check whether --with-pam-login was given.
29596 if test ${with_pam_login+y}
29597 then :
29598 withval=$with_pam_login; case $with_pam_login in
29599 yes) printf "%s\n" "#define HAVE_PAM_LOGIN 1" >>confdefs.h
29600
29601 pam_login_service="sudo-i"
29602 ;;
29603 no) ;;
29604 *) as_fn_error $? "--with-pam-login does not take an argument." "$LINENO" 5
29605 ;;
29606 esac
29607 fi
29608
29609
29610 # Check whether --enable-pam_session was given.
29611 if test ${enable_pam_session+y}
29612 then :
29613 enableval=$enable_pam_session; case "$enableval" in
29614 yes) ;;
29615 no) printf "%s\n" "#define NO_PAM_SESSION 1" >>confdefs.h
29616
29617 pam_session=off
29618 ;;
29619 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring unknown argument to --enable-pam-session: $enableval" >&5
29620 printf "%s\n" "$as_me: WARNING: ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
29621 ;;
29622 esac
29623 fi
29624
29625
29626 fi
29627
29628 fi
29629
29630 if test ${with_aixauth-'no'} != "no"
29631 then :
29632
29633
29634 for ac_func in authenticate
29635 do :
29636 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
29637 if test "x$ac_cv_func_authenticate" = xyes
29638 then :
29639 printf "%s\n" "#define HAVE_AUTHENTICATE 1" >>confdefs.h
29640 with_aixauth=yes
29641 fi
29642
29643 done
29644 if test "${with_aixauth}" = "yes"
29645 then :
29646
29647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
29648 printf "%s\n" "$as_me: using AIX general authentication" >&6;}
29649 printf "%s\n" "#define HAVE_AIXAUTH 1" >>confdefs.h
29650
29651 AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
29652 SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
29653 AUTH_EXCL=AIX_AUTH
29654
29655 fi
29656
29657 fi
29658
29659 if test ${with_bsdauth-'no'} != "no"
29660 then :
29661
29662 ac_fn_c_check_header_compile "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
29663 if test "x$ac_cv_header_bsd_auth_h" = xyes
29664 then :
29665 printf "%s\n" "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
29666
29667 AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
29668 BSDAUTH_USAGE='[-a type] '
29669 AUTH_EXCL=BSD_AUTH; BAMAN=1
29670 else case e in #(
29671 e) as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5 ;;
29672 esac
29673 fi
29674
29675
29676 fi
29677
29678 if test ${CHECKSIA-'false'} = "true"
29679 then :
29680
29681
29682 for ac_func in sia_ses_init
29683 do :
29684 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
29685 if test "x$ac_cv_func_sia_ses_init" = xyes
29686 then :
29687 printf "%s\n" "#define HAVE_SIA_SES_INIT 1" >>confdefs.h
29688 found=true
29689 else case e in #(
29690 e) found=false ;;
29691 esac
29692 fi
29693
29694 done
29695 if test "$found" = "true"
29696 then :
29697
29698 AUTH_EXCL=SIA
29699 AUTH_OBJS="$AUTH_OBJS sia.lo"
29700
29701 fi
29702
29703 fi
29704
29705 if test ${with_fwtk-'no'} != "no"
29706 then :
29707
29708 if test "$with_fwtk" != "yes"
29709 then :
29710
29711
29712
29713 if test ${SUDOERS_LDFLAGS+y}
29714 then :
29715
29716 case " $SUDOERS_LDFLAGS " in #(
29717 *" -L${with_fwtk} "*) :
29718 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -L\${with_fwtk}"; } >&5
29719 (: SUDOERS_LDFLAGS already contains -L${with_fwtk}) 2>&5
29720 ac_status=$?
29721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29722 test $ac_status = 0; } ;; #(
29723 *) :
29724
29725 as_fn_append SUDOERS_LDFLAGS " -L${with_fwtk}"
29726 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
29727 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
29728 ac_status=$?
29729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29730 test $ac_status = 0; }
29731 ;;
29732 esac
29733
29734 else case e in #(
29735 e)
29736 SUDOERS_LDFLAGS=-L${with_fwtk}
29737 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
29738 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
29739 ac_status=$?
29740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29741 test $ac_status = 0; }
29742 ;;
29743 esac
29744 fi
29745
29746 if test X"$enable_rpath" = X"yes"; then
29747
29748 if test ${SUDOERS_LDFLAGS_R+y}
29749 then :
29750
29751 case " $SUDOERS_LDFLAGS_R " in #(
29752 *" -R${with_fwtk} "*) :
29753 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R already contains -R\${with_fwtk}"; } >&5
29754 (: SUDOERS_LDFLAGS_R already contains -R${with_fwtk}) 2>&5
29755 ac_status=$?
29756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29757 test $ac_status = 0; } ;; #(
29758 *) :
29759
29760 as_fn_append SUDOERS_LDFLAGS_R " -R${with_fwtk}"
29761 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
29762 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
29763 ac_status=$?
29764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29765 test $ac_status = 0; }
29766 ;;
29767 esac
29768
29769 else case e in #(
29770 e)
29771 SUDOERS_LDFLAGS_R=-R${with_fwtk}
29772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
29773 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
29774 ac_status=$?
29775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29776 test $ac_status = 0; }
29777 ;;
29778 esac
29779 fi
29780
29781 fi
29782
29783
29784 if test ${CPPFLAGS+y}
29785 then :
29786
29787 case " $CPPFLAGS " in #(
29788 *" -I${with_fwtk} "*) :
29789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${with_fwtk}"; } >&5
29790 (: CPPFLAGS already contains -I${with_fwtk}) 2>&5
29791 ac_status=$?
29792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29793 test $ac_status = 0; } ;; #(
29794 *) :
29795
29796 as_fn_append CPPFLAGS " -I${with_fwtk}"
29797 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
29798 (: CPPFLAGS="$CPPFLAGS") 2>&5
29799 ac_status=$?
29800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29801 test $ac_status = 0; }
29802 ;;
29803 esac
29804
29805 else case e in #(
29806 e)
29807 CPPFLAGS=-I${with_fwtk}
29808 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
29809 (: CPPFLAGS="$CPPFLAGS") 2>&5
29810 ac_status=$?
29811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29812 test $ac_status = 0; }
29813 ;;
29814 esac
29815 fi
29816
29817 with_fwtk=yes
29818
29819 fi
29820 SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
29821 AUTH_OBJS="$AUTH_OBJS fwtk.lo"
29822
29823 fi
29824
29825 if test ${with_SecurID-'no'} != "no"
29826 then :
29827
29828 if test "$with_SecurID" != "yes"
29829 then :
29830
29831 elif test -d /usr/ace/examples
29832 then :
29833
29834 with_SecurID=/usr/ace/examples
29835
29836 else case e in #(
29837 e)
29838 with_SecurID=/usr/ace
29839 ;;
29840 esac
29841 fi
29842
29843 if test ${CPPFLAGS+y}
29844 then :
29845
29846 case " $CPPFLAGS " in #(
29847 *" -I${with_SecurID} "*) :
29848 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${with_SecurID}"; } >&5
29849 (: CPPFLAGS already contains -I${with_SecurID}) 2>&5
29850 ac_status=$?
29851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29852 test $ac_status = 0; } ;; #(
29853 *) :
29854
29855 as_fn_append CPPFLAGS " -I${with_SecurID}"
29856 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
29857 (: CPPFLAGS="$CPPFLAGS") 2>&5
29858 ac_status=$?
29859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29860 test $ac_status = 0; }
29861 ;;
29862 esac
29863
29864 else case e in #(
29865 e)
29866 CPPFLAGS=-I${with_SecurID}
29867 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
29868 (: CPPFLAGS="$CPPFLAGS") 2>&5
29869 ac_status=$?
29870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29871 test $ac_status = 0; }
29872 ;;
29873 esac
29874 fi
29875
29876
29877
29878 if test ${SUDOERS_LDFLAGS+y}
29879 then :
29880
29881 case " $SUDOERS_LDFLAGS " in #(
29882 *" -L${with_SecurID} "*) :
29883 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -L\${with_SecurID}"; } >&5
29884 (: SUDOERS_LDFLAGS already contains -L${with_SecurID}) 2>&5
29885 ac_status=$?
29886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29887 test $ac_status = 0; } ;; #(
29888 *) :
29889
29890 as_fn_append SUDOERS_LDFLAGS " -L${with_SecurID}"
29891 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
29892 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
29893 ac_status=$?
29894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29895 test $ac_status = 0; }
29896 ;;
29897 esac
29898
29899 else case e in #(
29900 e)
29901 SUDOERS_LDFLAGS=-L${with_SecurID}
29902 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
29903 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
29904 ac_status=$?
29905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29906 test $ac_status = 0; }
29907 ;;
29908 esac
29909 fi
29910
29911 if test X"$enable_rpath" = X"yes"; then
29912
29913 if test ${SUDOERS_LDFLAGS_R+y}
29914 then :
29915
29916 case " $SUDOERS_LDFLAGS_R " in #(
29917 *" -R${with_SecurID} "*) :
29918 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R already contains -R\${with_SecurID}"; } >&5
29919 (: SUDOERS_LDFLAGS_R already contains -R${with_SecurID}) 2>&5
29920 ac_status=$?
29921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29922 test $ac_status = 0; } ;; #(
29923 *) :
29924
29925 as_fn_append SUDOERS_LDFLAGS_R " -R${with_SecurID}"
29926 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
29927 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
29928 ac_status=$?
29929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29930 test $ac_status = 0; }
29931 ;;
29932 esac
29933
29934 else case e in #(
29935 e)
29936 SUDOERS_LDFLAGS_R=-R${with_SecurID}
29937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
29938 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
29939 ac_status=$?
29940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29941 test $ac_status = 0; }
29942 ;;
29943 esac
29944 fi
29945
29946 fi
29947
29948 SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
29949 AUTH_OBJS="$AUTH_OBJS securid5.lo";
29950
29951 fi
29952
29953
29954 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"
29955 then :
29956
29957 for auth in $AUTH_DEF; do
29958 case $auth in
29959 passwd) : ${with_passwd='maybe'};;
29960 esac
29961 done
29962
29963 fi
29964
29965 if test ${with_kerb5-'no'} != "no"
29966 then :
29967
29968 # Extract the first word of "krb5-config", so it can be a program name with args.
29969 set dummy krb5-config; ac_word=$2
29970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29971 printf %s "checking for $ac_word... " >&6; }
29972 if test ${ac_cv_prog_KRB5CONFIG+y}
29973 then :
29974 printf %s "(cached) " >&6
29975 else case e in #(
29976 e) if test -n "$KRB5CONFIG"; then
29977 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
29978 else
29979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29980 for as_dir in $PATH
29981 do
29982 IFS=$as_save_IFS
29983 case $as_dir in #(((
29984 '') as_dir=./ ;;
29985 */) ;;
29986 *) as_dir=$as_dir/ ;;
29987 esac
29988 for ac_exec_ext in '' $ac_executable_extensions; do
29989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29990 ac_cv_prog_KRB5CONFIG="yes"
29991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29992 break 2
29993 fi
29994 done
29995 done
29996 IFS=$as_save_IFS
29997
29998 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
29999 fi ;;
30000 esac
30001 fi
30002 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
30003 if test -n "$KRB5CONFIG"; then
30004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
30005 printf "%s\n" "$KRB5CONFIG" >&6; }
30006 else
30007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30008 printf "%s\n" "no" >&6; }
30009 fi
30010
30011
30012 if test -n "$KRB5CONFIG"
30013 then :
30014
30015 printf "%s\n" "#define HAVE_KERB5 1" >>confdefs.h
30016
30017 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
30018 for f in `krb5-config --cflags`; do
30019
30020 if test ${CPPFLAGS+y}
30021 then :
30022
30023 case " $CPPFLAGS " in #(
30024 *" $f "*) :
30025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains \$f"; } >&5
30026 (: CPPFLAGS already contains $f) 2>&5
30027 ac_status=$?
30028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30029 test $ac_status = 0; } ;; #(
30030 *) :
30031
30032 as_fn_append CPPFLAGS " $f"
30033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
30034 (: CPPFLAGS="$CPPFLAGS") 2>&5
30035 ac_status=$?
30036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30037 test $ac_status = 0; }
30038 ;;
30039 esac
30040
30041 else case e in #(
30042 e)
30043 CPPFLAGS=$f
30044 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
30045 (: CPPFLAGS="$CPPFLAGS") 2>&5
30046 ac_status=$?
30047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30048 test $ac_status = 0; }
30049 ;;
30050 esac
30051 fi
30052
30053 done
30054 SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
30055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
30056 printf %s "checking whether we are using Heimdal... " >&6; }
30057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30058 /* end confdefs.h. */
30059 #include <krb5.h>
30060 int
30061 main (void)
30062 {
30063 const char *tmp = heimdal_version;
30064 ;
30065 return 0;
30066 }
30067 _ACEOF
30068 if ac_fn_c_try_compile "$LINENO"
30069 then :
30070
30071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30072 printf "%s\n" "yes" >&6; }
30073 printf "%s\n" "#define HAVE_HEIMDAL 1" >>confdefs.h
30074
30075
30076 else case e in #(
30077 e)
30078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30079 printf "%s\n" "no" >&6; }
30080
30081 ;;
30082 esac
30083 fi
30084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30085
30086 else case e in #(
30087 e)
30088 printf "%s\n" "#define HAVE_KERB5 1" >>confdefs.h
30089
30090 if test "$with_kerb5" = "yes"
30091 then :
30092
30093 found=no
30094 O_CPPFLAGS="$CPPFLAGS"
30095 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
30096 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
30097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30098 /* end confdefs.h. */
30099 #include <krb5.h>
30100 int
30101 main (void)
30102 {
30103
30104 ;
30105 return 0;
30106 }
30107 _ACEOF
30108 if ac_fn_c_try_cpp "$LINENO"
30109 then :
30110 found=yes; break
30111 fi
30112 rm -f conftest.err conftest.i conftest.$ac_ext
30113 done
30114 if test X"$found" = X"no"
30115 then :
30116
30117 CPPFLAGS="$O_CPPFLAGS"
30118 { printf "%s\n" "$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
30119 printf "%s\n" "$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;}
30120
30121 fi
30122
30123 else case e in #(
30124 e)
30125
30126
30127 if test ${SUDOERS_LDFLAGS+y}
30128 then :
30129
30130 case " $SUDOERS_LDFLAGS " in #(
30131 *" -L${with_kerb5}/lib "*) :
30132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -L\${with_kerb5}/lib"; } >&5
30133 (: SUDOERS_LDFLAGS already contains -L${with_kerb5}/lib) 2>&5
30134 ac_status=$?
30135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30136 test $ac_status = 0; } ;; #(
30137 *) :
30138
30139 as_fn_append SUDOERS_LDFLAGS " -L${with_kerb5}/lib"
30140 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
30141 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
30142 ac_status=$?
30143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30144 test $ac_status = 0; }
30145 ;;
30146 esac
30147
30148 else case e in #(
30149 e)
30150 SUDOERS_LDFLAGS=-L${with_kerb5}/lib
30151 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
30152 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
30153 ac_status=$?
30154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30155 test $ac_status = 0; }
30156 ;;
30157 esac
30158 fi
30159
30160 if test X"$enable_rpath" = X"yes"; then
30161
30162 if test ${SUDOERS_LDFLAGS_R+y}
30163 then :
30164
30165 case " $SUDOERS_LDFLAGS_R " in #(
30166 *" -R${with_kerb5}/lib "*) :
30167 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R already contains -R\${with_kerb5}/lib"; } >&5
30168 (: SUDOERS_LDFLAGS_R already contains -R${with_kerb5}/lib) 2>&5
30169 ac_status=$?
30170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30171 test $ac_status = 0; } ;; #(
30172 *) :
30173
30174 as_fn_append SUDOERS_LDFLAGS_R " -R${with_kerb5}/lib"
30175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
30176 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
30177 ac_status=$?
30178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30179 test $ac_status = 0; }
30180 ;;
30181 esac
30182
30183 else case e in #(
30184 e)
30185 SUDOERS_LDFLAGS_R=-R${with_kerb5}/lib
30186 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
30187 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
30188 ac_status=$?
30189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30190 test $ac_status = 0; }
30191 ;;
30192 esac
30193 fi
30194
30195 fi
30196
30197
30198 if test ${CPPFLAGS+y}
30199 then :
30200
30201 case " $CPPFLAGS " in #(
30202 *" -I${with_kerb5}/include "*) :
30203 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${with_kerb5}/include"; } >&5
30204 (: CPPFLAGS already contains -I${with_kerb5}/include) 2>&5
30205 ac_status=$?
30206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30207 test $ac_status = 0; } ;; #(
30208 *) :
30209
30210 as_fn_append CPPFLAGS " -I${with_kerb5}/include"
30211 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
30212 (: CPPFLAGS="$CPPFLAGS") 2>&5
30213 ac_status=$?
30214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30215 test $ac_status = 0; }
30216 ;;
30217 esac
30218
30219 else case e in #(
30220 e)
30221 CPPFLAGS=-I${with_kerb5}/include
30222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
30223 (: CPPFLAGS="$CPPFLAGS") 2>&5
30224 ac_status=$?
30225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30226 test $ac_status = 0; }
30227 ;;
30228 esac
30229 fi
30230
30231 ;;
30232 esac
30233 fi
30234
30235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
30236 printf %s "checking whether we are using Heimdal... " >&6; }
30237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30238 /* end confdefs.h. */
30239 #include <krb5.h>
30240 int
30241 main (void)
30242 {
30243 const char *tmp = heimdal_version;
30244 ;
30245 return 0;
30246 }
30247 _ACEOF
30248 if ac_fn_c_try_compile "$LINENO"
30249 then :
30250
30251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30252 printf "%s\n" "yes" >&6; }
30253 printf "%s\n" "#define HAVE_HEIMDAL 1" >>confdefs.h
30254
30255 # XXX - need to check whether -lcrypo is needed!
30256 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
30257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
30258 printf %s "checking for main in -lroken... " >&6; }
30259 if test ${ac_cv_lib_roken_main+y}
30260 then :
30261 printf %s "(cached) " >&6
30262 else case e in #(
30263 e) ac_check_lib_save_LIBS=$LIBS
30264 LIBS="-lroken $LIBS"
30265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30266 /* end confdefs.h. */
30267
30268
30269 int
30270 main (void)
30271 {
30272 return main ();
30273 ;
30274 return 0;
30275 }
30276 _ACEOF
30277 if ac_fn_c_try_link "$LINENO"
30278 then :
30279 ac_cv_lib_roken_main=yes
30280 else case e in #(
30281 e) ac_cv_lib_roken_main=no ;;
30282 esac
30283 fi
30284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30285 conftest$ac_exeext conftest.$ac_ext
30286 LIBS=$ac_check_lib_save_LIBS ;;
30287 esac
30288 fi
30289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
30290 printf "%s\n" "$ac_cv_lib_roken_main" >&6; }
30291 if test "x$ac_cv_lib_roken_main" = xyes
30292 then :
30293 SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
30294 fi
30295
30296
30297 else case e in #(
30298 e)
30299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30300 printf "%s\n" "no" >&6; }
30301 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
30302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
30303 printf %s "checking for main in -lkrb5support... " >&6; }
30304 if test ${ac_cv_lib_krb5support_main+y}
30305 then :
30306 printf %s "(cached) " >&6
30307 else case e in #(
30308 e) ac_check_lib_save_LIBS=$LIBS
30309 LIBS="-lkrb5support $LIBS"
30310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30311 /* end confdefs.h. */
30312
30313
30314 int
30315 main (void)
30316 {
30317 return main ();
30318 ;
30319 return 0;
30320 }
30321 _ACEOF
30322 if ac_fn_c_try_link "$LINENO"
30323 then :
30324 ac_cv_lib_krb5support_main=yes
30325 else case e in #(
30326 e) ac_cv_lib_krb5support_main=no ;;
30327 esac
30328 fi
30329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30330 conftest$ac_exeext conftest.$ac_ext
30331 LIBS=$ac_check_lib_save_LIBS ;;
30332 esac
30333 fi
30334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
30335 printf "%s\n" "$ac_cv_lib_krb5support_main" >&6; }
30336 if test "x$ac_cv_lib_krb5support_main" = xyes
30337 then :
30338 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
30339 fi
30340
30341 ;;
30342 esac
30343 fi
30344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30345 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
30346 ;;
30347 esac
30348 fi
30349 _LIBS="$LIBS"
30350 LIBS="${LIBS} ${SUDOERS_LIBS}"
30351 ac_fn_c_check_func "$LINENO" "krb5_verify_user" "ac_cv_func_krb5_verify_user"
30352 if test "x$ac_cv_func_krb5_verify_user" = xyes
30353 then :
30354 printf "%s\n" "#define HAVE_KRB5_VERIFY_USER 1" >>confdefs.h
30355
30356 fi
30357 ac_fn_c_check_func "$LINENO" "krb5_init_secure_context" "ac_cv_func_krb5_init_secure_context"
30358 if test "x$ac_cv_func_krb5_init_secure_context" = xyes
30359 then :
30360 printf "%s\n" "#define HAVE_KRB5_INIT_SECURE_CONTEXT 1" >>confdefs.h
30361
30362 fi
30363
30364
30365 for ac_func in krb5_get_init_creds_opt_alloc
30366 do :
30367 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
30368 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes
30369 then :
30370 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1" >>confdefs.h
30371
30372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
30373 printf %s "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
30374 if test ${sudo_cv_krb5_get_init_creds_opt_free_two_args+y}
30375 then :
30376 printf %s "(cached) " >&6
30377 else case e in #(
30378 e)
30379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30380 /* end confdefs.h. */
30381 #include <krb5.h>
30382 int
30383 main (void)
30384 {
30385 krb5_get_init_creds_opt_free(NULL, NULL);
30386
30387 ;
30388 return 0;
30389 }
30390 _ACEOF
30391 if ac_fn_c_try_compile "$LINENO"
30392 then :
30393 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
30394 else case e in #(
30395 e) sudo_cv_krb5_get_init_creds_opt_free_two_args=no
30396 ;;
30397 esac
30398 fi
30399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30400
30401 ;;
30402 esac
30403 fi
30404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
30405 printf "%s\n" "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
30406
30407 fi
30408
30409 done
30410 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"
30411 then :
30412
30413 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
30414
30415
30416 fi
30417 LIBS="$_LIBS"
30418 # Check whether --enable-kerb5-instance was given.
30419 if test ${enable_kerb5_instance+y}
30420 then :
30421 enableval=$enable_kerb5_instance; case "$enableval" in
30422 yes) as_fn_error $? "must give --enable-kerb5-instance an argument." "$LINENO" 5
30423 ;;
30424 no) ;;
30425 *) cat >>confdefs.h <<EOF
30426 #define SUDO_KRB5_INSTANCE "$enableval"
30427 EOF
30428
30429 ;;
30430 esac
30431 fi
30432
30433
30434 fi
30435
30436 if test ${with_AFS-'no'} = "yes"
30437 then :
30438
30439 # looks like the "standard" place for AFS libs is /usr/afsws/lib
30440 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
30441 for i in $AFSLIBDIRS; do
30442 if test -d ${i}
30443 then :
30444
30445
30446
30447 if test ${SUDOERS_LDFLAGS+y}
30448 then :
30449
30450 case " $SUDOERS_LDFLAGS " in #(
30451 *" -L$i "*) :
30452 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -L\$i"; } >&5
30453 (: SUDOERS_LDFLAGS already contains -L$i) 2>&5
30454 ac_status=$?
30455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30456 test $ac_status = 0; } ;; #(
30457 *) :
30458
30459 as_fn_append SUDOERS_LDFLAGS " -L$i"
30460 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
30461 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
30462 ac_status=$?
30463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30464 test $ac_status = 0; }
30465 ;;
30466 esac
30467
30468 else case e in #(
30469 e)
30470 SUDOERS_LDFLAGS=-L$i
30471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
30472 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
30473 ac_status=$?
30474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30475 test $ac_status = 0; }
30476 ;;
30477 esac
30478 fi
30479
30480 if test X"$enable_rpath" = X"yes"; then
30481
30482 if test ${SUDOERS_LDFLAGS_R+y}
30483 then :
30484
30485 case " $SUDOERS_LDFLAGS_R " in #(
30486 *" -R$i "*) :
30487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R already contains -R\$i"; } >&5
30488 (: SUDOERS_LDFLAGS_R already contains -R$i) 2>&5
30489 ac_status=$?
30490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30491 test $ac_status = 0; } ;; #(
30492 *) :
30493
30494 as_fn_append SUDOERS_LDFLAGS_R " -R$i"
30495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
30496 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
30497 ac_status=$?
30498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30499 test $ac_status = 0; }
30500 ;;
30501 esac
30502
30503 else case e in #(
30504 e)
30505 SUDOERS_LDFLAGS_R=-R$i
30506 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
30507 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
30508 ac_status=$?
30509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30510 test $ac_status = 0; }
30511 ;;
30512 esac
30513 fi
30514
30515 fi
30516
30517 FOUND_AFSLIBDIR=true
30518
30519 fi
30520 done
30521 if test -z "$FOUND_AFSLIBDIR"
30522 then :
30523
30524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&5
30525 printf "%s\n" "$as_me: WARNING: unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
30526
30527 fi
30528
30529 # Order is important here. Note that we build AFS_LIBS from right to left
30530 # since AFS_LIBS may be initialized with BSD compat libs that must go last
30531 AFS_LIBS="-laudit ${AFS_LIBS}"
30532 for i in $AFSLIBDIRS; do
30533 if test -f ${i}/util.a
30534 then :
30535
30536 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
30537 FOUND_UTIL_A=true
30538 break;
30539
30540 fi
30541 done
30542 if test -z "$FOUND_UTIL_A"
30543 then :
30544
30545 AFS_LIBS="-lutil ${AFS_LIBS}"
30546
30547 fi
30548 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
30549
30550 # AFS includes may live in /usr/include on some machines...
30551 for i in /usr/afsws/include; do
30552 if test -d ${i}
30553 then :
30554
30555
30556 if test ${CPPFLAGS+y}
30557 then :
30558
30559 case " $CPPFLAGS " in #(
30560 *" -I${i} "*) :
30561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${i}"; } >&5
30562 (: CPPFLAGS already contains -I${i}) 2>&5
30563 ac_status=$?
30564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30565 test $ac_status = 0; } ;; #(
30566 *) :
30567
30568 as_fn_append CPPFLAGS " -I${i}"
30569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
30570 (: CPPFLAGS="$CPPFLAGS") 2>&5
30571 ac_status=$?
30572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30573 test $ac_status = 0; }
30574 ;;
30575 esac
30576
30577 else case e in #(
30578 e)
30579 CPPFLAGS=-I${i}
30580 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
30581 (: CPPFLAGS="$CPPFLAGS") 2>&5
30582 ac_status=$?
30583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30584 test $ac_status = 0; }
30585 ;;
30586 esac
30587 fi
30588
30589 FOUND_AFSINCDIR=true
30590
30591 fi
30592 done
30593
30594 if test -z "$FOUND_AFSLIBDIR"
30595 then :
30596
30597 { printf "%s\n" "$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
30598 printf "%s\n" "$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;}
30599
30600 fi
30601
30602 AUTH_OBJS="$AUTH_OBJS afs.lo"
30603
30604 fi
30605
30606 if test ${with_DCE-'no'} = "yes"
30607 then :
30608
30609 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
30610 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
30611 AUTH_OBJS="$AUTH_OBJS dce.lo"
30612
30613 fi
30614
30615 if test "${with_skey-'no'}" = "yes"
30616 then :
30617
30618 O_LDFLAGS="$LDFLAGS"
30619 if test "$with_skey" != "yes"
30620 then :
30621
30622
30623 if test ${CPPFLAGS+y}
30624 then :
30625
30626 case " $CPPFLAGS " in #(
30627 *" -I${with_skey}/include "*) :
30628 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${with_skey}/include"; } >&5
30629 (: CPPFLAGS already contains -I${with_skey}/include) 2>&5
30630 ac_status=$?
30631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30632 test $ac_status = 0; } ;; #(
30633 *) :
30634
30635 as_fn_append CPPFLAGS " -I${with_skey}/include"
30636 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
30637 (: CPPFLAGS="$CPPFLAGS") 2>&5
30638 ac_status=$?
30639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30640 test $ac_status = 0; }
30641 ;;
30642 esac
30643
30644 else case e in #(
30645 e)
30646 CPPFLAGS=-I${with_skey}/include
30647 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
30648 (: CPPFLAGS="$CPPFLAGS") 2>&5
30649 ac_status=$?
30650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30651 test $ac_status = 0; }
30652 ;;
30653 esac
30654 fi
30655
30656 LDFLAGS="$LDFLAGS -L${with_skey}/lib"
30657
30658
30659 if test ${SUDOERS_LDFLAGS+y}
30660 then :
30661
30662 case " $SUDOERS_LDFLAGS " in #(
30663 *" -L${with_skey}/lib "*) :
30664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -L\${with_skey}/lib"; } >&5
30665 (: SUDOERS_LDFLAGS already contains -L${with_skey}/lib) 2>&5
30666 ac_status=$?
30667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30668 test $ac_status = 0; } ;; #(
30669 *) :
30670
30671 as_fn_append SUDOERS_LDFLAGS " -L${with_skey}/lib"
30672 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
30673 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
30674 ac_status=$?
30675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30676 test $ac_status = 0; }
30677 ;;
30678 esac
30679
30680 else case e in #(
30681 e)
30682 SUDOERS_LDFLAGS=-L${with_skey}/lib
30683 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
30684 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
30685 ac_status=$?
30686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30687 test $ac_status = 0; }
30688 ;;
30689 esac
30690 fi
30691
30692 if test X"$enable_rpath" = X"yes"; then
30693
30694 if test ${SUDOERS_LDFLAGS_R+y}
30695 then :
30696
30697 case " $SUDOERS_LDFLAGS_R " in #(
30698 *" -R${with_skey}/lib "*) :
30699 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R already contains -R\${with_skey}/lib"; } >&5
30700 (: SUDOERS_LDFLAGS_R already contains -R${with_skey}/lib) 2>&5
30701 ac_status=$?
30702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30703 test $ac_status = 0; } ;; #(
30704 *) :
30705
30706 as_fn_append SUDOERS_LDFLAGS_R " -R${with_skey}/lib"
30707 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
30708 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
30709 ac_status=$?
30710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30711 test $ac_status = 0; }
30712 ;;
30713 esac
30714
30715 else case e in #(
30716 e)
30717 SUDOERS_LDFLAGS_R=-R${with_skey}/lib
30718 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
30719 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
30720 ac_status=$?
30721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30722 test $ac_status = 0; }
30723 ;;
30724 esac
30725 fi
30726
30727 fi
30728
30729 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
30730 "
30731 if test "x$ac_cv_header_skey_h" = xyes
30732 then :
30733 found=yes
30734 else case e in #(
30735 e) found=no ;;
30736 esac
30737 fi
30738
30739
30740 else case e in #(
30741 e)
30742 found=no
30743 O_CPPFLAGS="$CPPFLAGS"
30744 for dir in "" "/usr/local" "/usr/contrib"; do
30745 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
30746 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
30747 "
30748 if test "x$ac_cv_header_skey_h" = xyes
30749 then :
30750 found=yes; break
30751 fi
30752
30753 done
30754 if test "$found" = "no" -o -z "$dir"
30755 then :
30756
30757 CPPFLAGS="$O_CPPFLAGS"
30758
30759 else case e in #(
30760 e)
30761 LDFLAGS="$LDFLAGS -L${dir}/lib"
30762
30763
30764 if test ${SUDOERS_LDFLAGS+y}
30765 then :
30766
30767 case " $SUDOERS_LDFLAGS " in #(
30768 *" -L${dir}/lib "*) :
30769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -L\${dir}/lib"; } >&5
30770 (: SUDOERS_LDFLAGS already contains -L${dir}/lib) 2>&5
30771 ac_status=$?
30772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30773 test $ac_status = 0; } ;; #(
30774 *) :
30775
30776 as_fn_append SUDOERS_LDFLAGS " -L${dir}/lib"
30777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
30778 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
30779 ac_status=$?
30780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30781 test $ac_status = 0; }
30782 ;;
30783 esac
30784
30785 else case e in #(
30786 e)
30787 SUDOERS_LDFLAGS=-L${dir}/lib
30788 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
30789 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
30790 ac_status=$?
30791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30792 test $ac_status = 0; }
30793 ;;
30794 esac
30795 fi
30796
30797 if test X"$enable_rpath" = X"yes"; then
30798
30799 if test ${SUDOERS_LDFLAGS_R+y}
30800 then :
30801
30802 case " $SUDOERS_LDFLAGS_R " in #(
30803 *" -R${dir}/lib "*) :
30804 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R already contains -R\${dir}/lib"; } >&5
30805 (: SUDOERS_LDFLAGS_R already contains -R${dir}/lib) 2>&5
30806 ac_status=$?
30807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30808 test $ac_status = 0; } ;; #(
30809 *) :
30810
30811 as_fn_append SUDOERS_LDFLAGS_R " -R${dir}/lib"
30812 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
30813 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
30814 ac_status=$?
30815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30816 test $ac_status = 0; }
30817 ;;
30818 esac
30819
30820 else case e in #(
30821 e)
30822 SUDOERS_LDFLAGS_R=-R${dir}/lib
30823 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
30824 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
30825 ac_status=$?
30826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30827 test $ac_status = 0; }
30828 ;;
30829 esac
30830 fi
30831
30832 fi
30833
30834 ;;
30835 esac
30836 fi
30837 if test "$found" = "no"
30838 then :
30839
30840 { printf "%s\n" "$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
30841 printf "%s\n" "$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;}
30842
30843 fi
30844 ;;
30845 esac
30846 fi
30847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
30848 printf %s "checking for main in -lskey... " >&6; }
30849 if test ${ac_cv_lib_skey_main+y}
30850 then :
30851 printf %s "(cached) " >&6
30852 else case e in #(
30853 e) ac_check_lib_save_LIBS=$LIBS
30854 LIBS="-lskey $LIBS"
30855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30856 /* end confdefs.h. */
30857
30858
30859 int
30860 main (void)
30861 {
30862 return main ();
30863 ;
30864 return 0;
30865 }
30866 _ACEOF
30867 if ac_fn_c_try_link "$LINENO"
30868 then :
30869 ac_cv_lib_skey_main=yes
30870 else case e in #(
30871 e) ac_cv_lib_skey_main=no ;;
30872 esac
30873 fi
30874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30875 conftest$ac_exeext conftest.$ac_ext
30876 LIBS=$ac_check_lib_save_LIBS ;;
30877 esac
30878 fi
30879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
30880 printf "%s\n" "$ac_cv_lib_skey_main" >&6; }
30881 if test "x$ac_cv_lib_skey_main" = xyes
30882 then :
30883 found=yes
30884 else case e in #(
30885 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&5
30886 printf "%s\n" "$as_me: WARNING: unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&2;} ;;
30887 esac
30888 fi
30889
30890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
30891 printf %s "checking for skeyaccess in -lskey... " >&6; }
30892 if test ${ac_cv_lib_skey_skeyaccess+y}
30893 then :
30894 printf %s "(cached) " >&6
30895 else case e in #(
30896 e) ac_check_lib_save_LIBS=$LIBS
30897 LIBS="-lskey $LIBS"
30898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30899 /* end confdefs.h. */
30900
30901 /* Override any GCC internal prototype to avoid an error.
30902 Use char because int might match the return type of a GCC
30903 builtin and then its argument prototype would still apply.
30904 The 'extern "C"' is for builds by C++ compilers;
30905 although this is not generally supported in C code supporting it here
30906 has little cost and some practical benefit (sr 110532). */
30907 #ifdef __cplusplus
30908 extern "C"
30909 #endif
30910 char skeyaccess (void);
30911 int
30912 main (void)
30913 {
30914 return skeyaccess ();
30915 ;
30916 return 0;
30917 }
30918 _ACEOF
30919 if ac_fn_c_try_link "$LINENO"
30920 then :
30921 ac_cv_lib_skey_skeyaccess=yes
30922 else case e in #(
30923 e) ac_cv_lib_skey_skeyaccess=no ;;
30924 esac
30925 fi
30926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30927 conftest$ac_exeext conftest.$ac_ext
30928 LIBS=$ac_check_lib_save_LIBS ;;
30929 esac
30930 fi
30931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
30932 printf "%s\n" "$ac_cv_lib_skey_skeyaccess" >&6; }
30933 if test "x$ac_cv_lib_skey_skeyaccess" = xyes
30934 then :
30935 printf "%s\n" "#define HAVE_SKEYACCESS 1" >>confdefs.h
30936
30937 fi
30938
30939
30940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
30941 printf %s "checking for RFC1938-compliant skeychallenge... " >&6; }
30942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30943 /* end confdefs.h. */
30944
30945 # include <stdio.h>
30946 # include <skey.h>
30947 int
30948 main (void)
30949 {
30950 skeychallenge(NULL, NULL, NULL, 0);
30951
30952 ;
30953 return 0;
30954 }
30955 _ACEOF
30956 if ac_fn_c_try_compile "$LINENO"
30957 then :
30958
30959 printf "%s\n" "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
30960
30961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30962 printf "%s\n" "yes" >&6; }
30963
30964 else case e in #(
30965 e)
30966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30967 printf "%s\n" "no" >&6; }
30968
30969 ;;
30970 esac
30971 fi
30972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30973
30974 LDFLAGS="$O_LDFLAGS"
30975 SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
30976 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
30977
30978 fi
30979
30980 if test "${with_opie-'no'}" = "yes"
30981 then :
30982
30983 O_LDFLAGS="$LDFLAGS"
30984 if test "$with_opie" != "yes"
30985 then :
30986
30987
30988 if test ${CPPFLAGS+y}
30989 then :
30990
30991 case " $CPPFLAGS " in #(
30992 *" -I${with_opie}/include "*) :
30993 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${with_opie}/include"; } >&5
30994 (: CPPFLAGS already contains -I${with_opie}/include) 2>&5
30995 ac_status=$?
30996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30997 test $ac_status = 0; } ;; #(
30998 *) :
30999
31000 as_fn_append CPPFLAGS " -I${with_opie}/include"
31001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
31002 (: CPPFLAGS="$CPPFLAGS") 2>&5
31003 ac_status=$?
31004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31005 test $ac_status = 0; }
31006 ;;
31007 esac
31008
31009 else case e in #(
31010 e)
31011 CPPFLAGS=-I${with_opie}/include
31012 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
31013 (: CPPFLAGS="$CPPFLAGS") 2>&5
31014 ac_status=$?
31015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31016 test $ac_status = 0; }
31017 ;;
31018 esac
31019 fi
31020
31021 LDFLAGS="$LDFLAGS -L${with_opie}/lib"
31022
31023
31024 if test ${SUDOERS_LDFLAGS+y}
31025 then :
31026
31027 case " $SUDOERS_LDFLAGS " in #(
31028 *" -L${with_opie}/lib "*) :
31029 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -L\${with_opie}/lib"; } >&5
31030 (: SUDOERS_LDFLAGS already contains -L${with_opie}/lib) 2>&5
31031 ac_status=$?
31032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31033 test $ac_status = 0; } ;; #(
31034 *) :
31035
31036 as_fn_append SUDOERS_LDFLAGS " -L${with_opie}/lib"
31037 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
31038 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
31039 ac_status=$?
31040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31041 test $ac_status = 0; }
31042 ;;
31043 esac
31044
31045 else case e in #(
31046 e)
31047 SUDOERS_LDFLAGS=-L${with_opie}/lib
31048 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
31049 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
31050 ac_status=$?
31051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31052 test $ac_status = 0; }
31053 ;;
31054 esac
31055 fi
31056
31057 if test X"$enable_rpath" = X"yes"; then
31058
31059 if test ${SUDOERS_LDFLAGS_R+y}
31060 then :
31061
31062 case " $SUDOERS_LDFLAGS_R " in #(
31063 *" -R${with_opie}/lib "*) :
31064 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R already contains -R\${with_opie}/lib"; } >&5
31065 (: SUDOERS_LDFLAGS_R already contains -R${with_opie}/lib) 2>&5
31066 ac_status=$?
31067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31068 test $ac_status = 0; } ;; #(
31069 *) :
31070
31071 as_fn_append SUDOERS_LDFLAGS_R " -R${with_opie}/lib"
31072 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
31073 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
31074 ac_status=$?
31075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31076 test $ac_status = 0; }
31077 ;;
31078 esac
31079
31080 else case e in #(
31081 e)
31082 SUDOERS_LDFLAGS_R=-R${with_opie}/lib
31083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
31084 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
31085 ac_status=$?
31086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31087 test $ac_status = 0; }
31088 ;;
31089 esac
31090 fi
31091
31092 fi
31093
31094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31095 /* end confdefs.h. */
31096 #include <opie.h>
31097 int
31098 main (void)
31099 {
31100
31101 ;
31102 return 0;
31103 }
31104 _ACEOF
31105 if ac_fn_c_try_cpp "$LINENO"
31106 then :
31107 found=yes
31108 else case e in #(
31109 e) found=no ;;
31110 esac
31111 fi
31112 rm -f conftest.err conftest.i conftest.$ac_ext
31113
31114 else case e in #(
31115 e)
31116 found=no
31117 O_CPPFLAGS="$CPPFLAGS"
31118 for dir in "" "/usr/local" "/usr/contrib"; do
31119 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
31120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31121 /* end confdefs.h. */
31122 #include <opie.h>
31123 int
31124 main (void)
31125 {
31126
31127 ;
31128 return 0;
31129 }
31130 _ACEOF
31131 if ac_fn_c_try_cpp "$LINENO"
31132 then :
31133 found=yes; break
31134 fi
31135 rm -f conftest.err conftest.i conftest.$ac_ext
31136 done
31137 if test "$found" = "no" -o -z "$dir"
31138 then :
31139
31140 CPPFLAGS="$O_CPPFLAGS"
31141
31142 else case e in #(
31143 e)
31144 LDFLAGS="$LDFLAGS -L${dir}/lib"
31145
31146
31147 if test ${SUDOERS_LDFLAGS+y}
31148 then :
31149
31150 case " $SUDOERS_LDFLAGS " in #(
31151 *" -L${dir}/lib "*) :
31152 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -L\${dir}/lib"; } >&5
31153 (: SUDOERS_LDFLAGS already contains -L${dir}/lib) 2>&5
31154 ac_status=$?
31155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31156 test $ac_status = 0; } ;; #(
31157 *) :
31158
31159 as_fn_append SUDOERS_LDFLAGS " -L${dir}/lib"
31160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
31161 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
31162 ac_status=$?
31163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31164 test $ac_status = 0; }
31165 ;;
31166 esac
31167
31168 else case e in #(
31169 e)
31170 SUDOERS_LDFLAGS=-L${dir}/lib
31171 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
31172 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
31173 ac_status=$?
31174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31175 test $ac_status = 0; }
31176 ;;
31177 esac
31178 fi
31179
31180 if test X"$enable_rpath" = X"yes"; then
31181
31182 if test ${SUDOERS_LDFLAGS_R+y}
31183 then :
31184
31185 case " $SUDOERS_LDFLAGS_R " in #(
31186 *" -R${dir}/lib "*) :
31187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R already contains -R\${dir}/lib"; } >&5
31188 (: SUDOERS_LDFLAGS_R already contains -R${dir}/lib) 2>&5
31189 ac_status=$?
31190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31191 test $ac_status = 0; } ;; #(
31192 *) :
31193
31194 as_fn_append SUDOERS_LDFLAGS_R " -R${dir}/lib"
31195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
31196 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
31197 ac_status=$?
31198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31199 test $ac_status = 0; }
31200 ;;
31201 esac
31202
31203 else case e in #(
31204 e)
31205 SUDOERS_LDFLAGS_R=-R${dir}/lib
31206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
31207 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
31208 ac_status=$?
31209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31210 test $ac_status = 0; }
31211 ;;
31212 esac
31213 fi
31214
31215 fi
31216
31217 ;;
31218 esac
31219 fi
31220 if test "$found" = "no"
31221 then :
31222
31223 { printf "%s\n" "$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
31224 printf "%s\n" "$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;}
31225
31226 fi
31227 ;;
31228 esac
31229 fi
31230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
31231 printf %s "checking for main in -lopie... " >&6; }
31232 if test ${ac_cv_lib_opie_main+y}
31233 then :
31234 printf %s "(cached) " >&6
31235 else case e in #(
31236 e) ac_check_lib_save_LIBS=$LIBS
31237 LIBS="-lopie $LIBS"
31238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31239 /* end confdefs.h. */
31240
31241
31242 int
31243 main (void)
31244 {
31245 return main ();
31246 ;
31247 return 0;
31248 }
31249 _ACEOF
31250 if ac_fn_c_try_link "$LINENO"
31251 then :
31252 ac_cv_lib_opie_main=yes
31253 else case e in #(
31254 e) ac_cv_lib_opie_main=no ;;
31255 esac
31256 fi
31257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31258 conftest$ac_exeext conftest.$ac_ext
31259 LIBS=$ac_check_lib_save_LIBS ;;
31260 esac
31261 fi
31262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
31263 printf "%s\n" "$ac_cv_lib_opie_main" >&6; }
31264 if test "x$ac_cv_lib_opie_main" = xyes
31265 then :
31266 found=yes
31267 else case e in #(
31268 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&5
31269 printf "%s\n" "$as_me: WARNING: unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&2;} ;;
31270 esac
31271 fi
31272
31273 LDFLAGS="$O_LDFLAGS"
31274 SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
31275 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
31276
31277 fi
31278
31279 if test ${with_passwd-'no'} != "no"
31280 then :
31281
31282 _LIBS="$LIBS"
31283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
31284 printf %s "checking for library containing crypt... " >&6; }
31285 if test ${ac_cv_search_crypt+y}
31286 then :
31287 printf %s "(cached) " >&6
31288 else case e in #(
31289 e) ac_func_search_save_LIBS=$LIBS
31290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31291 /* end confdefs.h. */
31292
31293 /* Override any GCC internal prototype to avoid an error.
31294 Use char because int might match the return type of a GCC
31295 builtin and then its argument prototype would still apply.
31296 The 'extern "C"' is for builds by C++ compilers;
31297 although this is not generally supported in C code supporting it here
31298 has little cost and some practical benefit (sr 110532). */
31299 #ifdef __cplusplus
31300 extern "C"
31301 #endif
31302 char crypt (void);
31303 int
31304 main (void)
31305 {
31306 return crypt ();
31307 ;
31308 return 0;
31309 }
31310 _ACEOF
31311 for ac_lib in '' crypt crypt_d ufc
31312 do
31313 if test -z "$ac_lib"; then
31314 ac_res="none required"
31315 else
31316 ac_res=-l$ac_lib
31317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31318 fi
31319 if ac_fn_c_try_link "$LINENO"
31320 then :
31321 ac_cv_search_crypt=$ac_res
31322 fi
31323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31324 conftest$ac_exeext
31325 if test ${ac_cv_search_crypt+y}
31326 then :
31327 break
31328 fi
31329 done
31330 if test ${ac_cv_search_crypt+y}
31331 then :
31332
31333 else case e in #(
31334 e) ac_cv_search_crypt=no ;;
31335 esac
31336 fi
31337 rm conftest.$ac_ext
31338 LIBS=$ac_func_search_save_LIBS ;;
31339 esac
31340 fi
31341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
31342 printf "%s\n" "$ac_cv_search_crypt" >&6; }
31343 ac_res=$ac_cv_search_crypt
31344 if test "$ac_res" != no
31345 then :
31346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31347
31348 test "${ac_cv_search_crypt}" != "none required" && shadow_libs="${shadow_libs} ${ac_cv_search_crypt}"
31349
31350 fi
31351
31352 if test "${ac_cv_search_crypt}" != "no"
31353 then :
31354
31355 printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
31356
31357
31358 fi
31359 LIBS="$_LIBS"
31360
31361 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"
31362 then :
31363
31364 _LIBS="$LIBS"
31365 LIBS="$LIBS $shadow_libs"
31366 found=no
31367 for func in $shadow_funcs; do
31368 as_ac_var=`printf "%s\n" "ac_cv_func_$func" | sed "$as_sed_sh"`
31369 ac_fn_c_check_func "$LINENO" "$func" "$as_ac_var"
31370 if eval test \"x\$"$as_ac_var"\" = x"yes"
31371 then :
31372
31373 case "$func" in
31374 dispcrypt)
31375 printf "%s\n" "#define HAVE_DISPCRYPT 1" >>confdefs.h
31376
31377 ;;
31378 getprpwnam)
31379 printf "%s\n" "#define HAVE_GETPRPWNAM 1" >>confdefs.h
31380
31381 SECUREWARE=1
31382 ;;
31383 getpwnam_shadow)
31384 printf "%s\n" "#define HAVE_GETPWNAM_SHADOW 1" >>confdefs.h
31385
31386 ;;
31387 getspnam)
31388 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
31389
31390 ;;
31391 iscomsec)
31392 printf "%s\n" "#define HAVE_ISCOMSEC 1" >>confdefs.h
31393
31394 ;;
31395 *)
31396 as_fn_error $? "unhandled shadow password function $func" "$LINENO" 5
31397 ;;
31398 esac
31399 found=yes
31400
31401 fi
31402
31403 done
31404 if test "$found" = "no"
31405 then :
31406
31407 shadow_libs=
31408
31409 fi
31410 CHECKSHADOW=false
31411 LIBS="$_LIBS"
31412
31413 fi
31414 if test "$CHECKSHADOW" = "true"
31415 then :
31416
31417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
31418 printf %s "checking for library containing getspnam... " >&6; }
31419 if test ${ac_cv_search_getspnam+y}
31420 then :
31421 printf %s "(cached) " >&6
31422 else case e in #(
31423 e) ac_func_search_save_LIBS=$LIBS
31424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31425 /* end confdefs.h. */
31426
31427 /* Override any GCC internal prototype to avoid an error.
31428 Use char because int might match the return type of a GCC
31429 builtin and then its argument prototype would still apply.
31430 The 'extern "C"' is for builds by C++ compilers;
31431 although this is not generally supported in C code supporting it here
31432 has little cost and some practical benefit (sr 110532). */
31433 #ifdef __cplusplus
31434 extern "C"
31435 #endif
31436 char getspnam (void);
31437 int
31438 main (void)
31439 {
31440 return getspnam ();
31441 ;
31442 return 0;
31443 }
31444 _ACEOF
31445 for ac_lib in '' gen shadow
31446 do
31447 if test -z "$ac_lib"; then
31448 ac_res="none required"
31449 else
31450 ac_res=-l$ac_lib
31451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31452 fi
31453 if ac_fn_c_try_link "$LINENO"
31454 then :
31455 ac_cv_search_getspnam=$ac_res
31456 fi
31457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31458 conftest$ac_exeext
31459 if test ${ac_cv_search_getspnam+y}
31460 then :
31461 break
31462 fi
31463 done
31464 if test ${ac_cv_search_getspnam+y}
31465 then :
31466
31467 else case e in #(
31468 e) ac_cv_search_getspnam=no ;;
31469 esac
31470 fi
31471 rm conftest.$ac_ext
31472 LIBS=$ac_func_search_save_LIBS ;;
31473 esac
31474 fi
31475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
31476 printf "%s\n" "$ac_cv_search_getspnam" >&6; }
31477 ac_res=$ac_cv_search_getspnam
31478 if test "$ac_res" != no
31479 then :
31480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31481
31482 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
31483
31484 test "${ac_cv_search_getspnam}" != "none required" && shadow_libs="${shadow_libs} ${ac_cv_search_getspnam}"
31485 CHECKSHADOW=false
31486
31487 fi
31488
31489
31490 fi
31491 if test "$CHECKSHADOW" = "true"
31492 then :
31493
31494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
31495 printf %s "checking for library containing getprpwnam... " >&6; }
31496 if test ${ac_cv_search_getprpwnam+y}
31497 then :
31498 printf %s "(cached) " >&6
31499 else case e in #(
31500 e) ac_func_search_save_LIBS=$LIBS
31501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31502 /* end confdefs.h. */
31503
31504 /* Override any GCC internal prototype to avoid an error.
31505 Use char because int might match the return type of a GCC
31506 builtin and then its argument prototype would still apply.
31507 The 'extern "C"' is for builds by C++ compilers;
31508 although this is not generally supported in C code supporting it here
31509 has little cost and some practical benefit (sr 110532). */
31510 #ifdef __cplusplus
31511 extern "C"
31512 #endif
31513 char getprpwnam (void);
31514 int
31515 main (void)
31516 {
31517 return getprpwnam ();
31518 ;
31519 return 0;
31520 }
31521 _ACEOF
31522 for ac_lib in '' sec security prot
31523 do
31524 if test -z "$ac_lib"; then
31525 ac_res="none required"
31526 else
31527 ac_res=-l$ac_lib
31528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31529 fi
31530 if ac_fn_c_try_link "$LINENO"
31531 then :
31532 ac_cv_search_getprpwnam=$ac_res
31533 fi
31534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31535 conftest$ac_exeext
31536 if test ${ac_cv_search_getprpwnam+y}
31537 then :
31538 break
31539 fi
31540 done
31541 if test ${ac_cv_search_getprpwnam+y}
31542 then :
31543
31544 else case e in #(
31545 e) ac_cv_search_getprpwnam=no ;;
31546 esac
31547 fi
31548 rm conftest.$ac_ext
31549 LIBS=$ac_func_search_save_LIBS ;;
31550 esac
31551 fi
31552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
31553 printf "%s\n" "$ac_cv_search_getprpwnam" >&6; }
31554 ac_res=$ac_cv_search_getprpwnam
31555 if test "$ac_res" != no
31556 then :
31557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31558
31559 printf "%s\n" "#define HAVE_GETPRPWNAM 1" >>confdefs.h
31560
31561 test "${ac_cv_search_getprpwnam}" != "none required" && shadow_libs="${shadow_libs} ${ac_cv_search_getprpwnam}"
31562 SECUREWARE=1
31563 CHECKSHADOW=false
31564
31565 fi
31566
31567
31568 fi
31569 if test -n "$shadow_libs"
31570 then :
31571
31572 # sudoers needs to link with shadow libs for password auth
31573 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
31574
31575 fi
31576 if test -n "$SECUREWARE"
31577 then :
31578
31579 _LIBS="$LIBS"
31580 LIBS="$LIBS $shadow_libs"
31581 ac_fn_c_check_func "$LINENO" "bigcrypt" "ac_cv_func_bigcrypt"
31582 if test "x$ac_cv_func_bigcrypt" = xyes
31583 then :
31584 printf "%s\n" "#define HAVE_BIGCRYPT 1" >>confdefs.h
31585
31586 fi
31587
31588 AUTH_OBJS="$AUTH_OBJS secureware.lo"
31589 # set_auth_parameters() and initprivs() are called from sudo.c
31590
31591 for ac_func in set_auth_parameters initprivs
31592 do :
31593 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
31594 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31595 if eval test \"x\$"$as_ac_var"\" = x"yes"
31596 then :
31597 cat >>confdefs.h <<_ACEOF
31598 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
31599 _ACEOF
31600 test -n "$shadow_libs" && SUDO_LIBS="$SUDO_LIBS $shadow_libs"
31601 fi
31602
31603 done
31604 LIBS="$_LIBS"
31605
31606 fi
31607
31608 fi
31609
31610 if test X"$with_bsm_audit" = X"yes"
31611 then :
31612
31613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether au_close() takes 4 arguments" >&5
31614 printf %s "checking whether au_close() takes 4 arguments... " >&6; }
31615 if test ${sudo_cv_func_au_close_solaris11+y}
31616 then :
31617 printf %s "(cached) " >&6
31618 else case e in #(
31619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31620 /* end confdefs.h. */
31621 $ac_includes_default
31622 #include <bsm/audit.h>
31623 #include <bsm/libbsm.h>
31624 #include <bsm/audit_uevents.h>
31625
31626 int au_close(int d, int keep, au_event_t event, au_emod_t emod) {return 0;}
31627 int
31628 main (void)
31629 {
31630
31631 ;
31632 return 0;
31633 }
31634 _ACEOF
31635 if ac_fn_c_try_compile "$LINENO"
31636 then :
31637 sudo_cv_func_au_close_solaris11=yes
31638 else case e in #(
31639 e) sudo_cv_func_au_close_solaris11=no ;;
31640 esac
31641 fi
31642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31643 ;;
31644 esac
31645 fi
31646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_au_close_solaris11" >&5
31647 printf "%s\n" "$sudo_cv_func_au_close_solaris11" >&6; }
31648 if test $sudo_cv_func_au_close_solaris11 = yes; then
31649
31650 printf "%s\n" "#define HAVE_AU_CLOSE_SOLARIS11 1" >>confdefs.h
31651
31652 fi
31653
31654
31655 fi
31656
31657 if test X"$enable_poll" = X""
31658 then :
31659
31660
31661 for ac_func in ppoll poll
31662 do :
31663 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
31664 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31665 if eval test \"x\$"$as_ac_var"\" = x"yes"
31666 then :
31667 cat >>confdefs.h <<_ACEOF
31668 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
31669 _ACEOF
31670 enable_poll=yes; break
31671 else case e in #(
31672 e) enable_poll=no ;;
31673 esac
31674 fi
31675
31676 done
31677
31678 elif test X"$enable_poll" = X"yes"
31679 then :
31680
31681
31682 for ac_func in ppoll
31683 do :
31684 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
31685 if test "x$ac_cv_func_ppoll" = xyes
31686 then :
31687 printf "%s\n" "#define HAVE_PPOLL 1" >>confdefs.h
31688
31689 else case e in #(
31690 e) printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
31691 ;;
31692 esac
31693 fi
31694
31695 done
31696
31697 fi
31698 if test "$enable_poll" = "yes"
31699 then :
31700
31701 COMMON_OBJS="${COMMON_OBJS} event_poll.lo"
31702
31703 else case e in #(
31704 e)
31705 ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect"
31706 if test "x$ac_cv_func_pselect" = xyes
31707 then :
31708 printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h
31709
31710 fi
31711
31712 COMMON_OBJS="${COMMON_OBJS} event_select.lo"
31713 ;;
31714 esac
31715 fi
31716
31717
31718 if test ${with_ldap-'no'} != "no"; then
31719 O_LDFLAGS="$LDFLAGS"
31720 if test "$with_ldap" != "yes"; then
31721
31722
31723 if test ${SUDOERS_LDFLAGS+y}
31724 then :
31725
31726 case " $SUDOERS_LDFLAGS " in #(
31727 *" -L${with_ldap}/lib "*) :
31728 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -L\${with_ldap}/lib"; } >&5
31729 (: SUDOERS_LDFLAGS already contains -L${with_ldap}/lib) 2>&5
31730 ac_status=$?
31731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31732 test $ac_status = 0; } ;; #(
31733 *) :
31734
31735 as_fn_append SUDOERS_LDFLAGS " -L${with_ldap}/lib"
31736 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
31737 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
31738 ac_status=$?
31739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31740 test $ac_status = 0; }
31741 ;;
31742 esac
31743
31744 else case e in #(
31745 e)
31746 SUDOERS_LDFLAGS=-L${with_ldap}/lib
31747 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
31748 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
31749 ac_status=$?
31750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31751 test $ac_status = 0; }
31752 ;;
31753 esac
31754 fi
31755
31756 if test X"$enable_rpath" = X"yes"; then
31757
31758 if test ${SUDOERS_LDFLAGS_R+y}
31759 then :
31760
31761 case " $SUDOERS_LDFLAGS_R " in #(
31762 *" -R${with_ldap}/lib "*) :
31763 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R already contains -R\${with_ldap}/lib"; } >&5
31764 (: SUDOERS_LDFLAGS_R already contains -R${with_ldap}/lib) 2>&5
31765 ac_status=$?
31766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31767 test $ac_status = 0; } ;; #(
31768 *) :
31769
31770 as_fn_append SUDOERS_LDFLAGS_R " -R${with_ldap}/lib"
31771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
31772 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
31773 ac_status=$?
31774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31775 test $ac_status = 0; }
31776 ;;
31777 esac
31778
31779 else case e in #(
31780 e)
31781 SUDOERS_LDFLAGS_R=-R${with_ldap}/lib
31782 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
31783 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
31784 ac_status=$?
31785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31786 test $ac_status = 0; }
31787 ;;
31788 esac
31789 fi
31790
31791 fi
31792
31793 LDFLAGS="$LDFLAGS -L${with_ldap}/lib"
31794 if test -d "${with_ldap}/lib64"; then
31795
31796
31797 if test ${SUDOERS_LDFLAGS+y}
31798 then :
31799
31800 case " $SUDOERS_LDFLAGS " in #(
31801 *" -L${with_ldap}/lib64 "*) :
31802 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -L\${with_ldap}/lib64"; } >&5
31803 (: SUDOERS_LDFLAGS already contains -L${with_ldap}/lib64) 2>&5
31804 ac_status=$?
31805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31806 test $ac_status = 0; } ;; #(
31807 *) :
31808
31809 as_fn_append SUDOERS_LDFLAGS " -L${with_ldap}/lib64"
31810 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
31811 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
31812 ac_status=$?
31813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31814 test $ac_status = 0; }
31815 ;;
31816 esac
31817
31818 else case e in #(
31819 e)
31820 SUDOERS_LDFLAGS=-L${with_ldap}/lib64
31821 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
31822 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
31823 ac_status=$?
31824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31825 test $ac_status = 0; }
31826 ;;
31827 esac
31828 fi
31829
31830 if test X"$enable_rpath" = X"yes"; then
31831
31832 if test ${SUDOERS_LDFLAGS_R+y}
31833 then :
31834
31835 case " $SUDOERS_LDFLAGS_R " in #(
31836 *" -R${with_ldap}/lib64 "*) :
31837 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R already contains -R\${with_ldap}/lib64"; } >&5
31838 (: SUDOERS_LDFLAGS_R already contains -R${with_ldap}/lib64) 2>&5
31839 ac_status=$?
31840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31841 test $ac_status = 0; } ;; #(
31842 *) :
31843
31844 as_fn_append SUDOERS_LDFLAGS_R " -R${with_ldap}/lib64"
31845 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
31846 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
31847 ac_status=$?
31848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31849 test $ac_status = 0; }
31850 ;;
31851 esac
31852
31853 else case e in #(
31854 e)
31855 SUDOERS_LDFLAGS_R=-R${with_ldap}/lib64
31856 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS_R=\"\$SUDOERS_LDFLAGS_R\""; } >&5
31857 (: SUDOERS_LDFLAGS_R="$SUDOERS_LDFLAGS_R") 2>&5
31858 ac_status=$?
31859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31860 test $ac_status = 0; }
31861 ;;
31862 esac
31863 fi
31864
31865 fi
31866
31867 LDFLAGS="$LDFLAGS -L${with_ldap}/lib64"
31868 fi
31869
31870 if test ${CPPFLAGS+y}
31871 then :
31872
31873 case " $CPPFLAGS " in #(
31874 *" -I${with_ldap}/include "*) :
31875 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -I\${with_ldap}/include"; } >&5
31876 (: CPPFLAGS already contains -I${with_ldap}/include) 2>&5
31877 ac_status=$?
31878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31879 test $ac_status = 0; } ;; #(
31880 *) :
31881
31882 as_fn_append CPPFLAGS " -I${with_ldap}/include"
31883 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
31884 (: CPPFLAGS="$CPPFLAGS") 2>&5
31885 ac_status=$?
31886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31887 test $ac_status = 0; }
31888 ;;
31889 esac
31890
31891 else case e in #(
31892 e)
31893 CPPFLAGS=-I${with_ldap}/include
31894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
31895 (: CPPFLAGS="$CPPFLAGS") 2>&5
31896 ac_status=$?
31897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31898 test $ac_status = 0; }
31899 ;;
31900 esac
31901 fi
31902
31903 with_ldap=yes
31904 fi
31905 SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo ldap_conf.lo ldap_innetgr.lo"
31906 case "$SUDOERS_OBJS" in
31907 *ldap_util.lo*) ;;
31908 *) SUDOERS_OBJS="${SUDOERS_OBJS} ldap_util.lo";;
31909 esac
31910 LDAP=""
31911
31912 _LIBS="$LIBS"
31913 LDAP_LIBS=""
31914 IBMLDAP_EXTRA=""
31915 found=no
31916 # On HP-UX, libibmldap has a hidden dependency on libCsup
31917 case "$host_os" in
31918 hpux*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lCsup" >&5
31919 printf %s "checking for main in -lCsup... " >&6; }
31920 if test ${ac_cv_lib_Csup_main+y}
31921 then :
31922 printf %s "(cached) " >&6
31923 else case e in #(
31924 e) ac_check_lib_save_LIBS=$LIBS
31925 LIBS="-lCsup $LIBS"
31926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31927 /* end confdefs.h. */
31928
31929
31930 int
31931 main (void)
31932 {
31933 return main ();
31934 ;
31935 return 0;
31936 }
31937 _ACEOF
31938 if ac_fn_c_try_link "$LINENO"
31939 then :
31940 ac_cv_lib_Csup_main=yes
31941 else case e in #(
31942 e) ac_cv_lib_Csup_main=no ;;
31943 esac
31944 fi
31945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31946 conftest$ac_exeext conftest.$ac_ext
31947 LIBS=$ac_check_lib_save_LIBS ;;
31948 esac
31949 fi
31950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Csup_main" >&5
31951 printf "%s\n" "$ac_cv_lib_Csup_main" >&6; }
31952 if test "x$ac_cv_lib_Csup_main" = xyes
31953 then :
31954 IBMLDAP_EXTRA=" -lCsup"
31955 fi
31956 ;;
31957 esac
31958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
31959 printf %s "checking for library containing ldap_init... " >&6; }
31960 if test ${ac_cv_search_ldap_init+y}
31961 then :
31962 printf %s "(cached) " >&6
31963 else case e in #(
31964 e) ac_func_search_save_LIBS=$LIBS
31965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31966 /* end confdefs.h. */
31967
31968 /* Override any GCC internal prototype to avoid an error.
31969 Use char because int might match the return type of a GCC
31970 builtin and then its argument prototype would still apply.
31971 The 'extern "C"' is for builds by C++ compilers;
31972 although this is not generally supported in C code supporting it here
31973 has little cost and some practical benefit (sr 110532). */
31974 #ifdef __cplusplus
31975 extern "C"
31976 #endif
31977 char ldap_init (void);
31978 int
31979 main (void)
31980 {
31981 return ldap_init ();
31982 ;
31983 return 0;
31984 }
31985 _ACEOF
31986 for ac_lib in '' "ibmldap${IBMLDAP_EXTRA}" "ibmldap -lidsldif${IBMLDAP_EXTRA}" "ldap" "ldap -llber" "ldap -llber -lssl -lcrypto" "ibmldap${IBMLDAP_EXTRA}"
31987 do
31988 if test -z "$ac_lib"; then
31989 ac_res="none required"
31990 else
31991 ac_res=-l$ac_lib
31992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31993 fi
31994 if ac_fn_c_try_link "$LINENO"
31995 then :
31996 ac_cv_search_ldap_init=$ac_res
31997 fi
31998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31999 conftest$ac_exeext
32000 if test ${ac_cv_search_ldap_init+y}
32001 then :
32002 break
32003 fi
32004 done
32005 if test ${ac_cv_search_ldap_init+y}
32006 then :
32007
32008 else case e in #(
32009 e) ac_cv_search_ldap_init=no ;;
32010 esac
32011 fi
32012 rm conftest.$ac_ext
32013 LIBS=$ac_func_search_save_LIBS ;;
32014 esac
32015 fi
32016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
32017 printf "%s\n" "$ac_cv_search_ldap_init" >&6; }
32018 ac_res=$ac_cv_search_ldap_init
32019 if test "$ac_res" != no
32020 then :
32021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32022
32023 test "${ac_cv_search_ldap_init}" != "none required" && LDAP_LIBS="${ac_cv_search_ldap_init}"
32024 found=yes
32025
32026 fi
32027
32028 # If nothing linked, try -lldap and hope for the best
32029 if test "$found" = "no"; then
32030 LDAP_LIBS="-lldap"
32031 fi
32032 LIBS="${_LIBS} ${LDAP_LIBS}"
32033
32034 ac_fn_check_decl "$LINENO" "LBER_OPT_DEBUG_LEVEL" "ac_cv_have_decl_LBER_OPT_DEBUG_LEVEL" "$ac_includes_default
32035 #include <lber.h>
32036 " "$ac_c_undeclared_builtin_options" "CFLAGS"
32037 if test "x$ac_cv_have_decl_LBER_OPT_DEBUG_LEVEL" = xyes
32038 then :
32039
32040 case "$LDAP_LIBS" in
32041 *-llber*)
32042 # Already linking with -llber
32043 ;;
32044 *) # Link with -llber for ber_set_option() if it exists
32045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_set_option in -llber" >&5
32046 printf %s "checking for ber_set_option in -llber... " >&6; }
32047 if test ${ac_cv_lib_lber_ber_set_option+y}
32048 then :
32049 printf %s "(cached) " >&6
32050 else case e in #(
32051 e) ac_check_lib_save_LIBS=$LIBS
32052 LIBS="-llber $LIBS"
32053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32054 /* end confdefs.h. */
32055
32056 /* Override any GCC internal prototype to avoid an error.
32057 Use char because int might match the return type of a GCC
32058 builtin and then its argument prototype would still apply.
32059 The 'extern "C"' is for builds by C++ compilers;
32060 although this is not generally supported in C code supporting it here
32061 has little cost and some practical benefit (sr 110532). */
32062 #ifdef __cplusplus
32063 extern "C"
32064 #endif
32065 char ber_set_option (void);
32066 int
32067 main (void)
32068 {
32069 return ber_set_option ();
32070 ;
32071 return 0;
32072 }
32073 _ACEOF
32074 if ac_fn_c_try_link "$LINENO"
32075 then :
32076 ac_cv_lib_lber_ber_set_option=yes
32077 else case e in #(
32078 e) ac_cv_lib_lber_ber_set_option=no ;;
32079 esac
32080 fi
32081 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32082 conftest$ac_exeext conftest.$ac_ext
32083 LIBS=$ac_check_lib_save_LIBS ;;
32084 esac
32085 fi
32086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_set_option" >&5
32087 printf "%s\n" "$ac_cv_lib_lber_ber_set_option" >&6; }
32088 if test "x$ac_cv_lib_lber_ber_set_option" = xyes
32089 then :
32090 found=yes
32091 else case e in #(
32092 e) found=no ;;
32093 esac
32094 fi
32095
32096 if test X"$found" = X"yes"; then
32097 LDAP_LIBS="$LDAP_LIBS -llber"
32098 fi
32099 ;;
32100 esac
32101
32102 fi
32103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed when including ldap.h" >&5
32104 printf %s "checking whether lber.h is needed when including ldap.h... " >&6; }
32105 if test ${sudo_cv_header_lber_h+y}
32106 then :
32107 printf %s "(cached) " >&6
32108 else case e in #(
32109 e)
32110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32111 /* end confdefs.h. */
32112 #include <sys/types.h>
32113 #include <ldap.h>
32114 int
32115 main (void)
32116 {
32117 return ldap_msgfree(NULL)
32118 ;
32119 return 0;
32120 }
32121 _ACEOF
32122 if ac_fn_c_try_link "$LINENO"
32123 then :
32124
32125 # No need to explicitly include lber.h when including ldap.h.
32126 sudo_cv_header_lber_h=no
32127
32128 else case e in #(
32129 e)
32130 sudo_cv_header_lber_h=yes
32131 ;;
32132 esac
32133 fi
32134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32135 conftest$ac_exeext conftest.$ac_ext
32136 ;;
32137 esac
32138 fi
32139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_header_lber_h" >&5
32140 printf "%s\n" "$sudo_cv_header_lber_h" >&6; }
32141 if test X"$sudo_cv_header_lber_h" = X"yes"; then
32142 printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
32143
32144 fi
32145
32146 if test ${enable_sasl-'yes'} = "yes"; then
32147 found_sasl_h=no
32148 for ac_header in sasl/sasl.h sasl.h
32149 do :
32150 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
32151 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
32152 if eval test \"x\$"$as_ac_Header"\" = x"yes"
32153 then :
32154 cat >>confdefs.h <<_ACEOF
32155 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
32156 _ACEOF
32157
32158 found_sasl_h=yes
32159 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
32160 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes
32161 then :
32162 printf "%s\n" "#define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1" >>confdefs.h
32163
32164 fi
32165
32166 break
32167
32168 fi
32169
32170 done
32171 if test X${enable_sasl} = X"yes"; then
32172 if test X"$found_sasl_h" != X"yes"; then
32173 as_fn_error $? "--enable-sasl specified but unable to locate SASL development headers." "$LINENO" 5
32174 fi
32175 if test X"$ac_cv_func_ldap_sasl_interactive_bind_s" != X"yes"; then :
32176 as_fn_error $? "--enable-sasl specified but SASL support is missing in your LDAP library" "$LINENO" 5
32177 fi
32178 fi
32179 fi
32180 for ac_header in ldapssl.h ldap_ssl.h mps/ldap_ssl.h
32181 do :
32182 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
32183 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
32184 "
32185 if eval test \"x\$"$as_ac_Header"\" = x"yes"
32186 then :
32187 cat >>confdefs.h <<_ACEOF
32188 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
32189 _ACEOF
32190 break
32191 fi
32192
32193 done
32194 ac_fn_c_check_func "$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
32195 if test "x$ac_cv_func_ldap_initialize" = xyes
32196 then :
32197 printf "%s\n" "#define HAVE_LDAP_INITIALIZE 1" >>confdefs.h
32198
32199 fi
32200 ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s"
32201 if test "x$ac_cv_func_ldap_start_tls_s" = xyes
32202 then :
32203 printf "%s\n" "#define HAVE_LDAP_START_TLS_S 1" >>confdefs.h
32204
32205 fi
32206 ac_fn_c_check_func "$LINENO" "ldapssl_init" "ac_cv_func_ldapssl_init"
32207 if test "x$ac_cv_func_ldapssl_init" = xyes
32208 then :
32209 printf "%s\n" "#define HAVE_LDAPSSL_INIT 1" >>confdefs.h
32210
32211 fi
32212 ac_fn_c_check_func "$LINENO" "ldapssl_set_strength" "ac_cv_func_ldapssl_set_strength"
32213 if test "x$ac_cv_func_ldapssl_set_strength" = xyes
32214 then :
32215 printf "%s\n" "#define HAVE_LDAPSSL_SET_STRENGTH 1" >>confdefs.h
32216
32217 fi
32218 ac_fn_c_check_func "$LINENO" "ldap_unbind_ext_s" "ac_cv_func_ldap_unbind_ext_s"
32219 if test "x$ac_cv_func_ldap_unbind_ext_s" = xyes
32220 then :
32221 printf "%s\n" "#define HAVE_LDAP_UNBIND_EXT_S 1" >>confdefs.h
32222
32223 fi
32224 ac_fn_c_check_func "$LINENO" "ldap_str2dn" "ac_cv_func_ldap_str2dn"
32225 if test "x$ac_cv_func_ldap_str2dn" = xyes
32226 then :
32227 printf "%s\n" "#define HAVE_LDAP_STR2DN 1" >>confdefs.h
32228
32229 fi
32230 ac_fn_c_check_func "$LINENO" "ldap_create" "ac_cv_func_ldap_create"
32231 if test "x$ac_cv_func_ldap_create" = xyes
32232 then :
32233 printf "%s\n" "#define HAVE_LDAP_CREATE 1" >>confdefs.h
32234
32235 fi
32236 ac_fn_c_check_func "$LINENO" "ldap_sasl_bind_s" "ac_cv_func_ldap_sasl_bind_s"
32237 if test "x$ac_cv_func_ldap_sasl_bind_s" = xyes
32238 then :
32239 printf "%s\n" "#define HAVE_LDAP_SASL_BIND_S 1" >>confdefs.h
32240
32241 fi
32242 ac_fn_c_check_func "$LINENO" "ldap_ssl_init" "ac_cv_func_ldap_ssl_init"
32243 if test "x$ac_cv_func_ldap_ssl_init" = xyes
32244 then :
32245 printf "%s\n" "#define HAVE_LDAP_SSL_INIT 1" >>confdefs.h
32246
32247 fi
32248 ac_fn_c_check_func "$LINENO" "ldap_ssl_client_init" "ac_cv_func_ldap_ssl_client_init"
32249 if test "x$ac_cv_func_ldap_ssl_client_init" = xyes
32250 then :
32251 printf "%s\n" "#define HAVE_LDAP_SSL_CLIENT_INIT 1" >>confdefs.h
32252
32253 fi
32254 ac_fn_c_check_func "$LINENO" "ldap_start_tls_s_np" "ac_cv_func_ldap_start_tls_s_np"
32255 if test "x$ac_cv_func_ldap_start_tls_s_np" = xyes
32256 then :
32257 printf "%s\n" "#define HAVE_LDAP_START_TLS_S_NP 1" >>confdefs.h
32258
32259 fi
32260
32261
32262 for ac_func in ldap_search_ext_s ldap_search_st
32263 do :
32264 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
32265 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32266 if eval test \"x\$"$as_ac_var"\" = x"yes"
32267 then :
32268 cat >>confdefs.h <<_ACEOF
32269 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
32270 _ACEOF
32271 break
32272 fi
32273
32274 done
32275
32276 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
32277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
32278 printf %s "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
32279 if test ${ac_cv_lib_gssapi_gss_krb5_ccache_name+y}
32280 then :
32281 printf %s "(cached) " >&6
32282 else case e in #(
32283 e) ac_check_lib_save_LIBS=$LIBS
32284 LIBS="-lgssapi $LIBS"
32285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32286 /* end confdefs.h. */
32287
32288 /* Override any GCC internal prototype to avoid an error.
32289 Use char because int might match the return type of a GCC
32290 builtin and then its argument prototype would still apply.
32291 The 'extern "C"' is for builds by C++ compilers;
32292 although this is not generally supported in C code supporting it here
32293 has little cost and some practical benefit (sr 110532). */
32294 #ifdef __cplusplus
32295 extern "C"
32296 #endif
32297 char gss_krb5_ccache_name (void);
32298 int
32299 main (void)
32300 {
32301 return gss_krb5_ccache_name ();
32302 ;
32303 return 0;
32304 }
32305 _ACEOF
32306 if ac_fn_c_try_link "$LINENO"
32307 then :
32308 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
32309 else case e in #(
32310 e) ac_cv_lib_gssapi_gss_krb5_ccache_name=no ;;
32311 esac
32312 fi
32313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32314 conftest$ac_exeext conftest.$ac_ext
32315 LIBS=$ac_check_lib_save_LIBS ;;
32316 esac
32317 fi
32318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
32319 printf "%s\n" "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
32320 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes
32321 then :
32322
32323 printf "%s\n" "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
32324
32325 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
32326
32327 else case e in #(
32328 e)
32329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
32330 printf %s "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
32331 if test ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+y}
32332 then :
32333 printf %s "(cached) " >&6
32334 else case e in #(
32335 e) ac_check_lib_save_LIBS=$LIBS
32336 LIBS="-lgssapi_krb5 $LIBS"
32337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32338 /* end confdefs.h. */
32339
32340 /* Override any GCC internal prototype to avoid an error.
32341 Use char because int might match the return type of a GCC
32342 builtin and then its argument prototype would still apply.
32343 The 'extern "C"' is for builds by C++ compilers;
32344 although this is not generally supported in C code supporting it here
32345 has little cost and some practical benefit (sr 110532). */
32346 #ifdef __cplusplus
32347 extern "C"
32348 #endif
32349 char gss_krb5_ccache_name (void);
32350 int
32351 main (void)
32352 {
32353 return gss_krb5_ccache_name ();
32354 ;
32355 return 0;
32356 }
32357 _ACEOF
32358 if ac_fn_c_try_link "$LINENO"
32359 then :
32360 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
32361 else case e in #(
32362 e) ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no ;;
32363 esac
32364 fi
32365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32366 conftest$ac_exeext conftest.$ac_ext
32367 LIBS=$ac_check_lib_save_LIBS ;;
32368 esac
32369 fi
32370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
32371 printf "%s\n" "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
32372 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes
32373 then :
32374
32375 printf "%s\n" "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
32376
32377 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
32378
32379 fi
32380
32381 ;;
32382 esac
32383 fi
32384
32385
32386 # gssapi headers may be separate or part of Kerberos V
32387 found=no
32388 O_CPPFLAGS="$CPPFLAGS"
32389 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
32390 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
32391 # Use AC_PREPROC_IFELSE to check existence to avoid caching
32392 # since we test with multiple values of CPPFLAGS
32393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32394 /* end confdefs.h. */
32395
32396 #include <gssapi/gssapi.h>
32397 int
32398 main (void)
32399 {
32400
32401 ;
32402 return 0;
32403 }
32404
32405 _ACEOF
32406 if ac_fn_c_try_cpp "$LINENO"
32407 then :
32408
32409 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
32410 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
32411 then :
32412 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
32413
32414 fi
32415
32416 break
32417
32418 else case e in #(
32419 e)
32420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32421 /* end confdefs.h. */
32422
32423 #include <gssapi.h>
32424 int
32425 main (void)
32426 {
32427
32428 ;
32429 return 0;
32430 }
32431
32432 _ACEOF
32433 if ac_fn_c_try_cpp "$LINENO"
32434 then :
32435
32436 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
32437 if test "x$ac_cv_header_gssapi_h" = xyes
32438 then :
32439 printf "%s\n" "#define HAVE_GSSAPI_H 1" >>confdefs.h
32440
32441 fi
32442
32443 break
32444
32445 fi
32446 rm -f conftest.err conftest.i conftest.$ac_ext
32447 ;;
32448 esac
32449 fi
32450 rm -f conftest.err conftest.i conftest.$ac_ext
32451 done
32452 if test X"$ac_cv_header_gssapi_gssapi_h" != X"no"; then
32453 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
32454 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes
32455 then :
32456 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_KRB5_H 1" >>confdefs.h
32457
32458 fi
32459
32460 elif test X"$ac_cv_header_gssapi_h" = X"no"; then
32461 CPPFLAGS="$O_CPPFLAGS"
32462 { printf "%s\n" "$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
32463 printf "%s\n" "$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;}
32464 fi
32465 fi
32466
32467 SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
32468 LIBS="$_LIBS"
32469 LDFLAGS="$O_LDFLAGS"
32470 fi
32471
32472
32473 #
32474 # How to do dynamic object loading.
32475 # We support dlopen() and sh_load(), else fall back to static loading.
32476 #
32477 case "$lt_cv_dlopen" in
32478 dlopen)
32479 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
32480
32481 if test "$enable_static_sudoers" = "yes"
32482 then :
32483
32484 printf "%s\n" "#define STATIC_SUDOERS_PLUGIN 1" >>confdefs.h
32485
32486 SUDO_OBJS="${SUDO_OBJS} preload.o"
32487 STATIC_SUDOERS="\$(top_builddir)/plugins/sudoers/sudoers.la"
32488
32489 if test ${SUDOERS_LDFLAGS+y}
32490 then :
32491
32492 case " $SUDOERS_LDFLAGS " in #(
32493 *" -no-install "*) :
32494 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -no-install"; } >&5
32495 (: SUDOERS_LDFLAGS already contains -no-install) 2>&5
32496 ac_status=$?
32497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32498 test $ac_status = 0; } ;; #(
32499 *) :
32500
32501 as_fn_append SUDOERS_LDFLAGS " -no-install"
32502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
32503 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
32504 ac_status=$?
32505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32506 test $ac_status = 0; }
32507 ;;
32508 esac
32509
32510 else case e in #(
32511 e)
32512 SUDOERS_LDFLAGS=-no-install
32513 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
32514 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
32515 ac_status=$?
32516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32517 test $ac_status = 0; }
32518 ;;
32519 esac
32520 fi
32521
32522 SUDOERS_LT_STATIC="--tag=disable-shared"
32523 LT_STATIC=""
32524
32525 else case e in #(
32526 e)
32527 SUDOERS_LT_STATIC="--tag=disable-static"
32528 LT_STATIC="--tag=disable-static"
32529 ;;
32530 esac
32531 fi
32532 ;;
32533 shl_load)
32534 printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
32535
32536 if test "$enable_static_sudoers" = "yes"
32537 then :
32538
32539 printf "%s\n" "#define STATIC_SUDOERS_PLUGIN 1" >>confdefs.h
32540
32541 SUDO_OBJS="${SUDO_OBJS} preload.o"
32542 STATIC_SUDOERS="\$(top_builddir)/plugins/sudoers/sudoers.la"
32543
32544 if test ${SUDOERS_LDFLAGS+y}
32545 then :
32546
32547 case " $SUDOERS_LDFLAGS " in #(
32548 *" -no-install "*) :
32549 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS already contains -no-install"; } >&5
32550 (: SUDOERS_LDFLAGS already contains -no-install) 2>&5
32551 ac_status=$?
32552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32553 test $ac_status = 0; } ;; #(
32554 *) :
32555
32556 as_fn_append SUDOERS_LDFLAGS " -no-install"
32557 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
32558 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
32559 ac_status=$?
32560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32561 test $ac_status = 0; }
32562 ;;
32563 esac
32564
32565 else case e in #(
32566 e)
32567 SUDOERS_LDFLAGS=-no-install
32568 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : SUDOERS_LDFLAGS=\"\$SUDOERS_LDFLAGS\""; } >&5
32569 (: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS") 2>&5
32570 ac_status=$?
32571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32572 test $ac_status = 0; }
32573 ;;
32574 esac
32575 fi
32576
32577 SUDOERS_LT_STATIC="--tag=disable-shared"
32578 LT_STATIC=""
32579
32580 else case e in #(
32581 e)
32582 SUDOERS_LT_STATIC="--tag=disable-static"
32583 LT_STATIC="--tag=disable-static"
32584 ;;
32585 esac
32586 fi
32587 ;;
32588 *)
32589 if test X"${ac_cv_func_dlopen}" = X"yes"
32590 then :
32591
32592 as_fn_error $? "dlopen present but libtool doesn't appear to support your platform." "$LINENO" 5
32593
32594 fi
32595 # Preload sudoers module symbols
32596 printf "%s\n" "#define STATIC_SUDOERS_PLUGIN 1" >>confdefs.h
32597
32598 SUDO_OBJS="${SUDO_OBJS} preload.o"
32599 STATIC_SUDOERS="\$(top_builddir)/plugins/sudoers/sudoers.la"
32600 LT_STATIC=""
32601 ;;
32602 esac
32603
32604 #
32605 # The check_symbols test can only succeed with a dynamic sudoers plugin.
32606 #
32607 if test X"$STATIC_SUDOERS" = X""; then
32608 SUDOERS_TEST_PROGS="${SUDOERS_TEST_PROGS}${SUDOERS_TEST_PROGS+ }check_symbols"
32609 fi
32610
32611 #
32612 # We can only disable linking with the shared libsudo_util if
32613 # sudoers is linked statically too.
32614 #
32615 if test "$enable_shared_libutil" = "no"
32616 then :
32617
32618 if test X"$STATIC_SUDOERS" = X""
32619 then :
32620
32621 as_fn_error $? "--disable-shared-libutil may only be specified with --enable-static-sudoers or when dynamic linking is disabled." "$LINENO" 5
32622
32623 else case e in #(
32624 e)
32625 # Do not install libsudo_util.
32626
32627 if test ${LIBUTIL_LDFLAGS+y}
32628 then :
32629
32630 case " $LIBUTIL_LDFLAGS " in #(
32631 *" -no-install "*) :
32632 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBUTIL_LDFLAGS already contains -no-install"; } >&5
32633 (: LIBUTIL_LDFLAGS already contains -no-install) 2>&5
32634 ac_status=$?
32635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32636 test $ac_status = 0; } ;; #(
32637 *) :
32638
32639 as_fn_append LIBUTIL_LDFLAGS " -no-install"
32640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBUTIL_LDFLAGS=\"\$LIBUTIL_LDFLAGS\""; } >&5
32641 (: LIBUTIL_LDFLAGS="$LIBUTIL_LDFLAGS") 2>&5
32642 ac_status=$?
32643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32644 test $ac_status = 0; }
32645 ;;
32646 esac
32647
32648 else case e in #(
32649 e)
32650 LIBUTIL_LDFLAGS=-no-install
32651 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LIBUTIL_LDFLAGS=\"\$LIBUTIL_LDFLAGS\""; } >&5
32652 (: LIBUTIL_LDFLAGS="$LIBUTIL_LDFLAGS") 2>&5
32653 ac_status=$?
32654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32655 test $ac_status = 0; }
32656 ;;
32657 esac
32658 fi
32659
32660 ;;
32661 esac
32662 fi
32663
32664 fi
32665
32666 # On HP-UX, you cannot dlopen() a shared object that uses pthreads unless
32667 # the main program is linked against -lpthread. We have no knowledge of
32668 # what libraries a plugin may depend on (e.g. HP-UX LDAP which uses pthreads)
32669 # so always link against -lpthread on HP-UX if it is available.
32670 # This check should go after all other libraries tests.
32671 case "$host_os" in
32672 hpux*)
32673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
32674 printf %s "checking for main in -lpthread... " >&6; }
32675 if test ${ac_cv_lib_pthread_main+y}
32676 then :
32677 printf %s "(cached) " >&6
32678 else case e in #(
32679 e) ac_check_lib_save_LIBS=$LIBS
32680 LIBS="-lpthread $LIBS"
32681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32682 /* end confdefs.h. */
32683
32684
32685 int
32686 main (void)
32687 {
32688 return main ();
32689 ;
32690 return 0;
32691 }
32692 _ACEOF
32693 if ac_fn_c_try_link "$LINENO"
32694 then :
32695 ac_cv_lib_pthread_main=yes
32696 else case e in #(
32697 e) ac_cv_lib_pthread_main=no ;;
32698 esac
32699 fi
32700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32701 conftest$ac_exeext conftest.$ac_ext
32702 LIBS=$ac_check_lib_save_LIBS ;;
32703 esac
32704 fi
32705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
32706 printf "%s\n" "$ac_cv_lib_pthread_main" >&6; }
32707 if test "x$ac_cv_lib_pthread_main" = xyes
32708 then :
32709 SUDO_LIBS="${SUDO_LIBS} -lpthread"
32710 fi
32711
32712 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
32713
32714 ;;
32715 esac
32716
32717 if test "$utmp_style" = "LEGACY"
32718 then :
32719
32720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
32721 printf %s "checking for utmp file path... " >&6; }
32722 if test ${sudo_cv_path_UTMP+y}
32723 then :
32724 printf %s "(cached) " >&6
32725 else case e in #(
32726 e)
32727 sudo_cv_path_UTMP=no
32728 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
32729 if test -r "$p"; then
32730 sudo_cv_path_UTMP="$p"
32731 break
32732 fi
32733 done
32734 ;;
32735 esac
32736 fi
32737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_path_UTMP" >&5
32738 printf "%s\n" "$sudo_cv_path_UTMP" >&6; }
32739 if test X"$sudo_cv_path_UTMP" != X"no"; then
32740 cat >>confdefs.h <<EOF
32741 #define _PATH_UTMP "$sudo_cv_path_UTMP"
32742 EOF
32743
32744 fi
32745
32746 fi
32747
32748 if test "${with_logdir-yes}" != "yes"; then
32749 log_dir="$with_logdir"
32750 else
32751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for log dir location" >&5
32752 printf %s "checking for log dir location... " >&6; }
32753 if test ${sudo_cv_log_dir+y}
32754 then :
32755 printf %s "(cached) " >&6
32756 else case e in #(
32757 e)
32758 # Default value of log_dir set in configure.ac
32759 sudo_cv_log_dir="$log_dir"
32760 for d in /var/log /var/adm /usr/adm; do
32761 if test -d "$d"; then
32762 sudo_cv_log_dir="$d"
32763 break
32764 fi
32765 done
32766 ;;
32767 esac
32768 fi
32769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_log_dir" >&5
32770 printf "%s\n" "$sudo_cv_log_dir" >&6; }
32771 log_dir="$sudo_cv_log_dir"
32772 fi
32773 cat >>confdefs.h <<EOF
32774 #define _PATH_SUDO_LOGDIR "$log_dir"
32775 EOF
32776
32777
32778
32779 if test -n "$with_logpath"; then
32780 logpath="$with_logpath"
32781 else
32782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
32783 printf %s "checking for log file location... " >&6; }
32784 if test ${sudo_cv_log_path+y}
32785 then :
32786 printf %s "(cached) " >&6
32787 else case e in #(
32788 e)
32789 # Default value of logpath set in configure.ac
32790 sudo_cv_log_path="$logpath"
32791 for d in /var/log /var/adm /usr/adm; do
32792 if test -d "$d"; then
32793 sudo_cv_log_path="$d/sudo.log"
32794 break
32795 fi
32796 done
32797 ;;
32798 esac
32799 fi
32800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_log_path" >&5
32801 printf "%s\n" "$sudo_cv_log_path" >&6; }
32802 logpath="$sudo_cv_log_path"
32803 fi
32804 cat >>confdefs.h <<EOF
32805 #define _PATH_SUDO_LOGFILE "$logpath"
32806 EOF
32807
32808
32809
32810 if test "${with_relaydir-yes}" != "yes"; then
32811 relay_dir="$with_relaydir"
32812 else
32813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sudo_logsrvd relay dir location" >&5
32814 printf %s "checking for sudo_logsrvd relay dir location... " >&6; }
32815 if test ${sudo_cv_relay_dir+y}
32816 then :
32817 printf %s "(cached) " >&6
32818 else case e in #(
32819 e)
32820 # Default value of relay_dir set in configure.ac
32821 sudo_cv_relay_dir="$relay_dir"
32822 for d in /var/log /var/adm /usr/adm; do
32823 if test -d "$d"; then
32824 sudo_cv_relay_dir="$d/sudo_logsrvd"
32825 break
32826 fi
32827 done
32828 ;;
32829 esac
32830 fi
32831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_relay_dir" >&5
32832 printf "%s\n" "$sudo_cv_relay_dir" >&6; }
32833 relay_dir="$sudo_cv_relay_dir"
32834 fi
32835 cat >>confdefs.h <<EOF
32836 #define _PATH_SUDO_RELAY_DIR "$relay_dir"
32837 EOF
32838
32839
32840
32841 if test -n "$with_rundir"; then
32842 rundir="$with_rundir"
32843 elif test -n "$runstatedir" && test "$runstatedir" != '${localstatedir}/run'; then
32844 rundir="$runstatedir/sudo"
32845 else
32846 # No --with-rundir or --runstatedir specified
32847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sudo run dir location" >&5
32848 printf %s "checking for sudo run dir location... " >&6; }
32849 if test ${sudo_cv_run_dir+y}
32850 then :
32851 printf %s "(cached) " >&6
32852 else case e in #(
32853 e)
32854 sudo_cv_run_dir=no
32855 for d in /run /var/run /var/db /var/lib /var/adm /usr/adm; do
32856 if test -d "$d"; then
32857 sudo_cv_run_dir="$d/sudo"
32858 break
32859 fi
32860 done
32861 ;;
32862 esac
32863 fi
32864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_run_dir" >&5
32865 printf "%s\n" "$sudo_cv_run_dir" >&6; }
32866 rundir="$sudo_cv_run_dir"
32867 fi
32868 if test X"$rundir" != X"no"; then
32869 cat >>confdefs.h <<EOF
32870 #define _PATH_SUDO_TIMEDIR "$rundir/ts"
32871 EOF
32872
32873 cat >>confdefs.h <<EOF
32874 #define _PATH_SUDO_LOGSRVD_PID "$rundir/sudo_logsrvd.pid"
32875 EOF
32876
32877 fi
32878
32879
32880 if test -n "$with_vardir"; then
32881 vardir="$with_vardir"
32882 else
32883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sudo var dir location" >&5
32884 printf %s "checking for sudo var dir location... " >&6; }
32885 if test ${sudo_cv_var_dir+y}
32886 then :
32887 printf %s "(cached) " >&6
32888 else case e in #(
32889 e)
32890 sudo_cv_var_dir=no
32891 for d in /var/db /var/lib /var/adm /usr/adm; do
32892 if test -d "$d"; then
32893 sudo_cv_var_dir="$d/sudo"
32894 break
32895 fi
32896 done
32897 ;;
32898 esac
32899 fi
32900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_dir" >&5
32901 printf "%s\n" "$sudo_cv_var_dir" >&6; }
32902 vardir="$sudo_cv_var_dir"
32903 fi
32904 if test X"$vardir" != X"no"; then
32905 cat >>confdefs.h <<EOF
32906 #define _PATH_SUDO_LECTURE_DIR "$vardir/lectured"
32907 EOF
32908
32909 fi
32910
32911
32912 if test "${with_iologdir-yes}" != "yes"; then
32913 iolog_dir="$with_iologdir"
32914 else
32915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
32916 printf %s "checking for I/O log dir location... " >&6; }
32917 if test ${sudo_cv_iolog_dir+y}
32918 then :
32919 printf %s "(cached) " >&6
32920 else case e in #(
32921 e)
32922 # Default value of iolog_dir set in configure.ac
32923 sudo_cv_iolog_dir="$iolog_dir"
32924 for d in /var/log /var/adm /usr/adm; do
32925 if test -d "$d"; then
32926 sudo_cv_iolog_dir="$d/sudo-io"
32927 break
32928 fi
32929 done
32930 ;;
32931 esac
32932 fi
32933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_iolog_dir" >&5
32934 printf "%s\n" "$sudo_cv_iolog_dir" >&6; }
32935 iolog_dir="$sudo_cv_iolog_dir"
32936 fi
32937 cat >>confdefs.h <<EOF
32938 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
32939 EOF
32940
32941
32942
32943 if test -n "$with_tzdir"; then
32944 tzdir="$with_tzdir"
32945 else
32946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking time zone data directory" >&5
32947 printf %s "checking time zone data directory... " >&6; }
32948 if test ${sudo_cv_tz_dir+y}
32949 then :
32950 printf %s "(cached) " >&6
32951 else case e in #(
32952 e)
32953 sudo_cv_tz_dir=no
32954 for d in /usr/share /usr/share/lib /usr/lib /etc; do
32955 if test -d "$d/zoneinfo"; then
32956 sudo_cv_tz_dir="$d/zoneinfo"
32957 break
32958 fi
32959 done
32960 ;;
32961 esac
32962 fi
32963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_tz_dir" >&5
32964 printf "%s\n" "$sudo_cv_tz_dir" >&6; }
32965 tzdir="$sudo_cv_tz_dir"
32966 fi
32967 if test X"$tzdir" != X"no"; then
32968 cat >>confdefs.h <<EOF
32969 #define _PATH_ZONEINFO "$tzdir"
32970 EOF
32971
32972 fi
32973
32974
32975
32976 ac_c_werror_flag=yes
32977
32978 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
32979 if test "x$ac_cv_header_sys_sysctl_h" = xyes
32980 then :
32981 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
32982
32983 fi
32984
32985
32986 if test -n "$GCC" -a "$lt_cv_prog_gnu_ld" != "yes"
32987 then :
32988
32989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -static-libgcc" >&5
32990 printf %s "checking whether C compiler accepts -static-libgcc... " >&6; }
32991 if test ${ax_cv_check_cflags___static_libgcc+y}
32992 then :
32993 printf %s "(cached) " >&6
32994 else case e in #(
32995 e)
32996 ax_check_save_flags=$CFLAGS
32997 CFLAGS="$CFLAGS -static-libgcc"
32998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32999 /* end confdefs.h. */
33000
33001 int
33002 main (void)
33003 {
33004
33005 ;
33006 return 0;
33007 }
33008 _ACEOF
33009 if ac_fn_c_try_compile "$LINENO"
33010 then :
33011 ax_cv_check_cflags___static_libgcc=yes
33012 else case e in #(
33013 e) ax_cv_check_cflags___static_libgcc=no ;;
33014 esac
33015 fi
33016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33017 CFLAGS=$ax_check_save_flags ;;
33018 esac
33019 fi
33020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___static_libgcc" >&5
33021 printf "%s\n" "$ax_cv_check_cflags___static_libgcc" >&6; }
33022 if test "x$ax_cv_check_cflags___static_libgcc" = xyes
33023 then :
33024
33025 if test ${LT_LDFLAGS+y}
33026 then :
33027
33028 case " $LT_LDFLAGS " in #(
33029 *" -Wc,-static-libgcc "*) :
33030 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LT_LDFLAGS already contains -Wc,-static-libgcc"; } >&5
33031 (: LT_LDFLAGS already contains -Wc,-static-libgcc) 2>&5
33032 ac_status=$?
33033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33034 test $ac_status = 0; } ;; #(
33035 *) :
33036
33037 as_fn_append LT_LDFLAGS " -Wc,-static-libgcc"
33038 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LT_LDFLAGS=\"\$LT_LDFLAGS\""; } >&5
33039 (: LT_LDFLAGS="$LT_LDFLAGS") 2>&5
33040 ac_status=$?
33041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33042 test $ac_status = 0; }
33043 ;;
33044 esac
33045
33046 else case e in #(
33047 e)
33048 LT_LDFLAGS=-Wc,-static-libgcc
33049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LT_LDFLAGS=\"\$LT_LDFLAGS\""; } >&5
33050 (: LT_LDFLAGS="$LT_LDFLAGS") 2>&5
33051 ac_status=$?
33052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33053 test $ac_status = 0; }
33054 ;;
33055 esac
33056 fi
33057
33058 else case e in #(
33059 e) : ;;
33060 esac
33061 fi
33062
33063
33064 fi
33065
33066 case "$host_os" in
33067 netbsd*)
33068 ;;
33069 *)
33070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--enable-new-dtags" >&5
33071 printf %s "checking whether the linker accepts -Wl,--enable-new-dtags... " >&6; }
33072 if test ${ax_cv_check_ldflags___Wl___enable_new_dtags+y}
33073 then :
33074 printf %s "(cached) " >&6
33075 else case e in #(
33076 e)
33077 ax_check_save_flags=$LDFLAGS
33078 LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
33079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33080 /* end confdefs.h. */
33081
33082 int
33083 main (void)
33084 {
33085
33086 ;
33087 return 0;
33088 }
33089 _ACEOF
33090 if ac_fn_c_try_link "$LINENO"
33091 then :
33092 ax_cv_check_ldflags___Wl___enable_new_dtags=yes
33093 else case e in #(
33094 e) ax_cv_check_ldflags___Wl___enable_new_dtags=no ;;
33095 esac
33096 fi
33097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33098 conftest$ac_exeext conftest.$ac_ext
33099 LDFLAGS=$ax_check_save_flags ;;
33100 esac
33101 fi
33102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___enable_new_dtags" >&5
33103 printf "%s\n" "$ax_cv_check_ldflags___Wl___enable_new_dtags" >&6; }
33104 if test x"$ax_cv_check_ldflags___Wl___enable_new_dtags" = xyes
33105 then :
33106
33107 if test ${LDFLAGS+y}
33108 then :
33109
33110 case " $LDFLAGS " in #(
33111 *" -Wl,--enable-new-dtags "*) :
33112 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains -Wl,--enable-new-dtags"; } >&5
33113 (: LDFLAGS already contains -Wl,--enable-new-dtags) 2>&5
33114 ac_status=$?
33115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33116 test $ac_status = 0; } ;; #(
33117 *) :
33118
33119 as_fn_append LDFLAGS " -Wl,--enable-new-dtags"
33120 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
33121 (: LDFLAGS="$LDFLAGS") 2>&5
33122 ac_status=$?
33123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33124 test $ac_status = 0; }
33125 ;;
33126 esac
33127
33128 else case e in #(
33129 e)
33130 LDFLAGS=-Wl,--enable-new-dtags
33131 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
33132 (: LDFLAGS="$LDFLAGS") 2>&5
33133 ac_status=$?
33134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33135 test $ac_status = 0; }
33136 ;;
33137 esac
33138 fi
33139
33140 else case e in #(
33141 e) : ;;
33142 esac
33143 fi
33144
33145 ;;
33146 esac
33147
33148
33149 if test -n "$GCC"; then
33150 if test X"$enable_pie" = X""; then
33151 case "$host_os" in
33152 linux*)
33153 # Attempt to build with PIE support
33154 enable_pie="maybe"
33155 ;;
33156 esac
33157 fi
33158 if test X"$enable_pie" != X""; then
33159 if test "$enable_pie" = "no"; then
33160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-pie" >&5
33161 printf %s "checking whether C compiler accepts -fno-pie... " >&6; }
33162 if test ${ax_cv_check_cflags___fno_pie+y}
33163 then :
33164 printf %s "(cached) " >&6
33165 else case e in #(
33166 e)
33167 ax_check_save_flags=$CFLAGS
33168 CFLAGS="$CFLAGS -fno-pie"
33169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33170 /* end confdefs.h. */
33171
33172 int
33173 main (void)
33174 {
33175
33176 ;
33177 return 0;
33178 }
33179 _ACEOF
33180 if ac_fn_c_try_compile "$LINENO"
33181 then :
33182 ax_cv_check_cflags___fno_pie=yes
33183 else case e in #(
33184 e) ax_cv_check_cflags___fno_pie=no ;;
33185 esac
33186 fi
33187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33188 CFLAGS=$ax_check_save_flags ;;
33189 esac
33190 fi
33191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_pie" >&5
33192 printf "%s\n" "$ax_cv_check_cflags___fno_pie" >&6; }
33193 if test "x$ax_cv_check_cflags___fno_pie" = xyes
33194 then :
33195
33196 _CFLAGS="$CFLAGS"
33197 CFLAGS="$CFLAGS -fno-pie"
33198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -nopie" >&5
33199 printf %s "checking whether the linker accepts -nopie... " >&6; }
33200 if test ${ax_cv_check_ldflags___nopie+y}
33201 then :
33202 printf %s "(cached) " >&6
33203 else case e in #(
33204 e)
33205 ax_check_save_flags=$LDFLAGS
33206 LDFLAGS="$LDFLAGS -nopie"
33207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33208 /* end confdefs.h. */
33209
33210 int
33211 main (void)
33212 {
33213
33214 ;
33215 return 0;
33216 }
33217 _ACEOF
33218 if ac_fn_c_try_link "$LINENO"
33219 then :
33220 ax_cv_check_ldflags___nopie=yes
33221 else case e in #(
33222 e) ax_cv_check_ldflags___nopie=no ;;
33223 esac
33224 fi
33225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33226 conftest$ac_exeext conftest.$ac_ext
33227 LDFLAGS=$ax_check_save_flags ;;
33228 esac
33229 fi
33230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___nopie" >&5
33231 printf "%s\n" "$ax_cv_check_ldflags___nopie" >&6; }
33232 if test x"$ax_cv_check_ldflags___nopie" = xyes
33233 then :
33234
33235 PIE_CFLAGS="-fno-pie"
33236 PIE_LDFLAGS="-nopie"
33237
33238 else case e in #(
33239 e) : ;;
33240 esac
33241 fi
33242
33243 CFLAGS="$_CFLAGS"
33244
33245 else case e in #(
33246 e) : ;;
33247 esac
33248 fi
33249
33250 else
33251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
33252 printf %s "checking whether C compiler accepts -fPIE... " >&6; }
33253 if test ${ax_cv_check_cflags___fPIE+y}
33254 then :
33255 printf %s "(cached) " >&6
33256 else case e in #(
33257 e)
33258 ax_check_save_flags=$CFLAGS
33259 CFLAGS="$CFLAGS -fPIE"
33260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33261 /* end confdefs.h. */
33262
33263 int
33264 main (void)
33265 {
33266
33267 ;
33268 return 0;
33269 }
33270 _ACEOF
33271 if ac_fn_c_try_compile "$LINENO"
33272 then :
33273 ax_cv_check_cflags___fPIE=yes
33274 else case e in #(
33275 e) ax_cv_check_cflags___fPIE=no ;;
33276 esac
33277 fi
33278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33279 CFLAGS=$ax_check_save_flags ;;
33280 esac
33281 fi
33282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
33283 printf "%s\n" "$ax_cv_check_cflags___fPIE" >&6; }
33284 if test "x$ax_cv_check_cflags___fPIE" = xyes
33285 then :
33286
33287 _CFLAGS="$CFLAGS"
33288 CFLAGS="$CFLAGS -fPIE"
33289 _LDFLAGS="$LDFLAGS"
33290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
33291 printf %s "checking whether the linker accepts -pie... " >&6; }
33292 if test ${ax_cv_check_ldflags___pie+y}
33293 then :
33294 printf %s "(cached) " >&6
33295 else case e in #(
33296 e)
33297 ax_check_save_flags=$LDFLAGS
33298 LDFLAGS="$LDFLAGS -pie"
33299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33300 /* end confdefs.h. */
33301
33302 int
33303 main (void)
33304 {
33305
33306 ;
33307 return 0;
33308 }
33309 _ACEOF
33310 if ac_fn_c_try_link "$LINENO"
33311 then :
33312 ax_cv_check_ldflags___pie=yes
33313 else case e in #(
33314 e) ax_cv_check_ldflags___pie=no ;;
33315 esac
33316 fi
33317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33318 conftest$ac_exeext conftest.$ac_ext
33319 LDFLAGS=$ax_check_save_flags ;;
33320 esac
33321 fi
33322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
33323 printf "%s\n" "$ax_cv_check_ldflags___pie" >&6; }
33324 if test x"$ax_cv_check_ldflags___pie" = xyes
33325 then :
33326
33327 if test "$enable_pie" = "maybe"; then
33328 LDFLAGS="$LDFLAGS -pie"
33329
33330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working PIE support" >&5
33331 printf %s "checking for working PIE support... " >&6; }
33332 if test ${sudo_cv_working_pie+y}
33333 then :
33334 printf %s "(cached) " >&6
33335 else case e in #(
33336 e)
33337 if test "$cross_compiling" = yes
33338 then :
33339 sudo_cv_working_pie=no
33340 else case e in #(
33341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33342 /* end confdefs.h. */
33343 $ac_includes_default
33344 int main() { char *p = malloc(1024); if (p == NULL) return 1; memset(p, 0, 1024); return 0; }
33345 _ACEOF
33346 if ac_fn_c_try_run "$LINENO"
33347 then :
33348 sudo_cv_working_pie=yes
33349 else case e in #(
33350 e) sudo_cv_working_pie=no ;;
33351 esac
33352 fi
33353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33354 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
33355 esac
33356 fi
33357
33358 ;;
33359 esac
33360 fi
33361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_working_pie" >&5
33362 printf "%s\n" "$sudo_cv_working_pie" >&6; }
33363 if test $sudo_cv_working_pie = yes
33364 then :
33365 enable_pie=yes
33366 fi
33367
33368 fi
33369 if test "$enable_pie" = "yes"; then
33370 PIE_CFLAGS="-fPIE"
33371 PIE_LDFLAGS="-Wc,-fPIE -pie"
33372 fi
33373
33374 else case e in #(
33375 e) : ;;
33376 esac
33377 fi
33378
33379 CFLAGS="$_CFLAGS"
33380 LDFLAGS="$_LDFLAGS"
33381
33382 else case e in #(
33383 e) : ;;
33384 esac
33385 fi
33386
33387 fi
33388 fi
33389 fi
33390 if test X"$enable_pie" != X"no" -a X"$with_gnu_ld" = X"no"; then
33391 # Solaris 11.1 and higher ld supports PIE executables, ASLR,
33392 # non-executable stack and non-executable heap.
33393 case "$host_os" in
33394 solaris2.1[1-9]|solaris2.[2-9][0-9])
33395 # This assumes lt_prog_compiler_pic is a single flag,
33396 # which is the case on Solaris.
33397 if test -n "$lt_prog_compiler_pic"; then
33398 _CFLAGS="$CFLAGS"
33399 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
33400 _LDFLAGS="$LDFLAGS"
33401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-ztype=pie" >&5
33402 printf %s "checking whether the linker accepts -Wl,-ztype=pie... " >&6; }
33403 if test ${ax_cv_check_ldflags___Wl__ztype_pie+y}
33404 then :
33405 printf %s "(cached) " >&6
33406 else case e in #(
33407 e)
33408 ax_check_save_flags=$LDFLAGS
33409 LDFLAGS="$LDFLAGS -Wl,-ztype=pie"
33410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33411 /* end confdefs.h. */
33412
33413 int
33414 main (void)
33415 {
33416
33417 ;
33418 return 0;
33419 }
33420 _ACEOF
33421 if ac_fn_c_try_link "$LINENO"
33422 then :
33423 ax_cv_check_ldflags___Wl__ztype_pie=yes
33424 else case e in #(
33425 e) ax_cv_check_ldflags___Wl__ztype_pie=no ;;
33426 esac
33427 fi
33428 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33429 conftest$ac_exeext conftest.$ac_ext
33430 LDFLAGS=$ax_check_save_flags ;;
33431 esac
33432 fi
33433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__ztype_pie" >&5
33434 printf "%s\n" "$ax_cv_check_ldflags___Wl__ztype_pie" >&6; }
33435 if test x"$ax_cv_check_ldflags___Wl__ztype_pie" = xyes
33436 then :
33437
33438 # Try building PIE if not disabled.
33439 if test X"$enable_pie" = X""; then
33440 LDFLAGS="$LDFLAGS -Wl,-ztype=pie"
33441
33442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working PIE support" >&5
33443 printf %s "checking for working PIE support... " >&6; }
33444 if test ${sudo_cv_working_pie+y}
33445 then :
33446 printf %s "(cached) " >&6
33447 else case e in #(
33448 e)
33449 if test "$cross_compiling" = yes
33450 then :
33451 sudo_cv_working_pie=no
33452 else case e in #(
33453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33454 /* end confdefs.h. */
33455 $ac_includes_default
33456 int main() { char *p = malloc(1024); if (p == NULL) return 1; memset(p, 0, 1024); return 0; }
33457 _ACEOF
33458 if ac_fn_c_try_run "$LINENO"
33459 then :
33460 sudo_cv_working_pie=yes
33461 else case e in #(
33462 e) sudo_cv_working_pie=no ;;
33463 esac
33464 fi
33465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33466 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
33467 esac
33468 fi
33469
33470 ;;
33471 esac
33472 fi
33473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_working_pie" >&5
33474 printf "%s\n" "$sudo_cv_working_pie" >&6; }
33475 if test $sudo_cv_working_pie = yes
33476 then :
33477 enable_pie=yes
33478 fi
33479
33480 fi
33481 if test "$enable_pie" = "yes"; then
33482 PIE_CFLAGS="$lt_prog_compiler_pic"
33483 PIE_LDFLAGS="-Wc,$lt_prog_compiler_pic -Wl,-ztype=pie"
33484 fi
33485
33486 else case e in #(
33487 e) : ;;
33488 esac
33489 fi
33490
33491 CFLAGS="$_CFLAGS"
33492 LDFLAGS="$_LDFLAGS"
33493 fi
33494 # These flags are only valid when linking an executable
33495 # so we cannot add them to HARDENING_LDFLAGS.
33496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-zaslr" >&5
33497 printf %s "checking whether the linker accepts -Wl,-zaslr... " >&6; }
33498 if test ${ax_cv_check_ldflags___Wl__zaslr+y}
33499 then :
33500 printf %s "(cached) " >&6
33501 else case e in #(
33502 e)
33503 ax_check_save_flags=$LDFLAGS
33504 LDFLAGS="$LDFLAGS -Wl,-zaslr"
33505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33506 /* end confdefs.h. */
33507
33508 int
33509 main (void)
33510 {
33511
33512 ;
33513 return 0;
33514 }
33515 _ACEOF
33516 if ac_fn_c_try_link "$LINENO"
33517 then :
33518 ax_cv_check_ldflags___Wl__zaslr=yes
33519 else case e in #(
33520 e) ax_cv_check_ldflags___Wl__zaslr=no ;;
33521 esac
33522 fi
33523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33524 conftest$ac_exeext conftest.$ac_ext
33525 LDFLAGS=$ax_check_save_flags ;;
33526 esac
33527 fi
33528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__zaslr" >&5
33529 printf "%s\n" "$ax_cv_check_ldflags___Wl__zaslr" >&6; }
33530 if test x"$ax_cv_check_ldflags___Wl__zaslr" = xyes
33531 then :
33532
33533
33534 if test ${PIE_LDFLAGS+y}
33535 then :
33536
33537 case " $PIE_LDFLAGS " in #(
33538 *" -Wl,-zaslr "*) :
33539 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : PIE_LDFLAGS already contains -Wl,-zaslr"; } >&5
33540 (: PIE_LDFLAGS already contains -Wl,-zaslr) 2>&5
33541 ac_status=$?
33542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33543 test $ac_status = 0; } ;; #(
33544 *) :
33545
33546 as_fn_append PIE_LDFLAGS " -Wl,-zaslr"
33547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : PIE_LDFLAGS=\"\$PIE_LDFLAGS\""; } >&5
33548 (: PIE_LDFLAGS="$PIE_LDFLAGS") 2>&5
33549 ac_status=$?
33550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33551 test $ac_status = 0; }
33552 ;;
33553 esac
33554
33555 else case e in #(
33556 e)
33557 PIE_LDFLAGS=-Wl,-zaslr
33558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : PIE_LDFLAGS=\"\$PIE_LDFLAGS\""; } >&5
33559 (: PIE_LDFLAGS="$PIE_LDFLAGS") 2>&5
33560 ac_status=$?
33561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33562 test $ac_status = 0; }
33563 ;;
33564 esac
33565 fi
33566
33567
33568 else case e in #(
33569 e) : ;;
33570 esac
33571 fi
33572
33573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-znxheap" >&5
33574 printf %s "checking whether the linker accepts -Wl,-znxheap... " >&6; }
33575 if test ${ax_cv_check_ldflags___Wl__znxheap+y}
33576 then :
33577 printf %s "(cached) " >&6
33578 else case e in #(
33579 e)
33580 ax_check_save_flags=$LDFLAGS
33581 LDFLAGS="$LDFLAGS -Wl,-znxheap"
33582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33583 /* end confdefs.h. */
33584
33585 int
33586 main (void)
33587 {
33588
33589 ;
33590 return 0;
33591 }
33592 _ACEOF
33593 if ac_fn_c_try_link "$LINENO"
33594 then :
33595 ax_cv_check_ldflags___Wl__znxheap=yes
33596 else case e in #(
33597 e) ax_cv_check_ldflags___Wl__znxheap=no ;;
33598 esac
33599 fi
33600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33601 conftest$ac_exeext conftest.$ac_ext
33602 LDFLAGS=$ax_check_save_flags ;;
33603 esac
33604 fi
33605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__znxheap" >&5
33606 printf "%s\n" "$ax_cv_check_ldflags___Wl__znxheap" >&6; }
33607 if test x"$ax_cv_check_ldflags___Wl__znxheap" = xyes
33608 then :
33609
33610
33611 if test ${PIE_LDFLAGS+y}
33612 then :
33613
33614 case " $PIE_LDFLAGS " in #(
33615 *" -Wl,-znxheap "*) :
33616 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : PIE_LDFLAGS already contains -Wl,-znxheap"; } >&5
33617 (: PIE_LDFLAGS already contains -Wl,-znxheap) 2>&5
33618 ac_status=$?
33619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33620 test $ac_status = 0; } ;; #(
33621 *) :
33622
33623 as_fn_append PIE_LDFLAGS " -Wl,-znxheap"
33624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : PIE_LDFLAGS=\"\$PIE_LDFLAGS\""; } >&5
33625 (: PIE_LDFLAGS="$PIE_LDFLAGS") 2>&5
33626 ac_status=$?
33627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33628 test $ac_status = 0; }
33629 ;;
33630 esac
33631
33632 else case e in #(
33633 e)
33634 PIE_LDFLAGS=-Wl,-znxheap
33635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : PIE_LDFLAGS=\"\$PIE_LDFLAGS\""; } >&5
33636 (: PIE_LDFLAGS="$PIE_LDFLAGS") 2>&5
33637 ac_status=$?
33638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33639 test $ac_status = 0; }
33640 ;;
33641 esac
33642 fi
33643
33644
33645 else case e in #(
33646 e) : ;;
33647 esac
33648 fi
33649
33650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-znxstack" >&5
33651 printf %s "checking whether the linker accepts -Wl,-znxstack... " >&6; }
33652 if test ${ax_cv_check_ldflags___Wl__znxstack+y}
33653 then :
33654 printf %s "(cached) " >&6
33655 else case e in #(
33656 e)
33657 ax_check_save_flags=$LDFLAGS
33658 LDFLAGS="$LDFLAGS -Wl,-znxstack"
33659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33660 /* end confdefs.h. */
33661
33662 int
33663 main (void)
33664 {
33665
33666 ;
33667 return 0;
33668 }
33669 _ACEOF
33670 if ac_fn_c_try_link "$LINENO"
33671 then :
33672 ax_cv_check_ldflags___Wl__znxstack=yes
33673 else case e in #(
33674 e) ax_cv_check_ldflags___Wl__znxstack=no ;;
33675 esac
33676 fi
33677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33678 conftest$ac_exeext conftest.$ac_ext
33679 LDFLAGS=$ax_check_save_flags ;;
33680 esac
33681 fi
33682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__znxstack" >&5
33683 printf "%s\n" "$ax_cv_check_ldflags___Wl__znxstack" >&6; }
33684 if test x"$ax_cv_check_ldflags___Wl__znxstack" = xyes
33685 then :
33686
33687
33688 if test ${PIE_LDFLAGS+y}
33689 then :
33690
33691 case " $PIE_LDFLAGS " in #(
33692 *" -Wl,-znxstack "*) :
33693 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : PIE_LDFLAGS already contains -Wl,-znxstack"; } >&5
33694 (: PIE_LDFLAGS already contains -Wl,-znxstack) 2>&5
33695 ac_status=$?
33696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33697 test $ac_status = 0; } ;; #(
33698 *) :
33699
33700 as_fn_append PIE_LDFLAGS " -Wl,-znxstack"
33701 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : PIE_LDFLAGS=\"\$PIE_LDFLAGS\""; } >&5
33702 (: PIE_LDFLAGS="$PIE_LDFLAGS") 2>&5
33703 ac_status=$?
33704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33705 test $ac_status = 0; }
33706 ;;
33707 esac
33708
33709 else case e in #(
33710 e)
33711 PIE_LDFLAGS=-Wl,-znxstack
33712 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : PIE_LDFLAGS=\"\$PIE_LDFLAGS\""; } >&5
33713 (: PIE_LDFLAGS="$PIE_LDFLAGS") 2>&5
33714 ac_status=$?
33715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33716 test $ac_status = 0; }
33717 ;;
33718 esac
33719 fi
33720
33721
33722 else case e in #(
33723 e) : ;;
33724 esac
33725 fi
33726
33727 ;;
33728 esac
33729 fi
33730
33731
33732 if test -n "$GCC"; then
33733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
33734 printf %s "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
33735 if test ${ax_cv_check_cflags___fvisibility_hidden+y}
33736 then :
33737 printf %s "(cached) " >&6
33738 else case e in #(
33739 e)
33740 ax_check_save_flags=$CFLAGS
33741 CFLAGS="$CFLAGS -fvisibility=hidden"
33742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33743 /* end confdefs.h. */
33744
33745 int
33746 main (void)
33747 {
33748
33749 ;
33750 return 0;
33751 }
33752 _ACEOF
33753 if ac_fn_c_try_compile "$LINENO"
33754 then :
33755 ax_cv_check_cflags___fvisibility_hidden=yes
33756 else case e in #(
33757 e) ax_cv_check_cflags___fvisibility_hidden=no ;;
33758 esac
33759 fi
33760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33761 CFLAGS=$ax_check_save_flags ;;
33762 esac
33763 fi
33764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
33765 printf "%s\n" "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
33766 if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes
33767 then :
33768
33769 printf "%s\n" "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
33770
33771
33772 if test ${CFLAGS+y}
33773 then :
33774
33775 case " $CFLAGS " in #(
33776 *" -fvisibility=hidden "*) :
33777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fvisibility=hidden"; } >&5
33778 (: CFLAGS already contains -fvisibility=hidden) 2>&5
33779 ac_status=$?
33780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33781 test $ac_status = 0; } ;; #(
33782 *) :
33783
33784 as_fn_append CFLAGS " -fvisibility=hidden"
33785 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
33786 (: CFLAGS="$CFLAGS") 2>&5
33787 ac_status=$?
33788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33789 test $ac_status = 0; }
33790 ;;
33791 esac
33792
33793 else case e in #(
33794 e)
33795 CFLAGS=-fvisibility=hidden
33796 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
33797 (: CFLAGS="$CFLAGS") 2>&5
33798 ac_status=$?
33799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33800 test $ac_status = 0; }
33801 ;;
33802 esac
33803 fi
33804
33805 LT_LDEXPORTS=
33806 LT_LDDEP=
33807
33808 else case e in #(
33809 e) : ;;
33810 esac
33811 fi
33812
33813 else
33814 case "$host_os" in
33815 hpux*)
33816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Bhidden_def" >&5
33817 printf %s "checking whether C compiler accepts -Bhidden_def... " >&6; }
33818 if test ${ax_cv_check_cflags___Bhidden_def+y}
33819 then :
33820 printf %s "(cached) " >&6
33821 else case e in #(
33822 e)
33823 ax_check_save_flags=$CFLAGS
33824 CFLAGS="$CFLAGS -Bhidden_def"
33825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33826 /* end confdefs.h. */
33827
33828 int
33829 main (void)
33830 {
33831
33832 ;
33833 return 0;
33834 }
33835 _ACEOF
33836 if ac_fn_c_try_compile "$LINENO"
33837 then :
33838 ax_cv_check_cflags___Bhidden_def=yes
33839 else case e in #(
33840 e) ax_cv_check_cflags___Bhidden_def=no ;;
33841 esac
33842 fi
33843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33844 CFLAGS=$ax_check_save_flags ;;
33845 esac
33846 fi
33847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Bhidden_def" >&5
33848 printf "%s\n" "$ax_cv_check_cflags___Bhidden_def" >&6; }
33849 if test "x$ax_cv_check_cflags___Bhidden_def" = xyes
33850 then :
33851
33852 # HP-UX cc may not allow __declspec(dllexport) to be
33853 # used in conjunction with #pragma HP_DEFINED_EXTERNAL
33854 # when redefining standard libc functions.
33855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __declspec(dllexport) can be used when overriding libc functions" >&5
33856 printf %s "checking whether __declspec(dllexport) can be used when overriding libc functions... " >&6; }
33857 if test ${sudo_cv_var_hpux_declspec_libc_function+y}
33858 then :
33859 printf %s "(cached) " >&6
33860 else case e in #(
33861 e)
33862 _CFLAGS="$CFLAGS"
33863 CFLAGS="${CFLAGS} -Bhidden_def"
33864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33865 /* end confdefs.h. */
33866 #include <stdlib.h>
33867 __declspec(dllexport) char * getenv(const char *n) { return NULL; }
33868 _ACEOF
33869 if ac_fn_c_try_compile "$LINENO"
33870 then :
33871
33872 sudo_cv_var_hpux_declspec_libc_function=yes
33873
33874 else case e in #(
33875 e)
33876 sudo_cv_var_hpux_declspec_libc_function=no
33877 ;;
33878 esac
33879 fi
33880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33881 CFLAGS="$_CFLAGS"
33882
33883 ;;
33884 esac
33885 fi
33886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpux_declspec_libc_function" >&5
33887 printf "%s\n" "$sudo_cv_var_hpux_declspec_libc_function" >&6; }
33888 if test "$sudo_cv_var_hpux_declspec_libc_function" = "yes"; then
33889 printf "%s\n" "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
33890
33891
33892 if test ${CFLAGS+y}
33893 then :
33894
33895 case " $CFLAGS " in #(
33896 *" -Bhidden_def "*) :
33897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Bhidden_def"; } >&5
33898 (: CFLAGS already contains -Bhidden_def) 2>&5
33899 ac_status=$?
33900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33901 test $ac_status = 0; } ;; #(
33902 *) :
33903
33904 as_fn_append CFLAGS " -Bhidden_def"
33905 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
33906 (: CFLAGS="$CFLAGS") 2>&5
33907 ac_status=$?
33908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33909 test $ac_status = 0; }
33910 ;;
33911 esac
33912
33913 else case e in #(
33914 e)
33915 CFLAGS=-Bhidden_def
33916 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
33917 (: CFLAGS="$CFLAGS") 2>&5
33918 ac_status=$?
33919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33920 test $ac_status = 0; }
33921 ;;
33922 esac
33923 fi
33924
33925 LT_LDEXPORTS=
33926 LT_LDDEP=
33927 fi
33928
33929 else case e in #(
33930 e) : ;;
33931 esac
33932 fi
33933
33934 ;;
33935 solaris2*)
33936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -xldscope=hidden" >&5
33937 printf %s "checking whether C compiler accepts -xldscope=hidden... " >&6; }
33938 if test ${ax_cv_check_cflags___xldscope_hidden+y}
33939 then :
33940 printf %s "(cached) " >&6
33941 else case e in #(
33942 e)
33943 ax_check_save_flags=$CFLAGS
33944 CFLAGS="$CFLAGS -xldscope=hidden"
33945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33946 /* end confdefs.h. */
33947
33948 int
33949 main (void)
33950 {
33951
33952 ;
33953 return 0;
33954 }
33955 _ACEOF
33956 if ac_fn_c_try_compile "$LINENO"
33957 then :
33958 ax_cv_check_cflags___xldscope_hidden=yes
33959 else case e in #(
33960 e) ax_cv_check_cflags___xldscope_hidden=no ;;
33961 esac
33962 fi
33963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33964 CFLAGS=$ax_check_save_flags ;;
33965 esac
33966 fi
33967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___xldscope_hidden" >&5
33968 printf "%s\n" "$ax_cv_check_cflags___xldscope_hidden" >&6; }
33969 if test "x$ax_cv_check_cflags___xldscope_hidden" = xyes
33970 then :
33971
33972 printf "%s\n" "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
33973
33974
33975 if test ${CFLAGS+y}
33976 then :
33977
33978 case " $CFLAGS " in #(
33979 *" -xldscope=hidden "*) :
33980 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -xldscope=hidden"; } >&5
33981 (: CFLAGS already contains -xldscope=hidden) 2>&5
33982 ac_status=$?
33983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33984 test $ac_status = 0; } ;; #(
33985 *) :
33986
33987 as_fn_append CFLAGS " -xldscope=hidden"
33988 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
33989 (: CFLAGS="$CFLAGS") 2>&5
33990 ac_status=$?
33991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33992 test $ac_status = 0; }
33993 ;;
33994 esac
33995
33996 else case e in #(
33997 e)
33998 CFLAGS=-xldscope=hidden
33999 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
34000 (: CFLAGS="$CFLAGS") 2>&5
34001 ac_status=$?
34002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34003 test $ac_status = 0; }
34004 ;;
34005 esac
34006 fi
34007
34008 LT_LDEXPORTS=
34009 LT_LDDEP=
34010
34011 else case e in #(
34012 e) : ;;
34013 esac
34014 fi
34015
34016 ;;
34017 esac
34018 fi
34019
34020 if test "$lt_cv_prog_gnu_ld" = "yes"; then
34021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
34022 printf %s "checking whether ld supports anonymous map files... " >&6; }
34023 if test ${sudo_cv_var_gnu_ld_anon_map+y}
34024 then :
34025 printf %s "(cached) " >&6
34026 else case e in #(
34027 e)
34028 sudo_cv_var_gnu_ld_anon_map=no
34029 cat > conftest.map <<-EOF
34030 {
34031 global: foo;
34032 local: *;
34033 };
34034 EOF
34035 _CFLAGS="$CFLAGS"
34036 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
34037 _LDFLAGS="$LDFLAGS"
34038 LDFLAGS="$LDFLAGS $lt_prog_compiler_pic -shared -Wl,--version-script,./conftest.map"
34039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34040 /* end confdefs.h. */
34041 int foo;
34042 int
34043 main (void)
34044 {
34045
34046 ;
34047 return 0;
34048 }
34049 _ACEOF
34050 if ac_fn_c_try_link "$LINENO"
34051 then :
34052 sudo_cv_var_gnu_ld_anon_map=yes
34053 fi
34054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34055 conftest$ac_exeext conftest.$ac_ext
34056 CFLAGS="$_CFLAGS"
34057 LDFLAGS="$_LDFLAGS"
34058 rm -f conftest.map
34059
34060 ;;
34061 esac
34062 fi
34063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gnu_ld_anon_map" >&5
34064 printf "%s\n" "$sudo_cv_var_gnu_ld_anon_map" >&6; }
34065 if test "$sudo_cv_var_gnu_ld_anon_map" = "yes"; then
34066 LT_LDDEP="\$(shlib_map)"; LT_LDEXPORTS="-Wl,--version-script,\$(shlib_map)"
34067 fi
34068 else
34069 case "$host_os" in
34070 solaris2*)
34071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
34072 printf %s "checking whether ld supports anonymous map files... " >&6; }
34073 if test ${sudo_cv_var_solaris_ld_anon_map+y}
34074 then :
34075 printf %s "(cached) " >&6
34076 else case e in #(
34077 e)
34078 sudo_cv_var_solaris_ld_anon_map=no
34079 cat > conftest.map <<-EOF
34080 {
34081 global: foo;
34082 local: *;
34083 };
34084 EOF
34085 _CFLAGS="$CFLAGS"
34086 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
34087 _LDFLAGS="$LDFLAGS"
34088 LDFLAGS="$LDFLAGS -shared -Wl,-M,./conftest.map"
34089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34090 /* end confdefs.h. */
34091 int foo;
34092 int
34093 main (void)
34094 {
34095
34096 ;
34097 return 0;
34098 }
34099 _ACEOF
34100 if ac_fn_c_try_link "$LINENO"
34101 then :
34102 sudo_cv_var_solaris_ld_anon_map=yes
34103 fi
34104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34105 conftest$ac_exeext conftest.$ac_ext
34106 CFLAGS="$_CFLAGS"
34107 LDFLAGS="$_LDFLAGS"
34108 rm -f conftest.map
34109
34110 ;;
34111 esac
34112 fi
34113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_solaris_ld_anon_map" >&5
34114 printf "%s\n" "$sudo_cv_var_solaris_ld_anon_map" >&6; }
34115 if test "$sudo_cv_var_solaris_ld_anon_map" = "yes"; then
34116 LT_LDDEP="\$(shlib_map)"; LT_LDEXPORTS="-Wl,-M,\$(shlib_map)"
34117 fi
34118 ;;
34119 hpux*)
34120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ld supports controlling exported symbols" >&5
34121 printf %s "checking whether ld supports controlling exported symbols... " >&6; }
34122 if test ${sudo_cv_var_hpux_ld_symbol_export+y}
34123 then :
34124 printf %s "(cached) " >&6
34125 else case e in #(
34126 e)
34127 sudo_cv_var_hpux_ld_symbol_export=no
34128 echo "+e foo" > conftest.opt
34129 _CFLAGS="$CFLAGS"
34130 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
34131 _LDFLAGS="$LDFLAGS"
34132 if test -n "$GCC"; then
34133 LDFLAGS="$LDFLAGS -shared -Wl,-c,./conftest.opt"
34134 else
34135 LDFLAGS="$LDFLAGS -b -Wl,-c,./conftest.opt"
34136 fi
34137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34138 /* end confdefs.h. */
34139 int foo;
34140 int
34141 main (void)
34142 {
34143
34144 ;
34145 return 0;
34146 }
34147 _ACEOF
34148 if ac_fn_c_try_link "$LINENO"
34149 then :
34150 sudo_cv_var_hpux_ld_symbol_export=yes
34151 fi
34152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34153 conftest$ac_exeext conftest.$ac_ext
34154 CFLAGS="$_CFLAGS"
34155 LDFLAGS="$_LDFLAGS"
34156 rm -f conftest.opt
34157
34158 ;;
34159 esac
34160 fi
34161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpux_ld_symbol_export" >&5
34162 printf "%s\n" "$sudo_cv_var_hpux_ld_symbol_export" >&6; }
34163 if test "$sudo_cv_var_hpux_ld_symbol_export" = "yes"; then
34164 LT_LDDEP="\$(shlib_opt)"; LT_LDEXPORTS="-Wl,-c,\$(shlib_opt)"
34165 fi
34166 ;;
34167 esac
34168 fi
34169
34170
34171 if test X"${enable_sanitizer}{enable_fuzzer}" != X"nono"; then
34172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--allow-multiple-definition" >&5
34173 printf %s "checking whether the linker accepts -Wl,--allow-multiple-definition... " >&6; }
34174 if test ${ax_cv_check_ldflags___Wl___allow_multiple_definition+y}
34175 then :
34176 printf %s "(cached) " >&6
34177 else case e in #(
34178 e)
34179 ax_check_save_flags=$LDFLAGS
34180 LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition"
34181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34182 /* end confdefs.h. */
34183
34184 int
34185 main (void)
34186 {
34187
34188 ;
34189 return 0;
34190 }
34191 _ACEOF
34192 if ac_fn_c_try_link "$LINENO"
34193 then :
34194 ax_cv_check_ldflags___Wl___allow_multiple_definition=yes
34195 else case e in #(
34196 e) ax_cv_check_ldflags___Wl___allow_multiple_definition=no ;;
34197 esac
34198 fi
34199 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34200 conftest$ac_exeext conftest.$ac_ext
34201 LDFLAGS=$ax_check_save_flags ;;
34202 esac
34203 fi
34204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___allow_multiple_definition" >&5
34205 printf "%s\n" "$ax_cv_check_ldflags___Wl___allow_multiple_definition" >&6; }
34206 if test x"$ax_cv_check_ldflags___Wl___allow_multiple_definition" = xyes
34207 then :
34208
34209 if test ${ASAN_LDFLAGS+y}
34210 then :
34211
34212 case " $ASAN_LDFLAGS " in #(
34213 *" -Wl,--allow-multiple-definition "*) :
34214 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS already contains -Wl,--allow-multiple-definition"; } >&5
34215 (: ASAN_LDFLAGS already contains -Wl,--allow-multiple-definition) 2>&5
34216 ac_status=$?
34217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34218 test $ac_status = 0; } ;; #(
34219 *) :
34220
34221 as_fn_append ASAN_LDFLAGS " -Wl,--allow-multiple-definition"
34222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS=\"\$ASAN_LDFLAGS\""; } >&5
34223 (: ASAN_LDFLAGS="$ASAN_LDFLAGS") 2>&5
34224 ac_status=$?
34225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34226 test $ac_status = 0; }
34227 ;;
34228 esac
34229
34230 else case e in #(
34231 e)
34232 ASAN_LDFLAGS=-Wl,--allow-multiple-definition
34233 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS=\"\$ASAN_LDFLAGS\""; } >&5
34234 (: ASAN_LDFLAGS="$ASAN_LDFLAGS") 2>&5
34235 ac_status=$?
34236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34237 test $ac_status = 0; }
34238 ;;
34239 esac
34240 fi
34241
34242 else case e in #(
34243 e) : ;;
34244 esac
34245 fi
34246
34247 fi
34248
34249 if test X"$enable_sanitizer" != X"no"; then
34250 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$enable_sanitizer" | sed "$as_sed_sh"`
34251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $enable_sanitizer" >&5
34252 printf %s "checking whether C compiler accepts $enable_sanitizer... " >&6; }
34253 if eval test \${$as_CACHEVAR+y}
34254 then :
34255 printf %s "(cached) " >&6
34256 else case e in #(
34257 e)
34258 ax_check_save_flags=$CFLAGS
34259 CFLAGS="$CFLAGS $enable_sanitizer"
34260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34261 /* end confdefs.h. */
34262
34263 int
34264 main (void)
34265 {
34266
34267 ;
34268 return 0;
34269 }
34270 _ACEOF
34271 if ac_fn_c_try_compile "$LINENO"
34272 then :
34273 eval "$as_CACHEVAR=yes"
34274 else case e in #(
34275 e) eval "$as_CACHEVAR=no" ;;
34276 esac
34277 fi
34278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34279 CFLAGS=$ax_check_save_flags ;;
34280 esac
34281 fi
34282 eval ac_res=\$$as_CACHEVAR
34283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34284 printf "%s\n" "$ac_res" >&6; }
34285 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
34286 then :
34287
34288
34289 if test ${ASAN_CFLAGS+y}
34290 then :
34291
34292 case " $ASAN_CFLAGS " in #(
34293 *" $enable_sanitizer "*) :
34294 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_CFLAGS already contains \$enable_sanitizer"; } >&5
34295 (: ASAN_CFLAGS already contains $enable_sanitizer) 2>&5
34296 ac_status=$?
34297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34298 test $ac_status = 0; } ;; #(
34299 *) :
34300
34301 as_fn_append ASAN_CFLAGS " $enable_sanitizer"
34302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_CFLAGS=\"\$ASAN_CFLAGS\""; } >&5
34303 (: ASAN_CFLAGS="$ASAN_CFLAGS") 2>&5
34304 ac_status=$?
34305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34306 test $ac_status = 0; }
34307 ;;
34308 esac
34309
34310 else case e in #(
34311 e)
34312 ASAN_CFLAGS=$enable_sanitizer
34313 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_CFLAGS=\"\$ASAN_CFLAGS\""; } >&5
34314 (: ASAN_CFLAGS="$ASAN_CFLAGS") 2>&5
34315 ac_status=$?
34316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34317 test $ac_status = 0; }
34318 ;;
34319 esac
34320 fi
34321
34322
34323 if test ${ASAN_LDFLAGS+y}
34324 then :
34325
34326 case " $ASAN_LDFLAGS " in #(
34327 *" -XCClinker "*) :
34328 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS already contains -XCClinker"; } >&5
34329 (: ASAN_LDFLAGS already contains -XCClinker) 2>&5
34330 ac_status=$?
34331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34332 test $ac_status = 0; } ;; #(
34333 *) :
34334
34335 as_fn_append ASAN_LDFLAGS " -XCClinker"
34336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS=\"\$ASAN_LDFLAGS\""; } >&5
34337 (: ASAN_LDFLAGS="$ASAN_LDFLAGS") 2>&5
34338 ac_status=$?
34339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34340 test $ac_status = 0; }
34341 ;;
34342 esac
34343
34344 else case e in #(
34345 e)
34346 ASAN_LDFLAGS=-XCClinker
34347 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS=\"\$ASAN_LDFLAGS\""; } >&5
34348 (: ASAN_LDFLAGS="$ASAN_LDFLAGS") 2>&5
34349 ac_status=$?
34350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34351 test $ac_status = 0; }
34352 ;;
34353 esac
34354 fi
34355
34356
34357 if test ${ASAN_LDFLAGS+y}
34358 then :
34359
34360 case " $ASAN_LDFLAGS " in #(
34361 *" $enable_sanitizer "*) :
34362 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS already contains \$enable_sanitizer"; } >&5
34363 (: ASAN_LDFLAGS already contains $enable_sanitizer) 2>&5
34364 ac_status=$?
34365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34366 test $ac_status = 0; } ;; #(
34367 *) :
34368
34369 as_fn_append ASAN_LDFLAGS " $enable_sanitizer"
34370 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS=\"\$ASAN_LDFLAGS\""; } >&5
34371 (: ASAN_LDFLAGS="$ASAN_LDFLAGS") 2>&5
34372 ac_status=$?
34373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34374 test $ac_status = 0; }
34375 ;;
34376 esac
34377
34378 else case e in #(
34379 e)
34380 ASAN_LDFLAGS=$enable_sanitizer
34381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS=\"\$ASAN_LDFLAGS\""; } >&5
34382 (: ASAN_LDFLAGS="$ASAN_LDFLAGS") 2>&5
34383 ac_status=$?
34384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34385 test $ac_status = 0; }
34386 ;;
34387 esac
34388 fi
34389
34390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-omit-frame-pointer" >&5
34391 printf %s "checking whether C compiler accepts -fno-omit-frame-pointer... " >&6; }
34392 if test ${ax_cv_check_cflags___fno_omit_frame_pointer+y}
34393 then :
34394 printf %s "(cached) " >&6
34395 else case e in #(
34396 e)
34397 ax_check_save_flags=$CFLAGS
34398 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
34399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34400 /* end confdefs.h. */
34401
34402 int
34403 main (void)
34404 {
34405
34406 ;
34407 return 0;
34408 }
34409 _ACEOF
34410 if ac_fn_c_try_compile "$LINENO"
34411 then :
34412 ax_cv_check_cflags___fno_omit_frame_pointer=yes
34413 else case e in #(
34414 e) ax_cv_check_cflags___fno_omit_frame_pointer=no ;;
34415 esac
34416 fi
34417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34418 CFLAGS=$ax_check_save_flags ;;
34419 esac
34420 fi
34421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_omit_frame_pointer" >&5
34422 printf "%s\n" "$ax_cv_check_cflags___fno_omit_frame_pointer" >&6; }
34423 if test "x$ax_cv_check_cflags___fno_omit_frame_pointer" = xyes
34424 then :
34425
34426
34427 if test ${CFLAGS+y}
34428 then :
34429
34430 case " $CFLAGS " in #(
34431 *" -fno-omit-frame-pointer "*) :
34432 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fno-omit-frame-pointer"; } >&5
34433 (: CFLAGS already contains -fno-omit-frame-pointer) 2>&5
34434 ac_status=$?
34435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34436 test $ac_status = 0; } ;; #(
34437 *) :
34438
34439 as_fn_append CFLAGS " -fno-omit-frame-pointer"
34440 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
34441 (: CFLAGS="$CFLAGS") 2>&5
34442 ac_status=$?
34443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34444 test $ac_status = 0; }
34445 ;;
34446 esac
34447
34448 else case e in #(
34449 e)
34450 CFLAGS=-fno-omit-frame-pointer
34451 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
34452 (: CFLAGS="$CFLAGS") 2>&5
34453 ac_status=$?
34454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34455 test $ac_status = 0; }
34456 ;;
34457 esac
34458 fi
34459
34460
34461 else case e in #(
34462 e) : ;;
34463 esac
34464 fi
34465
34466 printf "%s\n" "#define NO_LEAKS 1" >>confdefs.h
34467
34468 case `$CC --version 2>&1` in
34469 *gcc*)
34470 libasan=`$CC -print-file-name=libasan.so 2>/dev/null`
34471 if test -n "$libasan" -a X"$libasan" != X"libasan.so"; then
34472 # libasan.so may be a linker script
34473 libasan="`awk 'BEGIN {lib=ARGV[1]} /^INPUT/ {lib=$3} END {print lib}' \"$libasan\"`"
34474 cat >>confdefs.h <<EOF
34475 #define _PATH_ASAN_LIB "$libasan"
34476 EOF
34477
34478 fi
34479 ;;
34480 esac
34481
34482 else case e in #(
34483 e)
34484 as_fn_error $? "$CC does not support the $enable_sanitizer flag" "$LINENO" 5
34485 ;;
34486 esac
34487 fi
34488
34489 fi
34490
34491 if test X"$enable_fuzzer" = X"yes"; then
34492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=fuzzer-no-link" >&5
34493 printf %s "checking whether C compiler accepts -fsanitize=fuzzer-no-link... " >&6; }
34494 if test ${ax_cv_check_cflags___fsanitize_fuzzer_no_link+y}
34495 then :
34496 printf %s "(cached) " >&6
34497 else case e in #(
34498 e)
34499 ax_check_save_flags=$CFLAGS
34500 CFLAGS="$CFLAGS -fsanitize=fuzzer-no-link"
34501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34502 /* end confdefs.h. */
34503
34504 int
34505 main (void)
34506 {
34507
34508 ;
34509 return 0;
34510 }
34511 _ACEOF
34512 if ac_fn_c_try_compile "$LINENO"
34513 then :
34514 ax_cv_check_cflags___fsanitize_fuzzer_no_link=yes
34515 else case e in #(
34516 e) ax_cv_check_cflags___fsanitize_fuzzer_no_link=no ;;
34517 esac
34518 fi
34519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34520 CFLAGS=$ax_check_save_flags ;;
34521 esac
34522 fi
34523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_fuzzer_no_link" >&5
34524 printf "%s\n" "$ax_cv_check_cflags___fsanitize_fuzzer_no_link" >&6; }
34525 if test "x$ax_cv_check_cflags___fsanitize_fuzzer_no_link" = xyes
34526 then :
34527
34528
34529 if test ${ASAN_CFLAGS+y}
34530 then :
34531
34532 case " $ASAN_CFLAGS " in #(
34533 *" -fsanitize=fuzzer-no-link "*) :
34534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_CFLAGS already contains -fsanitize=fuzzer-no-link"; } >&5
34535 (: ASAN_CFLAGS already contains -fsanitize=fuzzer-no-link) 2>&5
34536 ac_status=$?
34537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34538 test $ac_status = 0; } ;; #(
34539 *) :
34540
34541 as_fn_append ASAN_CFLAGS " -fsanitize=fuzzer-no-link"
34542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_CFLAGS=\"\$ASAN_CFLAGS\""; } >&5
34543 (: ASAN_CFLAGS="$ASAN_CFLAGS") 2>&5
34544 ac_status=$?
34545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34546 test $ac_status = 0; }
34547 ;;
34548 esac
34549
34550 else case e in #(
34551 e)
34552 ASAN_CFLAGS=-fsanitize=fuzzer-no-link
34553 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_CFLAGS=\"\$ASAN_CFLAGS\""; } >&5
34554 (: ASAN_CFLAGS="$ASAN_CFLAGS") 2>&5
34555 ac_status=$?
34556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34557 test $ac_status = 0; }
34558 ;;
34559 esac
34560 fi
34561
34562
34563 if test ${ASAN_LDFLAGS+y}
34564 then :
34565
34566 case " $ASAN_LDFLAGS " in #(
34567 *" -XCClinker "*) :
34568 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS already contains -XCClinker"; } >&5
34569 (: ASAN_LDFLAGS already contains -XCClinker) 2>&5
34570 ac_status=$?
34571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34572 test $ac_status = 0; } ;; #(
34573 *) :
34574
34575 as_fn_append ASAN_LDFLAGS " -XCClinker"
34576 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS=\"\$ASAN_LDFLAGS\""; } >&5
34577 (: ASAN_LDFLAGS="$ASAN_LDFLAGS") 2>&5
34578 ac_status=$?
34579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34580 test $ac_status = 0; }
34581 ;;
34582 esac
34583
34584 else case e in #(
34585 e)
34586 ASAN_LDFLAGS=-XCClinker
34587 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS=\"\$ASAN_LDFLAGS\""; } >&5
34588 (: ASAN_LDFLAGS="$ASAN_LDFLAGS") 2>&5
34589 ac_status=$?
34590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34591 test $ac_status = 0; }
34592 ;;
34593 esac
34594 fi
34595
34596
34597 if test ${ASAN_LDFLAGS+y}
34598 then :
34599
34600 case " $ASAN_LDFLAGS " in #(
34601 *" -fsanitize=fuzzer-no-link "*) :
34602 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS already contains -fsanitize=fuzzer-no-link"; } >&5
34603 (: ASAN_LDFLAGS already contains -fsanitize=fuzzer-no-link) 2>&5
34604 ac_status=$?
34605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34606 test $ac_status = 0; } ;; #(
34607 *) :
34608
34609 as_fn_append ASAN_LDFLAGS " -fsanitize=fuzzer-no-link"
34610 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS=\"\$ASAN_LDFLAGS\""; } >&5
34611 (: ASAN_LDFLAGS="$ASAN_LDFLAGS") 2>&5
34612 ac_status=$?
34613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34614 test $ac_status = 0; }
34615 ;;
34616 esac
34617
34618 else case e in #(
34619 e)
34620 ASAN_LDFLAGS=-fsanitize=fuzzer-no-link
34621 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : ASAN_LDFLAGS=\"\$ASAN_LDFLAGS\""; } >&5
34622 (: ASAN_LDFLAGS="$ASAN_LDFLAGS") 2>&5
34623 ac_status=$?
34624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34625 test $ac_status = 0; }
34626 ;;
34627 esac
34628 fi
34629
34630 if test -z "$FUZZ_ENGINE"; then
34631 FUZZ_ENGINE="-fsanitize=fuzzer"
34632 fi
34633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-omit-frame-pointer" >&5
34634 printf %s "checking whether C compiler accepts -fno-omit-frame-pointer... " >&6; }
34635 if test ${ax_cv_check_cflags___fno_omit_frame_pointer+y}
34636 then :
34637 printf %s "(cached) " >&6
34638 else case e in #(
34639 e)
34640 ax_check_save_flags=$CFLAGS
34641 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
34642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34643 /* end confdefs.h. */
34644
34645 int
34646 main (void)
34647 {
34648
34649 ;
34650 return 0;
34651 }
34652 _ACEOF
34653 if ac_fn_c_try_compile "$LINENO"
34654 then :
34655 ax_cv_check_cflags___fno_omit_frame_pointer=yes
34656 else case e in #(
34657 e) ax_cv_check_cflags___fno_omit_frame_pointer=no ;;
34658 esac
34659 fi
34660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34661 CFLAGS=$ax_check_save_flags ;;
34662 esac
34663 fi
34664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_omit_frame_pointer" >&5
34665 printf "%s\n" "$ax_cv_check_cflags___fno_omit_frame_pointer" >&6; }
34666 if test "x$ax_cv_check_cflags___fno_omit_frame_pointer" = xyes
34667 then :
34668
34669
34670 if test ${CFLAGS+y}
34671 then :
34672
34673 case " $CFLAGS " in #(
34674 *" -fno-omit-frame-pointer "*) :
34675 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fno-omit-frame-pointer"; } >&5
34676 (: CFLAGS already contains -fno-omit-frame-pointer) 2>&5
34677 ac_status=$?
34678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34679 test $ac_status = 0; } ;; #(
34680 *) :
34681
34682 as_fn_append CFLAGS " -fno-omit-frame-pointer"
34683 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
34684 (: CFLAGS="$CFLAGS") 2>&5
34685 ac_status=$?
34686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34687 test $ac_status = 0; }
34688 ;;
34689 esac
34690
34691 else case e in #(
34692 e)
34693 CFLAGS=-fno-omit-frame-pointer
34694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
34695 (: CFLAGS="$CFLAGS") 2>&5
34696 ac_status=$?
34697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34698 test $ac_status = 0; }
34699 ;;
34700 esac
34701 fi
34702
34703
34704 else case e in #(
34705 e) : ;;
34706 esac
34707 fi
34708
34709 # Use CFLAGS, not CPPFLAGS to match oss-fuzz behavior
34710
34711 if test ${CFLAGS+y}
34712 then :
34713
34714 case " $CFLAGS " in #(
34715 *" -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION "*) :
34716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"; } >&5
34717 (: CFLAGS already contains -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) 2>&5
34718 ac_status=$?
34719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34720 test $ac_status = 0; } ;; #(
34721 *) :
34722
34723 as_fn_append CFLAGS " -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
34724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
34725 (: CFLAGS="$CFLAGS") 2>&5
34726 ac_status=$?
34727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34728 test $ac_status = 0; }
34729 ;;
34730 esac
34731
34732 else case e in #(
34733 e)
34734 CFLAGS=-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
34735 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
34736 (: CFLAGS="$CFLAGS") 2>&5
34737 ac_status=$?
34738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34739 test $ac_status = 0; }
34740 ;;
34741 esac
34742 fi
34743
34744 printf "%s\n" "#define NO_LEAKS 1" >>confdefs.h
34745
34746
34747 else case e in #(
34748 e)
34749 as_fn_error $? "$CC does not support the -fsanitize=fuzzer-no-link flag" "$LINENO" 5
34750 ;;
34751 esac
34752 fi
34753
34754 else
34755 # Not using compiler fuzzing support, link with stub library.
34756 FUZZ_ENGINE='$(top_builddir)/lib/fuzzstub/libsudo_fuzzstub.la'
34757 fi
34758
34759
34760 if test "$enable_hardening" != "no"; then
34761 #
34762 # Attempt to use _FORTIFY_SOURCE with sprintf. If the headers support
34763 # it but libc does not, __sprintf_chk should be an undefined symbol.
34764 #
34765 O_CPPFLAGS="$CPPFLAGS"
34766
34767 if test ${CPPFLAGS+y}
34768 then :
34769
34770 case " $CPPFLAGS " in #(
34771 *" -D_FORTIFY_SOURCE=2 "*) :
34772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -D_FORTIFY_SOURCE=2"; } >&5
34773 (: CPPFLAGS already contains -D_FORTIFY_SOURCE=2) 2>&5
34774 ac_status=$?
34775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34776 test $ac_status = 0; } ;; #(
34777 *) :
34778
34779 as_fn_append CPPFLAGS " -D_FORTIFY_SOURCE=2"
34780 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
34781 (: CPPFLAGS="$CPPFLAGS") 2>&5
34782 ac_status=$?
34783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34784 test $ac_status = 0; }
34785 ;;
34786 esac
34787
34788 else case e in #(
34789 e)
34790 CPPFLAGS=-D_FORTIFY_SOURCE=2
34791 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
34792 (: CPPFLAGS="$CPPFLAGS") 2>&5
34793 ac_status=$?
34794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34795 test $ac_status = 0; }
34796 ;;
34797 esac
34798 fi
34799
34800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _FORTIFY_SOURCE may be specified" >&5
34801 printf %s "checking whether _FORTIFY_SOURCE may be specified... " >&6; }
34802 if test ${sudo_cv_use_fortify_source+y}
34803 then :
34804 printf %s "(cached) " >&6
34805 else case e in #(
34806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34807 /* end confdefs.h. */
34808
34809 #include <stdio.h>
34810 int
34811 main (void)
34812 {
34813 char buf[4]; sprintf(buf, "%s", "foo"); return buf[0];
34814
34815 ;
34816 return 0;
34817 }
34818 _ACEOF
34819 if ac_fn_c_try_link "$LINENO"
34820 then :
34821 sudo_cv_use_fortify_source=yes
34822 else case e in #(
34823 e) sudo_cv_use_fortify_source=no
34824 ;;
34825 esac
34826 fi
34827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34828 conftest$ac_exeext conftest.$ac_ext
34829
34830 ;;
34831 esac
34832 fi
34833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_use_fortify_source" >&5
34834 printf "%s\n" "$sudo_cv_use_fortify_source" >&6; }
34835 if test "$sudo_cv_use_fortify_source" != yes; then
34836 CPPFLAGS="$O_CPPFLAGS"
34837 fi
34838
34839 if test -n "$GCC" -a "$enable_ssp" != "no"; then
34840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler stack protector support" >&5
34841 printf %s "checking for compiler stack protector support... " >&6; }
34842 if test ${sudo_cv_var_stack_protector+y}
34843 then :
34844 printf %s "(cached) " >&6
34845 else case e in #(
34846 e)
34847 # Avoid CFLAGS since the compiler might optimize away our
34848 # test. We don't want CPPFLAGS or LIBS to interfere with
34849 # the test but keep LDFLAGS as it may have an rpath needed
34850 # to find the ssp lib.
34851 _CPPFLAGS="$CPPFLAGS"
34852 _CFLAGS="$CFLAGS"
34853 _LDFLAGS="$LDFLAGS"
34854 _LIBS="$LIBS"
34855 CPPFLAGS=
34856 LIBS=
34857
34858 sudo_cv_var_stack_protector="-fstack-protector-strong"
34859 CFLAGS="$sudo_cv_var_stack_protector"
34860 LDFLAGS="$_LDFLAGS $sudo_cv_var_stack_protector"
34861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34862 /* end confdefs.h. */
34863
34864 $ac_includes_default
34865 int
34866 main (void)
34867 {
34868 char buf[1024]; buf[1023] = '\0';
34869 ;
34870 return 0;
34871 }
34872
34873 _ACEOF
34874 if ac_fn_c_try_link "$LINENO"
34875 then :
34876
34877 else case e in #(
34878 e)
34879 sudo_cv_var_stack_protector="-fstack-protector-all"
34880 CFLAGS="$sudo_cv_var_stack_protector"
34881 LDFLAGS="$_LDFLAGS $sudo_cv_var_stack_protector"
34882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34883 /* end confdefs.h. */
34884
34885 $ac_includes_default
34886 int
34887 main (void)
34888 {
34889 char buf[1024]; buf[1023] = '\0';
34890 ;
34891 return 0;
34892 }
34893
34894 _ACEOF
34895 if ac_fn_c_try_link "$LINENO"
34896 then :
34897
34898 else case e in #(
34899 e)
34900 sudo_cv_var_stack_protector="-fstack-protector"
34901 CFLAGS="$sudo_cv_var_stack_protector"
34902 LDFLAGS="$_LDFLAGS $sudo_cv_var_stack_protector"
34903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34904 /* end confdefs.h. */
34905
34906 $ac_includes_default
34907 int
34908 main (void)
34909 {
34910 char buf[1024]; buf[1023] = '\0';
34911 ;
34912 return 0;
34913 }
34914
34915 _ACEOF
34916 if ac_fn_c_try_link "$LINENO"
34917 then :
34918
34919 else case e in #(
34920 e)
34921 sudo_cv_var_stack_protector=no
34922 ;;
34923 esac
34924 fi
34925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34926 conftest$ac_exeext conftest.$ac_ext
34927 ;;
34928 esac
34929 fi
34930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34931 conftest$ac_exeext conftest.$ac_ext
34932 ;;
34933 esac
34934 fi
34935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34936 conftest$ac_exeext conftest.$ac_ext
34937 CPPFLAGS="$_CPPFLAGS"
34938 CFLAGS="$_CFLAGS"
34939 LDFLAGS="$_LDFLAGS"
34940 LIBS="$_LIBS"
34941
34942 ;;
34943 esac
34944 fi
34945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_stack_protector" >&5
34946 printf "%s\n" "$sudo_cv_var_stack_protector" >&6; }
34947 if test X"$sudo_cv_var_stack_protector" != X"no"; then
34948 HARDENING_CFLAGS="$sudo_cv_var_stack_protector"
34949 HARDENING_LDFLAGS="-Wc,$sudo_cv_var_stack_protector"
34950 fi
34951 fi
34952
34953 # The gcc front-end may accept -fstack-clash-protection even if the
34954 # machine-specific code does not support it. We use a test program
34955 # with a large stack allocation to try to cause the compiler to
34956 # insert the stack clash protection code, or fail if not supported.
34957 if test -n "$GCC"; then
34958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -fstack-clash-protection" >&5
34959 printf %s "checking whether C compiler supports -fstack-clash-protection... " >&6; }
34960 if test ${sudo_cv_check_cflags___fstack_clash_protection+y}
34961 then :
34962 printf %s "(cached) " >&6
34963 else case e in #(
34964 e)
34965 _CFLAGS="$CFLAGS"
34966 CFLAGS="$CFLAGS -fstack-clash-protection"
34967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34968 /* end confdefs.h. */
34969
34970 int main(int argc, char *argv[]) { char buf[16384], *src = argv[0], *dst = buf; while ((*dst++ = *src++) != '\0') { continue; } return buf[argc]; }
34971
34972 _ACEOF
34973 if ac_fn_c_try_compile "$LINENO"
34974 then :
34975 sudo_cv_check_cflags___fstack_clash_protection=yes
34976 else case e in #(
34977 e) sudo_cv_check_cflags___fstack_clash_protection=no ;;
34978 esac
34979 fi
34980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34981 CFLAGS="$_CFLAGS"
34982
34983 ;;
34984 esac
34985 fi
34986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_check_cflags___fstack_clash_protection" >&5
34987 printf "%s\n" "$sudo_cv_check_cflags___fstack_clash_protection" >&6; }
34988 if test X"$sudo_cv_check_cflags___fstack_clash_protection" = X"yes"; then
34989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-clash-protection" >&5
34990 printf %s "checking whether the linker accepts -fstack-clash-protection... " >&6; }
34991 if test ${ax_cv_check_ldflags___fstack_clash_protection+y}
34992 then :
34993 printf %s "(cached) " >&6
34994 else case e in #(
34995 e)
34996 ax_check_save_flags=$LDFLAGS
34997 LDFLAGS="$LDFLAGS -fstack-clash-protection"
34998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34999 /* end confdefs.h. */
35000
35001 int
35002 main (void)
35003 {
35004
35005 ;
35006 return 0;
35007 }
35008 _ACEOF
35009 if ac_fn_c_try_link "$LINENO"
35010 then :
35011 ax_cv_check_ldflags___fstack_clash_protection=yes
35012 else case e in #(
35013 e) ax_cv_check_ldflags___fstack_clash_protection=no ;;
35014 esac
35015 fi
35016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35017 conftest$ac_exeext conftest.$ac_ext
35018 LDFLAGS=$ax_check_save_flags ;;
35019 esac
35020 fi
35021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_clash_protection" >&5
35022 printf "%s\n" "$ax_cv_check_ldflags___fstack_clash_protection" >&6; }
35023 if test x"$ax_cv_check_ldflags___fstack_clash_protection" = xyes
35024 then :
35025
35026
35027 if test ${HARDENING_CFLAGS+y}
35028 then :
35029
35030 case " $HARDENING_CFLAGS " in #(
35031 *" -fstack-clash-protection "*) :
35032 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_CFLAGS already contains -fstack-clash-protection"; } >&5
35033 (: HARDENING_CFLAGS already contains -fstack-clash-protection) 2>&5
35034 ac_status=$?
35035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35036 test $ac_status = 0; } ;; #(
35037 *) :
35038
35039 as_fn_append HARDENING_CFLAGS " -fstack-clash-protection"
35040 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_CFLAGS=\"\$HARDENING_CFLAGS\""; } >&5
35041 (: HARDENING_CFLAGS="$HARDENING_CFLAGS") 2>&5
35042 ac_status=$?
35043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35044 test $ac_status = 0; }
35045 ;;
35046 esac
35047
35048 else case e in #(
35049 e)
35050 HARDENING_CFLAGS=-fstack-clash-protection
35051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_CFLAGS=\"\$HARDENING_CFLAGS\""; } >&5
35052 (: HARDENING_CFLAGS="$HARDENING_CFLAGS") 2>&5
35053 ac_status=$?
35054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35055 test $ac_status = 0; }
35056 ;;
35057 esac
35058 fi
35059
35060
35061 if test ${HARDENING_LDFLAGS+y}
35062 then :
35063
35064 case " $HARDENING_LDFLAGS " in #(
35065 *" -Wc,-fstack-clash-protection "*) :
35066 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS already contains -Wc,-fstack-clash-protection"; } >&5
35067 (: HARDENING_LDFLAGS already contains -Wc,-fstack-clash-protection) 2>&5
35068 ac_status=$?
35069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35070 test $ac_status = 0; } ;; #(
35071 *) :
35072
35073 as_fn_append HARDENING_LDFLAGS " -Wc,-fstack-clash-protection"
35074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS=\"\$HARDENING_LDFLAGS\""; } >&5
35075 (: HARDENING_LDFLAGS="$HARDENING_LDFLAGS") 2>&5
35076 ac_status=$?
35077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35078 test $ac_status = 0; }
35079 ;;
35080 esac
35081
35082 else case e in #(
35083 e)
35084 HARDENING_LDFLAGS=-Wc,-fstack-clash-protection
35085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS=\"\$HARDENING_LDFLAGS\""; } >&5
35086 (: HARDENING_LDFLAGS="$HARDENING_LDFLAGS") 2>&5
35087 ac_status=$?
35088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35089 test $ac_status = 0; }
35090 ;;
35091 esac
35092 fi
35093
35094
35095 else case e in #(
35096 e) : ;;
35097 esac
35098 fi
35099
35100 fi
35101
35102 # Check for control-flow transfer instrumentation (Intel CET).
35103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fcf-protection" >&5
35104 printf %s "checking whether C compiler accepts -fcf-protection... " >&6; }
35105 if test ${ax_cv_check_cflags___fcf_protection+y}
35106 then :
35107 printf %s "(cached) " >&6
35108 else case e in #(
35109 e)
35110 ax_check_save_flags=$CFLAGS
35111 CFLAGS="$CFLAGS -fcf-protection"
35112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35113 /* end confdefs.h. */
35114
35115 int
35116 main (void)
35117 {
35118
35119 ;
35120 return 0;
35121 }
35122 _ACEOF
35123 if ac_fn_c_try_compile "$LINENO"
35124 then :
35125 ax_cv_check_cflags___fcf_protection=yes
35126 else case e in #(
35127 e) ax_cv_check_cflags___fcf_protection=no ;;
35128 esac
35129 fi
35130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35131 CFLAGS=$ax_check_save_flags ;;
35132 esac
35133 fi
35134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fcf_protection" >&5
35135 printf "%s\n" "$ax_cv_check_cflags___fcf_protection" >&6; }
35136 if test "x$ax_cv_check_cflags___fcf_protection" = xyes
35137 then :
35138
35139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fcf-protection" >&5
35140 printf %s "checking whether the linker accepts -fcf-protection... " >&6; }
35141 if test ${ax_cv_check_ldflags___fcf_protection+y}
35142 then :
35143 printf %s "(cached) " >&6
35144 else case e in #(
35145 e)
35146 ax_check_save_flags=$LDFLAGS
35147 LDFLAGS="$LDFLAGS -fcf-protection"
35148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35149 /* end confdefs.h. */
35150
35151 int
35152 main (void)
35153 {
35154
35155 ;
35156 return 0;
35157 }
35158 _ACEOF
35159 if ac_fn_c_try_link "$LINENO"
35160 then :
35161 ax_cv_check_ldflags___fcf_protection=yes
35162 else case e in #(
35163 e) ax_cv_check_ldflags___fcf_protection=no ;;
35164 esac
35165 fi
35166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35167 conftest$ac_exeext conftest.$ac_ext
35168 LDFLAGS=$ax_check_save_flags ;;
35169 esac
35170 fi
35171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fcf_protection" >&5
35172 printf "%s\n" "$ax_cv_check_ldflags___fcf_protection" >&6; }
35173 if test x"$ax_cv_check_ldflags___fcf_protection" = xyes
35174 then :
35175
35176
35177 if test ${HARDENING_CFLAGS+y}
35178 then :
35179
35180 case " $HARDENING_CFLAGS " in #(
35181 *" -fcf-protection "*) :
35182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_CFLAGS already contains -fcf-protection"; } >&5
35183 (: HARDENING_CFLAGS already contains -fcf-protection) 2>&5
35184 ac_status=$?
35185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35186 test $ac_status = 0; } ;; #(
35187 *) :
35188
35189 as_fn_append HARDENING_CFLAGS " -fcf-protection"
35190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_CFLAGS=\"\$HARDENING_CFLAGS\""; } >&5
35191 (: HARDENING_CFLAGS="$HARDENING_CFLAGS") 2>&5
35192 ac_status=$?
35193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35194 test $ac_status = 0; }
35195 ;;
35196 esac
35197
35198 else case e in #(
35199 e)
35200 HARDENING_CFLAGS=-fcf-protection
35201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_CFLAGS=\"\$HARDENING_CFLAGS\""; } >&5
35202 (: HARDENING_CFLAGS="$HARDENING_CFLAGS") 2>&5
35203 ac_status=$?
35204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35205 test $ac_status = 0; }
35206 ;;
35207 esac
35208 fi
35209
35210
35211 if test ${HARDENING_LDFLAGS+y}
35212 then :
35213
35214 case " $HARDENING_LDFLAGS " in #(
35215 *" -Wc,-fcf-protection "*) :
35216 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS already contains -Wc,-fcf-protection"; } >&5
35217 (: HARDENING_LDFLAGS already contains -Wc,-fcf-protection) 2>&5
35218 ac_status=$?
35219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35220 test $ac_status = 0; } ;; #(
35221 *) :
35222
35223 as_fn_append HARDENING_LDFLAGS " -Wc,-fcf-protection"
35224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS=\"\$HARDENING_LDFLAGS\""; } >&5
35225 (: HARDENING_LDFLAGS="$HARDENING_LDFLAGS") 2>&5
35226 ac_status=$?
35227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35228 test $ac_status = 0; }
35229 ;;
35230 esac
35231
35232 else case e in #(
35233 e)
35234 HARDENING_LDFLAGS=-Wc,-fcf-protection
35235 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS=\"\$HARDENING_LDFLAGS\""; } >&5
35236 (: HARDENING_LDFLAGS="$HARDENING_LDFLAGS") 2>&5
35237 ac_status=$?
35238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35239 test $ac_status = 0; }
35240 ;;
35241 esac
35242 fi
35243
35244
35245 else case e in #(
35246 e) : ;;
35247 esac
35248 fi
35249
35250
35251 else case e in #(
35252 e) : ;;
35253 esac
35254 fi
35255
35256 fi
35257
35258 # Linker-specific hardening flags.
35259 if test X"$with_gnu_ld" = X"yes"; then
35260 # GNU ld, and similar (gold, lld, etc).
35261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
35262 printf %s "checking whether the linker accepts -Wl,-z,relro... " >&6; }
35263 if test ${ax_cv_check_ldflags___Wl__z_relro+y}
35264 then :
35265 printf %s "(cached) " >&6
35266 else case e in #(
35267 e)
35268 ax_check_save_flags=$LDFLAGS
35269 LDFLAGS="$LDFLAGS -Wl,-z,relro"
35270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35271 /* end confdefs.h. */
35272
35273 int
35274 main (void)
35275 {
35276
35277 ;
35278 return 0;
35279 }
35280 _ACEOF
35281 if ac_fn_c_try_link "$LINENO"
35282 then :
35283 ax_cv_check_ldflags___Wl__z_relro=yes
35284 else case e in #(
35285 e) ax_cv_check_ldflags___Wl__z_relro=no ;;
35286 esac
35287 fi
35288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35289 conftest$ac_exeext conftest.$ac_ext
35290 LDFLAGS=$ax_check_save_flags ;;
35291 esac
35292 fi
35293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
35294 printf "%s\n" "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
35295 if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes
35296 then :
35297
35298 if test ${HARDENING_LDFLAGS+y}
35299 then :
35300
35301 case " $HARDENING_LDFLAGS " in #(
35302 *" -Wl,-z,relro "*) :
35303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS already contains -Wl,-z,relro"; } >&5
35304 (: HARDENING_LDFLAGS already contains -Wl,-z,relro) 2>&5
35305 ac_status=$?
35306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35307 test $ac_status = 0; } ;; #(
35308 *) :
35309
35310 as_fn_append HARDENING_LDFLAGS " -Wl,-z,relro"
35311 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS=\"\$HARDENING_LDFLAGS\""; } >&5
35312 (: HARDENING_LDFLAGS="$HARDENING_LDFLAGS") 2>&5
35313 ac_status=$?
35314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35315 test $ac_status = 0; }
35316 ;;
35317 esac
35318
35319 else case e in #(
35320 e)
35321 HARDENING_LDFLAGS=-Wl,-z,relro
35322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS=\"\$HARDENING_LDFLAGS\""; } >&5
35323 (: HARDENING_LDFLAGS="$HARDENING_LDFLAGS") 2>&5
35324 ac_status=$?
35325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35326 test $ac_status = 0; }
35327 ;;
35328 esac
35329 fi
35330
35331 else case e in #(
35332 e) : ;;
35333 esac
35334 fi
35335
35336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
35337 printf %s "checking whether the linker accepts -Wl,-z,now... " >&6; }
35338 if test ${ax_cv_check_ldflags___Wl__z_now+y}
35339 then :
35340 printf %s "(cached) " >&6
35341 else case e in #(
35342 e)
35343 ax_check_save_flags=$LDFLAGS
35344 LDFLAGS="$LDFLAGS -Wl,-z,now"
35345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35346 /* end confdefs.h. */
35347
35348 int
35349 main (void)
35350 {
35351
35352 ;
35353 return 0;
35354 }
35355 _ACEOF
35356 if ac_fn_c_try_link "$LINENO"
35357 then :
35358 ax_cv_check_ldflags___Wl__z_now=yes
35359 else case e in #(
35360 e) ax_cv_check_ldflags___Wl__z_now=no ;;
35361 esac
35362 fi
35363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35364 conftest$ac_exeext conftest.$ac_ext
35365 LDFLAGS=$ax_check_save_flags ;;
35366 esac
35367 fi
35368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
35369 printf "%s\n" "$ax_cv_check_ldflags___Wl__z_now" >&6; }
35370 if test x"$ax_cv_check_ldflags___Wl__z_now" = xyes
35371 then :
35372
35373 if test ${HARDENING_LDFLAGS+y}
35374 then :
35375
35376 case " $HARDENING_LDFLAGS " in #(
35377 *" -Wl,-z,now "*) :
35378 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS already contains -Wl,-z,now"; } >&5
35379 (: HARDENING_LDFLAGS already contains -Wl,-z,now) 2>&5
35380 ac_status=$?
35381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35382 test $ac_status = 0; } ;; #(
35383 *) :
35384
35385 as_fn_append HARDENING_LDFLAGS " -Wl,-z,now"
35386 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS=\"\$HARDENING_LDFLAGS\""; } >&5
35387 (: HARDENING_LDFLAGS="$HARDENING_LDFLAGS") 2>&5
35388 ac_status=$?
35389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35390 test $ac_status = 0; }
35391 ;;
35392 esac
35393
35394 else case e in #(
35395 e)
35396 HARDENING_LDFLAGS=-Wl,-z,now
35397 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS=\"\$HARDENING_LDFLAGS\""; } >&5
35398 (: HARDENING_LDFLAGS="$HARDENING_LDFLAGS") 2>&5
35399 ac_status=$?
35400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35401 test $ac_status = 0; }
35402 ;;
35403 esac
35404 fi
35405
35406 else case e in #(
35407 e) : ;;
35408 esac
35409 fi
35410
35411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
35412 printf %s "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
35413 if test ${ax_cv_check_ldflags___Wl__z_noexecstack+y}
35414 then :
35415 printf %s "(cached) " >&6
35416 else case e in #(
35417 e)
35418 ax_check_save_flags=$LDFLAGS
35419 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
35420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35421 /* end confdefs.h. */
35422
35423 int
35424 main (void)
35425 {
35426
35427 ;
35428 return 0;
35429 }
35430 _ACEOF
35431 if ac_fn_c_try_link "$LINENO"
35432 then :
35433 ax_cv_check_ldflags___Wl__z_noexecstack=yes
35434 else case e in #(
35435 e) ax_cv_check_ldflags___Wl__z_noexecstack=no ;;
35436 esac
35437 fi
35438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35439 conftest$ac_exeext conftest.$ac_ext
35440 LDFLAGS=$ax_check_save_flags ;;
35441 esac
35442 fi
35443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
35444 printf "%s\n" "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
35445 if test x"$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes
35446 then :
35447
35448 if test ${HARDENING_LDFLAGS+y}
35449 then :
35450
35451 case " $HARDENING_LDFLAGS " in #(
35452 *" -Wl,-z,noexecstack "*) :
35453 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS already contains -Wl,-z,noexecstack"; } >&5
35454 (: HARDENING_LDFLAGS already contains -Wl,-z,noexecstack) 2>&5
35455 ac_status=$?
35456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35457 test $ac_status = 0; } ;; #(
35458 *) :
35459
35460 as_fn_append HARDENING_LDFLAGS " -Wl,-z,noexecstack"
35461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS=\"\$HARDENING_LDFLAGS\""; } >&5
35462 (: HARDENING_LDFLAGS="$HARDENING_LDFLAGS") 2>&5
35463 ac_status=$?
35464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35465 test $ac_status = 0; }
35466 ;;
35467 esac
35468
35469 else case e in #(
35470 e)
35471 HARDENING_LDFLAGS=-Wl,-z,noexecstack
35472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : HARDENING_LDFLAGS=\"\$HARDENING_LDFLAGS\""; } >&5
35473 (: HARDENING_LDFLAGS="$HARDENING_LDFLAGS") 2>&5
35474 ac_status=$?
35475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35476 test $ac_status = 0; }
35477 ;;
35478 esac
35479 fi
35480
35481 else case e in #(
35482 e) : ;;
35483 esac
35484 fi
35485
35486 fi
35487 fi
35488
35489 case "$with_passwd" in
35490 yes|maybe)
35491 AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
35492 if test "${ac_cv_search_crypt}" = "no"
35493 then :
35494
35495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no crypt function found, assuming plaintext passwords" >&5
35496 printf "%s\n" "$as_me: WARNING: no crypt function found, assuming plaintext passwords" >&2;}
35497
35498 fi
35499 ;;
35500 *)
35501 printf "%s\n" "#define WITHOUT_PASSWD 1" >>confdefs.h
35502
35503 if test -z "$AUTH_OBJS"
35504 then :
35505
35506 as_fn_error $? "no authentication methods defined." "$LINENO" 5
35507
35508 fi
35509 ;;
35510 esac
35511 AUTH_OBJS=${AUTH_OBJS# }
35512
35513 if test -n "$LIBS"
35514 then :
35515
35516 L="$LIBS"
35517 LIBS=
35518 for l in ${L}; do
35519 dupe=0
35520 for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
35521 test $l = $sl && dupe=1
35522 done
35523 test $dupe = 0 && LIBS="${LIBS} $l"
35524 done
35525
35526 fi
35527
35528
35529 printf "%s\n" "#define os_init $OS_INIT" >>confdefs.h
35530
35531
35532 if test -n "$GCC"
35533 then :
35534
35535 #
35536 # The fallthrough attribute is supported by gcc 7.0 and clang 10.
35537 # This test relies on AC_LANG_WERROR.
35538 #
35539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the fallthrough attribute" >&5
35540 printf %s "checking whether $CC supports the fallthrough attribute... " >&6; }
35541 if test ${sudo_cv_var_fallthrough_attribute+y}
35542 then :
35543 printf %s "(cached) " >&6
35544 else case e in #(
35545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35546 /* end confdefs.h. */
35547
35548 int main(int argc, char *argv[])
35549 {
35550 int num = argc + 1;
35551 switch (num) {
35552 case 1:
35553 num = 0;
35554 __attribute__((__fallthrough__));
35555 case 0:
35556 num++;
35557 }
35558 return num;
35559 }
35560
35561 _ACEOF
35562 if ac_fn_c_try_compile "$LINENO"
35563 then :
35564
35565 sudo_cv_var_fallthrough_attribute=yes
35566
35567 else case e in #(
35568 e)
35569 sudo_cv_var_fallthrough_attribute=no
35570 ;;
35571 esac
35572 fi
35573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35574 ;;
35575 esac
35576 fi
35577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_fallthrough_attribute" >&5
35578 printf "%s\n" "$sudo_cv_var_fallthrough_attribute" >&6; }
35579 if test X"$sudo_cv_var_fallthrough_attribute" = X"yes"
35580 then :
35581
35582 printf "%s\n" "#define HAVE_FALLTHROUGH_ATTRIBUTE 1" >>confdefs.h
35583
35584
35585 fi
35586 if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"
35587 then :
35588
35589
35590 if test ${CFLAGS+y}
35591 then :
35592
35593 case " $CFLAGS " in #(
35594 *" -Wall "*) :
35595 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Wall"; } >&5
35596 (: CFLAGS already contains -Wall) 2>&5
35597 ac_status=$?
35598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35599 test $ac_status = 0; } ;; #(
35600 *) :
35601
35602 as_fn_append CFLAGS " -Wall"
35603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35604 (: CFLAGS="$CFLAGS") 2>&5
35605 ac_status=$?
35606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35607 test $ac_status = 0; }
35608 ;;
35609 esac
35610
35611 else case e in #(
35612 e)
35613 CFLAGS=-Wall
35614 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35615 (: CFLAGS="$CFLAGS") 2>&5
35616 ac_status=$?
35617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35618 test $ac_status = 0; }
35619 ;;
35620 esac
35621 fi
35622
35623
35624 if test ${CFLAGS+y}
35625 then :
35626
35627 case " $CFLAGS " in #(
35628 *" -Wmissing-prototypes "*) :
35629 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Wmissing-prototypes"; } >&5
35630 (: CFLAGS already contains -Wmissing-prototypes) 2>&5
35631 ac_status=$?
35632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35633 test $ac_status = 0; } ;; #(
35634 *) :
35635
35636 as_fn_append CFLAGS " -Wmissing-prototypes"
35637 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35638 (: CFLAGS="$CFLAGS") 2>&5
35639 ac_status=$?
35640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35641 test $ac_status = 0; }
35642 ;;
35643 esac
35644
35645 else case e in #(
35646 e)
35647 CFLAGS=-Wmissing-prototypes
35648 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35649 (: CFLAGS="$CFLAGS") 2>&5
35650 ac_status=$?
35651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35652 test $ac_status = 0; }
35653 ;;
35654 esac
35655 fi
35656
35657
35658 if test ${CFLAGS+y}
35659 then :
35660
35661 case " $CFLAGS " in #(
35662 *" -Wno-unknown-pragmas "*) :
35663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Wno-unknown-pragmas"; } >&5
35664 (: CFLAGS already contains -Wno-unknown-pragmas) 2>&5
35665 ac_status=$?
35666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35667 test $ac_status = 0; } ;; #(
35668 *) :
35669
35670 as_fn_append CFLAGS " -Wno-unknown-pragmas"
35671 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35672 (: CFLAGS="$CFLAGS") 2>&5
35673 ac_status=$?
35674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35675 test $ac_status = 0; }
35676 ;;
35677 esac
35678
35679 else case e in #(
35680 e)
35681 CFLAGS=-Wno-unknown-pragmas
35682 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35683 (: CFLAGS="$CFLAGS") 2>&5
35684 ac_status=$?
35685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35686 test $ac_status = 0; }
35687 ;;
35688 esac
35689 fi
35690
35691
35692 if test ${CFLAGS+y}
35693 then :
35694
35695 case " $CFLAGS " in #(
35696 *" -Wpointer-arith "*) :
35697 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Wpointer-arith"; } >&5
35698 (: CFLAGS already contains -Wpointer-arith) 2>&5
35699 ac_status=$?
35700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35701 test $ac_status = 0; } ;; #(
35702 *) :
35703
35704 as_fn_append CFLAGS " -Wpointer-arith"
35705 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35706 (: CFLAGS="$CFLAGS") 2>&5
35707 ac_status=$?
35708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35709 test $ac_status = 0; }
35710 ;;
35711 esac
35712
35713 else case e in #(
35714 e)
35715 CFLAGS=-Wpointer-arith
35716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35717 (: CFLAGS="$CFLAGS") 2>&5
35718 ac_status=$?
35719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35720 test $ac_status = 0; }
35721 ;;
35722 esac
35723 fi
35724
35725
35726 if test ${CFLAGS+y}
35727 then :
35728
35729 case " $CFLAGS " in #(
35730 *" -Wshadow "*) :
35731 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Wshadow"; } >&5
35732 (: CFLAGS already contains -Wshadow) 2>&5
35733 ac_status=$?
35734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35735 test $ac_status = 0; } ;; #(
35736 *) :
35737
35738 as_fn_append CFLAGS " -Wshadow"
35739 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35740 (: CFLAGS="$CFLAGS") 2>&5
35741 ac_status=$?
35742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35743 test $ac_status = 0; }
35744 ;;
35745 esac
35746
35747 else case e in #(
35748 e)
35749 CFLAGS=-Wshadow
35750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35751 (: CFLAGS="$CFLAGS") 2>&5
35752 ac_status=$?
35753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35754 test $ac_status = 0; }
35755 ;;
35756 esac
35757 fi
35758
35759
35760 if test ${CFLAGS+y}
35761 then :
35762
35763 case " $CFLAGS " in #(
35764 *" -Wsign-compare "*) :
35765 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Wsign-compare"; } >&5
35766 (: CFLAGS already contains -Wsign-compare) 2>&5
35767 ac_status=$?
35768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35769 test $ac_status = 0; } ;; #(
35770 *) :
35771
35772 as_fn_append CFLAGS " -Wsign-compare"
35773 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35774 (: CFLAGS="$CFLAGS") 2>&5
35775 ac_status=$?
35776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35777 test $ac_status = 0; }
35778 ;;
35779 esac
35780
35781 else case e in #(
35782 e)
35783 CFLAGS=-Wsign-compare
35784 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35785 (: CFLAGS="$CFLAGS") 2>&5
35786 ac_status=$?
35787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35788 test $ac_status = 0; }
35789 ;;
35790 esac
35791 fi
35792
35793
35794 if test ${CFLAGS+y}
35795 then :
35796
35797 case " $CFLAGS " in #(
35798 *" -Wwrite-strings "*) :
35799 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Wwrite-strings"; } >&5
35800 (: CFLAGS already contains -Wwrite-strings) 2>&5
35801 ac_status=$?
35802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35803 test $ac_status = 0; } ;; #(
35804 *) :
35805
35806 as_fn_append CFLAGS " -Wwrite-strings"
35807 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35808 (: CFLAGS="$CFLAGS") 2>&5
35809 ac_status=$?
35810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35811 test $ac_status = 0; }
35812 ;;
35813 esac
35814
35815 else case e in #(
35816 e)
35817 CFLAGS=-Wwrite-strings
35818 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35819 (: CFLAGS="$CFLAGS") 2>&5
35820 ac_status=$?
35821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35822 test $ac_status = 0; }
35823 ;;
35824 esac
35825 fi
35826
35827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wvla" >&5
35828 printf %s "checking whether C compiler accepts -Wvla... " >&6; }
35829 if test ${ax_cv_check_cflags___Wvla+y}
35830 then :
35831 printf %s "(cached) " >&6
35832 else case e in #(
35833 e)
35834 ax_check_save_flags=$CFLAGS
35835 CFLAGS="$CFLAGS -Wvla"
35836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35837 /* end confdefs.h. */
35838
35839 int
35840 main (void)
35841 {
35842
35843 ;
35844 return 0;
35845 }
35846 _ACEOF
35847 if ac_fn_c_try_compile "$LINENO"
35848 then :
35849 ax_cv_check_cflags___Wvla=yes
35850 else case e in #(
35851 e) ax_cv_check_cflags___Wvla=no ;;
35852 esac
35853 fi
35854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35855 CFLAGS=$ax_check_save_flags ;;
35856 esac
35857 fi
35858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wvla" >&5
35859 printf "%s\n" "$ax_cv_check_cflags___Wvla" >&6; }
35860 if test "x$ax_cv_check_cflags___Wvla" = xyes
35861 then :
35862
35863 if test ${CFLAGS+y}
35864 then :
35865
35866 case " $CFLAGS " in #(
35867 *" -Wvla "*) :
35868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Wvla"; } >&5
35869 (: CFLAGS already contains -Wvla) 2>&5
35870 ac_status=$?
35871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35872 test $ac_status = 0; } ;; #(
35873 *) :
35874
35875 as_fn_append CFLAGS " -Wvla"
35876 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35877 (: CFLAGS="$CFLAGS") 2>&5
35878 ac_status=$?
35879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35880 test $ac_status = 0; }
35881 ;;
35882 esac
35883
35884 else case e in #(
35885 e)
35886 CFLAGS=-Wvla
35887 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35888 (: CFLAGS="$CFLAGS") 2>&5
35889 ac_status=$?
35890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35891 test $ac_status = 0; }
35892 ;;
35893 esac
35894 fi
35895
35896 else case e in #(
35897 e) : ;;
35898 esac
35899 fi
35900
35901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Walloca" >&5
35902 printf %s "checking whether C compiler accepts -Walloca... " >&6; }
35903 if test ${ax_cv_check_cflags___Walloca+y}
35904 then :
35905 printf %s "(cached) " >&6
35906 else case e in #(
35907 e)
35908 ax_check_save_flags=$CFLAGS
35909 CFLAGS="$CFLAGS -Walloca"
35910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35911 /* end confdefs.h. */
35912
35913 int
35914 main (void)
35915 {
35916
35917 ;
35918 return 0;
35919 }
35920 _ACEOF
35921 if ac_fn_c_try_compile "$LINENO"
35922 then :
35923 ax_cv_check_cflags___Walloca=yes
35924 else case e in #(
35925 e) ax_cv_check_cflags___Walloca=no ;;
35926 esac
35927 fi
35928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35929 CFLAGS=$ax_check_save_flags ;;
35930 esac
35931 fi
35932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Walloca" >&5
35933 printf "%s\n" "$ax_cv_check_cflags___Walloca" >&6; }
35934 if test "x$ax_cv_check_cflags___Walloca" = xyes
35935 then :
35936
35937 if test ${CFLAGS+y}
35938 then :
35939
35940 case " $CFLAGS " in #(
35941 *" -Walloca "*) :
35942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Walloca"; } >&5
35943 (: CFLAGS already contains -Walloca) 2>&5
35944 ac_status=$?
35945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35946 test $ac_status = 0; } ;; #(
35947 *) :
35948
35949 as_fn_append CFLAGS " -Walloca"
35950 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35951 (: CFLAGS="$CFLAGS") 2>&5
35952 ac_status=$?
35953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35954 test $ac_status = 0; }
35955 ;;
35956 esac
35957
35958 else case e in #(
35959 e)
35960 CFLAGS=-Walloca
35961 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
35962 (: CFLAGS="$CFLAGS") 2>&5
35963 ac_status=$?
35964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35965 test $ac_status = 0; }
35966 ;;
35967 esac
35968 fi
35969
35970 else case e in #(
35971 e) : ;;
35972 esac
35973 fi
35974
35975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wtrampolines" >&5
35976 printf %s "checking whether C compiler accepts -Wtrampolines... " >&6; }
35977 if test ${ax_cv_check_cflags___Wtrampolines+y}
35978 then :
35979 printf %s "(cached) " >&6
35980 else case e in #(
35981 e)
35982 ax_check_save_flags=$CFLAGS
35983 CFLAGS="$CFLAGS -Wtrampolines"
35984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35985 /* end confdefs.h. */
35986
35987 int
35988 main (void)
35989 {
35990
35991 ;
35992 return 0;
35993 }
35994 _ACEOF
35995 if ac_fn_c_try_compile "$LINENO"
35996 then :
35997 ax_cv_check_cflags___Wtrampolines=yes
35998 else case e in #(
35999 e) ax_cv_check_cflags___Wtrampolines=no ;;
36000 esac
36001 fi
36002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36003 CFLAGS=$ax_check_save_flags ;;
36004 esac
36005 fi
36006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wtrampolines" >&5
36007 printf "%s\n" "$ax_cv_check_cflags___Wtrampolines" >&6; }
36008 if test "x$ax_cv_check_cflags___Wtrampolines" = xyes
36009 then :
36010
36011 if test ${CFLAGS+y}
36012 then :
36013
36014 case " $CFLAGS " in #(
36015 *" -Wtrampolines "*) :
36016 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Wtrampolines"; } >&5
36017 (: CFLAGS already contains -Wtrampolines) 2>&5
36018 ac_status=$?
36019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36020 test $ac_status = 0; } ;; #(
36021 *) :
36022
36023 as_fn_append CFLAGS " -Wtrampolines"
36024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
36025 (: CFLAGS="$CFLAGS") 2>&5
36026 ac_status=$?
36027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36028 test $ac_status = 0; }
36029 ;;
36030 esac
36031
36032 else case e in #(
36033 e)
36034 CFLAGS=-Wtrampolines
36035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
36036 (: CFLAGS="$CFLAGS") 2>&5
36037 ac_status=$?
36038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36039 test $ac_status = 0; }
36040 ;;
36041 esac
36042 fi
36043
36044 else case e in #(
36045 e) : ;;
36046 esac
36047 fi
36048
36049 if test X"$sudo_cv_var_fallthrough_attribute" = X"yes"
36050 then :
36051
36052
36053 if test ${CFLAGS+y}
36054 then :
36055
36056 case " $CFLAGS " in #(
36057 *" -Wimplicit-fallthrough "*) :
36058 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Wimplicit-fallthrough"; } >&5
36059 (: CFLAGS already contains -Wimplicit-fallthrough) 2>&5
36060 ac_status=$?
36061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36062 test $ac_status = 0; } ;; #(
36063 *) :
36064
36065 as_fn_append CFLAGS " -Wimplicit-fallthrough"
36066 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
36067 (: CFLAGS="$CFLAGS") 2>&5
36068 ac_status=$?
36069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36070 test $ac_status = 0; }
36071 ;;
36072 esac
36073
36074 else case e in #(
36075 e)
36076 CFLAGS=-Wimplicit-fallthrough
36077 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
36078 (: CFLAGS="$CFLAGS") 2>&5
36079 ac_status=$?
36080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36081 test $ac_status = 0; }
36082 ;;
36083 esac
36084 fi
36085
36086
36087 fi
36088
36089 fi
36090 if test X"$enable_werror" = X"yes"
36091 then :
36092
36093
36094 if test ${CFLAGS+y}
36095 then :
36096
36097 case " $CFLAGS " in #(
36098 *" -Werror "*) :
36099 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Werror"; } >&5
36100 (: CFLAGS already contains -Werror) 2>&5
36101 ac_status=$?
36102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36103 test $ac_status = 0; } ;; #(
36104 *) :
36105
36106 as_fn_append CFLAGS " -Werror"
36107 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
36108 (: CFLAGS="$CFLAGS") 2>&5
36109 ac_status=$?
36110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36111 test $ac_status = 0; }
36112 ;;
36113 esac
36114
36115 else case e in #(
36116 e)
36117 CFLAGS=-Werror
36118 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
36119 (: CFLAGS="$CFLAGS") 2>&5
36120 ac_status=$?
36121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36122 test $ac_status = 0; }
36123 ;;
36124 esac
36125 fi
36126
36127
36128 fi
36129 case "$host_os" in
36130 # Avoid unwanted warnings on macOS
36131 darwin*)
36132 if test ${CFLAGS+y}
36133 then :
36134
36135 case " $CFLAGS " in #(
36136 *" -Wno-deprecated-declarations "*) :
36137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Wno-deprecated-declarations"; } >&5
36138 (: CFLAGS already contains -Wno-deprecated-declarations) 2>&5
36139 ac_status=$?
36140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36141 test $ac_status = 0; } ;; #(
36142 *) :
36143
36144 as_fn_append CFLAGS " -Wno-deprecated-declarations"
36145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
36146 (: CFLAGS="$CFLAGS") 2>&5
36147 ac_status=$?
36148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36149 test $ac_status = 0; }
36150 ;;
36151 esac
36152
36153 else case e in #(
36154 e)
36155 CFLAGS=-Wno-deprecated-declarations
36156 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
36157 (: CFLAGS="$CFLAGS") 2>&5
36158 ac_status=$?
36159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36160 test $ac_status = 0; }
36161 ;;
36162 esac
36163 fi
36164 ;;
36165 esac
36166
36167 fi
36168
36169 CROSS_COMPILING="$cross_compiling"
36170
36171 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
36172
36173 oexec_prefix="$exec_prefix"
36174 if test "$exec_prefix" = '$(prefix)'; then
36175 if test "$prefix" = "NONE"; then
36176 exec_prefix="$ac_default_prefix"
36177 else
36178 exec_prefix="$prefix"
36179 fi
36180 fi
36181
36182 # Update exec_prefix in intercept_file
36183 _intercept_file=
36184 while test X"$intercept_file" != X"$_intercept_file"; do
36185 _intercept_file="$intercept_file"
36186 eval "intercept_file=\"$_intercept_file\""
36187 done
36188
36189 # Update exec_prefix in noexec_file
36190 _noexec_file=
36191 while test X"$noexec_file" != X"$_noexec_file"; do
36192 _noexec_file="$noexec_file"
36193 eval "noexec_file=\"$_noexec_file\""
36194 done
36195
36196 # Update exec_prefix in visudo
36197 _visudo=
36198 while test X"$visudo" != X"$_visudo"; do
36199 _visudo="$visudo"
36200 eval "visudo=\"$_visudo\""
36201 done
36202
36203 # Update exec_prefix in sesh_file
36204 _sesh_file=
36205 while test X"$sesh_file" != X"$_sesh_file"; do
36206 _sesh_file="$sesh_file"
36207 eval "sesh_file=\"$_sesh_file\""
36208 done
36209
36210 # Update exec_prefix in plugindir
36211 _plugindir=
36212 while test X"$plugindir" != X"$_plugindir"; do
36213 _plugindir="$plugindir"
36214 eval "plugindir=\"$_plugindir\""
36215 done
36216 exec_prefix="$oexec_prefix"
36217
36218 if test X"$enable_intercept" != X"no"
36219 then :
36220
36221 SUDO_OBJS="${SUDO_OBJS} intercept.pb-c.o"
36222 PROGS="${PROGS} sudo_intercept.la"
36223 INSTALL_INTERCEPT="install-intercept"
36224
36225 cat >>confdefs.h <<EOF
36226 #define _PATH_SUDO_INTERCEPT "$intercept_file"
36227 EOF
36228
36229
36230 fi
36231 if test X"$with_noexec" != X"no"
36232 then :
36233
36234 PROGS="${PROGS} sudo_noexec.la"
36235 INSTALL_NOEXEC="install-noexec"
36236
36237 cat >>confdefs.h <<EOF
36238 #define _PATH_SUDO_NOEXEC "$noexec_file"
36239 EOF
36240
36241
36242 fi
36243 if test X"$with_selinux" != X"no"
36244 then :
36245
36246 cat >>confdefs.h <<EOF
36247 #define _PATH_SUDO_SESH "$sesh_file"
36248 EOF
36249
36250
36251 else case e in #(
36252 e)
36253 cat >>confdefs.h <<EOF
36254 #define _PATH_SUDO_SESH NULL
36255 EOF
36256
36257 ;;
36258 esac
36259 fi
36260 if test X"$enable_shared" != X"no"
36261 then :
36262
36263 cat >>confdefs.h <<EOF
36264 #define _PATH_SUDO_PLUGIN_DIR "$plugindir/"
36265 EOF
36266
36267
36268 printf "%s\n" "#define ENABLE_SUDO_PLUGIN_API 1" >>confdefs.h
36269
36270
36271 else case e in #(
36272 e)
36273 cat >>confdefs.h <<EOF
36274 #define _PATH_SUDO_PLUGIN_DIR NULL
36275 EOF
36276
36277 ;;
36278 esac
36279 fi
36280
36281 if test X"$LDFLAGS_R" != X""; then
36282 LDFLAGS="$LDFLAGS $LDFLAGS_R"
36283 fi
36284 if test X"$SUDOERS_LDFLAGS_R" != X""; then
36285 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS $SUDOERS_LDFLAGS_R"
36286 fi
36287 if test X"$ZLIB_R" != X""; then
36288 ZLIB="$ZLIB_R $ZLIB"
36289 fi
36290 if test X"$LIBCRYPTO_R" != X""; then
36291 LIBCRYPTO="$LIBCRYPTO_R $LIBCRYPTO"
36292 fi
36293 if test X"$LIBTLS_R" != X""; then
36294 LIBTLS="$LIBTLS_R $LIBTLS"
36295 fi
36296
36297 CFLAGS=${CFLAGS# }
36298 CPPFLAGS=${CPPFLAGS# }
36299 LDFLAGS=${LDFLAGS# }
36300 SUDO_LDFLAGS=${SUDO_LDFLAGS# }
36301 SUDOERS_LDFLAGS=${SUDOERS_LDFLAGS# }
36302 LIBS=${LIBS# }
36303 SUDO_LIBS=${SUDO_LIBS# }
36304 SUDOERS_LIBS=${SUDOERS_LIBS# }
36305
36306 if test X"$prefix" = X"NONE"; then
36307 test X"$mandir" = X'${datarootdir}/man' && mandir='$(prefix)/man'
36308 else
36309 test X"$mandir" = X'${datarootdir}/man' && mandir='$(datarootdir)/man'
36310 fi
36311 test X"$bindir" = X'${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
36312 test X"$sbindir" = X'${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
36313 test X"$libexecdir" = X'${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
36314 test X"$includedir" = X'${prefix}/include' && includedir='$(prefix)/include'
36315 test X"$datarootdir" = X'${prefix}/share' && datarootdir='$(prefix)/share'
36316 test X"$docdir" = X'${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
36317 test X"$localedir" = X'${datarootdir}/locale' && localedir='$(datarootdir)/locale'
36318 test X"$localstatedir" = X'${prefix}/var' && localstatedir='$(prefix)/var'
36319 test X"$runstatedir" = X'${localstatedir}/run' && runstatedir='$(localstatedir)/run'
36320 test X"$adminconfdir" = X'${prefix}/etc' && adminconfdir='$(prefix)/etc'
36321 test X"$sysconfdir" = X'${prefix}/etc' && sysconfdir='/etc'
36322
36323 # The configuration file search path is to check adminconfdir first and
36324 # fall back to sysconfdir. This can support systems with read-only
36325 # sysconfdir (/etc) that contains a set of default configuration files.
36326
36327 _sysconfdir="$sysconfdir"
36328 while :; do
36329 _sysconfdir="`echo \"$_sysconfdir\" | sed -e 's/(/{/g' -e 's/)/}/g'`"
36330 case "$_sysconfdir" in
36331 *\${[A-Za-z]*}*)
36332 eval _sysconfdir="$_sysconfdir"
36333 ;;
36334 *)
36335 break
36336 ;;
36337 esac
36338 done
36339 case "$_sysconfdir" in
36340 NONE/*)
36341 _sysconfdir="${ac_default_prefix}${_sysconfdir#NONE}"
36342 ;;
36343 esac
36344
36345
36346 _adminconfdir="$adminconfdir"
36347 while :; do
36348 _adminconfdir="`echo \"$_adminconfdir\" | sed -e 's/(/{/g' -e 's/)/}/g'`"
36349 case "$_adminconfdir" in
36350 *\${[A-Za-z]*}*)
36351 eval _adminconfdir="$_adminconfdir"
36352 ;;
36353 *)
36354 break
36355 ;;
36356 esac
36357 done
36358 case "$_adminconfdir" in
36359 NONE/*)
36360 _adminconfdir="${ac_default_prefix}${_adminconfdir#NONE}"
36361 ;;
36362 esac
36363
36364 if test $enable_adminconf = yes
36365 then :
36366
36367 # Only use adminconfdir if different from sysconfdir
36368 if test X"$_sysconfdir" != X"$_adminconfdir"
36369 then :
36370
36371 cvtsudoers_conf='$(adminconfdir)/cvtsudoers.conf:'$cvtsudoers_conf
36372 sudo_conf='$(adminconfdir)/sudo.conf:'$sudo_conf
36373 sudo_logsrvd_conf='$(adminconfdir)/sudo_logsrvd.conf:'$sudo_logsrvd_conf
36374 sudoers_path='$(adminconfdir)/sudoers:'$sudoers_path
36375
36376 fi
36377
36378 fi
36379
36380 # Expand config file paths for use in pathnames.h (after config dir override)
36381
36382 as_save_IFS=$IFS
36383 IFS=:
36384 _sudo_define_path_res=
36385 for as_dir in $cvtsudoers_conf; do
36386
36387 _sudo_define_path_exp="$as_dir"
36388 while :; do
36389 _sudo_define_path_exp="`echo \"$_sudo_define_path_exp\" | sed -e 's/(/{/g' -e 's/)/}/g'`"
36390 case "$_sudo_define_path_exp" in
36391 *\${[A-Za-z]*}*)
36392 eval _sudo_define_path_exp="$_sudo_define_path_exp"
36393 ;;
36394 *)
36395 break
36396 ;;
36397 esac
36398 done
36399 case "$_sudo_define_path_exp" in
36400 NONE/*)
36401 _sudo_define_path_exp="${ac_default_prefix}${_sudo_define_path_exp#NONE}"
36402 ;;
36403 esac
36404
36405 if test -z "${_sudo_define_path_res}"; then
36406 _sudo_define_path_res="${_sudo_define_path_exp}"
36407 else
36408 _sudo_define_path_res="${_sudo_define_path_res}:${_sudo_define_path_exp}"
36409 fi
36410 done
36411 IFS=$as_save_IFS
36412 cat >>confdefs.h <<EOF
36413 #define _PATH_CVTSUDOERS_CONF "${_sudo_define_path_res}"
36414 EOF
36415
36416
36417
36418 as_save_IFS=$IFS
36419 IFS=:
36420 _sudo_define_path_res=
36421 for as_dir in $sudo_conf; do
36422
36423 _sudo_define_path_exp="$as_dir"
36424 while :; do
36425 _sudo_define_path_exp="`echo \"$_sudo_define_path_exp\" | sed -e 's/(/{/g' -e 's/)/}/g'`"
36426 case "$_sudo_define_path_exp" in
36427 *\${[A-Za-z]*}*)
36428 eval _sudo_define_path_exp="$_sudo_define_path_exp"
36429 ;;
36430 *)
36431 break
36432 ;;
36433 esac
36434 done
36435 case "$_sudo_define_path_exp" in
36436 NONE/*)
36437 _sudo_define_path_exp="${ac_default_prefix}${_sudo_define_path_exp#NONE}"
36438 ;;
36439 esac
36440
36441 if test -z "${_sudo_define_path_res}"; then
36442 _sudo_define_path_res="${_sudo_define_path_exp}"
36443 else
36444 _sudo_define_path_res="${_sudo_define_path_res}:${_sudo_define_path_exp}"
36445 fi
36446 done
36447 IFS=$as_save_IFS
36448 cat >>confdefs.h <<EOF
36449 #define _PATH_SUDO_CONF "${_sudo_define_path_res}"
36450 EOF
36451
36452
36453
36454 as_save_IFS=$IFS
36455 IFS=:
36456 _sudo_define_path_res=
36457 for as_dir in $sudo_logsrvd_conf; do
36458
36459 _sudo_define_path_exp="$as_dir"
36460 while :; do
36461 _sudo_define_path_exp="`echo \"$_sudo_define_path_exp\" | sed -e 's/(/{/g' -e 's/)/}/g'`"
36462 case "$_sudo_define_path_exp" in
36463 *\${[A-Za-z]*}*)
36464 eval _sudo_define_path_exp="$_sudo_define_path_exp"
36465 ;;
36466 *)
36467 break
36468 ;;
36469 esac
36470 done
36471 case "$_sudo_define_path_exp" in
36472 NONE/*)
36473 _sudo_define_path_exp="${ac_default_prefix}${_sudo_define_path_exp#NONE}"
36474 ;;
36475 esac
36476
36477 if test -z "${_sudo_define_path_res}"; then
36478 _sudo_define_path_res="${_sudo_define_path_exp}"
36479 else
36480 _sudo_define_path_res="${_sudo_define_path_res}:${_sudo_define_path_exp}"
36481 fi
36482 done
36483 IFS=$as_save_IFS
36484 cat >>confdefs.h <<EOF
36485 #define _PATH_SUDO_LOGSRVD_CONF "${_sudo_define_path_res}"
36486 EOF
36487
36488
36489
36490 as_save_IFS=$IFS
36491 IFS=:
36492 _sudo_define_path_res=
36493 for as_dir in $sudoers_path; do
36494
36495 _sudo_define_path_exp="$as_dir"
36496 while :; do
36497 _sudo_define_path_exp="`echo \"$_sudo_define_path_exp\" | sed -e 's/(/{/g' -e 's/)/}/g'`"
36498 case "$_sudo_define_path_exp" in
36499 *\${[A-Za-z]*}*)
36500 eval _sudo_define_path_exp="$_sudo_define_path_exp"
36501 ;;
36502 *)
36503 break
36504 ;;
36505 esac
36506 done
36507 case "$_sudo_define_path_exp" in
36508 NONE/*)
36509 _sudo_define_path_exp="${ac_default_prefix}${_sudo_define_path_exp#NONE}"
36510 ;;
36511 esac
36512
36513 if test -z "${_sudo_define_path_res}"; then
36514 _sudo_define_path_res="${_sudo_define_path_exp}"
36515 else
36516 _sudo_define_path_res="${_sudo_define_path_res}:${_sudo_define_path_exp}"
36517 fi
36518 done
36519 IFS=$as_save_IFS
36520 cat >>confdefs.h <<EOF
36521 #define _PATH_SUDOERS "${_sudo_define_path_res}"
36522 EOF
36523
36524
36525
36526 # Convert exampledir to something that can be used in the man pages
36527
36528 EXAMPLES="$exampledir"
36529 while :; do
36530 EXAMPLES="`echo \"$EXAMPLES\" | sed -e 's/(/{/g' -e 's/)/}/g'`"
36531 case "$EXAMPLES" in
36532 *\${[A-Za-z]*}*)
36533 eval EXAMPLES="$EXAMPLES"
36534 ;;
36535 *)
36536 break
36537 ;;
36538 esac
36539 done
36540 case "$EXAMPLES" in
36541 NONE/*)
36542 EXAMPLES="${ac_default_prefix}${EXAMPLES#NONE}"
36543 ;;
36544 esac
36545
36546
36547 if test X"$INIT_SCRIPT" != X""
36548 then :
36549
36550 ac_config_files="$ac_config_files etc/init.d/$INIT_SCRIPT"
36551
36552
36553 elif test X"$TMPFILES_D" != X""
36554 then :
36555
36556 ac_config_files="$ac_config_files etc/init.d/sudo.conf"
36557
36558
36559 fi
36560
36561 ac_config_files="$ac_config_files Makefile docs/Makefile examples/Makefile examples/sudoers examples/sudo.conf examples/sudo_logsrvd.conf examples/syslog.conf include/Makefile lib/eventlog/Makefile lib/fuzzstub/Makefile lib/iolog/Makefile lib/logsrv/Makefile lib/protobuf-c/Makefile lib/ssl_compat/Makefile lib/util/Makefile lib/util/regress/harness lib/util/util.exp logsrvd/Makefile src/intercept.exp src/sudo_usage.h src/Makefile plugins/audit_json/Makefile plugins/sample/Makefile plugins/group_file/Makefile plugins/sample_approval/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/regress/harness plugins/sudoers/sudoers scripts/check_man"
36562
36563 ac_config_commands="$ac_config_commands harness"
36564
36565
36566 cat >confcache <<\_ACEOF
36567 # This file is a shell script that caches the results of configure
36568 # tests run on this system so they can be shared between configure
36569 # scripts and configure runs, see configure's option --config-cache.
36570 # It is not useful on other systems. If it contains results you don't
36571 # want to keep, you may remove or edit it.
36572 #
36573 # config.status only pays attention to the cache file if you give it
36574 # the --recheck option to rerun configure.
36575 #
36576 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
36577 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
36578 # following values.
36579
36580 _ACEOF
36581
36582 # The following way of writing the cache mishandles newlines in values,
36583 # but we know of no workaround that is simple, portable, and efficient.
36584 # So, we kill variables containing newlines.
36585 # Ultrix sh set writes to stderr and can't be redirected directly,
36586 # and sets the high bit in the cache file unless we assign to the vars.
36587 (
36588 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36589 eval ac_val=\$$ac_var
36590 case $ac_val in #(
36591 *${as_nl}*)
36592 case $ac_var in #(
36593 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36594 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36595 esac
36596 case $ac_var in #(
36597 _ | IFS | as_nl) ;; #(
36598 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36599 *) { eval $ac_var=; unset $ac_var;} ;;
36600 esac ;;
36601 esac
36602 done
36603
36604 (set) 2>&1 |
36605 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36606 *${as_nl}ac_space=\ *)
36607 # 'set' does not quote correctly, so add quotes: double-quote
36608 # substitution turns \\\\ into \\, and sed turns \\ into \.
36609 sed -n \
36610 "s/'/'\\\\''/g;
36611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36612 ;; #(
36613 *)
36614 # 'set' quotes correctly as required by POSIX, so do not add quotes.
36615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36616 ;;
36617 esac |
36618 sort
36619 ) |
36620 sed '
36621 /^ac_cv_env_/b end
36622 t clear
36623 :clear
36624 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
36625 t end
36626 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36627 :end' >>confcache
36628 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36629 if test -w "$cache_file"; then
36630 if test "x$cache_file" != "x/dev/null"; then
36631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36632 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
36633 if test ! -f "$cache_file" || test -h "$cache_file"; then
36634 cat confcache >"$cache_file"
36635 else
36636 case $cache_file in #(
36637 */* | ?:*)
36638 mv -f confcache "$cache_file"$$ &&
36639 mv -f "$cache_file"$$ "$cache_file" ;; #(
36640 *)
36641 mv -f confcache "$cache_file" ;;
36642 esac
36643 fi
36644 fi
36645 else
36646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36647 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
36648 fi
36649 fi
36650 rm -f confcache
36651
36652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
36653 # Let make expand exec_prefix.
36654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36655
36656 DEFS=-DHAVE_CONFIG_H
36657
36658 ac_libobjs=
36659 ac_ltlibobjs=
36660 U=
36661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36662 # 1. Remove the extension, and $U if already installed.
36663 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36664 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
36665 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36666 # will be set to the directory where LIBOBJS objects are built.
36667 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36668 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36669 done
36670 LIBOBJS=$ac_libobjs
36671
36672 LTLIBOBJS=$ac_ltlibobjs
36673
36674
36675 # Check whether --enable-year2038 was given.
36676 if test ${enable_year2038+y}
36677 then :
36678 enableval=$enable_year2038;
36679 fi
36680
36681
36682 : "${CONFIG_STATUS=./config.status}"
36683 ac_write_fail=0
36684 ac_clean_files_save=$ac_clean_files
36685 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36687 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
36688 as_write_fail=0
36689 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36690 #! $SHELL
36691 # Generated by $as_me.
36692 # Run this file to recreate the current configuration.
36693 # Compiler output produced by configure, useful for debugging
36694 # configure, is in config.log if it exists.
36695
36696 debug=false
36697 ac_cs_recheck=false
36698 ac_cs_silent=false
36699
36700 SHELL=\${CONFIG_SHELL-$SHELL}
36701 export SHELL
36702 _ASEOF
36703 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36704 ## -------------------- ##
36705 ## M4sh Initialization. ##
36706 ## -------------------- ##
36707
36708 # Be more Bourne compatible
36709 DUALCASE=1; export DUALCASE # for MKS sh
36710 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
36711 then :
36712 emulate sh
36713 NULLCMD=:
36714 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36715 # is contrary to our usage. Disable this feature.
36716 alias -g '${1+"$@"}'='"$@"'
36717 setopt NO_GLOB_SUBST
36718 else case e in #(
36719 e) case `(set -o) 2>/dev/null` in #(
36720 *posix*) :
36721 set -o posix ;; #(
36722 *) :
36723 ;;
36724 esac ;;
36725 esac
36726 fi
36727
36728
36729
36730 # Reset variables that may have inherited troublesome values from
36731 # the environment.
36732
36733 # IFS needs to be set, to space, tab, and newline, in precisely that order.
36734 # (If _AS_PATH_WALK were called with IFS unset, it would have the
36735 # side effect of setting IFS to empty, thus disabling word splitting.)
36736 # Quoting is to prevent editors from complaining about space-tab.
36737 as_nl='
36738 '
36739 export as_nl
36740 IFS=" "" $as_nl"
36741
36742 PS1='$ '
36743 PS2='> '
36744 PS4='+ '
36745
36746 # Ensure predictable behavior from utilities with locale-dependent output.
36747 LC_ALL=C
36748 export LC_ALL
36749 LANGUAGE=C
36750 export LANGUAGE
36751
36752 # We cannot yet rely on "unset" to work, but we need these variables
36753 # to be unset--not just set to an empty or harmless value--now, to
36754 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
36755 # also avoids known problems related to "unset" and subshell syntax
36756 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
36757 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
36758 do eval test \${$as_var+y} \
36759 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36760 done
36761
36762 # Ensure that fds 0, 1, and 2 are open.
36763 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
36764 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
36765 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
36766
36767 # The user is always right.
36768 if ${PATH_SEPARATOR+false} :; then
36769 PATH_SEPARATOR=:
36770 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36771 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36772 PATH_SEPARATOR=';'
36773 }
36774 fi
36775
36776
36777 # Find who we are. Look in the path if we contain no directory separator.
36778 as_myself=
36779 case $0 in #((
36780 *[\\/]* ) as_myself=$0 ;;
36781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36782 for as_dir in $PATH
36783 do
36784 IFS=$as_save_IFS
36785 case $as_dir in #(((
36786 '') as_dir=./ ;;
36787 */) ;;
36788 *) as_dir=$as_dir/ ;;
36789 esac
36790 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
36791 done
36792 IFS=$as_save_IFS
36793
36794 ;;
36795 esac
36796 # We did not find ourselves, most probably we were run as 'sh COMMAND'
36797 # in which case we are not to be found in the path.
36798 if test "x$as_myself" = x; then
36799 as_myself=$0
36800 fi
36801 if test ! -f "$as_myself"; then
36802 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36803 exit 1
36804 fi
36805
36806
36807
36808 # as_fn_error STATUS ERROR [LINENO LOG_FD]
36809 # ----------------------------------------
36810 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36811 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36812 # script with STATUS, using 1 if that was 0.
36813 as_fn_error ()
36814 {
36815 as_status=$1; test $as_status -eq 0 && as_status=1
36816 if test "$4"; then
36817 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36819 fi
36820 printf "%s\n" "$as_me: error: $2" >&2
36821 as_fn_exit $as_status
36822 } # as_fn_error
36823
36824
36825 # as_fn_set_status STATUS
36826 # -----------------------
36827 # Set $? to STATUS, without forking.
36828 as_fn_set_status ()
36829 {
36830 return $1
36831 } # as_fn_set_status
36832
36833 # as_fn_exit STATUS
36834 # -----------------
36835 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36836 as_fn_exit ()
36837 {
36838 set +e
36839 as_fn_set_status $1
36840 exit $1
36841 } # as_fn_exit
36842
36843 # as_fn_unset VAR
36844 # ---------------
36845 # Portably unset VAR.
36846 as_fn_unset ()
36847 {
36848 { eval $1=; unset $1;}
36849 }
36850 as_unset=as_fn_unset
36851
36852 # as_fn_append VAR VALUE
36853 # ----------------------
36854 # Append the text in VALUE to the end of the definition contained in VAR. Take
36855 # advantage of any shell optimizations that allow amortized linear growth over
36856 # repeated appends, instead of the typical quadratic growth present in naive
36857 # implementations.
36858 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
36859 then :
36860 eval 'as_fn_append ()
36861 {
36862 eval $1+=\$2
36863 }'
36864 else case e in #(
36865 e) as_fn_append ()
36866 {
36867 eval $1=\$$1\$2
36868 } ;;
36869 esac
36870 fi # as_fn_append
36871
36872 # as_fn_arith ARG...
36873 # ------------------
36874 # Perform arithmetic evaluation on the ARGs, and store the result in the
36875 # global $as_val. Take advantage of shells that can avoid forks. The arguments
36876 # must be portable across $(()) and expr.
36877 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
36878 then :
36879 eval 'as_fn_arith ()
36880 {
36881 as_val=$(( $* ))
36882 }'
36883 else case e in #(
36884 e) as_fn_arith ()
36885 {
36886 as_val=`expr "$@" || test $? -eq 1`
36887 } ;;
36888 esac
36889 fi # as_fn_arith
36890
36891
36892 if expr a : '\(a\)' >/dev/null 2>&1 &&
36893 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36894 as_expr=expr
36895 else
36896 as_expr=false
36897 fi
36898
36899 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36900 as_basename=basename
36901 else
36902 as_basename=false
36903 fi
36904
36905 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36906 as_dirname=dirname
36907 else
36908 as_dirname=false
36909 fi
36910
36911 as_me=`$as_basename -- "$0" ||
36912 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36913 X"$0" : 'X\(//\)$' \| \
36914 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36915 printf "%s\n" X/"$0" |
36916 sed '/^.*\/\([^/][^/]*\)\/*$/{
36917 s//\1/
36918 q
36919 }
36920 /^X\/\(\/\/\)$/{
36921 s//\1/
36922 q
36923 }
36924 /^X\/\(\/\).*/{
36925 s//\1/
36926 q
36927 }
36928 s/.*/./; q'`
36929
36930 # Avoid depending upon Character Ranges.
36931 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36932 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36933 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36934 as_cr_digits='0123456789'
36935 as_cr_alnum=$as_cr_Letters$as_cr_digits
36936
36937
36938 # Determine whether it's possible to make 'echo' print without a newline.
36939 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
36940 # for compatibility with existing Makefiles.
36941 ECHO_C= ECHO_N= ECHO_T=
36942 case `echo -n x` in #(((((
36943 -n*)
36944 case `echo 'xy\c'` in
36945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
36946 xy) ECHO_C='\c';;
36947 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36948 ECHO_T=' ';;
36949 esac;;
36950 *)
36951 ECHO_N='-n';;
36952 esac
36953
36954 # For backward compatibility with old third-party macros, we provide
36955 # the shell variables $as_echo and $as_echo_n. New code should use
36956 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
36957 as_echo='printf %s\n'
36958 as_echo_n='printf %s'
36959
36960 rm -f conf$$ conf$$.exe conf$$.file
36961 if test -d conf$$.dir; then
36962 rm -f conf$$.dir/conf$$.file
36963 else
36964 rm -f conf$$.dir
36965 mkdir conf$$.dir 2>/dev/null
36966 fi
36967 if (echo >conf$$.file) 2>/dev/null; then
36968 if ln -s conf$$.file conf$$ 2>/dev/null; then
36969 as_ln_s='ln -s'
36970 # ... but there are two gotchas:
36971 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
36972 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
36973 # In both cases, we have to default to 'cp -pR'.
36974 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36975 as_ln_s='cp -pR'
36976 elif ln conf$$.file conf$$ 2>/dev/null; then
36977 as_ln_s=ln
36978 else
36979 as_ln_s='cp -pR'
36980 fi
36981 else
36982 as_ln_s='cp -pR'
36983 fi
36984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36985 rmdir conf$$.dir 2>/dev/null
36986
36987
36988 # as_fn_mkdir_p
36989 # -------------
36990 # Create "$as_dir" as a directory, including parents if necessary.
36991 as_fn_mkdir_p ()
36992 {
36993
36994 case $as_dir in #(
36995 -*) as_dir=./$as_dir;;
36996 esac
36997 test -d "$as_dir" || eval $as_mkdir_p || {
36998 as_dirs=
36999 while :; do
37000 case $as_dir in #(
37001 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37002 *) as_qdir=$as_dir;;
37003 esac
37004 as_dirs="'$as_qdir' $as_dirs"
37005 as_dir=`$as_dirname -- "$as_dir" ||
37006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37007 X"$as_dir" : 'X\(//\)[^/]' \| \
37008 X"$as_dir" : 'X\(//\)$' \| \
37009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37010 printf "%s\n" X"$as_dir" |
37011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37012 s//\1/
37013 q
37014 }
37015 /^X\(\/\/\)[^/].*/{
37016 s//\1/
37017 q
37018 }
37019 /^X\(\/\/\)$/{
37020 s//\1/
37021 q
37022 }
37023 /^X\(\/\).*/{
37024 s//\1/
37025 q
37026 }
37027 s/.*/./; q'`
37028 test -d "$as_dir" && break
37029 done
37030 test -z "$as_dirs" || eval "mkdir $as_dirs"
37031 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37032
37033
37034 } # as_fn_mkdir_p
37035 if mkdir -p . 2>/dev/null; then
37036 as_mkdir_p='mkdir -p "$as_dir"'
37037 else
37038 test -d ./-p && rmdir ./-p
37039 as_mkdir_p=false
37040 fi
37041
37042
37043 # as_fn_executable_p FILE
37044 # -----------------------
37045 # Test if FILE is an executable regular file.
37046 as_fn_executable_p ()
37047 {
37048 test -f "$1" && test -x "$1"
37049 } # as_fn_executable_p
37050 as_test_x='test -x'
37051 as_executable_p=as_fn_executable_p
37052
37053 # Sed expression to map a string onto a valid CPP name.
37054 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
37055 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
37056
37057 # Sed expression to map a string onto a valid variable name.
37058 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
37059 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
37060
37061
37062 exec 6>&1
37063 ## ----------------------------------- ##
37064 ## Main body of $CONFIG_STATUS script. ##
37065 ## ----------------------------------- ##
37066 _ASEOF
37067 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37068
37069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37070 # Save the log message, to keep $0 and so on meaningful, and to
37071 # report actual input values of CONFIG_FILES etc. instead of their
37072 # values after options handling.
37073 ac_log="
37074 This file was extended by sudo $as_me 1.9.17p2, which was
37075 generated by GNU Autoconf 2.72. Invocation command line was
37076
37077 CONFIG_FILES = $CONFIG_FILES
37078 CONFIG_HEADERS = $CONFIG_HEADERS
37079 CONFIG_LINKS = $CONFIG_LINKS
37080 CONFIG_COMMANDS = $CONFIG_COMMANDS
37081 $ $0 $@
37082
37083 on `(hostname || uname -n) 2>/dev/null | sed 1q`
37084 "
37085
37086 _ACEOF
37087
37088 case $ac_config_files in *"
37089 "*) set x $ac_config_files; shift; ac_config_files=$*;;
37090 esac
37091
37092 case $ac_config_headers in *"
37093 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37094 esac
37095
37096
37097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37098 # Files that config.status was made for.
37099 config_files="$ac_config_files"
37100 config_headers="$ac_config_headers"
37101 config_commands="$ac_config_commands"
37102
37103 _ACEOF
37104
37105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37106 ac_cs_usage="\
37107 '$as_me' instantiates files and other configuration actions
37108 from templates according to the current configuration. Unless the files
37109 and actions are specified as TAGs, all are instantiated by default.
37110
37111 Usage: $0 [OPTION]... [TAG]...
37112
37113 -h, --help print this help, then exit
37114 -V, --version print version number and configuration settings, then exit
37115 --config print configuration, then exit
37116 -q, --quiet, --silent
37117 do not print progress messages
37118 -d, --debug don't remove temporary files
37119 --recheck update $as_me by reconfiguring in the same conditions
37120 --file=FILE[:TEMPLATE]
37121 instantiate the configuration file FILE
37122 --header=FILE[:TEMPLATE]
37123 instantiate the configuration header FILE
37124
37125 Configuration files:
37126 $config_files
37127
37128 Configuration headers:
37129 $config_headers
37130
37131 Configuration commands:
37132 $config_commands
37133
37134 Report bugs to <https://bugzilla.sudo.ws/>."
37135
37136 _ACEOF
37137 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
37138 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
37139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37140 ac_cs_config='$ac_cs_config_escaped'
37141 ac_cs_version="\\
37142 sudo config.status 1.9.17p2
37143 configured by $0, generated by GNU Autoconf 2.72,
37144 with options \\"\$ac_cs_config\\"
37145
37146 Copyright (C) 2023 Free Software Foundation, Inc.
37147 This config.status script is free software; the Free Software Foundation
37148 gives unlimited permission to copy, distribute and modify it."
37149
37150 ac_pwd='$ac_pwd'
37151 srcdir='$srcdir'
37152 AWK='$AWK'
37153 test -n "\$AWK" || AWK=awk
37154 _ACEOF
37155
37156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37157 # The default lists apply if the user does not specify any file.
37158 ac_need_defaults=:
37159 while test $# != 0
37160 do
37161 case $1 in
37162 --*=?*)
37163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37164 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37165 ac_shift=:
37166 ;;
37167 --*=)
37168 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37169 ac_optarg=
37170 ac_shift=:
37171 ;;
37172 *)
37173 ac_option=$1
37174 ac_optarg=$2
37175 ac_shift=shift
37176 ;;
37177 esac
37178
37179 case $ac_option in
37180 # Handling of the options.
37181 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37182 ac_cs_recheck=: ;;
37183 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37184 printf "%s\n" "$ac_cs_version"; exit ;;
37185 --config | --confi | --conf | --con | --co | --c )
37186 printf "%s\n" "$ac_cs_config"; exit ;;
37187 --debug | --debu | --deb | --de | --d | -d )
37188 debug=: ;;
37189 --file | --fil | --fi | --f )
37190 $ac_shift
37191 case $ac_optarg in
37192 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37193 '') as_fn_error $? "missing file argument" ;;
37194 esac
37195 as_fn_append CONFIG_FILES " '$ac_optarg'"
37196 ac_need_defaults=false;;
37197 --header | --heade | --head | --hea )
37198 $ac_shift
37199 case $ac_optarg in
37200 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37201 esac
37202 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37203 ac_need_defaults=false;;
37204 --he | --h)
37205 # Conflict between --help and --header
37206 as_fn_error $? "ambiguous option: '$1'
37207 Try '$0 --help' for more information.";;
37208 --help | --hel | -h )
37209 printf "%s\n" "$ac_cs_usage"; exit ;;
37210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37211 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37212 ac_cs_silent=: ;;
37213
37214 # This is an error.
37215 -*) as_fn_error $? "unrecognized option: '$1'
37216 Try '$0 --help' for more information." ;;
37217
37218 *) as_fn_append ac_config_targets " $1"
37219 ac_need_defaults=false ;;
37220
37221 esac
37222 shift
37223 done
37224
37225 ac_configure_extra_args=
37226
37227 if $ac_cs_silent; then
37228 exec 6>/dev/null
37229 ac_configure_extra_args="$ac_configure_extra_args --silent"
37230 fi
37231
37232 _ACEOF
37233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37234 if \$ac_cs_recheck; then
37235 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37236 shift
37237 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
37238 CONFIG_SHELL='$SHELL'
37239 export CONFIG_SHELL
37240 exec "\$@"
37241 fi
37242
37243 _ACEOF
37244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37245 exec 5>>config.log
37246 {
37247 echo
37248 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37249 ## Running $as_me. ##
37250 _ASBOX
37251 printf "%s\n" "$ac_log"
37252 } >&5
37253
37254 _ACEOF
37255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37256 #
37257 # INIT-COMMANDS
37258 #
37259
37260
37261 # The HP-UX ksh and POSIX shell print the target directory to stdout
37262 # if CDPATH is set.
37263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37264
37265 sed_quote_subst='$sed_quote_subst'
37266 double_quote_subst='$double_quote_subst'
37267 delay_variable_subst='$delay_variable_subst'
37268 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37269 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37270 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37271 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37272 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37273 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37274 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
37275 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37276 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37277 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
37278 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37279 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37280 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37281 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37282 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37283 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37284 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37285 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37286 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37287 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37288 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37289 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37290 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37291 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37292 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37293 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37294 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37295 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37296 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37297 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37298 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37299 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37300 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37301 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37302 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
37303 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37304 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37305 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37306 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37307 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37308 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37309 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37310 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37311 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
37312 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37313 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37314 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37315 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37316 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37317 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37318 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37319 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37320 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37321 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37322 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37323 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37324 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37325 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37326 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
37327 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37328 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
37329 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
37330 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37331 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37332 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
37333 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37334 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37335 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37336 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37337 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37338 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37339 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37340 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37341 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37342 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37343 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37344 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37345 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37346 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37347 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37348 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37349 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37350 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37351 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37352 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37353 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37354 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37355 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37356 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37357 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37358 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37359 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37360 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37361 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37362 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37363 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37364 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37365 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37366 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37367 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37368 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37369 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37370 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37371 fix_hardcoded_libdir_flag_spec='`$ECHO "$fix_hardcoded_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37372 fix_hardcoded_libdir_flag_spec_ld='`$ECHO "$fix_hardcoded_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
37373 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37374 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
37375 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37376 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37377 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37378 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37379 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
37380 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
37381 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37382 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37383 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37384 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37385 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37386 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37387 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37388 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37389 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37390 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37391 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37392 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37393 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37394 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37395 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37396 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37397 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37398 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37399 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
37400 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
37401 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37402 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37403 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37404 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37405 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37406 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37407
37408 LTCC='$LTCC'
37409 LTCFLAGS='$LTCFLAGS'
37410 compiler='$compiler_DEFAULT'
37411
37412 # A function that is used when there is no print builtin or printf.
37413 func_fallback_echo ()
37414 {
37415 eval 'cat <<_LTECHO_EOF
37416 \$1
37417 _LTECHO_EOF'
37418 }
37419
37420 # Quote evaled strings.
37421 for var in SHELL \
37422 ECHO \
37423 PATH_SEPARATOR \
37424 SED \
37425 GREP \
37426 EGREP \
37427 FGREP \
37428 LD \
37429 NM \
37430 LN_S \
37431 lt_SP2NL \
37432 lt_NL2SP \
37433 reload_flag \
37434 FILECMD \
37435 OBJDUMP \
37436 deplibs_check_method \
37437 file_magic_cmd \
37438 file_magic_glob \
37439 want_nocaseglob \
37440 DLLTOOL \
37441 sharedlib_from_linklib_cmd \
37442 AR \
37443 archiver_list_spec \
37444 STRIP \
37445 RANLIB \
37446 CC \
37447 CFLAGS \
37448 compiler \
37449 lt_cv_sys_global_symbol_pipe \
37450 lt_cv_sys_global_symbol_to_cdecl \
37451 lt_cv_sys_global_symbol_to_import \
37452 lt_cv_sys_global_symbol_to_c_name_address \
37453 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37454 lt_cv_nm_interface \
37455 nm_file_list_spec \
37456 lt_cv_truncate_bin \
37457 lt_prog_compiler_no_builtin_flag \
37458 lt_prog_compiler_pic \
37459 lt_prog_compiler_wl \
37460 lt_prog_compiler_static \
37461 lt_cv_prog_compiler_c_o \
37462 need_locks \
37463 MANIFEST_TOOL \
37464 DSYMUTIL \
37465 NMEDIT \
37466 LIPO \
37467 OTOOL \
37468 OTOOL64 \
37469 shrext_cmds \
37470 export_dynamic_flag_spec \
37471 whole_archive_flag_spec \
37472 compiler_needs_object \
37473 with_gnu_ld \
37474 allow_undefined_flag \
37475 no_undefined_flag \
37476 hardcode_libdir_flag_spec \
37477 hardcode_libdir_separator \
37478 fix_hardcoded_libdir_flag_spec \
37479 fix_hardcoded_libdir_flag_spec_ld \
37480 exclude_expsyms \
37481 include_expsyms \
37482 file_list_spec \
37483 variables_saved_for_relink \
37484 libname_spec \
37485 library_names_spec \
37486 soname_spec \
37487 install_override_mode \
37488 finish_eval \
37489 old_striplib \
37490 striplib; do
37491 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37492 *[\\\\\\\`\\"\\\$]*)
37493 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37494 ;;
37495 *)
37496 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37497 ;;
37498 esac
37499 done
37500
37501 # Double-quote double-evaled strings.
37502 for var in reload_cmds \
37503 old_postinstall_cmds \
37504 old_postuninstall_cmds \
37505 old_archive_cmds \
37506 extract_expsyms_cmds \
37507 old_archive_from_new_cmds \
37508 old_archive_from_expsyms_cmds \
37509 archive_cmds \
37510 archive_expsym_cmds \
37511 module_cmds \
37512 module_expsym_cmds \
37513 export_symbols_cmds \
37514 prelink_cmds \
37515 postlink_cmds \
37516 postinstall_cmds \
37517 postuninstall_cmds \
37518 finish_cmds \
37519 sys_lib_search_path_spec \
37520 configure_time_dlsearch_path \
37521 configure_time_lt_sys_library_path; do
37522 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37523 *[\\\\\\\`\\"\\\$]*)
37524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37525 ;;
37526 *)
37527 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37528 ;;
37529 esac
37530 done
37531
37532 ac_aux_dir='$ac_aux_dir'
37533
37534 # See if we are running on zsh, and set the options that allow our
37535 # commands through without removal of \ escapes INIT.
37536 if test -n "\${ZSH_VERSION+set}"; then
37537 setopt NO_GLOB_SUBST
37538 fi
37539
37540
37541 PACKAGE='$PACKAGE'
37542 VERSION='$VERSION'
37543 RM='$RM'
37544 ofile='$ofile'
37545
37546
37547
37548
37549 _ACEOF
37550
37551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37552
37553 # Handling of arguments.
37554 for ac_config_target in $ac_config_targets
37555 do
37556 case $ac_config_target in
37557 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
37558 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
37559 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37560 "$PYTHON_PLUGIN_SRC/Makefile") CONFIG_FILES="$CONFIG_FILES $PYTHON_PLUGIN_SRC/Makefile" ;;
37561 "lib/zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/zlib/zconf.h" ;;
37562 "lib/zlib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/zlib/Makefile" ;;
37563 "etc/init.d/$INIT_SCRIPT") CONFIG_FILES="$CONFIG_FILES etc/init.d/$INIT_SCRIPT" ;;
37564 "etc/init.d/sudo.conf") CONFIG_FILES="$CONFIG_FILES etc/init.d/sudo.conf" ;;
37565 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37566 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
37567 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
37568 "examples/sudoers") CONFIG_FILES="$CONFIG_FILES examples/sudoers" ;;
37569 "examples/sudo.conf") CONFIG_FILES="$CONFIG_FILES examples/sudo.conf" ;;
37570 "examples/sudo_logsrvd.conf") CONFIG_FILES="$CONFIG_FILES examples/sudo_logsrvd.conf" ;;
37571 "examples/syslog.conf") CONFIG_FILES="$CONFIG_FILES examples/syslog.conf" ;;
37572 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
37573 "lib/eventlog/Makefile") CONFIG_FILES="$CONFIG_FILES lib/eventlog/Makefile" ;;
37574 "lib/fuzzstub/Makefile") CONFIG_FILES="$CONFIG_FILES lib/fuzzstub/Makefile" ;;
37575 "lib/iolog/Makefile") CONFIG_FILES="$CONFIG_FILES lib/iolog/Makefile" ;;
37576 "lib/logsrv/Makefile") CONFIG_FILES="$CONFIG_FILES lib/logsrv/Makefile" ;;
37577 "lib/protobuf-c/Makefile") CONFIG_FILES="$CONFIG_FILES lib/protobuf-c/Makefile" ;;
37578 "lib/ssl_compat/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ssl_compat/Makefile" ;;
37579 "lib/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/util/Makefile" ;;
37580 "lib/util/regress/harness") CONFIG_FILES="$CONFIG_FILES lib/util/regress/harness" ;;
37581 "lib/util/util.exp") CONFIG_FILES="$CONFIG_FILES lib/util/util.exp" ;;
37582 "logsrvd/Makefile") CONFIG_FILES="$CONFIG_FILES logsrvd/Makefile" ;;
37583 "src/intercept.exp") CONFIG_FILES="$CONFIG_FILES src/intercept.exp" ;;
37584 "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
37585 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
37586 "plugins/audit_json/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/audit_json/Makefile" ;;
37587 "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
37588 "plugins/group_file/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/group_file/Makefile" ;;
37589 "plugins/sample_approval/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_approval/Makefile" ;;
37590 "plugins/system_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/system_group/Makefile" ;;
37591 "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
37592 "plugins/sudoers/regress/harness") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/regress/harness" ;;
37593 "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
37594 "scripts/check_man") CONFIG_FILES="$CONFIG_FILES scripts/check_man" ;;
37595 "harness") CONFIG_COMMANDS="$CONFIG_COMMANDS harness" ;;
37596
37597 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
37598 esac
37599 done
37600
37601
37602 # If the user did not use the arguments to specify the items to instantiate,
37603 # then the envvar interface is used. Set only those that are not.
37604 # We use the long form for the default assignment because of an extremely
37605 # bizarre bug on SunOS 4.1.3.
37606 if $ac_need_defaults; then
37607 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
37608 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
37609 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
37610 fi
37611
37612 # Have a temporary directory for convenience. Make it in the build tree
37613 # simply because there is no reason against having it here, and in addition,
37614 # creating and moving files from /tmp can sometimes cause problems.
37615 # Hook for its removal unless debugging.
37616 # Note that there is a small window in which the directory will not be cleaned:
37617 # after its creation but before its name has been assigned to '$tmp'.
37618 $debug ||
37619 {
37620 tmp= ac_tmp=
37621 trap 'exit_status=$?
37622 : "${ac_tmp:=$tmp}"
37623 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37624 ' 0
37625 trap 'as_fn_exit 1' 1 2 13 15
37626 }
37627 # Create a (secure) tmp directory for tmp files.
37628
37629 {
37630 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37631 test -d "$tmp"
37632 } ||
37633 {
37634 tmp=./conf$$-$RANDOM
37635 (umask 077 && mkdir "$tmp")
37636 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37637 ac_tmp=$tmp
37638
37639 # Set up the scripts for CONFIG_FILES section.
37640 # No need to generate them if there are no CONFIG_FILES.
37641 # This happens for instance with './config.status config.h'.
37642 if test -n "$CONFIG_FILES"; then
37643
37644
37645 ac_cr=`echo X | tr X '\015'`
37646 # On cygwin, bash can eat \r inside `` if the user requested igncr.
37647 # But we know of no other shell where ac_cr would be empty at this
37648 # point, so we can use a bashism as a fallback.
37649 if test "x$ac_cr" = x; then
37650 eval ac_cr=\$\'\\r\'
37651 fi
37652 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37653 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37654 ac_cs_awk_cr='\\r'
37655 else
37656 ac_cs_awk_cr=$ac_cr
37657 fi
37658
37659 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37660 _ACEOF
37661
37662
37663 {
37664 echo "cat >conf$$subs.awk <<_ACEOF" &&
37665 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37666 echo "_ACEOF"
37667 } >conf$$subs.sh ||
37668 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37669 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37670 ac_delim='%!_!# '
37671 for ac_last_try in false false false false false :; do
37672 . ./conf$$subs.sh ||
37673 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37674
37675 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37676 if test $ac_delim_n = $ac_delim_num; then
37677 break
37678 elif $ac_last_try; then
37679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37680 else
37681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37682 fi
37683 done
37684 rm -f conf$$subs.sh
37685
37686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37687 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37688 _ACEOF
37689 sed -n '
37690 h
37691 s/^/S["/; s/!.*/"]=/
37692 p
37693 g
37694 s/^[^!]*!//
37695 :repl
37696 t repl
37697 s/'"$ac_delim"'$//
37698 t delim
37699 :nl
37700 h
37701 s/\(.\{148\}\)..*/\1/
37702 t more1
37703 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37704 p
37705 n
37706 b repl
37707 :more1
37708 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37709 p
37710 g
37711 s/.\{148\}//
37712 t nl
37713 :delim
37714 h
37715 s/\(.\{148\}\)..*/\1/
37716 t more2
37717 s/["\\]/\\&/g; s/^/"/; s/$/"/
37718 p
37719 b
37720 :more2
37721 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37722 p
37723 g
37724 s/.\{148\}//
37725 t delim
37726 ' <conf$$subs.awk | sed '
37727 /^[^""]/{
37728 N
37729 s/\n//
37730 }
37731 ' >>$CONFIG_STATUS || ac_write_fail=1
37732 rm -f conf$$subs.awk
37733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37734 _ACAWK
37735 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37736 for (key in S) S_is_set[key] = 1
37737 FS = ""
37738
37739 }
37740 {
37741 line = $ 0
37742 nfields = split(line, field, "@")
37743 substed = 0
37744 len = length(field[1])
37745 for (i = 2; i < nfields; i++) {
37746 key = field[i]
37747 keylen = length(key)
37748 if (S_is_set[key]) {
37749 value = S[key]
37750 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37751 len += length(value) + length(field[++i])
37752 substed = 1
37753 } else
37754 len += 1 + keylen
37755 }
37756
37757 print line
37758 }
37759
37760 _ACAWK
37761 _ACEOF
37762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37763 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37764 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37765 else
37766 cat
37767 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37768 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37769 _ACEOF
37770
37771 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37772 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37773 # trailing colons and then remove the whole line if VPATH becomes empty
37774 # (actually we leave an empty line to preserve line numbers).
37775 if test "x$srcdir" = x.; then
37776 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37777 h
37778 s///
37779 s/^/:/
37780 s/[ ]*$/:/
37781 s/:\$(srcdir):/:/g
37782 s/:\${srcdir}:/:/g
37783 s/:@srcdir@:/:/g
37784 s/^:*//
37785 s/:*$//
37786 x
37787 s/\(=[ ]*\).*/\1/
37788 G
37789 s/\n//
37790 s/^[^=]*=[ ]*$//
37791 }'
37792 fi
37793
37794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37795 fi # test -n "$CONFIG_FILES"
37796
37797 # Set up the scripts for CONFIG_HEADERS section.
37798 # No need to generate them if there are no CONFIG_HEADERS.
37799 # This happens for instance with './config.status Makefile'.
37800 if test -n "$CONFIG_HEADERS"; then
37801 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
37802 BEGIN {
37803 _ACEOF
37804
37805 # Transform confdefs.h into an awk script 'defines.awk', embedded as
37806 # here-document in config.status, that substitutes the proper values into
37807 # config.h.in to produce config.h.
37808
37809 # Create a delimiter string that does not exist in confdefs.h, to ease
37810 # handling of long lines.
37811 ac_delim='%!_!# '
37812 for ac_last_try in false false :; do
37813 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37814 if test -z "$ac_tt"; then
37815 break
37816 elif $ac_last_try; then
37817 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
37818 else
37819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37820 fi
37821 done
37822
37823 # For the awk script, D is an array of macro values keyed by name,
37824 # likewise P contains macro parameters if any. Preserve backslash
37825 # newline sequences.
37826
37827 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37828 sed -n '
37829 s/.\{148\}/&'"$ac_delim"'/g
37830 t rset
37831 :rset
37832 s/^[ ]*#[ ]*define[ ][ ]*/ /
37833 t def
37834 d
37835 :def
37836 s/\\$//
37837 t bsnl
37838 s/["\\]/\\&/g
37839 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37840 D["\1"]=" \3"/p
37841 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37842 d
37843 :bsnl
37844 s/["\\]/\\&/g
37845 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37846 D["\1"]=" \3\\\\\\n"\\/p
37847 t cont
37848 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37849 t cont
37850 d
37851 :cont
37852 n
37853 s/.\{148\}/&'"$ac_delim"'/g
37854 t clear
37855 :clear
37856 s/\\$//
37857 t bsnlc
37858 s/["\\]/\\&/g; s/^/"/; s/$/"/p
37859 d
37860 :bsnlc
37861 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37862 b cont
37863 ' <confdefs.h | sed '
37864 s/'"$ac_delim"'/"\\\
37865 "/g' >>$CONFIG_STATUS || ac_write_fail=1
37866
37867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37868 for (key in D) D_is_set[key] = 1
37869 FS = ""
37870 }
37871 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37872 line = \$ 0
37873 split(line, arg, " ")
37874 if (arg[1] == "#") {
37875 defundef = arg[2]
37876 mac1 = arg[3]
37877 } else {
37878 defundef = substr(arg[1], 2)
37879 mac1 = arg[2]
37880 }
37881 split(mac1, mac2, "(") #)
37882 macro = mac2[1]
37883 prefix = substr(line, 1, index(line, defundef) - 1)
37884 if (D_is_set[macro]) {
37885 # Preserve the white space surrounding the "#".
37886 print prefix "define", macro P[macro] D[macro]
37887 next
37888 } else {
37889 # Replace #undef with comments. This is necessary, for example,
37890 # in the case of _POSIX_SOURCE, which is predefined and required
37891 # on some systems where configure will not decide to define it.
37892 if (defundef == "undef") {
37893 print "/*", prefix defundef, macro, "*/"
37894 next
37895 }
37896 }
37897 }
37898 { print }
37899 _ACAWK
37900 _ACEOF
37901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37902 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
37903 fi # test -n "$CONFIG_HEADERS"
37904
37905
37906 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37907 shift
37908 for ac_tag
37909 do
37910 case $ac_tag in
37911 :[FHLC]) ac_mode=$ac_tag; continue;;
37912 esac
37913 case $ac_mode$ac_tag in
37914 :[FHL]*:*);;
37915 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
37916 :[FH]-) ac_tag=-:-;;
37917 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37918 esac
37919 ac_save_IFS=$IFS
37920 IFS=:
37921 set x $ac_tag
37922 IFS=$ac_save_IFS
37923 shift
37924 ac_file=$1
37925 shift
37926
37927 case $ac_mode in
37928 :L) ac_source=$1;;
37929 :[FH])
37930 ac_file_inputs=
37931 for ac_f
37932 do
37933 case $ac_f in
37934 -) ac_f="$ac_tmp/stdin";;
37935 *) # Look for the file first in the build tree, then in the source tree
37936 # (if the path is not absolute). The absolute path cannot be DOS-style,
37937 # because $ac_f cannot contain ':'.
37938 test -f "$ac_f" ||
37939 case $ac_f in
37940 [\\/$]*) false;;
37941 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37942 esac ||
37943 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
37944 esac
37945 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37946 as_fn_append ac_file_inputs " '$ac_f'"
37947 done
37948
37949 # Let's still pretend it is 'configure' which instantiates (i.e., don't
37950 # use $as_me), people would be surprised to read:
37951 # /* config.h. Generated by config.status. */
37952 configure_input='Generated from '`
37953 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37954 `' by configure.'
37955 if test x"$ac_file" != x-; then
37956 configure_input="$ac_file. $configure_input"
37957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37958 printf "%s\n" "$as_me: creating $ac_file" >&6;}
37959 fi
37960 # Neutralize special characters interpreted by sed in replacement strings.
37961 case $configure_input in #(
37962 *\&* | *\|* | *\\* )
37963 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
37964 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37965 *) ac_sed_conf_input=$configure_input;;
37966 esac
37967
37968 case $ac_tag in
37969 *:-:* | *:-) cat >"$ac_tmp/stdin" \
37970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
37971 esac
37972 ;;
37973 esac
37974
37975 ac_dir=`$as_dirname -- "$ac_file" ||
37976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37977 X"$ac_file" : 'X\(//\)[^/]' \| \
37978 X"$ac_file" : 'X\(//\)$' \| \
37979 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37980 printf "%s\n" X"$ac_file" |
37981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37982 s//\1/
37983 q
37984 }
37985 /^X\(\/\/\)[^/].*/{
37986 s//\1/
37987 q
37988 }
37989 /^X\(\/\/\)$/{
37990 s//\1/
37991 q
37992 }
37993 /^X\(\/\).*/{
37994 s//\1/
37995 q
37996 }
37997 s/.*/./; q'`
37998 as_dir="$ac_dir"; as_fn_mkdir_p
37999 ac_builddir=.
38000
38001 case "$ac_dir" in
38002 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38003 *)
38004 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
38005 # A ".." for each directory in $ac_dir_suffix.
38006 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38007 case $ac_top_builddir_sub in
38008 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38009 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38010 esac ;;
38011 esac
38012 ac_abs_top_builddir=$ac_pwd
38013 ac_abs_builddir=$ac_pwd$ac_dir_suffix
38014 # for backward compatibility:
38015 ac_top_builddir=$ac_top_build_prefix
38016
38017 case $srcdir in
38018 .) # We are building in place.
38019 ac_srcdir=.
38020 ac_top_srcdir=$ac_top_builddir_sub
38021 ac_abs_top_srcdir=$ac_pwd ;;
38022 [\\/]* | ?:[\\/]* ) # Absolute name.
38023 ac_srcdir=$srcdir$ac_dir_suffix;
38024 ac_top_srcdir=$srcdir
38025 ac_abs_top_srcdir=$srcdir ;;
38026 *) # Relative name.
38027 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38028 ac_top_srcdir=$ac_top_build_prefix$srcdir
38029 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38030 esac
38031 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38032
38033
38034 case $ac_mode in
38035 :F)
38036 #
38037 # CONFIG_FILE
38038 #
38039
38040 _ACEOF
38041
38042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38043 # If the template does not know about datarootdir, expand it.
38044 # FIXME: This hack should be removed a few years after 2.60.
38045 ac_datarootdir_hack=; ac_datarootdir_seen=
38046 ac_sed_dataroot='
38047 /datarootdir/ {
38048 p
38049 q
38050 }
38051 /@datadir@/p
38052 /@docdir@/p
38053 /@infodir@/p
38054 /@localedir@/p
38055 /@mandir@/p'
38056 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38057 *datarootdir*) ac_datarootdir_seen=yes;;
38058 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38060 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38061 _ACEOF
38062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38063 ac_datarootdir_hack='
38064 s&@datadir@&$datadir&g
38065 s&@docdir@&$docdir&g
38066 s&@infodir@&$infodir&g
38067 s&@localedir@&$localedir&g
38068 s&@mandir@&$mandir&g
38069 s&\\\${datarootdir}&$datarootdir&g' ;;
38070 esac
38071 _ACEOF
38072
38073 # Neutralize VPATH when '$srcdir' = '.'.
38074 # Shell code in configure.ac might set extrasub.
38075 # FIXME: do we really want to maintain this feature?
38076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38077 ac_sed_extra="$ac_vpsub
38078 $extrasub
38079 _ACEOF
38080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38081 :t
38082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38083 s|@configure_input@|$ac_sed_conf_input|;t t
38084 s&@top_builddir@&$ac_top_builddir_sub&;t t
38085 s&@top_build_prefix@&$ac_top_build_prefix&;t t
38086 s&@srcdir@&$ac_srcdir&;t t
38087 s&@abs_srcdir@&$ac_abs_srcdir&;t t
38088 s&@top_srcdir@&$ac_top_srcdir&;t t
38089 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38090 s&@builddir@&$ac_builddir&;t t
38091 s&@abs_builddir@&$ac_abs_builddir&;t t
38092 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38093 $ac_datarootdir_hack
38094 "
38095 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38096 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38097
38098 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38099 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38100 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38101 "$ac_tmp/out"`; test -z "$ac_out"; } &&
38102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
38103 which seems to be undefined. Please make sure it is defined" >&5
38104 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
38105 which seems to be undefined. Please make sure it is defined" >&2;}
38106
38107 rm -f "$ac_tmp/stdin"
38108 case $ac_file in
38109 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38110 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38111 esac \
38112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38113 ;;
38114 :H)
38115 #
38116 # CONFIG_HEADER
38117 #
38118 if test x"$ac_file" != x-; then
38119 {
38120 printf "%s\n" "/* $configure_input */" >&1 \
38121 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38122 } >"$ac_tmp/config.h" \
38123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38124 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38126 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
38127 else
38128 rm -f "$ac_file"
38129 mv "$ac_tmp/config.h" "$ac_file" \
38130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38131 fi
38132 else
38133 printf "%s\n" "/* $configure_input */" >&1 \
38134 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38135 || as_fn_error $? "could not create -" "$LINENO" 5
38136 fi
38137 ;;
38138
38139 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38140 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
38141 ;;
38142 esac
38143
38144
38145 case $ac_file$ac_mode in
38146 "libtool":C)
38147
38148 # See if we are running on zsh, and set the options that allow our
38149 # commands through without removal of \ escapes.
38150 if test -n "${ZSH_VERSION+set}"; then
38151 setopt NO_GLOB_SUBST
38152 fi
38153
38154 cfgfile=${ofile}T
38155 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38156 $RM "$cfgfile"
38157
38158 cat <<_LT_EOF >> "$cfgfile"
38159 #! $SHELL
38160 # Generated automatically by $as_me ($PACKAGE) $VERSION
38161 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
38162
38163 # Provide generalized library-building support services.
38164 # Written by Gordon Matzigkeit, 1996
38165
38166 # Copyright (C) 2024 Free Software Foundation, Inc.
38167 # This is free software; see the source for copying conditions. There is NO
38168 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
38169
38170 # GNU Libtool is free software; you can redistribute it and/or modify
38171 # it under the terms of the GNU General Public License as published by
38172 # the Free Software Foundation; either version 2 of the License, or
38173 # (at your option) any later version.
38174 #
38175 # As a special exception to the GNU General Public License, if you
38176 # distribute this file as part of a program or library that is built
38177 # using GNU Libtool, you may include this file under the same
38178 # distribution terms that you use for the rest of that program.
38179 #
38180 # GNU Libtool is distributed in the hope that it will be useful, but
38181 # WITHOUT ANY WARRANTY; without even the implied warranty of
38182 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38183 # GNU General Public License for more details.
38184 #
38185 # You should have received a copy of the GNU General Public License
38186 # along with this program. If not, see <http://www.gnu.org/licenses/>.
38187
38188
38189 # The names of the tagged configurations supported by this script.
38190 available_tags=''
38191
38192 # Configured defaults for sys_lib_dlsearch_path munging.
38193 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
38194
38195 # ### BEGIN LIBTOOL CONFIG
38196
38197 # Which release of libtool.m4 was used?
38198 macro_version=$macro_version
38199 macro_revision=$macro_revision
38200
38201 # Whether or not to build shared libraries.
38202 build_libtool_libs=$enable_shared
38203
38204 # Whether or not to build static libraries.
38205 build_old_libs=$enable_static
38206
38207 # What type of objects to build.
38208 pic_mode=$pic_mode
38209
38210 # Whether or not to optimize for fast installation.
38211 fast_install=$enable_fast_install
38212
38213 # Shared archive member basename,for filename based shared library versioning on AIX.
38214 shared_archive_member_spec=$shared_archive_member_spec
38215
38216 # Shell to use when invoking shell scripts.
38217 SHELL=$lt_SHELL
38218
38219 # An echo program that protects backslashes.
38220 ECHO=$lt_ECHO
38221
38222 # The PATH separator for the build system.
38223 PATH_SEPARATOR=$lt_PATH_SEPARATOR
38224
38225 # The host system.
38226 host_alias=$host_alias
38227 host=$host
38228 host_os=$host_os
38229
38230 # The build system.
38231 build_alias=$build_alias
38232 build=$build
38233 build_os=$build_os
38234
38235 # A sed program that does not truncate output.
38236 SED=$lt_SED
38237
38238 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
38239 Xsed="\$SED -e 1s/^X//"
38240
38241 # A grep program that handles long lines.
38242 GREP=$lt_GREP
38243
38244 # An ERE matcher.
38245 EGREP=$lt_EGREP
38246
38247 # A literal string matcher.
38248 FGREP=$lt_FGREP
38249
38250 # A BSD- or MS-compatible name lister.
38251 NM=$lt_NM
38252
38253 # Whether we need soft or hard links.
38254 LN_S=$lt_LN_S
38255
38256 # What is the maximum length of a command?
38257 max_cmd_len=$max_cmd_len
38258
38259 # Object file suffix (normally "o").
38260 objext=$ac_objext
38261
38262 # Executable file suffix (normally "").
38263 exeext=$exeext
38264
38265 # whether the shell understands "unset".
38266 lt_unset=$lt_unset
38267
38268 # turn spaces into newlines.
38269 SP2NL=$lt_lt_SP2NL
38270
38271 # turn newlines into spaces.
38272 NL2SP=$lt_lt_NL2SP
38273
38274 # convert \$build file names to \$host format.
38275 to_host_file_cmd=$lt_cv_to_host_file_cmd
38276
38277 # convert \$build files to toolchain format.
38278 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38279
38280 # A file(cmd) program that detects file types.
38281 FILECMD=$lt_FILECMD
38282
38283 # An object symbol dumper.
38284 OBJDUMP=$lt_OBJDUMP
38285
38286 # Method to check whether dependent libraries are shared objects.
38287 deplibs_check_method=$lt_deplibs_check_method
38288
38289 # Command to use when deplibs_check_method = "file_magic".
38290 file_magic_cmd=$lt_file_magic_cmd
38291
38292 # How to find potential files when deplibs_check_method = "file_magic".
38293 file_magic_glob=$lt_file_magic_glob
38294
38295 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38296 want_nocaseglob=$lt_want_nocaseglob
38297
38298 # DLL creation program.
38299 DLLTOOL=$lt_DLLTOOL
38300
38301 # Command to associate shared and link libraries.
38302 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38303
38304 # The archiver.
38305 AR=$lt_AR
38306
38307 # Flags to create an archive (by configure).
38308 lt_ar_flags=$lt_ar_flags
38309
38310 # Flags to create an archive.
38311 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
38312
38313 # How to feed a file listing to the archiver.
38314 archiver_list_spec=$lt_archiver_list_spec
38315
38316 # A symbol stripping program.
38317 STRIP=$lt_STRIP
38318
38319 # Commands used to install an old-style archive.
38320 RANLIB=$lt_RANLIB
38321 old_postinstall_cmds=$lt_old_postinstall_cmds
38322 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38323
38324 # Whether to use a lock for old archive extraction.
38325 lock_old_archive_extraction=$lock_old_archive_extraction
38326
38327 # A C compiler.
38328 LTCC=$lt_CC
38329
38330 # LTCC compiler flags.
38331 LTCFLAGS=$lt_CFLAGS
38332
38333 # Take the output of nm and produce a listing of raw symbols and C names.
38334 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38335
38336 # Transform the output of nm in a proper C declaration.
38337 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38338
38339 # Transform the output of nm into a list of symbols to manually relocate.
38340 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
38341
38342 # Transform the output of nm in a C name address pair.
38343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38344
38345 # Transform the output of nm in a C name address pair when lib prefix is needed.
38346 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38347
38348 # The name lister interface.
38349 nm_interface=$lt_lt_cv_nm_interface
38350
38351 # Specify filename containing input files for \$NM.
38352 nm_file_list_spec=$lt_nm_file_list_spec
38353
38354 # The root where to search for dependent libraries,and where our libraries should be installed.
38355 lt_sysroot=$lt_sysroot
38356
38357 # Command to truncate a binary pipe.
38358 lt_truncate_bin=$lt_lt_cv_truncate_bin
38359
38360 # The name of the directory that contains temporary libtool files.
38361 objdir=$objdir
38362
38363 # Used to examine libraries when file_magic_cmd begins with "file".
38364 MAGIC_CMD=$MAGIC_CMD
38365
38366 # Must we lock files when doing compilation?
38367 need_locks=$lt_need_locks
38368
38369 # Manifest tool.
38370 MANIFEST_TOOL=$lt_MANIFEST_TOOL
38371
38372 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38373 DSYMUTIL=$lt_DSYMUTIL
38374
38375 # Tool to change global to local symbols on Mac OS X.
38376 NMEDIT=$lt_NMEDIT
38377
38378 # Tool to manipulate fat objects and archives on Mac OS X.
38379 LIPO=$lt_LIPO
38380
38381 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
38382 OTOOL=$lt_OTOOL
38383
38384 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38385 OTOOL64=$lt_OTOOL64
38386
38387 # Old archive suffix (normally "a").
38388 libext=$libext
38389
38390 # Shared library suffix (normally ".so").
38391 shrext_cmds=$lt_shrext_cmds
38392
38393 # The commands to extract the exported symbol list from a shared archive.
38394 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38395
38396 # Variables whose values should be saved in libtool wrapper scripts and
38397 # restored at link time.
38398 variables_saved_for_relink=$lt_variables_saved_for_relink
38399
38400 # Do we need the "lib" prefix for modules?
38401 need_lib_prefix=$need_lib_prefix
38402
38403 # Do we need a version for libraries?
38404 need_version=$need_version
38405
38406 # Library versioning type.
38407 version_type=$version_type
38408
38409 # Shared library runtime path variable.
38410 runpath_var=$runpath_var
38411
38412 # Shared library path variable.
38413 shlibpath_var=$shlibpath_var
38414
38415 # Is shlibpath searched before the hard-coded library search path?
38416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38417
38418 # Format of library name prefix.
38419 libname_spec=$lt_libname_spec
38420
38421 # List of archive names. First name is the real one, the rest are links.
38422 # The last name is the one that the linker finds with -lNAME
38423 library_names_spec=$lt_library_names_spec
38424
38425 # The coded name of the library, if different from the real name.
38426 soname_spec=$lt_soname_spec
38427
38428 # Permission mode override for installation of shared libraries.
38429 install_override_mode=$lt_install_override_mode
38430
38431 # Command to use after installation of a shared archive.
38432 postinstall_cmds=$lt_postinstall_cmds
38433
38434 # Command to use after uninstallation of a shared archive.
38435 postuninstall_cmds=$lt_postuninstall_cmds
38436
38437 # Commands used to finish a libtool library installation in a directory.
38438 finish_cmds=$lt_finish_cmds
38439
38440 # As "finish_cmds", except a single script fragment to be evaled but
38441 # not shown.
38442 finish_eval=$lt_finish_eval
38443
38444 # Whether we should hardcode library paths into libraries.
38445 hardcode_into_libs=$hardcode_into_libs
38446
38447 # Compile-time system search path for libraries.
38448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38449
38450 # Detected run-time system search path for libraries.
38451 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
38452
38453 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
38454 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
38455
38456 # Whether dlopen is supported.
38457 dlopen_support=$enable_dlopen
38458
38459 # Whether dlopen of programs is supported.
38460 dlopen_self=$enable_dlopen_self
38461
38462 # Whether dlopen of statically linked programs is supported.
38463 dlopen_self_static=$enable_dlopen_self_static
38464
38465 # Commands to strip libraries.
38466 old_striplib=$lt_old_striplib
38467 striplib=$lt_striplib
38468
38469
38470 # The linker used to build libraries.
38471 LD=$lt_LD
38472
38473 # How to create reloadable object files.
38474 reload_flag=$lt_reload_flag
38475 reload_cmds=$lt_reload_cmds
38476
38477 # Commands used to build an old-style archive.
38478 old_archive_cmds=$lt_old_archive_cmds
38479
38480 # A language specific compiler.
38481 CC=$lt_compiler
38482
38483 # Is the compiler the GNU compiler?
38484 with_gcc=$GCC
38485
38486 # Compiler flag to turn off builtin functions.
38487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38488
38489 # Additional compiler flags for building library objects.
38490 pic_flag=$lt_lt_prog_compiler_pic
38491
38492 # How to pass a linker flag through the compiler.
38493 wl=$lt_lt_prog_compiler_wl
38494
38495 # Compiler flag to prevent dynamic linking.
38496 link_static_flag=$lt_lt_prog_compiler_static
38497
38498 # Does compiler simultaneously support -c and -o options?
38499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38500
38501 # Whether or not to add -lc for building shared libraries.
38502 build_libtool_need_lc=$archive_cmds_need_lc
38503
38504 # Whether or not to disallow shared libs when runtime libs are static.
38505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38506
38507 # Compiler flag to allow reflexive dlopens.
38508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38509
38510 # Compiler flag to generate shared objects directly from archives.
38511 whole_archive_flag_spec=$lt_whole_archive_flag_spec
38512
38513 # Whether the compiler copes with passing no objects directly.
38514 compiler_needs_object=$lt_compiler_needs_object
38515
38516 # Create an old-style archive from a shared archive.
38517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38518
38519 # Create a temporary old-style archive to link instead of a shared archive.
38520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38521
38522 # Commands used to build a shared archive.
38523 archive_cmds=$lt_archive_cmds
38524 archive_expsym_cmds=$lt_archive_expsym_cmds
38525
38526 # Commands used to build a loadable module if different from building
38527 # a shared archive.
38528 module_cmds=$lt_module_cmds
38529 module_expsym_cmds=$lt_module_expsym_cmds
38530
38531 # Whether we are building with GNU ld or not.
38532 with_gnu_ld=$lt_with_gnu_ld
38533
38534 # Flag that allows shared libraries with undefined symbols to be built.
38535 allow_undefined_flag=$lt_allow_undefined_flag
38536
38537 # Flag that enforces no undefined symbols.
38538 no_undefined_flag=$lt_no_undefined_flag
38539
38540 # Flag to hardcode \$libdir into a binary during linking.
38541 # This must work even if \$libdir does not exist
38542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38543
38544 # Whether we need a single "-rpath" flag with a separated argument.
38545 hardcode_libdir_separator=$lt_hardcode_libdir_separator
38546
38547 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38548 # DIR into the resulting binary.
38549 hardcode_direct=$hardcode_direct
38550
38551 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38552 # DIR into the resulting binary and the resulting library dependency is
38553 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
38554 # library is relocated.
38555 hardcode_direct_absolute=$hardcode_direct_absolute
38556
38557 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38558 # into the resulting binary.
38559 hardcode_minus_L=$hardcode_minus_L
38560
38561 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38562 # into the resulting binary.
38563 hardcode_shlibpath_var=$hardcode_shlibpath_var
38564
38565 # Set to "yes" if building a shared library automatically hardcodes DIR
38566 # into the library and all subsequent libraries and executables linked
38567 # against it.
38568 hardcode_automatic=$hardcode_automatic
38569
38570 # Flag to modify a path being hardcoded into the resulting binary.
38571 fix_hardcoded_libdir_flag_spec=$lt_fix_hardcoded_libdir_flag_spec
38572
38573 # If ld is used when linking,flag to modify a path being hardcoded into the resulting binary.
38574 fix_hardcoded_libdir_flag_spec_ld=$lt_fix_hardcoded_libdir_flag_spec_ld
38575
38576 # Set to yes if linker adds runtime paths of dependent libraries
38577 # to runtime path list.
38578 inherit_rpath=$inherit_rpath
38579
38580 # Whether libtool must link a program against all its dependency libraries.
38581 link_all_deplibs=$link_all_deplibs
38582
38583 # Set to "yes" if exported symbols are required.
38584 always_export_symbols=$always_export_symbols
38585
38586 # The commands to list exported symbols.
38587 export_symbols_cmds=$lt_export_symbols_cmds
38588
38589 # Symbols that should not be listed in the preloaded symbols.
38590 exclude_expsyms=$lt_exclude_expsyms
38591
38592 # Symbols that must always be exported.
38593 include_expsyms=$lt_include_expsyms
38594
38595 # Commands necessary for linking programs (against libraries) with templates.
38596 prelink_cmds=$lt_prelink_cmds
38597
38598 # Commands necessary for finishing linking programs.
38599 postlink_cmds=$lt_postlink_cmds
38600
38601 # Specify filename containing input files.
38602 file_list_spec=$lt_file_list_spec
38603
38604 # How to hardcode a shared library path into an executable.
38605 hardcode_action=$hardcode_action
38606
38607 # ### END LIBTOOL CONFIG
38608
38609 _LT_EOF
38610
38611 cat <<'_LT_EOF' >> "$cfgfile"
38612
38613 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
38614
38615 # func_munge_path_list VARIABLE PATH
38616 # -----------------------------------
38617 # VARIABLE is name of variable containing _space_ separated list of
38618 # directories to be munged by the contents of PATH, which is string
38619 # having a format:
38620 # "DIR[:DIR]:"
38621 # string "DIR[ DIR]" will be prepended to VARIABLE
38622 # ":DIR[:DIR]"
38623 # string "DIR[ DIR]" will be appended to VARIABLE
38624 # "DIRP[:DIRP]::[DIRA:]DIRA"
38625 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
38626 # "DIRA[ DIRA]" will be appended to VARIABLE
38627 # "DIR[:DIR]"
38628 # VARIABLE will be replaced by "DIR[ DIR]"
38629 func_munge_path_list ()
38630 {
38631 case x$2 in
38632 x)
38633 ;;
38634 *:)
38635 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
38636 ;;
38637 x:*)
38638 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
38639 ;;
38640 *::*)
38641 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
38642 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
38643 ;;
38644 *)
38645 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
38646 ;;
38647 esac
38648 }
38649
38650
38651 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
38652 func_cc_basename ()
38653 {
38654 for cc_temp in $*""; do
38655 case $cc_temp in
38656 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38657 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38658 \-*) ;;
38659 *) break;;
38660 esac
38661 done
38662 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
38663 }
38664
38665
38666 # ### END FUNCTIONS SHARED WITH CONFIGURE
38667
38668 _LT_EOF
38669
38670 case $host_os in
38671 aix3*)
38672 cat <<\_LT_EOF >> "$cfgfile"
38673 # AIX sometimes has problems with the GCC collect2 program. For some
38674 # reason, if we set the COLLECT_NAMES environment variable, the problems
38675 # vanish in a puff of smoke.
38676 if test set != "${COLLECT_NAMES+set}"; then
38677 COLLECT_NAMES=
38678 export COLLECT_NAMES
38679 fi
38680 _LT_EOF
38681 ;;
38682 esac
38683
38684
38685
38686 ltmain=$ac_aux_dir/ltmain.sh
38687
38688
38689 # We use sed instead of cat because bash on DJGPP gets confused if
38690 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38691 # text mode, it properly converts lines to CR/LF. This bash problem
38692 # is reportedly fixed, but why not run on old versions too?
38693 $SED '$q' "$ltmain" >> "$cfgfile" \
38694 || (rm -f "$cfgfile"; exit 1)
38695
38696 mv -f "$cfgfile" "$ofile" ||
38697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38698 chmod +x "$ofile"
38699
38700 ;;
38701 "harness":C) chmod +x lib/util/regress/harness plugins/sudoers/regress/harness ;;
38702
38703 esac
38704 done # for ac_tag
38705
38706
38707 as_fn_exit 0
38708 _ACEOF
38709 ac_clean_files=$ac_clean_files_save
38710
38711 test $ac_write_fail = 0 ||
38712 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38713
38714
38715 # configure is writing to config.log, and then calls config.status.
38716 # config.status does its own redirection, appending to config.log.
38717 # Unfortunately, on DOS this fails, as config.log is still kept open
38718 # by configure, so config.status won't be able to write to it; its
38719 # output is simply discarded. So we exec the FD to /dev/null,
38720 # effectively closing config.log, so it can be properly (re)opened and
38721 # appended to by config.status. When coming back to configure, we
38722 # need to make the FD available again.
38723 if test "$no_create" != yes; then
38724 ac_cs_success=:
38725 ac_config_status_args=
38726 test "$silent" = yes &&
38727 ac_config_status_args="$ac_config_status_args --quiet"
38728 exec 5>/dev/null
38729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38730 exec 5>>config.log
38731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38732 # would make configure fail if this is the last instruction.
38733 $ac_cs_success || as_fn_exit 1
38734 fi
38735 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38737 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38738 fi
38739
38740
38741 if test ${LIBTLS+y}; then
38742 have_tls=yes
38743 fi
38744 echo "" >&6
38745 echo "Configured Sudo version $PACKAGE_VERSION" >&6
38746 echo " Compiler settings:" >&6
38747 echo " compiler : $CC" >&6
38748 echo " compiler options : $CFLAGS" >&6
38749 echo " preprocessor options : $CPPFLAGS" >&6
38750 echo " front-end libraries : $SUDO_LIBS" >&6
38751 echo " front-end linker options : $SUDO_LDFLAGS" >&6
38752 echo " network libraries : $NET_LIBS" >&6
38753 echo " Crypto library : $LIBCRYPTO" >&6
38754 echo " TLS libraries : $LIBTLS" >&6
38755 echo " extra libraries : $LIBS" >&6
38756 echo " extra linker options : $LDFLAGS" >&6
38757 echo " sudoers libraries : $SUDOERS_LIBS" >&6
38758 echo " sudoers linker options : $SUDOERS_LDFLAGS" >&6
38759 if test "${enable_sanitizer-no}" != "no"; then
38760 echo " sanitizer options : ${enable_sanitizer}" >&6
38761 fi
38762 if test X"$FUZZ_LD" != X"\$(CC)"; then
38763 echo " fuzzing linker : ${FUZZ_LD}" >&6
38764 fi
38765 if test X"$FUZZ_ENGINE" != X"\$(top_builddir)/lib/fuzzstub/libsudo_fuzzstub.la"; then
38766 echo " fuzzing engine : ${FUZZ_ENGINE}" >&6
38767 fi
38768 echo " Plugin options:" >&6
38769 echo " plugin support : ${SHLIB_ENABLE}" >&6
38770 echo " Sudoers plugin static : ${enable_static_sudoers-no}" >&6
38771 echo " Python plugin : ${enable_python-no}" >&6
38772 if test "${enable_python-no}" != "no"; then
38773 echo " Python CFLAGS : ${PYTHON_INCLUDE}" >&6
38774 echo " Python LDFLAGS : ${PYTHON_LIBS}" >&6
38775 fi
38776 echo " Optional features:" >&6
38777 echo " log client : ${enable_log_client-yes}" >&6
38778 echo " log server : ${enable_log_server-yes}" >&6
38779 echo " log client/server TLS : ${have_tls-no}" >&6
38780 case "$host_os" in
38781 linux*) echo " SELinux RBAC : ${with_selinux-yes}" >&6;;
38782 esac
38783 echo " Optional sudoers back-ends:" >&6
38784 echo " LDAP : ${with_ldap-no}" >&6
38785 if test "${with_ldap-no}" != "no"; then
38786 echo " ldap configuration : ${ldap_conf}" >&6
38787 echo " ldap secret : ${ldap_secret}" >&6
38788 echo " SASL authentication : ${enable_sasl-no}" >&6
38789 fi
38790 echo " SSSD : ${with_sssd-no}" >&6
38791 if test "${with_sssd-no}" != "no"; then
38792 echo " SSSD config path : ${sssd_conf}" >&6
38793 if test "${sssd_lib}" = \""LIBDIR\""; then
38794 echo " SSSD lib dir : ${libdir}" >&6
38795 else
38796 echo " SSSD lib dir : ${sssd_lib}" >&6
38797 fi
38798 fi
38799 echo " Authentication options:" >&6
38800 echo " require authentication : ${enable_authentication-yes}" >&6
38801 auth_methods=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
38802 echo " authentication methods : ${auth_methods}" >&6
38803 if test "${with_pam-no}" = "yes"; then
38804 echo " pam session support : ${pam_session}" >&6
38805 echo " pam login service : ${pam_login_service}" >&6
38806 fi
38807 if test "${with_kerb5-no}" != "no"; then
38808 echo " kerb5 instance string : ${with_kerb5-none}" >&6
38809 fi
38810 if test "${with_opie-no}-${with_skey-no}" != "no-no"; then
38811 echo " long OTP prompt : ${long_otp_prompt-no}" >&6
38812 fi
38813 echo " group exempt from passwords : ${with_exempt-none}" >&6
38814 echo " password prompt : ${passprompt}" >&6
38815 echo " password prompt timeout : ${password_timeout} minutes" >&6
38816 echo " password tries : ${passwd_tries}" >&6
38817 echo " bad password message : ${badpass_message}" >&6
38818 insult_sets=""
38819 test "$with_python_insults" = "yes" && insult_sets="python ${insult_sets}"
38820 test "$with_goons_insults" = "yes" && insult_sets="goons ${insult_sets}"
38821 test "$with_hal_insults" = "yes" && insult_sets="hal ${insult_sets}"
38822 test "$with_csops_insults" = "yes" && insult_sets="csops ${insult_sets}"
38823 test "$with_classic_insults" = "yes" && insult_sets="classic ${insult_sets}"
38824 if test -z "$insult_sets"; then
38825 insult_sets=no
38826 elif test "$insults" != "on"; then
38827 insult_sets="${insult_sets} (disabled)"
38828 fi
38829 echo " insults : $insult_sets" >&6
38830 echo " display lecture : ${lecture}" >&6
38831 echo " timestamp (credential) type : ${timestamp_type}" >&6
38832 echo " timestamp (credential) timeout: ${timeout} minutes" >&6
38833 echo " Logging options:" >&6
38834 echo " logging default : ${with_logging}" >&6
38835 echo " syslog facility : ${logfac}" >&6
38836 echo " syslog priority allowed : ${goodpri}" >&6
38837 echo " syslog priority denied : ${badpri}" >&6
38838 echo " log file path : ${logpath}" >&6
38839 echo " log file includes hostname : ${enable_log_host-no}" >&6
38840 echo " log file line length : ${loglen}" >&6
38841 echo " compress I/O logs : ${enable_zlib}" >&6
38842 case "$host_os" in
38843 linux*) echo " Linux audit : ${with_linux_audit-no}" >&6;;
38844 solaris2.11*) echo " Solaris audit : ${with_solaris_audit-no}" >&6;;
38845 *) echo " BSM audit : ${with_bsm_audit-no}" >&6;;
38846 esac
38847 echo " run mailer as root : ${enable_root_mailer-yes}" >&6
38848 echo " warning/error mail recipient : ${mailto}" >&6
38849 echo " warning/error mail subject : ${mailsub}" >&6
38850 echo " mail if user not in sudoers : ${mail_no_user}" >&6
38851 echo " mail if user not on host : ${mail_no_host}" >&6
38852 echo " mail if command not allowed : ${mail_no_perms}" >&6
38853 echo " Pathnames:" >&6
38854 echo " prefix : $prefix" >&6
38855 echo " sysconfdir : $_sysconfdir" >&6
38856 if test "${enable_adminconf-no}" != "no"; then
38857 echo " adminconfdir : $_adminconfdir" >&6
38858 fi
38859 echo " log directory : ${log_dir}" >&6
38860 echo " run directory : ${rundir}" >&6
38861 echo " var directory : ${vardir}" >&6
38862 echo " I/O log directory : ${iolog_dir}" >&6
38863 echo " sudo_logsrvd relay directory : ${relay_dir}" >&6
38864 if test X"$with_exampledir" != X""; then
38865 echo " exampledir : $exampledir" >&6
38866 fi
38867 echo " plugin directory : ${plugindir}" >&6
38868 echo " sudoers plugin : ${sudoers_plugin}" >&6
38869 if test "${enable_python-no}" != "no"; then
38870 echo " python plugin : ${python_plugin}" >&6
38871 fi
38872 echo " sudoers file : ${sudoers_path}" >&6
38873 echo " cvtsudoers.conf file : ${cvtsudoers_conf}" >&6
38874 echo " sudo.conf file : ${sudo_conf}" >&6
38875 echo " sudo_logsrvd.conf file : ${sudo_logsrvd_conf}" >&6
38876 echo " path to sendmail : ${with_sendmail}" >&6
38877 echo " time zone directory : ${tzdir}" >&6
38878 if test -n "$TMPFILES_D"; then
38879 echo " systemd tempfiles dir : ${TMPFILES_D}" >&6
38880 fi
38881 if test ${with_netsvc-"no"} != "no"; then
38882 echo " netsvc file : ${netsvc_conf}" >&6
38883 elif test ${with_nsswitch-"yes"} != "no"; then
38884 echo " nsswitch file : ${nsswitch_conf}" >&6
38885 fi
38886 echo " intercept file : ${intercept_file}" >&6
38887 echo " noexec file : ${noexec_file}" >&6
38888 echo " secure path : ${with_secure_path-no}" >&6
38889 echo " askpass helper file : ${with_askpass-no}" >&6
38890 echo " device search path : ${devsearch}" >&6
38891 echo " Other options:" >&6
38892 if test "${with_devel-no}" != "no"; then
38893 echo " development build : ${with_devel}" >&6
38894 fi
38895 case "$host_os" in
38896 solaris2*) echo " Solaris project support : ${with_project-no}" >&6;;
38897 esac
38898 if test "${with_logincap+set}" = "set"; then
38899 echo " /etc/login.conf support : ${with_logincap}" >&6
38900 fi
38901 echo " fully-qualified domain names : ${fqdn}" >&6
38902 echo " default umask : ${sudo_umask}" >&6
38903 echo " umask override : ${umask_override}" >&6
38904 echo " default runas user : ${runas_default}" >&6
38905 echo " probe network interfaces : ${with_interfaces-yes}" >&6
38906 echo " allow root to run sudo : ${root_sudo}" >&6
38907 echo " reset environment for commands: ${env_reset}" >&6
38908 echo " run shell if no args : ${enable_noargs_shell-no}" >&6
38909 echo " ignore '.' or '' in \$PATH : ${ignore_dot}" >&6
38910 echo " disable path info : ${enable_path_info-no}" >&6
38911 echo " sudoers file mode : ${SUDOERS_MODE}" >&6
38912 echo " sudoers file owner : ${SUDOERS_UID}:${SUDOERS_GID}" >&6
38913 echo " default visudo editor : ${editor}" >&6
38914 echo " visudo supports \$EDITOR : ${env_editor}" >&6
38915 if test "${enable_env_debug+set}" = "set"; then
38916 echo " environment debugging : ${enable_env_debug-no}" >&6
38917 fi
38918 echo "" >&6
38919
38920 if test "$openssl_missing" = "yes"
38921 then :
38922
38923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL dev libraries not found, Sudo logsrv connections will not be encrypted." >&5
38924 printf "%s\n" "$as_me: WARNING: OpenSSL dev libraries not found, Sudo logsrv connections will not be encrypted." >&2;}
38925
38926 fi
38927 if test "$with_pam" = "yes"
38928 then :
38929
38930 case $host_os in
38931 hpux*)
38932 if test -f /usr/lib/security/libpam_hpsec.so.1
38933 then :
38934
38935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: you may wish to add the following line to /etc/pam.conf" >&5
38936 printf "%s\n" "$as_me: you may wish to add the following line to /etc/pam.conf" >&6;}
38937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
38938 printf "%s\n" "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
38939
38940 fi
38941 ;;
38942 linux*)
38943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: you will need to customize examples/pam.conf and install it as /etc/pam.d/sudo" >&5
38944 printf "%s\n" "$as_me: you will need to customize examples/pam.conf and install it as /etc/pam.d/sudo" >&6;}
38945 ;;
38946 esac
38947
38948 fi
38949 case "$rundir" in
38950 /run/*|/var/run/*)
38951 clear_rundir=0
38952 ;;
38953 *)
38954 clear_rundir=1
38955 ;;
38956 esac
38957 if test $clear_rundir -eq 1
38958 then :
38959
38960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: the $rundir/ts directory must be cleared at boot time." >&5
38961 printf "%s\n" "$as_me: warning: the $rundir/ts directory must be cleared at boot time." >&6;}
38962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: You may need to create a startup item to do this." >&5
38963 printf "%s\n" "$as_me: You may need to create a startup item to do this." >&6;}
38964
38965 fi
38966
38967
38968
38969
38970
38971
38972
38973
38974
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995
38996
38997
38998
38999
39000
39001
39002
39003
39004
39005
39006
39007
39008
39009
39010
39011
39012
39013
39014
39015
39016
39017
39018
39019
39020
39021
39022
39023
39024
39025
39026
39027
39028
39029
39030
39031
39032
39033
39034
39035
39036
39037
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051
39052
39053
39054
39055
39056
39057
39058
39059
39060
39061
39062
39063
39064
39065
39066
39067
39068
39069
39070
39071
39072
39073
39074
39075
39076
39077
39078
39079
39080
39081
39082
39083
39084
39085
39086
39087